@univerjs-pro/mcp-ui 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-7b9120d
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 +8 -8
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5214(_0xc21ce3,_0x9f26ef){_0xc21ce3=_0xc21ce3-0x1e9;const _0x21b0e8=_0x21b0();let _0x521446=_0x21b0e8[_0xc21ce3];return _0x521446;}const _0x3c2e3e=_0x5214;(function(_0xab2c1d,_0x287851){const _0x2a14da=_0x5214,_0x32d8cb=_0xab2c1d();while(!![]){try{const _0x4b7ac8=-parseInt(_0x2a14da(0x208))/0x1*(parseInt(_0x2a14da(0x1ff))/0x2)+-parseInt(_0x2a14da(0x207))/0x3*(-parseInt(_0x2a14da(0x1ec))/0x4)+parseInt(_0x2a14da(0x212))/0x5+parseInt(_0x2a14da(0x214))/0x6*(-parseInt(_0x2a14da(0x20d))/0x7)+parseInt(_0x2a14da(0x1e9))/0x8+parseInt(_0x2a14da(0x1f8))/0x9+parseInt(_0x2a14da(0x1fa))/0xa*(-parseInt(_0x2a14da(0x218))/0xb);if(_0x4b7ac8===_0x287851)break;else _0x32d8cb['push'](_0x32d8cb['shift']());}catch(_0x421e1c){_0x32d8cb['push'](_0x32d8cb['shift']());}}}(_0x21b0,0xef7f4));const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x3c2e3e(0x210),'connected':_0x3c2e3e(0x1fe),'failed':_0x3c2e3e(0x1f6),'retrying':_0x3c2e3e(0x201),'unknown':_0x3c2e3e(0x216),'unauthorized':_0x3c2e3e(0x21c),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x3c2e3e(0x204),'maxRetriesExceeded':_0x3c2e3e(0x200),'clickToConnect':_0x3c2e3e(0x1f0),'clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':_0x3c2e3e(0x1fc),'description':_0x3c2e3e(0x1f1),'apiKey':_0x3c2e3e(0x217),'apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':_0x3c2e3e(0x1f9),'enableAuth':'인증\x20활성화','enableAuthHint':_0x3c2e3e(0x21b),'connectionInfo':_0x3c2e3e(0x1f2),'mcpClientConfig':_0x3c2e3e(0x1f2),'configInstructions':_0x3c2e3e(0x1f4),'configStepTitle':_0x3c2e3e(0x206),'configStep1':_0x3c2e3e(0x20b),'configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':_0x3c2e3e(0x209),'sessionId':'세션\x20ID','sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':_0x3c2e3e(0x213),'configParameters':_0x3c2e3e(0x205),'maxRetries':_0x3c2e3e(0x1eb),'save':'설정\x20저장','saving':_0x3c2e3e(0x1f7),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x3c2e3e(0x219),'configSaved':_0x3c2e3e(0x1fd),'configError':_0x3c2e3e(0x211),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x3c2e3e(0x1ed),'univerAiLabel':_0x3c2e3e(0x20a),'getStarted':_0x3c2e3e(0x203)},'validation':{'apiKeyRequired':_0x3c2e3e(0x1ea),'apiKeyTooShort':_0x3c2e3e(0x1f3),'invalidConfig':_0x3c2e3e(0x1ef),'invalidApiKey':_0x3c2e3e(0x20f)},'connectionStatus':{'disconnected':_0x3c2e3e(0x1fb),'connecting':_0x3c2e3e(0x1f5),'connected':_0x3c2e3e(0x215),'failed':_0x3c2e3e(0x202),'retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x3c2e3e(0x20e),'sessionOccupied':_0x3c2e3e(0x1ee),'networkError':_0x3c2e3e(0x20c),'maxRetriesExceeded':_0x3c2e3e(0x21a)}}};function _0x21b0(){const _0x397e11=['7Daxupd','인증\x20실패.\x20API\x20키를\x20확인하세요','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20연결\x20중...','설정\x20저장\x20실패','9111745RrngjW','Bearer\x20접두사가\x20있는\x20API\x20키.','3291798IPLGMn','연결됨','MCP\x20알\x20수\x20없는\x20상태','API\x20키','40433074gKxmvF','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','보안\x20연결을\x20위해\x20인증\x20활성화','MCP:\x20인증되지\x20않음','11992176FBFvBs','API\x20키는\x20필수입니다','최대\x20재시도\x20횟수','4463176UYaOJK','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','유효하지\x20않은\x20설정','클릭하여\x20MCP\x20연결','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP\x20클라이언트\x20설정','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','연결\x20중...','MCP\x20연결\x20실패','저장\x20중...','10300527hpikCQ','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','10wAbveK','연결\x20끊김','MCP\x20설정','설정이\x20성공적으로\x20저장되었습니다','MCP\x20연결됨','2xTaGzY','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20재시도\x20중...','연결\x20실패','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP:\x20네트워크\x20오류','설정\x20매개변수:','설정\x20단계:','3iqfIzS','376321HHdvnh','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','Univer\x20AI\x20콘솔','아래\x20JSON\x20설정\x20복사','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요'];_0x21b0=function(){return _0x397e11;};return _0x21b0();}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xe12363=_0x6641;(function(_0x4f21f0,_0x560834){const _0x2e6d0e=_0x6641,_0x4cd110=_0x4f21f0();while(!![]){try{const _0x4aa959=-parseInt(_0x2e6d0e(0x203))/0x1*(parseInt(_0x2e6d0e(0x1e3))/0x2)+parseInt(_0x2e6d0e(0x1f9))/0x3*(parseInt(_0x2e6d0e(0x211))/0x4)+-parseInt(_0x2e6d0e(0x201))/0x5*(parseInt(_0x2e6d0e(0x1df))/0x6)+-parseInt(_0x2e6d0e(0x1f4))/0x7+parseInt(_0x2e6d0e(0x1de))/0x8+parseInt(_0x2e6d0e(0x20b))/0x9+parseInt(_0x2e6d0e(0x1ed))/0xa*(parseInt(_0x2e6d0e(0x209))/0xb);if(_0x4aa959===_0x560834)break;else _0x4cd110['push'](_0x4cd110['shift']());}catch(_0x1a492d){_0x4cd110['push'](_0x4cd110['shift']());}}}(_0x2eed,0xe8f75));function _0x2eed(){const _0x4734f9=['2628288HvjMbz','1993302rVXyLg','Retrying...','MCP\x20Unknown\x20Status','Connecting...','4WVkNGU','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','34990PRwYEU','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key','MCP\x20Configuration','Saving...','What\x20is\x20API\x20Key?','1366995eQIPsg','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Steps:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','3DLUmDe','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','15hPjpIY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','158407HtCall','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Configuration\x20saved\x20successfully','1001bZpGlK','MCP\x20Connecting...','2398023qTQDUr','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connection\x20Failed','Invalid\x20configuration','MCP:\x20Network\x20Error','6198348KgWbjq','Click\x20to\x20connect\x20MCP','Session\x20ID','Max\x20Retries','Save\x20Configuration'];_0x2eed=function(){return _0x4734f9;};return _0x2eed();}function _0x6641(_0x946a70,_0x4bf2f6){_0x946a70=_0x946a70-0x1dc;const _0x2eed81=_0x2eed();let _0x66412f=_0x2eed81[_0x946a70];return _0x66412f;}const e={'mcpStatus':{'disconnected':_0xe12363(0x1f5),'connecting':_0xe12363(0x20a),'connected':'MCP\x20Connected','failed':_0xe12363(0x20e),'retrying':_0xe12363(0x1fb),'unknown':_0xe12363(0x1e1),'unauthorized':_0xe12363(0x1fd),'sessionOccupied':_0xe12363(0x200),'networkError':_0xe12363(0x210),'maxRetriesExceeded':_0xe12363(0x1e6),'clickToConnect':_0xe12363(0x212),'clickToConfigure':_0xe12363(0x20c)},'mcpConfig':{'title':_0xe12363(0x1f1),'description':_0xe12363(0x1ff),'apiKey':_0xe12363(0x1f0),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xe12363(0x202),'enableAuth':_0xe12363(0x1ec),'enableAuthHint':_0xe12363(0x205),'connectionInfo':_0xe12363(0x1ee),'mcpClientConfig':_0xe12363(0x1ee),'configInstructions':_0xe12363(0x1f6),'configStepTitle':_0xe12363(0x1f7),'configStep1':_0xe12363(0x1eb),'configStep2':_0xe12363(0x1e9),'configStep3':_0xe12363(0x1ef),'sessionId':_0xe12363(0x213),'sessionIdDescription':_0xe12363(0x1f8),'authorizationDescription':_0xe12363(0x1e4),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xe12363(0x1dc),'save':_0xe12363(0x1dd),'saving':_0xe12363(0x1f2),'note1':_0xe12363(0x204),'note2':_0xe12363(0x20d),'configSaved':_0xe12363(0x208),'configError':_0xe12363(0x1fe),'apiApplyInfo':{'title':_0xe12363(0x1f3),'description':_0xe12363(0x1ea),'univerAiLabel':_0xe12363(0x1e5),'getStarted':_0xe12363(0x1e7)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xe12363(0x20f),'invalidApiKey':_0xe12363(0x1fa)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xe12363(0x1e2),'connected':'Connected','failed':_0xe12363(0x207),'retrying':_0xe12363(0x1e0)},'connectionError':{'unauthorized':_0xe12363(0x1e8),'sessionOccupied':_0xe12363(0x1fc),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xe12363(0x206)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x37b7f2=_0x294b;(function(_0x3b9c98,_0x3aeda7){const _0x4ac594=_0x294b,_0x2c545e=_0x3b9c98();while(!![]){try{const _0x588577=-parseInt(_0x4ac594(0x1f0))/0x1*(-parseInt(_0x4ac594(0x1e4))/0x2)+-parseInt(_0x4ac594(0x1f1))/0x3*(-parseInt(_0x4ac594(0x1e1))/0x4)+parseInt(_0x4ac594(0x1f7))/0x5*(-parseInt(_0x4ac594(0x1de))/0x6)+parseInt(_0x4ac594(0x1e9))/0x7+-parseInt(_0x4ac594(0x1e8))/0x8+-parseInt(_0x4ac594(0x1d4))/0x9+-parseInt(_0x4ac594(0x1f8))/0xa*(-parseInt(_0x4ac594(0x1d8))/0xb);if(_0x588577===_0x3aeda7)break;else _0x2c545e['push'](_0x2c545e['shift']());}catch(_0x4760a9){_0x2c545e['push'](_0x2c545e['shift']());}}}(_0x4b0c,0xbf743));function _0x294b(_0x4f593c,_0x10f34c){_0x4f593c=_0x4f593c-0x1d1;const _0x4b0c50=_0x4b0c();let _0x294bc1=_0x4b0c50[_0x4f593c];return _0x294bc1;}const n={'mcpStatus':{'disconnected':_0x37b7f2(0x1ef),'connecting':_0x37b7f2(0x1d1),'connected':_0x37b7f2(0x1f4),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':_0x37b7f2(0x1ec),'sessionOccupied':_0x37b7f2(0x1f6),'networkError':_0x37b7f2(0x1fa),'maxRetriesExceeded':_0x37b7f2(0x1e5),'clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x37b7f2(0x1e0)},'mcpConfig':{'title':_0x37b7f2(0x1d9),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x37b7f2(0x1e2),'apiKeyPlaceholder':_0x37b7f2(0x1d3),'apiKeyHint':_0x37b7f2(0x1d5),'enableAuth':_0x37b7f2(0x1fe),'enableAuthHint':_0x37b7f2(0x1f3),'connectionInfo':_0x37b7f2(0x1da),'mcpClientConfig':_0x37b7f2(0x1da),'configInstructions':_0x37b7f2(0x1eb),'configStepTitle':'Các\x20bước\x20cấu\x20hình:','configStep1':_0x37b7f2(0x1f5),'configStep2':_0x37b7f2(0x1e6),'configStep3':_0x37b7f2(0x1fc),'sessionId':'ID\x20phiên','sessionIdDescription':_0x37b7f2(0x1ed),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':_0x37b7f2(0x1ee),'maxRetries':_0x37b7f2(0x1dc),'save':'Lưu\x20cấu\x20hình','saving':_0x37b7f2(0x1dd),'note1':_0x37b7f2(0x1e7),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x37b7f2(0x1fb),'getStarted':_0x37b7f2(0x1d2)},'validation':{'apiKeyRequired':_0x37b7f2(0x200),'apiKeyTooShort':_0x37b7f2(0x1ff),'invalidConfig':_0x37b7f2(0x1e3),'invalidApiKey':_0x37b7f2(0x1fd)},'connectionStatus':{'disconnected':_0x37b7f2(0x1d6),'connecting':_0x37b7f2(0x1f9),'connected':_0x37b7f2(0x1f2),'failed':_0x37b7f2(0x1d7),'retrying':_0x37b7f2(0x1df)},'connectionError':{'unauthorized':_0x37b7f2(0x1db),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0x37b7f2(0x1ea)}}};export{n as default};function _0x4b0c(){const _0x56508b=['Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Bật\x20xác\x20thực','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Yêu\x20cầu\x20khóa\x20API','MCP\x20Đang\x20kết\x20nối...','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Nhập\x20khóa\x20API\x20của\x20bạn','8233920WkqEJu','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Đã\x20ngắt\x20kết\x20nối','Kết\x20nối\x20thất\x20bại','16635509PUMuMt','Cấu\x20hình\x20MCP','Cấu\x20hình\x20máy\x20khách\x20MCP','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Đang\x20lưu...','215538iRSCjE','Đang\x20thử\x20lại...','Nhấp\x20để\x20cấu\x20hình\x20MCP','3967268KJVDgE','Khóa\x20API','Cấu\x20hình\x20không\x20hợp\x20lệ','482doPRcY','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','8217112WKqhEW','4812983cjHtce','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','MCP:\x20Không\x20được\x20phép','Đị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.','Tham\x20số\x20cấu\x20hình:','MCP\x20Đã\x20ngắt\x20kết\x20nối','4478ydjsWO','3MMfnMy','Đã\x20kết\x20nối','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','MCP\x20Đã\x20kết\x20nối','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','215xFETnP','10wJVGVs','Đang\x20kết\x20nối...','MCP:\x20Lỗi\x20mạng','Bảng\x20điều\x20khiển\x20Univer\x20AI','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình'];_0x4b0c=function(){return _0x56508b;};return _0x4b0c();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ae91c=_0x3097;function _0x3890(){const _0x495524=['MCP:\x20未授权','什么是\x20API\x20密钥?','配置步骤:','1101373ynTqlK','4880004EBUosH','MCP\x20连接失败','2270246iwBZvo','API\x20密钥不能为空','几秒钟内获取您的\x20API\x20密钥','129641wOeZju','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥无效,请检查密钥是否正确','带有\x20Bearer\x20前缀的\x20API\x20密钥。','复制以下\x20JSON\x20配置','API\x20密钥','40360RSrHUL','MCP\x20已连接','会话\x20ID\x20已被占用,请稍后再试','保存配置','MCP\x20状态未知','点击配置\x20MCP','56GFWbWu','2884676mYRqia','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20已断开','279mGnuKf','重连中...','保存中...','11476872vDFGUK','配置更改将立即生效','3IDVmeG','连接中...','启用身份验证','配置参数:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','已连接','配置无效','您的\x20API\x20密钥将在此浏览器中本地存储','超出最大重试次数,请稍后再试','API\x20密钥长度至少需要\x2010\x20位','MCP\x20客户端配置','MCP\x20重连中...','MCP:\x20网络错误','将配置添加到您的\x20MCP\x20客户端设置文件中','最大重试次数','Univer\x20AI\x20控制台','请输入您的\x20API\x20密钥','网络连接错误,请检查您的网络连接','5QfdCJD','启用身份验证以获得安全连接','配置保存失败'];_0x3890=function(){return _0x495524;};return _0x3890();}(function(_0x4d6c01,_0x324ea6){const _0x2cb88a=_0x3097,_0x5e17c8=_0x4d6c01();while(!![]){try{const _0x1f6925=parseInt(_0x2cb88a(0xa3))/0x1+-parseInt(_0x2cb88a(0xa0))/0x2*(parseInt(_0x2cb88a(0x85))/0x3)+-parseInt(_0x2cb88a(0x7d))/0x4*(-parseInt(_0x2cb88a(0x97))/0x5)+parseInt(_0x2cb88a(0x9e))/0x6+-parseInt(_0x2cb88a(0x9d))/0x7*(parseInt(_0x2cb88a(0x7c))/0x8)+-parseInt(_0x2cb88a(0x80))/0x9*(-parseInt(_0x2cb88a(0xa9))/0xa)+parseInt(_0x2cb88a(0x83))/0xb;if(_0x1f6925===_0x324ea6)break;else _0x5e17c8['push'](_0x5e17c8['shift']());}catch(_0xd633d0){_0x5e17c8['push'](_0x5e17c8['shift']());}}}(_0x3890,0x91894));const e={'mcpStatus':{'disconnected':_0x4ae91c(0x7f),'connecting':'MCP\x20连接中...','connected':_0x4ae91c(0xaa),'failed':_0x4ae91c(0x9f),'retrying':_0x4ae91c(0x90),'unknown':_0x4ae91c(0x7a),'unauthorized':_0x4ae91c(0x9a),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x4ae91c(0x91),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4ae91c(0x7b)},'mcpConfig':{'title':'MCP\x20配置','description':_0x4ae91c(0x89),'apiKey':_0x4ae91c(0xa8),'apiKeyPlaceholder':_0x4ae91c(0x95),'apiKeyHint':_0x4ae91c(0x8c),'enableAuth':_0x4ae91c(0x87),'enableAuthHint':_0x4ae91c(0x98),'connectionInfo':_0x4ae91c(0x8f),'mcpClientConfig':_0x4ae91c(0x8f),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4ae91c(0x9c),'configStep1':_0x4ae91c(0xa7),'configStep2':_0x4ae91c(0x92),'configStep3':_0x4ae91c(0xa4),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4ae91c(0xa6),'configParameters':_0x4ae91c(0x88),'maxRetries':_0x4ae91c(0x93),'save':_0x4ae91c(0x79),'saving':_0x4ae91c(0x82),'note1':_0x4ae91c(0x84),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x4ae91c(0x99),'apiApplyInfo':{'title':_0x4ae91c(0x9b),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4ae91c(0x94),'getStarted':_0x4ae91c(0xa2)},'validation':{'apiKeyRequired':_0x4ae91c(0xa1),'apiKeyTooShort':_0x4ae91c(0x8e),'invalidConfig':_0x4ae91c(0x8b),'invalidApiKey':_0x4ae91c(0xa5)},'connectionStatus':{'disconnected':'未连接','connecting':_0x4ae91c(0x86),'connected':_0x4ae91c(0x8a),'failed':'连接失败','retrying':_0x4ae91c(0x81)},'connectionError':{'unauthorized':_0x4ae91c(0x7e),'sessionOccupied':_0x4ae91c(0x78),'networkError':_0x4ae91c(0x96),'maxRetriesExceeded':_0x4ae91c(0x8d)}}};function _0x3097(_0x2e1716,_0x459c25){_0x2e1716=_0x2e1716-0x78;const _0x389060=_0x3890();let _0x30972d=_0x389060[_0x2e1716];return _0x30972d;}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3ae3e1=_0x47ea;(function(_0x20689c,_0x15d6fc){const _0x12710c=_0x47ea,_0x37c1a0=_0x20689c();while(!![]){try{const _0x8a374f=-parseInt(_0x12710c(0x138))/0x1*(-parseInt(_0x12710c(0x12d))/0x2)+parseInt(_0x12710c(0x13b))/0x3+parseInt(_0x12710c(0x126))/0x4+parseInt(_0x12710c(0x13a))/0x5+parseInt(_0x12710c(0x12b))/0x6*(parseInt(_0x12710c(0x143))/0x7)+-parseInt(_0x12710c(0x13e))/0x8*(-parseInt(_0x12710c(0x134))/0x9)+-parseInt(_0x12710c(0x14b))/0xa;if(_0x8a374f===_0x15d6fc)break;else _0x37c1a0['push'](_0x37c1a0['shift']());}catch(_0x3bdf1c){_0x37c1a0['push'](_0x37c1a0['shift']());}}}(_0x3bda,0x4056a));function _0x47ea(_0x125f55,_0x1f821e){_0x125f55=_0x125f55-0x125;const _0x3bdac7=_0x3bda();let _0x47eaec=_0x3bdac7[_0x125f55];return _0x47eaec;}const e={'mcpStatus':{'disconnected':_0x3ae3e1(0x130),'connecting':_0x3ae3e1(0x132),'connected':'MCP\x20Connected','failed':_0x3ae3e1(0x14c),'retrying':'MCP\x20Retrying...','unknown':_0x3ae3e1(0x156),'unauthorized':_0x3ae3e1(0x14e),'sessionOccupied':_0x3ae3e1(0x137),'networkError':_0x3ae3e1(0x14a),'maxRetriesExceeded':_0x3ae3e1(0x12c),'clickToConnect':_0x3ae3e1(0x128),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3ae3e1(0x155),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3ae3e1(0x133),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3ae3e1(0x139),'enableAuth':_0x3ae3e1(0x14f),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3ae3e1(0x148),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3ae3e1(0x13c),'configStep1':_0x3ae3e1(0x136),'configStep2':_0x3ae3e1(0x145),'configStep3':_0x3ae3e1(0x140),'sessionId':_0x3ae3e1(0x127),'sessionIdDescription':_0x3ae3e1(0x125),'authorizationDescription':_0x3ae3e1(0x153),'configParameters':_0x3ae3e1(0x141),'maxRetries':_0x3ae3e1(0x12e),'save':'Save\x20Configuration','saving':_0x3ae3e1(0x147),'note1':_0x3ae3e1(0x12f),'note2':_0x3ae3e1(0x150),'configSaved':_0x3ae3e1(0x144),'configError':_0x3ae3e1(0x129),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3ae3e1(0x142),'univerAiLabel':_0x3ae3e1(0x149),'getStarted':_0x3ae3e1(0x135)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3ae3e1(0x146),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3ae3e1(0x151),'connecting':_0x3ae3e1(0x13f),'connected':_0x3ae3e1(0x152),'failed':_0x3ae3e1(0x14d),'retrying':_0x3ae3e1(0x154)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3ae3e1(0x13d),'networkError':_0x3ae3e1(0x12a),'maxRetriesExceeded':_0x3ae3e1(0x131)}}},n=e;export{n as default};function _0x3bda(){const _0x25a0d=['Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','7yKkuft','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','MCP:\x20Network\x20Error','10137190cLWJLf','MCP\x20Connection\x20Failed','Connection\x20Failed','MCP:\x20Unauthorized','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','Connected','API\x20key\x20with\x20Bearer\x20prefix.','Retrying...','MCP\x20Configuration','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1746756TEbZFs','Session\x20ID','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1217526WSbAsC','MCP:\x20Max\x20Retries\x20Exceeded','4434PSAgTL','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','API\x20Key','33057iEvUwH','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','2RHhfxc','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1526875HRBAWv','553749FaqZQf','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','312vtsNIY'];_0x3bda=function(){return _0x25a0d;};return _0x3bda();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x280d1b,_0x420fe6){const _0x3ff0c5=_0x209d,_0x836b2f=_0x280d1b();while(!![]){try{const _0x11e07f=-parseInt(_0x3ff0c5(0x1d7))/0x1*(-parseInt(_0x3ff0c5(0x119))/0x2)+-parseInt(_0x3ff0c5(0x22d))/0x3*(-parseInt(_0x3ff0c5(0x219))/0x4)+parseInt(_0x3ff0c5(0xec))/0x5*(parseInt(_0x3ff0c5(0x24e))/0x6)+-parseInt(_0x3ff0c5(0x1b8))/0x7+-parseInt(_0x3ff0c5(0x247))/0x8+parseInt(_0x3ff0c5(0x122))/0x9*(parseInt(_0x3ff0c5(0x142))/0xa)+-parseInt(_0x3ff0c5(0x143))/0xb*(parseInt(_0x3ff0c5(0xf7))/0xc);if(_0x11e07f===_0x420fe6)break;else _0x836b2f['push'](_0x836b2f['shift']());}catch(_0x412444){_0x836b2f['push'](_0x836b2f['shift']());}}}(_0x56a3,0x7cef4),function(_0x2f1b65,_0x1b2ab7){const _0x52e559=_0x209d;typeof exports==_0x52e559(0x17b)&&typeof module<'u'?_0x1b2ab7(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==_0x52e559(0xf1)&&define[_0x52e559(0x1e0)]?define([_0x52e559(0x16a),_0x52e559(0x180),_0x52e559(0x22e),_0x52e559(0x13a),_0x52e559(0x1c2),_0x52e559(0x1c8),'rxjs',_0x52e559(0x20a),_0x52e559(0x227)],_0x1b2ab7):(_0x2f1b65=typeof globalThis<'u'?globalThis:_0x2f1b65||self,_0x1b2ab7(_0x2f1b65[_0x52e559(0x160)]={},_0x2f1b65[_0x52e559(0x1e3)],_0x2f1b65['React'],_0x2f1b65['UniverProMcp'],_0x2f1b65[_0x52e559(0x210)],_0x2f1b65[_0x52e559(0x168)],_0x2f1b65[_0x52e559(0x137)],_0x2f1b65[_0x52e559(0x126)],_0x2f1b65['UniverNetwork']));}(this,function(_0x7de47f,_0x34158d,_0x5338aa,_0x2aadaf,_0x9ab182,_0x278cd6,_0x3f4564,_0x2277a3,_0x2afcbe){'use strict';const _0x521dcb=_0x209d;var _0x4b3098=Object[_0x521dcb(0x123)],_0xdeb864=(_0x3ccd37,_0x3c7639,_0x4ed82a)=>_0x3c7639 in _0x3ccd37?_0x4b3098(_0x3ccd37,_0x3c7639,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ed82a}):_0x3ccd37[_0x3c7639]=_0x4ed82a,_0x138def=(_0x1325c3,_0x15176f,_0x4d5625)=>_0xdeb864(_0x1325c3,typeof _0x15176f!=_0x521dcb(0x199)?_0x15176f+'':_0x15176f,_0x4d5625);function _0x3d97c3({ref:_0x5a217e,..._0x500eff}){const _0x10408a=_0x521dcb,{icon:_0x36ce41,id:_0x137d5f,className:_0x491d29,extend:_0x1ebe37,..._0x152663}=_0x500eff,_0x1d3534=('univerjs-icon\x20univerjs-icon-'+_0x137d5f+'\x20'+(_0x491d29||''))[_0x10408a(0x153)](),_0x409976=_0x2277a3[_0x10408a(0x115)]('_'+_0x22762f());return _0x3f0cb0(_0x36ce41,''+_0x137d5f,{'defIds':_0x36ce41[_0x10408a(0x232)],'idSuffix':_0x409976[_0x10408a(0x1a4)]},{'ref':_0x5a217e,'className':_0x1d3534,..._0x152663},_0x1ebe37);}function _0x3f0cb0(_0x648afb,_0x3b7763,_0x4b5fd7,_0x5d38d6,_0x10e993){const _0x24f21d=_0x521dcb;return _0x2277a3[_0x24f21d(0x132)](_0x648afb['tag'],{'key':_0x3b7763,..._0x6c0839(_0x648afb,_0x4b5fd7,_0x10e993),..._0x5d38d6},(_0x50104d(_0x648afb,_0x4b5fd7)['children']||[])['map']((_0x1d4667,_0x23dfd5)=>_0x3f0cb0(_0x1d4667,_0x3b7763+'-'+_0x648afb[_0x24f21d(0x133)]+'-'+_0x23dfd5,_0x4b5fd7,void 0x0,_0x10e993)));}function _0x6c0839(_0x29b48c,_0x91a8b9,_0x4b4da7){const _0xc3df08=_0x521dcb,_0x578aa4={..._0x29b48c[_0xc3df08(0x1c4)]};_0x4b4da7!=null&&_0x4b4da7[_0xc3df08(0x1ea)]&&_0x578aa4[_0xc3df08(0x11d)]==='colorChannel1'&&(_0x578aa4[_0xc3df08(0x11d)]=_0x4b4da7[_0xc3df08(0x1ea)]),_0x29b48c[_0xc3df08(0x133)]==='mask'&&_0x578aa4['id']&&(_0x578aa4['id']=_0x578aa4['id']+_0x91a8b9['idSuffix']),Object[_0xc3df08(0xf3)](_0x578aa4)[_0xc3df08(0x1b4)](([_0x5a6bdd,_0x375e72])=>{const _0x27ecc7=_0xc3df08;_0x5a6bdd===_0x27ecc7(0x20f)&&typeof _0x375e72=='string'&&(_0x578aa4[_0x5a6bdd]=_0x375e72['replace'](/url\(#(.*)\)/,_0x27ecc7(0x150)+_0x91a8b9['idSuffix']+')'));});const {defIds:_0x25f3c0}=_0x91a8b9;return!_0x25f3c0||_0x25f3c0['length']===0x0||(_0x29b48c[_0xc3df08(0x133)]==='use'&&_0x578aa4[_0xc3df08(0xdf)]&&(_0x578aa4[_0xc3df08(0xdf)]=_0x578aa4[_0xc3df08(0xdf)]+_0x91a8b9[_0xc3df08(0x256)]),Object['entries'](_0x578aa4)[_0xc3df08(0x1b4)](([_0x40a3f4,_0x1346a6])=>{typeof _0x1346a6=='string'&&(_0x578aa4[_0x40a3f4]=_0x1346a6['replace'](/url\(#(.*)\)/,'url(#$1'+_0x91a8b9['idSuffix']+')'));})),_0x578aa4;}function _0x50104d(_0x52077b,_0x2f434c){const _0xbcd1e=_0x521dcb;var _0x30adc5;const {defIds:_0x1a05d7}=_0x2f434c;return!_0x1a05d7||_0x1a05d7[_0xbcd1e(0x136)]===0x0?_0x52077b:_0x52077b['tag']===_0xbcd1e(0x242)&&((_0x30adc5=_0x52077b[_0xbcd1e(0x1ab)])!=null&&_0x30adc5[_0xbcd1e(0x136)])?{..._0x52077b,'children':_0x52077b['children']['map'](_0x116733=>typeof _0x116733['attrs']['id']==_0xbcd1e(0x154)&&_0x1a05d7&&_0x1a05d7[_0xbcd1e(0x231)](_0x116733[_0xbcd1e(0x1c4)]['id'])?{..._0x116733,'attrs':{..._0x116733[_0xbcd1e(0x1c4)],'id':_0x116733[_0xbcd1e(0x1c4)]['id']+_0x2f434c[_0xbcd1e(0x256)]}}:_0x116733)}:_0x52077b;}function _0x22762f(){const _0x34c99b=_0x521dcb;return Math[_0x34c99b(0x1e2)]()[_0x34c99b(0x216)](0x24)[_0x34c99b(0xe6)](0x2,0x8);}_0x3d97c3[_0x521dcb(0x230)]=_0x521dcb(0x16b);const _0x486c0e={'tag':_0x521dcb(0x23b),'attrs':{'xmlns':_0x521dcb(0x205),'fill':'none','viewBox':_0x521dcb(0x1e9),'width':_0x521dcb(0x21f),'height':_0x521dcb(0x21f)},'children':[{'tag':_0x521dcb(0x19b),'attrs':{'fill':'currentColor','d':_0x521dcb(0x17d),'fillRule':'evenodd','clipRule':_0x521dcb(0x1b3)}}]},_0x4fb90f=_0x2277a3['forwardRef'](function(_0x2d42c9,_0x1d9813){const _0x1923d1=_0x521dcb;return _0x2277a3[_0x1923d1(0x132)](_0x3d97c3,Object[_0x1923d1(0x1e8)]({},_0x2d42c9,{'id':'check-mark-icon','ref':_0x1d9813,'icon':_0x486c0e}));});_0x4fb90f[_0x521dcb(0x230)]=_0x521dcb(0x146);const _0x592da3={'tag':_0x521dcb(0x23b),'attrs':{'xmlns':_0x521dcb(0x205),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x521dcb(0x21f),'height':_0x521dcb(0x21f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x521dcb(0x204)}}]},_0x2a1ac2=_0x2277a3[_0x521dcb(0x116)](function(_0x194690,_0x31ac0a){const _0x5aa7bd=_0x521dcb;return _0x2277a3['createElement'](_0x3d97c3,Object['assign']({},_0x194690,{'id':_0x5aa7bd(0x22a),'ref':_0x31ac0a,'icon':_0x592da3}));});_0x2a1ac2[_0x521dcb(0x230)]=_0x521dcb(0x19d);const _0x3fbf08={'tag':_0x521dcb(0x23b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x521dcb(0x183),'viewBox':'0\x200\x2016\x2016','width':_0x521dcb(0x21f),'height':_0x521dcb(0x21f)},'children':[{'tag':_0x521dcb(0x19b),'attrs':{'fill':_0x521dcb(0x107),'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':_0x521dcb(0x19b),'attrs':{'fill':'currentColor','d':_0x521dcb(0x229)}},{'tag':_0x521dcb(0x19b),'attrs':{'fill':_0x521dcb(0x107),'d':_0x521dcb(0x1d9),'fillRule':_0x521dcb(0x1b3),'clipRule':_0x521dcb(0x1b3)}}]},_0x4996a6=_0x2277a3['forwardRef'](function(_0x165ed5,_0xfd94c4){const _0x393cfd=_0x521dcb;return _0x2277a3[_0x393cfd(0x132)](_0x3d97c3,Object[_0x393cfd(0x1e8)]({},_0x165ed5,{'id':_0x393cfd(0x14f),'ref':_0xfd94c4,'icon':_0x3fbf08}));});_0x4996a6['displayName']=_0x521dcb(0x106);const _0xa565b3={'tag':'svg','attrs':{'xmlns':_0x521dcb(0x205),'fill':_0x521dcb(0x183),'viewBox':_0x521dcb(0x1e9),'width':_0x521dcb(0x21f),'height':_0x521dcb(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x521dcb(0x19b),'attrs':{'stroke':_0x521dcb(0x107),'d':_0x521dcb(0x257),'strokeLinecap':_0x521dcb(0x173),'strokeLinejoin':_0x521dcb(0x173),'strokeWidth':1.2}}]},{'tag':_0x521dcb(0x242),'attrs':{},'children':[{'tag':_0x521dcb(0x234),'attrs':{'id':_0x521dcb(0x23c)},'children':[{'tag':_0x521dcb(0x19b),'attrs':{'fill':_0x521dcb(0xdb),'d':_0x521dcb(0x1be)}}]}]}],'defIds':[_0x521dcb(0x23c)]},_0x2b6cc0=_0x2277a3[_0x521dcb(0x116)](function(_0x5108c5,_0x2ab8d8){const _0x546c83=_0x521dcb;return _0x2277a3['createElement'](_0x3d97c3,Object[_0x546c83(0x1e8)]({},_0x5108c5,{'id':_0x546c83(0x240),'ref':_0x2ab8d8,'icon':_0xa565b3}));});_0x2b6cc0['displayName']='OffLineIcon';const _0xb86878={'tag':_0x521dcb(0x23b),'attrs':{'xmlns':_0x521dcb(0x205),'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x521dcb(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x521dcb(0x1aa)},'children':[{'tag':_0x521dcb(0x19b),'attrs':{'stroke':'currentColor','d':_0x521dcb(0xdd),'strokeLinecap':_0x521dcb(0x173),'strokeLinejoin':_0x521dcb(0x173),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x521dcb(0x234),'attrs':{'id':_0x521dcb(0x228)},'children':[{'tag':_0x521dcb(0x19b),'attrs':{'fill':_0x521dcb(0xdb),'d':'M0\x200H16V16H0z','transform':_0x521dcb(0xd2)}}]}]}],'defIds':[_0x521dcb(0x228)]},_0x1909b6=_0x2277a3[_0x521dcb(0x116)](function(_0x346584,_0x1a95c0){const _0x5ab368=_0x521dcb;return _0x2277a3[_0x5ab368(0x132)](_0x3d97c3,Object['assign']({},_0x346584,{'id':_0x5ab368(0x1f5),'ref':_0x1a95c0,'icon':_0xb86878}));});_0x1909b6[_0x521dcb(0x230)]=_0x521dcb(0x1fa);function _0x41f3c2(_0x4ea5b4){const _0x33dbe7=_0x521dcb;var _0x87be06,_0x23764d;const {mcpCoreConfig:_0x266aa0,onSave:_0x47cbcb,loading:_0x40f0a4=!0x1,config:_0x12b6da,connectionStatus$:_0x58a11a,connectionError$:_0x35fca1,currentApiKey$:_0x691c18,currentSessionId$:_0x57296e}=_0x4ea5b4,_0x27f316=_0x278cd6[_0x33dbe7(0x1c5)](_0x34158d[_0x33dbe7(0x1bb)]),_0x2033ef=_0x278cd6['useObservable'](_0x58a11a,_0x2aadaf['MCPConnectionStatus']['DISCONNECTED']),_0x5cd96e=_0x278cd6[_0x33dbe7(0xe4)](_0x35fca1,_0x2aadaf[_0x33dbe7(0x139)][_0x33dbe7(0x10e)]),_0xb623a0=_0x278cd6[_0x33dbe7(0xe4)](_0x57296e,''),_0x54944c=_0x278cd6[_0x33dbe7(0xe4)](_0x691c18,''),[_0x1be8fe,_0xd47dab]=_0x2277a3[_0x33dbe7(0x1ba)](_0x54944c||''),_0x5e4f9d=!0x0,_0x1417be=_0x12b6da['showDeveloperTools']&&_0x266aa0[_0x33dbe7(0x170)]&&(_0x266aa0['mcpServerUrl']['includes'](_0x33dbe7(0x221))||_0x266aa0[_0x33dbe7(0x170)]['includes'](_0x33dbe7(0xf9))),_0x4ec4e0=(_0x87be06=_0x266aa0['mcpServerUrl'])==null?void 0x0:_0x87be06[_0x33dbe7(0x231)](_0x33dbe7(0x221)),_0x2e329f=(_0x23764d=_0x266aa0[_0x33dbe7(0x170)])==null?void 0x0:_0x23764d[_0x33dbe7(0x231)](_0x33dbe7(0xf9)),_0x118e3b=_0x4ec4e0?_0x33dbe7(0x1e1):_0x33dbe7(0x1a1),_0x57d345=_0x12b6da[_0x33dbe7(0x243)]&&(_0x4ec4e0||_0x2e329f),[_0x363c3d,_0x3b003d]=_0x2277a3[_0x33dbe7(0x1ba)](!_0x1be8fe['trim']()),_0x169b0c=(_0x386bda,_0x527560)=>{const _0x456321=_0x33dbe7;if(_0x527560===_0x2aadaf[_0x456321(0x139)][_0x456321(0x17a)])return _0x456321(0x1b6);switch(_0x386bda){case _0x2aadaf[_0x456321(0x16d)][_0x456321(0x151)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x2aadaf['MCPConnectionStatus'][_0x456321(0xeb)]:case _0x2aadaf[_0x456321(0x16d)][_0x456321(0x200)]:return _0x456321(0x163);case _0x2aadaf['MCPConnectionStatus'][_0x456321(0x188)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x456321(0x185);}},_0x5dd9fd=(_0x70ebb3,_0x41d668)=>{const _0xcdd8c9=_0x33dbe7;if(_0x41d668===_0x2aadaf[_0xcdd8c9(0x139)][_0xcdd8c9(0x17a)])return'univer-bg-red-500';switch(_0x70ebb3){case _0x2aadaf[_0xcdd8c9(0x16d)][_0xcdd8c9(0x151)]:return _0xcdd8c9(0x1cf);case _0x2aadaf[_0xcdd8c9(0x16d)]['CONNECTING']:case _0x2aadaf['MCPConnectionStatus']['RETRYING']:return _0xcdd8c9(0x157);case _0x2aadaf[_0xcdd8c9(0x16d)][_0xcdd8c9(0x188)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x2e5221=_0xb549bd=>{const _0x23296a=_0x33dbe7;switch(_0xb549bd){case _0x2aadaf['MCPConnectionStatus'][_0x23296a(0x151)]:return _0x27f316['t'](_0x23296a(0x208));case _0x2aadaf['MCPConnectionStatus'][_0x23296a(0xeb)]:return _0x27f316['t']('mcpConfig.connectionStatus.connecting');case _0x2aadaf[_0x23296a(0x16d)][_0x23296a(0x188)]:return _0x27f316['t'](_0x23296a(0x145));case _0x2aadaf[_0x23296a(0x16d)][_0x23296a(0x200)]:return _0x27f316['t'](_0x23296a(0x134));default:return _0x27f316['t'](_0x23296a(0xe8));}},_0x2d1bbc=_0x30c5cd=>{const _0x4ef071=_0x33dbe7;switch(_0x30c5cd){case _0x2aadaf['MCPConnectionError']['UNAUTHORIZED']:return _0x27f316['t'](_0x4ef071(0x1a3));case _0x2aadaf[_0x4ef071(0x139)][_0x4ef071(0x186)]:return _0x27f316['t']('mcpConfig.connectionError.sessionOccupied');case _0x2aadaf[_0x4ef071(0x139)][_0x4ef071(0x1a9)]:return _0x27f316['t']('mcpConfig.connectionError.networkError');case _0x2aadaf[_0x4ef071(0x139)][_0x4ef071(0x1ac)]:return _0x27f316['t'](_0x4ef071(0x24b));default:return'';}},_0x2b14bb=_0x2277a3[_0x33dbe7(0x16c)](()=>{const _0x3fe43e=_0x33dbe7,_0x335b34={..._0x266aa0,'apiKey':_0x1be8fe[_0x3fe43e(0x153)](),'enableAuth':_0x5e4f9d};_0x47cbcb(_0x335b34);},[_0x266aa0,_0x1be8fe,_0x5e4f9d,_0x47cbcb]),_0xf26469=_0x1be8fe[_0x33dbe7(0x153)]()[_0x33dbe7(0x136)]>0x0;return _0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x238),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x138),'children':_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x15f),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x164),'children':_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'className':_0x33dbe7(0x1a0),'children':'⚙'})}),_0x5338aa['jsx']('div',{'children':_0x5338aa[_0x33dbe7(0x1c3)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x27f316['t'](_0x33dbe7(0x1ff))})})]})}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0xcf),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x9ab182['clsx'](_0x33dbe7(0xf2),_0x169b0c(_0x2033ef,_0x5cd96e)),'children':_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0xe2),'children':[_0x5338aa['jsx']('div',{'className':_0x9ab182[_0x33dbe7(0x191)](_0x33dbe7(0x178),_0x5dd9fd(_0x2033ef,_0x5cd96e))}),_0x5338aa[_0x33dbe7(0x1c3)]('span',{'className':_0x33dbe7(0x16f),'children':_0x2e5221(_0x2033ef)})]})}),_0x5cd96e!==_0x2aadaf['MCPConnectionError']['NONE']&&(_0x2033ef===_0x2aadaf['MCPConnectionStatus'][_0x33dbe7(0x188)]||_0x5cd96e===_0x2aadaf[_0x33dbe7(0x139)][_0x33dbe7(0x17a)])&&_0x5338aa[_0x33dbe7(0x1c3)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x5338aa['jsx'](_0x33dbe7(0x121),{'className':_0x33dbe7(0x16e),'children':'⚠️'}),_0x5338aa[_0x33dbe7(0x1c3)]('p',{'className':_0x33dbe7(0xef),'children':_0x2d1bbc(_0x5cd96e)})]})})]}),_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':'univer-space-y-5','children':[_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x22f),'children':[_0x5338aa[_0x33dbe7(0x23e)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'children':'🔑'}),'\x20',_0x27f316['t'](_0x33dbe7(0x1bd)),_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'className':_0x33dbe7(0x127),'children':'*'}),_0x1417be&&_0x5338aa[_0x33dbe7(0x1c3)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x27f316['t'](_0x33dbe7(0x181)),'role':_0x33dbe7(0x1d6),'onClick':()=>_0x3b003d(!0x0),'children':_0x5338aa[_0x33dbe7(0x1c3)](_0x4996a6,{})})]}),_0x5338aa[_0x33dbe7(0x1c3)](_0x9ab182['Input'],{'type':_0x33dbe7(0x213),'placeholder':_0x27f316['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x1be8fe,'disabled':_0x40f0a4,'autoComplete':'off','onChange':_0xd47dab}),_0x5338aa[_0x33dbe7(0x1c3)]('p',{'className':_0x33dbe7(0x174),'children':_0x27f316['t'](_0x33dbe7(0x12c))})]}),_0x1417be&&_0x363c3d&&_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x23f),'children':[_0x5338aa['jsx']('a',{'className':_0x33dbe7(0xf4),'role':_0x33dbe7(0x1d6),'onClick':()=>_0x3b003d(!0x1),'children':_0x5338aa['jsx'](_0x2a1ac2,{'className':'univer-size-4'})}),_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x1fd),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0xf0),'children':_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'className':_0x33dbe7(0x190),'children':'🚀'})}),_0x5338aa['jsxs'](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x1a8),'children':[_0x5338aa[_0x33dbe7(0x1c3)]('h4',{'className':_0x33dbe7(0x239),'children':_0x27f316['t'](_0x33dbe7(0x181))}),_0x5338aa[_0x33dbe7(0x1c3)]('p',{'className':_0x33dbe7(0x17e),'children':_0x27f316['t'](_0x33dbe7(0x140))}),_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x57d345&&_0x5338aa[_0x33dbe7(0x23e)]('a',{'className':_0x33dbe7(0x1e5),'href':_0x118e3b,'target':_0x33dbe7(0x1f1),'rel':'noopener\x20noreferrer','children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'children':'🤖'}),_0x27f316['t'](_0x33dbe7(0x1d2)),_0x5338aa[_0x33dbe7(0x1c3)]('span',{'className':_0x33dbe7(0xd1),'children':'↗'})]})}),_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x20d),'children':['✨','\x20',_0x27f316['t'](_0x33dbe7(0x253))]})]})]})]}),_0x12b6da[_0x33dbe7(0x243)]&&_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5338aa[_0x33dbe7(0x23e)]('h4',{'className':_0x33dbe7(0x192),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'children':'🔗'}),'\x20',_0x27f316['t'](_0x33dbe7(0xe3))]}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':'univer-space-y-4','children':[_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x1a6),'children':[_0x5338aa[_0x33dbe7(0x1c3)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x27f316['t']('mcpConfig.configInstructions')}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x22f),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x144),'children':_0x27f316['t'](_0x33dbe7(0x10a))}),_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x1ee),'children':[_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0xe2),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'className':_0x33dbe7(0xfe),'children':'1'}),_0x27f316['t']('mcpConfig.configStep1')]}),_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0xe2),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'className':_0x33dbe7(0xfe),'children':'2'}),_0x27f316['t'](_0x33dbe7(0x1e7))]}),_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0xe2),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'className':_0x33dbe7(0xfe),'children':'3'}),_0x27f316['t'](_0x33dbe7(0x12a))]})]})]})]}),_0x5338aa['jsxs'](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x22f),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x33dbe7(0x175)}),_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x233),'children':_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x206),{'className':_0x33dbe7(0x1b2),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x33dbe7(0x182)+(_0xb623a0||_0x33dbe7(0x1fb)),'type':_0x33dbe7(0x1c7),'headers':{'Authorization':'Bearer\x20'+(_0x1be8fe||_0x33dbe7(0x156))}}}},null,0x2)})})]}),_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x1a6),'children':[_0x5338aa[_0x33dbe7(0x1c3)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x27f316['t'](_0x33dbe7(0x18e))}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x22f),'children':[_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x1fc),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x211),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x33dbe7(0xfc)}),_0x5338aa[_0x33dbe7(0x1c3)]('div',{'className':_0x33dbe7(0x174),'children':_0x27f316['t'](_0x33dbe7(0xd7))})]})]}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x1fc),'children':[_0x5338aa[_0x33dbe7(0x1c3)]('div',{'className':_0x33dbe7(0xd6)}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x211),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x1ca),'children':_0x33dbe7(0xf8)}),_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x174),'children':_0x27f316['t'](_0x33dbe7(0x203))})]})]})]})]})]})]}),_0x5338aa['jsx'](_0x9ab182[_0x33dbe7(0x250)],{'onClick':_0x2b14bb,'disabled':!_0xf26469||_0x40f0a4,'className':_0x33dbe7(0x1c0),'children':_0x40f0a4?_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x121),{'className':_0x33dbe7(0xe2),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x121),{'children':'⟲'}),_0x27f316['t'](_0x33dbe7(0x108))]}):_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x121),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x4fb90f,{}),_0x27f316['t']('mcpConfig.save')]})}),_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x18f),'children':_0x5338aa[_0x33dbe7(0x23e)]('div',{'className':_0x33dbe7(0x251),'children':[_0x5338aa[_0x33dbe7(0x1c3)]('span',{'className':_0x33dbe7(0x201),'children':'💡'}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0x1bc),'children':[_0x5338aa[_0x33dbe7(0x1c3)](_0x33dbe7(0x1f2),{'className':_0x33dbe7(0xff),'children':_0x33dbe7(0x21e)}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'children':['•',_0x27f316['t'](_0x33dbe7(0x171))]}),_0x5338aa[_0x33dbe7(0x23e)](_0x33dbe7(0x1f2),{'children':['•',_0x27f316['t'](_0x33dbe7(0x15c))]})]})]})})]})})]});}const _0x3b1e6a=_0x521dcb(0xfd),_0xe77e22={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1ccf52=Object[_0x521dcb(0x255)],_0x3bd93a=(_0x221656,_0x331d13,_0x4a3c4a,_0x2ecd3b)=>{const _0x16184a=_0x521dcb;for(var _0x329333=_0x2ecd3b>0x1?void 0x0:_0x2ecd3b?_0x1ccf52(_0x331d13,_0x4a3c4a):_0x331d13,_0x24b0ad=_0x221656[_0x16184a(0x136)]-0x1,_0x2b4fec;_0x24b0ad>=0x0;_0x24b0ad--)(_0x2b4fec=_0x221656[_0x24b0ad])&&(_0x329333=_0x2b4fec(_0x329333)||_0x329333);return _0x329333;},_0x56eacf=(_0x2f9564,_0x30b9d7)=>(_0x41aae7,_0x5b24ea)=>_0x30b9d7(_0x41aae7,_0x5b24ea,_0x2f9564);const _0x5ec9b7=_0x521dcb(0x172),_0x3197cf=_0x521dcb(0x1ae);_0x7de47f[_0x521dcb(0x1f0)]=class extends _0x34158d[_0x521dcb(0x12e)]{constructor(_0x5b8114,_0x516ae7,_0x512857,_0x45da18,_0x217d94,_0x41bf23,_0x9fc74e,_0x5747df,_0x2946e9,_0x16724f){const _0x30dcbf=_0x521dcb;super(),_0x138def(this,_0x30dcbf(0x149),new _0x3f4564[(_0x30dcbf(0x24f))](!0x1)),_0x138def(this,'_mcpCoreConfig$',new _0x3f4564[(_0x30dcbf(0x24f))]({})),_0x138def(this,_0x30dcbf(0x10b),new _0x3f4564[(_0x30dcbf(0x24f))]({})),_0x138def(this,'_apiKey$',new _0x3f4564['BehaviorSubject']('')),_0x138def(this,_0x30dcbf(0x1d8),async _0x5374c6=>{const _0x4a33fe=_0x30dcbf;var _0x1c5469,_0x51c3d6;this[_0x4a33fe(0x149)][_0x4a33fe(0x1c6)](!0x0);try{const _0x3257d4=await this[_0x4a33fe(0x105)](_0x5374c6);if(!_0x3257d4[_0x4a33fe(0x209)]){this[_0x4a33fe(0x222)][_0x4a33fe(0x194)]({'type':_0x9ab182[_0x4a33fe(0x21d)]['Error'],'content':_0x3257d4[_0x4a33fe(0x245)]||this['_localeService']['t'](_0x4a33fe(0x1ed))});return;}_0x5374c6[_0x4a33fe(0x19c)]?await this[_0x4a33fe(0x13c)][_0x4a33fe(0x249)](_0x5ec9b7,_0x5374c6['apiKey']['trim']()):await this[_0x4a33fe(0x13c)]['removeItem'](_0x5ec9b7),this[_0x4a33fe(0xd4)][_0x4a33fe(0x1c6)](((_0x1c5469=_0x5374c6[_0x4a33fe(0x19c)])==null?void 0x0:_0x1c5469[_0x4a33fe(0x153)]())||''),this['_mcpConnectionController'][_0x4a33fe(0x1ce)]({'Authorization':'Bearer\x20'+((_0x51c3d6=_0x5374c6[_0x4a33fe(0x19c)])==null?void 0x0:_0x51c3d6[_0x4a33fe(0x153)]())}),this['_messageService'][_0x4a33fe(0x194)]({'type':_0x9ab182[_0x4a33fe(0x21d)]['Success'],'content':this[_0x4a33fe(0xd3)]['t'](_0x4a33fe(0x18a))}),setTimeout(()=>{this['_dialogService']['close'](_0x3197cf);},0x320);}catch(_0x488ede){this[_0x4a33fe(0x109)]['error'](_0x4a33fe(0x1d4),_0x488ede),this[_0x4a33fe(0x222)][_0x4a33fe(0x194)]({'type':_0x9ab182[_0x4a33fe(0x21d)][_0x4a33fe(0x20e)],'content':this[_0x4a33fe(0xd3)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x4a33fe(0x1c6)](!0x1);}}),(this[_0x30dcbf(0x177)]=_0x5b8114,this[_0x30dcbf(0x179)]=_0x516ae7,this[_0x30dcbf(0x15b)]=_0x512857,this[_0x30dcbf(0x13c)]=_0x45da18,this[_0x30dcbf(0x23a)]=_0x217d94,this[_0x30dcbf(0x222)]=_0x41bf23,this[_0x30dcbf(0x1dd)]=_0x9fc74e,this[_0x30dcbf(0xd3)]=_0x5747df,this['_logService']=_0x2946e9,this[_0x30dcbf(0x218)]=_0x16724f,this[_0x30dcbf(0x23d)](),this[_0x30dcbf(0x207)](),this[_0x30dcbf(0xfa)]());}[_0x521dcb(0x1cd)](){const _0x38fb27=_0x521dcb,_0x18067e=this[_0x38fb27(0x15b)][_0x38fb27(0x244)](_0x3b1e6a);_0x18067e!=null&&_0x18067e['showDeveloperTools']&&this[_0x38fb27(0x23a)]['open']({'id':_0x3197cf,'title':{'title':this[_0x38fb27(0xd3)]['t']('mcpConfig.title')},'children':{'label':_0x38fb27(0x19f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x44ef6f=_0x38fb27;this[_0x44ef6f(0x23a)][_0x44ef6f(0xe7)](_0x3197cf);}});}[_0x521dcb(0xd8)](){const _0x303066=_0x521dcb;return this[_0x303066(0x135)][_0x303066(0x1d3)];}['_registerComponent'](){const _0x45ae60=_0x521dcb;this[_0x45ae60(0x15d)](this[_0x45ae60(0x1dd)]['register'](_0x45ae60(0x19f),this[_0x45ae60(0x223)]()));}[_0x521dcb(0x223)](){const _0xf25430=_0x521dcb;return _0x278cd6[_0xf25430(0x217)](()=>{const _0x10127c=_0xf25430;var _0x193e59,_0x46c26e,_0x148fc8;return _0x5338aa[_0x10127c(0x1c3)](_0x41f3c2,{'config':this[_0x10127c(0x10b)]['value'],'mcpCoreConfig':this[_0x10127c(0x135)][_0x10127c(0x1d3)],'currentApiKey$':this[_0x10127c(0xd4)],'onSave':this['_handleConfigSave'],'loading':this[_0x10127c(0x149)][_0x10127c(0x1d3)],'connectionStatus$':(_0x193e59=this[_0x10127c(0x218)])==null?void 0x0:_0x193e59[_0x10127c(0x11b)],'connectionError$':(_0x46c26e=this[_0x10127c(0x218)])==null?void 0x0:_0x46c26e[_0x10127c(0x11f)],'currentSessionId$':(_0x148fc8=this[_0x10127c(0x218)])==null?void 0x0:_0x148fc8[_0x10127c(0xf6)]});},this['_injector']);}[_0x521dcb(0x23d)](){const _0x4bda27=_0x521dcb;this['disposeWithMe'](this[_0x4bda27(0x15b)][_0x4bda27(0x246)](_0x2aadaf['MCP_PLUGIN_CONFIG_KEY'])[_0x4bda27(0x113)](_0x158227=>{const _0xde309d=_0x4bda27;this[_0xde309d(0x135)][_0xde309d(0x1c6)](_0x158227||{});}));const _0x6cc564=this[_0x4bda27(0x15b)][_0x4bda27(0x244)](_0x2aadaf[_0x4bda27(0x147)]);this[_0x4bda27(0x135)][_0x4bda27(0x1c6)](_0x6cc564||{}),this[_0x4bda27(0x15d)](this[_0x4bda27(0x15b)][_0x4bda27(0x246)](_0x3b1e6a)[_0x4bda27(0x113)](_0x5e9393=>{const _0x4053e6=_0x4bda27;this[_0x4053e6(0x10b)][_0x4053e6(0x1c6)](_0x5e9393||{});}));const _0x503c45=this[_0x4bda27(0x15b)]['getConfig'](_0x3b1e6a);this['_config$']['next'](_0x503c45||{});}async[_0x521dcb(0x207)](){const _0x1b7e44=_0x521dcb,_0x4a07ce=this[_0x1b7e44(0x15b)][_0x1b7e44(0x244)](_0x3b1e6a);if(!(_0x4a07ce!=null&&_0x4a07ce[_0x1b7e44(0x243)]))return;const _0x4dc5bf=await this[_0x1b7e44(0x13c)][_0x1b7e44(0x1a5)](_0x5ec9b7);_0x4dc5bf&&(this[_0x1b7e44(0x218)][_0x1b7e44(0x1ce)]({'Authorization':_0x1b7e44(0x184)+_0x4dc5bf}),this['_apiKey$'][_0x1b7e44(0x1c6)](_0x4dc5bf));}async[_0x521dcb(0x105)](_0x831cd6){const _0x2b2e4e=_0x521dcb;if(!_0x831cd6[_0x2b2e4e(0x19c)]||_0x831cd6[_0x2b2e4e(0x19c)][_0x2b2e4e(0x153)]()[_0x2b2e4e(0x136)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2b2e4e(0x24a))};if(_0x831cd6['apiKey']['trim']()[_0x2b2e4e(0x136)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2b2e4e(0x1a7))};try{const _0x2fb0a5=await this[_0x2b2e4e(0x177)][_0x2b2e4e(0x12b)](_0x2aadaf[_0x2b2e4e(0x14b)])[_0x2b2e4e(0x1f6)](_0x831cd6['apiKey'][_0x2b2e4e(0x153)]());return _0x2fb0a5['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2fb0a5[_0x2b2e4e(0x220)]||this[_0x2b2e4e(0xd3)]['t'](_0x2b2e4e(0x1e4))};}catch(_0x30f987){return console[_0x2b2e4e(0x21a)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x30f987),{'isValid':!0x0};}}},_0x7de47f[_0x521dcb(0x1f0)]=_0x3bd93a([_0x56eacf(0x0,_0x34158d[_0x521dcb(0x1c1)](_0x34158d[_0x521dcb(0x1f8)])),_0x56eacf(0x1,_0x278cd6[_0x521dcb(0x148)]),_0x56eacf(0x2,_0x34158d[_0x521dcb(0x166)]),_0x56eacf(0x3,_0x34158d[_0x521dcb(0x14a)]),_0x56eacf(0x4,_0x278cd6['IDialogService']),_0x56eacf(0x5,_0x278cd6[_0x521dcb(0x1b0)]),_0x56eacf(0x6,_0x34158d[_0x521dcb(0x1c1)](_0x278cd6[_0x521dcb(0x1df)])),_0x56eacf(0x7,_0x34158d[_0x521dcb(0x1c1)](_0x34158d[_0x521dcb(0x1bb)])),_0x56eacf(0x8,_0x34158d[_0x521dcb(0x162)]),_0x56eacf(0x9,_0x34158d[_0x521dcb(0x1c1)](_0x2aadaf[_0x521dcb(0x14b)]))],_0x7de47f['MCPConfigUIController']);const _0x4f532a={'id':_0x521dcb(0x165),'type':_0x34158d['CommandType']['COMMAND'],'handler':async(_0x162395,_0x596809)=>(_0x162395[_0x521dcb(0x12b)](_0x7de47f[_0x521dcb(0x1f0)])[_0x521dcb(0x1cd)](),!0x0)};function _0x138cf4(_0x34e0fe,_0x2d8aa5){const _0x499cf6=_0x521dcb;switch(_0x34e0fe){case _0x2aadaf[_0x499cf6(0x16d)]['DISCONNECTED']:return'mcpStatus.disconnected';case _0x2aadaf[_0x499cf6(0x16d)]['CONNECTING']:return _0x499cf6(0x131);case _0x2aadaf['MCPConnectionStatus'][_0x499cf6(0x151)]:return _0x499cf6(0x1eb);case _0x2aadaf['MCPConnectionStatus']['FAILED']:switch(_0x2d8aa5){case _0x2aadaf['MCPConnectionError'][_0x499cf6(0x17a)]:return'mcpStatus.unauthorized';case _0x2aadaf[_0x499cf6(0x139)][_0x499cf6(0x186)]:return'mcpStatus.sessionOccupied';case _0x2aadaf['MCPConnectionError'][_0x499cf6(0x1a9)]:return _0x499cf6(0x110);case _0x2aadaf[_0x499cf6(0x139)]['MAX_RETRIES_EXCEEDED']:return _0x499cf6(0x161);default:return _0x499cf6(0xea);}case _0x2aadaf[_0x499cf6(0x16d)][_0x499cf6(0x200)]:return _0x499cf6(0x1de);default:return _0x499cf6(0x22b);}}function _0x1bb9e4(_0x4ae1e8,_0xab74e3,_0x1ef6df,_0xdd277a=!0x0){const _0x55fbf5=_0x521dcb,_0x33e7cc=_0x138cf4(_0x4ae1e8,_0xab74e3),_0x3bbd23=_0x1ef6df['t'](_0x33e7cc);return _0xdd277a?_0x4ae1e8===_0x2aadaf[_0x55fbf5(0x16d)]['DISCONNECTED']&&_0xab74e3===_0x2aadaf['MCPConnectionError'][_0x55fbf5(0x17a)]?_0x3bbd23+_0x55fbf5(0x158)+_0x1ef6df['t']('mcpStatus.clickToConfigure'):_0x4ae1e8===_0x2aadaf[_0x55fbf5(0x16d)][_0x55fbf5(0x151)]?''+_0x3bbd23:_0x4ae1e8===_0x2aadaf['MCPConnectionStatus'][_0x55fbf5(0x169)]||_0x4ae1e8===_0x2aadaf[_0x55fbf5(0x16d)][_0x55fbf5(0x188)]?_0x3bbd23+'\x20-\x20'+_0x1ef6df['t']('mcpStatus.clickToConnect'):_0x3bbd23:_0x3bbd23;}function _0x35a926(_0x134a8b){const _0xbf8c97=_0x521dcb;switch(_0x134a8b){case _0x2aadaf[_0xbf8c97(0x16d)][_0xbf8c97(0x151)]:return _0xbf8c97(0x22c);case _0x2aadaf['MCPConnectionStatus'][_0xbf8c97(0xeb)]:case _0x2aadaf[_0xbf8c97(0x16d)]['RETRYING']:return'univer-text-yellow-500';case _0x2aadaf[_0xbf8c97(0x16d)][_0xbf8c97(0x188)]:case _0x2aadaf[_0xbf8c97(0x16d)][_0xbf8c97(0x169)]:return _0xbf8c97(0x127);default:return _0xbf8c97(0x1d1);}}function _0x32d30b(_0x194125){const _0x3c81e0=_0x521dcb,{status$:_0x4c9b98,error$:_0x247c62,onConfigure:_0xa48758,showClickable:_0x266074=!0x0}=_0x194125,_0x5a38a0=_0x278cd6[_0x3c81e0(0xe4)](_0x4c9b98,_0x2aadaf['MCPConnectionStatus']['DISCONNECTED']),_0x21c798=_0x278cd6[_0x3c81e0(0xe4)](_0x247c62,_0x2aadaf[_0x3c81e0(0x139)][_0x3c81e0(0x10e)]),_0x13c3a1=_0x278cd6[_0x3c81e0(0x1c5)](_0x34158d[_0x3c81e0(0x1bb)]),_0x45c184=_0x5a38a0===_0x2aadaf[_0x3c81e0(0x16d)]['CONNECTED'];_0x5a38a0===_0x2aadaf[_0x3c81e0(0x16d)][_0x3c81e0(0xeb)]||_0x2aadaf[_0x3c81e0(0x16d)][_0x3c81e0(0x200)];const _0x2181be=_0x13c3a1['t'](_0x138cf4(_0x5a38a0,_0x21c798)),_0x2045de=_0x1bb9e4(_0x5a38a0,_0x21c798,_0x13c3a1,_0x266074),_0x505b93=_0x35a926(_0x5a38a0),_0x4e6905=_0x45c184?_0x5338aa[_0x3c81e0(0x1c3)](_0x1909b6,{}):_0x5338aa[_0x3c81e0(0x1c3)](_0x2b6cc0,{}),_0x3781de=_0x2277a3[_0x3c81e0(0x16c)](()=>{_0x266074&&_0xa48758&&_0xa48758();},[_0x266074,_0xa48758]);function _0x143808(){const _0x57fb04=_0x3c81e0;return _0x5338aa[_0x57fb04(0x23e)](_0x57fb04(0x1f2),{'className':_0x9ab182[_0x57fb04(0x191)]('univer-flex\x20univer-items-center',_0x266074&&_0xa48758&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x57fb04(0x1d6),'onClick':_0x266074&&_0xa48758?_0x3781de:void 0x0,'children':[_0x5338aa['jsx'](_0x57fb04(0x1f2),{'className':_0x9ab182[_0x57fb04(0x191)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x505b93),'children':_0x4e6905}),_0x5338aa[_0x57fb04(0x1c3)](_0x57fb04(0x1f2),{'className':_0x57fb04(0xe0),'children':_0x2181be})]});}return _0x5338aa[_0x3c81e0(0x1c3)](_0x9ab182[_0x3c81e0(0x248)],{'title':_0x2045de,'placement':_0x3c81e0(0x125),'children':_0x143808()});}var _0x3b52b9=Object['getOwnPropertyDescriptor'],_0x1c9187=(_0x2ff3c2,_0x1a4ac7,_0x42f0e5,_0x2ce6af)=>{for(var _0x43bc47=_0x2ce6af>0x1?void 0x0:_0x2ce6af?_0x3b52b9(_0x1a4ac7,_0x42f0e5):_0x1a4ac7,_0x976210=_0x2ff3c2['length']-0x1,_0x1c9ee2;_0x976210>=0x0;_0x976210--)(_0x1c9ee2=_0x2ff3c2[_0x976210])&&(_0x43bc47=_0x1c9ee2(_0x43bc47)||_0x43bc47);return _0x43bc47;},_0x554da0=(_0x4d6a1f,_0x180967)=>(_0xbc98cb,_0x497c34)=>_0x180967(_0xbc98cb,_0x497c34,_0x4d6a1f);_0x7de47f[_0x521dcb(0x24c)]=class extends _0x34158d[_0x521dcb(0x12e)]{constructor(_0x1b7330,_0x148ebc,_0xaa4357,_0x15717f){const _0x20e510=_0x521dcb;super(),this[_0x20e510(0x177)]=_0x1b7330,this[_0x20e510(0x130)]=_0x148ebc,this[_0x20e510(0x179)]=_0xaa4357,this[_0x20e510(0x15b)]=_0x15717f,this[_0x20e510(0x129)](),this[_0x20e510(0xda)]();}[_0x521dcb(0x129)](){const _0x344808=_0x521dcb,_0x16e7f3=this[_0x344808(0x15b)][_0x344808(0x244)](_0x3b1e6a);_0x16e7f3!=null&&_0x16e7f3[_0x344808(0x243)]&&(this['_connectionController'][_0x344808(0xe5)]=!0x1);}[_0x521dcb(0xda)](){const _0x603451=_0x521dcb,_0x4b2a1f=this[_0x603451(0x15b)][_0x603451(0x244)](_0x3b1e6a);(_0x4b2a1f==null?void 0x0:_0x4b2a1f['showStatus'])!==!0x1&&this[_0x603451(0x15d)](this[_0x603451(0x179)]['registerComponent'](_0x278cd6['BuiltInUIPart'][_0x603451(0x124)],()=>{const _0x1b3fe7=_0x603451;var _0x508993;return _0x278cd6['connectInjector'](_0x571820({'status$':this[_0x1b3fe7(0x130)][_0x1b3fe7(0x11b)],'error$':this[_0x1b3fe7(0x130)][_0x1b3fe7(0x11f)],'onConfigure':()=>this[_0x1b3fe7(0x1ec)](),'showClickable':(_0x508993=_0x4b2a1f==null?void 0x0:_0x4b2a1f['showDeveloperTools'])!=null?_0x508993:!0x1}),this[_0x1b3fe7(0x177)]);}));}['_handleConfigure'](){const _0x2fad7a=_0x521dcb;this[_0x2fad7a(0x177)][_0x2fad7a(0x12b)](_0x7de47f[_0x2fad7a(0x1f0)])[_0x2fad7a(0x1cd)]();}},_0x7de47f[_0x521dcb(0x24c)]=_0x1c9187([_0x554da0(0x0,_0x34158d[_0x521dcb(0x1c1)](_0x34158d[_0x521dcb(0x1f8)])),_0x554da0(0x1,_0x34158d[_0x521dcb(0x1c1)](_0x2aadaf['MCPConnectionController'])),_0x554da0(0x2,_0x278cd6['IUIPartsService']),_0x554da0(0x3,_0x34158d[_0x521dcb(0x166)])],_0x7de47f[_0x521dcb(0x24c)]);function _0x571820(_0x159de5){const {status$:_0x29e0b3,error$:_0x4d218a,onConfigure:_0x293136,showClickable:_0x5e2016}=_0x159de5;return function(){const _0x3ed4ad=_0x209d;return _0x5338aa[_0x3ed4ad(0x1c3)](_0x32d30b,{'status$':_0x29e0b3,'error$':_0x4d218a,'onConfigure':_0x293136,'showClickable':_0x5e2016});};}function _0xaee01c(_0x37ee8d){const _0x34c034=_0x521dcb;return{'id':_0x4f532a['id'],'type':_0x278cd6['MenuItemType']['BUTTON'],'icon':_0x34c034(0xe9),'title':_0x34c034(0x18c),'tooltip':'mcpConfig.title'};}const _0x3b8928={[_0x278cd6[_0x521dcb(0x18d)][_0x521dcb(0xf5)]]:{[_0x4f532a['id']]:{'order':0xa,'menuItemFactory':_0xaee01c}}};var _0x2cdd09=Object['getOwnPropertyDescriptor'],_0xfe8557=(_0x569b40,_0x2446dd,_0x116439,_0x5dd382)=>{for(var _0x106541=_0x5dd382>0x1?void 0x0:_0x5dd382?_0x2cdd09(_0x2446dd,_0x116439):_0x2446dd,_0x55733d=_0x569b40['length']-0x1,_0x147ba5;_0x55733d>=0x0;_0x55733d--)(_0x147ba5=_0x569b40[_0x55733d])&&(_0x106541=_0x147ba5(_0x106541)||_0x106541);return _0x106541;},_0xda9996=(_0x3125c5,_0x356429)=>(_0x2708a1,_0x1a0482)=>_0x356429(_0x2708a1,_0x1a0482,_0x3125c5);_0x7de47f['MCPUIMenuController']=class extends _0x34158d[_0x521dcb(0x12e)]{constructor(_0x24a845,_0x1bab2f){const _0x6d5654=_0x521dcb;super(),this[_0x6d5654(0x12f)]=_0x24a845,this[_0x6d5654(0x202)]=_0x1bab2f,this[_0x6d5654(0x236)](),this[_0x6d5654(0x117)]();}[_0x521dcb(0x236)](){const _0x26e6b4=_0x521dcb;[_0x4f532a][_0x26e6b4(0x1b4)](_0xd1e8e7=>{const _0xb023ce=_0x26e6b4;this[_0xb023ce(0x15d)](this['_commandService'][_0xb023ce(0x1ad)](_0xd1e8e7));});}[_0x521dcb(0x117)](){const _0x15721e=_0x521dcb;this[_0x15721e(0x202)]['mergeMenu'](_0x3b8928);}},_0x7de47f[_0x521dcb(0x159)]=_0xfe8557([_0xda9996(0x0,_0x34158d[_0x521dcb(0x1c9)]),_0xda9996(0x1,_0x278cd6[_0x521dcb(0xd5)])],_0x7de47f[_0x521dcb(0x159)]);const _0x4bf37e={'mcpStatus':{'disconnected':_0x521dcb(0x214),'connecting':_0x521dcb(0x18b),'connected':_0x521dcb(0x1d5),'failed':_0x521dcb(0x212),'retrying':'MCP\x20Retrying...','unknown':_0x521dcb(0x128),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x521dcb(0x1b5),'networkError':_0x521dcb(0x1f9),'maxRetriesExceeded':_0x521dcb(0xd0),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x521dcb(0x1f7)},'mcpConfig':{'title':_0x521dcb(0x175),'description':_0x521dcb(0x197),'apiKey':_0x521dcb(0x187),'apiKeyPlaceholder':_0x521dcb(0x101),'apiKeyHint':_0x521dcb(0x15a),'enableAuth':_0x521dcb(0x14e),'enableAuthHint':_0x521dcb(0xd9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x521dcb(0x1b7),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x521dcb(0x112),'configStep1':_0x521dcb(0xdc),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x521dcb(0x237),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x521dcb(0x196),'save':'Save\x20Configuration','saving':_0x521dcb(0x1e6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x521dcb(0x13e),'configSaved':_0x521dcb(0x1ef),'configError':_0x521dcb(0x1fe),'apiApplyInfo':{'title':_0x521dcb(0x19e),'description':_0x521dcb(0x1f3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x521dcb(0x10c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x521dcb(0x152),'invalidConfig':_0x521dcb(0x1dc),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x521dcb(0x17f),'connected':_0x521dcb(0x1b9),'failed':_0x521dcb(0x155),'retrying':_0x521dcb(0x226)},'connectionError':{'unauthorized':_0x521dcb(0x103),'sessionOccupied':_0x521dcb(0x193),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x521dcb(0x19a)}}},_0x452a3a={'mcpStatus':{'disconnected':_0x521dcb(0x1cb),'connecting':'MCP\x20连接中...','connected':_0x521dcb(0x13b),'failed':'MCP\x20连接失败','retrying':_0x521dcb(0xe1),'unknown':_0x521dcb(0x100),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x521dcb(0x21c),'maxRetriesExceeded':_0x521dcb(0x14c),'clickToConnect':_0x521dcb(0x14d),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x521dcb(0x20b),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x521dcb(0xed),'enableAuthHint':_0x521dcb(0x1b1),'connectionInfo':_0x521dcb(0x24d),'mcpClientConfig':_0x521dcb(0x24d),'configInstructions':_0x521dcb(0x114),'configStepTitle':'配置步骤:','configStep1':_0x521dcb(0x11c),'configStep2':_0x521dcb(0x111),'configStep3':_0x521dcb(0x224),'sessionId':_0x521dcb(0x235),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x521dcb(0x241),'configParameters':_0x521dcb(0xde),'maxRetries':_0x521dcb(0x102),'save':_0x521dcb(0x10d),'saving':_0x521dcb(0x1db),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x521dcb(0x104),'configError':_0x521dcb(0x21b),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x521dcb(0x1d0),'univerAiLabel':_0x521dcb(0x254),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x521dcb(0x118),'apiKeyTooShort':_0x521dcb(0x1a2),'invalidConfig':_0x521dcb(0x198),'invalidApiKey':_0x521dcb(0x189)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x521dcb(0x1cc),'failed':_0x521dcb(0x15e),'retrying':_0x521dcb(0x215)},'connectionError':{'unauthorized':_0x521dcb(0xfb),'sessionOccupied':_0x521dcb(0x252),'networkError':_0x521dcb(0x1bf),'maxRetriesExceeded':_0x521dcb(0x17c)}}};var _0x2d7d10=Object[_0x521dcb(0x123)],_0x2fdf2b=Object[_0x521dcb(0x255)],_0x40f320=(_0x2b0816,_0x4cd1da,_0x543364)=>_0x4cd1da in _0x2b0816?_0x2d7d10(_0x2b0816,_0x4cd1da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x543364}):_0x2b0816[_0x4cd1da]=_0x543364,_0x593778=(_0x1d2f5b,_0x298715,_0x35a10f,_0x4d93d1)=>{const _0x1cca6a=_0x521dcb;for(var _0x1dfd0f=_0x4d93d1>0x1?void 0x0:_0x4d93d1?_0x2fdf2b(_0x298715,_0x35a10f):_0x298715,_0x508161=_0x1d2f5b[_0x1cca6a(0x136)]-0x1,_0x457273;_0x508161>=0x0;_0x508161--)(_0x457273=_0x1d2f5b[_0x508161])&&(_0x1dfd0f=_0x457273(_0x1dfd0f)||_0x1dfd0f);return _0x1dfd0f;},_0x26e03d=(_0x55340c,_0x1184f2)=>(_0x8442cb,_0x5bd494)=>_0x1184f2(_0x8442cb,_0x5bd494,_0x55340c),_0x32570f=(_0x1ccc24,_0x20ce7b,_0x12cb8d)=>_0x40f320(_0x1ccc24,_0x20ce7b+'',_0x12cb8d);_0x7de47f[_0x521dcb(0xee)]=class extends _0x34158d[_0x521dcb(0x167)]{constructor(_0x780624=_0xe77e22,_0x316b6a,_0x1715aa,_0xb0b449,_0x27c674,_0x5ceb9e){const _0x70fb09=_0x521dcb;super(),this[_0x70fb09(0x141)]=_0x780624,this[_0x70fb09(0x177)]=_0x316b6a,this[_0x70fb09(0x15b)]=_0x1715aa,this[_0x70fb09(0x179)]=_0xb0b449,this['_localStorageService']=_0x27c674,this[_0x70fb09(0xd3)]=_0x5ceb9e;const {..._0x41562d}=_0x34158d[_0x70fb09(0x195)]({},_0xe77e22,this['_config']);this[_0x70fb09(0x15b)][_0x70fb09(0x1da)](_0x3b1e6a,_0x41562d);}async[_0x521dcb(0x12d)](){const _0x1a58a4=_0x521dcb,_0x6ad713=[[_0x7de47f[_0x1a58a4(0x24c)]],[_0x7de47f[_0x1a58a4(0x1f0)]],[_0x7de47f['MCPUIMenuController']]];this[_0x1a58a4(0x177)][_0x1a58a4(0x225)](_0x2afcbe['ISocketService'])||_0x6ad713[_0x1a58a4(0x176)]([_0x2afcbe[_0x1a58a4(0x13d)],{'useClass':_0x2afcbe[_0x1a58a4(0x1af)]}]),_0x6ad713['forEach'](_0x418046=>this[_0x1a58a4(0x177)][_0x1a58a4(0x1f4)](_0x418046)),this['_injector'][_0x1a58a4(0x12b)](_0x7de47f[_0x1a58a4(0x24c)]),this[_0x1a58a4(0x177)][_0x1a58a4(0x12b)](_0x7de47f[_0x1a58a4(0x1f0)]),this['_injector'][_0x1a58a4(0x12b)](_0x7de47f[_0x1a58a4(0x159)]);}},_0x32570f(_0x7de47f[_0x521dcb(0xee)],_0x521dcb(0x13f),_0x521dcb(0x120)),_0x7de47f[_0x521dcb(0xee)]=_0x593778([_0x34158d['DependentOn'](_0x2aadaf[_0x521dcb(0x10f)]),_0x26e03d(0x1,_0x34158d[_0x521dcb(0x1c1)](_0x34158d[_0x521dcb(0x1f8)])),_0x26e03d(0x2,_0x34158d[_0x521dcb(0x166)]),_0x26e03d(0x3,_0x278cd6[_0x521dcb(0x148)]),_0x26e03d(0x4,_0x34158d[_0x521dcb(0x14a)]),_0x26e03d(0x5,_0x34158d[_0x521dcb(0x1c1)](_0x34158d[_0x521dcb(0x1bb)]))],_0x7de47f['UniverMCPUIPlugin']),_0x7de47f['MCPConfigPanel']=_0x41f3c2,_0x7de47f['MCPStatusDisplay']=_0x32d30b,_0x7de47f['OpenMCPConfigPanelCommand']=_0x4f532a,_0x7de47f[_0x521dcb(0x20c)]=_0x4bf37e,_0x7de47f[_0x521dcb(0x11a)]=_0x452a3a,Object[_0x521dcb(0x123)](_0x7de47f,Symbol['toStringTag'],{'value':_0x521dcb(0x11e)});}));function _0x209d(_0x43ce98,_0x478348){_0x43ce98=_0x43ce98-0xcf;const _0x56a36c=_0x56a3();let _0x209d45=_0x56a36c[_0x43ce98];return _0x209d45;}function _0x56a3(){const _0x2d8470=['univer-text-red-500','MCP\x20Unknown\x20Status','_initAutoConnect','mcpConfig.configStep3','get','mcpConfig.apiKeyHint','onStarting','Disposable','_commandService','_connectionController','mcpStatus.connecting','createElement','tag','mcpConfig.connectionStatus.retrying','_mcpCoreConfig$','length','rxjs','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCPConnectionError','@univerjs-pro/mcp','MCP\x20已连接','_localStorageService','ISocketService','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','pluginName','mcpConfig.apiApplyInfo.description','_config','40Hcjfln','1855887lQbwJe','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionStatus.failed','CheckMarkIcon','MCP_PLUGIN_CONFIG_KEY','IUIPartsService','_loading$','ILocalStorageService','MCPConnectionController','MCP:\x20超出最大重试次数','点击连接\x20MCP','Enable\x20Authentication','help-icon','url(#$1','CONNECTED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','trim','string','Connection\x20Failed','<API_KEY>','univer-bg-blue-500','\x20-\x20','MCPUIMenuController','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_configService','mcpConfig.note2','disposeWithMe','连接失败','univer-flex\x20univer-items-center\x20univer-gap-3','UniverProMcpUi','mcpStatus.maxRetriesExceeded','ILogService','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcp-ui.command.openConfigPanel','IConfigService','Plugin','UniverUi','DISCONNECTED','exports','UniverIcon','useCallback','MCPConnectionStatus','univer-shrink-0\x20univer-text-red-500','univer-text-sm\x20univer-font-medium','mcpServerUrl','mcpConfig.note1','mcp.apiKey','round','univer-text-xs\x20univer-text-gray-500','MCP\x20Configuration','push','_injector','univer-size-2\x20univer-rounded-full','_uiPartsService','UNAUTHORIZED','object','超出最大重试次数,请稍后再试','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Connecting...','@univerjs/core','mcpConfig.apiApplyInfo.title','https://mcp.univer.ai/mcp/?univer_session_id=','none','Bearer\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','SESSION_ID_OCCUPIED','API\x20Key','FAILED','API\x20密钥无效,请检查密钥是否正确','mcpConfig.configSaved','MCP\x20Connecting...','mcpConfig.title','RibbonStartGroup','mcpConfig.configParameters','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-blue-600','clsx','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','show','merge','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','配置无效','symbol','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','path','apiKey','CloseIcon','What\x20is\x20API\x20Key?','MCPConfigPanel','univer-text-white','https://console.univer.ai','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.connectionError.unauthorized','current','getItem','univer-space-y-3','mcpConfig.validation.apiKeyTooShort','univer-flex-1','NETWORK_ERROR','url(#on-line-icon_clip0_910_349)','children','MAX_RETRIES_EXCEEDED','registerCommand','mcp-config-dialog','WebSocketService','IMessageService','启用身份验证以获得安全连接','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','evenodd','forEach','MCP:\x20Session\x20ID\x20Occupied','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Client\x20Configuration','1956150mffNTP','Connected','useState','LocaleService','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.apiKey','M0\x200H16V16H0z','网络连接错误,请检查您的网络连接','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','Inject','@univerjs/design','jsx','attrs','useDependency','next','http','@univerjs/ui','ICommandService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20已断开','已连接','showConfigPanel','__setCustomHeaders','univer-bg-green-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-text-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','value','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20Connected','button','130ilBxnd','_handleConfigSave','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','setConfig','保存中...','Invalid\x20configuration','_componentManager','mcpStatus.retrying','ComponentManager','amd','https://console.univer.plus','random','UniverCore','mcpConfig.validation.invalidApiKey','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','Saving...','mcpConfig.configStep2','assign','0\x200\x2016\x2016','colorChannel1','mcpStatus.connected','_handleConfigure','mcpConfig.validation.invalidConfig','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Configuration\x20saved\x20successfully','MCPConfigUIController','_blank','div','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','add','on-line-icon','validateApiKey','Click\x20to\x20configure\x20MCP','Injector','MCP:\x20Network\x20Error','OnLineIcon','<SESSION_ID>','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Failed\x20to\x20save\x20configuration','mcpConfig.description','RETRYING','univer-shrink-0\x20univer-text-blue-500','_menuManagerService','mcpConfig.authorizationDescription','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','http://www.w3.org/2000/svg','pre','_loadStoredApiKey','mcpConfig.connectionStatus.connected','isValid','react','API\x20密钥','enUS','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Error','mask','UniverDesign','univer-min-w-0\x20univer-flex-1','MCP\x20Connection\x20Failed','text','MCP\x20Disconnected','重连中...','toString','connectInjector','_mcpConnectionController','4EmKXUw','warn','配置保存失败','MCP:\x20网络错误','MessageType','Configuration\x20Notes:','1em','error','univer.plus','_messageService','_createConfigPanelComponent','重启您的\x20MCP\x20客户端以使配置生效','has','Retrying...','@univerjs/network','on-line-icon_clip0_910_349','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','close-icon','mcpStatus.unknown','univer-text-green-500','642981RQSurP','react/jsx-runtime','univer-space-y-2','displayName','includes','defIds','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','clipPath','会话ID','_initializeCommands','API\x20key\x20with\x20Bearer\x20prefix.','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_dialogService','svg','off-line-icon_clip0_910_343','_initConfigSync','jsxs','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','off-line-icon','带有\x20Bearer\x20前缀的\x20API\x20密钥。','defs','showDeveloperTools','getConfig','errorMessage','subscribeConfigValue$','4967456ldDmLt','Tooltip','setItem','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionError.maxRetriesExceeded','MCPConnectionUIController','MCP\x20客户端配置','21708VUhLnW','BehaviorSubject','Button','univer-flex\x20univer-gap-3','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.getStarted','Univer\x20AI\x20控制台','getOwnPropertyDescriptor','idSuffix','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP:\x20Max\x20Retries\x20Exceeded','univer-text-gray-400','translate(.97)','_localeService','_apiKey$','IMenuManagerService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.sessionIdDescription','getCurrentConfig','Enable\x20authentication\x20for\x20secure\x20connections','_initStatusComponent','white','Copy\x20the\x20JSON\x20configuration\x20below','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','配置参数:','xlink:href','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20重连中...','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.connectionInfo','useObservable','enableAutoConnect','substring','close','mcpConfig.connectionStatus.disconnected','MenuIcon','mcpStatus.failed','CONNECTING','395ZiTBDY','启用身份验证','UniverMCPUIPlugin','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','function','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','entries','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','OTHERS','sessionId$','12ajKdsx','Authorization:','univer.ai','_registerComponent','权限验证失败,请检查您的\x20API\x20密钥','univer_session_id:','mcp-ui.config','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-font-medium','MCP\x20状态未知','Enter\x20your\x20API\x20key','最大重试次数','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','配置保存成功','_validateConfig','HelpIcon','currentColor','mcpConfig.saving','_logService','mcpConfig.configStepTitle','_config$','Get\x20your\x20API\x20key\x20in\x20seconds','保存配置','NONE','UniverMCPPlugin','mcpStatus.networkError','将配置添加到您的\x20MCP\x20客户端设置文件中','Configuration\x20Steps:','subscribe','将以下配置添加到您的\x20MCP\x20客户端设置中:','useRef','forwardRef','_initializeMenus','API\x20密钥不能为空','9122YuPVIv','zhCN','connectionStatus$','复制以下\x20JSON\x20配置','fill','Module','connectionError$','MCP_UI_PLUGIN','span','1097442BJaCes','defineProperty','HEADER_MENU','bottom','React'];_0x56a3=function(){return _0x2d8470;};return _0x56a3();}
|
|
1
|
+
function _0x75d8(_0x125c86,_0x2cbc2c){_0x125c86=_0x125c86-0x121;const _0x4079c1=_0x4079();let _0x75d8e9=_0x4079c1[_0x125c86];return _0x75d8e9;}function _0x4079(){const _0x65d9d7=['toString','registerCommand','Connection\x20Failed','off-line-icon','CONNECTING','Enter\x20your\x20API\x20key','MCP\x20状态未知','UniverProMcpUi','univer-bg-green-500','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.validation.apiKeyTooShort','_menuManagerService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','UniverNetwork','Disposable','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','next','univer-shrink-0\x20univer-text-red-500','createElement','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','http','Button','http://www.w3.org/2000/svg','mcpConfig.configInstructions','getConfig','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20配置','@univerjs/ui','useRef','mcpStatus.unauthorized','1em','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','connectionError$','assign','MCP:\x20Session\x20ID\x20Occupied','univer-size-2\x20univer-rounded-full','mcpConfig.configStepTitle','showStatus','MCP\x20Unknown\x20Status','_commandService','attrs','IDialogService','402208pffjzN','evenodd','onStarting','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MessageType','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','CONNECTED','OTHERS','4kkSVhD','SESSION_ID_OCCUPIED','setConfig','Success','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.connected','UniverUi','MCPConnectionUIController','IUIPartsService','@univerjs/design','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','_validateConfig','配置保存失败','Enable\x20Authentication','validateApiKey','mcpConfig.apiKeyPlaceholder','MCPConfigUIController','API\x20Key','mcpStatus.connecting','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MCP:\x20未授权','MenuIcon','univer.plus','univer-bg-gray-500','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Tooltip','MCP\x20Connection\x20Failed','univer-text-blue-600','univer-min-w-0\x20univer-flex-1','univer.ai','MCP:\x20Network\x20Error','mcpConfig.apiApplyInfo.getStarted','ICommandService','FAILED','_configService','round','warn','show','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Authorization:','UniverMCPUIPlugin','MCP:\x20网络错误','subscribe','7OyJlsD','Configuration\x20saved\x20successfully','none','IConfigService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','启用身份验证以获得安全连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','on-line-icon','_dialogService','mcp-ui.config','MAX_RETRIES_EXCEEDED','isValid','UNAUTHORIZED','已连接','React','mcpConfig.apiApplyInfo.title','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','use','add','amd','MCP\x20Configuration','univer-bg-red-500','6990006fkKZUF','mcpStatus.unknown','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20Connected','get','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','univer-size-4','mcpConfig.configStep3','function','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.validation.apiKeyRequired','Copy\x20the\x20JSON\x20configuration\x20below','mcp.apiKey','UniverIcon','register','univer-space-y-3','univer-text-red-500','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex-1','连接中...','_uiPartsService','_loading$','univer-font-medium','M0\x200H16V16H0z','网络连接错误,请检查您的网络连接','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','Connecting...','univer-flex\x20univer-items-start\x20univer-gap-3','displayName','univer-flex\x20univer-items-start\x20univer-gap-2','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','apiKey','_apiKey$','has','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','NONE','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Connected','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','univer-flex\x20univer-items-center','_config','Inject','mcpConfig.validation.invalidApiKey','Configuration\x20Notes:','currentColor','defs','Injector','mcpConfig.configParameters','ILocalStorageService','svg','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','univer-flex\x20univer-items-center\x20univer-gap-2','_registerComponent','colorChannel1','RETRYING','UniverDesign','trim','mcpConfig.note1','useState','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','getOwnPropertyDescriptor','MCP\x20Disconnected','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','@univerjs/core','COMMAND','Max\x20Retries','您的\x20API\x20密钥将在此浏览器中本地存储','未连接','mcpConfig.connectionError.unauthorized','includes','univer-space-y-2','_handleConfigure','最大重试次数','您的\x20API\x20密钥安全存储在本地存储中','4OyqPvl','connectionStatus$','HEADER_MENU','RibbonStartGroup','MCPConfigPanel','MCPConnectionController','@univerjs/network','_connectionController','univer-flex\x20univer-items-center\x20univer-gap-3','stringify','mcpStatus.clickToConfigure','setItem','Disconnected','0\x200\x2016\x2016','div','MCP\x20Retrying...','mcpConfig.configError','_initConfigSync','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-xs\x20univer-text-gray-500','rxjs','mcpConfig.sessionIdDescription','react','url(#on-line-icon_clip0_910_349)','Module','mcpConfig.connectionStatus.retrying','clsx','substring','tag','current','UniverMCPPlugin','useDependency','off-line-icon_clip0_910_343','button','react/jsx-runtime','_initAutoConnect','Univer\x20AI\x20控制台','ComponentManager','univer-text-sm\x20univer-font-medium','CommandType','univer-mr-2\x20univer-flex\x20univer-text-xl','_injector','Univer\x20AI\x20Console','MCP\x20连接失败','_messageService','_initStatusComponent','mcpConfig.description','MCPConnectionStatus','Click\x20to\x20connect\x20MCP','useObservable','mcpConfig.connectionError.maxRetriesExceeded','配置保存成功','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','replace','重启您的\x20MCP\x20客户端以使配置生效','_componentManager','mcpConfig.note2','_blank','disposeWithMe','univerjs-icon\x20univerjs-icon-','span','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','bottom','MCP\x20连接中...','mcpConfig.title','配置无效','jsxs','url(#$1','sessionId$','保存配置','配置步骤:','registerComponent','7675263hhwfGz','10zjAPJT','on-line-icon_clip0_910_349','_logService','IMenuManagerService','Input','connectInjector','MCP:\x20会话\x20ID\x20已被占用','MCPUIMenuController','保存中...','What\x20is\x20API\x20Key?','配置参数:','MCPConnectionError','什么是\x20API\x20密钥?','超出最大重试次数,请稍后再试','<API_KEY>','Enable\x20authentication\x20for\x20secure\x20connections','symbol','\x20-\x20','univer-text-white','MCP\x20已断开','BuiltInUIPart','_initializeCommands','close-icon','showConfigPanel','将以下配置添加到您的\x20MCP\x20客户端设置中:','Bearer\x20','showDeveloperTools','univer-text-gray-500','univer-space-y-5','forwardRef','Retrying...','toStringTag','DISCONNECTED','enUS','ILogService','subscribeConfigValue$','_createConfigPanelComponent','mcpStatus.retrying','API\x20key\x20with\x20Bearer\x20prefix.','_localeService','点击配置\x20MCP','merge','mcpConfig.validation.invalidConfig','defineProperty','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configStep1','Invalid\x20configuration','mergeMenu','children','univer-text-xs\x20univer-text-gray-600','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','text','univer-space-y-4','13354077fcPuHN','_config$','mcpStatus.disconnected','mcpConfig.connectionStatus.failed','noopener\x20noreferrer','_handleConfigSave','univer-text-gray-400','MCP_PLUGIN_CONFIG_KEY','object','API\x20密钥','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','BehaviorSubject','mcpConfig.connectionError.sessionOccupied','open','univer-bg-blue-500','mcpConfig.connectionError.networkError','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcp-config-dialog','Error','value','zhCN','clipPath','idSuffix','mcpConfig.apiKey','check-mark-icon','Configuration\x20Parameters:','mcpServerUrl','mask','string','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','map','CheckMarkIcon','univer-text-green-500','Plugin','Configuration\x20Steps:','mcpConfig.configStep2','mcpConfig.connectionStatus.connected','1901475npncRn','getCurrentConfig','univer-shrink-0\x20univer-text-blue-500','https://console.univer.ai','OnLineIcon','path','WebSocketService','_loadStoredApiKey','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','white','2813776DbivXQ','push','_mcpCoreConfig$','length','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','forEach','MCP:\x20Unauthorized','LocaleService','_localStorageService','jsx','NETWORK_ERROR','getItem','几秒钟内获取您的\x20API\x20密钥','pluginName','removeItem','url(#off-line-icon_clip0_910_343)','error','CloseIcon','xlink:href','mcpConfig.configSaved','entries','Failed\x20to\x20save\x20configuration','_mcpConnectionController','0\x200\x2017\x2016','__setCustomHeaders','BUTTON','请输入您的\x20API\x20密钥','76134GUgqbc','mcpConfig.apiKeyHint','Saving...','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'];_0x4079=function(){return _0x65d9d7;};return _0x4079();}(function(_0x2c6b50,_0x1a4823){const _0x257459=_0x75d8,_0x1af24e=_0x2c6b50();while(!![]){try{const _0x742f44=parseInt(_0x257459(0x26f))/0x1*(-parseInt(_0x257459(0x267))/0x2)+parseInt(_0x257459(0x238))/0x3*(parseInt(_0x257459(0x16f))/0x4)+parseInt(_0x257459(0x213))/0x5+parseInt(_0x257459(0x121))/0x6+-parseInt(_0x257459(0x29c))/0x7*(-parseInt(_0x257459(0x21d))/0x8)+-parseInt(_0x257459(0x1b7))/0x9*(-parseInt(_0x257459(0x1b8))/0xa)+-parseInt(_0x257459(0x1ed))/0xb;if(_0x742f44===_0x1a4823)break;else _0x1af24e['push'](_0x1af24e['shift']());}catch(_0x39dac0){_0x1af24e['push'](_0x1af24e['shift']());}}}(_0x4079,0xb8c2c),function(_0x163181,_0x317a2d){const _0x236b29=_0x75d8;typeof exports==_0x236b29(0x1f5)&&typeof module<'u'?_0x317a2d(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==_0x236b29(0x129)&&define[_0x236b29(0x2af)]?define([_0x236b29(0x1fd),_0x236b29(0x164),_0x236b29(0x191),'@univerjs-pro/mcp',_0x236b29(0x278),_0x236b29(0x258),'rxjs',_0x236b29(0x185),_0x236b29(0x175)],_0x317a2d):(_0x163181=typeof globalThis<'u'?globalThis:_0x163181||self,_0x317a2d(_0x163181[_0x236b29(0x243)]={},_0x163181['UniverCore'],_0x163181[_0x236b29(0x2aa)],_0x163181['UniverProMcp'],_0x163181[_0x236b29(0x15c)],_0x163181[_0x236b29(0x275)],_0x163181[_0x236b29(0x183)],_0x163181['React'],_0x163181[_0x236b29(0x249)]));}(this,function(_0xb91ea1,_0x7cc0f4,_0x3a4e8c,_0x39eab2,_0x1a8f42,_0x166521,_0x4f0d59,_0x36ed3d,_0x447dfa){'use strict';const _0x27a626=_0x75d8;var _0x78aebd=Object[_0x27a626(0x1e3)],_0x25e920=(_0x36240b,_0x4c2b3b,_0x206d88)=>_0x4c2b3b in _0x36240b?_0x78aebd(_0x36240b,_0x4c2b3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x206d88}):_0x36240b[_0x4c2b3b]=_0x206d88,_0x1752be=(_0xc60177,_0x39eab9,_0x1883ca)=>_0x25e920(_0xc60177,typeof _0x39eab9!=_0x27a626(0x1c8)?_0x39eab9+'':_0x39eab9,_0x1883ca);function _0x56692c({ref:_0x2dcd67,..._0x21bb02}){const _0x29e1fd=_0x27a626,{icon:_0x40686d,id:_0x4018b2,className:_0x239339,extend:_0x280248,..._0x43b119}=_0x21bb02,_0x18f6aa=(_0x29e1fd(0x1aa)+_0x4018b2+'\x20'+(_0x239339||''))[_0x29e1fd(0x15d)](),_0x1a271b=_0x36ed3d[_0x29e1fd(0x259)]('_'+_0xb1b864());return _0x2876d7(_0x40686d,''+_0x4018b2,{'defIds':_0x40686d['defIds'],'idSuffix':_0x1a271b[_0x29e1fd(0x18c)]},{'ref':_0x2dcd67,'className':_0x18f6aa,..._0x43b119},_0x280248);}function _0x2876d7(_0x2f8932,_0x3b101e,_0x33597f,_0x454f01,_0x370962){const _0x258b3a=_0x27a626;return _0x36ed3d['createElement'](_0x2f8932['tag'],{'key':_0x3b101e,..._0x138e4f(_0x2f8932,_0x33597f,_0x370962),..._0x454f01},(_0x32278c(_0x2f8932,_0x33597f)['children']||[])[_0x258b3a(0x20c)]((_0x127a12,_0x469d13)=>_0x2876d7(_0x127a12,_0x3b101e+'-'+_0x2f8932['tag']+'-'+_0x469d13,_0x33597f,void 0x0,_0x370962)));}function _0x138e4f(_0x391ec2,_0x380297,_0x42d20b){const _0x44368a=_0x27a626,_0x52648b={..._0x391ec2['attrs']};_0x42d20b!=null&&_0x42d20b[_0x44368a(0x15a)]&&_0x52648b['fill']===_0x44368a(0x15a)&&(_0x52648b['fill']=_0x42d20b[_0x44368a(0x15a)]),_0x391ec2[_0x44368a(0x18b)]===_0x44368a(0x209)&&_0x52648b['id']&&(_0x52648b['id']=_0x52648b['id']+_0x380297[_0x44368a(0x204)]),Object[_0x44368a(0x231)](_0x52648b)[_0x44368a(0x222)](([_0x434aae,_0x528753])=>{const _0x529490=_0x44368a;_0x434aae===_0x529490(0x209)&&typeof _0x528753==_0x529490(0x20a)&&(_0x52648b[_0x434aae]=_0x528753[_0x529490(0x1a4)](/url\(#(.*)\)/,_0x529490(0x1b2)+_0x380297['idSuffix']+')'));});const {defIds:_0x3e07f5}=_0x380297;return!_0x3e07f5||_0x3e07f5[_0x44368a(0x220)]===0x0||(_0x391ec2[_0x44368a(0x18b)]===_0x44368a(0x2ad)&&_0x52648b[_0x44368a(0x22f)]&&(_0x52648b['xlink:href']=_0x52648b[_0x44368a(0x22f)]+_0x380297[_0x44368a(0x204)]),Object['entries'](_0x52648b)[_0x44368a(0x222)](([_0x23eb2a,_0x2c3264])=>{const _0x2670a1=_0x44368a;typeof _0x2c3264=='string'&&(_0x52648b[_0x23eb2a]=_0x2c3264['replace'](/url\(#(.*)\)/,_0x2670a1(0x1b2)+_0x380297[_0x2670a1(0x204)]+')'));})),_0x52648b;}function _0x32278c(_0x30857e,_0x47061d){const _0x4e6f3d=_0x27a626;var _0x4498f1;const {defIds:_0x50a6c0}=_0x47061d;return!_0x50a6c0||_0x50a6c0[_0x4e6f3d(0x220)]===0x0?_0x30857e:_0x30857e[_0x4e6f3d(0x18b)]===_0x4e6f3d(0x152)&&((_0x4498f1=_0x30857e[_0x4e6f3d(0x1e8)])!=null&&_0x4498f1[_0x4e6f3d(0x220)])?{..._0x30857e,'children':_0x30857e[_0x4e6f3d(0x1e8)]['map'](_0x5cc4eb=>typeof _0x5cc4eb['attrs']['id']==_0x4e6f3d(0x20a)&&_0x50a6c0&&_0x50a6c0[_0x4e6f3d(0x16a)](_0x5cc4eb[_0x4e6f3d(0x265)]['id'])?{..._0x5cc4eb,'attrs':{..._0x5cc4eb[_0x4e6f3d(0x265)],'id':_0x5cc4eb['attrs']['id']+_0x47061d[_0x4e6f3d(0x204)]}}:_0x5cc4eb)}:_0x30857e;}function _0xb1b864(){const _0x47b87b=_0x27a626;return Math['random']()[_0x47b87b(0x23c)](0x24)[_0x47b87b(0x18a)](0x2,0x8);}_0x56692c[_0x27a626(0x13f)]=_0x27a626(0x12e);const _0x786104={'tag':_0x27a626(0x156),'attrs':{'xmlns':_0x27a626(0x252),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x27a626(0x25b)},'children':[{'tag':'path','attrs':{'fill':_0x27a626(0x151),'d':_0x27a626(0x23b),'fillRule':_0x27a626(0x268),'clipRule':'evenodd'}}]},_0x10b778=_0x36ed3d[_0x27a626(0x1d5)](function(_0x53e84b,_0x12afe2){const _0x3c8178=_0x27a626;return _0x36ed3d[_0x3c8178(0x24e)](_0x56692c,Object[_0x3c8178(0x25e)]({},_0x53e84b,{'id':_0x3c8178(0x206),'ref':_0x12afe2,'icon':_0x786104}));});_0x10b778[_0x27a626(0x13f)]=_0x27a626(0x20d);const _0x5cc1c7={'tag':_0x27a626(0x156),'attrs':{'xmlns':_0x27a626(0x252),'fill':_0x27a626(0x29e),'viewBox':'0\x200\x2016\x2016','width':_0x27a626(0x25b),'height':_0x27a626(0x25b)},'children':[{'tag':_0x27a626(0x218),'attrs':{'fill':_0x27a626(0x151),'d':_0x27a626(0x20b)}}]},_0x4c53f2=_0x36ed3d['forwardRef'](function(_0x10dbc6,_0x2a4561){const _0x32ed6b=_0x27a626;return _0x36ed3d[_0x32ed6b(0x24e)](_0x56692c,Object['assign']({},_0x10dbc6,{'id':_0x32ed6b(0x1ce),'ref':_0x2a4561,'icon':_0x5cc1c7}));});_0x4c53f2['displayName']=_0x27a626(0x22e);const _0xb3fa56={'tag':_0x27a626(0x156),'attrs':{'xmlns':_0x27a626(0x252),'fill':_0x27a626(0x29e),'viewBox':'0\x200\x2016\x2016','width':_0x27a626(0x25b),'height':'1em'},'children':[{'tag':_0x27a626(0x218),'attrs':{'fill':_0x27a626(0x151),'d':_0x27a626(0x24f)}},{'tag':_0x27a626(0x218),'attrs':{'fill':'currentColor','d':_0x27a626(0x13c)}},{'tag':_0x27a626(0x218),'attrs':{'fill':_0x27a626(0x151),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x27a626(0x268),'clipRule':_0x27a626(0x268)}}]},_0x535a49=_0x36ed3d[_0x27a626(0x1d5)](function(_0x1688e9,_0x16e277){const _0xe844e1=_0x27a626;return _0x36ed3d[_0xe844e1(0x24e)](_0x56692c,Object[_0xe844e1(0x25e)]({},_0x1688e9,{'id':'help-icon','ref':_0x16e277,'icon':_0xb3fa56}));});_0x535a49[_0x27a626(0x13f)]='HelpIcon';const _0x82e626={'tag':_0x27a626(0x156),'attrs':{'xmlns':_0x27a626(0x252),'fill':'none','viewBox':_0x27a626(0x17c),'width':_0x27a626(0x25b),'height':_0x27a626(0x25b)},'children':[{'tag':'g','attrs':{'clipPath':_0x27a626(0x22c)},'children':[{'tag':_0x27a626(0x218),'attrs':{'stroke':_0x27a626(0x151),'d':_0x27a626(0x1a3),'strokeLinecap':_0x27a626(0x292),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x27a626(0x152),'attrs':{},'children':[{'tag':_0x27a626(0x203),'attrs':{'id':_0x27a626(0x18f)},'children':[{'tag':'path','attrs':{'fill':_0x27a626(0x21c),'d':_0x27a626(0x13a)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x3b0b3b=_0x36ed3d[_0x27a626(0x1d5)](function(_0x34412f,_0x58e229){const _0xf41b8b=_0x27a626;return _0x36ed3d[_0xf41b8b(0x24e)](_0x56692c,Object['assign']({},_0x34412f,{'id':_0xf41b8b(0x23f),'ref':_0x58e229,'icon':_0x82e626}));});_0x3b0b3b[_0x27a626(0x13f)]='OffLineIcon';const _0xa873af={'tag':_0x27a626(0x156),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x27a626(0x29e),'viewBox':_0x27a626(0x234),'width':'1em','height':_0x27a626(0x25b)},'children':[{'tag':'g','attrs':{'clipPath':_0x27a626(0x186)},'children':[{'tag':_0x27a626(0x218),'attrs':{'stroke':_0x27a626(0x151),'d':_0x27a626(0x295),'strokeLinecap':_0x27a626(0x292),'strokeLinejoin':_0x27a626(0x292),'strokeWidth':1.2}}]},{'tag':_0x27a626(0x152),'attrs':{},'children':[{'tag':_0x27a626(0x203),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x27a626(0x218),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x27a626(0x1b9)]},_0x51ab62=_0x36ed3d[_0x27a626(0x1d5)](function(_0x8b7613,_0x3cdbc7){const _0x38075f=_0x27a626;return _0x36ed3d[_0x38075f(0x24e)](_0x56692c,Object['assign']({},_0x8b7613,{'id':_0x38075f(0x2a3),'ref':_0x3cdbc7,'icon':_0xa873af}));});_0x51ab62[_0x27a626(0x13f)]=_0x27a626(0x217);function _0x3d9fbe(_0x25f829){const _0x16e456=_0x27a626;var _0x452e5e,_0x42054a;const {mcpCoreConfig:_0xeea795,onSave:_0x5c8851,loading:_0x485809=!0x1,config:_0x2a7b28,connectionStatus$:_0x182777,connectionError$:_0x252cbb,currentApiKey$:_0x9e9f09,currentSessionId$:_0x4903af}=_0x25f829,_0xb259f8=_0x166521[_0x16e456(0x18e)](_0x7cc0f4['LocaleService']),_0xda0e55=_0x166521[_0x16e456(0x1a0)](_0x182777,_0x39eab2[_0x16e456(0x19e)][_0x16e456(0x1d8)]),_0x47ea62=_0x166521[_0x16e456(0x1a0)](_0x252cbb,_0x39eab2[_0x16e456(0x1c3)][_0x16e456(0x148)]),_0xf1c322=_0x166521[_0x16e456(0x1a0)](_0x4903af,''),_0x5f4f5a=_0x166521[_0x16e456(0x1a0)](_0x9e9f09,''),[_0x221905,_0x44d024]=_0x36ed3d[_0x16e456(0x15f)](_0x5f4f5a||''),_0x4735fb=!0x0,_0x2622bc=_0x2a7b28['showDeveloperTools']&&_0xeea795[_0x16e456(0x208)]&&(_0xeea795['mcpServerUrl'][_0x16e456(0x16a)](_0x16e456(0x285))||_0xeea795[_0x16e456(0x208)][_0x16e456(0x16a)]('univer.ai')),_0x4b4f42=(_0x452e5e=_0xeea795[_0x16e456(0x208)])==null?void 0x0:_0x452e5e['includes'](_0x16e456(0x285)),_0x34a3cf=(_0x42054a=_0xeea795['mcpServerUrl'])==null?void 0x0:_0x42054a[_0x16e456(0x16a)](_0x16e456(0x28c)),_0x33d66e=_0x4b4f42?'https://console.univer.plus':_0x16e456(0x216),_0x2545db=_0x2a7b28[_0x16e456(0x1d2)]&&(_0x4b4f42||_0x34a3cf),[_0x27c3d8,_0x1a6a78]=_0x36ed3d[_0x16e456(0x15f)](!_0x221905['trim']()),_0x44c6cc=(_0x3d052a,_0x38b58a)=>{const _0x2dd10e=_0x16e456;if(_0x38b58a===_0x39eab2[_0x2dd10e(0x1c3)][_0x2dd10e(0x2a8)])return _0x2dd10e(0x287);switch(_0x3d052a){case _0x39eab2[_0x2dd10e(0x19e)]['CONNECTED']:return _0x2dd10e(0x26a);case _0x39eab2['MCPConnectionStatus']['CONNECTING']:case _0x39eab2[_0x2dd10e(0x19e)][_0x2dd10e(0x15b)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x39eab2['MCPConnectionStatus'][_0x2dd10e(0x290)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x171b18=(_0x52fefe,_0x17bab0)=>{const _0x3e2c98=_0x16e456;if(_0x17bab0===_0x39eab2[_0x3e2c98(0x1c3)][_0x3e2c98(0x2a8)])return _0x3e2c98(0x2b1);switch(_0x52fefe){case _0x39eab2[_0x3e2c98(0x19e)][_0x3e2c98(0x26d)]:return _0x3e2c98(0x244);case _0x39eab2['MCPConnectionStatus']['CONNECTING']:case _0x39eab2['MCPConnectionStatus'][_0x3e2c98(0x15b)]:return _0x3e2c98(0x1fb);case _0x39eab2[_0x3e2c98(0x19e)]['FAILED']:return _0x3e2c98(0x2b1);default:return _0x3e2c98(0x286);}},_0x2ec57b=_0x3275aa=>{const _0x35aebf=_0x16e456;switch(_0x3275aa){case _0x39eab2[_0x35aebf(0x19e)]['CONNECTED']:return _0xb259f8['t'](_0x35aebf(0x212));case _0x39eab2[_0x35aebf(0x19e)][_0x35aebf(0x240)]:return _0xb259f8['t']('mcpConfig.connectionStatus.connecting');case _0x39eab2[_0x35aebf(0x19e)][_0x35aebf(0x290)]:return _0xb259f8['t'](_0x35aebf(0x1f0));case _0x39eab2[_0x35aebf(0x19e)]['RETRYING']:return _0xb259f8['t'](_0x35aebf(0x188));default:return _0xb259f8['t']('mcpConfig.connectionStatus.disconnected');}},_0x16aaf0=_0x22f914=>{const _0x328fcc=_0x16e456;switch(_0x22f914){case _0x39eab2[_0x328fcc(0x1c3)][_0x328fcc(0x2a8)]:return _0xb259f8['t'](_0x328fcc(0x169));case _0x39eab2[_0x328fcc(0x1c3)][_0x328fcc(0x270)]:return _0xb259f8['t'](_0x328fcc(0x1f9));case _0x39eab2['MCPConnectionError'][_0x328fcc(0x227)]:return _0xb259f8['t'](_0x328fcc(0x1fc));case _0x39eab2[_0x328fcc(0x1c3)][_0x328fcc(0x2a6)]:return _0xb259f8['t'](_0x328fcc(0x1a1));default:return'';}},_0x5cfafa=_0x36ed3d['useCallback'](()=>{const _0x27363e={..._0xeea795,'apiKey':_0x221905['trim'](),'enableAuth':_0x4735fb};_0x5c8851(_0x27363e);},[_0xeea795,_0x221905,_0x4735fb,_0x5c8851]),_0x45fc37=_0x221905[_0x16e456(0x15d)]()[_0x16e456(0x220)]>0x0;return _0x3a4e8c[_0x16e456(0x1b1)]('div',{'className':_0x16e456(0x147),'children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x2ac),'children':_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x177),'children':[_0x3a4e8c['jsx'](_0x16e456(0x17d),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x3a4e8c['jsx'](_0x16e456(0x1ab),{'className':_0x16e456(0x1ca),'children':'⚙'})}),_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'children':_0x3a4e8c[_0x16e456(0x226)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0xb259f8['t'](_0x16e456(0x19d))})})]})}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x1a8f42[_0x16e456(0x189)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x44c6cc(_0xda0e55,_0x47ea62)),'children':_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x158),'children':[_0x3a4e8c['jsx'](_0x16e456(0x17d),{'className':_0x1a8f42[_0x16e456(0x189)](_0x16e456(0x260),_0x171b18(_0xda0e55,_0x47ea62))}),_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x1ab),{'className':_0x16e456(0x195),'children':_0x2ec57b(_0xda0e55)})]})}),_0x47ea62!==_0x39eab2[_0x16e456(0x1c3)][_0x16e456(0x148)]&&(_0xda0e55===_0x39eab2[_0x16e456(0x19e)][_0x16e456(0x290)]||_0x47ea62===_0x39eab2['MCPConnectionError'][_0x16e456(0x2a8)])&&_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x1e4),'children':_0x3a4e8c[_0x16e456(0x1b1)]('div',{'className':_0x16e456(0x140),'children':[_0x3a4e8c[_0x16e456(0x226)]('span',{'className':_0x16e456(0x24d),'children':'⚠️'}),_0x3a4e8c[_0x16e456(0x226)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x16aaf0(_0x47ea62)})]})})]}),_0x3a4e8c['jsx'](_0x16e456(0x17d),{'className':_0x16e456(0x297),'children':_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x1d4),'children':[_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x16b),'children':[_0x3a4e8c[_0x16e456(0x1b1)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x1ab),{'children':'🔑'}),'\x20',_0xb259f8['t'](_0x16e456(0x205)),_0x3a4e8c['jsx']('span',{'className':_0x16e456(0x131),'children':'*'}),_0x2622bc&&_0x3a4e8c[_0x16e456(0x226)]('a',{'className':_0x16e456(0x279),'title':_0xb259f8['t'](_0x16e456(0x2ab)),'role':_0x16e456(0x190),'onClick':()=>_0x1a6a78(!0x0),'children':_0x3a4e8c[_0x16e456(0x226)](_0x535a49,{})})]}),_0x3a4e8c[_0x16e456(0x226)](_0x1a8f42[_0x16e456(0x1bc)],{'type':_0x16e456(0x1eb),'placeholder':_0xb259f8['t'](_0x16e456(0x27e)),'value':_0x221905,'disabled':_0x485809,'autoComplete':'off','onChange':_0x44d024}),_0x3a4e8c[_0x16e456(0x226)]('p',{'className':_0x16e456(0x182),'children':_0xb259f8['t'](_0x16e456(0x239))})]}),_0x2622bc&&_0x27c3d8&&_0x3a4e8c[_0x16e456(0x1b1)]('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x3a4e8c[_0x16e456(0x226)]('a',{'className':_0x16e456(0x157),'role':_0x16e456(0x190),'onClick':()=>_0x1a6a78(!0x1),'children':_0x3a4e8c[_0x16e456(0x226)](_0x4c53f2,{'className':_0x16e456(0x127)})}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x256),'children':[_0x3a4e8c['jsx'](_0x16e456(0x17d),{'className':_0x16e456(0x282),'children':_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x1ab),{'className':_0x16e456(0x28a),'children':'🚀'})}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x135),'children':[_0x3a4e8c[_0x16e456(0x226)]('h4',{'className':_0x16e456(0x123),'children':_0xb259f8['t']('mcpConfig.apiApplyInfo.title')}),_0x3a4e8c[_0x16e456(0x226)]('p',{'className':_0x16e456(0x26c),'children':_0xb259f8['t']('mcpConfig.apiApplyInfo.description')}),_0x3a4e8c['jsx'](_0x16e456(0x17d),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x2545db&&_0x3a4e8c[_0x16e456(0x1b1)]('a',{'className':_0x16e456(0x126),'href':_0x33d66e,'target':_0x16e456(0x1a8),'rel':_0x16e456(0x1f1),'children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x1ab),{'children':'🤖'}),_0xb259f8['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x1ab),{'className':_0x16e456(0x1f3),'children':'↗'})]})}),_0x3a4e8c['jsxs'](_0x16e456(0x17d),{'className':_0x16e456(0x163),'children':['✨','\x20',_0xb259f8['t'](_0x16e456(0x28e))]})]})]})]}),_0x2a7b28['showDeveloperTools']&&_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x296),'children':[_0x3a4e8c['jsxs']('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x3a4e8c[_0x16e456(0x226)]('span',{'children':'🔗'}),'\x20',_0xb259f8['t']('mcpConfig.connectionInfo')]}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x1ec),'children':[_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x130),'children':[_0x3a4e8c[_0x16e456(0x226)]('p',{'className':_0x16e456(0x1e9),'children':_0xb259f8['t'](_0x16e456(0x253))}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x16b),'children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xb259f8['t'](_0x16e456(0x261))}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x158),'children':[_0x3a4e8c[_0x16e456(0x226)]('span',{'className':_0x16e456(0x1ea),'children':'1'}),_0xb259f8['t'](_0x16e456(0x1e5))]}),_0x3a4e8c[_0x16e456(0x1b1)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3a4e8c[_0x16e456(0x226)]('span',{'className':_0x16e456(0x1ea),'children':'2'}),_0xb259f8['t'](_0x16e456(0x211))]}),_0x3a4e8c['jsxs'](_0x16e456(0x17d),{'className':_0x16e456(0x158),'children':[_0x3a4e8c[_0x16e456(0x226)]('span',{'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'}),_0xb259f8['t'](_0x16e456(0x128))]})]})]})]}),_0x3a4e8c[_0x16e456(0x1b1)]('div',{'className':'univer-space-y-2','children':[_0x3a4e8c[_0x16e456(0x226)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x3a4e8c[_0x16e456(0x226)]('pre',{'className':_0x16e456(0x141),'children':JSON[_0x16e456(0x178)]({'mcpServers':{'univer':{'url':_0x16e456(0x146)+(_0xf1c322||'<SESSION_ID>'),'type':_0x16e456(0x250),'headers':{'Authorization':_0x16e456(0x1d1)+(_0x221905||_0x16e456(0x1c6))}}}},null,0x2)})})]}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x130),'children':[_0x3a4e8c[_0x16e456(0x226)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xb259f8['t'](_0x16e456(0x154))}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x16b),'children':[_0x3a4e8c['jsxs']('div',{'className':_0x16e456(0x13e),'children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x248)}),_0x3a4e8c[_0x16e456(0x1b1)]('div',{'className':_0x16e456(0x28b),'children':[_0x3a4e8c['jsx'](_0x16e456(0x17d),{'className':_0x16e456(0x1ac),'children':'univer_session_id:'}),_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x182),'children':_0xb259f8['t'](_0x16e456(0x184))})]})]}),_0x3a4e8c['jsxs'](_0x16e456(0x17d),{'className':_0x16e456(0x13e),'children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x248)}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'className':_0x16e456(0x28b),'children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x1ac),'children':_0x16e456(0x298)}),_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x182),'children':_0xb259f8['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x3a4e8c[_0x16e456(0x226)](_0x1a8f42[_0x16e456(0x251)],{'onClick':_0x5cfafa,'disabled':!_0x45fc37||_0x485809,'className':_0x16e456(0x14b),'children':_0x485809?_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x1ab),{'className':_0x16e456(0x158),'children':[_0x3a4e8c['jsx'](_0x16e456(0x1ab),{'children':'⟲'}),_0xb259f8['t']('mcpConfig.saving')]}):_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x1ab),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3a4e8c[_0x16e456(0x226)](_0x10b778,{}),_0xb259f8['t']('mcpConfig.save')]})}),_0x3a4e8c[_0x16e456(0x226)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x3a4e8c['jsxs'](_0x16e456(0x17d),{'className':'univer-flex\x20univer-gap-3','children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x1ab),{'className':_0x16e456(0x215),'children':'💡'}),_0x3a4e8c['jsxs'](_0x16e456(0x17d),{'className':_0x16e456(0x24b),'children':[_0x3a4e8c[_0x16e456(0x226)](_0x16e456(0x17d),{'className':_0x16e456(0x139),'children':_0x16e456(0x150)}),_0x3a4e8c[_0x16e456(0x1b1)]('div',{'children':['•',_0xb259f8['t'](_0x16e456(0x15e))]}),_0x3a4e8c[_0x16e456(0x1b1)](_0x16e456(0x17d),{'children':['•',_0xb259f8['t'](_0x16e456(0x1a7))]})]})]})})]})})]});}const _0x4dafa1=_0x27a626(0x2a5),_0x2cc86e={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1abc99=Object[_0x27a626(0x161)],_0x1bbeb1=(_0x5dedc0,_0x53262b,_0x4f38bb,_0x5a63e0)=>{const _0x5e8c69=_0x27a626;for(var _0x1d6071=_0x5a63e0>0x1?void 0x0:_0x5a63e0?_0x1abc99(_0x53262b,_0x4f38bb):_0x53262b,_0x49dce2=_0x5dedc0[_0x5e8c69(0x220)]-0x1,_0x4f85f8;_0x49dce2>=0x0;_0x49dce2--)(_0x4f85f8=_0x5dedc0[_0x49dce2])&&(_0x1d6071=_0x4f85f8(_0x1d6071)||_0x1d6071);return _0x1d6071;},_0x15dd7a=(_0x8504cc,_0x246880)=>(_0x12c614,_0x17810a)=>_0x246880(_0x12c614,_0x17810a,_0x8504cc);const _0x40e145=_0x27a626(0x12d),_0x242ef9=_0x27a626(0x1ff);_0xb91ea1[_0x27a626(0x27f)]=class extends _0x7cc0f4[_0x27a626(0x24a)]{constructor(_0x3b6010,_0x3fb91d,_0x3892ac,_0x4ed911,_0x486c14,_0x31b42a,_0x2be299,_0x17a3a5,_0x56523b,_0x4a33f1){const _0x3f8e46=_0x27a626;super(),_0x1752be(this,_0x3f8e46(0x138),new _0x4f0d59[(_0x3f8e46(0x1f8))](!0x1)),_0x1752be(this,_0x3f8e46(0x21f),new _0x4f0d59[(_0x3f8e46(0x1f8))]({})),_0x1752be(this,_0x3f8e46(0x1ee),new _0x4f0d59[(_0x3f8e46(0x1f8))]({})),_0x1752be(this,_0x3f8e46(0x143),new _0x4f0d59['BehaviorSubject']('')),_0x1752be(this,_0x3f8e46(0x1f2),async _0x2d6ab7=>{const _0x5342d0=_0x3f8e46;var _0x59777a,_0x275dd9;this[_0x5342d0(0x138)][_0x5342d0(0x24c)](!0x0);try{const _0x3119e5=await this[_0x5342d0(0x27a)](_0x2d6ab7);if(!_0x3119e5[_0x5342d0(0x2a7)]){this[_0x5342d0(0x19b)][_0x5342d0(0x294)]({'type':_0x1a8f42[_0x5342d0(0x26b)][_0x5342d0(0x200)],'content':_0x3119e5['errorMessage']||this[_0x5342d0(0x1df)]['t'](_0x5342d0(0x1e2))});return;}_0x2d6ab7[_0x5342d0(0x142)]?await this[_0x5342d0(0x225)][_0x5342d0(0x17a)](_0x40e145,_0x2d6ab7[_0x5342d0(0x142)][_0x5342d0(0x15d)]()):await this[_0x5342d0(0x225)][_0x5342d0(0x22b)](_0x40e145),this['_apiKey$'][_0x5342d0(0x24c)](((_0x59777a=_0x2d6ab7['apiKey'])==null?void 0x0:_0x59777a[_0x5342d0(0x15d)]())||''),this[_0x5342d0(0x233)][_0x5342d0(0x235)]({'Authorization':'Bearer\x20'+((_0x275dd9=_0x2d6ab7[_0x5342d0(0x142)])==null?void 0x0:_0x275dd9[_0x5342d0(0x15d)]())}),this[_0x5342d0(0x19b)][_0x5342d0(0x294)]({'type':_0x1a8f42['MessageType'][_0x5342d0(0x272)],'content':this[_0x5342d0(0x1df)]['t'](_0x5342d0(0x230))}),setTimeout(()=>{const _0x4d7236=_0x5342d0;this[_0x4d7236(0x2a4)]['close'](_0x242ef9);},0x320);}catch(_0xb3c95e){this[_0x5342d0(0x1ba)][_0x5342d0(0x22d)](_0x5342d0(0x160),_0xb3c95e),this[_0x5342d0(0x19b)][_0x5342d0(0x294)]({'type':_0x1a8f42[_0x5342d0(0x26b)][_0x5342d0(0x200)],'content':this[_0x5342d0(0x1df)]['t'](_0x5342d0(0x17f))});}finally{this[_0x5342d0(0x138)]['next'](!0x1);}}),(this[_0x3f8e46(0x198)]=_0x3b6010,this[_0x3f8e46(0x137)]=_0x3fb91d,this['_configService']=_0x3892ac,this[_0x3f8e46(0x225)]=_0x4ed911,this['_dialogService']=_0x486c14,this[_0x3f8e46(0x19b)]=_0x31b42a,this[_0x3f8e46(0x1a6)]=_0x2be299,this['_localeService']=_0x17a3a5,this[_0x3f8e46(0x1ba)]=_0x56523b,this[_0x3f8e46(0x233)]=_0x4a33f1,this[_0x3f8e46(0x180)](),this[_0x3f8e46(0x21a)](),this[_0x3f8e46(0x159)]());}[_0x27a626(0x1cf)](){const _0x2b1e33=_0x27a626,_0x1ee667=this['_configService']['getConfig'](_0x4dafa1);_0x1ee667!=null&&_0x1ee667[_0x2b1e33(0x1d2)]&&this[_0x2b1e33(0x2a4)][_0x2b1e33(0x1fa)]({'id':_0x242ef9,'title':{'title':this[_0x2b1e33(0x1df)]['t']('mcpConfig.title')},'children':{'label':_0x2b1e33(0x173)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](_0x242ef9);}});}[_0x27a626(0x214)](){const _0x57392a=_0x27a626;return this[_0x57392a(0x21f)]['value'];}[_0x27a626(0x159)](){const _0x2e2e69=_0x27a626;this[_0x2e2e69(0x1a9)](this[_0x2e2e69(0x1a6)][_0x2e2e69(0x12f)](_0x2e2e69(0x173),this[_0x2e2e69(0x1dc)]()));}[_0x27a626(0x1dc)](){const _0x515349=_0x27a626;return _0x166521[_0x515349(0x1bd)](()=>{const _0x4ae5b5=_0x515349;var _0x4f45c0,_0xcf6e88,_0x9e234b;return _0x3a4e8c['jsx'](_0x3d9fbe,{'config':this['_config$'][_0x4ae5b5(0x201)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x4ae5b5(0x201)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x4ae5b5(0x1f2)],'loading':this[_0x4ae5b5(0x138)][_0x4ae5b5(0x201)],'connectionStatus$':(_0x4f45c0=this[_0x4ae5b5(0x233)])==null?void 0x0:_0x4f45c0[_0x4ae5b5(0x170)],'connectionError$':(_0xcf6e88=this[_0x4ae5b5(0x233)])==null?void 0x0:_0xcf6e88[_0x4ae5b5(0x25d)],'currentSessionId$':(_0x9e234b=this['_mcpConnectionController'])==null?void 0x0:_0x9e234b[_0x4ae5b5(0x1b3)]});},this[_0x515349(0x198)]);}[_0x27a626(0x180)](){const _0x579146=_0x27a626;this[_0x579146(0x1a9)](this['_configService'][_0x579146(0x1db)](_0x39eab2[_0x579146(0x1f4)])[_0x579146(0x29b)](_0xb595be=>{const _0x21d3fa=_0x579146;this[_0x21d3fa(0x21f)][_0x21d3fa(0x24c)](_0xb595be||{});}));const _0x5ca88b=this[_0x579146(0x291)]['getConfig'](_0x39eab2[_0x579146(0x1f4)]);this[_0x579146(0x21f)][_0x579146(0x24c)](_0x5ca88b||{}),this[_0x579146(0x1a9)](this[_0x579146(0x291)][_0x579146(0x1db)](_0x4dafa1)[_0x579146(0x29b)](_0x456195=>{const _0x41be3a=_0x579146;this[_0x41be3a(0x1ee)][_0x41be3a(0x24c)](_0x456195||{});}));const _0x17be3d=this[_0x579146(0x291)][_0x579146(0x254)](_0x4dafa1);this[_0x579146(0x1ee)][_0x579146(0x24c)](_0x17be3d||{});}async['_loadStoredApiKey'](){const _0x5d1911=_0x27a626,_0x2b494d=this[_0x5d1911(0x291)][_0x5d1911(0x254)](_0x4dafa1);if(!(_0x2b494d!=null&&_0x2b494d[_0x5d1911(0x1d2)]))return;const _0x4ff4fb=await this[_0x5d1911(0x225)][_0x5d1911(0x228)](_0x40e145);_0x4ff4fb&&(this[_0x5d1911(0x233)][_0x5d1911(0x235)]({'Authorization':'Bearer\x20'+_0x4ff4fb}),this[_0x5d1911(0x143)][_0x5d1911(0x24c)](_0x4ff4fb));}async[_0x27a626(0x27a)](_0x3f0c44){const _0x458512=_0x27a626;if(!_0x3f0c44[_0x458512(0x142)]||_0x3f0c44[_0x458512(0x142)][_0x458512(0x15d)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x458512(0x1df)]['t'](_0x458512(0x12b))};if(_0x3f0c44[_0x458512(0x142)][_0x458512(0x15d)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x458512(0x246))};try{const _0x426c34=await this[_0x458512(0x198)]['get'](_0x39eab2[_0x458512(0x174)])[_0x458512(0x27d)](_0x3f0c44[_0x458512(0x142)][_0x458512(0x15d)]());return _0x426c34[_0x458512(0x2a7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x426c34[_0x458512(0x22d)]||this[_0x458512(0x1df)]['t'](_0x458512(0x14f))};}catch(_0xf3cf68){return console[_0x458512(0x293)](_0x458512(0x25c),_0xf3cf68),{'isValid':!0x0};}}},_0xb91ea1[_0x27a626(0x27f)]=_0x1bbeb1([_0x15dd7a(0x0,_0x7cc0f4['Inject'](_0x7cc0f4[_0x27a626(0x153)])),_0x15dd7a(0x1,_0x166521[_0x27a626(0x277)]),_0x15dd7a(0x2,_0x7cc0f4[_0x27a626(0x29f)]),_0x15dd7a(0x3,_0x7cc0f4['ILocalStorageService']),_0x15dd7a(0x4,_0x166521[_0x27a626(0x266)]),_0x15dd7a(0x5,_0x166521['IMessageService']),_0x15dd7a(0x6,_0x7cc0f4[_0x27a626(0x14e)](_0x166521[_0x27a626(0x194)])),_0x15dd7a(0x7,_0x7cc0f4[_0x27a626(0x14e)](_0x7cc0f4[_0x27a626(0x224)])),_0x15dd7a(0x8,_0x7cc0f4[_0x27a626(0x1da)]),_0x15dd7a(0x9,_0x7cc0f4['Inject'](_0x39eab2[_0x27a626(0x174)]))],_0xb91ea1[_0x27a626(0x27f)]);const _0x1ece88={'id':'mcp-ui.command.openConfigPanel','type':_0x7cc0f4[_0x27a626(0x196)][_0x27a626(0x165)],'handler':async(_0x11e5c3,_0x60da34)=>(_0x11e5c3[_0x27a626(0x125)](_0xb91ea1[_0x27a626(0x27f)])[_0x27a626(0x1cf)](),!0x0)};function _0x3842cc(_0x4b89b4,_0xf46735){const _0x5a3699=_0x27a626;switch(_0x4b89b4){case _0x39eab2[_0x5a3699(0x19e)][_0x5a3699(0x1d8)]:return _0x5a3699(0x1ef);case _0x39eab2[_0x5a3699(0x19e)][_0x5a3699(0x240)]:return _0x5a3699(0x281);case _0x39eab2[_0x5a3699(0x19e)][_0x5a3699(0x26d)]:return _0x5a3699(0x274);case _0x39eab2[_0x5a3699(0x19e)][_0x5a3699(0x290)]:switch(_0xf46735){case _0x39eab2[_0x5a3699(0x1c3)][_0x5a3699(0x2a8)]:return _0x5a3699(0x25a);case _0x39eab2[_0x5a3699(0x1c3)][_0x5a3699(0x270)]:return'mcpStatus.sessionOccupied';case _0x39eab2[_0x5a3699(0x1c3)][_0x5a3699(0x227)]:return'mcpStatus.networkError';case _0x39eab2[_0x5a3699(0x1c3)][_0x5a3699(0x2a6)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5a3699(0x133);}case _0x39eab2['MCPConnectionStatus'][_0x5a3699(0x15b)]:return _0x5a3699(0x1dd);default:return _0x5a3699(0x122);}}function _0x1bb60b(_0xc1341,_0x35f5d1,_0xd5ba0b,_0x3fe662=!0x0){const _0x1f4f29=_0x27a626,_0x4ee568=_0x3842cc(_0xc1341,_0x35f5d1),_0x5d1d39=_0xd5ba0b['t'](_0x4ee568);return _0x3fe662?_0xc1341===_0x39eab2[_0x1f4f29(0x19e)][_0x1f4f29(0x1d8)]&&_0x35f5d1===_0x39eab2['MCPConnectionError']['UNAUTHORIZED']?_0x5d1d39+'\x20-\x20'+_0xd5ba0b['t'](_0x1f4f29(0x179)):_0xc1341===_0x39eab2[_0x1f4f29(0x19e)][_0x1f4f29(0x26d)]?''+_0x5d1d39:_0xc1341===_0x39eab2[_0x1f4f29(0x19e)][_0x1f4f29(0x1d8)]||_0xc1341===_0x39eab2['MCPConnectionStatus'][_0x1f4f29(0x290)]?_0x5d1d39+_0x1f4f29(0x1c9)+_0xd5ba0b['t']('mcpStatus.clickToConnect'):_0x5d1d39:_0x5d1d39;}function _0x12e95f(_0x48a539){const _0x6cd35=_0x27a626;switch(_0x48a539){case _0x39eab2[_0x6cd35(0x19e)][_0x6cd35(0x26d)]:return _0x6cd35(0x20e);case _0x39eab2[_0x6cd35(0x19e)]['CONNECTING']:case _0x39eab2[_0x6cd35(0x19e)][_0x6cd35(0x15b)]:return'univer-text-yellow-500';case _0x39eab2['MCPConnectionStatus'][_0x6cd35(0x290)]:case _0x39eab2[_0x6cd35(0x19e)]['DISCONNECTED']:return _0x6cd35(0x131);default:return _0x6cd35(0x1d3);}}function _0x2c272d(_0x241502){const _0xfa8b71=_0x27a626,{status$:_0x4671aa,error$:_0x1434a6,onConfigure:_0x413aab,showClickable:_0x422a67=!0x0}=_0x241502,_0x227d94=_0x166521[_0xfa8b71(0x1a0)](_0x4671aa,_0x39eab2[_0xfa8b71(0x19e)]['DISCONNECTED']),_0x3b356d=_0x166521['useObservable'](_0x1434a6,_0x39eab2[_0xfa8b71(0x1c3)][_0xfa8b71(0x148)]),_0x2bf0e1=_0x166521[_0xfa8b71(0x18e)](_0x7cc0f4[_0xfa8b71(0x224)]),_0x227bdb=_0x227d94===_0x39eab2['MCPConnectionStatus']['CONNECTED'];_0x227d94===_0x39eab2[_0xfa8b71(0x19e)][_0xfa8b71(0x240)]||_0x39eab2[_0xfa8b71(0x19e)]['RETRYING'];const _0x181c5e=_0x2bf0e1['t'](_0x3842cc(_0x227d94,_0x3b356d)),_0x379ee5=_0x1bb60b(_0x227d94,_0x3b356d,_0x2bf0e1,_0x422a67),_0x13d28a=_0x12e95f(_0x227d94),_0x16c166=_0x227bdb?_0x3a4e8c['jsx'](_0x51ab62,{}):_0x3a4e8c[_0xfa8b71(0x226)](_0x3b0b3b,{}),_0x2edbaa=_0x36ed3d['useCallback'](()=>{_0x422a67&&_0x413aab&&_0x413aab();},[_0x422a67,_0x413aab]);function _0x4cf574(){const _0x51c20d=_0xfa8b71;return _0x3a4e8c[_0x51c20d(0x1b1)](_0x51c20d(0x17d),{'className':_0x1a8f42[_0x51c20d(0x189)](_0x51c20d(0x14c),_0x422a67&&_0x413aab&&_0x51c20d(0x181)),'role':_0x51c20d(0x190),'onClick':_0x422a67&&_0x413aab?_0x2edbaa:void 0x0,'children':[_0x3a4e8c[_0x51c20d(0x226)](_0x51c20d(0x17d),{'className':_0x1a8f42[_0x51c20d(0x189)](_0x51c20d(0x197),_0x13d28a),'children':_0x16c166}),_0x3a4e8c[_0x51c20d(0x226)](_0x51c20d(0x17d),{'className':_0x51c20d(0x132),'children':_0x181c5e})]});}return _0x3a4e8c[_0xfa8b71(0x226)](_0x1a8f42[_0xfa8b71(0x288)],{'title':_0x379ee5,'placement':_0xfa8b71(0x1ad),'children':_0x4cf574()});}var _0x14ae3f=Object[_0x27a626(0x161)],_0x23d59b=(_0x51d850,_0x292524,_0x30000c,_0x5821e9)=>{const _0x2f597e=_0x27a626;for(var _0x25050c=_0x5821e9>0x1?void 0x0:_0x5821e9?_0x14ae3f(_0x292524,_0x30000c):_0x292524,_0x2a843e=_0x51d850[_0x2f597e(0x220)]-0x1,_0x2185b5;_0x2a843e>=0x0;_0x2a843e--)(_0x2185b5=_0x51d850[_0x2a843e])&&(_0x25050c=_0x2185b5(_0x25050c)||_0x25050c);return _0x25050c;},_0x4f92a7=(_0x35c734,_0xbc994d)=>(_0x181073,_0x12f499)=>_0xbc994d(_0x181073,_0x12f499,_0x35c734);_0xb91ea1[_0x27a626(0x276)]=class extends _0x7cc0f4[_0x27a626(0x24a)]{constructor(_0x39cf9e,_0x25c423,_0x5e0e2d,_0x571e19){const _0xbf113e=_0x27a626;super(),this['_injector']=_0x39cf9e,this[_0xbf113e(0x176)]=_0x25c423,this[_0xbf113e(0x137)]=_0x5e0e2d,this['_configService']=_0x571e19,this[_0xbf113e(0x192)](),this[_0xbf113e(0x19c)]();}[_0x27a626(0x192)](){const _0x3e1401=_0x27a626,_0x416cf2=this[_0x3e1401(0x291)][_0x3e1401(0x254)](_0x4dafa1);_0x416cf2!=null&&_0x416cf2['showDeveloperTools']&&(this[_0x3e1401(0x176)]['enableAutoConnect']=!0x1);}['_initStatusComponent'](){const _0x4341ca=_0x27a626,_0x22adc9=this[_0x4341ca(0x291)][_0x4341ca(0x254)](_0x4dafa1);(_0x22adc9==null?void 0x0:_0x22adc9[_0x4341ca(0x262)])!==!0x1&&this[_0x4341ca(0x1a9)](this['_uiPartsService'][_0x4341ca(0x1b6)](_0x166521[_0x4341ca(0x1cc)][_0x4341ca(0x171)],()=>{const _0x208fb3=_0x4341ca;var _0x1c8929;return _0x166521[_0x208fb3(0x1bd)](_0x475dc3({'status$':this[_0x208fb3(0x176)]['connectionStatus$'],'error$':this['_connectionController'][_0x208fb3(0x25d)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1c8929=_0x22adc9==null?void 0x0:_0x22adc9['showDeveloperTools'])!=null?_0x1c8929:!0x1}),this[_0x208fb3(0x198)]);}));}[_0x27a626(0x16c)](){const _0x3f6797=_0x27a626;this[_0x3f6797(0x198)]['get'](_0xb91ea1[_0x3f6797(0x27f)])[_0x3f6797(0x1cf)]();}},_0xb91ea1[_0x27a626(0x276)]=_0x23d59b([_0x4f92a7(0x0,_0x7cc0f4[_0x27a626(0x14e)](_0x7cc0f4[_0x27a626(0x153)])),_0x4f92a7(0x1,_0x7cc0f4[_0x27a626(0x14e)](_0x39eab2[_0x27a626(0x174)])),_0x4f92a7(0x2,_0x166521['IUIPartsService']),_0x4f92a7(0x3,_0x7cc0f4['IConfigService'])],_0xb91ea1[_0x27a626(0x276)]);function _0x475dc3(_0x93c729){const {status$:_0x4dbddc,error$:_0x2b7e29,onConfigure:_0x529758,showClickable:_0x3e87b4}=_0x93c729;return function(){const _0x5c0449=_0x75d8;return _0x3a4e8c[_0x5c0449(0x226)](_0x2c272d,{'status$':_0x4dbddc,'error$':_0x2b7e29,'onConfigure':_0x529758,'showClickable':_0x3e87b4});};}function _0x588c51(_0x227c6e){const _0xdebc0a=_0x27a626;return{'id':_0x1ece88['id'],'type':_0x166521['MenuItemType'][_0xdebc0a(0x236)],'icon':_0xdebc0a(0x284),'title':_0xdebc0a(0x1af),'tooltip':'mcpConfig.title'};}const _0x8aa6cd={[_0x166521[_0x27a626(0x172)][_0x27a626(0x26e)]]:{[_0x1ece88['id']]:{'order':0xa,'menuItemFactory':_0x588c51}}};var _0x1fdc10=Object['getOwnPropertyDescriptor'],_0x4f8d33=(_0x3dce7f,_0x585350,_0x5c5997,_0x28b0b4)=>{const _0x59b0f7=_0x27a626;for(var _0x5bace0=_0x28b0b4>0x1?void 0x0:_0x28b0b4?_0x1fdc10(_0x585350,_0x5c5997):_0x585350,_0x4d8846=_0x3dce7f[_0x59b0f7(0x220)]-0x1,_0x1452c6;_0x4d8846>=0x0;_0x4d8846--)(_0x1452c6=_0x3dce7f[_0x4d8846])&&(_0x5bace0=_0x1452c6(_0x5bace0)||_0x5bace0);return _0x5bace0;},_0x4bff68=(_0xb9d552,_0x5e3949)=>(_0x3e4599,_0x2b13b5)=>_0x5e3949(_0x3e4599,_0x2b13b5,_0xb9d552);_0xb91ea1[_0x27a626(0x1bf)]=class extends _0x7cc0f4[_0x27a626(0x24a)]{constructor(_0x42a8af,_0x3f5449){const _0x262c58=_0x27a626;super(),this[_0x262c58(0x264)]=_0x42a8af,this[_0x262c58(0x247)]=_0x3f5449,this[_0x262c58(0x1cd)](),this['_initializeMenus']();}['_initializeCommands'](){[_0x1ece88]['forEach'](_0x402b6f=>{const _0x36e2c8=_0x75d8;this[_0x36e2c8(0x1a9)](this[_0x36e2c8(0x264)][_0x36e2c8(0x23d)](_0x402b6f));});}['_initializeMenus'](){const _0x6ae7e8=_0x27a626;this[_0x6ae7e8(0x247)][_0x6ae7e8(0x1e7)](_0x8aa6cd);}},_0xb91ea1[_0x27a626(0x1bf)]=_0x4f8d33([_0x4bff68(0x0,_0x7cc0f4[_0x27a626(0x28f)]),_0x4bff68(0x1,_0x166521[_0x27a626(0x1bb)])],_0xb91ea1[_0x27a626(0x1bf)]);const _0x2cdad2={'mcpStatus':{'disconnected':_0x27a626(0x162),'connecting':'MCP\x20Connecting...','connected':_0x27a626(0x124),'failed':_0x27a626(0x289),'retrying':_0x27a626(0x17e),'unknown':_0x27a626(0x263),'unauthorized':_0x27a626(0x223),'sessionOccupied':_0x27a626(0x25f),'networkError':_0x27a626(0x28d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x27a626(0x19f),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x27a626(0x2b0),'description':_0x27a626(0x2a2),'apiKey':_0x27a626(0x280),'apiKeyPlaceholder':_0x27a626(0x241),'apiKeyHint':_0x27a626(0x21b),'enableAuth':_0x27a626(0x27c),'enableAuthHint':_0x27a626(0x1c7),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x27a626(0x210),'configStep1':_0x27a626(0x12c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x27a626(0x1f7),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x27a626(0x1de),'configParameters':_0x27a626(0x207),'maxRetries':_0x27a626(0x166),'save':'Save\x20Configuration','saving':_0x27a626(0x23a),'note1':_0x27a626(0x134),'note2':_0x27a626(0x1fe),'configSaved':_0x27a626(0x29d),'configError':_0x27a626(0x232),'apiApplyInfo':{'title':_0x27a626(0x1c1),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x27a626(0x199),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x27a626(0x273),'invalidConfig':_0x27a626(0x1e6),'invalidApiKey':_0x27a626(0x145)},'connectionStatus':{'disconnected':_0x27a626(0x17b),'connecting':_0x27a626(0x13d),'connected':_0x27a626(0x14a),'failed':_0x27a626(0x23e),'retrying':_0x27a626(0x1d6)},'connectionError':{'unauthorized':_0x27a626(0x2a0),'sessionOccupied':_0x27a626(0x221),'networkError':_0x27a626(0x12a),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x44b4a6={'mcpStatus':{'disconnected':_0x27a626(0x1cb),'connecting':_0x27a626(0x1ae),'connected':'MCP\x20已连接','failed':_0x27a626(0x19a),'retrying':'MCP\x20重连中...','unknown':_0x27a626(0x242),'unauthorized':_0x27a626(0x283),'sessionOccupied':_0x27a626(0x1be),'networkError':_0x27a626(0x29a),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x27a626(0x1e0)},'mcpConfig':{'title':_0x27a626(0x257),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x27a626(0x1f6),'apiKeyPlaceholder':_0x27a626(0x237),'apiKeyHint':_0x27a626(0x167),'enableAuth':'启用身份验证','enableAuthHint':_0x27a626(0x2a1),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x27a626(0x1d0),'configStepTitle':_0x27a626(0x1b5),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x27a626(0x245),'configStep3':_0x27a626(0x1a5),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x27a626(0x1c2),'maxRetries':_0x27a626(0x16d),'save':_0x27a626(0x1b4),'saving':_0x27a626(0x1c0),'note1':'配置更改将立即生效','note2':_0x27a626(0x16e),'configSaved':_0x27a626(0x1a2),'configError':_0x27a626(0x27b),'apiApplyInfo':{'title':_0x27a626(0x1c4),'description':_0x27a626(0x149),'univerAiLabel':_0x27a626(0x193),'getStarted':_0x27a626(0x229)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x27a626(0x1b0),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x27a626(0x168),'connecting':_0x27a626(0x136),'connected':_0x27a626(0x2a9),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x27a626(0x255),'networkError':_0x27a626(0x13b),'maxRetriesExceeded':_0x27a626(0x1c5)}}};var _0x658239=Object[_0x27a626(0x1e3)],_0x4fe875=Object[_0x27a626(0x161)],_0x3556f2=(_0x2a6104,_0x4b7e09,_0x3fbc87)=>_0x4b7e09 in _0x2a6104?_0x658239(_0x2a6104,_0x4b7e09,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbc87}):_0x2a6104[_0x4b7e09]=_0x3fbc87,_0x1c4543=(_0x3b6dcd,_0x4a4ec5,_0x4d5c76,_0x52cd89)=>{for(var _0x3134a8=_0x52cd89>0x1?void 0x0:_0x52cd89?_0x4fe875(_0x4a4ec5,_0x4d5c76):_0x4a4ec5,_0x41d9f5=_0x3b6dcd['length']-0x1,_0x1f481d;_0x41d9f5>=0x0;_0x41d9f5--)(_0x1f481d=_0x3b6dcd[_0x41d9f5])&&(_0x3134a8=_0x1f481d(_0x3134a8)||_0x3134a8);return _0x3134a8;},_0x423cd0=(_0x21556c,_0xd8ae94)=>(_0x25ee91,_0x3a5926)=>_0xd8ae94(_0x25ee91,_0x3a5926,_0x21556c),_0xe404e8=(_0x585473,_0xdefcfd,_0x144f6c)=>_0x3556f2(_0x585473,_0xdefcfd+'',_0x144f6c);_0xb91ea1[_0x27a626(0x299)]=class extends _0x7cc0f4[_0x27a626(0x20f)]{constructor(_0xa60998=_0x2cc86e,_0x2472c3,_0x5829f4,_0x1e1c59,_0x5513df,_0x3795f4){const _0x53a9b4=_0x27a626;super(),this[_0x53a9b4(0x14d)]=_0xa60998,this[_0x53a9b4(0x198)]=_0x2472c3,this['_configService']=_0x5829f4,this[_0x53a9b4(0x137)]=_0x1e1c59,this[_0x53a9b4(0x225)]=_0x5513df,this[_0x53a9b4(0x1df)]=_0x3795f4;const {..._0x55c527}=_0x7cc0f4[_0x53a9b4(0x1e1)]({},_0x2cc86e,this[_0x53a9b4(0x14d)]);this[_0x53a9b4(0x291)][_0x53a9b4(0x271)](_0x4dafa1,_0x55c527);}async[_0x27a626(0x269)](){const _0x4bfaf2=_0x27a626,_0x29d210=[[_0xb91ea1[_0x4bfaf2(0x276)]],[_0xb91ea1['MCPConfigUIController']],[_0xb91ea1[_0x4bfaf2(0x1bf)]]];this[_0x4bfaf2(0x198)][_0x4bfaf2(0x144)](_0x447dfa['ISocketService'])||_0x29d210[_0x4bfaf2(0x21e)]([_0x447dfa['ISocketService'],{'useClass':_0x447dfa[_0x4bfaf2(0x219)]}]),_0x29d210[_0x4bfaf2(0x222)](_0x54d28a=>this['_injector'][_0x4bfaf2(0x2ae)](_0x54d28a)),this['_injector']['get'](_0xb91ea1[_0x4bfaf2(0x276)]),this['_injector'][_0x4bfaf2(0x125)](_0xb91ea1[_0x4bfaf2(0x27f)]),this['_injector'][_0x4bfaf2(0x125)](_0xb91ea1[_0x4bfaf2(0x1bf)]);}},_0xe404e8(_0xb91ea1[_0x27a626(0x299)],_0x27a626(0x22a),'MCP_UI_PLUGIN'),_0xb91ea1[_0x27a626(0x299)]=_0x1c4543([_0x7cc0f4['DependentOn'](_0x39eab2[_0x27a626(0x18d)]),_0x423cd0(0x1,_0x7cc0f4[_0x27a626(0x14e)](_0x7cc0f4[_0x27a626(0x153)])),_0x423cd0(0x2,_0x7cc0f4[_0x27a626(0x29f)]),_0x423cd0(0x3,_0x166521[_0x27a626(0x277)]),_0x423cd0(0x4,_0x7cc0f4[_0x27a626(0x155)]),_0x423cd0(0x5,_0x7cc0f4[_0x27a626(0x14e)](_0x7cc0f4[_0x27a626(0x224)]))],_0xb91ea1[_0x27a626(0x299)]),_0xb91ea1[_0x27a626(0x173)]=_0x3d9fbe,_0xb91ea1['MCPStatusDisplay']=_0x2c272d,_0xb91ea1['OpenMCPConfigPanelCommand']=_0x1ece88,_0xb91ea1[_0x27a626(0x1d9)]=_0x2cdad2,_0xb91ea1[_0x27a626(0x202)]=_0x44b4a6,Object[_0x27a626(0x1e3)](_0xb91ea1,Symbol[_0x27a626(0x1d7)],{'value':_0x27a626(0x187)});}));
|