@univerjs-pro/mcp-ui 0.13.0-insiders.20251220-0a5ea4d → 0.13.0-insiders.20251223-857805c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x550a(_0x3d6dd1,_0x3d04cb){_0x3d6dd1=_0x3d6dd1-0x1ea;const _0x381afe=_0x381a();let _0x550a5b=_0x381afe[_0x3d6dd1];return _0x550a5b;}const _0x68e0aa=_0x550a;(function(_0x247614,_0x13f454){const _0x5333f4=_0x550a,_0x16d377=_0x247614();while(!![]){try{const _0x264ab6=-parseInt(_0x5333f4(0x203))/0x1+-parseInt(_0x5333f4(0x218))/0x2*(parseInt(_0x5333f4(0x1fa))/0x3)+-parseInt(_0x5333f4(0x1ed))/0x4+-parseInt(_0x5333f4(0x1ff))/0x5+parseInt(_0x5333f4(0x219))/0x6*(-parseInt(_0x5333f4(0x204))/0x7)+-parseInt(_0x5333f4(0x207))/0x8*(parseInt(_0x5333f4(0x1ec))/0x9)+-parseInt(_0x5333f4(0x200))/0xa*(-parseInt(_0x5333f4(0x205))/0xb);if(_0x264ab6===_0x13f454)break;else _0x16d377['push'](_0x16d377['shift']());}catch(_0xa3970f){_0x16d377['push'](_0x16d377['shift']());}}}(_0x381a,0x2b337));const e={'mcpStatus':{'disconnected':_0x68e0aa(0x1f2),'connecting':_0x68e0aa(0x20b),'connected':_0x68e0aa(0x1ee),'failed':_0x68e0aa(0x1ea),'retrying':_0x68e0aa(0x1f9),'unknown':_0x68e0aa(0x20e),'unauthorized':_0x68e0aa(0x214),'sessionOccupied':_0x68e0aa(0x209),'networkError':_0x68e0aa(0x1fd),'maxRetriesExceeded':_0x68e0aa(0x1f8),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':'MCP\x20설정','description':_0x68e0aa(0x1f1),'apiKey':_0x68e0aa(0x20c),'apiKeyPlaceholder':_0x68e0aa(0x206),'apiKeyHint':_0x68e0aa(0x210),'enableAuth':_0x68e0aa(0x202),'enableAuthHint':_0x68e0aa(0x1fb),'connectionInfo':_0x68e0aa(0x20a),'mcpClientConfig':_0x68e0aa(0x20a),'configInstructions':_0x68e0aa(0x20f),'configStepTitle':'설정\x20단계:','configStep1':_0x68e0aa(0x1ef),'configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x68e0aa(0x1f0),'sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':_0x68e0aa(0x1eb),'configParameters':'설정\x20매개변수:','maxRetries':_0x68e0aa(0x211),'save':_0x68e0aa(0x1f7),'saving':_0x68e0aa(0x201),'note1':_0x68e0aa(0x213),'note2':_0x68e0aa(0x1f3),'configSaved':_0x68e0aa(0x216),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':_0x68e0aa(0x1f5),'description':_0x68e0aa(0x1f4),'univerAiLabel':_0x68e0aa(0x1fe),'getStarted':_0x68e0aa(0x21a)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x68e0aa(0x215),'invalidApiKey':_0x68e0aa(0x21c)},'connectionStatus':{'disconnected':_0x68e0aa(0x1fc),'connecting':_0x68e0aa(0x212),'connected':'연결됨','failed':_0x68e0aa(0x1f6),'retrying':_0x68e0aa(0x21b)},'connectionError':{'unauthorized':_0x68e0aa(0x208),'sessionOccupied':_0x68e0aa(0x20d),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x68e0aa(0x217)}}};export{e as default};function _0x381a(){const _0x14865a=['1143280BEOpRu','MCP\x20연결됨','아래\x20JSON\x20설정\x20복사','세션\x20ID','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP\x20연결\x20끊김','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','API\x20키란\x20무엇인가요?','연결\x20실패','설정\x20저장','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20재시도\x20중...','5886yzvcCX','보안\x20연결을\x20위해\x20인증\x20활성화','연결\x20끊김','MCP:\x20네트워크\x20오류','Univer\x20AI\x20콘솔','46730ZmGBBr','243570EmCqgj','저장\x20중...','인증\x20활성화','191862MCHMmd','48503wDLavz','561GNRVaN','API\x20키를\x20입력하세요','117848nmTepv','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP:\x20세션\x20ID\x20사용\x20중','MCP\x20클라이언트\x20설정','MCP\x20연결\x20중...','API\x20키','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','MCP\x20알\x20수\x20없는\x20상태','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','최대\x20재시도\x20횟수','연결\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP:\x20인증되지\x20않음','유효하지\x20않은\x20설정','설정이\x20성공적으로\x20저장되었습니다','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','298JRPLdS','120UUtRRx','몇\x20초\x20만에\x20API\x20키\x20발급받기','재시도\x20중...','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20연결\x20실패','Bearer\x20접두사가\x20있는\x20API\x20키.','90uOFvIX'];_0x381a=function(){return _0x14865a;};return _0x381a();}
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xbe04d=_0x26ca;(function(_0x205831,_0xc000e2){const _0x3da167=_0x26ca,_0x337b06=_0x205831();while(!![]){try{const _0xd26a1d=-parseInt(_0x3da167(0x1fd))/0x1+-parseInt(_0x3da167(0x1f2))/0x2+-parseInt(_0x3da167(0x217))/0x3+-parseInt(_0x3da167(0x1f5))/0x4+-parseInt(_0x3da167(0x1fb))/0x5+parseInt(_0x3da167(0x218))/0x6*(-parseInt(_0x3da167(0x208))/0x7)+parseInt(_0x3da167(0x213))/0x8;if(_0xd26a1d===_0xc000e2)break;else _0x337b06['push'](_0x337b06['shift']());}catch(_0x5b4bc1){_0x337b06['push'](_0x337b06['shift']());}}}(_0x2f0d,0x6b364));const e={'mcpStatus':{'disconnected':_0xbe04d(0x1f4),'connecting':_0xbe04d(0x206),'connected':_0xbe04d(0x216),'failed':_0xbe04d(0x1ff),'retrying':_0xbe04d(0x1fa),'unknown':_0xbe04d(0x212),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xbe04d(0x200),'networkError':_0xbe04d(0x20e),'maxRetriesExceeded':_0xbe04d(0x1f7),'clickToConnect':_0xbe04d(0x1f6),'clickToConfigure':_0xbe04d(0x1f9)},'mcpConfig':{'title':_0xbe04d(0x1fe),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0xbe04d(0x20c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0xbe04d(0x1f1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xbe04d(0x215),'configInstructions':_0xbe04d(0x205),'configStepTitle':_0xbe04d(0x21a),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xbe04d(0x1ed),'configStep3':_0xbe04d(0x203),'sessionId':_0xbe04d(0x20a),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xbe04d(0x20b),'maxRetries':_0xbe04d(0x214),'save':_0xbe04d(0x210),'saving':_0xbe04d(0x1ef),'note1':_0xbe04d(0x1fc),'note2':_0xbe04d(0x202),'configSaved':_0xbe04d(0x1ee),'configError':_0xbe04d(0x207),'apiApplyInfo':{'title':_0xbe04d(0x1ea),'description':_0xbe04d(0x1f8),'univerAiLabel':_0xbe04d(0x209),'getStarted':_0xbe04d(0x1eb)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xbe04d(0x20f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xbe04d(0x204),'connecting':_0xbe04d(0x219),'connected':_0xbe04d(0x1ec),'failed':_0xbe04d(0x20d),'retrying':_0xbe04d(0x1f3)},'connectionError':{'unauthorized':_0xbe04d(0x201),'sessionOccupied':_0xbe04d(0x211),'networkError':_0xbe04d(0x1f0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x26ca(_0x1f7728,_0xd578e8){_0x1f7728=_0x1f7728-0x1ea;const _0x2f0da5=_0x2f0d();let _0x26ca63=_0x2f0da5[_0x1f7728];return _0x26ca63;}export{n as default};function _0x2f0d(){const _0x36481a=['MCP\x20Unknown\x20Status','21590328cwYFgM','Max\x20Retries','MCP\x20Client\x20Configuration','MCP\x20Connected','885978CcXzcx','1320PWGbIC','Connecting...','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','1412690DkdHiQ','Retrying...','MCP\x20Disconnected','2546760BGegwC','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','374440WkyIOn','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','464782ENxrjq','MCP\x20Configuration','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','2597rVCKmM','Univer\x20AI\x20Console','Session\x20ID','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','Connection\x20Failed','MCP:\x20Network\x20Error','Invalid\x20configuration','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x2f0d=function(){return _0x36481a;};return _0x2f0d();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x432a(_0x2312e5,_0x28e8fa){_0x2312e5=_0x2312e5-0x1f4;const _0x5f2db9=_0x5f2d();let _0x432a7=_0x5f2db9[_0x2312e5];return _0x432a7;}const _0x58d215=_0x432a;(function(_0x1f45a7,_0x504519){const _0x4df269=_0x432a,_0xc7921=_0x1f45a7();while(!![]){try{const _0x56646d=parseInt(_0x4df269(0x1ff))/0x1*(parseInt(_0x4df269(0x21e))/0x2)+-parseInt(_0x4df269(0x201))/0x3+parseInt(_0x4df269(0x1fa))/0x4*(-parseInt(_0x4df269(0x219))/0x5)+-parseInt(_0x4df269(0x20a))/0x6*(-parseInt(_0x4df269(0x200))/0x7)+parseInt(_0x4df269(0x207))/0x8*(-parseInt(_0x4df269(0x21a))/0x9)+-parseInt(_0x4df269(0x221))/0xa+-parseInt(_0x4df269(0x215))/0xb;if(_0x56646d===_0x504519)break;else _0xc7921['push'](_0xc7921['shift']());}catch(_0x3d85a8){_0xc7921['push'](_0xc7921['shift']());}}}(_0x5f2d,0x340a1));const n={'mcpStatus':{'disconnected':_0x58d215(0x208),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x58d215(0x205),'failed':_0x58d215(0x211),'retrying':_0x58d215(0x204),'unknown':_0x58d215(0x1fb),'unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':_0x58d215(0x1f8),'clickToConnect':_0x58d215(0x21d),'clickToConfigure':_0x58d215(0x20b)},'mcpConfig':{'title':'Cấu\x20hình\x20MCP','description':_0x58d215(0x209),'apiKey':_0x58d215(0x214),'apiKeyPlaceholder':_0x58d215(0x222),'apiKeyHint':_0x58d215(0x220),'enableAuth':_0x58d215(0x21b),'enableAuthHint':_0x58d215(0x202),'connectionInfo':_0x58d215(0x1f7),'mcpClientConfig':_0x58d215(0x1f7),'configInstructions':_0x58d215(0x1fc),'configStepTitle':_0x58d215(0x217),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':_0x58d215(0x20f),'sessionId':'ID\x20phiên','sessionIdDescription':'Đị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.','authorizationDescription':_0x58d215(0x210),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x58d215(0x20d),'save':'Lưu\x20cấu\x20hình','saving':_0x58d215(0x212),'note1':'Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','note2':_0x58d215(0x213),'configSaved':_0x58d215(0x1f6),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':_0x58d215(0x20e),'univerAiLabel':_0x58d215(0x21c),'getStarted':_0x58d215(0x203)},'validation':{'apiKeyRequired':_0x58d215(0x216),'apiKeyTooShort':_0x58d215(0x218),'invalidConfig':_0x58d215(0x20c),'invalidApiKey':_0x58d215(0x1f9)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x58d215(0x1fd),'connected':_0x58d215(0x21f),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x58d215(0x1f5)},'connectionError':{'unauthorized':_0x58d215(0x1f4),'sessionOccupied':_0x58d215(0x206),'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':_0x58d215(0x1fe)}}};export{n as default};function _0x5f2d(){const _0x15cd18=['Cấu\x20hình\x20không\x20hợp\x20lệ','Số\x20lần\x20thử\x20lại\x20tối\x20đa','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.','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','MCP\x20Kết\x20nối\x20thất\x20bại','Đang\x20lưu...','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Khóa\x20API','930941qoJPEF','Yêu\x20cầu\x20khóa\x20API','Các\x20bước\x20cấu\x20hình:','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','139665nfjBVu','13221njCviL','Bật\x20xác\x20thực','Bảng\x20điều\x20khiển\x20Univer\x20AI','Nhấp\x20để\x20kết\x20nối\x20MCP','4rjeRBh','Đã\x20kết\x20nối','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','1237100CgPcIQ','Nhập\x20khóa\x20API\x20của\x20bạn','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Đang\x20thử\x20lại...','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','4QNVQxS','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Đang\x20kết\x20nối...','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','181253QHLKcJ','6349rpxpLx','545037rbRhRu','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','MCP\x20Đang\x20thử\x20lại...','MCP\x20Đã\x20kết\x20nối','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','24lNYiVz','MCP\x20Đã\x20ngắt\x20kết\x20nối','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','1806TDDLsT','Nhấp\x20để\x20cấu\x20hình\x20MCP'];_0x5f2d=function(){return _0x15cd18;};return _0x5f2d();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x50eaa3=_0x401c;function _0x401c(_0x1eaa97,_0x17e709){_0x1eaa97=_0x1eaa97-0xb5;const _0x47d781=_0x47d7();let _0x401cbe=_0x47d781[_0x1eaa97];return _0x401cbe;}function _0x47d7(){const _0x4710c4=['超出最大重试次数,请稍后再试','您的\x20API\x20密钥安全存储在本地存储中','配置\x20MCP\x20使用\x20AI\x20操作电子表格','14CZhAgq','MCP\x20客户端配置','API\x20密钥','未连接','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','184327YaXSbJ','配置更改将立即生效','保存配置','7386906jouTKo','您的\x20API\x20密钥将在此浏览器中本地存储','9hkXUUi','10773464IDRRfl','MCP\x20已断开','MCP:\x20网络错误','MCP\x20连接失败','API\x20密钥无效,请检查密钥是否正确','重启您的\x20MCP\x20客户端以使配置生效','连接失败','权限验证失败,请检查您的\x20API\x20密钥','带有\x20Bearer\x20前缀的\x20API\x20密钥。','5552110fEtkCd','请输入您的\x20API\x20密钥','168djyVsY','会话\x20ID\x20已被占用,请稍后再试','启用身份验证','复制以下\x20JSON\x20配置','会话ID','配置参数:','MCP:\x20超出最大重试次数','7SifTpN','68ONPEeu','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP\x20状态未知','启用身份验证以获得安全连接','1170820WPVIUv','MCP\x20已连接','MCP\x20连接中...','重连中...','205035leSjCH','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥不能为空','网络连接错误,请检查您的网络连接','保存中...','最大重试次数','点击连接\x20MCP','MCP\x20配置','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20控制台','79197QoiyXD'];_0x47d7=function(){return _0x4710c4;};return _0x47d7();}(function(_0x46b547,_0x2bd5f7){const _0x35324e=_0x401c,_0x35f93f=_0x46b547();while(!![]){try{const _0x18b0d3=parseInt(_0x35324e(0xe0))/0x1*(-parseInt(_0x35324e(0xb9))/0x2)+parseInt(_0x35324e(0xb5))/0x3*(-parseInt(_0x35324e(0xd8))/0x4)+-parseInt(_0x35324e(0xdc))/0x5+-parseInt(_0x35324e(0xc2))/0x6*(-parseInt(_0x35324e(0xd7))/0x7)+parseInt(_0x35324e(0xc5))/0x8*(parseInt(_0x35324e(0xc4))/0x9)+parseInt(_0x35324e(0xce))/0xa+-parseInt(_0x35324e(0xbf))/0xb*(parseInt(_0x35324e(0xd0))/0xc);if(_0x18b0d3===_0x2bd5f7)break;else _0x35f93f['push'](_0x35f93f['shift']());}catch(_0x2228c6){_0x35f93f['push'](_0x35f93f['shift']());}}}(_0x47d7,0xbe7df));const e={'mcpStatus':{'disconnected':_0x50eaa3(0xc6),'connecting':_0x50eaa3(0xde),'connected':_0x50eaa3(0xdd),'failed':_0x50eaa3(0xc8),'retrying':'MCP\x20重连中...','unknown':_0x50eaa3(0xda),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x50eaa3(0xe1),'networkError':_0x50eaa3(0xc7),'maxRetriesExceeded':_0x50eaa3(0xd6),'clickToConnect':_0x50eaa3(0xe6),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x50eaa3(0xe7),'description':_0x50eaa3(0xb8),'apiKey':_0x50eaa3(0xbb),'apiKeyPlaceholder':_0x50eaa3(0xcf),'apiKeyHint':_0x50eaa3(0xc3),'enableAuth':_0x50eaa3(0xd2),'enableAuthHint':_0x50eaa3(0xdb),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x50eaa3(0xba),'configInstructions':_0x50eaa3(0xd9),'configStepTitle':'配置步骤:','configStep1':_0x50eaa3(0xd3),'configStep2':_0x50eaa3(0xe8),'configStep3':_0x50eaa3(0xca),'sessionId':_0x50eaa3(0xd4),'sessionIdDescription':_0x50eaa3(0xbe),'authorizationDescription':_0x50eaa3(0xcd),'configParameters':_0x50eaa3(0xd5),'maxRetries':_0x50eaa3(0xe5),'save':_0x50eaa3(0xc1),'saving':_0x50eaa3(0xe4),'note1':_0x50eaa3(0xc0),'note2':_0x50eaa3(0xb7),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x50eaa3(0xbd),'univerAiLabel':_0x50eaa3(0xe9),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x50eaa3(0xe2),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x50eaa3(0xc9)},'connectionStatus':{'disconnected':_0x50eaa3(0xbc),'connecting':'连接中...','connected':'已连接','failed':_0x50eaa3(0xcb),'retrying':_0x50eaa3(0xdf)},'connectionError':{'unauthorized':_0x50eaa3(0xcc),'sessionOccupied':_0x50eaa3(0xd1),'networkError':_0x50eaa3(0xe3),'maxRetriesExceeded':_0x50eaa3(0xb6)}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x43224e=_0x3f22;function _0x3f22(_0x4f22da,_0x2bae7b){_0x4f22da=_0x4f22da-0x84;const _0x5ee0a7=_0x5ee0();let _0x3f228e=_0x5ee0a7[_0x4f22da];return _0x3f228e;}(function(_0x164b79,_0x40bfcf){const _0xdb2ec0=_0x3f22,_0x277130=_0x164b79();while(!![]){try{const _0x1c901b=parseInt(_0xdb2ec0(0x8c))/0x1*(parseInt(_0xdb2ec0(0xaa))/0x2)+-parseInt(_0xdb2ec0(0x85))/0x3+-parseInt(_0xdb2ec0(0x8f))/0x4+parseInt(_0xdb2ec0(0xb1))/0x5*(parseInt(_0xdb2ec0(0x9d))/0x6)+-parseInt(_0xdb2ec0(0x9f))/0x7+parseInt(_0xdb2ec0(0xa9))/0x8*(parseInt(_0xdb2ec0(0x87))/0x9)+parseInt(_0xdb2ec0(0x88))/0xa;if(_0x1c901b===_0x40bfcf)break;else _0x277130['push'](_0x277130['shift']());}catch(_0x581cca){_0x277130['push'](_0x277130['shift']());}}}(_0x5ee0,0x90923));const e={'mcpStatus':{'disconnected':_0x43224e(0xaf),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x43224e(0xad),'retrying':_0x43224e(0xa7),'unknown':_0x43224e(0x9b),'unauthorized':_0x43224e(0x9a),'sessionOccupied':_0x43224e(0x97),'networkError':_0x43224e(0x90),'maxRetriesExceeded':_0x43224e(0xa8),'clickToConnect':_0x43224e(0xa1),'clickToConfigure':_0x43224e(0x8e)},'mcpConfig':{'title':_0x43224e(0xa3),'description':_0x43224e(0xb2),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x43224e(0xa5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x43224e(0xab),'enableAuthHint':_0x43224e(0x99),'connectionInfo':_0x43224e(0x92),'mcpClientConfig':_0x43224e(0x92),'configInstructions':_0x43224e(0x93),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x43224e(0xb6),'configStep2':_0x43224e(0x95),'configStep3':_0x43224e(0x8b),'sessionId':_0x43224e(0x94),'sessionIdDescription':_0x43224e(0xa2),'authorizationDescription':_0x43224e(0x91),'configParameters':_0x43224e(0xb4),'maxRetries':_0x43224e(0x89),'save':'Save\x20Configuration','saving':_0x43224e(0x84),'note1':_0x43224e(0xb5),'note2':_0x43224e(0x86),'configSaved':_0x43224e(0xb0),'configError':_0x43224e(0x8a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x43224e(0xa0),'getStarted':_0x43224e(0x98)},'validation':{'apiKeyRequired':_0x43224e(0xb3),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x43224e(0xa4),'invalidApiKey':_0x43224e(0x8d)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x43224e(0xae),'connected':_0x43224e(0x9c),'failed':'Connection\x20Failed','retrying':_0x43224e(0xac)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x43224e(0xa6),'networkError':_0x43224e(0x96),'maxRetriesExceeded':_0x43224e(0x9e)}}},n=e;export{n as default};function _0x5ee0(){const _0x3cc495=['MCP\x20Disconnected','Configuration\x20saved\x20successfully','1095DqOLNS','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','Configuration\x20Parameters:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','Saving...','216810AQTlmu','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','270BChIHa','5703610xjjAmi','Max\x20Retries','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','8oWKZTv','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','1191824IrDAyf','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','Connected','9528ImkLQo','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','3607870ryzTmZ','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Configuration','Invalid\x20configuration','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','11928XrJkyA','128734zApgiY','Enable\x20Authentication','Retrying...','MCP\x20Connection\x20Failed','Connecting...'];_0x5ee0=function(){return _0x3cc495;};return _0x5ee0();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1a7a(_0x3d48aa,_0x13631e){_0x3d48aa=_0x3d48aa-0x1b3;const _0x5328b7=_0x5328();let _0x1a7acf=_0x5328b7[_0x3d48aa];return _0x1a7acf;}function _0x5328(){const _0x34e8c6=['amd','http://www.w3.org/2000/svg','on-line-icon','UniverMCPUIPlugin','univer-text-red-500','8962704GkKyiV','errorMessage','MCP\x20Connected','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Failed\x20to\x20save\x20configuration','mcpConfig.save','Saving...','Plugin','MAX_RETRIES_EXCEEDED','mcp.apiKey','UniverNetwork','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.configParameters','Configuration\x20Notes:','path','连接失败','API\x20key\x20with\x20Bearer\x20prefix.','点击配置\x20MCP','jsxs','label','mcpConfig.configSaved','_localStorageService','启用身份验证','配置步骤:','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','length','error','mcpConfig.apiKeyHint','mcpConfig.connectionError.networkError','MCPConnectionError','IConfigService','224904kkSBoj','_initializeCommands','Save\x20Configuration','defineProperty','mcpConfig.title','UniverMCPPlugin','mcpConfig.validation.apiKeyRequired','univer-text-sm\x20univer-font-medium','idSuffix','white','ILocalStorageService','mcpConfig.connectionError.sessionOccupied','API\x20Key','MCP:\x20超出最大重试次数','API\x20密钥长度至少需要\x2010\x20位','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_commandService','string','entries','warn','includes','DISCONNECTED','MCPUIMenuController','univer-text-white','256128JriAEi','IMessageService','attrs','mcpServerUrl','超出最大重试次数,请稍后再试','FAILED','12712svRrqd','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','close','mcpConfig.connectionError.maxRetriesExceeded','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','add','MCP\x20已连接','mcpConfig.note2','showStatus','IDialogService','UniverCore','未连接','mcpStatus.sessionOccupied','Disconnected','MCP\x20客户端配置','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_componentManager','MCPConnectionStatus','DependentOn','univer-space-y-2','UNAUTHORIZED','SESSION_ID_OCCUPIED','配置保存失败','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','translate(.97)','mcpConfig.configStepTitle','univer-shrink-0\x20univer-text-blue-500','univerjs-icon\x20univerjs-icon-','您的\x20API\x20密钥安全存储在本地存储中','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-shrink-0\x20univer-text-red-500','assign','MessageType','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','registerComponent','_loading$','MCP\x20Connection\x20Failed','isValid','univer-bg-green-500','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','0\x200\x2016\x2016','UniverUi','_apiKey$','mcpConfig.apiApplyInfo.title','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','CommandType','Error','保存中...','univer-flex\x20univer-items-center\x20univer-gap-2','https://console.univer.ai','\x20-\x20','react','round','RibbonStartGroup','Inject','https://console.univer.plus','defs','Enable\x20Authentication','MCP\x20重连中...','getConfig','zhCN','4138390YXcFgC','mask','CONNECTED','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','_configService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-sm\x20univer-text-gray-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Tooltip','API\x20密钥无效,请检查密钥是否正确','univer-text-yellow-500','MCP\x20已断开','subscribe','mcpConfig.connectionStatus.disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Enter\x20your\x20API\x20key','useObservable','mcpStatus.unknown','1em','registerCommand','fill','2933gYQnnA','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','配置无效','@univerjs/ui','mcpConfig.configError','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-3','MenuItemType','useCallback','ISocketService','mcpConfig.configStep2','CONNECTING','您的\x20API\x20密钥将在此浏览器中本地存储','get','请输入您的\x20API\x20密钥','配置更改将立即生效','启用身份验证以获得安全连接','CloseIcon','push','mcpStatus.failed','_createConfigPanelComponent','univer-text-blue-600','displayName','div','univer-text-xs\x20univer-text-gray-500','connectInjector','_mcpConnectionController','_initAutoConnect','已连接','会话\x20ID\x20已被占用,请稍后再试','什么是\x20API\x20密钥?','univer-bg-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','COMMAND','4eXVvAn','off-line-icon_clip0_910_343','createElement','_validateConfig','Retrying...','button','mcpConfig.apiApplyInfo.univerAiLabel','MCP:\x20Session\x20ID\x20Occupied','bottom','xlink:href','IUIPartsService','_registerComponent','mcp-ui.config','mcpConfig.validation.apiKeyTooShort','value','_dialogService','BuiltInUIPart','NONE','univer-flex\x20univer-gap-3','HelpIcon','@univerjs-pro/mcp','useState','mcpConfig.saving','ILogService','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','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_connectionController','LocaleService','MCPConfigUIController','function','IMenuManagerService','univer-flex-1','Input','React','MCP\x20Disconnected','mcpConfig.configStep1','MCP\x20连接中...','next','mcp-config-dialog','@univerjs/core','MCP:\x20Unauthorized','Max\x20Retries','2585154ERCzoR','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-text-green-500','https://mcp.univer.ai/mcp/?univer_session_id=','toString','ComponentManager','forwardRef','UniverIcon','getCurrentConfig','点击连接\x20MCP','object','useDependency','mcpStatus.connecting','HEADER_MENU','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','NETWORK_ERROR','open','MCP\x20配置','Button','univer-space-y-5','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.apiKey','univer-min-w-0\x20univer-flex-1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','disposeWithMe','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','apiKey','map','subscribeConfigValue$','mcp-ui.command.openConfigPanel','_handleConfigSave','mcpStatus.retrying','RETRYING','off','url(#off-line-icon_clip0_910_343)','replace','help-icon','mcpConfig.validation.invalidConfig','current','univer.ai','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','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','配置保存成功','_mcpCoreConfig$','Module','MCP_PLUGIN_CONFIG_KEY','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.connected','setConfig','onStarting','useRef','MCPStatusDisplay','_localeService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','show','mcpConfig.connectionError.unauthorized','univer-bg-blue-500','mcpStatus.clickToConfigure','What\x20is\x20API\x20Key?','clipPath','Invalid\x20configuration','ICommandService','none','colorChannel1','M0\x200H16V16H0z','MCPConnectionController','<SESSION_ID>','MCP\x20Client\x20Configuration','mcpConfig.apiKeyPlaceholder','MCP:\x20Max\x20Retries\x20Exceeded','API\x20密钥不能为空','mcpConfig.connectionStatus.connecting','Authorization:','_menuManagerService','__setCustomHeaders','mcpConfig.apiApplyInfo.getStarted','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-bg-red-500','Copy\x20the\x20JSON\x20configuration\x20below','Injector','merge','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Success','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','tag','@univerjs/network','Disposable','univer.plus','forEach','http','noopener\x20noreferrer','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Configuration','<API_KEY>','mcpConfig.connectionStatus.connected','_handleConfigure','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_uiPartsService','trim','Connection\x20Failed','MCP\x20Retrying...','Connecting...','连接中...','Configuration\x20saved\x20successfully','showDeveloperTools','MCPConfigPanel','getOwnPropertyDescriptor','_messageService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20Unknown\x20Status','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','BehaviorSubject','url(#$1','\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','_loadStoredApiKey','Univer\x20AI\x20控制台','on-line-icon_clip0_910_349','_config','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.authorizationDescription','复制以下\x20JSON\x20配置','jsx','use','MCPConnectionUIController','evenodd','setItem','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Click\x20to\x20connect\x20MCP','connectionStatus$','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-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.note1','_injector','OTHERS','几秒钟内获取您的\x20API\x20密钥','span','Enable\x20authentication\x20for\x20secure\x20connections','univer-size-4','_config$','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','url(#on-line-icon_clip0_910_349)','univer-size-2\x20univer-rounded-full','@univerjs/design','Bearer\x20','OffLineIcon','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20会话\x20ID\x20已被占用','showConfigPanel','_logService','_initStatusComponent','OpenMCPConfigPanelCommand','stringify','MCP:\x20Network\x20Error','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','children','clsx','svg','MCP_UI_PLUGIN','univer-flex\x20univer-items-start\x20univer-gap-3','_initializeMenus','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer_session_id:','OnLineIcon','univer-space-y-4','167361LBiVcb','Connected','close-icon','UniverProMcpUi','currentColor'];_0x5328=function(){return _0x34e8c6;};return _0x5328();}(function(_0x33113e,_0x4f7c2e){const _0xe4b2e9=_0x1a7a,_0xc6edb5=_0x33113e();while(!![]){try{const _0xcfc912=parseInt(_0xe4b2e9(0x21c))/0x1+parseInt(_0xe4b2e9(0x204))/0x2+-parseInt(_0xe4b2e9(0x1db))/0x3*(-parseInt(_0xe4b2e9(0x298))/0x4)+parseInt(_0xe4b2e9(0x260))/0x5+-parseInt(_0xe4b2e9(0x2c2))/0x6+-parseInt(_0xe4b2e9(0x276))/0x7*(-parseInt(_0xe4b2e9(0x222))/0x8)+-parseInt(_0xe4b2e9(0x1e5))/0x9;if(_0xcfc912===_0x4f7c2e)break;else _0xc6edb5['push'](_0xc6edb5['shift']());}catch(_0xd6155d){_0xc6edb5['push'](_0xc6edb5['shift']());}}}(_0x5328,0x77e71),function(_0x177b5b,_0x522d52){const _0x4337bd=_0x1a7a;typeof exports==_0x4337bd(0x2cc)&&typeof module<'u'?_0x522d52(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==_0x4337bd(0x2b5)&&define[_0x4337bd(0x1e0)]?define(['exports',_0x4337bd(0x2bf),'react/jsx-runtime',_0x4337bd(0x2ac),_0x4337bd(0x1c5),_0x4337bd(0x279),'rxjs',_0x4337bd(0x256),_0x4337bd(0x31a)],_0x522d52):(_0x177b5b=typeof globalThis<'u'?globalThis:_0x177b5b||self,_0x522d52(_0x177b5b[_0x4337bd(0x1de)]={},_0x177b5b[_0x4337bd(0x22c)],_0x177b5b[_0x4337bd(0x2b9)],_0x177b5b['UniverProMcp'],_0x177b5b['UniverDesign'],_0x177b5b[_0x4337bd(0x24c)],_0x177b5b['rxjs'],_0x177b5b[_0x4337bd(0x2b9)],_0x177b5b[_0x4337bd(0x1ef)]));}(this,function(_0x50df75,_0x4eec7b,_0x4a7dcc,_0x59ea95,_0x4b24c4,_0x3c9fd4,_0x384b81,_0x3fb8df,_0x6309e8){'use strict';const _0x14c7a4=_0x1a7a;var _0x1de2a7=Object[_0x14c7a4(0x207)],_0x5e72f3=(_0x131212,_0x359f9e,_0x1692ba)=>_0x359f9e in _0x131212?_0x1de2a7(_0x131212,_0x359f9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1692ba}):_0x131212[_0x359f9e]=_0x1692ba,_0x1e2ad9=(_0x3722ec,_0x1a39e2,_0x4788ff)=>_0x5e72f3(_0x3722ec,typeof _0x1a39e2!='symbol'?_0x1a39e2+'':_0x1a39e2,_0x4788ff);function _0x3c0d3d({ref:_0x1ce621,..._0x1930e6}){const _0xf31ce1=_0x14c7a4,{icon:_0x454ef5,id:_0xbf1863,className:_0x5c94eb,extend:_0x832b90,..._0x172448}=_0x1930e6,_0x2754d7=(_0xf31ce1(0x23e)+_0xbf1863+'\x20'+(_0x5c94eb||''))[_0xf31ce1(0x327)](),_0x3f8d59=_0x3fb8df[_0xf31ce1(0x2f6)]('_'+_0x363e5e());return _0x3709ec(_0x454ef5,''+_0xbf1863,{'defIds':_0x454ef5['defIds'],'idSuffix':_0x3f8d59[_0xf31ce1(0x2e8)]},{'ref':_0x1ce621,'className':_0x2754d7,..._0x172448},_0x832b90);}function _0x3709ec(_0x1f685b,_0x58dde6,_0x5a274a,_0x4cdf12,_0x202943){const _0x36b5fd=_0x14c7a4;return _0x3fb8df[_0x36b5fd(0x29a)](_0x1f685b[_0x36b5fd(0x319)],{'key':_0x58dde6,..._0x3b40e3(_0x1f685b,_0x5a274a,_0x202943),..._0x4cdf12},(_0x264fe3(_0x1f685b,_0x5a274a)['children']||[])[_0x36b5fd(0x2dd)]((_0x3e89fc,_0x2fe650)=>_0x3709ec(_0x3e89fc,_0x58dde6+'-'+_0x1f685b[_0x36b5fd(0x319)]+'-'+_0x2fe650,_0x5a274a,void 0x0,_0x202943)));}function _0x3b40e3(_0x29f5f8,_0x4badb9,_0x483d8b){const _0xd6ad8f=_0x14c7a4,_0x80ef91={..._0x29f5f8[_0xd6ad8f(0x21e)]};_0x483d8b!=null&&_0x483d8b[_0xd6ad8f(0x304)]&&_0x80ef91['fill']==='colorChannel1'&&(_0x80ef91[_0xd6ad8f(0x275)]=_0x483d8b[_0xd6ad8f(0x304)]),_0x29f5f8['tag']===_0xd6ad8f(0x261)&&_0x80ef91['id']&&(_0x80ef91['id']=_0x80ef91['id']+_0x4badb9[_0xd6ad8f(0x20c)]),Object[_0xd6ad8f(0x216)](_0x80ef91)[_0xd6ad8f(0x31d)](([_0xc7f55e,_0x5b44df])=>{const _0x2a210e=_0xd6ad8f;_0xc7f55e===_0x2a210e(0x261)&&typeof _0x5b44df==_0x2a210e(0x215)&&(_0x80ef91[_0xc7f55e]=_0x5b44df['replace'](/url\(#(.*)\)/,_0x2a210e(0x335)+_0x4badb9[_0x2a210e(0x20c)]+')'));});const {defIds:_0x13fef1}=_0x4badb9;return!_0x13fef1||_0x13fef1['length']===0x0||(_0x29f5f8['tag']===_0xd6ad8f(0x33f)&&_0x80ef91['xlink:href']&&(_0x80ef91[_0xd6ad8f(0x2a1)]=_0x80ef91[_0xd6ad8f(0x2a1)]+_0x4badb9[_0xd6ad8f(0x20c)]),Object[_0xd6ad8f(0x216)](_0x80ef91)[_0xd6ad8f(0x31d)](([_0x484b0d,_0x7fb1f])=>{const _0x4e1bb1=_0xd6ad8f;typeof _0x7fb1f==_0x4e1bb1(0x215)&&(_0x80ef91[_0x484b0d]=_0x7fb1f[_0x4e1bb1(0x2e5)](/url\(#(.*)\)/,_0x4e1bb1(0x335)+_0x4badb9[_0x4e1bb1(0x20c)]+')'));})),_0x80ef91;}function _0x264fe3(_0x19bf49,_0x79ebd6){const _0x1d711e=_0x14c7a4;var _0x2c8124;const {defIds:_0x5091d0}=_0x79ebd6;return!_0x5091d0||_0x5091d0[_0x1d711e(0x1fe)]===0x0?_0x19bf49:_0x19bf49['tag']===_0x1d711e(0x25b)&&((_0x2c8124=_0x19bf49[_0x1d711e(0x1d1)])!=null&&_0x2c8124[_0x1d711e(0x1fe)])?{..._0x19bf49,'children':_0x19bf49[_0x1d711e(0x1d1)]['map'](_0xc19e41=>typeof _0xc19e41['attrs']['id']=='string'&&_0x5091d0&&_0x5091d0[_0x1d711e(0x218)](_0xc19e41[_0x1d711e(0x21e)]['id'])?{..._0xc19e41,'attrs':{..._0xc19e41[_0x1d711e(0x21e)],'id':_0xc19e41[_0x1d711e(0x21e)]['id']+_0x79ebd6['idSuffix']}}:_0xc19e41)}:_0x19bf49;}function _0x363e5e(){const _0x3febda=_0x14c7a4;return Math['random']()[_0x3febda(0x2c6)](0x24)['substring'](0x2,0x8);}_0x3c0d3d[_0x14c7a4(0x28c)]=_0x14c7a4(0x2c9);const _0xc31e0d={'tag':'svg','attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':_0x14c7a4(0x24b),'width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':_0x14c7a4(0x1b8),'fillRule':_0x14c7a4(0x1b3),'clipRule':_0x14c7a4(0x1b3)}}]},_0x31dc32=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x3461b3,_0x2cc66d){const _0x1fcb51=_0x14c7a4;return _0x3fb8df['createElement'](_0x3c0d3d,Object[_0x1fcb51(0x242)]({},_0x3461b3,{'id':'check-mark-icon','ref':_0x2cc66d,'icon':_0xc31e0d}));});_0x31dc32['displayName']='CheckMarkIcon';const _0x4ff299={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2016\x2016','width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':_0x14c7a4(0x1df),'d':_0x14c7a4(0x1fd)}}]},_0x29d120=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x159719,_0x15008e){const _0x24afcb=_0x14c7a4;return _0x3fb8df[_0x24afcb(0x29a)](_0x3c0d3d,Object[_0x24afcb(0x242)]({},_0x159719,{'id':_0x24afcb(0x1dd),'ref':_0x15008e,'icon':_0x4ff299}));});_0x29d120[_0x14c7a4(0x28c)]=_0x14c7a4(0x287);const _0x523e2f={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':_0x14c7a4(0x2b0)}},{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':_0x14c7a4(0x1df),'d':_0x14c7a4(0x263)}},{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x14c7a4(0x1b3)}}]},_0x585361=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x1878e7,_0x5187ae){const _0x314fd9=_0x14c7a4;return _0x3fb8df[_0x314fd9(0x29a)](_0x3c0d3d,Object[_0x314fd9(0x242)]({},_0x1878e7,{'id':_0x314fd9(0x2e6),'ref':_0x5187ae,'icon':_0x523e2f}));});_0x585361[_0x14c7a4(0x28c)]=_0x14c7a4(0x2ab);const _0x49ad58={'tag':'svg','attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':'none','viewBox':_0x14c7a4(0x24b),'width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x14c7a4(0x2e4)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x14c7a4(0x257),'strokeLinejoin':_0x14c7a4(0x257),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x14c7a4(0x300),'attrs':{'id':_0x14c7a4(0x299)},'children':[{'tag':'path','attrs':{'fill':_0x14c7a4(0x20d),'d':_0x14c7a4(0x305)}}]}]}],'defIds':[_0x14c7a4(0x299)]},_0x363dd5=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x30923e,_0x33eff3){const _0x587c78=_0x14c7a4;return _0x3fb8df[_0x587c78(0x29a)](_0x3c0d3d,Object['assign']({},_0x30923e,{'id':'off-line-icon','ref':_0x33eff3,'icon':_0x49ad58}));});_0x363dd5['displayName']=_0x14c7a4(0x1c7);const _0x209fe0={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2017\x2016','width':_0x14c7a4(0x273),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x14c7a4(0x1c3)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x14c7a4(0x257),'strokeWidth':1.2}}]},{'tag':_0x14c7a4(0x25b),'attrs':{},'children':[{'tag':_0x14c7a4(0x300),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x14c7a4(0x305),'transform':_0x14c7a4(0x23b)}}]}]}],'defIds':[_0x14c7a4(0x339)]},_0x136870=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x385b52,_0x5097e1){const _0x118f82=_0x14c7a4;return _0x3fb8df[_0x118f82(0x29a)](_0x3c0d3d,Object['assign']({},_0x385b52,{'id':_0x118f82(0x1e2),'ref':_0x5097e1,'icon':_0x209fe0}));});_0x136870[_0x14c7a4(0x28c)]=_0x14c7a4(0x1d9);function _0x52a822(_0x183598){const _0xef5ba9=_0x14c7a4;var _0x1f00bd,_0x4706c2;const {mcpCoreConfig:_0x423472,onSave:_0x43a88c,loading:_0x27a5c8=!0x1,config:_0x5a2fdb,connectionStatus$:_0x58e6ac,connectionError$:_0x59c452,currentApiKey$:_0x3d18cc,currentSessionId$:_0x442978}=_0x183598,_0x299f6a=_0x3c9fd4[_0xef5ba9(0x2cd)](_0x4eec7b[_0xef5ba9(0x2b3)]),_0x424d0c=_0x3c9fd4[_0xef5ba9(0x271)](_0x58e6ac,_0x59ea95[_0xef5ba9(0x233)][_0xef5ba9(0x219)]),_0x540e57=_0x3c9fd4[_0xef5ba9(0x271)](_0x59c452,_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x2a9)]),_0x436d60=_0x3c9fd4[_0xef5ba9(0x271)](_0x442978,''),_0x434bfc=_0x3c9fd4[_0xef5ba9(0x271)](_0x3d18cc,''),[_0x481281,_0x4cf9c3]=_0x3fb8df[_0xef5ba9(0x2ad)](_0x434bfc||''),_0x330169=!0x0,_0xa7f6d6=_0x5a2fdb[_0xef5ba9(0x32d)]&&_0x423472[_0xef5ba9(0x21f)]&&(_0x423472[_0xef5ba9(0x21f)][_0xef5ba9(0x218)](_0xef5ba9(0x31c))||_0x423472[_0xef5ba9(0x21f)][_0xef5ba9(0x218)](_0xef5ba9(0x2e9))),_0x2f2c98=(_0x1f00bd=_0x423472[_0xef5ba9(0x21f)])==null?void 0x0:_0x1f00bd[_0xef5ba9(0x218)](_0xef5ba9(0x31c)),_0x3b597f=(_0x4706c2=_0x423472['mcpServerUrl'])==null?void 0x0:_0x4706c2[_0xef5ba9(0x218)]('univer.ai'),_0x459ed3=_0x2f2c98?_0xef5ba9(0x25a):_0xef5ba9(0x254),_0x3997a9=_0x5a2fdb[_0xef5ba9(0x32d)]&&(_0x2f2c98||_0x3b597f),[_0x2802c8,_0x5987a5]=_0x3fb8df['useState'](!_0x481281['trim']()),_0x116042=(_0x3b86cb,_0x22a597)=>{const _0x38e1db=_0xef5ba9;if(_0x22a597===_0x59ea95[_0x38e1db(0x202)][_0x38e1db(0x236)])return _0x38e1db(0x1d0);switch(_0x3b86cb){case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x262)]:return _0x38e1db(0x240);case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x281)]:case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x2e2)]:return _0x38e1db(0x239);case _0x59ea95[_0x38e1db(0x233)]['FAILED']:return _0x38e1db(0x1d0);default:return _0x38e1db(0x1e8);}},_0x2b2995=(_0x346a12,_0x3b6ad2)=>{const _0x29875d=_0xef5ba9;if(_0x3b6ad2===_0x59ea95[_0x29875d(0x202)]['UNAUTHORIZED'])return _0x29875d(0x312);switch(_0x346a12){case _0x59ea95[_0x29875d(0x233)][_0x29875d(0x262)]:return _0x29875d(0x249);case _0x59ea95[_0x29875d(0x233)]['CONNECTING']:case _0x59ea95[_0x29875d(0x233)][_0x29875d(0x2e2)]:return _0x29875d(0x2fd);case _0x59ea95[_0x29875d(0x233)]['FAILED']:return _0x29875d(0x312);default:return _0x29875d(0x295);}},_0x4e9253=_0x5e1659=>{const _0x1b6f04=_0xef5ba9;switch(_0x5e1659){case _0x59ea95['MCPConnectionStatus'][_0x1b6f04(0x262)]:return _0x299f6a['t'](_0x1b6f04(0x323));case _0x59ea95[_0x1b6f04(0x233)]['CONNECTING']:return _0x299f6a['t'](_0x1b6f04(0x30c));case _0x59ea95[_0x1b6f04(0x233)]['FAILED']:return _0x299f6a['t']('mcpConfig.connectionStatus.failed');case _0x59ea95[_0x1b6f04(0x233)]['RETRYING']:return _0x299f6a['t']('mcpConfig.connectionStatus.retrying');default:return _0x299f6a['t'](_0x1b6f04(0x26d));}},_0x206183=_0x5826d7=>{const _0x536784=_0xef5ba9;switch(_0x5826d7){case _0x59ea95['MCPConnectionError'][_0x536784(0x236)]:return _0x299f6a['t'](_0x536784(0x2fc));case _0x59ea95[_0x536784(0x202)][_0x536784(0x237)]:return _0x299f6a['t'](_0x536784(0x20f));case _0x59ea95['MCPConnectionError']['NETWORK_ERROR']:return _0x299f6a['t'](_0x536784(0x201));case _0x59ea95['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x299f6a['t'](_0x536784(0x225));default:return'';}},_0xd37d19=_0x3fb8df[_0xef5ba9(0x27e)](()=>{const _0x56a0dd={..._0x423472,'apiKey':_0x481281['trim'](),'enableAuth':_0x330169};_0x43a88c(_0x56a0dd);},[_0x423472,_0x481281,_0x330169,_0x43a88c]),_0x188b8c=_0x481281[_0xef5ba9(0x327)]()[_0xef5ba9(0x1fe)]>0x0;return _0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d9),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x296),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2fa),'children':_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x21b),'children':'⚙'})}),_0x4a7dcc[_0xef5ba9(0x33e)]('div',{'children':_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x266),'children':_0x299f6a['t']('mcpConfig.description')})})]})}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':_0xef5ba9(0x223),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0x4b24c4['clsx'](_0xef5ba9(0x23a),_0x116042(_0x424d0c,_0x540e57)),'children':_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0x4b24c4['clsx'](_0xef5ba9(0x1c4),_0x2b2995(_0x424d0c,_0x540e57))}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x20b),'children':_0x4e9253(_0x424d0c)})]})}),_0x540e57!==_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x2a9)]&&(_0x424d0c===_0x59ea95[_0xef5ba9(0x233)][_0xef5ba9(0x221)]||_0x540e57===_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x236)])&&_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x333),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x4a7dcc['jsx']('span',{'className':_0xef5ba9(0x241),'children':'⚠️'}),_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x213),'children':_0x206183(_0x540e57)})]})})]}),_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x318),'children':_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':_0xef5ba9(0x2d5),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🔑'}),'\x20',_0x299f6a['t'](_0xef5ba9(0x2d7)),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x1e4),'children':'*'}),_0xa7f6d6&&_0x4a7dcc[_0xef5ba9(0x33e)]('a',{'className':_0xef5ba9(0x2db),'title':_0x299f6a['t'](_0xef5ba9(0x24e)),'role':_0xef5ba9(0x29d),'onClick':()=>_0x5987a5(!0x0),'children':_0x4a7dcc[_0xef5ba9(0x33e)](_0x585361,{})})]}),_0x4a7dcc[_0xef5ba9(0x33e)](_0x4b24c4[_0xef5ba9(0x2b8)],{'type':'text','placeholder':_0x299f6a['t'](_0xef5ba9(0x309)),'value':_0x481281,'disabled':_0x27a5c8,'autoComplete':_0xef5ba9(0x2e3),'onChange':_0x4cf9c3}),_0x4a7dcc['jsx']('p',{'className':_0xef5ba9(0x28e),'children':_0x299f6a['t'](_0xef5ba9(0x200))})]}),_0xa7f6d6&&_0x2802c8&&_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'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':[_0x4a7dcc[_0xef5ba9(0x33e)]('a',{'className':_0xef5ba9(0x2ed),'role':_0xef5ba9(0x29d),'onClick':()=>_0x5987a5(!0x1),'children':_0x4a7dcc[_0xef5ba9(0x33e)](_0x29d120,{'className':_0xef5ba9(0x1c0)})}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x277),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1c2),'children':_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x28b),'children':'🚀'})}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2b7),'children':[_0x4a7dcc[_0xef5ba9(0x33e)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x299f6a['t'](_0xef5ba9(0x24e))}),_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x325),'children':_0x299f6a['t']('mcpConfig.apiApplyInfo.description')}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x320),'children':_0x3997a9&&_0x4a7dcc[_0xef5ba9(0x1f7)]('a',{'className':_0xef5ba9(0x1f0),'href':_0x459ed3,'target':'_blank','rel':_0xef5ba9(0x31f),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🤖'}),_0x299f6a['t'](_0xef5ba9(0x29e)),_0x4a7dcc[_0xef5ba9(0x33e)]('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x26f),'children':['✨','\x20',_0x299f6a['t'](_0xef5ba9(0x310))]})]})]})]}),_0x5a2fdb['showDeveloperTools']&&_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x4a7dcc['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':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🔗'}),'\x20',_0x299f6a['t']('mcpConfig.connectionInfo')]}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1da),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x27c),'children':[_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x299f6a['t']('mcpConfig.configInstructions')}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x24f),'children':_0x299f6a['t'](_0xef5ba9(0x23c))}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x299f6a['t'](_0xef5ba9(0x2bb))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x24a),'children':'2'}),_0x299f6a['t'](_0xef5ba9(0x280))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x24a),'children':'3'}),_0x299f6a['t']('mcpConfig.configStep3')]})]})]})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xef5ba9(0x321)}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x4a7dcc[_0xef5ba9(0x33e)]('pre',{'className':_0xef5ba9(0x244),'children':JSON[_0xef5ba9(0x1ce)]({'mcpServers':{'univer':{'url':_0xef5ba9(0x2c5)+(_0x436d60||_0xef5ba9(0x307)),'type':_0xef5ba9(0x31e),'headers':{'Authorization':_0xef5ba9(0x1c6)+(_0x481281||_0xef5ba9(0x322))}}}},null,0x2)})})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x27c),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x24f),'children':_0x299f6a['t'](_0xef5ba9(0x1f1))}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x235),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1d5),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b5)}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d8),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xef5ba9(0x1d8)}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x299f6a['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1d5),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b5)}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d8),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x267),'children':_0xef5ba9(0x30d)}),_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x28e),'children':_0x299f6a['t'](_0xef5ba9(0x33c))})]})]})]})]})]})]}),_0x4a7dcc['jsx'](_0x4b24c4[_0xef5ba9(0x2d4)],{'onClick':_0xd37d19,'disabled':!_0x188b8c||_0x27a5c8,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x27a5c8?_0x4a7dcc['jsxs'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'⟲'}),_0x299f6a['t'](_0xef5ba9(0x2ae))]}):_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0x31dc32,{}),_0x299f6a['t'](_0xef5ba9(0x1ea))]})}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2b1),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2aa),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x23d),'children':'💡'}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b9),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-font-medium','children':_0xef5ba9(0x1f2)}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'children':['•',_0x299f6a['t'](_0xef5ba9(0x1ba))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'children':['•',_0x299f6a['t'](_0xef5ba9(0x229))]})]})]})})]})})]});}const _0x284dd3=_0x14c7a4(0x2a4),_0x430cf5={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x38515c=Object[_0x14c7a4(0x32f)],_0x2446ee=(_0x891329,_0x38b66d,_0x721b50,_0x4137ad)=>{for(var _0x33a0a0=_0x4137ad>0x1?void 0x0:_0x4137ad?_0x38515c(_0x38b66d,_0x721b50):_0x38b66d,_0x1a75fc=_0x891329['length']-0x1,_0x458c22;_0x1a75fc>=0x0;_0x1a75fc--)(_0x458c22=_0x891329[_0x1a75fc])&&(_0x33a0a0=_0x458c22(_0x33a0a0)||_0x33a0a0);return _0x33a0a0;},_0x296c44=(_0x3e8cc8,_0x146176)=>(_0x3c4bd5,_0x2a7aa6)=>_0x146176(_0x3c4bd5,_0x2a7aa6,_0x3e8cc8);const _0x4b708d=_0x14c7a4(0x1ee),_0x349c8b=_0x14c7a4(0x2be);_0x50df75[_0x14c7a4(0x2b4)]=class extends _0x4eec7b[_0x14c7a4(0x31b)]{constructor(_0x5e1191,_0x8cc591,_0x115789,_0x37f8a0,_0x457275,_0x2cd635,_0x5202d1,_0x6f506,_0x2ca523,_0x17bf4a){const _0x292540=_0x14c7a4;super(),_0x1e2ad9(this,_0x292540(0x246),new _0x384b81[(_0x292540(0x334))](!0x1)),_0x1e2ad9(this,'_mcpCoreConfig$',new _0x384b81['BehaviorSubject']({})),_0x1e2ad9(this,_0x292540(0x1c1),new _0x384b81[(_0x292540(0x334))]({})),_0x1e2ad9(this,_0x292540(0x24d),new _0x384b81[(_0x292540(0x334))]('')),_0x1e2ad9(this,_0x292540(0x2e0),async _0x47ae10=>{const _0x1e2131=_0x292540;var _0x50a0f3,_0x562d65;this[_0x1e2131(0x246)]['next'](!0x0);try{const _0x2a62e9=await this['_validateConfig'](_0x47ae10);if(!_0x2a62e9[_0x1e2131(0x248)]){this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x251)],'content':_0x2a62e9[_0x1e2131(0x1e6)]||this[_0x1e2131(0x2f8)]['t'](_0x1e2131(0x2e7))});return;}_0x47ae10[_0x1e2131(0x2dc)]?await this[_0x1e2131(0x1fa)][_0x1e2131(0x1b4)](_0x4b708d,_0x47ae10[_0x1e2131(0x2dc)][_0x1e2131(0x327)]()):await this[_0x1e2131(0x1fa)]['removeItem'](_0x4b708d),this[_0x1e2131(0x24d)][_0x1e2131(0x2bd)](((_0x50a0f3=_0x47ae10[_0x1e2131(0x2dc)])==null?void 0x0:_0x50a0f3[_0x1e2131(0x327)]())||''),this[_0x1e2131(0x290)][_0x1e2131(0x30f)]({'Authorization':_0x1e2131(0x1c6)+((_0x562d65=_0x47ae10[_0x1e2131(0x2dc)])==null?void 0x0:_0x562d65[_0x1e2131(0x327)]())}),this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x317)],'content':this[_0x1e2131(0x2f8)]['t'](_0x1e2131(0x1f9))}),setTimeout(()=>{const _0x2ee132=_0x1e2131;this['_dialogService'][_0x2ee132(0x224)](_0x349c8b);},0x320);}catch(_0x5b3d56){this[_0x1e2131(0x1cb)][_0x1e2131(0x1ff)](_0x1e2131(0x1c8),_0x5b3d56),this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x251)],'content':this['_localeService']['t'](_0x1e2131(0x27a))});}finally{this[_0x1e2131(0x246)]['next'](!0x1);}}),(this['_injector']=_0x5e1191,this[_0x292540(0x326)]=_0x8cc591,this['_configService']=_0x115789,this[_0x292540(0x1fa)]=_0x37f8a0,this[_0x292540(0x2a7)]=_0x457275,this['_messageService']=_0x2cd635,this[_0x292540(0x232)]=_0x5202d1,this[_0x292540(0x2f8)]=_0x6f506,this['_logService']=_0x2ca523,this['_mcpConnectionController']=_0x17bf4a,this['_initConfigSync'](),this[_0x292540(0x337)](),this[_0x292540(0x2a3)]());}[_0x14c7a4(0x1ca)](){const _0x513ae3=_0x14c7a4,_0x47d6e8=this[_0x513ae3(0x264)][_0x513ae3(0x25e)](_0x284dd3);_0x47d6e8!=null&&_0x47d6e8['showDeveloperTools']&&this[_0x513ae3(0x2a7)][_0x513ae3(0x2d2)]({'id':_0x349c8b,'title':{'title':this[_0x513ae3(0x2f8)]['t'](_0x513ae3(0x208))},'children':{'label':_0x513ae3(0x32e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4d64c7=_0x513ae3;this[_0x4d64c7(0x2a7)]['close'](_0x349c8b);}});}[_0x14c7a4(0x2ca)](){const _0x183d02=_0x14c7a4;return this[_0x183d02(0x2ef)][_0x183d02(0x2a6)];}[_0x14c7a4(0x2a3)](){const _0x335cd9=_0x14c7a4;this[_0x335cd9(0x2da)](this[_0x335cd9(0x232)]['register']('MCPConfigPanel',this[_0x335cd9(0x28a)]()));}[_0x14c7a4(0x28a)](){const _0xf5bfa3=_0x14c7a4;return _0x3c9fd4[_0xf5bfa3(0x28f)](()=>{const _0x6c374c=_0xf5bfa3;var _0x45019a,_0x5898f4,_0x1febde;return _0x4a7dcc['jsx'](_0x52a822,{'config':this[_0x6c374c(0x1c1)][_0x6c374c(0x2a6)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x6c374c(0x24d)],'onSave':this[_0x6c374c(0x2e0)],'loading':this[_0x6c374c(0x246)][_0x6c374c(0x2a6)],'connectionStatus$':(_0x45019a=this[_0x6c374c(0x290)])==null?void 0x0:_0x45019a['connectionStatus$'],'connectionError$':(_0x5898f4=this['_mcpConnectionController'])==null?void 0x0:_0x5898f4['connectionError$'],'currentSessionId$':(_0x1febde=this[_0x6c374c(0x290)])==null?void 0x0:_0x1febde['sessionId$']});},this[_0xf5bfa3(0x1bb)]);}['_initConfigSync'](){const _0x487f7f=_0x14c7a4;this[_0x487f7f(0x2da)](this[_0x487f7f(0x264)][_0x487f7f(0x2de)](_0x59ea95[_0x487f7f(0x2f1)])['subscribe'](_0x5e57a7=>{const _0x3b116c=_0x487f7f;this['_mcpCoreConfig$'][_0x3b116c(0x2bd)](_0x5e57a7||{});}));const _0x29bd13=this['_configService'][_0x487f7f(0x25e)](_0x59ea95['MCP_PLUGIN_CONFIG_KEY']);this[_0x487f7f(0x2ef)][_0x487f7f(0x2bd)](_0x29bd13||{}),this[_0x487f7f(0x2da)](this[_0x487f7f(0x264)][_0x487f7f(0x2de)](_0x284dd3)[_0x487f7f(0x26c)](_0x4dbb0d=>{const _0x331bc1=_0x487f7f;this[_0x331bc1(0x1c1)]['next'](_0x4dbb0d||{});}));const _0x33e933=this[_0x487f7f(0x264)][_0x487f7f(0x25e)](_0x284dd3);this[_0x487f7f(0x1c1)]['next'](_0x33e933||{});}async[_0x14c7a4(0x337)](){const _0x1b9d78=_0x14c7a4,_0x4839a8=this[_0x1b9d78(0x264)][_0x1b9d78(0x25e)](_0x284dd3);if(!(_0x4839a8!=null&&_0x4839a8[_0x1b9d78(0x32d)]))return;const _0x161698=await this[_0x1b9d78(0x1fa)]['getItem'](_0x4b708d);_0x161698&&(this[_0x1b9d78(0x290)]['__setCustomHeaders']({'Authorization':_0x1b9d78(0x1c6)+_0x161698}),this[_0x1b9d78(0x24d)][_0x1b9d78(0x2bd)](_0x161698));}async[_0x14c7a4(0x29b)](_0x25f6a4){const _0x17f899=_0x14c7a4;if(!_0x25f6a4['apiKey']||_0x25f6a4[_0x17f899(0x2dc)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x17f899(0x2f8)]['t'](_0x17f899(0x20a))};if(_0x25f6a4['apiKey']['trim']()[_0x17f899(0x1fe)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x17f899(0x2f8)]['t'](_0x17f899(0x2a5))};try{const _0x3fcec6=await this[_0x17f899(0x1bb)][_0x17f899(0x283)](_0x59ea95[_0x17f899(0x306)])['validateApiKey'](_0x25f6a4[_0x17f899(0x2dc)][_0x17f899(0x327)]());return _0x3fcec6['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3fcec6[_0x17f899(0x1ff)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2c7556){return console[_0x17f899(0x217)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2c7556),{'isValid':!0x0};}}},_0x50df75[_0x14c7a4(0x2b4)]=_0x2446ee([_0x296c44(0x0,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x314)])),_0x296c44(0x1,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x296c44(0x2,_0x4eec7b[_0x14c7a4(0x203)]),_0x296c44(0x3,_0x4eec7b['ILocalStorageService']),_0x296c44(0x4,_0x3c9fd4[_0x14c7a4(0x22b)]),_0x296c44(0x5,_0x3c9fd4[_0x14c7a4(0x21d)]),_0x296c44(0x6,_0x4eec7b['Inject'](_0x3c9fd4[_0x14c7a4(0x2c7)])),_0x296c44(0x7,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b['LocaleService'])),_0x296c44(0x8,_0x4eec7b[_0x14c7a4(0x2af)]),_0x296c44(0x9,_0x4eec7b[_0x14c7a4(0x259)](_0x59ea95['MCPConnectionController']))],_0x50df75[_0x14c7a4(0x2b4)]);const _0x1f010e={'id':_0x14c7a4(0x2df),'type':_0x4eec7b[_0x14c7a4(0x250)][_0x14c7a4(0x297)],'handler':async(_0x1f68cc,_0x4a2132)=>(_0x1f68cc['get'](_0x50df75[_0x14c7a4(0x2b4)])[_0x14c7a4(0x1ca)](),!0x0)};function _0x43b619(_0x4468b6,_0x23b36c){const _0x32118a=_0x14c7a4;switch(_0x4468b6){case _0x59ea95['MCPConnectionStatus']['DISCONNECTED']:return'mcpStatus.disconnected';case _0x59ea95['MCPConnectionStatus'][_0x32118a(0x281)]:return _0x32118a(0x2ce);case _0x59ea95[_0x32118a(0x233)]['CONNECTED']:return _0x32118a(0x2f3);case _0x59ea95['MCPConnectionStatus']['FAILED']:switch(_0x23b36c){case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x236)]:return'mcpStatus.unauthorized';case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x237)]:return _0x32118a(0x22e);case _0x59ea95['MCPConnectionError'][_0x32118a(0x2d1)]:return'mcpStatus.networkError';case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x1ed)]:return'mcpStatus.maxRetriesExceeded';default:return _0x32118a(0x289);}case _0x59ea95['MCPConnectionStatus'][_0x32118a(0x2e2)]:return _0x32118a(0x2e1);default:return _0x32118a(0x272);}}function _0x3605ac(_0xdf4942,_0x527a4d,_0x29cf42,_0x51343c=!0x0){const _0x2d6c6d=_0x14c7a4,_0x59924b=_0x43b619(_0xdf4942,_0x527a4d),_0xb4f25e=_0x29cf42['t'](_0x59924b);return _0x51343c?_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x219)]&&_0x527a4d===_0x59ea95[_0x2d6c6d(0x202)]['UNAUTHORIZED']?_0xb4f25e+_0x2d6c6d(0x255)+_0x29cf42['t'](_0x2d6c6d(0x2fe)):_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x262)]?''+_0xb4f25e:_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x219)]||_0xdf4942===_0x59ea95['MCPConnectionStatus'][_0x2d6c6d(0x221)]?_0xb4f25e+_0x2d6c6d(0x255)+_0x29cf42['t']('mcpStatus.clickToConnect'):_0xb4f25e:_0xb4f25e;}function _0x14e64b(_0x4789dd){const _0x236df1=_0x14c7a4;switch(_0x4789dd){case _0x59ea95['MCPConnectionStatus']['CONNECTED']:return _0x236df1(0x2c4);case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x281)]:case _0x59ea95[_0x236df1(0x233)]['RETRYING']:return _0x236df1(0x26a);case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x221)]:case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x219)]:return _0x236df1(0x1e4);default:return'univer-text-gray-500';}}function _0x36241c(_0x33361f){const _0x2cc306=_0x14c7a4,{status$:_0x5fd334,error$:_0x149ce4,onConfigure:_0x4d754d,showClickable:_0x1a85e1=!0x0}=_0x33361f,_0x1e2d1f=_0x3c9fd4[_0x2cc306(0x271)](_0x5fd334,_0x59ea95['MCPConnectionStatus'][_0x2cc306(0x219)]),_0x49955e=_0x3c9fd4[_0x2cc306(0x271)](_0x149ce4,_0x59ea95[_0x2cc306(0x202)][_0x2cc306(0x2a9)]),_0x3e3bef=_0x3c9fd4[_0x2cc306(0x2cd)](_0x4eec7b['LocaleService']),_0x21eebb=_0x1e2d1f===_0x59ea95[_0x2cc306(0x233)][_0x2cc306(0x262)];_0x1e2d1f===_0x59ea95[_0x2cc306(0x233)]['CONNECTING']||_0x59ea95[_0x2cc306(0x233)][_0x2cc306(0x2e2)];const _0x2ec174=_0x3e3bef['t'](_0x43b619(_0x1e2d1f,_0x49955e)),_0x51dbbc=_0x3605ac(_0x1e2d1f,_0x49955e,_0x3e3bef,_0x1a85e1),_0x4b57ab=_0x14e64b(_0x1e2d1f),_0x1c0052=_0x21eebb?_0x4a7dcc[_0x2cc306(0x33e)](_0x136870,{}):_0x4a7dcc['jsx'](_0x363dd5,{}),_0x2355b2=_0x3fb8df[_0x2cc306(0x27e)](()=>{_0x1a85e1&&_0x4d754d&&_0x4d754d();},[_0x1a85e1,_0x4d754d]);function _0x217aaa(){const _0x594e33=_0x2cc306;return _0x4a7dcc[_0x594e33(0x1f7)](_0x594e33(0x28d),{'className':_0x4b24c4[_0x594e33(0x1d2)]('univer-flex\x20univer-items-center',_0x1a85e1&&_0x4d754d&&_0x594e33(0x336)),'role':_0x594e33(0x29d),'onClick':_0x1a85e1&&_0x4d754d?_0x2355b2:void 0x0,'children':[_0x4a7dcc[_0x594e33(0x33e)](_0x594e33(0x28d),{'className':_0x4b24c4[_0x594e33(0x1d2)](_0x594e33(0x311),_0x4b57ab),'children':_0x1c0052}),_0x4a7dcc[_0x594e33(0x33e)](_0x594e33(0x28d),{'className':_0x594e33(0x2ea),'children':_0x2ec174})]});}return _0x4a7dcc[_0x2cc306(0x33e)](_0x4b24c4[_0x2cc306(0x268)],{'title':_0x51dbbc,'placement':_0x2cc306(0x2a0),'children':_0x217aaa()});}var _0x4dfe16=Object[_0x14c7a4(0x32f)],_0x1e0df7=(_0x3fae88,_0x5b4070,_0x626005,_0x14fd7e)=>{const _0x31eed2=_0x14c7a4;for(var _0x5942e7=_0x14fd7e>0x1?void 0x0:_0x14fd7e?_0x4dfe16(_0x5b4070,_0x626005):_0x5b4070,_0x38f10e=_0x3fae88[_0x31eed2(0x1fe)]-0x1,_0x2c2327;_0x38f10e>=0x0;_0x38f10e--)(_0x2c2327=_0x3fae88[_0x38f10e])&&(_0x5942e7=_0x2c2327(_0x5942e7)||_0x5942e7);return _0x5942e7;},_0x5c689e=(_0x17ca81,_0x293182)=>(_0xd94227,_0x566e6a)=>_0x293182(_0xd94227,_0x566e6a,_0x17ca81);_0x50df75['MCPConnectionUIController']=class extends _0x4eec7b[_0x14c7a4(0x31b)]{constructor(_0x32df7c,_0x597dd,_0x590300,_0xb0a08e){const _0x18c229=_0x14c7a4;super(),this[_0x18c229(0x1bb)]=_0x32df7c,this[_0x18c229(0x2b2)]=_0x597dd,this[_0x18c229(0x326)]=_0x590300,this[_0x18c229(0x264)]=_0xb0a08e,this['_initAutoConnect'](),this[_0x18c229(0x1cc)]();}[_0x14c7a4(0x291)](){const _0x291c7b=_0x14c7a4,_0x434f7f=this[_0x291c7b(0x264)][_0x291c7b(0x25e)](_0x284dd3);_0x434f7f!=null&&_0x434f7f['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x14c7a4(0x1cc)](){const _0x50259b=_0x14c7a4,_0x283377=this[_0x50259b(0x264)]['getConfig'](_0x284dd3);(_0x283377==null?void 0x0:_0x283377[_0x50259b(0x22a)])!==!0x1&&this[_0x50259b(0x2da)](this['_uiPartsService'][_0x50259b(0x245)](_0x3c9fd4[_0x50259b(0x2a8)][_0x50259b(0x2cf)],()=>{const _0x45f931=_0x50259b;var _0x17bf9e;return _0x3c9fd4[_0x45f931(0x28f)](_0x18e1bc({'status$':this['_connectionController'][_0x45f931(0x1b7)],'error$':this[_0x45f931(0x2b2)]['connectionError$'],'onConfigure':()=>this[_0x45f931(0x324)](),'showClickable':(_0x17bf9e=_0x283377==null?void 0x0:_0x283377['showDeveloperTools'])!=null?_0x17bf9e:!0x1}),this[_0x45f931(0x1bb)]);}));}[_0x14c7a4(0x324)](){const _0x5c1ce0=_0x14c7a4;this[_0x5c1ce0(0x1bb)][_0x5c1ce0(0x283)](_0x50df75[_0x5c1ce0(0x2b4)])[_0x5c1ce0(0x1ca)]();}},_0x50df75[_0x14c7a4(0x340)]=_0x1e0df7([_0x5c689e(0x0,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x314)])),_0x5c689e(0x1,_0x4eec7b[_0x14c7a4(0x259)](_0x59ea95[_0x14c7a4(0x306)])),_0x5c689e(0x2,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x5c689e(0x3,_0x4eec7b[_0x14c7a4(0x203)])],_0x50df75['MCPConnectionUIController']);function _0x18e1bc(_0x230251){const {status$:_0x40aaed,error$:_0x196581,onConfigure:_0x22311c,showClickable:_0x3fca09}=_0x230251;return function(){const _0x3d85b7=_0x1a7a;return _0x4a7dcc[_0x3d85b7(0x33e)](_0x36241c,{'status$':_0x40aaed,'error$':_0x196581,'onConfigure':_0x22311c,'showClickable':_0x3fca09});};}function _0x5792bd(_0x4e2ee2){const _0x2fa8f5=_0x14c7a4;return{'id':_0x1f010e['id'],'type':_0x3c9fd4[_0x2fa8f5(0x27d)]['BUTTON'],'icon':'MenuIcon','title':_0x2fa8f5(0x208),'tooltip':'mcpConfig.title'};}const _0x134756={[_0x3c9fd4[_0x14c7a4(0x258)][_0x14c7a4(0x1bc)]]:{[_0x1f010e['id']]:{'order':0xa,'menuItemFactory':_0x5792bd}}};var _0x1baacc=Object[_0x14c7a4(0x32f)],_0x2e97ed=(_0x1d08ee,_0xf274ef,_0x16b0ba,_0x8b27c4)=>{const _0x2ba5be=_0x14c7a4;for(var _0xa9dbb9=_0x8b27c4>0x1?void 0x0:_0x8b27c4?_0x1baacc(_0xf274ef,_0x16b0ba):_0xf274ef,_0x40a9b4=_0x1d08ee[_0x2ba5be(0x1fe)]-0x1,_0x5886c8;_0x40a9b4>=0x0;_0x40a9b4--)(_0x5886c8=_0x1d08ee[_0x40a9b4])&&(_0xa9dbb9=_0x5886c8(_0xa9dbb9)||_0xa9dbb9);return _0xa9dbb9;},_0x2cc469=(_0x3c1830,_0x4b491c)=>(_0x1bf45a,_0x3d4f7c)=>_0x4b491c(_0x1bf45a,_0x3d4f7c,_0x3c1830);_0x50df75[_0x14c7a4(0x21a)]=class extends _0x4eec7b['Disposable']{constructor(_0x572548,_0x11e092){const _0x3de157=_0x14c7a4;super(),this[_0x3de157(0x214)]=_0x572548,this[_0x3de157(0x30e)]=_0x11e092,this[_0x3de157(0x205)](),this['_initializeMenus']();}[_0x14c7a4(0x205)](){const _0x22aa60=_0x14c7a4;[_0x1f010e][_0x22aa60(0x31d)](_0x5dd866=>{const _0x1bb600=_0x22aa60;this[_0x1bb600(0x2da)](this['_commandService'][_0x1bb600(0x274)](_0x5dd866));});}[_0x14c7a4(0x1d6)](){this['_menuManagerService']['mergeMenu'](_0x134756);}},_0x50df75['MCPUIMenuController']=_0x2e97ed([_0x2cc469(0x0,_0x4eec7b[_0x14c7a4(0x302)]),_0x2cc469(0x1,_0x3c9fd4[_0x14c7a4(0x2b6)])],_0x50df75[_0x14c7a4(0x21a)]);const _0x3ab36b={'mcpStatus':{'disconnected':_0x14c7a4(0x2ba),'connecting':'MCP\x20Connecting...','connected':_0x14c7a4(0x1e7),'failed':_0x14c7a4(0x247),'retrying':_0x14c7a4(0x329),'unknown':_0x14c7a4(0x332),'unauthorized':_0x14c7a4(0x2c0),'sessionOccupied':_0x14c7a4(0x29f),'networkError':_0x14c7a4(0x1cf),'maxRetriesExceeded':_0x14c7a4(0x30a),'clickToConnect':_0x14c7a4(0x1b6),'clickToConfigure':_0x14c7a4(0x2eb)},'mcpConfig':{'title':_0x14c7a4(0x321),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x14c7a4(0x210),'apiKeyPlaceholder':_0x14c7a4(0x270),'apiKeyHint':_0x14c7a4(0x316),'enableAuth':_0x14c7a4(0x25c),'enableAuthHint':_0x14c7a4(0x1bf),'connectionInfo':_0x14c7a4(0x308),'mcpClientConfig':_0x14c7a4(0x308),'configInstructions':_0x14c7a4(0x2d0),'configStepTitle':_0x14c7a4(0x2ec),'configStep1':_0x14c7a4(0x313),'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':_0x14c7a4(0x1f5),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x14c7a4(0x2c1),'save':_0x14c7a4(0x206),'saving':_0x14c7a4(0x1eb),'note1':_0x14c7a4(0x2d6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x14c7a4(0x32c),'configError':_0x14c7a4(0x1e9),'apiApplyInfo':{'title':_0x14c7a4(0x2ff),'description':_0x14c7a4(0x231),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x14c7a4(0x26e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x14c7a4(0x2f2),'invalidConfig':_0x14c7a4(0x301),'invalidApiKey':_0x14c7a4(0x27b)},'connectionStatus':{'disconnected':_0x14c7a4(0x22f),'connecting':_0x14c7a4(0x32a),'connected':_0x14c7a4(0x1dc),'failed':_0x14c7a4(0x328),'retrying':_0x14c7a4(0x29c)},'connectionError':{'unauthorized':_0x14c7a4(0x33b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x14c7a4(0x2c3),'maxRetriesExceeded':_0x14c7a4(0x2f9)}}},_0x9e8b4d={'mcpStatus':{'disconnected':_0x14c7a4(0x26b),'connecting':_0x14c7a4(0x2bc),'connected':_0x14c7a4(0x228),'failed':'MCP\x20连接失败','retrying':_0x14c7a4(0x25d),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x14c7a4(0x1c9),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x14c7a4(0x211),'clickToConnect':_0x14c7a4(0x2cb),'clickToConfigure':_0x14c7a4(0x1f6)},'mcpConfig':{'title':_0x14c7a4(0x2d3),'description':_0x14c7a4(0x265),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x14c7a4(0x284),'apiKeyHint':_0x14c7a4(0x282),'enableAuth':_0x14c7a4(0x1fb),'enableAuthHint':_0x14c7a4(0x286),'connectionInfo':_0x14c7a4(0x230),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x14c7a4(0x1fc),'configStep1':_0x14c7a4(0x33d),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x14c7a4(0x226),'authorizationDescription':_0x14c7a4(0x1d7),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':_0x14c7a4(0x252),'note1':_0x14c7a4(0x285),'note2':_0x14c7a4(0x23f),'configSaved':_0x14c7a4(0x2ee),'configError':_0x14c7a4(0x238),'apiApplyInfo':{'title':_0x14c7a4(0x294),'description':_0x14c7a4(0x331),'univerAiLabel':_0x14c7a4(0x338),'getStarted':_0x14c7a4(0x1bd)},'validation':{'apiKeyRequired':_0x14c7a4(0x30b),'apiKeyTooShort':_0x14c7a4(0x212),'invalidConfig':_0x14c7a4(0x278),'invalidApiKey':_0x14c7a4(0x269)},'connectionStatus':{'disconnected':_0x14c7a4(0x22d),'connecting':_0x14c7a4(0x32b),'connected':_0x14c7a4(0x292),'failed':_0x14c7a4(0x1f4),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x14c7a4(0x293),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x14c7a4(0x220)}}};var _0x865a5e=Object[_0x14c7a4(0x207)],_0x2cbbcc=Object[_0x14c7a4(0x32f)],_0x59fcb4=(_0x33b431,_0x4173a2,_0x2653c6)=>_0x4173a2 in _0x33b431?_0x865a5e(_0x33b431,_0x4173a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2653c6}):_0x33b431[_0x4173a2]=_0x2653c6,_0xaee567=(_0x25a585,_0x578cc3,_0x1b8025,_0x4a2ee9)=>{for(var _0x46111a=_0x4a2ee9>0x1?void 0x0:_0x4a2ee9?_0x2cbbcc(_0x578cc3,_0x1b8025):_0x578cc3,_0x66cd92=_0x25a585['length']-0x1,_0x57ecd8;_0x66cd92>=0x0;_0x66cd92--)(_0x57ecd8=_0x25a585[_0x66cd92])&&(_0x46111a=_0x57ecd8(_0x46111a)||_0x46111a);return _0x46111a;},_0x22842d=(_0x3c3e69,_0x1a4a53)=>(_0x2a0a53,_0x298de6)=>_0x1a4a53(_0x2a0a53,_0x298de6,_0x3c3e69),_0x2b42f6=(_0x242ce8,_0x4b76ac,_0x42a6b5)=>_0x59fcb4(_0x242ce8,_0x4b76ac+'',_0x42a6b5);_0x50df75[_0x14c7a4(0x1e3)]=class extends _0x4eec7b[_0x14c7a4(0x1ec)]{constructor(_0x3d24cc=_0x430cf5,_0x5ca3e2,_0x59a4f5,_0x4c6c85,_0x465b3b,_0x49a1ae){const _0x4a6049=_0x14c7a4;super(),this[_0x4a6049(0x33a)]=_0x3d24cc,this[_0x4a6049(0x1bb)]=_0x5ca3e2,this[_0x4a6049(0x264)]=_0x59a4f5,this[_0x4a6049(0x326)]=_0x4c6c85,this['_localStorageService']=_0x465b3b,this[_0x4a6049(0x2f8)]=_0x49a1ae;const {..._0x22ed91}=_0x4eec7b[_0x4a6049(0x315)]({},_0x430cf5,this[_0x4a6049(0x33a)]);this[_0x4a6049(0x264)][_0x4a6049(0x2f4)](_0x284dd3,_0x22ed91);}async[_0x14c7a4(0x2f5)](){const _0x5b3916=_0x14c7a4,_0x59e2bc=[[_0x50df75[_0x5b3916(0x340)]],[_0x50df75[_0x5b3916(0x2b4)]],[_0x50df75[_0x5b3916(0x21a)]]];this[_0x5b3916(0x1bb)]['has'](_0x6309e8[_0x5b3916(0x27f)])||_0x59e2bc[_0x5b3916(0x288)]([_0x6309e8['ISocketService'],{'useClass':_0x6309e8['WebSocketService']}]),_0x59e2bc[_0x5b3916(0x31d)](_0x3f9fda=>this[_0x5b3916(0x1bb)][_0x5b3916(0x227)](_0x3f9fda)),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75[_0x5b3916(0x340)]),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75['MCPConfigUIController']),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75[_0x5b3916(0x21a)]);}},_0x2b42f6(_0x50df75[_0x14c7a4(0x1e3)],'pluginName',_0x14c7a4(0x1d4)),_0x50df75[_0x14c7a4(0x1e3)]=_0xaee567([_0x4eec7b[_0x14c7a4(0x234)](_0x59ea95[_0x14c7a4(0x209)]),_0x22842d(0x1,_0x4eec7b['Inject'](_0x4eec7b[_0x14c7a4(0x314)])),_0x22842d(0x2,_0x4eec7b[_0x14c7a4(0x203)]),_0x22842d(0x3,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x22842d(0x4,_0x4eec7b[_0x14c7a4(0x20e)]),_0x22842d(0x5,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x2b3)]))],_0x50df75['UniverMCPUIPlugin']),_0x50df75[_0x14c7a4(0x32e)]=_0x52a822,_0x50df75[_0x14c7a4(0x2f7)]=_0x36241c,_0x50df75[_0x14c7a4(0x1cd)]=_0x1f010e,_0x50df75['enUS']=_0x3ab36b,_0x50df75[_0x14c7a4(0x25f)]=_0x9e8b4d,Object['defineProperty'](_0x50df75,Symbol['toStringTag'],{'value':_0x14c7a4(0x2f0)});}));
|
|
1
|
+
(function(_0x3898b7,_0x3fc11d){const _0xafa1e4=_0x5529,_0x1a48e8=_0x3898b7();while(!![]){try{const _0x39d5ad=-parseInt(_0xafa1e4(0x204))/0x1*(-parseInt(_0xafa1e4(0x1d4))/0x2)+-parseInt(_0xafa1e4(0x235))/0x3+-parseInt(_0xafa1e4(0x25b))/0x4*(parseInt(_0xafa1e4(0x1e3))/0x5)+parseInt(_0xafa1e4(0x23b))/0x6+-parseInt(_0xafa1e4(0x208))/0x7+parseInt(_0xafa1e4(0x1e9))/0x8+-parseInt(_0xafa1e4(0x130))/0x9*(-parseInt(_0xafa1e4(0xfd))/0xa);if(_0x39d5ad===_0x3fc11d)break;else _0x1a48e8['push'](_0x1a48e8['shift']());}catch(_0x1660a9){_0x1a48e8['push'](_0x1a48e8['shift']());}}}(_0x591d,0xac680),function(_0x4d93ce,_0x3786d2){const _0x2b632b=_0x5529;typeof exports==_0x2b632b(0x185)&&typeof module<'u'?_0x3786d2(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==_0x2b632b(0x145)&&define['amd']?define([_0x2b632b(0x1d7),_0x2b632b(0x22f),'react/jsx-runtime',_0x2b632b(0x20f),_0x2b632b(0x1fb),_0x2b632b(0x15f),_0x2b632b(0xf1),_0x2b632b(0x1f9),_0x2b632b(0x140)],_0x3786d2):(_0x4d93ce=typeof globalThis<'u'?globalThis:_0x4d93ce||self,_0x3786d2(_0x4d93ce[_0x2b632b(0x247)]={},_0x4d93ce[_0x2b632b(0x124)],_0x4d93ce[_0x2b632b(0x108)],_0x4d93ce[_0x2b632b(0x275)],_0x4d93ce[_0x2b632b(0x25f)],_0x4d93ce[_0x2b632b(0x1d5)],_0x4d93ce['rxjs'],_0x4d93ce['React'],_0x4d93ce['UniverNetwork']));}(this,function(_0x17e70a,_0x30abb5,_0x49a7f0,_0x1fc7f3,_0x47cbf3,_0x145489,_0x3eae83,_0x552dd2,_0x8fd9b6){'use strict';const _0x40d436=_0x5529;var _0x3573e7=Object[_0x40d436(0x11d)],_0x41a3fa=(_0x470a86,_0x9f4d52,_0x27a9ef)=>_0x9f4d52 in _0x470a86?_0x3573e7(_0x470a86,_0x9f4d52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27a9ef}):_0x470a86[_0x9f4d52]=_0x27a9ef,_0x553b09=(_0x2e56cb,_0xbe16f0,_0x3f350e)=>_0x41a3fa(_0x2e56cb,typeof _0xbe16f0!=_0x40d436(0x17c)?_0xbe16f0+'':_0xbe16f0,_0x3f350e);function _0x165e2b({ref:_0x4b0d36,..._0x21fcb9}){const _0x230b90=_0x40d436,{icon:_0x2bedb4,id:_0x2a400a,className:_0x278599,extend:_0x27ecf6,..._0x2ac8ff}=_0x21fcb9,_0x1a7c92=(_0x230b90(0x239)+_0x2a400a+'\x20'+(_0x278599||''))['trim'](),_0x27e462=_0x552dd2[_0x230b90(0x154)]('_'+_0x1c6386());return _0x228592(_0x2bedb4,''+_0x2a400a,{'defIds':_0x2bedb4[_0x230b90(0x21d)],'idSuffix':_0x27e462[_0x230b90(0x245)]},{'ref':_0x4b0d36,'className':_0x1a7c92,..._0x2ac8ff},_0x27ecf6);}function _0x228592(_0x279ef9,_0x2b79bc,_0x21b2bb,_0x3aed3c,_0x1d340e){const _0x235298=_0x40d436;return _0x552dd2[_0x235298(0x150)](_0x279ef9[_0x235298(0x17f)],{'key':_0x2b79bc,..._0x1db47c(_0x279ef9,_0x21b2bb,_0x1d340e),..._0x3aed3c},(_0x42122c(_0x279ef9,_0x21b2bb)[_0x235298(0x1f7)]||[])[_0x235298(0xf4)]((_0x3181e7,_0x4c03be)=>_0x228592(_0x3181e7,_0x2b79bc+'-'+_0x279ef9[_0x235298(0x17f)]+'-'+_0x4c03be,_0x21b2bb,void 0x0,_0x1d340e)));}function _0x1db47c(_0x2a09c7,_0x4f5e92,_0x439bf5){const _0x4ee6d4=_0x40d436,_0x30e0c5={..._0x2a09c7['attrs']};_0x439bf5!=null&&_0x439bf5[_0x4ee6d4(0x1ce)]&&_0x30e0c5[_0x4ee6d4(0x24b)]==='colorChannel1'&&(_0x30e0c5['fill']=_0x439bf5[_0x4ee6d4(0x1ce)]),_0x2a09c7['tag']===_0x4ee6d4(0x11e)&&_0x30e0c5['id']&&(_0x30e0c5['id']=_0x30e0c5['id']+_0x4f5e92[_0x4ee6d4(0xeb)]),Object[_0x4ee6d4(0x18a)](_0x30e0c5)['forEach'](([_0x535c0d,_0x1c049f])=>{const _0x1b295e=_0x4ee6d4;_0x535c0d===_0x1b295e(0x11e)&&typeof _0x1c049f==_0x1b295e(0x240)&&(_0x30e0c5[_0x535c0d]=_0x1c049f[_0x1b295e(0x246)](/url\(#(.*)\)/,_0x1b295e(0x24f)+_0x4f5e92[_0x1b295e(0xeb)]+')'));});const {defIds:_0x3773dc}=_0x4f5e92;return!_0x3773dc||_0x3773dc['length']===0x0||(_0x2a09c7[_0x4ee6d4(0x17f)]===_0x4ee6d4(0x22a)&&_0x30e0c5[_0x4ee6d4(0x1d9)]&&(_0x30e0c5[_0x4ee6d4(0x1d9)]=_0x30e0c5[_0x4ee6d4(0x1d9)]+_0x4f5e92['idSuffix']),Object['entries'](_0x30e0c5)[_0x4ee6d4(0x242)](([_0x551335,_0x253870])=>{const _0x4a5eab=_0x4ee6d4;typeof _0x253870==_0x4a5eab(0x240)&&(_0x30e0c5[_0x551335]=_0x253870['replace'](/url\(#(.*)\)/,_0x4a5eab(0x24f)+_0x4f5e92[_0x4a5eab(0xeb)]+')'));})),_0x30e0c5;}function _0x42122c(_0x45d183,_0x9e3c02){const _0x1e280b=_0x40d436;var _0x5b379e;const {defIds:_0x5500dc}=_0x9e3c02;return!_0x5500dc||_0x5500dc['length']===0x0?_0x45d183:_0x45d183[_0x1e280b(0x17f)]===_0x1e280b(0x181)&&((_0x5b379e=_0x45d183[_0x1e280b(0x1f7)])!=null&&_0x5b379e[_0x1e280b(0x237)])?{..._0x45d183,'children':_0x45d183[_0x1e280b(0x1f7)][_0x1e280b(0xf4)](_0x386021=>typeof _0x386021['attrs']['id']==_0x1e280b(0x240)&&_0x5500dc&&_0x5500dc[_0x1e280b(0x254)](_0x386021[_0x1e280b(0x123)]['id'])?{..._0x386021,'attrs':{..._0x386021[_0x1e280b(0x123)],'id':_0x386021[_0x1e280b(0x123)]['id']+_0x9e3c02['idSuffix']}}:_0x386021)}:_0x45d183;}function _0x1c6386(){const _0x1e66db=_0x40d436;return Math['random']()[_0x1e66db(0x111)](0x24)['substring'](0x2,0x8);}_0x165e2b['displayName']=_0x40d436(0x270);const _0x50f804={'tag':_0x40d436(0x243),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40d436(0x103),'width':_0x40d436(0x113),'height':_0x40d436(0x113)},'children':[{'tag':_0x40d436(0x110),'attrs':{'fill':_0x40d436(0x18c),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x40d436(0x11c)}}]},_0x4e1d9a=_0x552dd2[_0x40d436(0x148)](function(_0x15ae0c,_0x40bc3c){const _0xa837a5=_0x40d436;return _0x552dd2['createElement'](_0x165e2b,Object[_0xa837a5(0x1ab)]({},_0x15ae0c,{'id':_0xa837a5(0x19e),'ref':_0x40bc3c,'icon':_0x50f804}));});_0x4e1d9a[_0x40d436(0x1c8)]='CheckMarkIcon';const _0x580f22={'tag':_0x40d436(0x243),'attrs':{'xmlns':_0x40d436(0x18d),'fill':_0x40d436(0x231),'viewBox':_0x40d436(0x103),'width':'1em','height':'1em'},'children':[{'tag':_0x40d436(0x110),'attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x51f3fe=_0x552dd2[_0x40d436(0x148)](function(_0x537061,_0x8ebb82){const _0x7746f=_0x40d436;return _0x552dd2[_0x7746f(0x150)](_0x165e2b,Object['assign']({},_0x537061,{'id':'close-icon','ref':_0x8ebb82,'icon':_0x580f22}));});_0x51f3fe['displayName']=_0x40d436(0x25d);const _0x26a8a3={'tag':_0x40d436(0x243),'attrs':{'xmlns':_0x40d436(0x18d),'fill':_0x40d436(0x231),'viewBox':'0\x200\x2016\x2016','width':_0x40d436(0x113),'height':_0x40d436(0x113)},'children':[{'tag':_0x40d436(0x110),'attrs':{'fill':_0x40d436(0x18c),'d':_0x40d436(0x1ae)}},{'tag':_0x40d436(0x110),'attrs':{'fill':_0x40d436(0x18c),'d':_0x40d436(0x1eb)}},{'tag':_0x40d436(0x110),'attrs':{'fill':_0x40d436(0x18c),'d':_0x40d436(0x256),'fillRule':_0x40d436(0x11c),'clipRule':_0x40d436(0x11c)}}]},_0x36acb5=_0x552dd2[_0x40d436(0x148)](function(_0xee466a,_0x28a1ad){const _0x23807a=_0x40d436;return _0x552dd2[_0x23807a(0x150)](_0x165e2b,Object[_0x23807a(0x1ab)]({},_0xee466a,{'id':_0x23807a(0x177),'ref':_0x28a1ad,'icon':_0x26a8a3}));});_0x36acb5['displayName']=_0x40d436(0x198);const _0x46f8c8={'tag':_0x40d436(0x243),'attrs':{'xmlns':_0x40d436(0x18d),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x40d436(0x113),'height':_0x40d436(0x113)},'children':[{'tag':'g','attrs':{'clipPath':_0x40d436(0x1b5)},'children':[{'tag':_0x40d436(0x110),'attrs':{'stroke':_0x40d436(0x18c),'d':_0x40d436(0x1ee),'strokeLinecap':_0x40d436(0x105),'strokeLinejoin':_0x40d436(0x105),'strokeWidth':1.2}}]},{'tag':_0x40d436(0x181),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x40d436(0x234)},'children':[{'tag':_0x40d436(0x110),'attrs':{'fill':'white','d':_0x40d436(0x220)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x46b9c6=_0x552dd2[_0x40d436(0x148)](function(_0x13f105,_0x355ff0){const _0x2e184f=_0x40d436;return _0x552dd2['createElement'](_0x165e2b,Object[_0x2e184f(0x1ab)]({},_0x13f105,{'id':_0x2e184f(0x167),'ref':_0x355ff0,'icon':_0x46f8c8}));});_0x46b9c6[_0x40d436(0x1c8)]='OffLineIcon';const _0x292bda={'tag':'svg','attrs':{'xmlns':_0x40d436(0x18d),'fill':_0x40d436(0x231),'viewBox':_0x40d436(0x203),'width':_0x40d436(0x113),'height':_0x40d436(0x113)},'children':[{'tag':'g','attrs':{'clipPath':_0x40d436(0x20d)},'children':[{'tag':_0x40d436(0x110),'attrs':{'stroke':_0x40d436(0x18c),'d':_0x40d436(0x1a9),'strokeLinecap':'round','strokeLinejoin':_0x40d436(0x105),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x40d436(0x218)},'children':[{'tag':_0x40d436(0x110),'attrs':{'fill':_0x40d436(0x1c2),'d':_0x40d436(0x220),'transform':_0x40d436(0x1b6)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x55d2e7=_0x552dd2[_0x40d436(0x148)](function(_0x4c568d,_0x71030b){const _0x4a87b9=_0x40d436;return _0x552dd2[_0x4a87b9(0x150)](_0x165e2b,Object[_0x4a87b9(0x1ab)]({},_0x4c568d,{'id':_0x4a87b9(0xef),'ref':_0x71030b,'icon':_0x292bda}));});_0x55d2e7[_0x40d436(0x1c8)]=_0x40d436(0x1ac);function _0x1b57b7(_0x1cd26a){const _0x12389e=_0x40d436;var _0x3883cf,_0x377f66;const {mcpCoreConfig:_0x1f4e54,onSave:_0x54b296,loading:_0x29a882=!0x1,config:_0x464081,connectionStatus$:_0x2d5eff,connectionError$:_0x2279d6,currentApiKey$:_0x4821c8,currentSessionId$:_0x162832}=_0x1cd26a,_0xf6681d=_0x145489[_0x12389e(0x12c)](_0x30abb5[_0x12389e(0x14d)]),_0x4ce9e7=_0x145489[_0x12389e(0x1ba)](_0x2d5eff,_0x1fc7f3[_0x12389e(0x1c0)][_0x12389e(0x19f)]),_0x4df930=_0x145489[_0x12389e(0x1ba)](_0x2279d6,_0x1fc7f3[_0x12389e(0x1c4)][_0x12389e(0x14a)]),_0x5b585e=_0x145489[_0x12389e(0x1ba)](_0x162832,''),_0xc12177=_0x145489[_0x12389e(0x1ba)](_0x4821c8,''),[_0x5f0a21,_0x4f341c]=_0x552dd2[_0x12389e(0x195)](_0xc12177||''),_0xd743d3=!0x0,_0x42cf25=_0x464081['showDeveloperTools']&&_0x1f4e54[_0x12389e(0x1f3)]&&(_0x1f4e54['mcpServerUrl'][_0x12389e(0x254)](_0x12389e(0x161))||_0x1f4e54[_0x12389e(0x1f3)][_0x12389e(0x254)](_0x12389e(0x24c))),_0x7785f9=(_0x3883cf=_0x1f4e54[_0x12389e(0x1f3)])==null?void 0x0:_0x3883cf['includes'](_0x12389e(0x161)),_0x4c9586=(_0x377f66=_0x1f4e54['mcpServerUrl'])==null?void 0x0:_0x377f66[_0x12389e(0x254)](_0x12389e(0x24c)),_0x1c7af5=_0x7785f9?_0x12389e(0x20a):'https://console.univer.ai',_0x1ae04d=_0x464081[_0x12389e(0x1cd)]&&(_0x7785f9||_0x4c9586),[_0x49d3df,_0x16017b]=_0x552dd2['useState'](!_0x5f0a21[_0x12389e(0x12e)]()),_0x1d76b5=(_0x26ce0a,_0x4550f1)=>{const _0x5a32de=_0x12389e;if(_0x4550f1===_0x1fc7f3[_0x5a32de(0x1c4)]['UNAUTHORIZED'])return _0x5a32de(0x221);switch(_0x26ce0a){case _0x1fc7f3[_0x5a32de(0x1c0)][_0x5a32de(0x197)]:return _0x5a32de(0x1bf);case _0x1fc7f3['MCPConnectionStatus'][_0x5a32de(0x199)]:case _0x1fc7f3['MCPConnectionStatus'][_0x5a32de(0x214)]:return _0x5a32de(0x216);case _0x1fc7f3['MCPConnectionStatus']['FAILED']:return _0x5a32de(0x221);default:return _0x5a32de(0x159);}},_0x270dd6=(_0x49e5b2,_0x1b7d8a)=>{const _0x508db2=_0x12389e;if(_0x1b7d8a===_0x1fc7f3[_0x508db2(0x1c4)]['UNAUTHORIZED'])return _0x508db2(0x263);switch(_0x49e5b2){case _0x1fc7f3[_0x508db2(0x1c0)]['CONNECTED']:return _0x508db2(0x176);case _0x1fc7f3[_0x508db2(0x1c0)][_0x508db2(0x199)]:case _0x1fc7f3[_0x508db2(0x1c0)][_0x508db2(0x214)]:return _0x508db2(0x27d);case _0x1fc7f3[_0x508db2(0x1c0)]['FAILED']:return _0x508db2(0x263);default:return _0x508db2(0x15c);}},_0x53f9ff=_0x179348=>{const _0x3e8208=_0x12389e;switch(_0x179348){case _0x1fc7f3[_0x3e8208(0x1c0)][_0x3e8208(0x197)]:return _0xf6681d['t']('mcpConfig.connectionStatus.connected');case _0x1fc7f3['MCPConnectionStatus']['CONNECTING']:return _0xf6681d['t'](_0x3e8208(0x136));case _0x1fc7f3['MCPConnectionStatus'][_0x3e8208(0x18f)]:return _0xf6681d['t'](_0x3e8208(0x127));case _0x1fc7f3[_0x3e8208(0x1c0)][_0x3e8208(0x214)]:return _0xf6681d['t'](_0x3e8208(0x17d));default:return _0xf6681d['t'](_0x3e8208(0x1c1));}},_0x1349b2=_0x169f8f=>{const _0x5dbe28=_0x12389e;switch(_0x169f8f){case _0x1fc7f3[_0x5dbe28(0x1c4)][_0x5dbe28(0x1a5)]:return _0xf6681d['t'](_0x5dbe28(0x16d));case _0x1fc7f3[_0x5dbe28(0x1c4)][_0x5dbe28(0x182)]:return _0xf6681d['t'](_0x5dbe28(0x1af));case _0x1fc7f3['MCPConnectionError'][_0x5dbe28(0x1f6)]:return _0xf6681d['t'](_0x5dbe28(0x13f));case _0x1fc7f3[_0x5dbe28(0x1c4)]['MAX_RETRIES_EXCEEDED']:return _0xf6681d['t'](_0x5dbe28(0x20c));default:return'';}},_0x40ade6=_0x552dd2[_0x12389e(0x1be)](()=>{const _0x523ad5=_0x12389e,_0xca321a={..._0x1f4e54,'apiKey':_0x5f0a21[_0x523ad5(0x12e)](),'enableAuth':_0xd743d3};_0x54b296(_0xca321a);},[_0x1f4e54,_0x5f0a21,_0xd743d3,_0x54b296]),_0x492863=_0x5f0a21[_0x12389e(0x12e)]()[_0x12389e(0x237)]>0x0;return _0x49a7f0[_0x12389e(0x266)]('div',{'className':_0x12389e(0x222),'children':[_0x49a7f0['jsx']('div',{'className':_0x12389e(0xf3),'children':_0x49a7f0[_0x12389e(0x266)]('div',{'className':_0x12389e(0x126),'children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0xe7),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x49a7f0['jsx'](_0x12389e(0x10d),{'className':_0x12389e(0xe1),'children':'⚙'})}),_0x49a7f0[_0x12389e(0x241)]('div',{'children':_0x49a7f0[_0x12389e(0x241)]('p',{'className':_0x12389e(0x224),'children':_0xf6681d['t'](_0x12389e(0x137))})})]})}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x1e7),'children':[_0x49a7f0[_0x12389e(0x241)]('div',{'className':_0x47cbf3[_0x12389e(0x157)](_0x12389e(0x160),_0x1d76b5(_0x4ce9e7,_0x4df930)),'children':_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x49a7f0[_0x12389e(0x241)]('div',{'className':_0x47cbf3[_0x12389e(0x157)]('univer-size-2\x20univer-rounded-full',_0x270dd6(_0x4ce9e7,_0x4df930))}),_0x49a7f0[_0x12389e(0x241)]('span',{'className':_0x12389e(0x17a),'children':_0x53f9ff(_0x4ce9e7)})]})}),_0x4df930!==_0x1fc7f3[_0x12389e(0x1c4)][_0x12389e(0x14a)]&&(_0x4ce9e7===_0x1fc7f3[_0x12389e(0x1c0)]['FAILED']||_0x4df930===_0x1fc7f3['MCPConnectionError']['UNAUTHORIZED'])&&_0x49a7f0['jsx'](_0x12389e(0xe7),{'className':_0x12389e(0x1cb),'children':_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x252),'children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0x10d),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x49a7f0[_0x12389e(0x241)]('p',{'className':_0x12389e(0x1e1),'children':_0x1349b2(_0x4df930)})]})})]}),_0x49a7f0[_0x12389e(0x241)]('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x163),'children':[_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':'univer-space-y-2','children':[_0x49a7f0[_0x12389e(0x266)](_0x12389e(0x273),{'className':_0x12389e(0x22d),'children':[_0x49a7f0[_0x12389e(0x241)]('span',{'children':'🔑'}),'\x20',_0xf6681d['t'](_0x12389e(0x232)),_0x49a7f0['jsx'](_0x12389e(0x10d),{'className':'univer-text-red-500','children':'*'}),_0x42cf25&&_0x49a7f0['jsx']('a',{'className':_0x12389e(0x1c9),'title':_0xf6681d['t'](_0x12389e(0xec)),'role':_0x12389e(0x128),'onClick':()=>_0x16017b(!0x0),'children':_0x49a7f0[_0x12389e(0x241)](_0x36acb5,{})})]}),_0x49a7f0['jsx'](_0x47cbf3[_0x12389e(0x16a)],{'type':'text','placeholder':_0xf6681d['t'](_0x12389e(0x23f)),'value':_0x5f0a21,'disabled':_0x29a882,'autoComplete':_0x12389e(0x262),'onChange':_0x4f341c}),_0x49a7f0[_0x12389e(0x241)]('p',{'className':_0x12389e(0x23a),'children':_0xf6681d['t']('mcpConfig.apiKeyHint')})]}),_0x42cf25&&_0x49d3df&&_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0xe2),'children':[_0x49a7f0[_0x12389e(0x241)]('a',{'className':_0x12389e(0x249),'role':_0x12389e(0x128),'onClick':()=>_0x16017b(!0x1),'children':_0x49a7f0['jsx'](_0x51f3fe,{'className':_0x12389e(0x166)})}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0xe7),{'className':_0x12389e(0x22b),'children':_0x49a7f0[_0x12389e(0x241)](_0x12389e(0x10d),{'className':_0x12389e(0x18e),'children':'🚀'})}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x112),'children':[_0x49a7f0[_0x12389e(0x241)]('h4',{'className':_0x12389e(0x1b9),'children':_0xf6681d['t'](_0x12389e(0xec))}),_0x49a7f0['jsx']('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0xf6681d['t'](_0x12389e(0x178))}),_0x49a7f0[_0x12389e(0x241)]('div',{'className':_0x12389e(0x225),'children':_0x1ae04d&&_0x49a7f0[_0x12389e(0x266)]('a',{'className':_0x12389e(0x272),'href':_0x1c7af5,'target':_0x12389e(0x12d),'rel':'noopener\x20noreferrer','children':[_0x49a7f0[_0x12389e(0x241)]('span',{'children':'🤖'}),_0xf6681d['t'](_0x12389e(0x26c)),_0x49a7f0[_0x12389e(0x241)]('span',{'className':_0x12389e(0x20e),'children':'↗'})]})}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0xf6681d['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x464081['showDeveloperTools']&&_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x26f),'children':[_0x49a7f0[_0x12389e(0x266)]('h4',{'className':_0x12389e(0x22e),'children':[_0x49a7f0[_0x12389e(0x241)]('span',{'children':'🔗'}),'\x20',_0xf6681d['t']('mcpConfig.connectionInfo')]}),_0x49a7f0[_0x12389e(0x266)]('div',{'className':_0x12389e(0x186),'children':[_0x49a7f0['jsxs'](_0x12389e(0xe7),{'className':_0x12389e(0x248),'children':[_0x49a7f0[_0x12389e(0x241)]('p',{'className':_0x12389e(0x13c),'children':_0xf6681d['t'](_0x12389e(0x187))}),_0x49a7f0[_0x12389e(0x266)]('div',{'className':_0x12389e(0x12b),'children':[_0x49a7f0['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xf6681d['t'](_0x12389e(0xf5))}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x17b),'children':[_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x141),'children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0x10d),{'className':_0x12389e(0x1d8),'children':'1'}),_0xf6681d['t'](_0x12389e(0x238))]}),_0x49a7f0[_0x12389e(0x266)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0x10d),{'className':_0x12389e(0x1d8),'children':'2'}),_0xf6681d['t'](_0x12389e(0xfc))]}),_0x49a7f0['jsxs'](_0x12389e(0xe7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x49a7f0['jsx'](_0x12389e(0x10d),{'className':_0x12389e(0x1d8),'children':'3'}),_0xf6681d['t'](_0x12389e(0x120))]})]})]})]}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x12b),'children':[_0x49a7f0['jsx'](_0x12389e(0xe7),{'className':_0x12389e(0x1c6),'children':'MCP\x20Configuration'}),_0x49a7f0[_0x12389e(0x241)]('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x49a7f0[_0x12389e(0x241)](_0x12389e(0x168),{'className':_0x12389e(0x1e0),'children':JSON[_0x12389e(0xff)]({'mcpServers':{'univer':{'url':_0x12389e(0x107)+(_0x5b585e||_0x12389e(0x17e)),'type':_0x12389e(0x212),'headers':{'Authorization':'Bearer\x20'+(_0x5f0a21||'<API_KEY>')}}}},null,0x2)})})]}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x248),'children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0xe7),{'className':_0x12389e(0x1c6),'children':_0xf6681d['t'](_0x12389e(0x255))}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x12b),'children':[_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x1ea),'children':[_0x49a7f0['jsx'](_0x12389e(0xe7),{'className':_0x12389e(0x1fe)}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x196),'children':[_0x49a7f0['jsx']('div',{'className':_0x12389e(0x205),'children':_0x12389e(0x253)}),_0x49a7f0[_0x12389e(0x241)](_0x12389e(0xe7),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0xf6681d['t'](_0x12389e(0x260))})]})]}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0x1ea),'children':[_0x49a7f0[_0x12389e(0x241)]('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x49a7f0['jsxs'](_0x12389e(0xe7),{'className':_0x12389e(0x196),'children':[_0x49a7f0['jsx']('div',{'className':_0x12389e(0x205),'children':_0x12389e(0x267)}),_0x49a7f0[_0x12389e(0x241)](_0x12389e(0xe7),{'className':_0x12389e(0x23a),'children':_0xf6681d['t'](_0x12389e(0x1ed))})]})]})]})]})]})]}),_0x49a7f0[_0x12389e(0x241)](_0x47cbf3[_0x12389e(0x1cf)],{'onClick':_0x40ade6,'disabled':!_0x492863||_0x29a882,'className':_0x12389e(0x146),'children':_0x29a882?_0x49a7f0[_0x12389e(0x266)](_0x12389e(0x10d),{'className':_0x12389e(0x141),'children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0x10d),{'children':'⟲'}),_0xf6681d['t'](_0x12389e(0x15d))]}):_0x49a7f0[_0x12389e(0x266)]('span',{'className':_0x12389e(0x141),'children':[_0x49a7f0[_0x12389e(0x241)](_0x4e1d9a,{}),_0xf6681d['t'](_0x12389e(0x1b4))]})}),_0x49a7f0[_0x12389e(0x241)](_0x12389e(0xe7),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'className':_0x12389e(0xf0),'children':[_0x49a7f0[_0x12389e(0x241)]('span',{'className':_0x12389e(0x200),'children':'💡'}),_0x49a7f0[_0x12389e(0x266)]('div',{'className':_0x12389e(0x175),'children':[_0x49a7f0[_0x12389e(0x241)](_0x12389e(0xe7),{'className':_0x12389e(0x1b7),'children':'Configuration\x20Notes:'}),_0x49a7f0[_0x12389e(0x266)](_0x12389e(0xe7),{'children':['•',_0xf6681d['t']('mcpConfig.note1')]}),_0x49a7f0['jsxs']('div',{'children':['•',_0xf6681d['t']('mcpConfig.note2')]})]})]})})]})})]});}const _0x4a9750=_0x40d436(0xf2),_0x2b0321={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1fbece=Object['getOwnPropertyDescriptor'],_0x12bdc6=(_0x57bde6,_0x419694,_0x5b281c,_0x3ae225)=>{const _0x1865fb=_0x40d436;for(var _0x511122=_0x3ae225>0x1?void 0x0:_0x3ae225?_0x1fbece(_0x419694,_0x5b281c):_0x419694,_0x51264f=_0x57bde6[_0x1865fb(0x237)]-0x1,_0x5db7a8;_0x51264f>=0x0;_0x51264f--)(_0x5db7a8=_0x57bde6[_0x51264f])&&(_0x511122=_0x5db7a8(_0x511122)||_0x511122);return _0x511122;},_0x2d9910=(_0x554f4f,_0x3abb54)=>(_0x47a783,_0x4ff761)=>_0x3abb54(_0x47a783,_0x4ff761,_0x554f4f);const _0x204604=_0x40d436(0x171),_0x1f3a91=_0x40d436(0x143);_0x17e70a[_0x40d436(0x194)]=class extends _0x30abb5[_0x40d436(0x1da)]{constructor(_0x56a537,_0x3bc2d2,_0x3b5617,_0x541b14,_0x34284d,_0x2e3fc0,_0xecb36,_0x5076d7,_0x4eb99c,_0x3928af){const _0x1dadd4=_0x40d436;super(),_0x553b09(this,_0x1dadd4(0x1b0),new _0x3eae83['BehaviorSubject'](!0x1)),_0x553b09(this,_0x1dadd4(0x26e),new _0x3eae83['BehaviorSubject']({})),_0x553b09(this,'_config$',new _0x3eae83['BehaviorSubject']({})),_0x553b09(this,_0x1dadd4(0x104),new _0x3eae83[(_0x1dadd4(0xe9))]('')),_0x553b09(this,_0x1dadd4(0x23c),async _0x22d302=>{const _0x4b23ef=_0x1dadd4;var _0x416d2a,_0x21980b;this['_loading$'][_0x4b23ef(0x102)](!0x0);try{const _0x44096d=await this[_0x4b23ef(0x16f)](_0x22d302);if(!_0x44096d[_0x4b23ef(0xfe)]){this[_0x4b23ef(0x121)][_0x4b23ef(0x26d)]({'type':_0x47cbf3[_0x4b23ef(0x233)][_0x4b23ef(0x13a)],'content':_0x44096d['errorMessage']||this[_0x4b23ef(0xea)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x22d302[_0x4b23ef(0xfb)]?await this[_0x4b23ef(0x118)]['setItem'](_0x204604,_0x22d302[_0x4b23ef(0xfb)][_0x4b23ef(0x12e)]()):await this[_0x4b23ef(0x118)]['removeItem'](_0x204604),this[_0x4b23ef(0x104)][_0x4b23ef(0x102)](((_0x416d2a=_0x22d302['apiKey'])==null?void 0x0:_0x416d2a['trim']())||''),this[_0x4b23ef(0x202)]['__setCustomHeaders']({'Authorization':_0x4b23ef(0x1b8)+((_0x21980b=_0x22d302[_0x4b23ef(0xfb)])==null?void 0x0:_0x21980b[_0x4b23ef(0x12e)]())}),this[_0x4b23ef(0x121)][_0x4b23ef(0x26d)]({'type':_0x47cbf3[_0x4b23ef(0x233)][_0x4b23ef(0x1d6)],'content':this[_0x4b23ef(0xea)]['t'](_0x4b23ef(0x219))}),setTimeout(()=>{const _0x494783=_0x4b23ef;this['_dialogService'][_0x494783(0x21b)](_0x1f3a91);},0x320);}catch(_0x457e82){this[_0x4b23ef(0x15a)]['error'](_0x4b23ef(0x156),_0x457e82),this[_0x4b23ef(0x121)][_0x4b23ef(0x26d)]({'type':_0x47cbf3[_0x4b23ef(0x233)][_0x4b23ef(0x13a)],'content':this[_0x4b23ef(0xea)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x4b23ef(0x102)](!0x1);}}),(this[_0x1dadd4(0x1a8)]=_0x56a537,this['_uiPartsService']=_0x3bc2d2,this['_configService']=_0x3b5617,this[_0x1dadd4(0x118)]=_0x541b14,this[_0x1dadd4(0x207)]=_0x34284d,this['_messageService']=_0x2e3fc0,this[_0x1dadd4(0x164)]=_0xecb36,this[_0x1dadd4(0xea)]=_0x5076d7,this['_logService']=_0x4eb99c,this[_0x1dadd4(0x202)]=_0x3928af,this[_0x1dadd4(0x101)](),this[_0x1dadd4(0x1f0)](),this[_0x1dadd4(0x15b)]());}[_0x40d436(0x155)](){const _0x39da85=_0x40d436,_0x4667fd=this[_0x39da85(0x13e)]['getConfig'](_0x4a9750);_0x4667fd!=null&&_0x4667fd[_0x39da85(0x1cd)]&&this[_0x39da85(0x207)][_0x39da85(0x172)]({'id':_0x1f3a91,'title':{'title':this[_0x39da85(0xea)]['t'](_0x39da85(0x129))},'children':{'label':_0x39da85(0x1d3)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x28c240=_0x39da85;this[_0x28c240(0x207)][_0x28c240(0x21b)](_0x1f3a91);}});}['getCurrentConfig'](){const _0x7a973b=_0x40d436;return this[_0x7a973b(0x26e)][_0x7a973b(0x278)];}[_0x40d436(0x15b)](){const _0x725c50=_0x40d436;this[_0x725c50(0x226)](this[_0x725c50(0x164)][_0x725c50(0x1f8)](_0x725c50(0x1d3),this[_0x725c50(0x132)]()));}[_0x40d436(0x132)](){const _0x411e88=_0x40d436;return _0x145489[_0x411e88(0x25a)](()=>{const _0x84999c=_0x411e88;var _0x1f6377,_0x4ac706,_0x2647b8;return _0x49a7f0[_0x84999c(0x241)](_0x1b57b7,{'config':this['_config$'][_0x84999c(0x278)],'mcpCoreConfig':this[_0x84999c(0x26e)][_0x84999c(0x278)],'currentApiKey$':this[_0x84999c(0x104)],'onSave':this[_0x84999c(0x23c)],'loading':this['_loading$'][_0x84999c(0x278)],'connectionStatus$':(_0x1f6377=this['_mcpConnectionController'])==null?void 0x0:_0x1f6377[_0x84999c(0x11a)],'connectionError$':(_0x4ac706=this[_0x84999c(0x202)])==null?void 0x0:_0x4ac706[_0x84999c(0x250)],'currentSessionId$':(_0x2647b8=this[_0x84999c(0x202)])==null?void 0x0:_0x2647b8[_0x84999c(0x1dc)]});},this[_0x411e88(0x1a8)]);}['_initConfigSync'](){const _0x118784=_0x40d436;this[_0x118784(0x226)](this[_0x118784(0x13e)][_0x118784(0x14b)](_0x1fc7f3['MCP_PLUGIN_CONFIG_KEY'])[_0x118784(0x211)](_0x49b973=>{const _0x295abc=_0x118784;this[_0x295abc(0x26e)][_0x295abc(0x102)](_0x49b973||{});}));const _0x2e6d57=this[_0x118784(0x13e)][_0x118784(0x149)](_0x1fc7f3[_0x118784(0x10a)]);this[_0x118784(0x26e)]['next'](_0x2e6d57||{}),this[_0x118784(0x226)](this['_configService']['subscribeConfigValue$'](_0x4a9750)[_0x118784(0x211)](_0x1a0495=>{this['_config$']['next'](_0x1a0495||{});}));const _0xa399e8=this[_0x118784(0x13e)][_0x118784(0x149)](_0x4a9750);this[_0x118784(0x170)]['next'](_0xa399e8||{});}async[_0x40d436(0x1f0)](){const _0x1e4df3=_0x40d436,_0x3035e3=this[_0x1e4df3(0x13e)]['getConfig'](_0x4a9750);if(!(_0x3035e3!=null&&_0x3035e3[_0x1e4df3(0x1cd)]))return;const _0x248a12=await this['_localStorageService'][_0x1e4df3(0x173)](_0x204604);_0x248a12&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x1e4df3(0x1b8)+_0x248a12}),this[_0x1e4df3(0x104)]['next'](_0x248a12));}async['_validateConfig'](_0x3a5d04){const _0xfc837e=_0x40d436;if(!_0x3a5d04[_0xfc837e(0xfb)]||_0x3a5d04['apiKey']['trim']()[_0xfc837e(0x237)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3a5d04[_0xfc837e(0xfb)][_0xfc837e(0x12e)]()[_0xfc837e(0x237)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xfc837e(0xea)]['t'](_0xfc837e(0x116))};try{const _0x4269bf=await this[_0xfc837e(0x1a8)][_0xfc837e(0x22c)](_0x1fc7f3[_0xfc837e(0x114)])[_0xfc837e(0x19c)](_0x3a5d04[_0xfc837e(0xfb)][_0xfc837e(0x12e)]());return _0x4269bf[_0xfc837e(0xfe)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4269bf[_0xfc837e(0x16b)]||this['_localeService']['t'](_0xfc837e(0x229))};}catch(_0x3b4ebc){return console[_0xfc837e(0x169)](_0xfc837e(0x12a),_0x3b4ebc),{'isValid':!0x0};}}},_0x17e70a['MCPConfigUIController']=_0x12bdc6([_0x2d9910(0x0,_0x30abb5[_0x40d436(0x191)](_0x30abb5['Injector'])),_0x2d9910(0x1,_0x145489['IUIPartsService']),_0x2d9910(0x2,_0x30abb5[_0x40d436(0x12f)]),_0x2d9910(0x3,_0x30abb5[_0x40d436(0x106)]),_0x2d9910(0x4,_0x145489[_0x40d436(0x16e)]),_0x2d9910(0x5,_0x145489[_0x40d436(0x13d)]),_0x2d9910(0x6,_0x30abb5[_0x40d436(0x191)](_0x145489[_0x40d436(0x265)])),_0x2d9910(0x7,_0x30abb5[_0x40d436(0x191)](_0x30abb5['LocaleService'])),_0x2d9910(0x8,_0x30abb5[_0x40d436(0x180)]),_0x2d9910(0x9,_0x30abb5[_0x40d436(0x191)](_0x1fc7f3[_0x40d436(0x114)]))],_0x17e70a[_0x40d436(0x194)]);const _0x22d80d={'id':_0x40d436(0x1b2),'type':_0x30abb5['CommandType']['COMMAND'],'handler':async(_0x145fdd,_0x43506f)=>(_0x145fdd[_0x40d436(0x22c)](_0x17e70a[_0x40d436(0x194)])[_0x40d436(0x155)](),!0x0)};function _0xbef9dd(_0x11d583,_0x4c0d9e){const _0x59ead7=_0x40d436;switch(_0x11d583){case _0x1fc7f3['MCPConnectionStatus']['DISCONNECTED']:return _0x59ead7(0xee);case _0x1fc7f3['MCPConnectionStatus'][_0x59ead7(0x199)]:return _0x59ead7(0x1df);case _0x1fc7f3['MCPConnectionStatus'][_0x59ead7(0x197)]:return _0x59ead7(0x257);case _0x1fc7f3['MCPConnectionStatus']['FAILED']:switch(_0x4c0d9e){case _0x1fc7f3['MCPConnectionError'][_0x59ead7(0x1a5)]:return _0x59ead7(0x189);case _0x1fc7f3[_0x59ead7(0x1c4)][_0x59ead7(0x182)]:return _0x59ead7(0x21c);case _0x1fc7f3[_0x59ead7(0x1c4)][_0x59ead7(0x1f6)]:return _0x59ead7(0x274);case _0x1fc7f3['MCPConnectionError'][_0x59ead7(0x213)]:return _0x59ead7(0xf9);default:return _0x59ead7(0x125);}case _0x1fc7f3['MCPConnectionStatus']['RETRYING']:return _0x59ead7(0x142);default:return _0x59ead7(0x26b);}}function _0x2c08a4(_0x2d4687,_0x359d8a,_0x64e50,_0x2ab970=!0x0){const _0x491736=_0x40d436,_0x504d95=_0xbef9dd(_0x2d4687,_0x359d8a),_0x40086d=_0x64e50['t'](_0x504d95);return _0x2ab970?_0x2d4687===_0x1fc7f3[_0x491736(0x1c0)]['DISCONNECTED']&&_0x359d8a===_0x1fc7f3[_0x491736(0x1c4)][_0x491736(0x1a5)]?_0x40086d+_0x491736(0x1f1)+_0x64e50['t'](_0x491736(0x271)):_0x2d4687===_0x1fc7f3['MCPConnectionStatus'][_0x491736(0x197)]?''+_0x40086d:_0x2d4687===_0x1fc7f3['MCPConnectionStatus'][_0x491736(0x19f)]||_0x2d4687===_0x1fc7f3['MCPConnectionStatus']['FAILED']?_0x40086d+'\x20-\x20'+_0x64e50['t'](_0x491736(0x1bb)):_0x40086d:_0x40086d;}function _0xf2ee93(_0x1bc10a){const _0x10bcb4=_0x40d436;switch(_0x1bc10a){case _0x1fc7f3[_0x10bcb4(0x1c0)][_0x10bcb4(0x197)]:return'univer-text-green-500';case _0x1fc7f3['MCPConnectionStatus'][_0x10bcb4(0x199)]:case _0x1fc7f3[_0x10bcb4(0x1c0)]['RETRYING']:return _0x10bcb4(0x18b);case _0x1fc7f3[_0x10bcb4(0x1c0)][_0x10bcb4(0x18f)]:case _0x1fc7f3['MCPConnectionStatus'][_0x10bcb4(0x19f)]:return _0x10bcb4(0xe4);default:return'univer-text-gray-500';}}function _0x195499(_0x1ae70){const _0x3fdf0f=_0x40d436,{status$:_0x314027,error$:_0x3e98d3,onConfigure:_0x3a9ee7,showClickable:_0x5060f9=!0x0}=_0x1ae70,_0x3dfc52=_0x145489[_0x3fdf0f(0x1ba)](_0x314027,_0x1fc7f3[_0x3fdf0f(0x1c0)][_0x3fdf0f(0x19f)]),_0x5b8c29=_0x145489[_0x3fdf0f(0x1ba)](_0x3e98d3,_0x1fc7f3[_0x3fdf0f(0x1c4)][_0x3fdf0f(0x14a)]),_0x5355ed=_0x145489[_0x3fdf0f(0x12c)](_0x30abb5['LocaleService']),_0x284f3c=_0x3dfc52===_0x1fc7f3[_0x3fdf0f(0x1c0)][_0x3fdf0f(0x197)];_0x3dfc52===_0x1fc7f3['MCPConnectionStatus'][_0x3fdf0f(0x199)]||_0x1fc7f3['MCPConnectionStatus']['RETRYING'];const _0x14297c=_0x5355ed['t'](_0xbef9dd(_0x3dfc52,_0x5b8c29)),_0x3cf827=_0x2c08a4(_0x3dfc52,_0x5b8c29,_0x5355ed,_0x5060f9),_0x4c4c51=_0xf2ee93(_0x3dfc52),_0x9d1269=_0x284f3c?_0x49a7f0[_0x3fdf0f(0x241)](_0x55d2e7,{}):_0x49a7f0[_0x3fdf0f(0x241)](_0x46b9c6,{}),_0x30f0be=_0x552dd2[_0x3fdf0f(0x1be)](()=>{_0x5060f9&&_0x3a9ee7&&_0x3a9ee7();},[_0x5060f9,_0x3a9ee7]);function _0x1e9efb(){const _0x351586=_0x3fdf0f;return _0x49a7f0['jsxs']('div',{'className':_0x47cbf3['clsx']('univer-flex\x20univer-items-center',_0x5060f9&&_0x3a9ee7&&'\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':_0x351586(0x128),'onClick':_0x5060f9&&_0x3a9ee7?_0x30f0be:void 0x0,'children':[_0x49a7f0[_0x351586(0x241)](_0x351586(0xe7),{'className':_0x47cbf3[_0x351586(0x157)](_0x351586(0x1e2),_0x4c4c51),'children':_0x9d1269}),_0x49a7f0[_0x351586(0x241)](_0x351586(0xe7),{'className':_0x351586(0x13b),'children':_0x14297c})]});}return _0x49a7f0['jsx'](_0x47cbf3['Tooltip'],{'title':_0x3cf827,'placement':'bottom','children':_0x1e9efb()});}var _0x3f45b5=Object[_0x40d436(0x147)],_0x109012=(_0x537e9b,_0x1f3cd6,_0x5bdc54,_0x53e2f3)=>{const _0x514420=_0x40d436;for(var _0x257352=_0x53e2f3>0x1?void 0x0:_0x53e2f3?_0x3f45b5(_0x1f3cd6,_0x5bdc54):_0x1f3cd6,_0x3794b2=_0x537e9b[_0x514420(0x237)]-0x1,_0x15bc5a;_0x3794b2>=0x0;_0x3794b2--)(_0x15bc5a=_0x537e9b[_0x3794b2])&&(_0x257352=_0x15bc5a(_0x257352)||_0x257352);return _0x257352;},_0x245254=(_0x16f4dd,_0x2ff5be)=>(_0x18bc63,_0xa7425a)=>_0x2ff5be(_0x18bc63,_0xa7425a,_0x16f4dd);_0x17e70a[_0x40d436(0x21a)]=class extends _0x30abb5['Disposable']{constructor(_0x5cd860,_0x1e24e5,_0x5036f5,_0x189606){const _0x2ade33=_0x40d436;super(),this[_0x2ade33(0x1a8)]=_0x5cd860,this['_connectionController']=_0x1e24e5,this[_0x2ade33(0x139)]=_0x5036f5,this['_configService']=_0x189606,this[_0x2ade33(0x122)](),this[_0x2ade33(0x162)]();}[_0x40d436(0x122)](){const _0x19682a=_0x40d436,_0x909b05=this[_0x19682a(0x13e)][_0x19682a(0x149)](_0x4a9750);_0x909b05!=null&&_0x909b05[_0x19682a(0x1cd)]&&(this[_0x19682a(0x24e)][_0x19682a(0xe5)]=!0x1);}['_initStatusComponent'](){const _0x19414d=_0x40d436,_0x215c28=this['_configService'][_0x19414d(0x149)](_0x4a9750);(_0x215c28==null?void 0x0:_0x215c28[_0x19414d(0x1f4)])!==!0x1&&this[_0x19414d(0x226)](this[_0x19414d(0x139)]['registerComponent'](_0x145489[_0x19414d(0x192)]['HEADER_MENU'],()=>{const _0x538bda=_0x19414d;var _0x23037e;return _0x145489['connectInjector'](_0x370d29({'status$':this[_0x538bda(0x24e)][_0x538bda(0x11a)],'error$':this['_connectionController'][_0x538bda(0x250)],'onConfigure':()=>this[_0x538bda(0x1fc)](),'showClickable':(_0x23037e=_0x215c28==null?void 0x0:_0x215c28['showDeveloperTools'])!=null?_0x23037e:!0x1}),this[_0x538bda(0x1a8)]);}));}[_0x40d436(0x1fc)](){const _0x331ed0=_0x40d436;this[_0x331ed0(0x1a8)]['get'](_0x17e70a[_0x331ed0(0x194)])[_0x331ed0(0x155)]();}},_0x17e70a[_0x40d436(0x21a)]=_0x109012([_0x245254(0x0,_0x30abb5['Inject'](_0x30abb5['Injector'])),_0x245254(0x1,_0x30abb5['Inject'](_0x1fc7f3['MCPConnectionController'])),_0x245254(0x2,_0x145489[_0x40d436(0x1aa)]),_0x245254(0x3,_0x30abb5['IConfigService'])],_0x17e70a[_0x40d436(0x21a)]);function _0x370d29(_0x7ca1ca){const {status$:_0x2a8e2a,error$:_0x56ad1a,onConfigure:_0x545731,showClickable:_0x10c1e1}=_0x7ca1ca;return function(){const _0x58fab0=_0x5529;return _0x49a7f0[_0x58fab0(0x241)](_0x195499,{'status$':_0x2a8e2a,'error$':_0x56ad1a,'onConfigure':_0x545731,'showClickable':_0x10c1e1});};}function _0x3ae542(_0x1abc7b){const _0x5c9d48=_0x40d436;return{'id':_0x22d80d['id'],'type':_0x145489[_0x5c9d48(0x1db)][_0x5c9d48(0x1ad)],'icon':_0x5c9d48(0x1a1),'title':_0x5c9d48(0x129),'tooltip':_0x5c9d48(0x129)};}const _0x1080ad={[_0x145489[_0x40d436(0x23e)][_0x40d436(0x264)]]:{[_0x22d80d['id']]:{'order':0xa,'menuItemFactory':_0x3ae542}}};var _0x569f8f=Object['getOwnPropertyDescriptor'],_0x3f6672=(_0x190a07,_0x5cc29d,_0x1692c7,_0x4636bb)=>{for(var _0x597d0a=_0x4636bb>0x1?void 0x0:_0x4636bb?_0x569f8f(_0x5cc29d,_0x1692c7):_0x5cc29d,_0x3381f4=_0x190a07['length']-0x1,_0x3f8480;_0x3381f4>=0x0;_0x3381f4--)(_0x3f8480=_0x190a07[_0x3381f4])&&(_0x597d0a=_0x3f8480(_0x597d0a)||_0x597d0a);return _0x597d0a;},_0x3e6899=(_0x1d93bf,_0x12d947)=>(_0x116274,_0x4716be)=>_0x12d947(_0x116274,_0x4716be,_0x1d93bf);_0x17e70a[_0x40d436(0x117)]=class extends _0x30abb5['Disposable']{constructor(_0x2f070d,_0x17062a){const _0x5f0114=_0x40d436;super(),this[_0x5f0114(0x16c)]=_0x2f070d,this[_0x5f0114(0x1a0)]=_0x17062a,this[_0x5f0114(0x276)](),this[_0x5f0114(0x1a3)]();}['_initializeCommands'](){[_0x22d80d]['forEach'](_0x47c053=>{const _0x42f708=_0x5529;this[_0x42f708(0x226)](this[_0x42f708(0x16c)][_0x42f708(0x21e)](_0x47c053));});}[_0x40d436(0x1a3)](){const _0x23716f=_0x40d436;this[_0x23716f(0x1a0)][_0x23716f(0x26a)](_0x1080ad);}},_0x17e70a['MCPUIMenuController']=_0x3f6672([_0x3e6899(0x0,_0x30abb5[_0x40d436(0x158)]),_0x3e6899(0x1,_0x145489['IMenuManagerService'])],_0x17e70a[_0x40d436(0x117)]);const _0xf8966d={'mcpStatus':{'disconnected':_0x40d436(0x11b),'connecting':_0x40d436(0x258),'connected':_0x40d436(0x201),'failed':_0x40d436(0x1e8),'retrying':_0x40d436(0xe3),'unknown':_0x40d436(0x21f),'unauthorized':_0x40d436(0x27a),'sessionOccupied':_0x40d436(0x1fd),'networkError':_0x40d436(0x14e),'maxRetriesExceeded':_0x40d436(0x133),'clickToConnect':_0x40d436(0x153),'clickToConfigure':_0x40d436(0x1de)},'mcpConfig':{'title':_0x40d436(0x268),'description':_0x40d436(0x1f5),'apiKey':_0x40d436(0x19d),'apiKeyPlaceholder':_0x40d436(0x10b),'apiKeyHint':_0x40d436(0x115),'enableAuth':_0x40d436(0x1a7),'enableAuthHint':_0x40d436(0x1dd),'connectionInfo':_0x40d436(0x1d1),'mcpClientConfig':_0x40d436(0x1d1),'configInstructions':_0x40d436(0x183),'configStepTitle':_0x40d436(0x19b),'configStep1':_0x40d436(0x152),'configStep2':_0x40d436(0x119),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x40d436(0x279),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x40d436(0x25e),'maxRetries':_0x40d436(0x227),'save':_0x40d436(0x193),'saving':_0x40d436(0x15e),'note1':_0x40d436(0x25c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x40d436(0xe8),'configError':_0x40d436(0x1c7),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x40d436(0xf8),'univerAiLabel':_0x40d436(0x179),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x40d436(0x1b3),'apiKeyTooShort':_0x40d436(0x14f),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x40d436(0x1bc)},'connectionStatus':{'disconnected':_0x40d436(0x27b),'connecting':_0x40d436(0x236),'connected':_0x40d436(0xe0),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x40d436(0x1ff),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x40d436(0x1a4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0xb79bdf={'mcpStatus':{'disconnected':_0x40d436(0x144),'connecting':_0x40d436(0x184),'connected':'MCP\x20已连接','failed':_0x40d436(0x210),'retrying':'MCP\x20重连中...','unknown':_0x40d436(0x10e),'unauthorized':_0x40d436(0x223),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x40d436(0x1fa),'maxRetriesExceeded':_0x40d436(0x1ec),'clickToConnect':_0x40d436(0x188),'clickToConfigure':_0x40d436(0x230)},'mcpConfig':{'title':_0x40d436(0x1d0),'description':_0x40d436(0x1c5),'apiKey':_0x40d436(0x19a),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x40d436(0x1e6),'connectionInfo':_0x40d436(0x1d2),'mcpClientConfig':_0x40d436(0x1d2),'configInstructions':_0x40d436(0x215),'configStepTitle':_0x40d436(0x23d),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x40d436(0x206),'sessionId':_0x40d436(0x109),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x40d436(0x1a6),'configParameters':_0x40d436(0xf6),'maxRetries':_0x40d436(0x1f2),'save':_0x40d436(0x10c),'saving':_0x40d436(0x24a),'note1':_0x40d436(0x228),'note2':_0x40d436(0x138),'configSaved':'配置保存成功','configError':_0x40d436(0x10f),'apiApplyInfo':{'title':_0x40d436(0x135),'description':_0x40d436(0x1cc),'univerAiLabel':_0x40d436(0x269),'getStarted':_0x40d436(0x1b1)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x40d436(0x217),'invalidConfig':_0x40d436(0x174),'invalidApiKey':_0x40d436(0x24d)},'connectionStatus':{'disconnected':_0x40d436(0x27c),'connecting':'连接中...','connected':_0x40d436(0x1ca),'failed':_0x40d436(0x1ef),'retrying':_0x40d436(0x277)},'connectionError':{'unauthorized':_0x40d436(0x100),'sessionOccupied':_0x40d436(0x261),'networkError':_0x40d436(0x209),'maxRetriesExceeded':_0x40d436(0x190)}}};var _0xd46b50=Object[_0x40d436(0x11d)],_0x48955c=Object[_0x40d436(0x147)],_0x5f2353=(_0x48c69c,_0x1af5ad,_0x30f464)=>_0x1af5ad in _0x48c69c?_0xd46b50(_0x48c69c,_0x1af5ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30f464}):_0x48c69c[_0x1af5ad]=_0x30f464,_0x308413=(_0x22807a,_0x174240,_0x113e4b,_0x510ac9)=>{const _0x5e6a7f=_0x40d436;for(var _0x3371d1=_0x510ac9>0x1?void 0x0:_0x510ac9?_0x48955c(_0x174240,_0x113e4b):_0x174240,_0x1ad90f=_0x22807a[_0x5e6a7f(0x237)]-0x1,_0xae60fb;_0x1ad90f>=0x0;_0x1ad90f--)(_0xae60fb=_0x22807a[_0x1ad90f])&&(_0x3371d1=_0xae60fb(_0x3371d1)||_0x3371d1);return _0x3371d1;},_0x25780b=(_0x2c9743,_0x4ce86d)=>(_0x47970c,_0x688f9e)=>_0x4ce86d(_0x47970c,_0x688f9e,_0x2c9743),_0x12166=(_0x31d1ee,_0xa7480b,_0x288eec)=>_0x5f2353(_0x31d1ee,_0xa7480b+'',_0x288eec);_0x17e70a[_0x40d436(0xe6)]=class extends _0x30abb5[_0x40d436(0x1e4)]{constructor(_0x595db7=_0x2b0321,_0xd56051,_0x31a4f5,_0x4115fa,_0x49a62d,_0x4fba0b){const _0x5a03a7=_0x40d436;super(),this[_0x5a03a7(0x131)]=_0x595db7,this['_injector']=_0xd56051,this['_configService']=_0x31a4f5,this['_uiPartsService']=_0x4115fa,this[_0x5a03a7(0x118)]=_0x49a62d,this['_localeService']=_0x4fba0b;const {..._0x4b5439}=_0x30abb5[_0x5a03a7(0xfa)]({},_0x2b0321,this[_0x5a03a7(0x131)]);this[_0x5a03a7(0x13e)][_0x5a03a7(0x151)](_0x4a9750,_0x4b5439);}async[_0x40d436(0x251)](){const _0x53e377=_0x40d436,_0x1fe6bf=[[_0x17e70a[_0x53e377(0x21a)]],[_0x17e70a[_0x53e377(0x194)]],[_0x17e70a[_0x53e377(0x117)]]];this[_0x53e377(0x1a8)][_0x53e377(0x20b)](_0x8fd9b6['ISocketService'])||_0x1fe6bf[_0x53e377(0x1a2)]([_0x8fd9b6['ISocketService'],{'useClass':_0x8fd9b6['WebSocketService']}]),_0x1fe6bf[_0x53e377(0x242)](_0x2d5c3c=>this['_injector'][_0x53e377(0x1c3)](_0x2d5c3c)),this['_injector'][_0x53e377(0x22c)](_0x17e70a[_0x53e377(0x21a)]),this[_0x53e377(0x1a8)]['get'](_0x17e70a['MCPConfigUIController']),this['_injector'][_0x53e377(0x22c)](_0x17e70a[_0x53e377(0x117)]);}},_0x12166(_0x17e70a[_0x40d436(0xe6)],_0x40d436(0x165),_0x40d436(0x259)),_0x17e70a[_0x40d436(0xe6)]=_0x308413([_0x30abb5[_0x40d436(0xed)](_0x1fc7f3[_0x40d436(0x1e5)]),_0x25780b(0x1,_0x30abb5['Inject'](_0x30abb5[_0x40d436(0xf7)])),_0x25780b(0x2,_0x30abb5[_0x40d436(0x12f)]),_0x25780b(0x3,_0x145489[_0x40d436(0x1aa)]),_0x25780b(0x4,_0x30abb5[_0x40d436(0x106)]),_0x25780b(0x5,_0x30abb5[_0x40d436(0x191)](_0x30abb5[_0x40d436(0x14d)]))],_0x17e70a['UniverMCPUIPlugin']),_0x17e70a[_0x40d436(0x1d3)]=_0x1b57b7,_0x17e70a[_0x40d436(0x11f)]=_0x195499,_0x17e70a[_0x40d436(0x14c)]=_0x22d80d,_0x17e70a[_0x40d436(0x1bd)]=_0xf8966d,_0x17e70a[_0x40d436(0x244)]=_0xb79bdf,Object['defineProperty'](_0x17e70a,Symbol['toStringTag'],{'value':_0x40d436(0x134)});}));function _0x5529(_0x1be705,_0x57dcb9){_0x1be705=_0x1be705-0xe0;const _0x591dff=_0x591d();let _0x55299f=_0x591dff[_0x1be705];return _0x55299f;}function _0x591d(){const _0x2f57c7=['MAX_RETRIES_EXCEEDED','RETRYING','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','API\x20密钥长度至少需要\x2010\x20位','on-line-icon_clip0_910_349','mcpConfig.configSaved','MCPConnectionUIController','close','mcpStatus.sessionOccupied','defIds','registerCommand','MCP\x20Unknown\x20Status','M0\x200H16V16H0z','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP:\x20未授权','univer-text-sm\x20univer-text-gray-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','disposeWithMe','Max\x20Retries','配置更改将立即生效','mcpConfig.validation.invalidApiKey','use','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','get','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','@univerjs/core','点击配置\x20MCP','none','mcpConfig.apiKey','MessageType','off-line-icon_clip0_910_343','1217298ASAdDW','Connecting...','length','mcpConfig.configStep1','univerjs-icon\x20univerjs-icon-','univer-text-xs\x20univer-text-gray-500','432282ujFcfZ','_handleConfigSave','配置步骤:','RibbonStartGroup','mcpConfig.apiKeyPlaceholder','string','jsx','forEach','svg','zhCN','current','replace','UniverProMcpUi','univer-space-y-3','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','保存中...','fill','univer.ai','API\x20密钥无效,请检查密钥是否正确','_connectionController','url(#$1','connectionError$','onStarting','univer-flex\x20univer-items-start\x20univer-gap-2','univer_session_id:','includes','mcpConfig.configParameters','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','mcpStatus.connected','MCP\x20Connecting...','MCP_UI_PLUGIN','connectInjector','4drtMsc','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','CloseIcon','Configuration\x20Parameters:','UniverDesign','mcpConfig.sessionIdDescription','会话\x20ID\x20已被占用,请稍后再试','off','univer-bg-red-500','OTHERS','ComponentManager','jsxs','Authorization:','MCP\x20Configuration','Univer\x20AI\x20控制台','mergeMenu','mcpStatus.unknown','mcpConfig.apiApplyInfo.univerAiLabel','show','_mcpCoreConfig$','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','UniverIcon','mcpStatus.clickToConfigure','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','label','mcpStatus.networkError','UniverProMcp','_initializeCommands','重连中...','value','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Unauthorized','Disconnected','未连接','univer-bg-blue-500','Connected','univer-text-white','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','MCP\x20Retrying...','univer-text-red-500','enableAutoConnect','UniverMCPUIPlugin','div','Configuration\x20saved\x20successfully','BehaviorSubject','_localeService','idSuffix','mcpConfig.apiApplyInfo.title','DependentOn','mcpStatus.disconnected','on-line-icon','univer-flex\x20univer-gap-3','rxjs','mcp-ui.config','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','map','mcpConfig.configStepTitle','配置参数:','Injector','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpStatus.maxRetriesExceeded','merge','apiKey','mcpConfig.configStep2','20YvIxJk','isValid','stringify','权限验证失败,请检查您的\x20API\x20密钥','_initConfigSync','next','0\x200\x2016\x2016','_apiKey$','round','ILocalStorageService','https://mcp.univer.ai/mcp/?univer_session_id=','React','会话ID','MCP_PLUGIN_CONFIG_KEY','Enter\x20your\x20API\x20key','保存配置','span','MCP\x20状态未知','配置保存失败','path','toString','univer-flex-1','1em','MCPConnectionController','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.validation.apiKeyTooShort','MCPUIMenuController','_localStorageService','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','connectionStatus$','MCP\x20Disconnected','evenodd','defineProperty','mask','MCPStatusDisplay','mcpConfig.configStep3','_messageService','_initAutoConnect','attrs','UniverCore','mcpStatus.failed','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.connectionStatus.failed','button','mcpConfig.title','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-space-y-2','useDependency','_blank','trim','IConfigService','691533EyzBCY','_config','_createConfigPanelComponent','MCP:\x20Max\x20Retries\x20Exceeded','Module','什么是\x20API\x20密钥?','mcpConfig.connectionStatus.connecting','mcpConfig.description','您的\x20API\x20密钥安全存储在本地存储中','_uiPartsService','Error','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-xs\x20univer-text-gray-600','IMessageService','_configService','mcpConfig.connectionError.networkError','@univerjs/network','univer-flex\x20univer-items-center\x20univer-gap-2','mcpStatus.retrying','mcp-config-dialog','MCP\x20已断开','function','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','getOwnPropertyDescriptor','forwardRef','getConfig','NONE','subscribeConfigValue$','OpenMCPConfigPanelCommand','LocaleService','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','createElement','setConfig','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','useRef','showConfigPanel','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','clsx','ICommandService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_logService','_registerComponent','univer-bg-gray-500','mcpConfig.saving','Saving...','@univerjs/ui','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer.plus','_initStatusComponent','univer-space-y-5','_componentManager','pluginName','univer-size-4','off-line-icon','pre','warn','Input','error','_commandService','mcpConfig.connectionError.unauthorized','IDialogService','_validateConfig','_config$','mcp.apiKey','open','getItem','配置无效','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-bg-green-500','help-icon','mcpConfig.apiApplyInfo.description','Univer\x20AI\x20Console','univer-text-sm\x20univer-font-medium','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','symbol','mcpConfig.connectionStatus.retrying','<SESSION_ID>','tag','ILogService','defs','SESSION_ID_OCCUPIED','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20连接中...','object','univer-space-y-4','mcpConfig.configInstructions','点击连接\x20MCP','mcpStatus.unauthorized','entries','univer-text-yellow-500','currentColor','http://www.w3.org/2000/svg','univer-text-blue-600','FAILED','超出最大重试次数,请稍后再试','Inject','BuiltInUIPart','Save\x20Configuration','MCPConfigUIController','useState','univer-min-w-0\x20univer-flex-1','CONNECTED','HelpIcon','CONNECTING','API\x20密钥','Configuration\x20Steps:','validateApiKey','API\x20Key','check-mark-icon','DISCONNECTED','_menuManagerService','MenuIcon','push','_initializeMenus','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UNAUTHORIZED','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Enable\x20Authentication','_injector','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','IUIPartsService','assign','OnLineIcon','BUTTON','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','mcpConfig.connectionError.sessionOccupied','_loading$','几秒钟内获取您的\x20API\x20密钥','mcp-ui.command.openConfigPanel','API\x20key\x20is\x20required','mcpConfig.save','url(#off-line-icon_clip0_910_343)','translate(.97)','univer-font-medium','Bearer\x20','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','useObservable','mcpStatus.clickToConnect','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','enUS','useCallback','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCPConnectionStatus','mcpConfig.connectionStatus.disconnected','white','add','MCPConnectionError','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Failed\x20to\x20save\x20configuration','displayName','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','已连接','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','showDeveloperTools','colorChannel1','Button','MCP\x20配置','MCP\x20Client\x20Configuration','MCP\x20客户端配置','MCPConfigPanel','2713186hFWpYC','UniverUi','Success','exports','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','xlink:href','Disposable','MenuItemType','sessionId$','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','mcpStatus.connecting','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-mr-2\x20univer-flex\x20univer-text-xl','2073305ZyhoaD','Plugin','UniverMCPPlugin','启用身份验证以获得安全连接','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP\x20Connection\x20Failed','9795376ljyCGD','univer-flex\x20univer-items-start\x20univer-gap-3','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','MCP:\x20超出最大重试次数','mcpConfig.authorizationDescription','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','连接失败','_loadStoredApiKey','\x20-\x20','最大重试次数','mcpServerUrl','showStatus','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','NETWORK_ERROR','children','register','react','MCP:\x20网络错误','@univerjs/design','_handleConfigure','MCP:\x20Session\x20ID\x20Occupied','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-shrink-0\x20univer-text-blue-500','MCP\x20Connected','_mcpConnectionController','0\x200\x2017\x2016','1hPCliW','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','重启您的\x20MCP\x20客户端以使配置生效','_dialogService','8960931YxbGeY','网络连接错误,请检查您的网络连接','https://console.univer.plus','has','mcpConfig.connectionError.maxRetriesExceeded','url(#on-line-icon_clip0_910_349)','univer-text-gray-400','@univerjs-pro/mcp','MCP\x20连接失败','subscribe','http'];_0x591d=function(){return _0x2f57c7;};return _0x591d();}
|