@univerjs-pro/mcp-ui 0.12.3-nightly.202512060617 → 0.12.4-experimental.20251208-c4b8a44
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 +7 -7
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x519b42=_0x2fb3;(function(_0x135070,_0x295bc8){const _0x1e2ddf=_0x2fb3,_0x49327d=_0x135070();while(!![]){try{const _0x474792=-parseInt(_0x1e2ddf(0x1b3))/0x1*(-parseInt(_0x1e2ddf(0x1de))/0x2)+parseInt(_0x1e2ddf(0x1df))/0x3*(-parseInt(_0x1e2ddf(0x1b6))/0x4)+parseInt(_0x1e2ddf(0x1ce))/0x5+-parseInt(_0x1e2ddf(0x1db))/0x6+parseInt(_0x1e2ddf(0x1bf))/0x7*(parseInt(_0x1e2ddf(0x1dd))/0x8)+parseInt(_0x1e2ddf(0x1b4))/0x9*(parseInt(_0x1e2ddf(0x1d2))/0xa)+parseInt(_0x1e2ddf(0x1d0))/0xb*(-parseInt(_0x1e2ddf(0x1d3))/0xc);if(_0x474792===_0x295bc8)break;else _0x49327d['push'](_0x49327d['shift']());}catch(_0x397d94){_0x49327d['push'](_0x49327d['shift']());}}}(_0x2827,0x5c389));function _0x2fb3(_0x18652f,_0x3239fe){_0x18652f=_0x18652f-0x1af;const _0x282753=_0x2827();let _0x2fb30d=_0x282753[_0x18652f];return _0x2fb30d;}function _0x2827(){const _0x3573a1=['세션\x20ID','MCP\x20알\x20수\x20없는\x20상태','API\x20키를\x20입력하세요','클릭하여\x20MCP\x20연결','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20연결됨','API\x20키란\x20무엇인가요?','API\x20키','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','3442290GqBeyF','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','11JeaqLx','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','3595650anKEQl','9841596GbMYTP','MCP\x20설정','Bearer\x20접두사가\x20있는\x20API\x20키.','연결\x20끊김','보안\x20연결을\x20위해\x20인증\x20활성화','설정이\x20성공적으로\x20저장되었습니다','연결됨','MCP:\x20인증되지\x20않음','3448692stfPPv','MCP:\x20세션\x20ID\x20사용\x20중','2843328pnfxhm','11274VbJUoR','30JLKlEU','MCP\x20클라이언트\x20설정','MCP\x20재시도\x20중...','설정\x20매개변수:','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','4woBJcK','18jzSzVz','저장\x20중...','5160xnDqAW','exports','연결\x20중...','연결\x20실패','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정\x20저장\x20실패','MCP\x20연결\x20실패','최대\x20재시도\x20횟수','클릭하여\x20MCP\x20설정','7hLKfOa','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','재시도\x20중...','MCP\x20연결\x20끊김'];_0x2827=function(){return _0x3573a1;};return _0x2827();}const e={'mcpStatus':{'disconnected':_0x519b42(0x1c3),'connecting':'MCP\x20연결\x20중...','connected':_0x519b42(0x1c9),'failed':_0x519b42(0x1bc),'retrying':_0x519b42(0x1b0),'unknown':_0x519b42(0x1c5),'unauthorized':_0x519b42(0x1da),'sessionOccupied':_0x519b42(0x1dc),'networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x519b42(0x1c8),'clickToConnect':_0x519b42(0x1c7),'clickToConfigure':_0x519b42(0x1be)},'mcpConfig':{'title':_0x519b42(0x1d4),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x519b42(0x1cb),'apiKeyPlaceholder':_0x519b42(0x1c6),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':'인증\x20활성화','enableAuthHint':_0x519b42(0x1d7),'connectionInfo':_0x519b42(0x1af),'mcpClientConfig':_0x519b42(0x1af),'configInstructions':_0x519b42(0x1c1),'configStepTitle':'설정\x20단계:','configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x519b42(0x1cf),'configStep3':_0x519b42(0x1b2),'sessionId':_0x519b42(0x1c4),'sessionIdDescription':_0x519b42(0x1ba),'authorizationDescription':_0x519b42(0x1d5),'configParameters':_0x519b42(0x1b1),'maxRetries':_0x519b42(0x1bd),'save':'설정\x20저장','saving':_0x519b42(0x1b5),'note1':_0x519b42(0x1cd),'note2':_0x519b42(0x1c0),'configSaved':_0x519b42(0x1d8),'configError':_0x519b42(0x1bb),'apiApplyInfo':{'title':_0x519b42(0x1ca),'description':_0x519b42(0x1cc),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x519b42(0x1d6),'connecting':_0x519b42(0x1b8),'connected':_0x519b42(0x1d9),'failed':_0x519b42(0x1b9),'retrying':_0x519b42(0x1c2)},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x519b42(0x1d1)}}};module[_0x519b42(0x1b7)]=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5f28d=_0x5e9b;function _0x22c4(){const _0x381f85=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','MCP:\x20Unauthorized','MCP:\x20Session\x20ID\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','Connected','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Connection\x20Failed','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','Retrying...','906028dxvkMy','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2773305dCzTaT','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','Configuration\x20Parameters:','16FNwKIR','Failed\x20to\x20save\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','4641810vHROVQ','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Configuration','Session\x20ID','96dRNavH','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','61298enPdje','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','6wIrEAQ','Univer\x20AI\x20Console','Configuration\x20saved\x20successfully','38787JAkYsk','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','1668170DwhcuQ','Connecting...','Enter\x20your\x20API\x20key','3962075kFRatG'];_0x22c4=function(){return _0x381f85;};return _0x22c4();}(function(_0x130da3,_0x3249b3){const _0x5cc5ce=_0x5e9b,_0x3167a3=_0x130da3();while(!![]){try{const _0x9d68c8=parseInt(_0x5cc5ce(0x1f9))/0x1+parseInt(_0x5cc5ce(0x216))/0x2+-parseInt(_0x5cc5ce(0x200))/0x3*(parseInt(_0x5cc5ce(0x1f6))/0x4)+-parseInt(_0x5cc5ce(0x206))/0x5*(-parseInt(_0x5cc5ce(0x1fd))/0x6)+-parseInt(_0x5cc5ce(0x203))/0x7*(parseInt(_0x5cc5ce(0x21d))/0x8)+-parseInt(_0x5cc5ce(0x218))/0x9+parseInt(_0x5cc5ce(0x1ee))/0xa;if(_0x9d68c8===_0x3249b3)break;else _0x3167a3['push'](_0x3167a3['shift']());}catch(_0x4a508d){_0x3167a3['push'](_0x3167a3['shift']());}}}(_0x22c4,0xa5007));function _0x5e9b(_0x3dee40,_0x1f276b){_0x3dee40=_0x3dee40-0x1ee;const _0x22c4fc=_0x22c4();let _0x5e9bfb=_0x22c4fc[_0x3dee40];return _0x5e9bfb;}const e={'mcpStatus':{'disconnected':_0x5f28d(0x211),'connecting':'MCP\x20Connecting...','connected':_0x5f28d(0x208),'failed':_0x5f28d(0x220),'retrying':_0x5f28d(0x201),'unknown':_0x5f28d(0x221),'unauthorized':_0x5f28d(0x209),'sessionOccupied':_0x5f28d(0x20a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5f28d(0x20e),'clickToConnect':_0x5f28d(0x214),'clickToConfigure':_0x5f28d(0x1fb)},'mcpConfig':{'title':_0x5f28d(0x1f4),'description':_0x5f28d(0x1f1),'apiKey':_0x5f28d(0x20c),'apiKeyPlaceholder':_0x5f28d(0x205),'apiKeyHint':_0x5f28d(0x1fa),'enableAuth':_0x5f28d(0x223),'enableAuthHint':_0x5f28d(0x202),'connectionInfo':_0x5f28d(0x213),'mcpClientConfig':_0x5f28d(0x213),'configInstructions':_0x5f28d(0x217),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5f28d(0x20d),'configStep2':_0x5f28d(0x207),'configStep3':_0x5f28d(0x222),'sessionId':_0x5f28d(0x1f5),'sessionIdDescription':_0x5f28d(0x1fc),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5f28d(0x21c),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5f28d(0x1f7),'note1':_0x5f28d(0x1f0),'note2':_0x5f28d(0x21a),'configSaved':_0x5f28d(0x1ff),'configError':_0x5f28d(0x21e),'apiApplyInfo':{'title':_0x5f28d(0x210),'description':_0x5f28d(0x20b),'univerAiLabel':_0x5f28d(0x1fe),'getStarted':_0x5f28d(0x1ef)},'validation':{'apiKeyRequired':_0x5f28d(0x219),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5f28d(0x21b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5f28d(0x204),'connected':_0x5f28d(0x20f),'failed':_0x5f28d(0x212),'retrying':_0x5f28d(0x215)},'connectionError':{'unauthorized':_0x5f28d(0x1f2),'sessionOccupied':_0x5f28d(0x1f3),'networkError':_0x5f28d(0x1f8),'maxRetriesExceeded':_0x5f28d(0x21f)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4bb78e=_0x3f4f;(function(_0x5e8814,_0x234fc7){const _0x1f0f1b=_0x3f4f,_0xb16743=_0x5e8814();while(!![]){try{const _0x1c5a82=-parseInt(_0x1f0f1b(0x1bf))/0x1+parseInt(_0x1f0f1b(0x1d2))/0x2+-parseInt(_0x1f0f1b(0x1ce))/0x3*(-parseInt(_0x1f0f1b(0x1a6))/0x4)+parseInt(_0x1f0f1b(0x1a8))/0x5*(-parseInt(_0x1f0f1b(0x1bd))/0x6)+parseInt(_0x1f0f1b(0x1b2))/0x7*(parseInt(_0x1f0f1b(0x1c2))/0x8)+parseInt(_0x1f0f1b(0x1b4))/0x9+parseInt(_0x1f0f1b(0x1b3))/0xa*(-parseInt(_0x1f0f1b(0x19e))/0xb);if(_0x1c5a82===_0x234fc7)break;else _0xb16743['push'](_0xb16743['shift']());}catch(_0x39301b){_0xb16743['push'](_0xb16743['shift']());}}}(_0x3aa0,0xe9083));const n={'mcpStatus':{'disconnected':_0x4bb78e(0x1c7),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x4bb78e(0x1c0),'failed':_0x4bb78e(0x1ac),'retrying':_0x4bb78e(0x1d1),'unknown':_0x4bb78e(0x1ad),'unauthorized':_0x4bb78e(0x1b7),'sessionOccupied':_0x4bb78e(0x19d),'networkError':_0x4bb78e(0x1ba),'maxRetriesExceeded':_0x4bb78e(0x1cd),'clickToConnect':_0x4bb78e(0x1ca),'clickToConfigure':_0x4bb78e(0x1ab)},'mcpConfig':{'title':_0x4bb78e(0x1b5),'description':_0x4bb78e(0x1a5),'apiKey':_0x4bb78e(0x1a9),'apiKeyPlaceholder':_0x4bb78e(0x19a),'apiKeyHint':_0x4bb78e(0x1b6),'enableAuth':_0x4bb78e(0x1c9),'enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':_0x4bb78e(0x1b9),'mcpClientConfig':_0x4bb78e(0x1b9),'configInstructions':_0x4bb78e(0x1bc),'configStepTitle':_0x4bb78e(0x1b1),'configStep1':_0x4bb78e(0x1b8),'configStep2':_0x4bb78e(0x1a0),'configStep3':'Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','sessionId':_0x4bb78e(0x1bb),'sessionIdDescription':_0x4bb78e(0x1c4),'authorizationDescription':_0x4bb78e(0x1af),'configParameters':_0x4bb78e(0x1c5),'maxRetries':_0x4bb78e(0x1ae),'save':_0x4bb78e(0x1c3),'saving':_0x4bb78e(0x1a4),'note1':_0x4bb78e(0x19c),'note2':_0x4bb78e(0x1b0),'configSaved':_0x4bb78e(0x1a3),'configError':_0x4bb78e(0x1c8),'apiApplyInfo':{'title':_0x4bb78e(0x1cb),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x4bb78e(0x19f),'getStarted':_0x4bb78e(0x1a1)},'validation':{'apiKeyRequired':_0x4bb78e(0x1cc),'apiKeyTooShort':_0x4bb78e(0x19b),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x4bb78e(0x1a2)},'connectionStatus':{'disconnected':_0x4bb78e(0x1c1),'connecting':'Đang\x20kết\x20nối...','connected':_0x4bb78e(0x1aa),'failed':_0x4bb78e(0x1c6),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x4bb78e(0x1be),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x4bb78e(0x1cf),'maxRetriesExceeded':_0x4bb78e(0x1a7)}}};function _0x3f4f(_0x527b95,_0x167812){_0x527b95=_0x527b95-0x19a;const _0x3aa094=_0x3aa0();let _0x3f4f15=_0x3aa094[_0x527b95];return _0x3f4f15;}module[_0x4bb78e(0x1d0)]=n;function _0x3aa0(){const _0x2ffef2=['Khóa\x20API\x20là\x20gì?','Yêu\x20cầu\x20khóa\x20API','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','12858QFsdmU','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','exports','MCP\x20Đang\x20thử\x20lại...','2359322rhIHtn','Nhập\x20khóa\x20API\x20của\x20bạn','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','17615642uoFCVl','Bảng\x20điều\x20khiển\x20Univer\x20AI','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Đang\x20lưu...','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','404FwHlZH','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','27430HKMQCj','Khóa\x20API','Đã\x20kết\x20nối','Nhấp\x20để\x20cấu\x20hình\x20MCP','MCP\x20Kết\x20nối\x20thất\x20bại','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Các\x20bước\x20cấu\x20hình:','35QIeHFQ','20MExPew','12680127ludzpa','Cấu\x20hình\x20MCP','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','MCP:\x20Không\x20được\x20phép','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP:\x20Lỗi\x20mạng','ID\x20phiên','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','18gdeGqu','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','75014MpxVva','MCP\x20Đã\x20kết\x20nối','Đã\x20ngắt\x20kết\x20nối','1963784HuRbUI','Lưu\x20cấu\x20hình','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Tham\x20số\x20cấu\x20hình:','Kết\x20nối\x20thất\x20bại','MCP\x20Đã\x20ngắt\x20kết\x20nối','Lưu\x20cấu\x20hình\x20thất\x20bại','Bật\x20xác\x20thực','Nhấp\x20để\x20kết\x20nối\x20MCP'];_0x3aa0=function(){return _0x2ffef2;};return _0x3aa0();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xb7c3(_0x12a791,_0x5aea06){_0x12a791=_0x12a791-0xde;const _0x383be4=_0x383b();let _0xb7c3e7=_0x383be4[_0x12a791];return _0xb7c3e7;}const _0x46dd72=_0xb7c3;(function(_0x324f12,_0xa9eb45){const _0x1a1cc6=_0xb7c3,_0x19955f=_0x324f12();while(!![]){try{const _0x477a8b=parseInt(_0x1a1cc6(0xf5))/0x1+-parseInt(_0x1a1cc6(0xde))/0x2*(-parseInt(_0x1a1cc6(0x10c))/0x3)+parseInt(_0x1a1cc6(0x103))/0x4+-parseInt(_0x1a1cc6(0x106))/0x5+-parseInt(_0x1a1cc6(0xe3))/0x6+parseInt(_0x1a1cc6(0xf6))/0x7*(-parseInt(_0x1a1cc6(0xfa))/0x8)+-parseInt(_0x1a1cc6(0x10a))/0x9*(-parseInt(_0x1a1cc6(0xe7))/0xa);if(_0x477a8b===_0xa9eb45)break;else _0x19955f['push'](_0x19955f['shift']());}catch(_0x170b1f){_0x19955f['push'](_0x19955f['shift']());}}}(_0x383b,0xd094a));function _0x383b(){const _0x159eba=['您的\x20API\x20密钥将在此浏览器中本地存储','重启您的\x20MCP\x20客户端以使配置生效','9QexhtT','MCP:\x20超出最大重试次数','18111LfLxXB','MCP\x20状态未知','配置更改将立即生效','MCP\x20已连接','配置保存成功','40DxuBSP','MCP\x20连接失败','API\x20密钥长度至少需要\x2010\x20位','MCP\x20连接中...','MCP:\x20未授权','6875784ETKCXh','点击配置\x20MCP','MCP\x20配置','将配置添加到您的\x20MCP\x20客户端设置文件中','7862230YBiPpV','配置步骤:','几秒钟内获取您的\x20API\x20密钥','MCP\x20客户端配置','您的\x20API\x20密钥安全存储在本地存储中','启用身份验证以获得安全连接','API\x20密钥不能为空','配置保存失败','配置参数:','MCP\x20已断开','权限验证失败,请检查您的\x20API\x20密钥','连接失败','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置无效','1273562nQqsnm','238XsHuoY','启用身份验证','复制以下\x20JSON\x20配置','将以下配置添加到您的\x20MCP\x20客户端设置中:','26816hOebAP','会话ID','API\x20密钥无效,请检查密钥是否正确','已连接','网络连接错误,请检查您的网络连接','MCP\x20重连中...','exports','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥','6164648vrCjNa','重连中...','保存配置','8037045JieQqo','连接中...'];_0x383b=function(){return _0x159eba;};return _0x383b();}const e={'mcpStatus':{'disconnected':_0x46dd72(0xf0),'connecting':_0x46dd72(0xe1),'connected':_0x46dd72(0x10f),'failed':_0x46dd72(0xdf),'retrying':_0x46dd72(0xff),'unknown':_0x46dd72(0x10d),'unauthorized':_0x46dd72(0xe2),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x46dd72(0x10b),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x46dd72(0xe4)},'mcpConfig':{'title':_0x46dd72(0xe5),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x46dd72(0x102),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x46dd72(0x108),'enableAuth':_0x46dd72(0xf7),'enableAuthHint':_0x46dd72(0xec),'connectionInfo':_0x46dd72(0xea),'mcpClientConfig':_0x46dd72(0xea),'configInstructions':_0x46dd72(0xf9),'configStepTitle':_0x46dd72(0xe8),'configStep1':_0x46dd72(0xf8),'configStep2':_0x46dd72(0xe6),'configStep3':_0x46dd72(0x109),'sessionId':_0x46dd72(0xfb),'sessionIdDescription':_0x46dd72(0x101),'authorizationDescription':_0x46dd72(0xf3),'configParameters':_0x46dd72(0xef),'maxRetries':'最大重试次数','save':_0x46dd72(0x105),'saving':'保存中...','note1':_0x46dd72(0x10e),'note2':_0x46dd72(0xeb),'configSaved':_0x46dd72(0x110),'configError':_0x46dd72(0xee),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x46dd72(0xe9)},'validation':{'apiKeyRequired':_0x46dd72(0xed),'apiKeyTooShort':_0x46dd72(0xe0),'invalidConfig':_0x46dd72(0xf4),'invalidApiKey':_0x46dd72(0xfc)},'connectionStatus':{'disconnected':'未连接','connecting':_0x46dd72(0x107),'connected':_0x46dd72(0xfd),'failed':_0x46dd72(0xf2),'retrying':_0x46dd72(0x104)},'connectionError':{'unauthorized':_0x46dd72(0xf1),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x46dd72(0xfe),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x46dd72(0x100)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x748c(){const _0x116a82=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Connection\x20Failed','API\x20key\x20is\x20required','22RcGCWZ','Disconnected','20pHzcaK','16wGjulj','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','18WPLCDb','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','exports','MCP\x20Unknown\x20Status','Connecting...','977568JZzZGy','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','45693KSlIWE','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1953036dGWgOr','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','4466388WPCVWz','MCP\x20Connected','Click\x20to\x20configure\x20MCP','6CZGzRB','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Enable\x20Authentication','MCP\x20Retrying...','Configuration\x20Steps:','Session\x20ID','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','360905egPgFi','87285aEMtfE','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','API\x20Key','MCP:\x20Network\x20Error','362803ddfWco','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed'];_0x748c=function(){return _0x116a82;};return _0x748c();}const _0x362141=_0x47c5;(function(_0x5abcc6,_0x2b97cf){const _0x4be253=_0x47c5,_0x58e5dd=_0x5abcc6();while(!![]){try{const _0x558525=-parseInt(_0x4be253(0x1cf))/0x1*(-parseInt(_0x4be253(0x1d6))/0x2)+-parseInt(_0x4be253(0x1e2))/0x3+-parseInt(_0x4be253(0x1cd))/0x4+-parseInt(_0x4be253(0x1e1))/0x5*(-parseInt(_0x4be253(0x1c7))/0x6)+-parseInt(_0x4be253(0x1b6))/0x7*(parseInt(_0x4be253(0x1c3))/0x8)+parseInt(_0x4be253(0x1d1))/0x9*(-parseInt(_0x4be253(0x1c2))/0xa)+-parseInt(_0x4be253(0x1c0))/0xb*(-parseInt(_0x4be253(0x1d3))/0xc);if(_0x558525===_0x2b97cf)break;else _0x58e5dd['push'](_0x58e5dd['shift']());}catch(_0x5e38d1){_0x58e5dd['push'](_0x58e5dd['shift']());}}}(_0x748c,0x46093));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x362141(0x1d4),'failed':_0x362141(0x1bb),'retrying':_0x362141(0x1da),'unknown':_0x362141(0x1cb),'unauthorized':_0x362141(0x1c4),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x362141(0x1b5),'maxRetriesExceeded':_0x362141(0x1de),'clickToConnect':_0x362141(0x1e9),'clickToConfigure':_0x362141(0x1d5)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x362141(0x1bc),'apiKey':_0x362141(0x1b4),'apiKeyPlaceholder':_0x362141(0x1c8),'apiKeyHint':_0x362141(0x1df),'enableAuth':_0x362141(0x1d9),'enableAuthHint':_0x362141(0x1dd),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x362141(0x1ba),'configStepTitle':_0x362141(0x1db),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x362141(0x1d0),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x362141(0x1dc),'sessionIdDescription':_0x362141(0x1ce),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x362141(0x1bd),'saving':_0x362141(0x1c6),'note1':_0x362141(0x1e8),'note2':_0x362141(0x1c5),'configSaved':_0x362141(0x1d8),'configError':_0x362141(0x1d7),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x362141(0x1b8),'univerAiLabel':_0x362141(0x1b7),'getStarted':_0x362141(0x1e4)},'validation':{'apiKeyRequired':_0x362141(0x1bf),'apiKeyTooShort':_0x362141(0x1e5),'invalidConfig':_0x362141(0x1e0),'invalidApiKey':_0x362141(0x1e3)},'connectionStatus':{'disconnected':_0x362141(0x1c1),'connecting':_0x362141(0x1cc),'connected':_0x362141(0x1b9),'failed':_0x362141(0x1be),'retrying':_0x362141(0x1e7)},'connectionError':{'unauthorized':_0x362141(0x1e6),'sessionOccupied':_0x362141(0x1c9),'networkError':_0x362141(0x1d2),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x47c5(_0x24ea28,_0x5c7bb6){_0x24ea28=_0x24ea28-0x1b4;const _0x748cf4=_0x748c();let _0x47c528=_0x748cf4[_0x24ea28];return _0x47c528;}module[_0x362141(0x1ca)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x394352=_0x46a9;(function(_0x33b25f,_0x95ffe4){const _0x1b0f93=_0x46a9,_0x9c31de=_0x33b25f();while(!![]){try{const _0x125ae7=parseInt(_0x1b0f93(0x22e))/0x1+parseInt(_0x1b0f93(0x2c7))/0x2*(parseInt(_0x1b0f93(0x29f))/0x3)+-parseInt(_0x1b0f93(0x19f))/0x4*(-parseInt(_0x1b0f93(0x1cc))/0x5)+parseInt(_0x1b0f93(0x2ac))/0x6*(-parseInt(_0x1b0f93(0x1f2))/0x7)+parseInt(_0x1b0f93(0x278))/0x8*(parseInt(_0x1b0f93(0x20e))/0x9)+parseInt(_0x1b0f93(0x1e0))/0xa*(parseInt(_0x1b0f93(0x1a1))/0xb)+-parseInt(_0x1b0f93(0x257))/0xc;if(_0x125ae7===_0x95ffe4)break;else _0x9c31de['push'](_0x9c31de['shift']());}catch(_0x46767a){_0x9c31de['push'](_0x9c31de['shift']());}}}(_0x3b3e,0x36808));var Pe=Object[_0x394352(0x277)],Ee=(_0x5b9d88,_0x347e94,_0x2b8478)=>_0x347e94 in _0x5b9d88?Pe(_0x5b9d88,_0x347e94,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8478}):_0x5b9d88[_0x347e94]=_0x2b8478,x=(_0x5499d0,_0x193a50,_0x5c7cc7)=>Ee(_0x5499d0,typeof _0x193a50!=_0x394352(0x207)?_0x193a50+'':_0x193a50,_0x5c7cc7);import{LocaleService as _0x12b0d8,Inject as _0x276bd8,Injector as _0x15e3f9,IConfigService as _0x337f2a,ILocalStorageService as _0x26ddd0,ILogService as _0x4711c9,Disposable as _0x3a382a,CommandType as _0x2ed189,ICommandService as _0x3285ef,DependentOn as _0xf476b8,Plugin as _0x39f691,merge as _0x313090}from'@univerjs/core';import{jsxs as _0x5e1c29,jsx as _0xff0ef5}from'react/jsx-runtime';import{MCPConnectionStatus as _0x2e940e,MCPConnectionError as _0x162557,MCPConnectionController as _0x335d4f,MCP_PLUGIN_CONFIG_KEY as _0x31bfb0,UniverMCPPlugin as _0x582431}from'@univerjs-pro/mcp';import{clsx as _0x572640,Input as _0x315d1d,Button as _0x4f7268,MessageType as _0xaeaa6a,Tooltip as _0x35acec}from'@univerjs/design';import{useDependency as _0x5a5b5e,useObservable as _0xce3387,IUIPartsService as _0x4b8e11,IDialogService as _0xf30644,IMessageService as _0x2093bb,ComponentManager as _0x493f7d,connectInjector as _0x573243,BuiltInUIPart as _0x4a7e94,MenuItemType as _0x18c334,RibbonStartGroup as _0x58ae50,IMenuManagerService as _0xbe9ff}from'@univerjs/ui';import{BehaviorSubject as _0x385945}from'rxjs';import{useRef as _0x117ef1,createElement as _0x51aafc,forwardRef as _0x509fed,useState as _0x17f62d,useCallback as _0x4a25a1}from'react';import{ISocketService as _0x2661f5,WebSocketService as _0x3a6776}from'@univerjs/network';function b({ref:_0x51b1d8,..._0x16073e}){const _0x51d9d2=_0x394352,{icon:_0x1ec83d,id:_0x4c8e96,className:_0x58565f,extend:_0x5439b4,..._0xcce847}=_0x16073e,_0x56e3c0=('univerjs-icon\x20univerjs-icon-'+_0x4c8e96+'\x20'+(_0x58565f||''))[_0x51d9d2(0x21f)](),_0x2092ea=_0x117ef1('_'+We());return ae(_0x1ec83d,''+_0x4c8e96,{'defIds':_0x1ec83d['defIds'],'idSuffix':_0x2092ea[_0x51d9d2(0x2c2)]},{'ref':_0x51b1d8,'className':_0x56e3c0,..._0xcce847},_0x5439b4);}function ae(_0x418574,_0x473fca,_0x63be4f,_0x39127e,_0x47925b){const _0x17de16=_0x394352;return _0x51aafc(_0x418574[_0x17de16(0x216)],{'key':_0x473fca,...Ye(_0x418574,_0x63be4f,_0x47925b),..._0x39127e},(Ze(_0x418574,_0x63be4f)['children']||[])[_0x17de16(0x250)]((_0x76b49b,_0x259a5f)=>ae(_0x76b49b,_0x473fca+'-'+_0x418574['tag']+'-'+_0x259a5f,_0x63be4f,void 0x0,_0x47925b)));}function Ye(_0x3b997a,_0x3a3335,_0x56b0b0){const _0x16f768=_0x394352,_0x52aa7a={..._0x3b997a[_0x16f768(0x2a2)]};_0x56b0b0!=null&&_0x56b0b0[_0x16f768(0x1af)]&&_0x52aa7a['fill']==='colorChannel1'&&(_0x52aa7a[_0x16f768(0x241)]=_0x56b0b0['colorChannel1']),_0x3b997a['tag']===_0x16f768(0x1ef)&&_0x52aa7a['id']&&(_0x52aa7a['id']=_0x52aa7a['id']+_0x3a3335[_0x16f768(0x19b)]),Object['entries'](_0x52aa7a)['forEach'](([_0x29f984,_0x3047d8])=>{const _0x4588b2=_0x16f768;_0x29f984===_0x4588b2(0x1ef)&&typeof _0x3047d8=='string'&&(_0x52aa7a[_0x29f984]=_0x3047d8[_0x4588b2(0x1a9)](/url\(#(.*)\)/,_0x4588b2(0x1a6)+_0x3a3335['idSuffix']+')'));});const {defIds:_0x669d84}=_0x3a3335;return!_0x669d84||_0x669d84[_0x16f768(0x217)]===0x0||(_0x3b997a['tag']===_0x16f768(0x23a)&&_0x52aa7a['xlink:href']&&(_0x52aa7a[_0x16f768(0x2a9)]=_0x52aa7a[_0x16f768(0x2a9)]+_0x3a3335[_0x16f768(0x19b)]),Object['entries'](_0x52aa7a)[_0x16f768(0x19d)](([_0x514119,_0x1bc464])=>{const _0x986e5b=_0x16f768;typeof _0x1bc464=='string'&&(_0x52aa7a[_0x514119]=_0x1bc464['replace'](/url\(#(.*)\)/,_0x986e5b(0x1a6)+_0x3a3335['idSuffix']+')'));})),_0x52aa7a;}function _0x46a9(_0x5b551d,_0x180636){_0x5b551d=_0x5b551d-0x180;const _0x3b3ef4=_0x3b3e();let _0x46a9ea=_0x3b3ef4[_0x5b551d];return _0x46a9ea;}function Ze(_0x4c7a48,_0x3b980d){const _0x385aff=_0x394352;var _0x48af4b;const {defIds:_0x20dcbd}=_0x3b980d;return!_0x20dcbd||_0x20dcbd[_0x385aff(0x217)]===0x0?_0x4c7a48:_0x4c7a48[_0x385aff(0x216)]===_0x385aff(0x297)&&((_0x48af4b=_0x4c7a48[_0x385aff(0x1c8)])!=null&&_0x48af4b[_0x385aff(0x217)])?{..._0x4c7a48,'children':_0x4c7a48[_0x385aff(0x1c8)][_0x385aff(0x250)](_0x9c85cb=>typeof _0x9c85cb[_0x385aff(0x2a2)]['id']==_0x385aff(0x2bb)&&_0x20dcbd&&_0x20dcbd[_0x385aff(0x25c)](_0x9c85cb[_0x385aff(0x2a2)]['id'])?{..._0x9c85cb,'attrs':{..._0x9c85cb[_0x385aff(0x2a2)],'id':_0x9c85cb[_0x385aff(0x2a2)]['id']+_0x3b980d[_0x385aff(0x19b)]}}:_0x9c85cb)}:_0x4c7a48;}function We(){const _0x4a5c8a=_0x394352;return Math[_0x4a5c8a(0x1a4)]()[_0x4a5c8a(0x1aa)](0x24)[_0x4a5c8a(0x24d)](0x2,0x8);}b[_0x394352(0x19a)]=_0x394352(0x1fe);const qe={'tag':_0x394352(0x1f3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x394352(0x1ee)},'children':[{'tag':_0x394352(0x18a),'attrs':{'fill':_0x394352(0x2a1),'d':_0x394352(0x2cd),'fillRule':_0x394352(0x243),'clipRule':_0x394352(0x243)}}]},le=_0x509fed(function(_0x277b8d,_0x494662){const _0x592395=_0x394352;return _0x51aafc(b,Object[_0x592395(0x2c3)]({},_0x277b8d,{'id':_0x592395(0x211),'ref':_0x494662,'icon':qe}));});le[_0x394352(0x19a)]='CheckMarkIcon';const Xe={'tag':_0x394352(0x1f3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x394352(0x252),'viewBox':_0x394352(0x187),'width':_0x394352(0x1ee),'height':_0x394352(0x1ee)},'children':[{'tag':'path','attrs':{'fill':_0x394352(0x2a1),'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'}}]},ue=_0x509fed(function(_0x35fb54,_0x3b7aca){const _0x431be7=_0x394352;return _0x51aafc(b,Object[_0x431be7(0x2c3)]({},_0x35fb54,{'id':_0x431be7(0x1dd),'ref':_0x3b7aca,'icon':Xe}));});ue[_0x394352(0x19a)]=_0x394352(0x1d5);const Je={'tag':_0x394352(0x1f3),'attrs':{'xmlns':_0x394352(0x27b),'fill':_0x394352(0x252),'viewBox':_0x394352(0x187),'width':_0x394352(0x1ee),'height':_0x394352(0x1ee)},'children':[{'tag':_0x394352(0x18a),'attrs':{'fill':_0x394352(0x2a1),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x394352(0x1fc),'fillRule':_0x394352(0x243),'clipRule':_0x394352(0x243)}}]},ve=_0x509fed(function(_0x5ab1e7,_0x1da6a2){const _0x106863=_0x394352;return _0x51aafc(b,Object[_0x106863(0x2c3)]({},_0x5ab1e7,{'id':_0x106863(0x24a),'ref':_0x1da6a2,'icon':Je}));});ve[_0x394352(0x19a)]='HelpIcon';const Qe={'tag':'svg','attrs':{'xmlns':_0x394352(0x27b),'fill':_0x394352(0x252),'viewBox':_0x394352(0x187),'width':_0x394352(0x1ee),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x394352(0x18a),'attrs':{'stroke':_0x394352(0x2a1),'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':_0x394352(0x18d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x394352(0x297),'attrs':{},'children':[{'tag':_0x394352(0x2c8),'attrs':{'id':_0x394352(0x1b8)},'children':[{'tag':_0x394352(0x18a),'attrs':{'fill':_0x394352(0x287),'d':_0x394352(0x205)}}]}]}],'defIds':[_0x394352(0x1b8)]},de=_0x509fed(function(_0x23d6b4,_0x39d224){const _0x3a4faf=_0x394352;return _0x51aafc(b,Object['assign']({},_0x23d6b4,{'id':_0x3a4faf(0x1ba),'ref':_0x39d224,'icon':Qe}));});de[_0x394352(0x19a)]='OffLineIcon';const en={'tag':_0x394352(0x1f3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x394352(0x252),'viewBox':'0\x200\x2017\x2016','width':_0x394352(0x1ee),'height':_0x394352(0x1ee)},'children':[{'tag':'g','attrs':{'clipPath':_0x394352(0x1b3)},'children':[{'tag':_0x394352(0x18a),'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':_0x394352(0x18d),'strokeLinejoin':_0x394352(0x18d),'strokeWidth':1.2}}]},{'tag':_0x394352(0x297),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x394352(0x263)},'children':[{'tag':_0x394352(0x18a),'attrs':{'fill':_0x394352(0x287),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x394352(0x263)]},ge=_0x509fed(function(_0x224815,_0x324b07){const _0x349b81=_0x394352;return _0x51aafc(b,Object['assign']({},_0x224815,{'id':_0x349b81(0x29a),'ref':_0x324b07,'icon':en}));});ge[_0x394352(0x19a)]=_0x394352(0x203);function nn(_0x4553e8){const _0x366a19=_0x394352;var _0x3719cf,_0x2d6a57;const {mcpCoreConfig:_0x3b65b0,onSave:_0x1f9d15,loading:_0x8dd80a=!0x1,config:_0x379484,connectionStatus$:_0x41960f,connectionError$:_0x4ff3c3,currentApiKey$:_0x3576dc,currentSessionId$:_0x186b37}=_0x4553e8,_0x126bed=_0x5a5b5e(_0x12b0d8),_0x32f724=_0xce3387(_0x41960f,_0x2e940e['DISCONNECTED']),_0x244e1f=_0xce3387(_0x4ff3c3,_0x162557['NONE']),_0x2586fd=_0xce3387(_0x186b37,''),_0x1e2768=_0xce3387(_0x3576dc,''),[_0x105219,_0x2db484]=_0x17f62d(_0x1e2768||''),_0x3fe7d2=!0x0,_0x454006=_0x379484['showDeveloperTools']&&_0x3b65b0[_0x366a19(0x21c)]&&(_0x3b65b0['mcpServerUrl']['includes'](_0x366a19(0x238))||_0x3b65b0[_0x366a19(0x21c)][_0x366a19(0x25c)]('univer.ai')),_0x2a9d7d=(_0x3719cf=_0x3b65b0[_0x366a19(0x21c)])==null?void 0x0:_0x3719cf[_0x366a19(0x25c)](_0x366a19(0x238)),_0x56e20c=(_0x2d6a57=_0x3b65b0[_0x366a19(0x21c)])==null?void 0x0:_0x2d6a57[_0x366a19(0x25c)]('univer.ai'),_0x2bc3cb=_0x2a9d7d?_0x366a19(0x225):'https://console.univer.ai',_0x126804=_0x379484['showDeveloperTools']&&(_0x2a9d7d||_0x56e20c),[_0x267e61,_0x467a85]=_0x17f62d(!_0x105219['trim']()),_0x42a382=(_0x3d7faf,_0x5b0552)=>{const _0x535e26=_0x366a19;if(_0x5b0552===_0x162557[_0x535e26(0x229)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x3d7faf){case _0x2e940e['CONNECTED']:return _0x535e26(0x29c);case _0x2e940e[_0x535e26(0x2ae)]:case _0x2e940e[_0x535e26(0x220)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x2e940e[_0x535e26(0x181)]:return _0x535e26(0x284);default:return _0x535e26(0x196);}},_0x101901=(_0x247ba8,_0x372d30)=>{const _0xbd00c4=_0x366a19;if(_0x372d30===_0x162557[_0xbd00c4(0x229)])return _0xbd00c4(0x2b4);switch(_0x247ba8){case _0x2e940e[_0xbd00c4(0x292)]:return _0xbd00c4(0x1da);case _0x2e940e['CONNECTING']:case _0x2e940e[_0xbd00c4(0x220)]:return _0xbd00c4(0x201);case _0x2e940e[_0xbd00c4(0x181)]:return _0xbd00c4(0x2b4);default:return'univer-bg-gray-500';}},_0x2c9d78=_0x404fc0=>{const _0x2c25a4=_0x366a19;switch(_0x404fc0){case _0x2e940e[_0x2c25a4(0x292)]:return _0x126bed['t'](_0x2c25a4(0x18f));case _0x2e940e[_0x2c25a4(0x2ae)]:return _0x126bed['t'](_0x2c25a4(0x279));case _0x2e940e[_0x2c25a4(0x181)]:return _0x126bed['t'](_0x2c25a4(0x26d));case _0x2e940e[_0x2c25a4(0x220)]:return _0x126bed['t'](_0x2c25a4(0x271));default:return _0x126bed['t'](_0x2c25a4(0x259));}},_0x416799=_0x2c80d4=>{const _0x4062a6=_0x366a19;switch(_0x2c80d4){case _0x162557[_0x4062a6(0x229)]:return _0x126bed['t']('mcpConfig.connectionError.unauthorized');case _0x162557[_0x4062a6(0x1ca)]:return _0x126bed['t'](_0x4062a6(0x2b1));case _0x162557['NETWORK_ERROR']:return _0x126bed['t']('mcpConfig.connectionError.networkError');case _0x162557['MAX_RETRIES_EXCEEDED']:return _0x126bed['t'](_0x4062a6(0x2d6));default:return'';}},_0xa441a=_0x4a25a1(()=>{const _0x2ddebd=_0x366a19,_0x7d91c9={..._0x3b65b0,'apiKey':_0x105219[_0x2ddebd(0x21f)](),'enableAuth':_0x3fe7d2};_0x1f9d15(_0x7d91c9);},[_0x3b65b0,_0x105219,_0x3fe7d2,_0x1f9d15]),_0x285943=_0x105219[_0x366a19(0x21f)]()[_0x366a19(0x217)]>0x0;return _0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x198),'children':[_0xff0ef5('div',{'className':_0x366a19(0x2d2),'children':_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x255),'children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x2cc),'children':_0xff0ef5(_0x366a19(0x290),{'className':_0x366a19(0x28d),'children':'⚙'})}),_0xff0ef5('div',{'children':_0xff0ef5('p',{'className':_0x366a19(0x294),'children':_0x126bed['t']('mcpConfig.description')})})]})}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x289),'children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x572640(_0x366a19(0x26e),_0x42a382(_0x32f724,_0x244e1f)),'children':_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x183),'children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x572640('univer-size-2\x20univer-rounded-full',_0x101901(_0x32f724,_0x244e1f))}),_0xff0ef5(_0x366a19(0x290),{'className':_0x366a19(0x1b1),'children':_0x2c9d78(_0x32f724)})]})}),_0x244e1f!==_0x162557[_0x366a19(0x1bf)]&&(_0x32f724===_0x2e940e[_0x366a19(0x181)]||_0x244e1f===_0x162557['UNAUTHORIZED'])&&_0xff0ef5('div',{'className':_0x366a19(0x1d2),'children':_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x1d1),'children':[_0xff0ef5(_0x366a19(0x290),{'className':_0x366a19(0x18e),'children':'⚠️'}),_0xff0ef5('p',{'className':_0x366a19(0x192),'children':_0x416799(_0x244e1f)})]})})]}),_0xff0ef5('div',{'className':_0x366a19(0x206),'children':_0x5e1c29('div',{'className':_0x366a19(0x1df),'children':[_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x2a7),'children':[_0x5e1c29(_0x366a19(0x1e5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0xff0ef5('span',{'children':'🔑'}),'\x20',_0x126bed['t'](_0x366a19(0x1e8)),_0xff0ef5(_0x366a19(0x290),{'className':'univer-text-red-500','children':'*'}),_0x454006&&_0xff0ef5('a',{'className':_0x366a19(0x1ae),'title':_0x126bed['t'](_0x366a19(0x2bd)),'role':_0x366a19(0x1d9),'onClick':()=>_0x467a85(!0x0),'children':_0xff0ef5(ve,{})})]}),_0xff0ef5(_0x315d1d,{'type':_0x366a19(0x21d),'placeholder':_0x126bed['t'](_0x366a19(0x191)),'value':_0x105219,'disabled':_0x8dd80a,'autoComplete':_0x366a19(0x2ad),'onChange':_0x2db484}),_0xff0ef5('p',{'className':_0x366a19(0x186),'children':_0x126bed['t']('mcpConfig.apiKeyHint')})]}),_0x454006&&_0x267e61&&_0x5e1c29('div',{'className':_0x366a19(0x251),'children':[_0xff0ef5('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x366a19(0x1d9),'onClick':()=>_0x467a85(!0x1),'children':_0xff0ef5(ue,{'className':_0x366a19(0x1ea)})}),_0x5e1c29('div',{'className':_0x366a19(0x2c6),'children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x1d7),'children':_0xff0ef5('span',{'className':_0x366a19(0x247),'children':'🚀'})}),_0x5e1c29(_0x366a19(0x25f),{'className':'univer-flex-1','children':[_0xff0ef5('h4',{'className':_0x366a19(0x21a),'children':_0x126bed['t'](_0x366a19(0x2bd))}),_0xff0ef5('p',{'className':_0x366a19(0x208),'children':_0x126bed['t']('mcpConfig.apiApplyInfo.description')}),_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x1e6),'children':_0x126804&&_0x5e1c29('a',{'className':_0x366a19(0x1b5),'href':_0x2bc3cb,'target':_0x366a19(0x195),'rel':_0x366a19(0x2ab),'children':[_0xff0ef5(_0x366a19(0x290),{'children':'🤖'}),_0x126bed['t'](_0x366a19(0x231)),_0xff0ef5(_0x366a19(0x290),{'className':_0x366a19(0x246),'children':'↗'})]})}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x1fa),'children':['✨','\x20',_0x126bed['t'](_0x366a19(0x1ec))]})]})]})]}),_0x379484[_0x366a19(0x26a)]&&_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x1ad),'children':[_0x5e1c29('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0xff0ef5(_0x366a19(0x290),{'children':'🔗'}),'\x20',_0x126bed['t'](_0x366a19(0x1b7))]}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x213),'children':[_0x5e1c29(_0x366a19(0x25f),{'className':'univer-space-y-3','children':[_0xff0ef5('p',{'className':_0x366a19(0x2a8),'children':_0x126bed['t'](_0x366a19(0x258))}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x2a7),'children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x27c),'children':_0x126bed['t'](_0x366a19(0x2c0))}),_0x5e1c29('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x5e1c29('div',{'className':_0x366a19(0x183),'children':[_0xff0ef5(_0x366a19(0x290),{'className':_0x366a19(0x242),'children':'1'}),_0x126bed['t'](_0x366a19(0x204))]}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x183),'children':[_0xff0ef5(_0x366a19(0x290),{'className':_0x366a19(0x242),'children':'2'}),_0x126bed['t'](_0x366a19(0x23f))]}),_0x5e1c29(_0x366a19(0x25f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xff0ef5('span',{'className':_0x366a19(0x242),'children':'3'}),_0x126bed['t'](_0x366a19(0x22d))]})]})]})]}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x2a7),'children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x27c),'children':'MCP\x20Configuration'}),_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x2c5),'children':_0xff0ef5(_0x366a19(0x1c7),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x2586fd||'<SESSION_ID>'),'type':_0x366a19(0x2af),'headers':{'Authorization':_0x366a19(0x24e)+(_0x105219||'<API_KEY>')}}}},null,0x2)})})]}),_0x5e1c29(_0x366a19(0x25f),{'className':'univer-space-y-3','children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x27c),'children':_0x126bed['t'](_0x366a19(0x25d))}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x2a7),'children':[_0x5e1c29('div',{'className':_0x366a19(0x227),'children':[_0xff0ef5('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5e1c29(_0x366a19(0x25f),{'className':_0x366a19(0x286),'children':[_0xff0ef5('div',{'className':_0x366a19(0x2a0),'children':'univer_session_id:'}),_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x186),'children':_0x126bed['t'](_0x366a19(0x1a8))})]})]}),_0x5e1c29(_0x366a19(0x25f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x1f4)}),_0x5e1c29(_0x366a19(0x25f),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x2a0),'children':_0x366a19(0x2a6)}),_0xff0ef5(_0x366a19(0x25f),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x126bed['t'](_0x366a19(0x2b2))})]})]})]})]})]})]}),_0xff0ef5(_0x4f7268,{'onClick':_0xa441a,'disabled':!_0x285943||_0x8dd80a,'className':_0x366a19(0x1e7),'children':_0x8dd80a?_0x5e1c29(_0x366a19(0x290),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xff0ef5(_0x366a19(0x290),{'children':'⟲'}),_0x126bed['t']('mcpConfig.saving')]}):_0x5e1c29('span',{'className':_0x366a19(0x183),'children':[_0xff0ef5(le,{}),_0x126bed['t'](_0x366a19(0x282))]})}),_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x293),'children':_0x5e1c29(_0x366a19(0x25f),{'className':'univer-flex\x20univer-gap-3','children':[_0xff0ef5(_0x366a19(0x290),{'className':_0x366a19(0x2cf),'children':'💡'}),_0x5e1c29('div',{'className':_0x366a19(0x264),'children':[_0xff0ef5(_0x366a19(0x25f),{'className':_0x366a19(0x248),'children':'Configuration\x20Notes:'}),_0x5e1c29('div',{'children':['•',_0x126bed['t'](_0x366a19(0x2be))]}),_0x5e1c29(_0x366a19(0x25f),{'children':['•',_0x126bed['t'](_0x366a19(0x1f6))]})]})]})})]})})]});}const y=_0x394352(0x2ce),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x394352(0x1e3)],tn=(_0x4c4516,_0x543a75,_0x2d59db,_0x496278)=>{const _0x52dc7d=_0x394352;for(var _0x80ec2c=_0x496278>0x1?void 0x0:_0x496278?rn(_0x543a75,_0x2d59db):_0x543a75,_0x42a014=_0x4c4516[_0x52dc7d(0x217)]-0x1,_0x270a5b;_0x42a014>=0x0;_0x42a014--)(_0x270a5b=_0x4c4516[_0x42a014])&&(_0x80ec2c=_0x270a5b(_0x80ec2c)||_0x80ec2c);return _0x80ec2c;},d=(_0x281bae,_0x2350a3)=>(_0x2a45cd,_0x15bbfb)=>_0x2350a3(_0x2a45cd,_0x15bbfb,_0x281bae);const U=_0x394352(0x267),L=_0x394352(0x189);let I=class extends _0x3a382a{constructor(_0x3d18ca,_0x5a21e5,_0x18a90e,_0x2fd247,_0x23d408,_0x2c3524,_0x8fe9d5,_0x1d4382,_0x2915fd,_0x5d9daf){const _0x14785f=_0x394352;super(),x(this,_0x14785f(0x22a),new _0x385945(!0x1)),x(this,_0x14785f(0x23e),new _0x385945({})),x(this,_0x14785f(0x1fb),new _0x385945({})),x(this,_0x14785f(0x276),new _0x385945('')),x(this,_0x14785f(0x1b9),async _0x3cd163=>{const _0x361eb7=_0x14785f;var _0x27ef6e,_0x2d264b;this[_0x361eb7(0x22a)]['next'](!0x0);try{const _0x41a2bb=await this[_0x361eb7(0x266)](_0x3cd163);if(!_0x41a2bb[_0x361eb7(0x29b)]){this[_0x361eb7(0x18b)][_0x361eb7(0x219)]({'type':_0xaeaa6a[_0x361eb7(0x2d5)],'content':_0x41a2bb[_0x361eb7(0x273)]||this[_0x361eb7(0x224)]['t'](_0x361eb7(0x1dc))});return;}_0x3cd163['apiKey']?await this[_0x361eb7(0x1bc)][_0x361eb7(0x274)](U,_0x3cd163[_0x361eb7(0x25a)][_0x361eb7(0x21f)]()):await this['_localStorageService']['removeItem'](U),this[_0x361eb7(0x276)]['next'](((_0x27ef6e=_0x3cd163[_0x361eb7(0x25a)])==null?void 0x0:_0x27ef6e['trim']())||''),this['_mcpConnectionController'][_0x361eb7(0x28a)]({'Authorization':_0x361eb7(0x24e)+((_0x2d264b=_0x3cd163[_0x361eb7(0x25a)])==null?void 0x0:_0x2d264b['trim']())}),this['_messageService'][_0x361eb7(0x219)]({'type':_0xaeaa6a['Success'],'content':this['_localeService']['t'](_0x361eb7(0x261))}),setTimeout(()=>{const _0xe9688e=_0x361eb7;this[_0xe9688e(0x269)]['close'](L);},0x320);}catch(_0x1edc14){this['_logService'][_0x361eb7(0x27d)](_0x361eb7(0x210),_0x1edc14),this['_messageService'][_0x361eb7(0x219)]({'type':_0xaeaa6a[_0x361eb7(0x2d5)],'content':this['_localeService']['t'](_0x361eb7(0x1a7))});}finally{this[_0x361eb7(0x22a)]['next'](!0x1);}}),(this[_0x14785f(0x21b)]=_0x3d18ca,this[_0x14785f(0x20b)]=_0x5a21e5,this[_0x14785f(0x18c)]=_0x18a90e,this[_0x14785f(0x1bc)]=_0x2fd247,this[_0x14785f(0x269)]=_0x23d408,this[_0x14785f(0x18b)]=_0x2c3524,this[_0x14785f(0x185)]=_0x8fe9d5,this[_0x14785f(0x224)]=_0x1d4382,this['_logService']=_0x2915fd,this[_0x14785f(0x291)]=_0x5d9daf,this[_0x14785f(0x2a5)](),this[_0x14785f(0x1c1)](),this[_0x14785f(0x1c4)]());}[_0x394352(0x26b)](){const _0x1829e4=_0x394352,_0x34452d=this[_0x1829e4(0x18c)][_0x1829e4(0x20c)](y);_0x34452d!=null&&_0x34452d['showDeveloperTools']&&this[_0x1829e4(0x269)]['open']({'id':L,'title':{'title':this[_0x1829e4(0x224)]['t']('mcpConfig.title')},'children':{'label':_0x1829e4(0x29e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5e7257=_0x1829e4;this['_dialogService'][_0x5e7257(0x2c4)](L);}});}[_0x394352(0x2bf)](){const _0x490b60=_0x394352;return this['_mcpCoreConfig$'][_0x490b60(0x1f7)];}['_registerComponent'](){const _0x51a737=_0x394352;this[_0x51a737(0x19e)](this['_componentManager'][_0x51a737(0x1bb)]('MCPConfigPanel',this[_0x51a737(0x1ed)]()));}[_0x394352(0x1ed)](){const _0x1e5fe9=_0x394352;return _0x573243(()=>{const _0x2fa3af=_0x46a9;var _0x26ebde,_0x4e5e4a,_0x475e19;return _0xff0ef5(nn,{'config':this[_0x2fa3af(0x1fb)][_0x2fa3af(0x1f7)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x2fa3af(0x1f7)],'currentApiKey$':this[_0x2fa3af(0x276)],'onSave':this['_handleConfigSave'],'loading':this[_0x2fa3af(0x22a)][_0x2fa3af(0x1f7)],'connectionStatus$':(_0x26ebde=this['_mcpConnectionController'])==null?void 0x0:_0x26ebde[_0x2fa3af(0x1b0)],'connectionError$':(_0x4e5e4a=this[_0x2fa3af(0x291)])==null?void 0x0:_0x4e5e4a[_0x2fa3af(0x27e)],'currentSessionId$':(_0x475e19=this[_0x2fa3af(0x291)])==null?void 0x0:_0x475e19['sessionId$']});},this[_0x1e5fe9(0x21b)]);}[_0x394352(0x2a5)](){const _0x533399=_0x394352;this[_0x533399(0x19e)](this[_0x533399(0x18c)][_0x533399(0x190)](_0x31bfb0)[_0x533399(0x28f)](_0xca9f70=>{const _0x4b154c=_0x533399;this[_0x4b154c(0x23e)]['next'](_0xca9f70||{});}));const _0x4a624d=this[_0x533399(0x18c)]['getConfig'](_0x31bfb0);this['_mcpCoreConfig$'][_0x533399(0x19c)](_0x4a624d||{}),this[_0x533399(0x19e)](this[_0x533399(0x18c)][_0x533399(0x190)](y)['subscribe'](_0x285478=>{const _0x77cc2d=_0x533399;this[_0x77cc2d(0x1fb)][_0x77cc2d(0x19c)](_0x285478||{});}));const _0xcbc0fb=this[_0x533399(0x18c)][_0x533399(0x20c)](y);this[_0x533399(0x1fb)][_0x533399(0x19c)](_0xcbc0fb||{});}async[_0x394352(0x1c1)](){const _0x56cdfd=_0x394352,_0x1b40d1=this['_configService']['getConfig'](y);if(!(_0x1b40d1!=null&&_0x1b40d1['showDeveloperTools']))return;const _0x203825=await this['_localStorageService'][_0x56cdfd(0x285)](U);_0x203825&&(this[_0x56cdfd(0x291)]['__setCustomHeaders']({'Authorization':_0x56cdfd(0x24e)+_0x203825}),this[_0x56cdfd(0x276)][_0x56cdfd(0x19c)](_0x203825));}async[_0x394352(0x266)](_0x2c8b96){const _0x20fb59=_0x394352;if(!_0x2c8b96[_0x20fb59(0x25a)]||_0x2c8b96['apiKey'][_0x20fb59(0x21f)]()[_0x20fb59(0x217)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x20fb59(0x224)]['t'](_0x20fb59(0x240))};if(_0x2c8b96[_0x20fb59(0x25a)][_0x20fb59(0x21f)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0xc06250=await this[_0x20fb59(0x21b)][_0x20fb59(0x1a0)](_0x335d4f)[_0x20fb59(0x1e2)](_0x2c8b96[_0x20fb59(0x25a)]['trim']());return _0xc06250[_0x20fb59(0x29b)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xc06250['error']||this[_0x20fb59(0x224)]['t'](_0x20fb59(0x1b6))};}catch(_0x23df04){return console[_0x20fb59(0x1e4)](_0x20fb59(0x2c9),_0x23df04),{'isValid':!0x0};}}};I=tn([d(0x0,_0x276bd8(_0x15e3f9)),d(0x1,_0x4b8e11),d(0x2,_0x337f2a),d(0x3,_0x26ddd0),d(0x4,_0xf30644),d(0x5,_0x2093bb),d(0x6,_0x276bd8(_0x493f7d)),d(0x7,_0x276bd8(_0x12b0d8)),d(0x8,_0x4711c9),d(0x9,_0x276bd8(_0x335d4f))],I);const V={'id':_0x394352(0x2c1),'type':_0x2ed189['COMMAND'],'handler':async(_0x2d57de,_0x29c3e9)=>(_0x2d57de['get'](I)[_0x394352(0x26b)](),!0x0)};function pe(_0xaab687,_0x35dc39){const _0x1d1948=_0x394352;switch(_0xaab687){case _0x2e940e['DISCONNECTED']:return _0x1d1948(0x1d3);case _0x2e940e[_0x1d1948(0x2ae)]:return _0x1d1948(0x2d3);case _0x2e940e[_0x1d1948(0x292)]:return _0x1d1948(0x22b);case _0x2e940e['FAILED']:switch(_0x35dc39){case _0x162557['UNAUTHORIZED']:return _0x1d1948(0x188);case _0x162557['SESSION_ID_OCCUPIED']:return _0x1d1948(0x1cf);case _0x162557[_0x1d1948(0x28c)]:return _0x1d1948(0x2b5);case _0x162557['MAX_RETRIES_EXCEEDED']:return _0x1d1948(0x2b6);default:return _0x1d1948(0x244);}case _0x2e940e[_0x1d1948(0x220)]:return _0x1d1948(0x283);default:return'mcpStatus.unknown';}}function on(_0x28b366,_0x49ffc6,_0x5a1fac,_0x548c9b=!0x0){const _0x2f5fe1=_0x394352,_0x53dfce=pe(_0x28b366,_0x49ffc6),_0x3e8ae4=_0x5a1fac['t'](_0x53dfce);return _0x548c9b?_0x28b366===_0x2e940e[_0x2f5fe1(0x1d4)]&&_0x49ffc6===_0x162557[_0x2f5fe1(0x229)]?_0x3e8ae4+_0x2f5fe1(0x27a)+_0x5a1fac['t'](_0x2f5fe1(0x1b4)):_0x28b366===_0x2e940e[_0x2f5fe1(0x292)]?''+_0x3e8ae4:_0x28b366===_0x2e940e[_0x2f5fe1(0x1d4)]||_0x28b366===_0x2e940e[_0x2f5fe1(0x181)]?_0x3e8ae4+'\x20-\x20'+_0x5a1fac['t'](_0x2f5fe1(0x253)):_0x3e8ae4:_0x3e8ae4;}function sn(_0x245ff5){const _0x4a5f99=_0x394352;switch(_0x245ff5){case _0x2e940e[_0x4a5f99(0x292)]:return'univer-text-green-500';case _0x2e940e[_0x4a5f99(0x2ae)]:case _0x2e940e['RETRYING']:return'univer-text-yellow-500';case _0x2e940e[_0x4a5f99(0x181)]:case _0x2e940e[_0x4a5f99(0x1d4)]:return _0x4a5f99(0x20a);default:return _0x4a5f99(0x233);}}function cn(_0x19a93a){const _0x73b55=_0x394352,{status$:_0x4044eb,error$:_0x433eda,onConfigure:_0x3f4b4a,showClickable:_0x2aeae2=!0x0}=_0x19a93a,_0x3328f1=_0xce3387(_0x4044eb,_0x2e940e[_0x73b55(0x1d4)]),_0x5b0b6a=_0xce3387(_0x433eda,_0x162557[_0x73b55(0x1bf)]),_0x313104=_0x5a5b5e(_0x12b0d8),_0xf09860=_0x3328f1===_0x2e940e['CONNECTED'];_0x3328f1===_0x2e940e['CONNECTING']||_0x2e940e[_0x73b55(0x220)];const _0x2930f4=_0x313104['t'](pe(_0x3328f1,_0x5b0b6a)),_0x318e2c=on(_0x3328f1,_0x5b0b6a,_0x313104,_0x2aeae2),_0x2cad2f=sn(_0x3328f1),_0xf34239=_0xf09860?_0xff0ef5(ge,{}):_0xff0ef5(de,{}),_0x2782b2=_0x4a25a1(()=>{_0x2aeae2&&_0x3f4b4a&&_0x3f4b4a();},[_0x2aeae2,_0x3f4b4a]);function _0x48924e(){const _0x243724=_0x73b55;return _0x5e1c29(_0x243724(0x25f),{'className':_0x572640(_0x243724(0x221),_0x2aeae2&&_0x3f4b4a&&'\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':'button','onClick':_0x2aeae2&&_0x3f4b4a?_0x2782b2:void 0x0,'children':[_0xff0ef5(_0x243724(0x25f),{'className':_0x572640(_0x243724(0x214),_0x2cad2f),'children':_0xf34239}),_0xff0ef5(_0x243724(0x25f),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2930f4})]});}return _0xff0ef5(_0x35acec,{'title':_0x318e2c,'placement':_0x73b55(0x212),'children':_0x48924e()});}var an=Object[_0x394352(0x1e3)],ln=(_0x51e436,_0x55b7e1,_0x5a0eb0,_0x38380c)=>{const _0x2ab98c=_0x394352;for(var _0x2f8641=_0x38380c>0x1?void 0x0:_0x38380c?an(_0x55b7e1,_0x5a0eb0):_0x55b7e1,_0x5422f2=_0x51e436[_0x2ab98c(0x217)]-0x1,_0x48955a;_0x5422f2>=0x0;_0x5422f2--)(_0x48955a=_0x51e436[_0x5422f2])&&(_0x2f8641=_0x48955a(_0x2f8641)||_0x2f8641);return _0x2f8641;},M=(_0x244804,_0x17c5ff)=>(_0x40f046,_0x29b8aa)=>_0x17c5ff(_0x40f046,_0x29b8aa,_0x244804);let O=class extends _0x3a382a{constructor(_0x3f94e6,_0x1c1339,_0x37d7fb,_0x4407e4){const _0xf876bd=_0x394352;super(),this['_injector']=_0x3f94e6,this[_0xf876bd(0x299)]=_0x1c1339,this[_0xf876bd(0x20b)]=_0x37d7fb,this[_0xf876bd(0x18c)]=_0x4407e4,this[_0xf876bd(0x272)](),this[_0xf876bd(0x2ca)]();}['_initAutoConnect'](){const _0xef95ce=_0x394352,_0x3c9fff=this[_0xef95ce(0x18c)][_0xef95ce(0x20c)](y);_0x3c9fff!=null&&_0x3c9fff['showDeveloperTools']&&(this[_0xef95ce(0x299)][_0xef95ce(0x1cd)]=!0x1);}[_0x394352(0x2ca)](){const _0x23a363=_0x394352,_0x5c0beb=this[_0x23a363(0x18c)][_0x23a363(0x20c)](y);(_0x5c0beb==null?void 0x0:_0x5c0beb['showStatus'])!==!0x1&&this[_0x23a363(0x19e)](this['_uiPartsService'][_0x23a363(0x234)](_0x4a7e94[_0x23a363(0x1be)],()=>{const _0x1eaff7=_0x23a363;var _0x164c55;return _0x573243(un({'status$':this[_0x1eaff7(0x299)][_0x1eaff7(0x1b0)],'error$':this[_0x1eaff7(0x299)][_0x1eaff7(0x27e)],'onConfigure':()=>this[_0x1eaff7(0x2a4)](),'showClickable':(_0x164c55=_0x5c0beb==null?void 0x0:_0x5c0beb['showDeveloperTools'])!=null?_0x164c55:!0x1}),this[_0x1eaff7(0x21b)]);}));}[_0x394352(0x2a4)](){const _0x4a17f4=_0x394352;this[_0x4a17f4(0x21b)][_0x4a17f4(0x1a0)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x276bd8(_0x15e3f9)),M(0x1,_0x276bd8(_0x335d4f)),M(0x2,_0x4b8e11),M(0x3,_0x337f2a)],O);function un(_0x504820){const {status$:_0x312278,error$:_0x515d16,onConfigure:_0x552a68,showClickable:_0x589b85}=_0x504820;return function(){return _0xff0ef5(cn,{'status$':_0x312278,'error$':_0x515d16,'onConfigure':_0x552a68,'showClickable':_0x589b85});};}function vn(_0x59ddce){const _0x5c3854=_0x394352;return{'id':V['id'],'type':_0x18c334['BUTTON'],'icon':_0x5c3854(0x1f8),'title':_0x5c3854(0x21e),'tooltip':_0x5c3854(0x21e)};}const dn={[_0x58ae50[_0x394352(0x268)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x394352(0x1e3)],pn=(_0x45dc30,_0x49e127,_0x2dc9e5,_0x548d15)=>{for(var _0x1276d4=_0x548d15>0x1?void 0x0:_0x548d15?gn(_0x49e127,_0x2dc9e5):_0x49e127,_0x8eefd4=_0x45dc30['length']-0x1,_0x32d3d5;_0x8eefd4>=0x0;_0x8eefd4--)(_0x32d3d5=_0x45dc30[_0x8eefd4])&&(_0x1276d4=_0x32d3d5(_0x1276d4)||_0x1276d4);return _0x1276d4;},re=(_0x335be9,_0x4a09d0)=>(_0x4101b5,_0x6e8fd6)=>_0x4a09d0(_0x4101b5,_0x6e8fd6,_0x335be9);let D=class extends _0x3a382a{constructor(_0x38a45e,_0x5e8960){const _0x125727=_0x394352;super(),this[_0x125727(0x295)]=_0x38a45e,this[_0x125727(0x223)]=_0x5e8960,this[_0x125727(0x239)](),this[_0x125727(0x25e)]();}[_0x394352(0x239)](){[V]['forEach'](_0x513856=>{const _0x201e6e=_0x46a9;this[_0x201e6e(0x19e)](this[_0x201e6e(0x295)]['registerCommand'](_0x513856));});}[_0x394352(0x25e)](){const _0x195c92=_0x394352;this[_0x195c92(0x223)]['mergeMenu'](dn);}};function _0x3b3e(){const _0x4042a0=['univer-flex\x20univer-items-center\x20univer-gap-2','API\x20key\x20with\x20Bearer\x20prefix.','_componentManager','univer-text-xs\x20univer-text-gray-500','0\x200\x2016\x2016','mcpStatus.unauthorized','mcp-config-dialog','path','_messageService','_configService','round','univer-shrink-0\x20univer-text-red-500','mcpConfig.connectionStatus.connected','subscribeConfigValue$','mcpConfig.apiKeyPlaceholder','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','MCP:\x20Network\x20Error','Connection\x20Failed','_blank','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MCP:\x20Unauthorized','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20已断开','displayName','idSuffix','next','forEach','disposeWithMe','147584ONxSNv','get','40029bOkJJc','MCP\x20Configuration','Retrying...','random','将配置添加到您的\x20MCP\x20客户端设置文件中','url(#$1','mcpConfig.configError','mcpConfig.sessionIdDescription','replace','toString','已连接','What\x20is\x20API\x20Key?','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','colorChannel1','connectionStatus$','univer-text-sm\x20univer-font-medium','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','url(#on-line-icon_clip0_910_349)','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','mcpConfig.validation.invalidApiKey','mcpConfig.connectionInfo','off-line-icon_clip0_910_343','_handleConfigSave','off-line-icon','register','_localStorageService','Failed\x20to\x20save\x20configuration','HEADER_MENU','NONE','add','_loadStoredApiKey','API\x20Key','Saving...','_registerComponent','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','onStarting','pre','children','点击配置\x20MCP','SESSION_ID_OCCUPIED','Connecting...','55BJxfIM','enableAutoConnect','连接中...','mcpStatus.sessionOccupied','点击连接\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-2','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpStatus.disconnected','DISCONNECTED','CloseIcon','MCP\x20Disconnected','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MCP:\x20网络错误','button','univer-bg-green-500','几秒钟内获取您的\x20API\x20密钥','mcpConfig.validation.invalidConfig','close-icon','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-5','590fqFPjN','Connected','validateApiKey','getOwnPropertyDescriptor','warn','label','univer-flex\x20univer-flex-wrap\x20univer-gap-2','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','mcpConfig.apiKey','Configuration\x20Steps:','univer-size-4','最大重试次数','mcpConfig.apiApplyInfo.getStarted','_createConfigPanelComponent','1em','mask','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','364RHRCGC','svg','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Univer\x20AI\x20Console','mcpConfig.note2','value','MenuIcon','API\x20密钥无效,请检查密钥是否正确','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_config$','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','MCP\x20配置','UniverIcon','MCP\x20已连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','OnLineIcon','mcpConfig.configStep1','M0\x200H16V16H0z','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','symbol','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','push','univer-text-red-500','_uiPartsService','getConfig','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1904535jpHHoy','MCP:\x20会话\x20ID\x20已被占用','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','check-mark-icon','bottom','univer-space-y-4','univer-mr-2\x20univer-flex\x20univer-text-xl','将以下配置添加到您的\x20MCP\x20客户端设置中:','tag','length','配置参数:','show','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_injector','mcpServerUrl','text','mcpConfig.title','trim','RETRYING','univer-flex\x20univer-items-center','重连中...','_menuManagerService','_localeService','https://console.univer.plus','Save\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','Configuration\x20Parameters:','UNAUTHORIZED','_loading$','mcpStatus.connected','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.configStep3','107214rOaFID','配置保存成功','setConfig','mcpConfig.apiApplyInfo.univerAiLabel','配置更改将立即生效','univer-text-gray-500','registerComponent','启用身份验证以获得安全连接','配置步骤:','MCP\x20Connection\x20Failed','univer.plus','_initializeCommands','use','Disconnected','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','_mcpCoreConfig$','mcpConfig.configStep2','mcpConfig.validation.apiKeyRequired','fill','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','evenodd','mcpStatus.failed','MCP\x20Connecting...','univer-text-gray-400','univer-text-blue-600','univer-font-medium','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','help-icon','MCP\x20状态未知','_config','substring','Bearer\x20','API\x20密钥不能为空','map','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','none','mcpStatus.clickToConnect','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-center\x20univer-gap-3','会话ID','11061336NpHfis','mcpConfig.configInstructions','mcpConfig.connectionStatus.disconnected','apiKey','配置无效','includes','mcpConfig.configParameters','_initializeMenus','div','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.configSaved','配置保存失败','on-line-icon_clip0_910_349','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCP:\x20Session\x20ID\x20Occupied','_validateConfig','mcp.apiKey','OTHERS','_dialogService','showDeveloperTools','showConfigPanel','Invalid\x20configuration','mcpConfig.connectionStatus.failed','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','会话\x20ID\x20已被占用,请稍后再试','复制以下\x20JSON\x20配置','mcpConfig.connectionStatus.retrying','_initAutoConnect','errorMessage','setItem','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_apiKey$','defineProperty','16XiHPvB','mcpConfig.connectionStatus.connecting','\x20-\x20','http://www.w3.org/2000/svg','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','error','connectionError$','保存中...','has','MCP\x20连接失败','mcpConfig.save','mcpStatus.retrying','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','getItem','univer-min-w-0\x20univer-flex-1','white','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','__setCustomHeaders','Copy\x20the\x20JSON\x20configuration\x20below','NETWORK_ERROR','univer-text-white','Configuration\x20saved\x20successfully','subscribe','span','_mcpConnectionController','CONNECTED','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-sm\x20univer-text-gray-500','_commandService','未连接','defs','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_connectionController','on-line-icon','isValid','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','什么是\x20API\x20密钥?','MCPConfigPanel','3nEAbMZ','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','currentColor','attrs','MCP\x20Connected','_handleConfigure','_initConfigSync','Authorization:','univer-space-y-2','univer-text-xs\x20univer-text-gray-600','xlink:href','MCP:\x20Max\x20Retries\x20Exceeded','noopener\x20noreferrer','22056SOQdqs','off','CONNECTING','http','Univer\x20AI\x20控制台','mcpConfig.connectionError.sessionOccupied','mcpConfig.authorizationDescription','启用身份验证','univer-bg-red-500','mcpStatus.networkError','mcpStatus.maxRetriesExceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','超出最大重试次数,请稍后再试','string','Max\x20Retries','mcpConfig.apiApplyInfo.title','mcpConfig.note1','getCurrentConfig','mcpConfig.configStepTitle','mcp-ui.command.openConfigPanel','current','assign','close','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','370338QXcfvA','clipPath','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_initStatusComponent','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','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','mcp-ui.config','univer-shrink-0\x20univer-text-blue-500','MCP\x20连接中...','MCP\x20客户端配置','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpStatus.connecting','MCP\x20Client\x20Configuration','Error','mcpConfig.connectionError.maxRetriesExceeded','API\x20密钥','FAILED','Session\x20ID'];_0x3b3e=function(){return _0x4042a0;};return _0x3b3e();}D=pn([re(0x0,_0x3285ef),re(0x1,_0xbe9ff)],D);const Mn={'mcpStatus':{'disconnected':_0x394352(0x1d6),'connecting':_0x394352(0x245),'connected':_0x394352(0x2a3),'failed':_0x394352(0x237),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x394352(0x197),'sessionOccupied':_0x394352(0x265),'networkError':_0x394352(0x193),'maxRetriesExceeded':_0x394352(0x2aa),'clickToConnect':_0x394352(0x23c),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x394352(0x1a2),'description':_0x394352(0x200),'apiKey':_0x394352(0x1c2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x394352(0x2b7),'enableAuth':_0x394352(0x23d),'enableAuthHint':_0x394352(0x254),'connectionInfo':_0x394352(0x2d4),'mcpClientConfig':_0x394352(0x2d4),'configInstructions':_0x394352(0x298),'configStepTitle':_0x394352(0x1e9),'configStep1':_0x394352(0x28b),'configStep2':_0x394352(0x249),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x394352(0x182),'sessionIdDescription':_0x394352(0x20d),'authorizationDescription':_0x394352(0x184),'configParameters':_0x394352(0x228),'maxRetries':_0x394352(0x2bc),'save':_0x394352(0x226),'saving':_0x394352(0x1c3),'note1':_0x394352(0x2cb),'note2':_0x394352(0x1c5),'configSaved':_0x394352(0x28e),'configError':_0x394352(0x1bd),'apiApplyInfo':{'title':_0x394352(0x1ac),'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':_0x394352(0x1f5),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x394352(0x2b9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x394352(0x26c),'invalidApiKey':_0x394352(0x1de)},'connectionStatus':{'disconnected':_0x394352(0x23b),'connecting':_0x394352(0x1cb),'connected':_0x394352(0x1e1),'failed':_0x394352(0x194),'retrying':_0x394352(0x1a3)},'connectionError':{'unauthorized':_0x394352(0x2b8),'sessionOccupied':_0x394352(0x1b2),'networkError':_0x394352(0x260),'maxRetriesExceeded':_0x394352(0x202)}}},An={'mcpStatus':{'disconnected':_0x394352(0x199),'connecting':_0x394352(0x2d0),'connected':_0x394352(0x1ff),'failed':_0x394352(0x281),'retrying':'MCP\x20重连中...','unknown':_0x394352(0x24b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x394352(0x20f),'networkError':_0x394352(0x1d8),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x394352(0x1d0),'clickToConfigure':_0x394352(0x1c9)},'mcpConfig':{'title':_0x394352(0x1fd),'description':_0x394352(0x22c),'apiKey':_0x394352(0x180),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x394352(0x2b3),'enableAuthHint':_0x394352(0x235),'connectionInfo':_0x394352(0x2d1),'mcpClientConfig':_0x394352(0x2d1),'configInstructions':_0x394352(0x215),'configStepTitle':_0x394352(0x236),'configStep1':_0x394352(0x270),'configStep2':_0x394352(0x1a5),'configStep3':_0x394352(0x1f1),'sessionId':_0x394352(0x256),'sessionIdDescription':_0x394352(0x288),'authorizationDescription':_0x394352(0x275),'configParameters':_0x394352(0x218),'maxRetries':_0x394352(0x1eb),'save':'保存配置','saving':_0x394352(0x27f),'note1':_0x394352(0x232),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x394352(0x22f),'configError':_0x394352(0x262),'apiApplyInfo':{'title':_0x394352(0x29d),'description':_0x394352(0x1f0),'univerAiLabel':_0x394352(0x2b0),'getStarted':_0x394352(0x1db)},'validation':{'apiKeyRequired':_0x394352(0x24f),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x394352(0x25b),'invalidApiKey':_0x394352(0x1f9)},'connectionStatus':{'disconnected':_0x394352(0x296),'connecting':_0x394352(0x1ce),'connected':_0x394352(0x1ab),'failed':'连接失败','retrying':_0x394352(0x222)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x394352(0x26f),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x394352(0x2ba)}}};var fn=Object[_0x394352(0x277)],hn=Object[_0x394352(0x1e3)],Cn=(_0x983b7d,_0x2861cb,_0x21e894)=>_0x2861cb in _0x983b7d?fn(_0x983b7d,_0x2861cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21e894}):_0x983b7d[_0x2861cb]=_0x21e894,mn=(_0xd8673a,_0x26a03b,_0xdd0cb8,_0x4e3eb0)=>{for(var _0x1bd03a=_0x4e3eb0>0x1?void 0x0:_0x4e3eb0?hn(_0x26a03b,_0xdd0cb8):_0x26a03b,_0x42b480=_0xd8673a['length']-0x1,_0x53c659;_0x42b480>=0x0;_0x42b480--)(_0x53c659=_0xd8673a[_0x42b480])&&(_0x1bd03a=_0x53c659(_0x1bd03a)||_0x1bd03a);return _0x1bd03a;},P=(_0x587987,_0x1bfc1a)=>(_0x2dcdfe,_0x1cddb7)=>_0x1bfc1a(_0x2dcdfe,_0x1cddb7,_0x587987),_n=(_0x5bcc86,_0x226f30,_0x1b6c9c)=>Cn(_0x5bcc86,_0x226f30+'',_0x1b6c9c);let j=class extends _0x39f691{constructor(_0x50e555=ie,_0x380f75,_0x929d64,_0x1236f7,_0x4c3df6,_0x4156d4){const _0x3cadcc=_0x394352;super(),this['_config']=_0x50e555,this['_injector']=_0x380f75,this[_0x3cadcc(0x18c)]=_0x929d64,this[_0x3cadcc(0x20b)]=_0x1236f7,this[_0x3cadcc(0x1bc)]=_0x4c3df6,this[_0x3cadcc(0x224)]=_0x4156d4;const {..._0x4df403}=_0x313090({},ie,this[_0x3cadcc(0x24c)]);this['_configService'][_0x3cadcc(0x230)](y,_0x4df403);}async[_0x394352(0x1c6)](){const _0x53187d=_0x394352,_0x3369c0=[[O],[I],[D]];this['_injector'][_0x53187d(0x280)](_0x2661f5)||_0x3369c0[_0x53187d(0x209)]([_0x2661f5,{'useClass':_0x3a6776}]),_0x3369c0[_0x53187d(0x19d)](_0x4ef320=>this[_0x53187d(0x21b)][_0x53187d(0x1c0)](_0x4ef320)),this['_injector']['get'](O),this[_0x53187d(0x21b)][_0x53187d(0x1a0)](I),this[_0x53187d(0x21b)][_0x53187d(0x1a0)](D);}};_n(j,'pluginName','MCP_UI_PLUGIN'),j=mn([_0xf476b8(_0x582431),P(0x1,_0x276bd8(_0x15e3f9)),P(0x2,_0x337f2a),P(0x3,_0x4b8e11),P(0x4,_0x26ddd0),P(0x5,_0x276bd8(_0x12b0d8))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x3e8ced=_0x4f56;(function(_0x20f4f9,_0x103044){const _0x3037a0=_0x4f56,_0x498035=_0x20f4f9();while(!![]){try{const _0x1c297e=parseInt(_0x3037a0(0x140))/0x1+-parseInt(_0x3037a0(0x1ce))/0x2+-parseInt(_0x3037a0(0x1a0))/0x3+parseInt(_0x3037a0(0x11d))/0x4+parseInt(_0x3037a0(0x18d))/0x5+parseInt(_0x3037a0(0x1b3))/0x6*(-parseInt(_0x3037a0(0x15f))/0x7)+-parseInt(_0x3037a0(0x183))/0x8*(-parseInt(_0x3037a0(0x105))/0x9);if(_0x1c297e===_0x103044)break;else _0x498035['push'](_0x498035['shift']());}catch(_0x2c11fa){_0x498035['push'](_0x498035['shift']());}}}(_0x2231,0x63e96));var Pe=Object['defineProperty'],Ee=(_0x14424a,_0x55b853,_0x31e699)=>_0x55b853 in _0x14424a?Pe(_0x14424a,_0x55b853,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31e699}):_0x14424a[_0x55b853]=_0x31e699,x=(_0x6e88bd,_0x5363bc,_0xbba938)=>Ee(_0x6e88bd,typeof _0x5363bc!='symbol'?_0x5363bc+'':_0x5363bc,_0xbba938);import{LocaleService as _0x2d1d03,Inject as _0x31c38a,Injector as _0x371f22,IConfigService as _0x4f36c9,ILocalStorageService as _0x69308d,ILogService as _0x5cfd1c,Disposable as _0x248fde,CommandType as _0x27ed62,ICommandService as _0x16f475,DependentOn as _0x5c5feb,Plugin as _0x427040,merge as _0x4d406f}from'@univerjs/core';function _0x2231(){const _0x1c73bc=['length','Success','_blank','mcpConfig.apiApplyInfo.getStarted','univer-text-gray-500','HelpIcon','url(#on-line-icon_clip0_910_349)','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','text','mcpConfig.connectionInfo','_injector','noopener\x20noreferrer','mcpConfig.connectionError.networkError','mcpStatus.maxRetriesExceeded','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','MCP\x20Connected','0\x200\x2016\x2016','配置保存失败','univer-text-gray-400','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20网络错误','close','getOwnPropertyDescriptor','mcp-config-dialog','mcpConfig.apiKey','mcpConfig.apiApplyInfo.description','1em','off-line-icon_clip0_910_343','启用身份验证','mcpStatus.connecting','网络连接错误,请检查您的网络连接','8fqWbdS','univer-flex\x20univer-items-center\x20univer-gap-3','MCP:\x20会话\x20ID\x20已被占用','MCP\x20Disconnected','close-icon','MCP\x20Retrying...','mcpConfig.configParameters','Configuration\x20Parameters:','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20Client\x20Configuration','3071805RMoCka','showConfigPanel','_dialogService','mcp-ui.config','mcpStatus.sessionOccupied','displayName','http','univer-space-y-2','_componentManager','mcpConfig.validation.invalidConfig','univer-shrink-0\x20univer-text-red-500','univer.ai','value','toString','\x20-\x20','mcpConfig.connectionStatus.connected','mcpStatus.failed','MCP\x20Unknown\x20Status','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','1698282wLoxJt','已连接','Connecting...','mcpConfig.connectionStatus.connecting','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','getItem','\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','trim','点击配置\x20MCP','_commandService','error','subscribeConfigValue$','mcpConfig.apiKeyPlaceholder','MCP_UI_PLUGIN','univer-flex\x20univer-items-center','Max\x20Retries','最大重试次数','MCP\x20连接失败','https://console.univer.plus','42GLfBsl','OnLineIcon','mcpConfig.connectionStatus.failed','pre','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_config$','Save\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','connectionStatus$','svg','univer-text-xs\x20univer-text-gray-600','univer-space-y-5','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','_localStorageService','univer-bg-green-500','__setCustomHeaders','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20已连接','off-line-icon','currentColor','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','clipPath','重启您的\x20MCP\x20客户端以使配置生效','_validateConfig','add','idSuffix','1078400Hucygo','next','OffLineIcon','mcpStatus.networkError','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','mcpConfig.title','div','mcpConfig.connectionError.unauthorized','evenodd','_loading$','mcpStatus.retrying','mcpConfig.sessionIdDescription','NETWORK_ERROR','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Notes:','univer-text-white','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','将以下配置添加到您的\x20MCP\x20客户端设置中:','M0\x200H16V16H0z','replace','on-line-icon_clip0_910_349','label','API\x20Key','MCPConfigPanel','fill','univer-text-yellow-500','map','univer-shrink-0\x20univer-text-blue-500','sessionId$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.note2','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mask','_uiPartsService','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','UniverIcon','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP:\x20超出最大重试次数','entries','MCP\x20Configuration','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20未授权','button','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','defIds','pluginName','warn','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','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','MAX_RETRIES_EXCEEDED','_registerComponent','将配置添加到您的\x20MCP\x20客户端设置文件中','attrs','mcp-ui.command.openConfigPanel','mcpConfig.validation.invalidApiKey','_handleConfigure','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_config','mcpConfig.configStep2','配置步骤:','univer-text-sm\x20univer-font-medium','MCP\x20客户端配置','univer-min-w-0\x20univer-flex-1','univer-text-red-500','univerjs-icon\x20univerjs-icon-','string','连接失败','url(#$1','MCP\x20状态未知','BUTTON','启用身份验证以获得安全连接','权限验证失败,请检查您的\x20API\x20密钥','children','span','mcpConfig.validation.apiKeyRequired','复制以下\x20JSON\x20配置','forEach','errorMessage','removeItem','MCP\x20Connecting...','assign','off','几秒钟内获取您的\x20API\x20密钥','on-line-icon','mcpConfig.connectionError.sessionOccupied','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','http://www.w3.org/2000/svg','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','HEADER_MENU','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.validation.apiKeyTooShort','bottom','重连中...','_messageService','mcpStatus.unknown','_mcpConnectionController','mcpConfig.configStepTitle','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','random','getCurrentConfig','API\x20密钥不能为空','mcpServerUrl','univer-size-2\x20univer-rounded-full','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','includes','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','UNAUTHORIZED','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configStep1','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','https://console.univer.ai','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','none','univer-bg-red-500','isValid','onStarting','_createConfigPanelComponent','MCP\x20已断开','_logService','_apiKey$','_initStatusComponent','_connectionController','path','配置保存成功','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','apiKey','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.configSaved','Error','colorChannel1','push','NONE','mcpConfig.note1','get','RETRYING','6970086TTUHMS','univer-text-xs\x20univer-text-gray-500','Configuration\x20saved\x20successfully','CONNECTED','SESSION_ID_OCCUPIED','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','FAILED','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','use','univer-text-blue-600','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','getConfig','API\x20密钥无效,请检查密钥是否正确','配置参数:','_loadStoredApiKey','保存配置','MCP:\x20Unauthorized','CheckMarkIcon','请输入您的\x20API\x20密钥','mcpStatus.connected','univer-bg-blue-500','univer-size-4','mcpConfig.description','check-mark-icon','1974280UyJIMK','defs','registerComponent','showDeveloperTools','xlink:href','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex\x20univer-items-start\x20univer-gap-3','Disconnected','_initAutoConnect','tag','show','mcpConfig.connectionStatus.disconnected','Connected','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','round','Get\x20your\x20API\x20key\x20in\x20seconds','DISCONNECTED','API\x20密钥','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','setItem','_configService','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','OTHERS','connectionError$','Bearer\x20','white','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','API\x20key\x20with\x20Bearer\x20prefix.','您的\x20API\x20密钥将在此浏览器中本地存储','Click\x20to\x20configure\x20MCP','mcpConfig.save','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','您的\x20API\x20密钥安全存储在本地存储中','stringify','register','58223NZRmWK','showStatus','mcpConfig.apiApplyInfo.title','What\x20is\x20API\x20Key?','current','配置无效','setConfig','_menuManagerService','_localeService','保存中...','mcpConfig.apiApplyInfo.univerAiLabel','连接中...','CONNECTING','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','_initConfigSync','univer_session_id:','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','has','COMMAND','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','disposeWithMe','_initializeMenus','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-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.plus','subscribe','mcpConfig.connectionError.maxRetriesExceeded','univer-text-green-500','mcp.apiKey','426076GWaXGr','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20重连中...'];_0x2231=function(){return _0x1c73bc;};return _0x2231();}import{jsxs as _0x1b559c,jsx as _0x47340d}from'react/jsx-runtime';import{MCPConnectionStatus as _0x189f6f,MCPConnectionError as _0x31675b,MCPConnectionController as _0x50e3ff,MCP_PLUGIN_CONFIG_KEY as _0x150e7c,UniverMCPPlugin as _0x1b8c93}from'@univerjs-pro/mcp';import{clsx as _0x46199e,Input as _0x284520,Button as _0x282a55,MessageType as _0x1a0d56,Tooltip as _0x5943fd}from'@univerjs/design';import{useDependency as _0x4a2426,useObservable as _0x177185,IUIPartsService as _0x19cd2c,IDialogService as _0x5e2aef,IMessageService as _0xa5d3fe,ComponentManager as _0x9514dc,connectInjector as _0x5713f0,BuiltInUIPart as _0x4a61c3,MenuItemType as _0x27a01e,RibbonStartGroup as _0x1dd860,IMenuManagerService as _0xb404cf}from'@univerjs/ui';import{BehaviorSubject as _0xd8fb9f}from'rxjs';import{useRef as _0x19d62c,createElement as _0x248d2d,forwardRef as _0x221012,useState as _0x57c4e2,useCallback as _0x547744}from'react';import{ISocketService as _0xb2c640,WebSocketService as _0x36dedd}from'@univerjs/network';function b({ref:_0xb1b18d,..._0x2386d1}){const _0x2e542f=_0x4f56,{icon:_0x108faf,id:_0x3397b8,className:_0x33021d,extend:_0x14f176,..._0x48c0cd}=_0x2386d1,_0x2241c9=(_0x2e542f(0xba)+_0x3397b8+'\x20'+(_0x33021d||''))['trim'](),_0x2c2c83=_0x19d62c('_'+We());return ae(_0x108faf,''+_0x3397b8,{'defIds':_0x108faf[_0x2e542f(0xa6)],'idSuffix':_0x2c2c83[_0x2e542f(0x144)]},{'ref':_0xb1b18d,'className':_0x2241c9,..._0x48c0cd},_0x14f176);}function ae(_0x505d5d,_0x3ed0d7,_0x2eb6e1,_0x131712,_0x315491){const _0x1d492e=_0x4f56;return _0x248d2d(_0x505d5d[_0x1d492e(0x126)],{'key':_0x3ed0d7,...Ye(_0x505d5d,_0x2eb6e1,_0x315491),..._0x131712},(Ze(_0x505d5d,_0x2eb6e1)[_0x1d492e(0xc2)]||[])[_0x1d492e(0x93)]((_0x1e4114,_0x120c26)=>ae(_0x1e4114,_0x3ed0d7+'-'+_0x505d5d[_0x1d492e(0x126)]+'-'+_0x120c26,_0x2eb6e1,void 0x0,_0x315491)));}function Ye(_0x2de42e,_0x3cdc9d,_0x20415e){const _0x255b5b=_0x4f56,_0x43a185={..._0x2de42e[_0x255b5b(0xae)]};_0x20415e!=null&&_0x20415e[_0x255b5b(0xff)]&&_0x43a185[_0x255b5b(0x91)]===_0x255b5b(0xff)&&(_0x43a185[_0x255b5b(0x91)]=_0x20415e[_0x255b5b(0xff)]),_0x2de42e[_0x255b5b(0x126)]==='mask'&&_0x43a185['id']&&(_0x43a185['id']=_0x43a185['id']+_0x3cdc9d[_0x255b5b(0x1cd)]),Object[_0x255b5b(0x9f)](_0x43a185)[_0x255b5b(0xc6)](([_0x2779f0,_0x3240ac])=>{const _0x7bc8d4=_0x255b5b;_0x2779f0===_0x7bc8d4(0x99)&&typeof _0x3240ac==_0x7bc8d4(0xbb)&&(_0x43a185[_0x2779f0]=_0x3240ac[_0x7bc8d4(0x8c)](/url\(#(.*)\)/,_0x7bc8d4(0xbd)+_0x3cdc9d[_0x7bc8d4(0x1cd)]+')'));});const {defIds:_0x5e5efe}=_0x3cdc9d;return!_0x5e5efe||_0x5e5efe[_0x255b5b(0x162)]===0x0||(_0x2de42e['tag']===_0x255b5b(0x10d)&&_0x43a185[_0x255b5b(0x121)]&&(_0x43a185['xlink:href']=_0x43a185[_0x255b5b(0x121)]+_0x3cdc9d['idSuffix']),Object[_0x255b5b(0x9f)](_0x43a185)[_0x255b5b(0xc6)](([_0x38ac7f,_0x792737])=>{const _0x2c8235=_0x255b5b;typeof _0x792737==_0x2c8235(0xbb)&&(_0x43a185[_0x38ac7f]=_0x792737[_0x2c8235(0x8c)](/url\(#(.*)\)/,_0x2c8235(0xbd)+_0x3cdc9d[_0x2c8235(0x1cd)]+')'));})),_0x43a185;}function Ze(_0x10d5ab,_0x4b9132){const _0x18988f=_0x4f56;var _0x3447a1;const {defIds:_0x154a7c}=_0x4b9132;return!_0x154a7c||_0x154a7c['length']===0x0?_0x10d5ab:_0x10d5ab[_0x18988f(0x126)]===_0x18988f(0x11e)&&((_0x3447a1=_0x10d5ab[_0x18988f(0xc2)])!=null&&_0x3447a1[_0x18988f(0x162)])?{..._0x10d5ab,'children':_0x10d5ab[_0x18988f(0xc2)][_0x18988f(0x93)](_0x35593a=>typeof _0x35593a[_0x18988f(0xae)]['id']=='string'&&_0x154a7c&&_0x154a7c[_0x18988f(0xe3)](_0x35593a[_0x18988f(0xae)]['id'])?{..._0x35593a,'attrs':{..._0x35593a['attrs'],'id':_0x35593a['attrs']['id']+_0x4b9132[_0x18988f(0x1cd)]}}:_0x35593a)}:_0x10d5ab;}function We(){const _0x136fd5=_0x4f56;return Math[_0x136fd5(0xdc)]()[_0x136fd5(0x19a)](0x24)['substring'](0x2,0x8);}b[_0x3e8ced(0x192)]=_0x3e8ced(0x9c);const qe={'tag':'svg','attrs':{'xmlns':_0x3e8ced(0xd0),'fill':_0x3e8ced(0xee),'viewBox':_0x3e8ced(0x174),'width':'1em','height':_0x3e8ced(0x17e)},'children':[{'tag':_0x3e8ced(0xf8),'attrs':{'fill':_0x3e8ced(0x1c7),'d':_0x3e8ced(0x155),'fillRule':_0x3e8ced(0x81),'clipRule':_0x3e8ced(0x81)}}]},le=_0x221012(function(_0x4cd0dc,_0x49a2e6){const _0x549308=_0x3e8ced;return _0x248d2d(b,Object['assign']({},_0x4cd0dc,{'id':_0x549308(0x11c),'ref':_0x49a2e6,'icon':qe}));});le[_0x3e8ced(0x192)]=_0x3e8ced(0x116);const Xe={'tag':_0x3e8ced(0x1bc),'attrs':{'xmlns':_0x3e8ced(0xd0),'fill':_0x3e8ced(0xee),'viewBox':_0x3e8ced(0x174),'width':_0x3e8ced(0x17e),'height':'1em'},'children':[{'tag':_0x3e8ced(0xf8),'attrs':{'fill':_0x3e8ced(0x1c7),'d':_0x3e8ced(0xdb)}}]},ue=_0x221012(function(_0x1c81dc,_0x5d03ac){const _0x17b24d=_0x3e8ced;return _0x248d2d(b,Object[_0x17b24d(0xca)]({},_0x1c81dc,{'id':_0x17b24d(0x187),'ref':_0x5d03ac,'icon':Xe}));});ue['displayName']='CloseIcon';const Je={'tag':_0x3e8ced(0x1bc),'attrs':{'xmlns':_0x3e8ced(0xd0),'fill':_0x3e8ced(0xee),'viewBox':_0x3e8ced(0x174),'width':_0x3e8ced(0x17e),'height':_0x3e8ced(0x17e)},'children':[{'tag':_0x3e8ced(0xf8),'attrs':{'fill':_0x3e8ced(0x1c7),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x3e8ced(0xf8),'attrs':{'fill':'currentColor','d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x3e8ced(0xf8),'attrs':{'fill':_0x3e8ced(0x1c7),'d':_0x3e8ced(0x1c8),'fillRule':_0x3e8ced(0x81),'clipRule':_0x3e8ced(0x81)}}]},ve=_0x221012(function(_0x2ff601,_0x179bcc){return _0x248d2d(b,Object['assign']({},_0x2ff601,{'id':'help-icon','ref':_0x179bcc,'icon':Je}));});ve['displayName']=_0x3e8ced(0x167);const Qe={'tag':_0x3e8ced(0x1bc),'attrs':{'xmlns':_0x3e8ced(0xd0),'fill':_0x3e8ced(0xee),'viewBox':_0x3e8ced(0x174),'width':_0x3e8ced(0x17e),'height':_0x3e8ced(0x17e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3e8ced(0xf8),'attrs':{'stroke':_0x3e8ced(0x1c7),'d':_0x3e8ced(0xaa),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3e8ced(0x11e),'attrs':{},'children':[{'tag':_0x3e8ced(0x1c9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3e8ced(0xf8),'attrs':{'fill':_0x3e8ced(0x136),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3e8ced(0x17f)]},de=_0x221012(function(_0x3e3a56,_0x858b57){const _0xbfc5b3=_0x3e8ced;return _0x248d2d(b,Object[_0xbfc5b3(0xca)]({},_0x3e3a56,{'id':_0xbfc5b3(0x1c6),'ref':_0x858b57,'icon':Qe}));});de['displayName']=_0x3e8ced(0x1d0);const en={'tag':'svg','attrs':{'xmlns':_0x3e8ced(0xd0),'fill':_0x3e8ced(0xee),'viewBox':'0\x200\x2017\x2016','width':_0x3e8ced(0x17e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3e8ced(0x168)},'children':[{'tag':'path','attrs':{'stroke':_0x3e8ced(0x1c7),'d':_0x3e8ced(0x137),'strokeLinecap':_0x3e8ced(0x12b),'strokeLinejoin':_0x3e8ced(0x12b),'strokeWidth':1.2}}]},{'tag':_0x3e8ced(0x11e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3e8ced(0x8d)},'children':[{'tag':_0x3e8ced(0xf8),'attrs':{'fill':_0x3e8ced(0x136),'d':_0x3e8ced(0x8b),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3e8ced(0x8d)]},ge=_0x221012(function(_0x240c2b,_0x4a4537){const _0xf11bb3=_0x3e8ced;return _0x248d2d(b,Object[_0xf11bb3(0xca)]({},_0x240c2b,{'id':_0xf11bb3(0xcd),'ref':_0x4a4537,'icon':en}));});ge[_0x3e8ced(0x192)]=_0x3e8ced(0x1b4);function nn(_0x4af731){const _0x57eed8=_0x3e8ced;var _0x543c7b,_0x4bf5f1;const {mcpCoreConfig:_0x7acd92,onSave:_0x5e5d3d,loading:_0x1ebcbf=!0x1,config:_0x3da499,connectionStatus$:_0x5e3a73,connectionError$:_0x3638d5,currentApiKey$:_0x76dc82,currentSessionId$:_0x4710e9}=_0x4af731,_0x205f34=_0x4a2426(_0x2d1d03),_0x50eeb6=_0x177185(_0x5e3a73,_0x189f6f[_0x57eed8(0x12d)]),_0x9234ba=_0x177185(_0x3638d5,_0x31675b[_0x57eed8(0x101)]),_0x16a5a6=_0x177185(_0x4710e9,''),_0x4e3718=_0x177185(_0x76dc82,''),[_0x2a961b,_0x13d0c5]=_0x57c4e2(_0x4e3718||''),_0x41782c=!0x0,_0x352d3a=_0x3da499['showDeveloperTools']&&_0x7acd92[_0x57eed8(0xdf)]&&(_0x7acd92[_0x57eed8(0xdf)][_0x57eed8(0xe3)](_0x57eed8(0x15a))||_0x7acd92[_0x57eed8(0xdf)]['includes']('univer.ai')),_0x1b7059=(_0x543c7b=_0x7acd92['mcpServerUrl'])==null?void 0x0:_0x543c7b[_0x57eed8(0xe3)]('univer.plus'),_0x4c74d9=(_0x4bf5f1=_0x7acd92[_0x57eed8(0xdf)])==null?void 0x0:_0x4bf5f1[_0x57eed8(0xe3)](_0x57eed8(0x198)),_0x5c06d0=_0x1b7059?_0x57eed8(0x1b2):_0x57eed8(0xeb),_0x5a22df=_0x3da499[_0x57eed8(0x120)]&&(_0x1b7059||_0x4c74d9),[_0x10d810,_0xe8449d]=_0x57c4e2(!_0x2a961b[_0x57eed8(0x1a7)]()),_0x33e2f5=(_0x5f2e37,_0x40208e)=>{const _0x455430=_0x57eed8;if(_0x40208e===_0x31675b[_0x455430(0xe6)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5f2e37){case _0x189f6f[_0x455430(0x108)]:return _0x455430(0x1c4);case _0x189f6f['CONNECTING']:case _0x189f6f['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x189f6f[_0x455430(0x10b)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x336ead=(_0x207f50,_0x3e4e9c)=>{const _0x3deaa5=_0x57eed8;if(_0x3e4e9c===_0x31675b['UNAUTHORIZED'])return _0x3deaa5(0xef);switch(_0x207f50){case _0x189f6f[_0x3deaa5(0x108)]:return _0x3deaa5(0x1c2);case _0x189f6f[_0x3deaa5(0x14c)]:case _0x189f6f['RETRYING']:return _0x3deaa5(0x119);case _0x189f6f[_0x3deaa5(0x10b)]:return _0x3deaa5(0xef);default:return'univer-bg-gray-500';}},_0x312b93=_0x2b9d92=>{const _0x270b7b=_0x57eed8;switch(_0x2b9d92){case _0x189f6f['CONNECTED']:return _0x205f34['t'](_0x270b7b(0x19c));case _0x189f6f[_0x270b7b(0x14c)]:return _0x205f34['t'](_0x270b7b(0x1a3));case _0x189f6f['FAILED']:return _0x205f34['t'](_0x270b7b(0x1b5));case _0x189f6f[_0x270b7b(0x104)]:return _0x205f34['t']('mcpConfig.connectionStatus.retrying');default:return _0x205f34['t'](_0x270b7b(0x128));}},_0x3fa86e=_0x3c1af2=>{const _0x1cc81c=_0x57eed8;switch(_0x3c1af2){case _0x31675b['UNAUTHORIZED']:return _0x205f34['t'](_0x1cc81c(0x80));case _0x31675b[_0x1cc81c(0x109)]:return _0x205f34['t'](_0x1cc81c(0xce));case _0x31675b['NETWORK_ERROR']:return _0x205f34['t'](_0x1cc81c(0x170));case _0x31675b['MAX_RETRIES_EXCEEDED']:return _0x205f34['t'](_0x1cc81c(0x15c));default:return'';}},_0x48e4b9=_0x547744(()=>{const _0x88dde3=_0x57eed8,_0x243381={..._0x7acd92,'apiKey':_0x2a961b[_0x88dde3(0x1a7)](),'enableAuth':_0x41782c};_0x5e5d3d(_0x243381);},[_0x7acd92,_0x2a961b,_0x41782c,_0x5e5d3d]),_0x16de2a=_0x2a961b[_0x57eed8(0x1a7)]()[_0x57eed8(0x162)]>0x0;return _0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x13c),'children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0xe1),'children':_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x184),'children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0xe5),'children':_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0x88),'children':'⚙'})}),_0x47340d(_0x57eed8(0x7f),{'children':_0x47340d('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x205f34['t'](_0x57eed8(0x11b))})})]})}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x159),'children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x46199e(_0x57eed8(0x12f),_0x33e2f5(_0x50eeb6,_0x9234ba)),'children':_0x1b559c(_0x57eed8(0x7f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x46199e(_0x57eed8(0xe0),_0x336ead(_0x50eeb6,_0x9234ba))}),_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0xb6),'children':_0x312b93(_0x50eeb6)})]})}),_0x9234ba!==_0x31675b[_0x57eed8(0x101)]&&(_0x50eeb6===_0x189f6f[_0x57eed8(0x10b)]||_0x9234ba===_0x31675b[_0x57eed8(0xe6)])&&_0x47340d('div',{'className':_0x57eed8(0x132),'children':_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x160),'children':[_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0x197),'children':'⚠️'}),_0x47340d('p',{'className':_0x57eed8(0xcf),'children':_0x3fa86e(_0x9234ba)})]})})]}),_0x47340d('div',{'className':_0x57eed8(0x96),'children':_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x1be),'children':[_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x194),'children':[_0x1b559c(_0x57eed8(0x8e),{'className':_0x57eed8(0x1a4),'children':[_0x47340d(_0x57eed8(0xc3),{'children':'🔑'}),'\x20',_0x205f34['t'](_0x57eed8(0x17c)),_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0xb9),'children':'*'}),_0x352d3a&&_0x47340d('a',{'className':_0x57eed8(0x158),'title':_0x205f34['t'](_0x57eed8(0x142)),'role':_0x57eed8(0xa4),'onClick':()=>_0xe8449d(!0x0),'children':_0x47340d(ve,{})})]}),_0x47340d(_0x284520,{'type':_0x57eed8(0x16c),'placeholder':_0x205f34['t'](_0x57eed8(0x1ac)),'value':_0x2a961b,'disabled':_0x1ebcbf,'autoComplete':_0x57eed8(0xcb),'onChange':_0x13d0c5}),_0x47340d('p',{'className':_0x57eed8(0x106),'children':_0x205f34['t']('mcpConfig.apiKeyHint')})]}),_0x352d3a&&_0x10d810&&_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x14d),'children':[_0x47340d('a',{'className':_0x57eed8(0x9b),'role':_0x57eed8(0xa4),'onClick':()=>_0xe8449d(!0x1),'children':_0x47340d(ue,{'className':_0x57eed8(0x11a)})}),_0x1b559c('div',{'className':_0x57eed8(0xb2),'children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0x16a),'children':_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0x10e),'children':'🚀'})}),_0x1b559c('div',{'className':'univer-flex-1','children':[_0x47340d('h4',{'className':_0x57eed8(0x12a),'children':_0x205f34['t'](_0x57eed8(0x142))}),_0x47340d('p',{'className':_0x57eed8(0xec),'children':_0x205f34['t'](_0x57eed8(0x17d))}),_0x47340d('div',{'className':_0x57eed8(0x169),'children':_0x5a22df&&_0x1b559c('a',{'className':_0x57eed8(0x172),'href':_0x5c06d0,'target':_0x57eed8(0x164),'rel':_0x57eed8(0x16f),'children':[_0x47340d(_0x57eed8(0xc3),{'children':'🤖'}),_0x205f34['t'](_0x57eed8(0x14a)),_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0x176),'children':'↗'})]})}),_0x1b559c(_0x57eed8(0x7f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x205f34['t'](_0x57eed8(0x165))]})]})]})]}),_0x3da499[_0x57eed8(0x120)]&&_0x1b559c(_0x57eed8(0x7f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1b559c('h4',{'className':_0x57eed8(0xd1),'children':[_0x47340d(_0x57eed8(0xc3),{'children':'🔗'}),'\x20',_0x205f34['t'](_0x57eed8(0x16d))]}),_0x1b559c(_0x57eed8(0x7f),{'className':'univer-space-y-4','children':[_0x1b559c(_0x57eed8(0x7f),{'className':'univer-space-y-3','children':[_0x47340d('p',{'className':_0x57eed8(0x1bd),'children':_0x205f34['t']('mcpConfig.configInstructions')}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x194),'children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0xfc),'children':_0x205f34['t'](_0x57eed8(0xda))}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x150),'children':[_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0xe7),'children':[_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0x10a),'children':'1'}),_0x205f34['t'](_0x57eed8(0xe9))]}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0xe7),'children':[_0x47340d(_0x57eed8(0xc3),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x205f34['t'](_0x57eed8(0xb4))]}),_0x1b559c('div',{'className':_0x57eed8(0xe7),'children':[_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0x10a),'children':'3'}),_0x205f34['t']('mcpConfig.configStep3')]})]})]})]}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x194),'children':[_0x47340d('div',{'className':_0x57eed8(0xfc),'children':_0x57eed8(0xa0)}),_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0x122),'children':_0x47340d(_0x57eed8(0x1b6),{'className':_0x57eed8(0x10c),'children':JSON[_0x57eed8(0x13e)]({'mcpServers':{'univer':{'url':_0x57eed8(0x18b)+(_0x16a5a6||'<SESSION_ID>'),'type':_0x57eed8(0x193),'headers':{'Authorization':_0x57eed8(0x135)+(_0x2a961b||'<API_KEY>')}}}},null,0x2)})})]}),_0x1b559c(_0x57eed8(0x7f),{'className':'univer-space-y-3','children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0xfc),'children':_0x205f34['t'](_0x57eed8(0x189))}),_0x1b559c('div',{'className':'univer-space-y-2','children':[_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x123),'children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0x16b)}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0xb8),'children':[_0x47340d(_0x57eed8(0x7f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x57eed8(0x14f)}),_0x47340d(_0x57eed8(0x7f),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x205f34['t'](_0x57eed8(0x84))})]})]}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x123),'children':[_0x47340d('div',{'className':_0x57eed8(0x16b)}),_0x1b559c('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x47340d(_0x57eed8(0x7f),{'className':_0x57eed8(0xe4),'children':'Authorization:'}),_0x47340d('div',{'className':_0x57eed8(0x106),'children':_0x205f34['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x47340d(_0x282a55,{'onClick':_0x48e4b9,'disabled':!_0x16de2a||_0x1ebcbf,'className':_0x57eed8(0x1d2),'children':_0x1ebcbf?_0x1b559c(_0x57eed8(0xc3),{'className':_0x57eed8(0xe7),'children':[_0x47340d('span',{'children':'⟲'}),_0x205f34['t']('mcpConfig.saving')]}):_0x1b559c(_0x57eed8(0xc3),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x47340d(le,{}),_0x205f34['t'](_0x57eed8(0x13b))]})}),_0x47340d('div',{'className':_0x57eed8(0x1ba),'children':_0x1b559c(_0x57eed8(0x7f),{'className':'univer-flex\x20univer-gap-3','children':[_0x47340d(_0x57eed8(0xc3),{'className':_0x57eed8(0x94),'children':'💡'}),_0x1b559c(_0x57eed8(0x7f),{'className':_0x57eed8(0x152),'children':[_0x47340d('div',{'className':'univer-font-medium','children':_0x57eed8(0x87)}),_0x1b559c(_0x57eed8(0x7f),{'children':['•',_0x205f34['t'](_0x57eed8(0x102))]}),_0x1b559c(_0x57eed8(0x7f),{'children':['•',_0x205f34['t'](_0x57eed8(0x97))]})]})]})})]})})]});}const y=_0x3e8ced(0x190),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3e8ced(0x17a)],tn=(_0x361f1f,_0x55b71f,_0x4c7300,_0x484183)=>{for(var _0x3d706a=_0x484183>0x1?void 0x0:_0x484183?rn(_0x55b71f,_0x4c7300):_0x55b71f,_0x37cc60=_0x361f1f['length']-0x1,_0x1598e1;_0x37cc60>=0x0;_0x37cc60--)(_0x1598e1=_0x361f1f[_0x37cc60])&&(_0x3d706a=_0x1598e1(_0x3d706a)||_0x3d706a);return _0x3d706a;},d=(_0x27862a,_0x156cf1)=>(_0x307963,_0x2011e1)=>_0x156cf1(_0x307963,_0x2011e1,_0x27862a);const U=_0x3e8ced(0x15e),L=_0x3e8ced(0x17b);let I=class extends _0x248fde{constructor(_0x364707,_0x447a99,_0x5e6c69,_0x155b1b,_0x35ad2a,_0x5d5075,_0x86a849,_0x12862d,_0x287e2f,_0x2af514){const _0x522320=_0x3e8ced;super(),x(this,_0x522320(0x82),new _0xd8fb9f(!0x1)),x(this,'_mcpCoreConfig$',new _0xd8fb9f({})),x(this,'_config$',new _0xd8fb9f({})),x(this,_0x522320(0xf5),new _0xd8fb9f('')),x(this,'_handleConfigSave',async _0x5206b1=>{const _0xd6b148=_0x522320;var _0x14c2b4,_0x49354c;this[_0xd6b148(0x82)][_0xd6b148(0x1cf)](!0x0);try{const _0x1689a4=await this[_0xd6b148(0x1cb)](_0x5206b1);if(!_0x1689a4[_0xd6b148(0xf0)]){this['_messageService']['show']({'type':_0x1a0d56[_0xd6b148(0xfe)],'content':_0x1689a4[_0xd6b148(0xc7)]||this[_0xd6b148(0x148)]['t'](_0xd6b148(0x196))});return;}_0x5206b1[_0xd6b148(0xfb)]?await this[_0xd6b148(0x1c1)][_0xd6b148(0x130)](U,_0x5206b1[_0xd6b148(0xfb)][_0xd6b148(0x1a7)]()):await this['_localStorageService'][_0xd6b148(0xc8)](U),this['_apiKey$'][_0xd6b148(0x1cf)](((_0x14c2b4=_0x5206b1['apiKey'])==null?void 0x0:_0x14c2b4[_0xd6b148(0x1a7)]())||''),this[_0xd6b148(0xd9)][_0xd6b148(0x1c3)]({'Authorization':_0xd6b148(0x135)+((_0x49354c=_0x5206b1['apiKey'])==null?void 0x0:_0x49354c[_0xd6b148(0x1a7)]())}),this[_0xd6b148(0xd7)][_0xd6b148(0x127)]({'type':_0x1a0d56[_0xd6b148(0x163)],'content':this[_0xd6b148(0x148)]['t'](_0xd6b148(0xfd))}),setTimeout(()=>{const _0x351b23=_0xd6b148;this[_0x351b23(0x18f)]['close'](L);},0x320);}catch(_0x16d463){this[_0xd6b148(0xf4)][_0xd6b148(0x1aa)](_0xd6b148(0xed),_0x16d463),this['_messageService']['show']({'type':_0x1a0d56[_0xd6b148(0xfe)],'content':this[_0xd6b148(0x148)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0xd6b148(0x1cf)](!0x1);}}),(this[_0x522320(0x16e)]=_0x364707,this['_uiPartsService']=_0x447a99,this['_configService']=_0x5e6c69,this[_0x522320(0x1c1)]=_0x155b1b,this[_0x522320(0x18f)]=_0x35ad2a,this[_0x522320(0xd7)]=_0x5d5075,this[_0x522320(0x195)]=_0x86a849,this[_0x522320(0x148)]=_0x12862d,this['_logService']=_0x287e2f,this[_0x522320(0xd9)]=_0x2af514,this[_0x522320(0x14e)](),this['_loadStoredApiKey'](),this['_registerComponent']());}['showConfigPanel'](){const _0x5832bb=_0x3e8ced,_0x5630b9=this[_0x5832bb(0x131)]['getConfig'](y);_0x5630b9!=null&&_0x5630b9[_0x5832bb(0x120)]&&this[_0x5832bb(0x18f)]['open']({'id':L,'title':{'title':this[_0x5832bb(0x148)]['t'](_0x5832bb(0x7e))},'children':{'label':_0x5832bb(0x90)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1b7fb2=_0x5832bb;this['_dialogService'][_0x1b7fb2(0x179)](L);}});}[_0x3e8ced(0xdd)](){const _0xbec4fd=_0x3e8ced;return this[_0xbec4fd(0x151)][_0xbec4fd(0x199)];}[_0x3e8ced(0xac)](){const _0x2bed29=_0x3e8ced;this[_0x2bed29(0x156)](this[_0x2bed29(0x195)][_0x2bed29(0x13f)](_0x2bed29(0x90),this[_0x2bed29(0xf2)]()));}['_createConfigPanelComponent'](){return _0x5713f0(()=>{const _0x3738be=_0x4f56;var _0x15fde7,_0x2fb8a4,_0x24fa5b;return _0x47340d(nn,{'config':this[_0x3738be(0x1b8)][_0x3738be(0x199)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x3738be(0x199)],'currentApiKey$':this[_0x3738be(0xf5)],'onSave':this['_handleConfigSave'],'loading':this[_0x3738be(0x82)][_0x3738be(0x199)],'connectionStatus$':(_0x15fde7=this['_mcpConnectionController'])==null?void 0x0:_0x15fde7[_0x3738be(0x1bb)],'connectionError$':(_0x2fb8a4=this[_0x3738be(0xd9)])==null?void 0x0:_0x2fb8a4[_0x3738be(0x134)],'currentSessionId$':(_0x24fa5b=this[_0x3738be(0xd9)])==null?void 0x0:_0x24fa5b[_0x3738be(0x95)]});},this['_injector']);}[_0x3e8ced(0x14e)](){const _0x5c3b8f=_0x3e8ced;this[_0x5c3b8f(0x156)](this[_0x5c3b8f(0x131)][_0x5c3b8f(0x1ab)](_0x150e7c)[_0x5c3b8f(0x15b)](_0x28d1a4=>{const _0x20f098=_0x5c3b8f;this[_0x20f098(0x151)][_0x20f098(0x1cf)](_0x28d1a4||{});}));const _0x3a8b45=this[_0x5c3b8f(0x131)][_0x5c3b8f(0x110)](_0x150e7c);this[_0x5c3b8f(0x151)][_0x5c3b8f(0x1cf)](_0x3a8b45||{}),this[_0x5c3b8f(0x156)](this[_0x5c3b8f(0x131)][_0x5c3b8f(0x1ab)](y)[_0x5c3b8f(0x15b)](_0x14a76b=>{const _0x1f47fb=_0x5c3b8f;this[_0x1f47fb(0x1b8)][_0x1f47fb(0x1cf)](_0x14a76b||{});}));const _0x4955b5=this[_0x5c3b8f(0x131)][_0x5c3b8f(0x110)](y);this[_0x5c3b8f(0x1b8)][_0x5c3b8f(0x1cf)](_0x4955b5||{});}async[_0x3e8ced(0x113)](){const _0xf26e59=_0x3e8ced,_0x4d740b=this[_0xf26e59(0x131)]['getConfig'](y);if(!(_0x4d740b!=null&&_0x4d740b['showDeveloperTools']))return;const _0x3d3cdf=await this[_0xf26e59(0x1c1)][_0xf26e59(0x1a5)](U);_0x3d3cdf&&(this[_0xf26e59(0xd9)]['__setCustomHeaders']({'Authorization':_0xf26e59(0x135)+_0x3d3cdf}),this[_0xf26e59(0xf5)]['next'](_0x3d3cdf));}async[_0x3e8ced(0x1cb)](_0x3a78f6){const _0x5b411e=_0x3e8ced;if(!_0x3a78f6[_0x5b411e(0xfb)]||_0x3a78f6[_0x5b411e(0xfb)][_0x5b411e(0x1a7)]()[_0x5b411e(0x162)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x5b411e(0x148)]['t'](_0x5b411e(0xc4))};if(_0x3a78f6[_0x5b411e(0xfb)]['trim']()[_0x5b411e(0x162)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5b411e(0x148)]['t'](_0x5b411e(0xd4))};try{const _0x19395e=await this[_0x5b411e(0x16e)]['get'](_0x50e3ff)['validateApiKey'](_0x3a78f6[_0x5b411e(0xfb)][_0x5b411e(0x1a7)]());return _0x19395e[_0x5b411e(0xf0)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x19395e[_0x5b411e(0x1aa)]||this[_0x5b411e(0x148)]['t'](_0x5b411e(0xb0))};}catch(_0x2eefab){return console[_0x5b411e(0xa8)](_0x5b411e(0x98),_0x2eefab),{'isValid':!0x0};}}};I=tn([d(0x0,_0x31c38a(_0x371f22)),d(0x1,_0x19cd2c),d(0x2,_0x4f36c9),d(0x3,_0x69308d),d(0x4,_0x5e2aef),d(0x5,_0xa5d3fe),d(0x6,_0x31c38a(_0x9514dc)),d(0x7,_0x31c38a(_0x2d1d03)),d(0x8,_0x5cfd1c),d(0x9,_0x31c38a(_0x50e3ff))],I);const V={'id':_0x3e8ced(0xaf),'type':_0x27ed62[_0x3e8ced(0x154)],'handler':async(_0x1c7551,_0x3b303b)=>(_0x1c7551[_0x3e8ced(0x103)](I)[_0x3e8ced(0x18e)](),!0x0)};function _0x4f56(_0x3ddfbe,_0x18626b){_0x3ddfbe=_0x3ddfbe-0x7e;const _0x2231c8=_0x2231();let _0x4f568b=_0x2231c8[_0x3ddfbe];return _0x4f568b;}function pe(_0x13bbd2,_0x515cfb){const _0xcd5ff9=_0x3e8ced;switch(_0x13bbd2){case _0x189f6f[_0xcd5ff9(0x12d)]:return'mcpStatus.disconnected';case _0x189f6f[_0xcd5ff9(0x14c)]:return _0xcd5ff9(0x181);case _0x189f6f[_0xcd5ff9(0x108)]:return _0xcd5ff9(0x118);case _0x189f6f[_0xcd5ff9(0x10b)]:switch(_0x515cfb){case _0x31675b[_0xcd5ff9(0xe6)]:return'mcpStatus.unauthorized';case _0x31675b['SESSION_ID_OCCUPIED']:return _0xcd5ff9(0x191);case _0x31675b[_0xcd5ff9(0x85)]:return _0xcd5ff9(0x1d1);case _0x31675b[_0xcd5ff9(0xab)]:return _0xcd5ff9(0x171);default:return _0xcd5ff9(0x19d);}case _0x189f6f['RETRYING']:return _0xcd5ff9(0x83);default:return _0xcd5ff9(0xd8);}}function on(_0x472a8d,_0x3068fd,_0x116836,_0x77d822=!0x0){const _0x31ff2a=_0x3e8ced,_0x2df8d9=pe(_0x472a8d,_0x3068fd),_0x22b332=_0x116836['t'](_0x2df8d9);return _0x77d822?_0x472a8d===_0x189f6f['DISCONNECTED']&&_0x3068fd===_0x31675b[_0x31ff2a(0xe6)]?_0x22b332+_0x31ff2a(0x19b)+_0x116836['t']('mcpStatus.clickToConfigure'):_0x472a8d===_0x189f6f[_0x31ff2a(0x108)]?''+_0x22b332:_0x472a8d===_0x189f6f[_0x31ff2a(0x12d)]||_0x472a8d===_0x189f6f[_0x31ff2a(0x10b)]?_0x22b332+_0x31ff2a(0x19b)+_0x116836['t']('mcpStatus.clickToConnect'):_0x22b332:_0x22b332;}function sn(_0x1fa9e3){const _0x737cb8=_0x3e8ced;switch(_0x1fa9e3){case _0x189f6f[_0x737cb8(0x108)]:return _0x737cb8(0x15d);case _0x189f6f['CONNECTING']:case _0x189f6f[_0x737cb8(0x104)]:return _0x737cb8(0x92);case _0x189f6f[_0x737cb8(0x10b)]:case _0x189f6f[_0x737cb8(0x12d)]:return _0x737cb8(0xb9);default:return _0x737cb8(0x166);}}function cn(_0xf6751c){const _0x28a2bf=_0x3e8ced,{status$:_0x5a3773,error$:_0x435af9,onConfigure:_0x39271d,showClickable:_0x2e2f7b=!0x0}=_0xf6751c,_0x5ebe03=_0x177185(_0x5a3773,_0x189f6f[_0x28a2bf(0x12d)]),_0xc798d1=_0x177185(_0x435af9,_0x31675b['NONE']),_0x30e040=_0x4a2426(_0x2d1d03),_0x2ae178=_0x5ebe03===_0x189f6f[_0x28a2bf(0x108)];_0x5ebe03===_0x189f6f[_0x28a2bf(0x14c)]||_0x189f6f['RETRYING'];const _0x5c2853=_0x30e040['t'](pe(_0x5ebe03,_0xc798d1)),_0x30ff80=on(_0x5ebe03,_0xc798d1,_0x30e040,_0x2e2f7b),_0x5a8d01=sn(_0x5ebe03),_0x4ce653=_0x2ae178?_0x47340d(ge,{}):_0x47340d(de,{}),_0x3031e7=_0x547744(()=>{_0x2e2f7b&&_0x39271d&&_0x39271d();},[_0x2e2f7b,_0x39271d]);function _0x3e0457(){const _0x2964b5=_0x28a2bf;return _0x1b559c(_0x2964b5(0x7f),{'className':_0x46199e(_0x2964b5(0x1ae),_0x2e2f7b&&_0x39271d&&_0x2964b5(0x1a6)),'role':'button','onClick':_0x2e2f7b&&_0x39271d?_0x3031e7:void 0x0,'children':[_0x47340d(_0x2964b5(0x7f),{'className':_0x46199e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x5a8d01),'children':_0x4ce653}),_0x47340d(_0x2964b5(0x7f),{'className':_0x2964b5(0x19f),'children':_0x5c2853})]});}return _0x47340d(_0x5943fd,{'title':_0x30ff80,'placement':_0x28a2bf(0xd5),'children':_0x3e0457()});}var an=Object[_0x3e8ced(0x17a)],ln=(_0x7e2026,_0x597d7,_0x1db131,_0x5cc4b6)=>{const _0x40bb46=_0x3e8ced;for(var _0x6ca2ed=_0x5cc4b6>0x1?void 0x0:_0x5cc4b6?an(_0x597d7,_0x1db131):_0x597d7,_0xd9e46c=_0x7e2026[_0x40bb46(0x162)]-0x1,_0x3a6d5e;_0xd9e46c>=0x0;_0xd9e46c--)(_0x3a6d5e=_0x7e2026[_0xd9e46c])&&(_0x6ca2ed=_0x3a6d5e(_0x6ca2ed)||_0x6ca2ed);return _0x6ca2ed;},M=(_0x3d23ab,_0x17a2dd)=>(_0x109f3c,_0x5db1e4)=>_0x17a2dd(_0x109f3c,_0x5db1e4,_0x3d23ab);let O=class extends _0x248fde{constructor(_0x1a265b,_0x4c3364,_0x1a8f8c,_0x45b506){const _0x3c293e=_0x3e8ced;super(),this[_0x3c293e(0x16e)]=_0x1a265b,this[_0x3c293e(0xf7)]=_0x4c3364,this[_0x3c293e(0x9a)]=_0x1a8f8c,this['_configService']=_0x45b506,this[_0x3c293e(0x125)](),this['_initStatusComponent']();}[_0x3e8ced(0x125)](){const _0x35949a=_0x3e8ced,_0x561bf7=this[_0x35949a(0x131)][_0x35949a(0x110)](y);_0x561bf7!=null&&_0x561bf7['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x3e8ced(0xf6)](){const _0x20075f=_0x3e8ced,_0x1b6c28=this[_0x20075f(0x131)][_0x20075f(0x110)](y);(_0x1b6c28==null?void 0x0:_0x1b6c28[_0x20075f(0x141)])!==!0x1&&this[_0x20075f(0x156)](this[_0x20075f(0x9a)][_0x20075f(0x11f)](_0x4a61c3[_0x20075f(0xd2)],()=>{const _0x15386a=_0x20075f;var _0x58fc04;return _0x5713f0(un({'status$':this[_0x15386a(0xf7)][_0x15386a(0x1bb)],'error$':this[_0x15386a(0xf7)]['connectionError$'],'onConfigure':()=>this[_0x15386a(0xb1)](),'showClickable':(_0x58fc04=_0x1b6c28==null?void 0x0:_0x1b6c28[_0x15386a(0x120)])!=null?_0x58fc04:!0x1}),this[_0x15386a(0x16e)]);}));}['_handleConfigure'](){const _0x50efd6=_0x3e8ced;this['_injector'][_0x50efd6(0x103)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x31c38a(_0x371f22)),M(0x1,_0x31c38a(_0x50e3ff)),M(0x2,_0x19cd2c),M(0x3,_0x4f36c9)],O);function un(_0x24f438){const {status$:_0x3f5077,error$:_0x44a24f,onConfigure:_0x28acc2,showClickable:_0x3cfe7e}=_0x24f438;return function(){return _0x47340d(cn,{'status$':_0x3f5077,'error$':_0x44a24f,'onConfigure':_0x28acc2,'showClickable':_0x3cfe7e});};}function vn(_0x46d14e){const _0x57ca85=_0x3e8ced;return{'id':V['id'],'type':_0x27a01e[_0x57ca85(0xbf)],'icon':'MenuIcon','title':_0x57ca85(0x7e),'tooltip':'mcpConfig.title'};}const dn={[_0x1dd860[_0x3e8ced(0x133)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x371e70,_0x49fbe8,_0x18eb53,_0x2de41c)=>{const _0x23df99=_0x3e8ced;for(var _0x374017=_0x2de41c>0x1?void 0x0:_0x2de41c?gn(_0x49fbe8,_0x18eb53):_0x49fbe8,_0x5076d5=_0x371e70[_0x23df99(0x162)]-0x1,_0x2a7b2c;_0x5076d5>=0x0;_0x5076d5--)(_0x2a7b2c=_0x371e70[_0x5076d5])&&(_0x374017=_0x2a7b2c(_0x374017)||_0x374017);return _0x374017;},re=(_0x44cf96,_0x2a02fa)=>(_0x52cbfe,_0x43b532)=>_0x2a02fa(_0x52cbfe,_0x43b532,_0x44cf96);let D=class extends _0x248fde{constructor(_0x38938d,_0x4badae){const _0x2cee7b=_0x3e8ced;super(),this[_0x2cee7b(0x1a9)]=_0x38938d,this[_0x2cee7b(0x147)]=_0x4badae,this['_initializeCommands'](),this[_0x2cee7b(0x157)]();}['_initializeCommands'](){[V]['forEach'](_0x229dc2=>{const _0x370c18=_0x4f56;this[_0x370c18(0x156)](this[_0x370c18(0x1a9)]['registerCommand'](_0x229dc2));});}['_initializeMenus'](){const _0x3bacb1=_0x3e8ced;this[_0x3bacb1(0x147)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x16f475),re(0x1,_0xb404cf)],D);const Mn={'mcpStatus':{'disconnected':_0x3e8ced(0x186),'connecting':_0x3e8ced(0xc9),'connected':_0x3e8ced(0x173),'failed':'MCP\x20Connection\x20Failed','retrying':_0x3e8ced(0x188),'unknown':_0x3e8ced(0x19e),'unauthorized':_0x3e8ced(0x115),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3e8ced(0xa2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3e8ced(0x13a)},'mcpConfig':{'title':_0x3e8ced(0xa0),'description':_0x3e8ced(0xe2),'apiKey':_0x3e8ced(0x8f),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3e8ced(0x89),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3e8ced(0x18c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x3e8ced(0x86),'configStep2':_0x3e8ced(0x1bf),'configStep3':_0x3e8ced(0xea),'sessionId':'Session\x20ID','sessionIdDescription':_0x3e8ced(0x177),'authorizationDescription':_0x3e8ced(0x138),'configParameters':_0x3e8ced(0x18a),'maxRetries':_0x3e8ced(0x1af),'save':_0x3e8ced(0x1b9),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3e8ced(0x10f),'configSaved':_0x3e8ced(0x107),'configError':_0x3e8ced(0x1c0),'apiApplyInfo':{'title':_0x3e8ced(0x143),'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':'Univer\x20AI\x20Console','getStarted':_0x3e8ced(0x12c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3e8ced(0xfa),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3e8ced(0x1b7)},'connectionStatus':{'disconnected':_0x3e8ced(0x124),'connecting':_0x3e8ced(0x1a2),'connected':_0x3e8ced(0x129),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3e8ced(0xa5),'sessionOccupied':_0x3e8ced(0xa9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3e8ced(0xd3)}}},An={'mcpStatus':{'disconnected':_0x3e8ced(0xf3),'connecting':'MCP\x20连接中...','connected':_0x3e8ced(0x1c5),'failed':_0x3e8ced(0x1b1),'retrying':_0x3e8ced(0x161),'unknown':_0x3e8ced(0xbe),'unauthorized':_0x3e8ced(0xa3),'sessionOccupied':_0x3e8ced(0x185),'networkError':_0x3e8ced(0x178),'maxRetriesExceeded':_0x3e8ced(0x9e),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x3e8ced(0x1a8)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x3e8ced(0x12e),'apiKeyPlaceholder':_0x3e8ced(0x117),'apiKeyHint':_0x3e8ced(0x139),'enableAuth':_0x3e8ced(0x180),'enableAuthHint':_0x3e8ced(0xc0),'connectionInfo':_0x3e8ced(0xb7),'mcpClientConfig':_0x3e8ced(0xb7),'configInstructions':_0x3e8ced(0x8a),'configStepTitle':_0x3e8ced(0xb5),'configStep1':_0x3e8ced(0xc5),'configStep2':_0x3e8ced(0xad),'configStep3':_0x3e8ced(0x1ca),'sessionId':'会话ID','sessionIdDescription':_0x3e8ced(0x9d),'authorizationDescription':_0x3e8ced(0xa1),'configParameters':_0x3e8ced(0x112),'maxRetries':_0x3e8ced(0x1b0),'save':_0x3e8ced(0x114),'saving':_0x3e8ced(0x149),'note1':'配置更改将立即生效','note2':_0x3e8ced(0x13d),'configSaved':_0x3e8ced(0xf9),'configError':_0x3e8ced(0x175),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3e8ced(0xcc)},'validation':{'apiKeyRequired':_0x3e8ced(0xde),'apiKeyTooShort':_0x3e8ced(0xe8),'invalidConfig':_0x3e8ced(0x145),'invalidApiKey':_0x3e8ced(0x111)},'connectionStatus':{'disconnected':'未连接','connecting':_0x3e8ced(0x14b),'connected':_0x3e8ced(0x1a1),'failed':_0x3e8ced(0xbc),'retrying':_0x3e8ced(0xd6)},'connectionError':{'unauthorized':_0x3e8ced(0xc1),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x3e8ced(0x182),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x4576e3,_0x219f6f,_0xbff60e)=>_0x219f6f in _0x4576e3?fn(_0x4576e3,_0x219f6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbff60e}):_0x4576e3[_0x219f6f]=_0xbff60e,mn=(_0x4784ab,_0xc5abd3,_0x55f1d4,_0x15af97)=>{const _0x2e2a8f=_0x3e8ced;for(var _0x3ec721=_0x15af97>0x1?void 0x0:_0x15af97?hn(_0xc5abd3,_0x55f1d4):_0xc5abd3,_0x339fcb=_0x4784ab[_0x2e2a8f(0x162)]-0x1,_0x47224a;_0x339fcb>=0x0;_0x339fcb--)(_0x47224a=_0x4784ab[_0x339fcb])&&(_0x3ec721=_0x47224a(_0x3ec721)||_0x3ec721);return _0x3ec721;},P=(_0x3ed31f,_0x2add39)=>(_0x362866,_0x200426)=>_0x2add39(_0x362866,_0x200426,_0x3ed31f),_n=(_0x36a4dc,_0x31e268,_0x35f5d6)=>Cn(_0x36a4dc,_0x31e268+'',_0x35f5d6);let j=class extends _0x427040{constructor(_0x3f1b56=ie,_0xae02a6,_0x185ee7,_0x15c5f3,_0x17b969,_0x4c0a55){const _0x1478ad=_0x3e8ced;super(),this['_config']=_0x3f1b56,this['_injector']=_0xae02a6,this[_0x1478ad(0x131)]=_0x185ee7,this['_uiPartsService']=_0x15c5f3,this['_localStorageService']=_0x17b969,this[_0x1478ad(0x148)]=_0x4c0a55;const {..._0x4b4ffc}=_0x4d406f({},ie,this[_0x1478ad(0xb3)]);this[_0x1478ad(0x131)][_0x1478ad(0x146)](y,_0x4b4ffc);}async[_0x3e8ced(0xf1)](){const _0x55b23c=_0x3e8ced,_0x32a754=[[O],[I],[D]];this[_0x55b23c(0x16e)][_0x55b23c(0x153)](_0xb2c640)||_0x32a754[_0x55b23c(0x100)]([_0xb2c640,{'useClass':_0x36dedd}]),_0x32a754['forEach'](_0x19477d=>this[_0x55b23c(0x16e)][_0x55b23c(0x1cc)](_0x19477d)),this[_0x55b23c(0x16e)][_0x55b23c(0x103)](O),this['_injector']['get'](I),this[_0x55b23c(0x16e)][_0x55b23c(0x103)](D);}};_n(j,_0x3e8ced(0xa7),_0x3e8ced(0x1ad)),j=mn([_0x5c5feb(_0x1b8c93),P(0x1,_0x31c38a(_0x371f22)),P(0x2,_0x4f36c9),P(0x3,_0x19cd2c),P(0x4,_0x69308d),P(0x5,_0x31c38a(_0x2d1d03))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1adf99=_0x3ae3;(function(_0x233eee,_0x5498a6){const _0x25f27e=_0x3ae3,_0x3b0521=_0x233eee();while(!![]){try{const _0x478717=-parseInt(_0x25f27e(0xa5))/0x1+-parseInt(_0x25f27e(0x94))/0x2*(parseInt(_0x25f27e(0x96))/0x3)+parseInt(_0x25f27e(0x97))/0x4+parseInt(_0x25f27e(0xc6))/0x5+parseInt(_0x25f27e(0xbf))/0x6+parseInt(_0x25f27e(0xa2))/0x7+-parseInt(_0x25f27e(0xc5))/0x8*(parseInt(_0x25f27e(0xc1))/0x9);if(_0x478717===_0x5498a6)break;else _0x3b0521['push'](_0x3b0521['shift']());}catch(_0x172c03){_0x3b0521['push'](_0x3b0521['shift']());}}}(_0x1867,0xad2a3));const e={'mcpStatus':{'disconnected':_0x1adf99(0xb7),'connecting':_0x1adf99(0xa4),'connected':_0x1adf99(0x9c),'failed':_0x1adf99(0xb0),'retrying':_0x1adf99(0xac),'unknown':_0x1adf99(0x9f),'unauthorized':_0x1adf99(0xb2),'sessionOccupied':_0x1adf99(0xbb),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1adf99(0xc2),'clickToConnect':_0x1adf99(0xad),'clickToConfigure':_0x1adf99(0xb3)},'mcpConfig':{'title':_0x1adf99(0x99),'description':_0x1adf99(0xb9),'apiKey':_0x1adf99(0xab),'apiKeyPlaceholder':_0x1adf99(0xa6),'apiKeyHint':_0x1adf99(0xc3),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1adf99(0xc4),'connectionInfo':_0x1adf99(0xa7),'mcpClientConfig':_0x1adf99(0xa7),'configInstructions':_0x1adf99(0xbd),'configStepTitle':_0x1adf99(0xaa),'configStep1':_0x1adf99(0xa3),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1adf99(0xb4),'sessionId':_0x1adf99(0x98),'sessionIdDescription':_0x1adf99(0x91),'authorizationDescription':_0x1adf99(0x92),'configParameters':_0x1adf99(0xb1),'maxRetries':_0x1adf99(0xa8),'save':_0x1adf99(0xb5),'saving':_0x1adf99(0xae),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1adf99(0x9a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1adf99(0xaf),'apiApplyInfo':{'title':_0x1adf99(0xa9),'description':_0x1adf99(0x93),'univerAiLabel':_0x1adf99(0xc0),'getStarted':_0x1adf99(0xbc)},'validation':{'apiKeyRequired':_0x1adf99(0xa0),'apiKeyTooShort':_0x1adf99(0xa1),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1adf99(0x95)},'connectionStatus':{'disconnected':_0x1adf99(0xbe),'connecting':_0x1adf99(0xba),'connected':'Connected','failed':_0x1adf99(0x9e),'retrying':_0x1adf99(0x9b)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1adf99(0xb6),'networkError':_0x1adf99(0xb8),'maxRetriesExceeded':_0x1adf99(0x9d)}}},n=e;export{n as default};function _0x3ae3(_0x3d8634,_0x5849cc){_0x3d8634=_0x3d8634-0x91;const _0x1867a5=_0x1867();let _0x3ae341=_0x1867a5[_0x3d8634];return _0x3ae341;}function _0x1867(){const _0x3babee=['API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','184046rUwKOY','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','42JQIfFH','4224052kczDVD','Session\x20ID','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4619363BYBTwx','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','312411kNYwtB','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Max\x20Retries','What\x20is\x20API\x20Key?','Configuration\x20Steps:','API\x20Key','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','Saving...','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connecting...','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','3771948kuxrMg','Univer\x20AI\x20Console','3735tKoKcA','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','27088sInFVP','6853130BDoMJR','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x1867=function(){return _0x3babee;};return _0x1867();}
|