@univerjs-pro/mcp-ui 0.21.0 → 0.22.0
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/sk-SK.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/sk-SK.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/sk-SK.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/sk-SK.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 +11 -11
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x22ac(_0x453b36,_0x5e2790){_0x453b36=_0x453b36-0xf6;const _0x40074c=_0x4007();let _0x22acb2=_0x40074c[_0x453b36];return _0x22acb2;}function _0x4007(){const _0x1d0a15=['11eZtbdB','Saving...','Connected','What\x20is\x20API\x20Key?','8792UDuxdI','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','189dJlLiT','exports','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Steps:','2824sgPDBe','MCP\x20Connected','MCP\x20Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2497368YUccJx','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','Retrying...','API\x20Key','293630gbKykc','10356720JNyoBy','Invalid\x20configuration','Connecting...','2671220uSkeNX','4yjEqMg','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Session\x20ID','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','796554nEOpnf','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5OXVizK','716883hYANdA','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections'];_0x4007=function(){return _0x1d0a15;};return _0x4007();}const _0x542601=_0x22ac;(function(_0x21e637,_0x22659d){const _0xec89b1=_0x22ac,_0x2731e0=_0x21e637();while(!![]){try{const _0x11018b=-parseInt(_0xec89b1(0x119))/0x1+parseInt(_0xec89b1(0x10e))/0x2*(-parseInt(_0xec89b1(0x125))/0x3)+parseInt(_0xec89b1(0x10d))/0x4+parseInt(_0xec89b1(0x124))/0x5*(parseInt(_0xec89b1(0x104))/0x6)+parseInt(_0xec89b1(0xf6))/0x7*(parseInt(_0xec89b1(0x100))/0x8)+parseInt(_0xec89b1(0xfa))/0x9*(-parseInt(_0xec89b1(0x109))/0xa)+parseInt(_0xec89b1(0x12d))/0xb*(parseInt(_0xec89b1(0x10a))/0xc);if(_0x11018b===_0x22659d)break;else _0x2731e0['push'](_0x2731e0['shift']());}catch(_0x4e907e){_0x2731e0['push'](_0x2731e0['shift']());}}}(_0x4007,0x79ea2));const locale$1={'mcpStatus':{'disconnected':_0x542601(0xf9),'connecting':_0x542601(0x127),'connected':_0x542601(0x101),'failed':_0x542601(0x117),'retrying':_0x542601(0x102),'unknown':_0x542601(0x112),'unauthorized':_0x542601(0x113),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x542601(0x121),'maxRetriesExceeded':_0x542601(0xf8),'clickToConnect':_0x542601(0x122),'clickToConfigure':_0x542601(0x115)},'mcpConfig':{'title':_0x542601(0x106),'description':_0x542601(0x120),'apiKey':_0x542601(0x108),'apiKeyPlaceholder':_0x542601(0x110),'apiKeyHint':_0x542601(0x123),'enableAuth':_0x542601(0x11d),'enableAuthHint':_0x542601(0x12c),'connectionInfo':_0x542601(0x11a),'mcpClientConfig':_0x542601(0x11a),'configInstructions':_0x542601(0xf7),'configStepTitle':_0x542601(0xff),'configStep1':_0x542601(0x118),'configStep2':_0x542601(0x116),'configStep3':_0x542601(0x129),'sessionId':_0x542601(0x111),'sessionIdDescription':_0x542601(0x12a),'authorizationDescription':_0x542601(0x114),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x542601(0x11c),'save':'Save\x20Configuration','saving':_0x542601(0x12e),'note1':_0x542601(0xfd),'note2':_0x542601(0x105),'configSaved':_0x542601(0x128),'configError':_0x542601(0xfc),'apiApplyInfo':{'title':_0x542601(0x130),'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':_0x542601(0x10f),'getStarted':_0x542601(0xfe)},'validation':{'apiKeyRequired':_0x542601(0x12b),'apiKeyTooShort':_0x542601(0x103),'invalidConfig':_0x542601(0x10b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x542601(0x11f),'connecting':_0x542601(0x10c),'connected':_0x542601(0x12f),'failed':'Connection\x20Failed','retrying':_0x542601(0x107)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x542601(0x126),'networkError':_0x542601(0x11b),'maxRetriesExceeded':_0x542601(0x11e)}}},locale=locale$1;module[_0x542601(0xfb)]=locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xc4de(){const _0x2d50bb=['2169528eVchRl','API\x20kľúč\x20je\x20povinný','Zadajte\x20svoj\x20API\x20kľúč','Skúša\x20sa\x20znova...','exports','Odpojené','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','145830qlvASz','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','243VexInV','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Konfigurácia\x20bola\x20úspešne\x20uložená','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Parametre\x20konfigurácie:','27097fptTer','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','2306640xBWyLY','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Pripojenie\x20MCP\x20zlyhalo','MCP\x20pripojené','8741326NrmFIU','API\x20kľúč','MCP\x20neznámy\x20stav','Kroky\x20konfigurácie:','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Univer\x20AI\x20konzola','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Uložiť\x20konfiguráciu','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Povoliť\x20overenie','MCP\x20opakuje\x20pokus...','MCP:\x20ID\x20relácie\x20je\x20obsadené','Ukladá\x20sa...','1835241dsTrPP','Neplatná\x20konfigurácia','2890XqHBig','Kliknite\x20na\x20konfiguráciu\x20MCP','MCP\x20odpojené','632hliSwt','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP\x20sa\x20pripája...','MCP:\x20Neautorizované','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','MCP:\x20Sieťová\x20chyba','MCP:\x20Prekročený\x20počet\x20pokusov','Maximálny\x20počet\x20pokusov','101levQRe','4Laczfd','Čo\x20je\x20API\x20kľúč?','ID\x20relácie','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Pripája\x20sa...'];_0xc4de=function(){return _0x2d50bb;};return _0xc4de();}const _0x1cb34a=_0x30de;(function(_0x3c406d,_0x237ea6){const _0x58c563=_0x30de,_0x1329b9=_0x3c406d();while(!![]){try{const _0x11bb55=-parseInt(_0x58c563(0x1ba))/0x1*(-parseInt(_0x58c563(0x1ae))/0x2)+-parseInt(_0x58c563(0x1ac))/0x3*(parseInt(_0x58c563(0x1bb))/0x4)+-parseInt(_0x58c563(0x19a))/0x5+parseInt(_0x58c563(0x1c0))/0x6+parseInt(_0x58c563(0x198))/0x7*(-parseInt(_0x58c563(0x1b1))/0x8)+-parseInt(_0x58c563(0x1ca))/0x9*(-parseInt(_0x58c563(0x1c7))/0xa)+parseInt(_0x58c563(0x19f))/0xb;if(_0x11bb55===_0x237ea6)break;else _0x1329b9['push'](_0x1329b9['shift']());}catch(_0x18d883){_0x1329b9['push'](_0x1329b9['shift']());}}}(_0xc4de,0x4d680));function _0x30de(_0x5395d6,_0x33d56d){_0x5395d6=_0x5395d6-0x194;const _0xc4deb1=_0xc4de();let _0x30dea4=_0xc4deb1[_0x5395d6];return _0x30dea4;}const locale={'mcpStatus':{'disconnected':_0x1cb34a(0x1b0),'connecting':_0x1cb34a(0x1b3),'connected':_0x1cb34a(0x19e),'failed':_0x1cb34a(0x19d),'retrying':_0x1cb34a(0x1a9),'unknown':_0x1cb34a(0x1a1),'unauthorized':_0x1cb34a(0x1b4),'sessionOccupied':_0x1cb34a(0x1aa),'networkError':_0x1cb34a(0x1b7),'maxRetriesExceeded':_0x1cb34a(0x1b8),'clickToConnect':'Kliknite\x20na\x20pripojenie\x20MCP','clickToConfigure':_0x1cb34a(0x1af)},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':'Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','apiKey':_0x1cb34a(0x1a0),'apiKeyPlaceholder':_0x1cb34a(0x1c2),'apiKeyHint':_0x1cb34a(0x1a3),'enableAuth':_0x1cb34a(0x1a8),'enableAuthHint':'Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':'Konfigurácia\x20klienta\x20MCP','configInstructions':_0x1cb34a(0x1c6),'configStepTitle':_0x1cb34a(0x1a2),'configStep1':_0x1cb34a(0x1b6),'configStep2':_0x1cb34a(0x1a7),'configStep3':_0x1cb34a(0x196),'sessionId':_0x1cb34a(0x1bd),'sessionIdDescription':'Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','authorizationDescription':_0x1cb34a(0x1be),'configParameters':_0x1cb34a(0x197),'maxRetries':_0x1cb34a(0x1b9),'save':_0x1cb34a(0x1a6),'saving':_0x1cb34a(0x1ab),'note1':_0x1cb34a(0x1c8),'note2':_0x1cb34a(0x19c),'configSaved':_0x1cb34a(0x195),'configError':_0x1cb34a(0x1a5),'apiApplyInfo':{'title':_0x1cb34a(0x1bc),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':_0x1cb34a(0x1a4),'getStarted':_0x1cb34a(0x194)},'validation':{'apiKeyRequired':_0x1cb34a(0x1c1),'apiKeyTooShort':_0x1cb34a(0x199),'invalidConfig':_0x1cb34a(0x1ad),'invalidApiKey':_0x1cb34a(0x1b5)},'connectionStatus':{'disconnected':_0x1cb34a(0x1c5),'connecting':_0x1cb34a(0x1bf),'connected':'Pripojené','failed':'Pripojenie\x20zlyhalo','retrying':_0x1cb34a(0x1c3)},'connectionError':{'unauthorized':'Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','sessionOccupied':_0x1cb34a(0x1b2),'networkError':_0x1cb34a(0x19b),'maxRetriesExceeded':_0x1cb34a(0x1c9)}}};module[_0x1cb34a(0x1c4)]=locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1695(_0x2d1489,_0x23be68){_0x2d1489=_0x2d1489-0x118;const _0x547b1e=_0x547b();let _0x16956f=_0x547b1e[_0x2d1489];return _0x16956f;}function _0x547b(){const _0x38e3b9=['MCP:\x20Lỗi\x20mạng','Cấu\x20hình\x20máy\x20khách\x20MCP','Yêu\x20cầu\x20khóa\x20API','Lưu\x20cấu\x20hình\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Cấu\x20hình\x20không\x20hợp\x20lệ','Kết\x20nối\x20thất\x20bại','Bảng\x20điều\x20khiển\x20Univer\x20AI','Nhập\x20khóa\x20API\x20của\x20bạn','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','33918NQsFhz','1943838xWMdCn','MCP:\x20Không\x20được\x20phép','ID\x20phiên','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Cấu\x20hình\x20MCP','Đã\x20kết\x20nối','Đang\x20lưu...','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Nhấp\x20để\x20kết\x20nối\x20MCP','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','exports','3498060xGQSkJ','Đang\x20kết\x20nối...','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Tham\x20số\x20cấu\x20hình:','Đã\x20ngắt\x20kết\x20nối','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','11352808zEgamO','Khóa\x20API\x20là\x20gì?','1465JzxfDy','Nhấp\x20để\x20cấu\x20hình\x20MCP','MCP\x20Đang\x20kết\x20nối...','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','3198rlYQKZ','Các\x20bước\x20cấu\x20hình:','9rWPlal','436806zNdSBq','MCP\x20Kết\x20nối\x20thất\x20bại','Đang\x20thử\x20lại...','4610410zXPmOk'];_0x547b=function(){return _0x38e3b9;};return _0x547b();}const _0x331632=_0x1695;(function(_0x1a0245,_0x3a1c23){const _0x117152=_0x1695,_0x3e081f=_0x1a0245();while(!![]){try{const _0x2b5050=-parseInt(_0x117152(0x11b))/0x1+-parseInt(_0x117152(0x13f))/0x2+parseInt(_0x117152(0x11c))/0x3+-parseInt(_0x117152(0x130))/0x4+-parseInt(_0x117152(0x138))/0x5*(-parseInt(_0x117152(0x13c))/0x6)+-parseInt(_0x117152(0x142))/0x7+-parseInt(_0x117152(0x136))/0x8*(-parseInt(_0x117152(0x13e))/0x9);if(_0x2b5050===_0x3a1c23)break;else _0x3e081f['push'](_0x3e081f['shift']());}catch(_0xb98bbc){_0x3e081f['push'](_0x3e081f['shift']());}}}(_0x547b,0x6adf6));const locale={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x331632(0x13a),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x331632(0x140),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x331632(0x119),'unauthorized':_0x331632(0x11d),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x331632(0x143),'maxRetriesExceeded':_0x331632(0x121),'clickToConnect':_0x331632(0x129),'clickToConfigure':_0x331632(0x139)},'mcpConfig':{'title':_0x331632(0x122),'description':_0x331632(0x125),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x331632(0x118),'apiKeyHint':_0x331632(0x147),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':_0x331632(0x127),'connectionInfo':_0x331632(0x144),'mcpClientConfig':_0x331632(0x144),'configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0x331632(0x13d),'configStep1':_0x331632(0x126),'configStep2':_0x331632(0x128),'configStep3':_0x331632(0x12c),'sessionId':_0x331632(0x11e),'sessionIdDescription':'Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','authorizationDescription':_0x331632(0x120),'configParameters':_0x331632(0x133),'maxRetries':_0x331632(0x12b),'save':'Lưu\x20cấu\x20hình','saving':_0x331632(0x124),'note1':_0x331632(0x12a),'note2':_0x331632(0x148),'configSaved':_0x331632(0x13b),'configError':_0x331632(0x146),'apiApplyInfo':{'title':_0x331632(0x137),'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':_0x331632(0x14b),'getStarted':_0x331632(0x11a)},'validation':{'apiKeyRequired':_0x331632(0x145),'apiKeyTooShort':'Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','invalidConfig':_0x331632(0x149),'invalidApiKey':_0x331632(0x11f)},'connectionStatus':{'disconnected':_0x331632(0x134),'connecting':_0x331632(0x131),'connected':_0x331632(0x123),'failed':_0x331632(0x14a),'retrying':_0x331632(0x141)},'connectionError':{'unauthorized':_0x331632(0x135),'sessionOccupied':_0x331632(0x12d),'networkError':_0x331632(0x132),'maxRetriesExceeded':_0x331632(0x12e)}}};module[_0x331632(0x12f)]=locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xcd52c4=_0x815a;(function(_0x1f2f75,_0x49a6a5){const _0x3baeb1=_0x815a,_0x209c28=_0x1f2f75();while(!![]){try{const _0x32cecc=parseInt(_0x3baeb1(0x1dc))/0x1+-parseInt(_0x3baeb1(0x1e5))/0x2+parseInt(_0x3baeb1(0x1c3))/0x3+-parseInt(_0x3baeb1(0x1d3))/0x4+parseInt(_0x3baeb1(0x1c6))/0x5+-parseInt(_0x3baeb1(0x1e7))/0x6+parseInt(_0x3baeb1(0x1c9))/0x7*(parseInt(_0x3baeb1(0x1d1))/0x8);if(_0x32cecc===_0x49a6a5)break;else _0x209c28['push'](_0x209c28['shift']());}catch(_0x41f7a2){_0x209c28['push'](_0x209c28['shift']());}}}(_0xda6d,0xaa847));const locale={'mcpStatus':{'disconnected':_0xcd52c4(0x1de),'connecting':_0xcd52c4(0x1d4),'connected':_0xcd52c4(0x1db),'failed':_0xcd52c4(0x1e8),'retrying':_0xcd52c4(0x1e2),'unknown':_0xcd52c4(0x1da),'unauthorized':_0xcd52c4(0x1d2),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xcd52c4(0x1df),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0xcd52c4(0x1eb),'clickToConfigure':_0xcd52c4(0x1bd)},'mcpConfig':{'title':_0xcd52c4(0x1e3),'description':_0xcd52c4(0x1bf),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0xcd52c4(0x1cb),'apiKeyHint':_0xcd52c4(0x1cd),'enableAuth':_0xcd52c4(0x1be),'enableAuthHint':_0xcd52c4(0x1d6),'connectionInfo':_0xcd52c4(0x1c0),'mcpClientConfig':_0xcd52c4(0x1c0),'configInstructions':_0xcd52c4(0x1e6),'configStepTitle':_0xcd52c4(0x1e4),'configStep1':_0xcd52c4(0x1cf),'configStep2':_0xcd52c4(0x1e1),'configStep3':_0xcd52c4(0x1ca),'sessionId':_0xcd52c4(0x1c8),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xcd52c4(0x1d8),'configParameters':_0xcd52c4(0x1c1),'maxRetries':_0xcd52c4(0x1d7),'save':'保存配置','saving':_0xcd52c4(0x1ea),'note1':'配置更改将立即生效','note2':_0xcd52c4(0x1e0),'configSaved':_0xcd52c4(0x1c5),'configError':_0xcd52c4(0x1d9),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0xcd52c4(0x1c7),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0xcd52c4(0x1d5),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0xcd52c4(0x1cc),'connecting':_0xcd52c4(0x1c4),'connected':_0xcd52c4(0x1e9),'failed':'连接失败','retrying':_0xcd52c4(0x1ce)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0xcd52c4(0x1dd),'networkError':_0xcd52c4(0x1c2),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0xcd52c4(0x1d0)]=locale;function _0x815a(_0x50ce38,_0x2897a2){_0x50ce38=_0x50ce38-0x1bd;const _0xda6d7c=_0xda6d();let _0x815a72=_0xda6d7c[_0x50ce38];return _0x815a72;}function _0xda6d(){const _0x118cc5=['未连接','您的\x20API\x20密钥将在此浏览器中本地存储','重连中...','复制以下\x20JSON\x20配置','exports','90744ZboeUK','MCP:\x20未授权','4381884CFaelo','MCP\x20连接中...','API\x20密钥长度至少需要\x2010\x20位','启用身份验证以获得安全连接','最大重试次数','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置保存失败','MCP\x20状态未知','MCP\x20已连接','501746dDBngy','会话\x20ID\x20已被占用,请稍后再试','MCP\x20已断开','MCP:\x20网络错误','您的\x20API\x20密钥安全存储在本地存储中','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20重连中...','MCP\x20配置','配置步骤:','2584272XZeEZi','将以下配置添加到您的\x20MCP\x20客户端设置中:','1337964MHIxrt','MCP\x20连接失败','已连接','保存中...','点击连接\x20MCP','点击配置\x20MCP','启用身份验证','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20客户端配置','配置参数:','网络连接错误,请检查您的网络连接','4022547NsFgSz','连接中...','配置保存成功','3135315MFftjB','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','会话ID','518YVuZWV','重启您的\x20MCP\x20客户端以使配置生效','请输入您的\x20API\x20密钥'];_0xda6d=function(){return _0x118cc5;};return _0xda6d();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2fcb(){const _0x35a6f7=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Session\x20ID','Max\x20Retries','Connection\x20Failed','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','102clZvuV','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','9654NUhRUi','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20Authentication','Saving...','9126096SJNTUC','MCP\x20Connection\x20Failed','817135jkMKVE','Configuration\x20Steps:','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Retrying...','7784045QZERXr','4613VOtNmL','Disconnected','18800090exSkqf','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','14118876OjsXHG','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','25750XwpmBy','Copy\x20the\x20JSON\x20configuration\x20below','4tkEvKr','What\x20is\x20API\x20Key?','MCP\x20Connected','API\x20key\x20is\x20required'];_0x2fcb=function(){return _0x35a6f7;};return _0x2fcb();}const _0x33dd8d=_0x36aa;(function(_0x401900,_0x55bca4){const _0x5de47f=_0x36aa,_0x5bfb68=_0x401900();while(!![]){try{const _0x2922e5=-parseInt(_0x5de47f(0x1c0))/0x1+parseInt(_0x5de47f(0x1a3))/0x2*(parseInt(_0x5de47f(0x1b5))/0x3)+-parseInt(_0x5de47f(0x1a5))/0x4*(-parseInt(_0x5de47f(0x1c5))/0x5)+-parseInt(_0x5de47f(0x1b7))/0x6*(-parseInt(_0x5de47f(0x1c6))/0x7)+-parseInt(_0x5de47f(0x1be))/0x8+parseInt(_0x5de47f(0x19e))/0x9+-parseInt(_0x5de47f(0x1c8))/0xa;if(_0x2922e5===_0x55bca4)break;else _0x5bfb68['push'](_0x5bfb68['shift']());}catch(_0x28fc99){_0x5bfb68['push'](_0x5bfb68['shift']());}}}(_0x2fcb,0xbfd54));function _0x36aa(_0x406abe,_0x52964f){_0x406abe=_0x406abe-0x199;const _0x2fcbce=_0x2fcb();let _0x36aae3=_0x2fcbce[_0x406abe];return _0x36aae3;}const locale$1={'mcpStatus':{'disconnected':_0x33dd8d(0x19d),'connecting':_0x33dd8d(0x1b4),'connected':_0x33dd8d(0x1a7),'failed':_0x33dd8d(0x1bf),'retrying':'MCP\x20Retrying...','unknown':_0x33dd8d(0x1b0),'unauthorized':_0x33dd8d(0x1a0),'sessionOccupied':_0x33dd8d(0x19f),'networkError':_0x33dd8d(0x1a1),'maxRetriesExceeded':_0x33dd8d(0x19c),'clickToConnect':_0x33dd8d(0x1ac),'clickToConfigure':_0x33dd8d(0x1a2)},'mcpConfig':{'title':_0x33dd8d(0x199),'description':_0x33dd8d(0x1b6),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x33dd8d(0x1aa),'enableAuth':_0x33dd8d(0x1bc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x33dd8d(0x1c3),'configInstructions':_0x33dd8d(0x19a),'configStepTitle':_0x33dd8d(0x1c1),'configStep1':_0x33dd8d(0x1a4),'configStep2':_0x33dd8d(0x1bb),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x33dd8d(0x1ad),'sessionIdDescription':_0x33dd8d(0x1b9),'authorizationDescription':_0x33dd8d(0x1ab),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x33dd8d(0x1ae),'save':_0x33dd8d(0x1b2),'saving':_0x33dd8d(0x1bd),'note1':_0x33dd8d(0x1b8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x33dd8d(0x1c2),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x33dd8d(0x1a6),'description':_0x33dd8d(0x1a9),'univerAiLabel':_0x33dd8d(0x19b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x33dd8d(0x1a8),'apiKeyTooShort':_0x33dd8d(0x1b1),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x33dd8d(0x1ba)},'connectionStatus':{'disconnected':_0x33dd8d(0x1c7),'connecting':'Connecting...','connected':'Connected','failed':_0x33dd8d(0x1af),'retrying':_0x33dd8d(0x1c4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x33dd8d(0x1b3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;module['exports']=locale;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x554d16=_0x1bd6;(function(_0x14e0b6,_0x3786dd){const _0x413c7e=_0x1bd6,_0x1abe58=_0x14e0b6();while(!![]){try{const _0x29224b=parseInt(_0x413c7e(0x1e8))/0x1+-parseInt(_0x413c7e(0x14c))/0x2+-parseInt(_0x413c7e(0x200))/0x3+-parseInt(_0x413c7e(0x145))/0x4*(-parseInt(_0x413c7e(0x153))/0x5)+parseInt(_0x413c7e(0x160))/0x6+parseInt(_0x413c7e(0x14e))/0x7+-parseInt(_0x413c7e(0x1be))/0x8;if(_0x29224b===_0x3786dd)break;else _0x1abe58['push'](_0x1abe58['shift']());}catch(_0x3c9bf9){_0x1abe58['push'](_0x1abe58['shift']());}}}(_0x3987,0xaaa1c));import{CommandType,DependentOn,Disposable,ICommandService,IConfigService,ILocalStorageService,ILogService,Inject,Injector,LocaleService,Plugin,merge}from'@univerjs/core';import{MCPConnectionController,MCPConnectionError,MCPConnectionStatus,MCP_PLUGIN_CONFIG_KEY,UniverMCPPlugin}from'@univerjs-pro/mcp';import{Button,Input,MessageType,Tooltip,clsx}from'@univerjs/design';import{BuiltInUIPart,ComponentManager,IDialogService,IMenuManagerService,IMessageService,IUIPartsService,MenuItemType,RibbonStartGroup,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject}from'rxjs';function _0x1bd6(_0x46ad5b,_0x22c886){_0x46ad5b=_0x46ad5b-0xfe;const _0x3987d4=_0x3987();let _0x1bd661=_0x3987d4[_0x46ad5b];return _0x1bd661;}import{CheckMarkIcon,CloseIcon,HelpIcon,OffLineIcon,OnLineIcon}from'@univerjs/icons';import{useCallback,useState}from'react';import{jsx,jsxs}from'react/jsx-runtime';import{ISocketService,WebSocketService}from'@univerjs/network';function MCPConfigPanel(_0x3c2674){const _0x2ab7dc=_0x1bd6;var _0x488193,_0x21fc78;const {mcpCoreConfig:_0x3bf11c,onSave:_0xa79a8f,loading:loading=![],config:_0x2f880d,connectionStatus$:_0x4394c2,connectionError$:_0x367d06,currentApiKey$:_0x340a66,currentSessionId$:_0x59db8e}=_0x3c2674,_0x6a9249=useDependency(LocaleService),_0x4f80a1=useObservable(_0x4394c2,MCPConnectionStatus['DISCONNECTED']),_0x32f79c=useObservable(_0x367d06,MCPConnectionError[_0x2ab7dc(0x1f6)]),_0x57527b=useObservable(_0x59db8e,''),[_0xec6f7c,_0x358fd7]=useState(useObservable(_0x340a66,'')||''),_0x3caf73=!![],_0x51ce7b=_0x2f880d[_0x2ab7dc(0x152)]&&_0x3bf11c[_0x2ab7dc(0x181)]&&(_0x3bf11c[_0x2ab7dc(0x181)][_0x2ab7dc(0x131)](_0x2ab7dc(0x1dd))||_0x3bf11c[_0x2ab7dc(0x181)][_0x2ab7dc(0x131)](_0x2ab7dc(0x1ef))),_0x3f0f13=(_0x488193=_0x3bf11c['mcpServerUrl'])===null||_0x488193===void 0x0?void 0x0:_0x488193[_0x2ab7dc(0x131)]('univer.plus'),_0x2b5150=(_0x21fc78=_0x3bf11c[_0x2ab7dc(0x181)])===null||_0x21fc78===void 0x0?void 0x0:_0x21fc78['includes'](_0x2ab7dc(0x1ef)),_0x43f874=_0x3f0f13?_0x2ab7dc(0x1d1):_0x2ab7dc(0x100),_0x1a5d00=_0x2f880d[_0x2ab7dc(0x152)]&&(_0x3f0f13||_0x2b5150),[_0x15d467,_0x4a1975]=useState(!_0xec6f7c['trim']()),_0x540fa9=(_0x53228f,_0x3140df)=>{const _0x2f6cdb=_0x2ab7dc;if(_0x3140df===MCPConnectionError[_0x2f6cdb(0x1a8)])return _0x2f6cdb(0x150);switch(_0x53228f){case MCPConnectionStatus[_0x2f6cdb(0x132)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case MCPConnectionStatus['CONNECTING']:case MCPConnectionStatus['RETRYING']:return _0x2f6cdb(0x1bd);case MCPConnectionStatus[_0x2f6cdb(0x13d)]:return _0x2f6cdb(0x150);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x29b17e=(_0x1eec19,_0x19f1b6)=>{const _0x1ff973=_0x2ab7dc;if(_0x19f1b6===MCPConnectionError['UNAUTHORIZED'])return _0x1ff973(0x1d5);switch(_0x1eec19){case MCPConnectionStatus[_0x1ff973(0x132)]:return _0x1ff973(0x19b);case MCPConnectionStatus['CONNECTING']:case MCPConnectionStatus[_0x1ff973(0x1df)]:return _0x1ff973(0x1d9);case MCPConnectionStatus[_0x1ff973(0x13d)]:return'univer-bg-red-500';default:return _0x1ff973(0x1ee);}},_0x297f25=_0x24d7bc=>{const _0x236871=_0x2ab7dc;switch(_0x24d7bc){case MCPConnectionStatus['CONNECTED']:return _0x6a9249['t']('mcpConfig.connectionStatus.connected');case MCPConnectionStatus['CONNECTING']:return _0x6a9249['t']('mcpConfig.connectionStatus.connecting');case MCPConnectionStatus[_0x236871(0x13d)]:return _0x6a9249['t'](_0x236871(0x214));case MCPConnectionStatus[_0x236871(0x1df)]:return _0x6a9249['t'](_0x236871(0x1f5));default:return _0x6a9249['t']('mcpConfig.connectionStatus.disconnected');}},_0x496bba=_0x1bcc48=>{const _0x123e5b=_0x2ab7dc;switch(_0x1bcc48){case MCPConnectionError[_0x123e5b(0x1a8)]:return _0x6a9249['t']('mcpConfig.connectionError.unauthorized');case MCPConnectionError[_0x123e5b(0x1d3)]:return _0x6a9249['t']('mcpConfig.connectionError.sessionOccupied');case MCPConnectionError[_0x123e5b(0x154)]:return _0x6a9249['t'](_0x123e5b(0x1bb));case MCPConnectionError[_0x123e5b(0x203)]:return _0x6a9249['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x50aa73=useCallback(()=>{const _0x1736a7=_0x2ab7dc;_0xa79a8f({..._0x3bf11c,'apiKey':_0xec6f7c[_0x1736a7(0x1d4)](),'enableAuth':_0x3caf73});},[_0x3bf11c,_0xec6f7c,_0x3caf73,_0xa79a8f]),_0x220279=_0xec6f7c[_0x2ab7dc(0x1d4)]()[_0x2ab7dc(0x1a1)]>0x0;return jsxs('div',{'className':_0x2ab7dc(0x1e0),'children':[jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x193),'children':jsxs(_0x2ab7dc(0x1e4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x162),'children':jsx(_0x2ab7dc(0x216),{'className':_0x2ab7dc(0x134),'children':'⚙'})}),jsx('div',{'children':jsx('p',{'className':_0x2ab7dc(0x1d8),'children':_0x6a9249['t'](_0x2ab7dc(0x1ce))})})]})}),jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x177),'children':[jsx('div',{'className':clsx(_0x2ab7dc(0x170),_0x540fa9(_0x4f80a1,_0x32f79c)),'children':jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1a3),'children':[jsx('div',{'className':clsx(_0x2ab7dc(0x15c),_0x29b17e(_0x4f80a1,_0x32f79c))}),jsx('span',{'className':_0x2ab7dc(0x115),'children':_0x297f25(_0x4f80a1)})]})}),_0x32f79c!==MCPConnectionError['NONE']&&(_0x4f80a1===MCPConnectionStatus[_0x2ab7dc(0x13d)]||_0x32f79c===MCPConnectionError[_0x2ab7dc(0x1a8)])&&jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x18c),'children':jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x120),'children':[jsx(_0x2ab7dc(0x216),{'className':_0x2ab7dc(0x189),'children':'⚠️'}),jsx('p',{'className':_0x2ab7dc(0x1da),'children':_0x496bba(_0x32f79c)})]})})]}),jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1dc),'children':jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x141),'children':[jsxs(_0x2ab7dc(0x1e4),{'className':'univer-space-y-2','children':[jsxs('label',{'className':_0x2ab7dc(0x16c),'children':[jsx(_0x2ab7dc(0x216),{'children':'🔑'}),'\x20',_0x6a9249['t'](_0x2ab7dc(0x20e)),jsx('span',{'className':_0x2ab7dc(0x1b9),'children':'*'}),_0x51ce7b&&jsx('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x6a9249['t']('mcpConfig.apiApplyInfo.title'),'role':_0x2ab7dc(0x168),'onClick':()=>_0x4a1975(!![]),'children':jsx(HelpIcon,{})})]}),jsx(Input,{'type':_0x2ab7dc(0x187),'placeholder':_0x6a9249['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xec6f7c,'disabled':loading,'autoComplete':_0x2ab7dc(0x148),'onChange':_0x358fd7}),jsx('p',{'className':_0x2ab7dc(0x11f),'children':_0x6a9249['t'](_0x2ab7dc(0x213))})]}),_0x51ce7b&&_0x15d467&&jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x126),'children':[jsx('a',{'className':_0x2ab7dc(0x1a2),'role':_0x2ab7dc(0x168),'onClick':()=>_0x4a1975(![]),'children':jsx(CloseIcon,{'className':'univer-size-4'})}),jsxs(_0x2ab7dc(0x1e4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x15d),'children':jsx('span',{'className':_0x2ab7dc(0xfe),'children':'🚀'})}),jsxs('div',{'className':_0x2ab7dc(0x186),'children':[jsx('h4',{'className':_0x2ab7dc(0x18f),'children':_0x6a9249['t'](_0x2ab7dc(0x199))}),jsx('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x6a9249['t'](_0x2ab7dc(0x104))}),jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1b8),'children':_0x1a5d00&&jsxs('a',{'className':'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','href':_0x43f874,'target':_0x2ab7dc(0x13c),'rel':'noopener\x20noreferrer','children':[jsx('span',{'children':'🤖'}),_0x6a9249['t'](_0x2ab7dc(0x1c6)),jsx('span',{'className':_0x2ab7dc(0x116),'children':'↗'})]})}),jsxs(_0x2ab7dc(0x1e4),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x6a9249['t'](_0x2ab7dc(0x167))]})]})]})]}),_0x2f880d['showDeveloperTools']&&jsxs(_0x2ab7dc(0x1e4),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[jsxs('h4',{'className':_0x2ab7dc(0x211),'children':[jsx(_0x2ab7dc(0x216),{'children':'🔗'}),'\x20',_0x6a9249['t']('mcpConfig.connectionInfo')]}),jsxs('div',{'className':'univer-space-y-4','children':[jsxs(_0x2ab7dc(0x1e4),{'className':'univer-space-y-3','children':[jsx('p',{'className':_0x2ab7dc(0x19f),'children':_0x6a9249['t'](_0x2ab7dc(0x114))}),jsxs(_0x2ab7dc(0x1e4),{'className':'univer-space-y-2','children':[jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x188),'children':_0x6a9249['t'](_0x2ab7dc(0x1a0))}),jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1ba),'children':[jsxs(_0x2ab7dc(0x1e4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[jsx('span',{'className':_0x2ab7dc(0x1a5),'children':'1'}),_0x6a9249['t'](_0x2ab7dc(0x1ac))]}),jsxs('div',{'className':_0x2ab7dc(0x1a3),'children':[jsx(_0x2ab7dc(0x216),{'className':_0x2ab7dc(0x1a5),'children':'2'}),_0x6a9249['t'](_0x2ab7dc(0x125))]}),jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1a3),'children':[jsx(_0x2ab7dc(0x216),{'className':_0x2ab7dc(0x1a5),'children':'3'}),_0x6a9249['t'](_0x2ab7dc(0x163))]})]})]})]}),jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1fe),'children':[jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x188),'children':_0x2ab7dc(0x215)}),jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x17c),'children':jsx(_0x2ab7dc(0x12f),{'className':_0x2ab7dc(0x12b),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x2ab7dc(0x1d2)+(_0x57527b||_0x2ab7dc(0x13f)),'type':_0x2ab7dc(0x1e7),'headers':{'Authorization':_0x2ab7dc(0x1ca)+(_0xec6f7c||_0x2ab7dc(0x166))}}}},null,0x2)})})]}),jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x155),'children':[jsx(_0x2ab7dc(0x1e4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x6a9249['t'](_0x2ab7dc(0x12a))}),jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1fe),'children':[jsxs('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[jsx('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x16d),'children':[jsx(_0x2ab7dc(0x1e4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2ab7dc(0x173)}),jsx('div',{'className':_0x2ab7dc(0x11f),'children':_0x6a9249['t']('mcpConfig.sessionIdDescription')})]})]}),jsxs(_0x2ab7dc(0x1e4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[jsx(_0x2ab7dc(0x1e4),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),jsxs(_0x2ab7dc(0x1e4),{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x2ab7dc(0x1e4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2ab7dc(0x1b4)}),jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x11f),'children':_0x6a9249['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),jsx(Button,{'onClick':_0x50aa73,'disabled':!_0x220279||loading,'className':_0x2ab7dc(0x165),'children':loading?jsxs('span',{'className':_0x2ab7dc(0x1a3),'children':[jsx(_0x2ab7dc(0x216),{'children':'⟲'}),_0x6a9249['t'](_0x2ab7dc(0x1b3))]}):jsxs('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[jsx(CheckMarkIcon,{}),_0x6a9249['t']('mcpConfig.save')]})}),jsx(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x1b2),'children':jsxs(_0x2ab7dc(0x1e4),{'className':_0x2ab7dc(0x14b),'children':[jsx(_0x2ab7dc(0x216),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),jsxs(_0x2ab7dc(0x1e4),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[jsx('div',{'className':_0x2ab7dc(0x142),'children':_0x2ab7dc(0x1c0)}),jsxs(_0x2ab7dc(0x1e4),{'children':['•',_0x6a9249['t'](_0x2ab7dc(0x146))]}),jsxs(_0x2ab7dc(0x1e4),{'children':['•',_0x6a9249['t']('mcpConfig.note2')]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x554d16(0x1c2),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0xab19a5){'@babel/helpers - typeof';const _0xe88626=_0x554d16;return _typeof=_0xe88626(0x159)==typeof Symbol&&_0xe88626(0x1bf)==typeof Symbol[_0xe88626(0x119)]?function(_0x405d0e){return typeof _0x405d0e;}:function(_0x16196d){const _0x2a6a30=_0xe88626;return _0x16196d&&_0x2a6a30(0x159)==typeof Symbol&&_0x16196d[_0x2a6a30(0x1a7)]===Symbol&&_0x16196d!==Symbol[_0x2a6a30(0x19d)]?_0x2a6a30(0x1bf):typeof _0x16196d;},_typeof(_0xab19a5);}function toPrimitive(_0x14ec30,_0x260258){const _0x1b36d1=_0x554d16;if('object'!=_typeof(_0x14ec30)||!_0x14ec30)return _0x14ec30;var _0x5b3792=_0x14ec30[Symbol[_0x1b36d1(0x11a)]];if(void 0x0!==_0x5b3792){var _0x30f0bc=_0x5b3792['call'](_0x14ec30,_0x260258||'default');if(_0x1b36d1(0x206)!=_typeof(_0x30f0bc))return _0x30f0bc;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b36d1(0x16f)===_0x260258?String:Number)(_0x14ec30);}function toPropertyKey(_0x19f929){const _0x1bcf0a=_0x554d16;var _0x55b62b=toPrimitive(_0x19f929,_0x1bcf0a(0x16f));return _0x1bcf0a(0x1bf)==_typeof(_0x55b62b)?_0x55b62b:_0x55b62b+'';}function _defineProperty(_0xaf1855,_0x30871b,_0x52665f){const _0x2f8b93=_0x554d16;return(_0x30871b=toPropertyKey(_0x30871b))in _0xaf1855?Object[_0x2f8b93(0x113)](_0xaf1855,_0x30871b,{'value':_0x52665f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xaf1855[_0x30871b]=_0x52665f,_0xaf1855;}function __decorateParam(_0x1eeb28,_0x40df26){return function(_0x1fcdaa,_0x2ad7a3){_0x40df26(_0x1fcdaa,_0x2ad7a3,_0x1eeb28);};}function __decorate(_0x539f28,_0xaffa6f,_0x5474fd,_0x5f19c0){const _0x1d18bd=_0x554d16;var _0x2623bc=arguments['length'],_0x4fa874=_0x2623bc<0x3?_0xaffa6f:_0x5f19c0===null?_0x5f19c0=Object[_0x1d18bd(0x1fd)](_0xaffa6f,_0x5474fd):_0x5f19c0,_0x52c6c7;if(typeof Reflect===_0x1d18bd(0x206)&&typeof Reflect[_0x1d18bd(0x190)]===_0x1d18bd(0x159))_0x4fa874=Reflect[_0x1d18bd(0x190)](_0x539f28,_0xaffa6f,_0x5474fd,_0x5f19c0);else{for(var _0xaac216=_0x539f28[_0x1d18bd(0x1a1)]-0x1;_0xaac216>=0x0;_0xaac216--)if(_0x52c6c7=_0x539f28[_0xaac216])_0x4fa874=(_0x2623bc<0x3?_0x52c6c7(_0x4fa874):_0x2623bc>0x3?_0x52c6c7(_0xaffa6f,_0x5474fd,_0x4fa874):_0x52c6c7(_0xaffa6f,_0x5474fd))||_0x4fa874;}return _0x2623bc>0x3&&_0x4fa874&&Object[_0x1d18bd(0x113)](_0xaffa6f,_0x5474fd,_0x4fa874),_0x4fa874;}const MCP_API_KEY_STORAGE_KEY=_0x554d16(0x107),MCP_CONFIG_DIALOG_ID='mcp-config-dialog';let MCPConfigUIController=class MCPConfigUIController extends Disposable{constructor(_0x49b4bc,_0xcb71ac,_0x47da6c,_0x267d33,_0x43d187,_0xca6dd1,_0x4a60e3,_0x472da5,_0x49dad2,_0x159256){const _0x3bcd16=_0x554d16;super(),this['_injector']=_0x49b4bc,this[_0x3bcd16(0x182)]=_0xcb71ac,this[_0x3bcd16(0x19a)]=_0x47da6c,this[_0x3bcd16(0x1c3)]=_0x267d33,this['_dialogService']=_0x43d187,this['_messageService']=_0xca6dd1,this[_0x3bcd16(0x1ff)]=_0x4a60e3,this[_0x3bcd16(0x1cc)]=_0x472da5,this[_0x3bcd16(0x20a)]=_0x49dad2,this[_0x3bcd16(0x10a)]=_0x159256,_defineProperty(this,_0x3bcd16(0x17b),new BehaviorSubject(![])),_defineProperty(this,_0x3bcd16(0x1d6),new BehaviorSubject({})),_defineProperty(this,_0x3bcd16(0x179),new BehaviorSubject({})),_defineProperty(this,_0x3bcd16(0x19c),new BehaviorSubject('')),_defineProperty(this,_0x3bcd16(0x17d),async _0x14130c=>{const _0x1ea3c6=_0x3bcd16;this[_0x1ea3c6(0x17b)][_0x1ea3c6(0x136)](!![]);try{var _0x240252,_0x309c8b;const _0x4dc4d1=await this[_0x1ea3c6(0x130)](_0x14130c);if(!_0x4dc4d1[_0x1ea3c6(0x1ae)]){this[_0x1ea3c6(0x195)][_0x1ea3c6(0x1b6)]({'type':MessageType[_0x1ea3c6(0x10e)],'content':_0x4dc4d1['errorMessage']||this[_0x1ea3c6(0x1cc)]['t']('mcpConfig.validation.invalidConfig')});return;}if(_0x14130c[_0x1ea3c6(0x1aa)])await this[_0x1ea3c6(0x1c3)][_0x1ea3c6(0x144)](MCP_API_KEY_STORAGE_KEY,_0x14130c[_0x1ea3c6(0x1aa)][_0x1ea3c6(0x1d4)]());else await this[_0x1ea3c6(0x1c3)][_0x1ea3c6(0x180)](MCP_API_KEY_STORAGE_KEY);this[_0x1ea3c6(0x19c)][_0x1ea3c6(0x136)](((_0x240252=_0x14130c[_0x1ea3c6(0x1aa)])===null||_0x240252===void 0x0?void 0x0:_0x240252[_0x1ea3c6(0x1d4)]())||''),this[_0x1ea3c6(0x10a)][_0x1ea3c6(0x14d)]({'Authorization':'Bearer\x20'+((_0x309c8b=_0x14130c[_0x1ea3c6(0x1aa)])===null||_0x309c8b===void 0x0?void 0x0:_0x309c8b[_0x1ea3c6(0x1d4)]())}),this[_0x1ea3c6(0x195)][_0x1ea3c6(0x1b6)]({'type':MessageType[_0x1ea3c6(0x123)],'content':this[_0x1ea3c6(0x1cc)]['t'](_0x1ea3c6(0x204))}),setTimeout(()=>{const _0x463495=_0x1ea3c6;this[_0x463495(0x158)][_0x463495(0x12e)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0xd3f12c){this[_0x1ea3c6(0x20a)][_0x1ea3c6(0x172)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0xd3f12c),this[_0x1ea3c6(0x195)]['show']({'type':MessageType[_0x1ea3c6(0x10e)],'content':this[_0x1ea3c6(0x1cc)]['t'](_0x1ea3c6(0x1ea))});}finally{this[_0x1ea3c6(0x17b)][_0x1ea3c6(0x136)](![]);}}),this[_0x3bcd16(0x18d)](),this[_0x3bcd16(0x1e3)](),this[_0x3bcd16(0x1a6)]();}[_0x554d16(0x1ad)](){const _0xb18740=_0x554d16,_0x1e9404=this[_0xb18740(0x19a)][_0xb18740(0x110)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x1e9404===null||_0x1e9404===void 0x0?void 0x0:_0x1e9404[_0xb18740(0x152)])this['_dialogService'][_0xb18740(0x1ab)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0xb18740(0x1cc)]['t'](_0xb18740(0x1f8))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x336f1b=_0xb18740;this[_0x336f1b(0x158)]['close'](MCP_CONFIG_DIALOG_ID);}});}[_0x554d16(0x184)](){const _0x363f7d=_0x554d16;return this[_0x363f7d(0x1d6)][_0x363f7d(0x191)];}[_0x554d16(0x1a6)](){const _0x4957db=_0x554d16;this[_0x4957db(0x1a9)](this[_0x4957db(0x1ff)]['register'](_0x4957db(0x1bc),this[_0x4957db(0x12d)]()));}['_createConfigPanelComponent'](){const _0x3d335d=_0x554d16;return connectInjector(()=>{const _0x5193ec=_0x1bd6;var _0x410767,_0x4b4b62,_0x28dfe6;return jsx(MCPConfigPanel,{'config':this[_0x5193ec(0x179)]['value'],'mcpCoreConfig':this[_0x5193ec(0x1d6)]['value'],'currentApiKey$':this[_0x5193ec(0x19c)],'onSave':this[_0x5193ec(0x17d)],'loading':this[_0x5193ec(0x17b)]['value'],'connectionStatus$':(_0x410767=this['_mcpConnectionController'])===null||_0x410767===void 0x0?void 0x0:_0x410767[_0x5193ec(0x19e)],'connectionError$':(_0x4b4b62=this[_0x5193ec(0x10a)])===null||_0x4b4b62===void 0x0?void 0x0:_0x4b4b62[_0x5193ec(0x16e)],'currentSessionId$':(_0x28dfe6=this[_0x5193ec(0x10a)])===null||_0x28dfe6===void 0x0?void 0x0:_0x28dfe6[_0x5193ec(0x20f)]});},this[_0x3d335d(0x12c)]);}[_0x554d16(0x18d)](){const _0x3cfb68=_0x554d16;this[_0x3cfb68(0x1a9)](this['_configService'][_0x3cfb68(0x208)](MCP_PLUGIN_CONFIG_KEY)[_0x3cfb68(0x1af)](_0x29592f=>{const _0x42e075=_0x3cfb68;this[_0x42e075(0x1d6)]['next'](_0x29592f||{});}));const _0x566e71=this['_configService']['getConfig'](MCP_PLUGIN_CONFIG_KEY);this['_mcpCoreConfig$'][_0x3cfb68(0x136)](_0x566e71||{}),this['disposeWithMe'](this[_0x3cfb68(0x19a)][_0x3cfb68(0x208)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x3cfb68(0x1af)](_0x43e84d=>{const _0x355805=_0x3cfb68;this[_0x355805(0x179)][_0x355805(0x136)](_0x43e84d||{});}));const _0x38a32e=this[_0x3cfb68(0x19a)][_0x3cfb68(0x110)](MCP_UI_PLUGIN_CONFIG_KEY);this[_0x3cfb68(0x179)][_0x3cfb68(0x136)](_0x38a32e||{});}async[_0x554d16(0x1e3)](){const _0x49c68d=_0x554d16,_0x1d8811=this[_0x49c68d(0x19a)][_0x49c68d(0x110)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x1d8811===null||_0x1d8811===void 0x0?void 0x0:_0x1d8811[_0x49c68d(0x152)]))return;const _0x3af53c=await this[_0x49c68d(0x1c3)]['getItem'](MCP_API_KEY_STORAGE_KEY);_0x3af53c&&(this[_0x49c68d(0x10a)][_0x49c68d(0x14d)]({'Authorization':'Bearer\x20'+_0x3af53c}),this['_apiKey$'][_0x49c68d(0x136)](_0x3af53c));}async[_0x554d16(0x130)](_0x677494){const _0xe7841d=_0x554d16;if(!_0x677494[_0xe7841d(0x1aa)]||_0x677494[_0xe7841d(0x1aa)][_0xe7841d(0x1d4)]()[_0xe7841d(0x1a1)]===0x0)return{'isValid':![],'errorMessage':this[_0xe7841d(0x1cc)]['t'](_0xe7841d(0x175))};if(_0x677494[_0xe7841d(0x1aa)][_0xe7841d(0x1d4)]()[_0xe7841d(0x1a1)]<0xa)return{'isValid':![],'errorMessage':this[_0xe7841d(0x1cc)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x2f57d2=await this[_0xe7841d(0x12c)][_0xe7841d(0x14f)](MCPConnectionController)[_0xe7841d(0x118)](_0x677494[_0xe7841d(0x1aa)][_0xe7841d(0x1d4)]());if(!_0x2f57d2[_0xe7841d(0x1ae)])return{'isValid':![],'errorMessage':_0x2f57d2['error']||this[_0xe7841d(0x1cc)]['t'](_0xe7841d(0x103))};return{'isValid':!![]};}catch(_0x2301cc){return console[_0xe7841d(0x147)](_0xe7841d(0x106),_0x2301cc),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILocalStorageService),__decorateParam(0x4,IDialogService),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,Inject(LocaleService)),__decorateParam(0x8,ILogService),__decorateParam(0x9,Inject(MCPConnectionController))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x554d16(0x15b),'type':CommandType[_0x554d16(0x161)],'handler':async(_0x9e97ae,_0x5c2ce2)=>{const _0x3745aa=_0x554d16;return _0x9e97ae[_0x3745aa(0x14f)](MCPConfigUIController)[_0x3745aa(0x1ad)](),!![];}};function mapStatusToI18NKey(_0x3c3a24,_0x58ffbc){const _0x2aa891=_0x554d16;switch(_0x3c3a24){case MCPConnectionStatus[_0x2aa891(0x1f7)]:return _0x2aa891(0x183);case MCPConnectionStatus['CONNECTING']:return'mcpStatus.connecting';case MCPConnectionStatus[_0x2aa891(0x132)]:return _0x2aa891(0x112);case MCPConnectionStatus[_0x2aa891(0x13d)]:switch(_0x58ffbc){case MCPConnectionError[_0x2aa891(0x1a8)]:return'mcpStatus.unauthorized';case MCPConnectionError[_0x2aa891(0x1d3)]:return'mcpStatus.sessionOccupied';case MCPConnectionError['NETWORK_ERROR']:return _0x2aa891(0x18a);case MCPConnectionError[_0x2aa891(0x203)]:return'mcpStatus.maxRetriesExceeded';default:return _0x2aa891(0x1c8);}case MCPConnectionStatus['RETRYING']:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function getTooltipText(_0x1e48af,_0x10fec2,_0x138836,_0x59a676=!![]){const _0x83e429=_0x554d16,_0x5e9c9d=mapStatusToI18NKey(_0x1e48af,_0x10fec2),_0x48da6e=_0x138836['t'](_0x5e9c9d);if(!_0x59a676)return _0x48da6e;if(_0x1e48af===MCPConnectionStatus[_0x83e429(0x1f7)]&&_0x10fec2===MCPConnectionError[_0x83e429(0x1a8)])return _0x48da6e+_0x83e429(0x16b)+_0x138836['t']('mcpStatus.clickToConfigure');else{if(_0x1e48af===MCPConnectionStatus['CONNECTED'])return''+_0x48da6e;else{if(_0x1e48af===MCPConnectionStatus[_0x83e429(0x1f7)]||_0x1e48af===MCPConnectionStatus[_0x83e429(0x13d)])return _0x48da6e+_0x83e429(0x16b)+_0x138836['t'](_0x83e429(0x149));}}return _0x48da6e;}function _0x3987(){const _0x309fc8=['univer-space-y-3','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_dialogService','function','MCP\x20已连接','mcp-ui.command.openConfigPanel','univer-size-2\x20univer-rounded-full','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','重连中...','几秒钟内获取您的\x20API\x20密钥','8132424QWOcHy','COMMAND','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.configStep3','保存配置','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','<API_KEY>','mcpConfig.apiApplyInfo.getStarted','button','API\x20key\x20with\x20Bearer\x20prefix.','MCP_UI_PLUGIN','\x20-\x20','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-min-w-0\x20univer-flex-1','connectionError$','string','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','复制以下\x20JSON\x20配置','error','univer_session_id:','点击配置\x20MCP','mcpConfig.validation.apiKeyRequired','您的\x20API\x20密钥将在此浏览器中本地存储','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','权限验证失败,请检查您的\x20API\x20密钥','_config$','Configuration\x20saved\x20successfully','_loading$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_handleConfigSave','MCP\x20Client\x20Configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','removeItem','mcpServerUrl','_uiPartsService','mcpStatus.disconnected','getCurrentConfig','_initAutoConnect','univer-flex-1','text','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-shrink-0\x20univer-text-red-500','mcpStatus.networkError','会话\x20ID\x20已被占用,请稍后再试','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_initConfigSync','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','decorate','value','setConfig','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20Connecting...','_messageService','Connection\x20Failed','onStarting','OTHERS','mcpConfig.apiApplyInfo.title','_configService','univer-bg-green-500','_apiKey$','prototype','connectionStatus$','univer-text-xs\x20univer-text-gray-600','mcpConfig.configStepTitle','length','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-flex\x20univer-items-center\x20univer-gap-2','配置\x20MCP\x20使用\x20AI\x20操作电子表格','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','_registerComponent','constructor','UNAUTHORIZED','disposeWithMe','apiKey','open','mcpConfig.configStep1','showConfigPanel','isValid','subscribe','Click\x20to\x20connect\x20MCP','has','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.saving','Authorization:','Disconnected','show','@univerjs-pro/mcp-ui','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-red-500','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.networkError','MCPConfigPanel','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','17365600vrofLo','symbol','Configuration\x20Notes:','API\x20密钥长度至少需要\x2010\x20位','mcp-ui.config','_localStorageService','MCP\x20客户端配置','MCP\x20配置','mcpConfig.apiApplyInfo.univerAiLabel','packageName','mcpStatus.failed','API\x20密钥无效,请检查密钥是否正确','Bearer\x20','What\x20is\x20API\x20Key?','_localeService','超出最大重试次数,请稍后再试','mcpConfig.description','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','https://console.univer.plus','https://mcp.univer.ai/mcp/?univer_session_id=','SESSION_ID_OCCUPIED','trim','univer-bg-red-500','_mcpCoreConfig$','showStatus','univer-text-sm\x20univer-text-gray-500','univer-bg-blue-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Enter\x20your\x20API\x20key','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer.plus','配置保存成功','RETRYING','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','连接失败','Connected','_loadStoredApiKey','div','_initStatusComponent','MCP:\x20Unauthorized','http','1143891ieNLEg','已连接','mcpConfig.configError','MCP:\x20网络错误','_initializeMenus','MCP\x20Connection\x20Failed','univer-bg-gray-500','univer.ai','univer-text-yellow-500','Save\x20Configuration','_initializeCommands','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','连接中...','mcpConfig.connectionStatus.retrying','NONE','DISCONNECTED','mcpConfig.title','MCP\x20Unknown\x20Status','_menuManagerService','enableAutoConnect','MCP:\x20Network\x20Error','getOwnPropertyDescriptor','univer-space-y-2','_componentManager','1107678qXEpDf','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','MAX_RETRIES_EXCEEDED','mcpConfig.configSaved','pluginName','object','_commandService','subscribeConfigValue$','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_logService','Get\x20your\x20API\x20key\x20in\x20seconds','配置无效','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.apiKey','sessionId$','MCP\x20状态未知','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Univer\x20AI\x20控制台','mcpConfig.apiKeyHint','mcpConfig.connectionStatus.failed','MCP\x20Configuration','span','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','网络连接错误,请检查您的网络连接','univer-text-blue-600','CONNECTING','https://console.univer.ai','MCP:\x20Max\x20Retries\x20Exceeded','配置步骤:','mcpConfig.validation.invalidApiKey','mcpConfig.apiApplyInfo.description','配置保存失败','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcp.apiKey','最大重试次数','univer-mr-2\x20univer-flex\x20univer-text-xl','_mcpConnectionController','BUTTON','MCP\x20连接失败','点击连接\x20MCP','Error','请输入您的\x20API\x20密钥','getConfig','MCP:\x20未授权','mcpStatus.connected','defineProperty','mcpConfig.configInstructions','univer-text-sm\x20univer-font-medium','univer-text-gray-400','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','validateApiKey','iterator','toPrimitive','会话ID','mergeMenu','API\x20密钥','MCP\x20Retrying...','univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-2','forEach','什么是\x20API\x20密钥?','Success','_connectionController','mcpConfig.configStep2','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','Invalid\x20configuration','MCP\x20Disconnected','MCP\x20已断开','mcpConfig.configParameters','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_injector','_createConfigPanelComponent','close','pre','_validateConfig','includes','CONNECTED','MCP:\x20超出最大重试次数','univer-text-white','univer-flex\x20univer-items-center','next','Univer\x20AI\x20Console','Enable\x20Authentication','_handleConfigure','version','启用身份验证','_blank','FAILED','重启您的\x20MCP\x20客户端以使配置生效','<SESSION_ID>','Click\x20to\x20configure\x20MCP','univer-space-y-5','univer-font-medium','push','setItem','4dDihIT','mcpConfig.note1','warn','off','mcpStatus.clickToConnect','add','univer-flex\x20univer-gap-3','479924oCgXct','__setCustomHeaders','3232334btXmBx','get','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Retrying...','showDeveloperTools','2588695dLDKGM','NETWORK_ERROR'];_0x3987=function(){return _0x309fc8;};return _0x3987();}function getStatusColor(_0x2c9faa){const _0x15d2f5=_0x554d16;switch(_0x2c9faa){case MCPConnectionStatus['CONNECTED']:return'univer-text-green-500';case MCPConnectionStatus[_0x15d2f5(0xff)]:case MCPConnectionStatus[_0x15d2f5(0x1df)]:return _0x15d2f5(0x1f0);case MCPConnectionStatus[_0x15d2f5(0x13d)]:case MCPConnectionStatus[_0x15d2f5(0x1f7)]:return _0x15d2f5(0x1b9);default:return'univer-text-gray-500';}}function MCPStatusDisplay(_0x206c50){const _0x5495f8=_0x554d16,{status$:_0x16d76d,error$:_0x1b235d,onConfigure:_0x4f7b91,showClickable:showClickable=!![]}=_0x206c50,_0x7e6baa=useObservable(_0x16d76d,MCPConnectionStatus[_0x5495f8(0x1f7)]),_0x6b514b=useObservable(_0x1b235d,MCPConnectionError[_0x5495f8(0x1f6)]),_0x59d2db=useDependency(LocaleService),_0x32fcac=_0x7e6baa===MCPConnectionStatus['CONNECTED'];_0x7e6baa===MCPConnectionStatus[_0x5495f8(0xff)]||MCPConnectionStatus[_0x5495f8(0x1df)];const _0x3d41b2=_0x59d2db['t'](mapStatusToI18NKey(_0x7e6baa,_0x6b514b)),_0x39801c=getTooltipText(_0x7e6baa,_0x6b514b,_0x59d2db,showClickable),_0xdfbc31=getStatusColor(_0x7e6baa),_0x535567=_0x32fcac?jsx(OnLineIcon,{}):jsx(OffLineIcon,{}),_0xc9ec37=useCallback(()=>{if(showClickable&&_0x4f7b91)_0x4f7b91();},[showClickable,_0x4f7b91]);function _0x4acb47(){const _0x245f68=_0x5495f8;return jsxs(_0x245f68(0x1e4),{'className':clsx(_0x245f68(0x135),showClickable&&_0x4f7b91&&'\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':_0x245f68(0x168),'onClick':showClickable&&_0x4f7b91?_0xc9ec37:void 0x0,'children':[jsx(_0x245f68(0x1e4),{'className':clsx(_0x245f68(0x109),_0xdfbc31),'children':_0x535567}),jsx(_0x245f68(0x1e4),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3d41b2})]});}return jsx(Tooltip,{'title':_0x39801c,'placement':'bottom','children':_0x4acb47()});}let MCPConnectionUIController=class MCPConnectionUIController extends Disposable{constructor(_0x5b363f,_0x15e731,_0x342b4e,_0x49442b){const _0x3f3099=_0x554d16;super(),this[_0x3f3099(0x12c)]=_0x5b363f,this['_connectionController']=_0x15e731,this['_uiPartsService']=_0x342b4e,this[_0x3f3099(0x19a)]=_0x49442b,this[_0x3f3099(0x185)](),this['_initStatusComponent']();}[_0x554d16(0x185)](){const _0x2f4747=_0x554d16,_0x26725b=this['_configService']['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x26725b===null||_0x26725b===void 0x0?void 0x0:_0x26725b['showDeveloperTools'])this[_0x2f4747(0x124)][_0x2f4747(0x1fb)]=![];}[_0x554d16(0x1e5)](){const _0x53412a=_0x554d16,_0x18f2cc=this['_configService']['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x18f2cc===null||_0x18f2cc===void 0x0?void 0x0:_0x18f2cc[_0x53412a(0x1d7)])!==![])this[_0x53412a(0x1a9)](this['_uiPartsService']['registerComponent'](BuiltInUIPart['HEADER_MENU'],()=>{const _0x2a9b2e=_0x53412a;var _0x1210f0;return connectInjector(passProps({'status$':this[_0x2a9b2e(0x124)]['connectionStatus$'],'error$':this[_0x2a9b2e(0x124)][_0x2a9b2e(0x16e)],'onConfigure':()=>this[_0x2a9b2e(0x139)](),'showClickable':(_0x1210f0=_0x18f2cc===null||_0x18f2cc===void 0x0?void 0x0:_0x18f2cc['showDeveloperTools'])!==null&&_0x1210f0!==void 0x0?_0x1210f0:![]}),this['_injector']);}));}[_0x554d16(0x139)](){const _0x59eca3=_0x554d16;this[_0x59eca3(0x12c)][_0x59eca3(0x14f)](MCPConfigUIController)['showConfigPanel']();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(MCPConnectionController)),__decorateParam(0x2,IUIPartsService),__decorateParam(0x3,IConfigService)],MCPConnectionUIController);function passProps(_0x53cf7){const {status$:_0x2aa8d0,error$:_0xa23b7e,onConfigure:_0x4ebb34,showClickable:_0x43d6ef}=_0x53cf7;return function _0x4d99d0(){return jsx(MCPStatusDisplay,{'status$':_0x2aa8d0,'error$':_0xa23b7e,'onConfigure':_0x4ebb34,'showClickable':_0x43d6ef});};}function MCPConfigMenuItemFactory(_0x2de0d1){const _0xcccf30=_0x554d16;return{'id':OpenMCPConfigPanelCommand['id'],'type':MenuItemType[_0xcccf30(0x10b)],'icon':'MenuIcon','title':_0xcccf30(0x1f8),'tooltip':_0xcccf30(0x1f8)};}const menuSchema={[RibbonStartGroup[_0x554d16(0x198)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends Disposable{constructor(_0x5941e6,_0x3d29dd){const _0x5c6d9f=_0x554d16;super(),this['_commandService']=_0x5941e6,this[_0x5c6d9f(0x1fa)]=_0x3d29dd,this[_0x5c6d9f(0x1f2)](),this[_0x5c6d9f(0x1ec)]();}['_initializeCommands'](){const _0x6d43ba=_0x554d16;[OpenMCPConfigPanelCommand][_0x6d43ba(0x121)](_0xd8618f=>{const _0x251c64=_0x6d43ba;this['disposeWithMe'](this[_0x251c64(0x207)]['registerCommand'](_0xd8618f));});}[_0x554d16(0x1ec)](){const _0x2d924d=_0x554d16;this['_menuManagerService'][_0x2d924d(0x11c)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService)],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x554d16(0x128),'connecting':_0x554d16(0x194),'connected':'MCP\x20Connected','failed':_0x554d16(0x1ed),'retrying':_0x554d16(0x11e),'unknown':_0x554d16(0x1f9),'unauthorized':_0x554d16(0x1e6),'sessionOccupied':_0x554d16(0x20d),'networkError':_0x554d16(0x1fc),'maxRetriesExceeded':_0x554d16(0x101),'clickToConnect':_0x554d16(0x1b0),'clickToConfigure':_0x554d16(0x140)},'mcpConfig':{'title':_0x554d16(0x215),'description':_0x554d16(0x117),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x554d16(0x1db),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x554d16(0x138),'enableAuthHint':_0x554d16(0x1d0),'connectionInfo':_0x554d16(0x17e),'mcpClientConfig':_0x554d16(0x17e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x554d16(0x1cf),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x554d16(0x169),'configParameters':_0x554d16(0x202),'maxRetries':'Max\x20Retries','save':_0x554d16(0x1f1),'saving':'Saving...','note1':_0x554d16(0x217),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x554d16(0x17a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x554d16(0x1cb),'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':_0x554d16(0x137),'getStarted':_0x554d16(0x20b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x554d16(0x209),'invalidConfig':_0x554d16(0x127),'invalidApiKey':_0x554d16(0x201)},'connectionStatus':{'disconnected':_0x554d16(0x1b5),'connecting':_0x554d16(0x156),'connected':_0x554d16(0x1e2),'failed':_0x554d16(0x196),'retrying':_0x554d16(0x151)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x554d16(0x157),'maxRetriesExceeded':_0x554d16(0x18e)}}},locale$1={'mcpStatus':{'disconnected':_0x554d16(0x129),'connecting':'MCP\x20连接中...','connected':_0x554d16(0x15a),'failed':_0x554d16(0x10c),'retrying':'MCP\x20重连中...','unknown':_0x554d16(0x210),'unauthorized':_0x554d16(0x111),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x554d16(0x1eb),'maxRetriesExceeded':_0x554d16(0x133),'clickToConnect':_0x554d16(0x10d),'clickToConfigure':_0x554d16(0x174)},'mcpConfig':{'title':_0x554d16(0x1c5),'description':_0x554d16(0x1a4),'apiKey':_0x554d16(0x11d),'apiKeyPlaceholder':_0x554d16(0x10f),'apiKeyHint':_0x554d16(0x176),'enableAuth':_0x554d16(0x13b),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x554d16(0x1c4),'mcpClientConfig':_0x554d16(0x1c4),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x554d16(0x102),'configStep1':_0x554d16(0x171),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x554d16(0x13e),'sessionId':_0x554d16(0x11b),'sessionIdDescription':_0x554d16(0x1f3),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x554d16(0x108),'save':_0x554d16(0x164),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x554d16(0x1de),'configError':_0x554d16(0x105),'apiApplyInfo':{'title':_0x554d16(0x122),'description':_0x554d16(0x17f),'univerAiLabel':_0x554d16(0x212),'getStarted':_0x554d16(0x15f)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x554d16(0x1c1),'invalidConfig':_0x554d16(0x20c),'invalidApiKey':_0x554d16(0x1c9)},'connectionStatus':{'disconnected':'未连接','connecting':_0x554d16(0x1f4),'connected':_0x554d16(0x1e9),'failed':_0x554d16(0x1e1),'retrying':_0x554d16(0x15e)},'connectionError':{'unauthorized':_0x554d16(0x178),'sessionOccupied':_0x554d16(0x18b),'networkError':_0x554d16(0x218),'maxRetriesExceeded':_0x554d16(0x1cd)}}};var name=_0x554d16(0x1b7),version='0.21.0';let UniverMCPUIPlugin=class UniverMCPUIPlugin extends Plugin{constructor(_0x4ff1dd=defaultPluginConfig,_0x39ce3c,_0x141b06,_0x3fa55e,_0x280ef1,_0x45ebb9){const _0x53e7e6=_0x554d16;super(),this['_config']=_0x4ff1dd,this[_0x53e7e6(0x12c)]=_0x39ce3c,this['_configService']=_0x141b06,this[_0x53e7e6(0x182)]=_0x3fa55e,this[_0x53e7e6(0x1c3)]=_0x280ef1,this[_0x53e7e6(0x1cc)]=_0x45ebb9;const {..._0x4f8388}=merge({},defaultPluginConfig,this['_config']);this[_0x53e7e6(0x19a)][_0x53e7e6(0x192)](MCP_UI_PLUGIN_CONFIG_KEY,_0x4f8388);}async[_0x554d16(0x197)](){const _0x65462e=_0x554d16,_0x3e508=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this['_injector'][_0x65462e(0x1b1)](ISocketService))_0x3e508[_0x65462e(0x143)]([ISocketService,{'useClass':WebSocketService}]);_0x3e508['forEach'](_0x1f819b=>this[_0x65462e(0x12c)][_0x65462e(0x14a)](_0x1f819b)),this[_0x65462e(0x12c)][_0x65462e(0x14f)](MCPConnectionUIController),this[_0x65462e(0x12c)][_0x65462e(0x14f)](MCPConfigUIController),this['_injector']['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x554d16(0x205),_0x554d16(0x16a)),_defineProperty(UniverMCPUIPlugin,_0x554d16(0x1c7),name),_defineProperty(UniverMCPUIPlugin,_0x554d16(0x13a),version),UniverMCPUIPlugin=__decorate([DependentOn(UniverMCPPlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,IUIPartsService),__decorateParam(0x4,ILocalStorageService),__decorateParam(0x5,Inject(LocaleService))],UniverMCPUIPlugin);export{MCPConfigPanel,MCPConfigUIController,MCPConnectionUIController,MCPStatusDisplay,MCPUIMenuController,OpenMCPConfigPanelCommand,UniverMCPUIPlugin,locale as enUS,locale$1 as zhCN};
|
|
1
|
+
const _0x435cce=_0x1acc;(function(_0x54e967,_0x2af489){const _0x285859=_0x1acc,_0x16225f=_0x54e967();while(!![]){try{const _0x277220=parseInt(_0x285859(0x162))/0x1*(parseInt(_0x285859(0x1af))/0x2)+parseInt(_0x285859(0x23c))/0x3*(-parseInt(_0x285859(0x1b8))/0x4)+-parseInt(_0x285859(0x1dc))/0x5*(parseInt(_0x285859(0x166))/0x6)+-parseInt(_0x285859(0x183))/0x7*(-parseInt(_0x285859(0x15b))/0x8)+parseInt(_0x285859(0x201))/0x9+parseInt(_0x285859(0x233))/0xa*(-parseInt(_0x285859(0x1b3))/0xb)+parseInt(_0x285859(0x10f))/0xc;if(_0x277220===_0x2af489)break;else _0x16225f['push'](_0x16225f['shift']());}catch(_0x137b4d){_0x16225f['push'](_0x16225f['shift']());}}}(_0x1a70,0x1a947));import{CommandType,DependentOn,Disposable,ICommandService,IConfigService,ILocalStorageService,ILogService,Inject,Injector,LocaleService,Plugin,merge}from'@univerjs/core';import{MCPConnectionController,MCPConnectionError,MCPConnectionStatus,MCP_PLUGIN_CONFIG_KEY,UniverMCPPlugin}from'@univerjs-pro/mcp';import{Button,Input,MessageType,Tooltip,clsx}from'@univerjs/design';import{BuiltInUIPart,ComponentManager,IDialogService,IMenuManagerService,IMessageService,IUIPartsService,MenuItemType,RibbonStartGroup,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject}from'rxjs';import{CheckMarkIcon,CloseIcon,HelpIcon,OffLineIcon,OnLineIcon}from'@univerjs/icons';import{useCallback,useState}from'react';import{jsx,jsxs}from'react/jsx-runtime';import{ISocketService,WebSocketService}from'@univerjs/network';function MCPConfigPanel(_0x1f3e90){const _0x1d2a4f=_0x1acc;var _0x27f98c,_0x3b1b7b;const {mcpCoreConfig:_0x2718d7,onSave:_0x26ce58,loading:loading=![],config:_0x3e0a61,connectionStatus$:_0x5727b3,connectionError$:_0x413554,currentApiKey$:_0x294172,currentSessionId$:_0x592d07}=_0x1f3e90,_0x444ac6=useDependency(LocaleService),_0x5c640d=useObservable(_0x5727b3,MCPConnectionStatus[_0x1d2a4f(0x23a)]),_0x2f5d27=useObservable(_0x413554,MCPConnectionError[_0x1d2a4f(0x151)]),_0x167b03=useObservable(_0x592d07,''),[_0x1c9c3b,_0x320193]=useState(useObservable(_0x294172,'')||''),_0x5717c8=!![],_0x48f7f2=_0x3e0a61[_0x1d2a4f(0x193)]&&_0x2718d7[_0x1d2a4f(0x216)]&&(_0x2718d7[_0x1d2a4f(0x216)]['includes'](_0x1d2a4f(0x1b0))||_0x2718d7[_0x1d2a4f(0x216)][_0x1d2a4f(0x1fa)]('univer.ai')),_0x25db2e=(_0x27f98c=_0x2718d7[_0x1d2a4f(0x216)])===null||_0x27f98c===void 0x0?void 0x0:_0x27f98c[_0x1d2a4f(0x1fa)]('univer.plus'),_0x11d693=(_0x3b1b7b=_0x2718d7[_0x1d2a4f(0x216)])===null||_0x3b1b7b===void 0x0?void 0x0:_0x3b1b7b[_0x1d2a4f(0x1fa)](_0x1d2a4f(0x114)),_0x27137e=_0x25db2e?_0x1d2a4f(0x130):_0x1d2a4f(0x238),_0xb9674a=_0x3e0a61[_0x1d2a4f(0x193)]&&(_0x25db2e||_0x11d693),[_0x5f598b,_0x126067]=useState(!_0x1c9c3b[_0x1d2a4f(0x236)]()),_0xe43bb8=(_0x4578e5,_0x156a08)=>{const _0x4b5166=_0x1d2a4f;if(_0x156a08===MCPConnectionError['UNAUTHORIZED'])return _0x4b5166(0x1ce);switch(_0x4578e5){case MCPConnectionStatus[_0x4b5166(0x19e)]:return _0x4b5166(0x239);case MCPConnectionStatus[_0x4b5166(0x206)]:case MCPConnectionStatus[_0x4b5166(0x1d3)]:return _0x4b5166(0x137);case MCPConnectionStatus[_0x4b5166(0x1e5)]:return _0x4b5166(0x1ce);default:return _0x4b5166(0x23f);}},_0x384a9d=(_0x1944bb,_0x3906be)=>{const _0x467eae=_0x1d2a4f;if(_0x3906be===MCPConnectionError['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x1944bb){case MCPConnectionStatus[_0x467eae(0x19e)]:return _0x467eae(0x161);case MCPConnectionStatus[_0x467eae(0x206)]:case MCPConnectionStatus[_0x467eae(0x1d3)]:return _0x467eae(0x154);case MCPConnectionStatus['FAILED']:return _0x467eae(0x210);default:return _0x467eae(0x219);}},_0xac4fc3=_0x3abce5=>{const _0x1e3917=_0x1d2a4f;switch(_0x3abce5){case MCPConnectionStatus[_0x1e3917(0x19e)]:return _0x444ac6['t']('mcpConfig.connectionStatus.connected');case MCPConnectionStatus[_0x1e3917(0x206)]:return _0x444ac6['t'](_0x1e3917(0x1db));case MCPConnectionStatus[_0x1e3917(0x1e5)]:return _0x444ac6['t'](_0x1e3917(0x1d8));case MCPConnectionStatus[_0x1e3917(0x1d3)]:return _0x444ac6['t']('mcpConfig.connectionStatus.retrying');default:return _0x444ac6['t'](_0x1e3917(0x140));}},_0x331dc1=_0x1a58b1=>{const _0x6c1d10=_0x1d2a4f;switch(_0x1a58b1){case MCPConnectionError[_0x6c1d10(0x1ca)]:return _0x444ac6['t'](_0x6c1d10(0x232));case MCPConnectionError[_0x6c1d10(0x1c2)]:return _0x444ac6['t'](_0x6c1d10(0x10e));case MCPConnectionError[_0x6c1d10(0x244)]:return _0x444ac6['t'](_0x6c1d10(0x23d));case MCPConnectionError[_0x6c1d10(0x1b4)]:return _0x444ac6['t'](_0x6c1d10(0x242));default:return'';}},_0x4c98c7=useCallback(()=>{const _0x4d7dd6=_0x1d2a4f;_0x26ce58({..._0x2718d7,'apiKey':_0x1c9c3b[_0x4d7dd6(0x236)](),'enableAuth':_0x5717c8});},[_0x2718d7,_0x1c9c3b,_0x5717c8,_0x26ce58]),_0x505b86=_0x1c9c3b[_0x1d2a4f(0x236)]()[_0x1d2a4f(0x18c)]>0x0;return jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x22a),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x163),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x13b),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x128),'children':jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x21e),'children':'⚙'})}),jsx('div',{'children':jsx('p',{'className':_0x1d2a4f(0x1e3),'children':_0x444ac6['t']('mcpConfig.description')})})]})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x18f),'children':[jsx(_0x1d2a4f(0x1d6),{'className':clsx(_0x1d2a4f(0x1e2),_0xe43bb8(_0x5c640d,_0x2f5d27)),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1c3),'children':[jsx('div',{'className':clsx(_0x1d2a4f(0x1fb),_0x384a9d(_0x5c640d,_0x2f5d27))}),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x129),'children':_0xac4fc3(_0x5c640d)})]})}),_0x2f5d27!==MCPConnectionError[_0x1d2a4f(0x151)]&&(_0x5c640d===MCPConnectionStatus['FAILED']||_0x2f5d27===MCPConnectionError['UNAUTHORIZED'])&&jsx('div',{'className':_0x1d2a4f(0x172),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x217),'children':[jsx(_0x1d2a4f(0x16e),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),jsx('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x331dc1(_0x2f5d27)})]})})]}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x214),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x234),'children':[jsxs('div',{'className':_0x1d2a4f(0x171),'children':[jsxs(_0x1d2a4f(0x1fc),{'className':_0x1d2a4f(0x21f),'children':[jsx(_0x1d2a4f(0x16e),{'children':'🔑'}),'\x20',_0x444ac6['t'](_0x1d2a4f(0x146)),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x189),'children':'*'}),_0x48f7f2&&jsx('a',{'className':_0x1d2a4f(0x204),'title':_0x444ac6['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x126067(!![]),'children':jsx(HelpIcon,{})})]}),jsx(Input,{'type':'text','placeholder':_0x444ac6['t'](_0x1d2a4f(0x195)),'value':_0x1c9c3b,'disabled':loading,'autoComplete':_0x1d2a4f(0x194),'onChange':_0x320193}),jsx('p',{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x1fd))})]}),_0x48f7f2&&_0x5f598b&&jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x136),'children':[jsx('a',{'className':_0x1d2a4f(0x20b),'role':_0x1d2a4f(0x144),'onClick':()=>_0x126067(![]),'children':jsx(CloseIcon,{'className':_0x1d2a4f(0x15a)})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x16c),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':jsx('span',{'className':_0x1d2a4f(0x1e4),'children':'🚀'})}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-flex-1','children':[jsx('h4',{'className':_0x1d2a4f(0x1e7),'children':_0x444ac6['t'](_0x1d2a4f(0x18d))}),jsx('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x444ac6['t'](_0x1d2a4f(0x159))}),jsx(_0x1d2a4f(0x1d6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0xb9674a&&jsxs('a',{'className':_0x1d2a4f(0x222),'href':_0x27137e,'target':_0x1d2a4f(0x10c),'rel':_0x1d2a4f(0x19f),'children':[jsx(_0x1d2a4f(0x16e),{'children':'🤖'}),_0x444ac6['t'](_0x1d2a4f(0x169)),jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x192),'children':'↗'})]})}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x14a),'children':['✨','\x20',_0x444ac6['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3e0a61['showDeveloperTools']&&jsxs('div',{'className':_0x1d2a4f(0x199),'children':[jsxs('h4',{'className':_0x1d2a4f(0x11f),'children':[jsx('span',{'children':'🔗'}),'\x20',_0x444ac6['t'](_0x1d2a4f(0x207))]}),jsxs('div',{'className':_0x1d2a4f(0x121),'children':[jsxs(_0x1d2a4f(0x1d6),{'className':'univer-space-y-3','children':[jsx('p',{'className':_0x1d2a4f(0x209),'children':_0x444ac6['t'](_0x1d2a4f(0x186))}),jsxs('div',{'className':_0x1d2a4f(0x171),'children':[jsx('div',{'className':_0x1d2a4f(0x1b5),'children':_0x444ac6['t']('mcpConfig.configStepTitle')}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[jsxs('div',{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'1'}),_0x444ac6['t']('mcpConfig.configStep1')]}),jsxs('div',{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'2'}),_0x444ac6['t'](_0x1d2a4f(0x1d0))]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x155),'children':'3'}),_0x444ac6['t'](_0x1d2a4f(0x182))]})]})]})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x171),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d2a4f(0x1f0)}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x11d),'children':jsx(_0x1d2a4f(0x230),{'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='+(_0x167b03||_0x1d2a4f(0x16b)),'type':_0x1d2a4f(0x22d),'headers':{'Authorization':'Bearer\x20'+(_0x1c9c3b||'<API_KEY>')}}}},null,0x2)})})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x225),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1b5),'children':_0x444ac6['t'](_0x1d2a4f(0x21a))}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x171),'children':[jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x174),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),jsxs(_0x1d2a4f(0x1d6),{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x181),'children':_0x1d2a4f(0x1e0)}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x220))})]})]}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x174),'children':[jsx('div',{'className':_0x1d2a4f(0x1c6)}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x147),'children':[jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x181),'children':_0x1d2a4f(0x123)}),jsx('div',{'className':_0x1d2a4f(0x1ab),'children':_0x444ac6['t'](_0x1d2a4f(0x1bc))})]})]})]})]})]})]}),jsx(Button,{'onClick':_0x4c98c7,'disabled':!_0x505b86||loading,'className':_0x1d2a4f(0x176),'children':loading?jsxs(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1c3),'children':[jsx(_0x1d2a4f(0x16e),{'children':'⟲'}),_0x444ac6['t'](_0x1d2a4f(0x1fe))]}):jsxs(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1c3),'children':[jsx(CheckMarkIcon,{}),_0x444ac6['t'](_0x1d2a4f(0x142))]})}),jsx(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x203),'children':jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x21d),'children':[jsx(_0x1d2a4f(0x16e),{'className':_0x1d2a4f(0x1d9),'children':'💡'}),jsxs(_0x1d2a4f(0x1d6),{'className':_0x1d2a4f(0x228),'children':[jsx(_0x1d2a4f(0x1d6),{'className':'univer-font-medium','children':_0x1d2a4f(0x141)}),jsxs('div',{'children':['•',_0x444ac6['t'](_0x1d2a4f(0x1a8))]}),jsxs(_0x1d2a4f(0x1d6),{'children':['•',_0x444ac6['t'](_0x1d2a4f(0x21b))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x435cce(0x115),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x4d4ed1){'@babel/helpers - typeof';const _0x1ffac7=_0x435cce;return _typeof=_0x1ffac7(0x1cc)==typeof Symbol&&_0x1ffac7(0x10d)==typeof Symbol[_0x1ffac7(0x111)]?function(_0x45aac9){return typeof _0x45aac9;}:function(_0x104985){const _0x5a0212=_0x1ffac7;return _0x104985&&'function'==typeof Symbol&&_0x104985[_0x5a0212(0x17b)]===Symbol&&_0x104985!==Symbol['prototype']?_0x5a0212(0x10d):typeof _0x104985;},_typeof(_0x4d4ed1);}function toPrimitive(_0x3f4909,_0x109cf6){const _0x39c1d3=_0x435cce;if(_0x39c1d3(0x173)!=_typeof(_0x3f4909)||!_0x3f4909)return _0x3f4909;var _0x430444=_0x3f4909[Symbol[_0x39c1d3(0x1a0)]];if(void 0x0!==_0x430444){var _0x4472ad=_0x430444['call'](_0x3f4909,_0x109cf6||_0x39c1d3(0x1ee));if(_0x39c1d3(0x173)!=_typeof(_0x4472ad))return _0x4472ad;throw new TypeError(_0x39c1d3(0x22f));}return(_0x39c1d3(0x223)===_0x109cf6?String:Number)(_0x3f4909);}function toPropertyKey(_0x27876e){const _0x3463b8=_0x435cce;var _0x5daf90=toPrimitive(_0x27876e,_0x3463b8(0x223));return _0x3463b8(0x10d)==_typeof(_0x5daf90)?_0x5daf90:_0x5daf90+'';}function _defineProperty(_0x11dcb2,_0x306c99,_0x41ee0d){const _0x4f2201=_0x435cce;return(_0x306c99=toPropertyKey(_0x306c99))in _0x11dcb2?Object[_0x4f2201(0x1d2)](_0x11dcb2,_0x306c99,{'value':_0x41ee0d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11dcb2[_0x306c99]=_0x41ee0d,_0x11dcb2;}function __decorateParam(_0x3dc7cb,_0x24bcbf){return function(_0x31b786,_0xa8e055){_0x24bcbf(_0x31b786,_0xa8e055,_0x3dc7cb);};}function __decorate(_0x52e5bd,_0x129d09,_0x2d62ac,_0x59e416){const _0x9a8423=_0x435cce;var _0x933580=arguments['length'],_0x3ec116=_0x933580<0x3?_0x129d09:_0x59e416===null?_0x59e416=Object[_0x9a8423(0x218)](_0x129d09,_0x2d62ac):_0x59e416,_0x261232;if(typeof Reflect===_0x9a8423(0x173)&&typeof Reflect[_0x9a8423(0x19b)]==='function')_0x3ec116=Reflect[_0x9a8423(0x19b)](_0x52e5bd,_0x129d09,_0x2d62ac,_0x59e416);else{for(var _0xe2dddf=_0x52e5bd[_0x9a8423(0x18c)]-0x1;_0xe2dddf>=0x0;_0xe2dddf--)if(_0x261232=_0x52e5bd[_0xe2dddf])_0x3ec116=(_0x933580<0x3?_0x261232(_0x3ec116):_0x933580>0x3?_0x261232(_0x129d09,_0x2d62ac,_0x3ec116):_0x261232(_0x129d09,_0x2d62ac))||_0x3ec116;}return _0x933580>0x3&&_0x3ec116&&Object[_0x9a8423(0x1d2)](_0x129d09,_0x2d62ac,_0x3ec116),_0x3ec116;}const MCP_API_KEY_STORAGE_KEY='mcp.apiKey',MCP_CONFIG_DIALOG_ID=_0x435cce(0x14e);let MCPConfigUIController=class MCPConfigUIController extends Disposable{constructor(_0x2916d3,_0x2496d6,_0x5de370,_0x511176,_0x4ca368,_0x3f3ecc,_0x3d3e13,_0x187093,_0xe82114,_0x5bd581){const _0x23067f=_0x435cce;super(),this[_0x23067f(0x1f4)]=_0x2916d3,this['_uiPartsService']=_0x2496d6,this[_0x23067f(0x198)]=_0x5de370,this[_0x23067f(0x187)]=_0x511176,this['_dialogService']=_0x4ca368,this[_0x23067f(0x143)]=_0x3f3ecc,this[_0x23067f(0x1c7)]=_0x3d3e13,this[_0x23067f(0x1a5)]=_0x187093,this[_0x23067f(0x23b)]=_0xe82114,this['_mcpConnectionController']=_0x5bd581,_defineProperty(this,_0x23067f(0x202),new BehaviorSubject(![])),_defineProperty(this,'_mcpCoreConfig$',new BehaviorSubject({})),_defineProperty(this,_0x23067f(0x22c),new BehaviorSubject({})),_defineProperty(this,_0x23067f(0x110),new BehaviorSubject('')),_defineProperty(this,'_handleConfigSave',async _0x1f64c8=>{const _0x4521ff=_0x23067f;this[_0x4521ff(0x202)][_0x4521ff(0x157)](!![]);try{var _0x443210,_0x3a06e5;const _0x7d79cf=await this[_0x4521ff(0x1b9)](_0x1f64c8);if(!_0x7d79cf[_0x4521ff(0x1d7)]){this[_0x4521ff(0x143)][_0x4521ff(0x191)]({'type':MessageType[_0x4521ff(0x221)],'content':_0x7d79cf['errorMessage']||this[_0x4521ff(0x1a5)]['t'](_0x4521ff(0x20f))});return;}if(_0x1f64c8[_0x4521ff(0x1ff)])await this[_0x4521ff(0x187)]['setItem'](MCP_API_KEY_STORAGE_KEY,_0x1f64c8[_0x4521ff(0x1ff)][_0x4521ff(0x236)]());else await this[_0x4521ff(0x187)][_0x4521ff(0x1ea)](MCP_API_KEY_STORAGE_KEY);this[_0x4521ff(0x110)][_0x4521ff(0x157)](((_0x443210=_0x1f64c8[_0x4521ff(0x1ff)])===null||_0x443210===void 0x0?void 0x0:_0x443210['trim']())||''),this['_mcpConnectionController'][_0x4521ff(0x190)]({'Authorization':'Bearer\x20'+((_0x3a06e5=_0x1f64c8[_0x4521ff(0x1ff)])===null||_0x3a06e5===void 0x0?void 0x0:_0x3a06e5[_0x4521ff(0x236)]())}),this[_0x4521ff(0x143)]['show']({'type':MessageType[_0x4521ff(0x12f)],'content':this[_0x4521ff(0x1a5)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x386f7f=_0x4521ff;this['_dialogService'][_0x386f7f(0x149)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4ab0f0){this[_0x4521ff(0x23b)]['error'](_0x4521ff(0x14f),_0x4ab0f0),this['_messageService'][_0x4521ff(0x191)]({'type':MessageType['Error'],'content':this[_0x4521ff(0x1a5)]['t'](_0x4521ff(0x1a1))});}finally{this['_loading$'][_0x4521ff(0x157)](![]);}}),this[_0x23067f(0x116)](),this['_loadStoredApiKey'](),this['_registerComponent']();}[_0x435cce(0x188)](){const _0x1bc358=_0x435cce,_0x59ccfa=this[_0x1bc358(0x198)][_0x1bc358(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x59ccfa===null||_0x59ccfa===void 0x0?void 0x0:_0x59ccfa[_0x1bc358(0x193)])this[_0x1bc358(0x1de)]['open']({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x1bc358(0x1a5)]['t'](_0x1bc358(0x1bf))},'children':{'label':_0x1bc358(0x1a3)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x342d69=_0x1bc358;this[_0x342d69(0x1de)][_0x342d69(0x149)](MCP_CONFIG_DIALOG_ID);}});}[_0x435cce(0x1ad)](){const _0x426fa1=_0x435cce;return this[_0x426fa1(0x1c5)]['value'];}[_0x435cce(0x1a4)](){const _0x50af8f=_0x435cce;this[_0x50af8f(0x20a)](this['_componentManager'][_0x50af8f(0x1ec)](_0x50af8f(0x1a3),this[_0x50af8f(0x148)]()));}[_0x435cce(0x148)](){const _0x108599=_0x435cce;return connectInjector(()=>{const _0x5da1bd=_0x1acc;var _0x5f4632,_0xb1b1b5,_0x5d4809;return jsx(MCPConfigPanel,{'config':this[_0x5da1bd(0x22c)]['value'],'mcpCoreConfig':this[_0x5da1bd(0x1c5)][_0x5da1bd(0x17a)],'currentApiKey$':this[_0x5da1bd(0x110)],'onSave':this[_0x5da1bd(0x18b)],'loading':this[_0x5da1bd(0x202)][_0x5da1bd(0x17a)],'connectionStatus$':(_0x5f4632=this[_0x5da1bd(0x175)])===null||_0x5f4632===void 0x0?void 0x0:_0x5f4632['connectionStatus$'],'connectionError$':(_0xb1b1b5=this[_0x5da1bd(0x175)])===null||_0xb1b1b5===void 0x0?void 0x0:_0xb1b1b5[_0x5da1bd(0x208)],'currentSessionId$':(_0x5d4809=this[_0x5da1bd(0x175)])===null||_0x5d4809===void 0x0?void 0x0:_0x5d4809[_0x5da1bd(0x213)]});},this[_0x108599(0x1f4)]);}[_0x435cce(0x116)](){const _0x5391ec=_0x435cce;this[_0x5391ec(0x20a)](this['_configService']['subscribeConfigValue$'](MCP_PLUGIN_CONFIG_KEY)[_0x5391ec(0x122)](_0x1a8c13=>{const _0x5f387e=_0x5391ec;this['_mcpCoreConfig$'][_0x5f387e(0x157)](_0x1a8c13||{});}));const _0x250467=this[_0x5391ec(0x198)][_0x5391ec(0x11a)](MCP_PLUGIN_CONFIG_KEY);this[_0x5391ec(0x1c5)]['next'](_0x250467||{}),this[_0x5391ec(0x20a)](this[_0x5391ec(0x198)][_0x5391ec(0x13f)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x5391ec(0x122)](_0x506ee8=>{const _0xfd12c9=_0x5391ec;this[_0xfd12c9(0x22c)][_0xfd12c9(0x157)](_0x506ee8||{});}));const _0x4c0eb5=this[_0x5391ec(0x198)][_0x5391ec(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x5391ec(0x157)](_0x4c0eb5||{});}async[_0x435cce(0x145)](){const _0x5db712=_0x435cce,_0x511bbc=this[_0x5db712(0x198)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x511bbc===null||_0x511bbc===void 0x0?void 0x0:_0x511bbc[_0x5db712(0x193)]))return;const _0x5a1bac=await this[_0x5db712(0x187)][_0x5db712(0x113)](MCP_API_KEY_STORAGE_KEY);_0x5a1bac&&(this[_0x5db712(0x175)][_0x5db712(0x190)]({'Authorization':_0x5db712(0x20e)+_0x5a1bac}),this['_apiKey$'][_0x5db712(0x157)](_0x5a1bac));}async[_0x435cce(0x1b9)](_0x27ed6d){const _0x597a17=_0x435cce;if(!_0x27ed6d[_0x597a17(0x1ff)]||_0x27ed6d[_0x597a17(0x1ff)][_0x597a17(0x236)]()['length']===0x0)return{'isValid':![],'errorMessage':this[_0x597a17(0x1a5)]['t'](_0x597a17(0x11b))};if(_0x27ed6d[_0x597a17(0x1ff)]['trim']()[_0x597a17(0x18c)]<0xa)return{'isValid':![],'errorMessage':this[_0x597a17(0x1a5)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x3fa571=await this[_0x597a17(0x1f4)][_0x597a17(0x12a)](MCPConnectionController)[_0x597a17(0x1ef)](_0x27ed6d[_0x597a17(0x1ff)][_0x597a17(0x236)]());if(!_0x3fa571['isValid'])return{'isValid':![],'errorMessage':_0x3fa571[_0x597a17(0x13d)]||this[_0x597a17(0x1a5)]['t'](_0x597a17(0x153))};return{'isValid':!![]};}catch(_0x2bbcb8){return console[_0x597a17(0x180)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2bbcb8),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILocalStorageService),__decorateParam(0x4,IDialogService),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,Inject(LocaleService)),__decorateParam(0x8,ILogService),__decorateParam(0x9,Inject(MCPConnectionController))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x435cce(0x127),'type':CommandType[_0x435cce(0x13e)],'handler':async(_0x2967a5,_0x4087a5)=>{const _0x14cab2=_0x435cce;return _0x2967a5[_0x14cab2(0x12a)](MCPConfigUIController)[_0x14cab2(0x188)](),!![];}};function mapStatusToI18NKey(_0x483791,_0x41fcdb){const _0x17a6e5=_0x435cce;switch(_0x483791){case MCPConnectionStatus[_0x17a6e5(0x23a)]:return _0x17a6e5(0x1e1);case MCPConnectionStatus[_0x17a6e5(0x206)]:return _0x17a6e5(0x184);case MCPConnectionStatus[_0x17a6e5(0x19e)]:return _0x17a6e5(0x1b7);case MCPConnectionStatus[_0x17a6e5(0x1e5)]:switch(_0x41fcdb){case MCPConnectionError[_0x17a6e5(0x1ca)]:return _0x17a6e5(0x12c);case MCPConnectionError['SESSION_ID_OCCUPIED']:return _0x17a6e5(0x237);case MCPConnectionError[_0x17a6e5(0x244)]:return _0x17a6e5(0x22e);case MCPConnectionError[_0x17a6e5(0x1b4)]:return _0x17a6e5(0x235);default:return _0x17a6e5(0x125);}case MCPConnectionStatus[_0x17a6e5(0x1d3)]:return _0x17a6e5(0x13a);default:return _0x17a6e5(0x19c);}}function getTooltipText(_0x423c04,_0x52fef0,_0x37722b,_0x46625f=!![]){const _0x45a43b=_0x435cce,_0x1f1567=mapStatusToI18NKey(_0x423c04,_0x52fef0),_0x1150f5=_0x37722b['t'](_0x1f1567);if(!_0x46625f)return _0x1150f5;if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x23a)]&&_0x52fef0===MCPConnectionError['UNAUTHORIZED'])return _0x1150f5+_0x45a43b(0x132)+_0x37722b['t'](_0x45a43b(0x119));else{if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x19e)])return''+_0x1150f5;else{if(_0x423c04===MCPConnectionStatus[_0x45a43b(0x23a)]||_0x423c04===MCPConnectionStatus[_0x45a43b(0x1e5)])return _0x1150f5+_0x45a43b(0x132)+_0x37722b['t'](_0x45a43b(0x133));}}return _0x1150f5;}function getStatusColor(_0x5e0d17){const _0x8d67a8=_0x435cce;switch(_0x5e0d17){case MCPConnectionStatus[_0x8d67a8(0x19e)]:return _0x8d67a8(0x14b);case MCPConnectionStatus[_0x8d67a8(0x206)]:case MCPConnectionStatus[_0x8d67a8(0x1d3)]:return'univer-text-yellow-500';case MCPConnectionStatus[_0x8d67a8(0x1e5)]:case MCPConnectionStatus[_0x8d67a8(0x23a)]:return _0x8d67a8(0x189);default:return _0x8d67a8(0x170);}}function MCPStatusDisplay(_0x5e6254){const _0x41dc91=_0x435cce,{status$:_0x3db4ef,error$:_0x339048,onConfigure:_0x11dc7e,showClickable:showClickable=!![]}=_0x5e6254,_0x1efb0a=useObservable(_0x3db4ef,MCPConnectionStatus[_0x41dc91(0x23a)]),_0x1a6d1c=useObservable(_0x339048,MCPConnectionError[_0x41dc91(0x151)]),_0x1dff81=useDependency(LocaleService),_0x21d09a=_0x1efb0a===MCPConnectionStatus[_0x41dc91(0x19e)];_0x1efb0a===MCPConnectionStatus[_0x41dc91(0x206)]||MCPConnectionStatus['RETRYING'];const _0xbfa941=_0x1dff81['t'](mapStatusToI18NKey(_0x1efb0a,_0x1a6d1c)),_0x451a9d=getTooltipText(_0x1efb0a,_0x1a6d1c,_0x1dff81,showClickable),_0x3fac89=getStatusColor(_0x1efb0a),_0x1ec64c=_0x21d09a?jsx(OnLineIcon,{}):jsx(OffLineIcon,{}),_0x292db5=useCallback(()=>{if(showClickable&&_0x11dc7e)_0x11dc7e();},[showClickable,_0x11dc7e]);function _0x1d4111(){const _0x3ed43d=_0x41dc91;return jsxs(_0x3ed43d(0x1d6),{'className':clsx(_0x3ed43d(0x16a),showClickable&&_0x11dc7e&&_0x3ed43d(0x20c)),'role':_0x3ed43d(0x144),'onClick':showClickable&&_0x11dc7e?_0x292db5:void 0x0,'children':[jsx('div',{'className':clsx('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x3fac89),'children':_0x1ec64c}),jsx(_0x3ed43d(0x1d6),{'className':_0x3ed43d(0x226),'children':_0xbfa941})]});}return jsx(Tooltip,{'title':_0x451a9d,'placement':_0x41dc91(0x224),'children':_0x1d4111()});}let MCPConnectionUIController=class MCPConnectionUIController extends Disposable{constructor(_0x205a1c,_0xe7bbcd,_0x43c511,_0x49eebb){const _0x2436fc=_0x435cce;super(),this[_0x2436fc(0x1f4)]=_0x205a1c,this[_0x2436fc(0x19a)]=_0xe7bbcd,this[_0x2436fc(0x200)]=_0x43c511,this[_0x2436fc(0x198)]=_0x49eebb,this['_initAutoConnect'](),this[_0x2436fc(0x164)]();}['_initAutoConnect'](){const _0xd51298=_0x435cce,_0x19cd0f=this[_0xd51298(0x198)][_0xd51298(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x19cd0f===null||_0x19cd0f===void 0x0?void 0x0:_0x19cd0f[_0xd51298(0x193)])this[_0xd51298(0x19a)][_0xd51298(0x126)]=![];}['_initStatusComponent'](){const _0xed9d5c=_0x435cce,_0x36d2b8=this[_0xed9d5c(0x198)][_0xed9d5c(0x11a)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x36d2b8===null||_0x36d2b8===void 0x0?void 0x0:_0x36d2b8[_0xed9d5c(0x17c)])!==![])this[_0xed9d5c(0x20a)](this['_uiPartsService'][_0xed9d5c(0x1a9)](BuiltInUIPart['HEADER_MENU'],()=>{const _0x5c358b=_0xed9d5c;var _0x17ef01;return connectInjector(passProps({'status$':this[_0x5c358b(0x19a)][_0x5c358b(0x158)],'error$':this[_0x5c358b(0x19a)][_0x5c358b(0x208)],'onConfigure':()=>this[_0x5c358b(0x1f8)](),'showClickable':(_0x17ef01=_0x36d2b8===null||_0x36d2b8===void 0x0?void 0x0:_0x36d2b8[_0x5c358b(0x193)])!==null&&_0x17ef01!==void 0x0?_0x17ef01:![]}),this[_0x5c358b(0x1f4)]);}));}[_0x435cce(0x1f8)](){const _0x13940f=_0x435cce;this[_0x13940f(0x1f4)][_0x13940f(0x12a)](MCPConfigUIController)[_0x13940f(0x188)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(MCPConnectionController)),__decorateParam(0x2,IUIPartsService),__decorateParam(0x3,IConfigService)],MCPConnectionUIController);function passProps(_0x7168e1){const {status$:_0x443721,error$:_0x4cf889,onConfigure:_0x2db20f,showClickable:_0x93f6aa}=_0x7168e1;return function _0x538178(){return jsx(MCPStatusDisplay,{'status$':_0x443721,'error$':_0x4cf889,'onConfigure':_0x2db20f,'showClickable':_0x93f6aa});};}function MCPConfigMenuItemFactory(_0x43ba2a){const _0x27b9ce=_0x435cce;return{'id':OpenMCPConfigPanelCommand['id'],'type':MenuItemType['BUTTON'],'icon':_0x27b9ce(0x1f1),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};function _0x1a70(){const _0x4498fd=['univer-bg-red-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20连接失败','sessionId$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','配置参数:','mcpServerUrl','univer-flex\x20univer-items-start\x20univer-gap-2','getOwnPropertyDescriptor','univer-bg-gray-500','mcpConfig.configParameters','mcpConfig.note2','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-gap-3','univer-text-white','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.sessionIdDescription','Error','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','string','bottom','univer-space-y-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_config$','http','mcpStatus.networkError','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pre','点击连接\x20MCP','mcpConfig.connectionError.unauthorized','4120AOptVl','univer-space-y-5','mcpStatus.maxRetriesExceeded','trim','mcpStatus.sessionOccupied','https://console.univer.ai','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','DISCONNECTED','_logService','6FCVcyc','mcpConfig.connectionError.networkError','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','将配置添加到您的\x20MCP\x20客户端设置文件中','pluginName','mcpConfig.connectionError.maxRetriesExceeded','MCP_UI_PLUGIN','NETWORK_ERROR','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_blank','symbol','mcpConfig.connectionError.sessionOccupied','2044644banQSZ','_apiKey$','iterator','配置保存失败','getItem','univer.ai','mcp-ui.config','_initConfigSync','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.clickToConfigure','getConfig','mcpConfig.validation.apiKeyRequired','What\x20is\x20API\x20Key?','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20密钥不能为空','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20连接中...','univer-space-y-4','subscribe','Authorization:','Enter\x20your\x20API\x20key','mcpStatus.failed','enableAutoConnect','mcp-ui.command.openConfigPanel','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-text-sm\x20univer-font-medium','get','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpStatus.unauthorized','MCP\x20Connection\x20Failed','_commandService','Success','https://console.univer.plus','MCP\x20Connecting...','\x20-\x20','mcpStatus.clickToConnect','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置更改将立即生效','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','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','mcpStatus.retrying','univer-flex\x20univer-items-center\x20univer-gap-3','MCP:\x20Network\x20Error','error','COMMAND','subscribeConfigValue$','mcpConfig.connectionStatus.disconnected','Configuration\x20Notes:','mcpConfig.save','_messageService','button','_loadStoredApiKey','mcpConfig.apiKey','univer-min-w-0\x20univer-flex-1','_createConfigPanelComponent','close','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-green-500','MCP\x20配置','Failed\x20to\x20save\x20configuration','mcp-config-dialog','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','重启您的\x20MCP\x20客户端以使配置生效','NONE','Connected','mcpConfig.validation.invalidApiKey','univer-bg-blue-500','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Retrying...','next','connectionStatus$','mcpConfig.apiApplyInfo.description','univer-size-4','566936DkNXiL','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','配置无效','onStarting','mergeMenu','univer-bg-green-500','213383xbMlPF','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_initStatusComponent','Invalid\x20configuration','114ItyMhu','add','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-center','<SESSION_ID>','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20Client\x20Configuration','span','网络连接错误,请检查您的网络连接','univer-text-gray-500','univer-space-y-2','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','object','univer-flex\x20univer-items-start\x20univer-gap-3','_mcpConnectionController','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','push','Connecting...','@univerjs-pro/mcp-ui','value','constructor','showStatus','API\x20密钥无效,请检查密钥是否正确','复制以下\x20JSON\x20配置','Configuration\x20saved\x20successfully','warn','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.configStep3','7CJGpBI','mcpStatus.connecting','Univer\x20AI\x20Console','mcpConfig.configInstructions','_localStorageService','showConfigPanel','univer-text-red-500','配置步骤:','_handleConfigSave','length','mcpConfig.apiApplyInfo.title','MCP:\x20Session\x20ID\x20Occupied','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','__setCustomHeaders','show','univer-text-gray-400','showDeveloperTools','off','mcpConfig.apiKeyPlaceholder','MCP:\x20会话\x20ID\x20已被占用','_menuManagerService','_configService','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_connectionController','decorate','mcpStatus.unknown','MCP\x20重连中...','CONNECTED','noopener\x20noreferrer','toPrimitive','mcpConfig.configError','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCPConfigPanel','_registerComponent','_localeService','连接中...','_initializeMenus','mcpConfig.note1','registerComponent','MCP:\x20Unauthorized','univer-text-xs\x20univer-text-gray-500','API\x20密钥','getCurrentConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','2dVZPVT','univer.plus','Save\x20Configuration','最大重试次数','5269DMJdLb','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','version','mcpStatus.connected','394484XeWFmv','_validateConfig','重连中...','超出最大重试次数,请稍后再试','mcpConfig.authorizationDescription','registerCommand','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.title','MCP\x20Connected','API\x20Key','SESSION_ID_OCCUPIED','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20网络错误','_mcpCoreConfig$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_componentManager','has','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','UNAUTHORIZED','MCP:\x20超出最大重试次数','function','setConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','0.22.0','mcpConfig.configStep2','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','defineProperty','RETRYING','连接失败','Configuration\x20Steps:','div','isValid','mcpConfig.connectionStatus.failed','univer-shrink-0\x20univer-text-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.connecting','32865HGugOR','MCP\x20Disconnected','_dialogService','什么是\x20API\x20密钥?','univer_session_id:','mcpStatus.disconnected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-text-sm\x20univer-text-gray-500','univer-text-blue-600','FAILED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20已断开','packageName','removeItem','点击配置\x20MCP','register','配置保存成功','default','validateApiKey','MCP\x20Configuration','MenuIcon','forEach','保存配置','_injector','_initializeCommands','几秒钟内获取您的\x20API\x20密钥','_config','_handleConfigure','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','includes','univer-size-2\x20univer-rounded-full','label','mcpConfig.apiKeyHint','mcpConfig.saving','apiKey','_uiPartsService','1563399BcUSha','_loading$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','启用身份验证以获得安全连接','CONNECTING','mcpConfig.connectionInfo','connectionError$','univer-text-xs\x20univer-text-gray-600','disposeWithMe','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','\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','Session\x20ID','Bearer\x20','mcpConfig.validation.invalidConfig'];_0x1a70=function(){return _0x4498fd;};return _0x1a70();}let MCPUIMenuController=class MCPUIMenuController extends Disposable{constructor(_0x7ee35b,_0x3cc3d4){const _0x3d2f90=_0x435cce;super(),this[_0x3d2f90(0x12e)]=_0x7ee35b,this[_0x3d2f90(0x197)]=_0x3cc3d4,this[_0x3d2f90(0x1f5)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x1b70fb=_0x435cce;[OpenMCPConfigPanelCommand][_0x1b70fb(0x1f2)](_0x246af4=>{const _0x32d51f=_0x1b70fb;this[_0x32d51f(0x20a)](this[_0x32d51f(0x12e)][_0x32d51f(0x1bd)](_0x246af4));});}[_0x435cce(0x1a7)](){const _0x10bbf4=_0x435cce;this[_0x10bbf4(0x197)][_0x10bbf4(0x160)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService)],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x435cce(0x1dd),'connecting':_0x435cce(0x131),'connected':_0x435cce(0x1c0),'failed':_0x435cce(0x12d),'retrying':'MCP\x20Retrying...','unknown':_0x435cce(0x139),'unauthorized':_0x435cce(0x1aa),'sessionOccupied':_0x435cce(0x18e),'networkError':_0x435cce(0x13c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x435cce(0x1e6),'apiKey':_0x435cce(0x1c1),'apiKeyPlaceholder':_0x435cce(0x124),'apiKeyHint':_0x435cce(0x1c9),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x435cce(0x16d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x435cce(0x1d1),'configStepTitle':_0x435cce(0x1d5),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x435cce(0x168),'configStep3':_0x435cce(0x138),'sessionId':_0x435cce(0x20d),'sessionIdDescription':_0x435cce(0x22b),'authorizationDescription':_0x435cce(0x1be),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x435cce(0x15c),'save':_0x435cce(0x1b1),'saving':'Saving...','note1':_0x435cce(0x1da),'note2':_0x435cce(0x229),'configSaved':_0x435cce(0x17f),'configError':_0x435cce(0x14d),'apiApplyInfo':{'title':_0x435cce(0x11c),'description':_0x435cce(0x1a2),'univerAiLabel':_0x435cce(0x185),'getStarted':_0x435cce(0x118)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x435cce(0x15d),'invalidConfig':_0x435cce(0x165),'invalidApiKey':_0x435cce(0x1f9)},'connectionStatus':{'disconnected':_0x435cce(0x117),'connecting':_0x435cce(0x178),'connected':_0x435cce(0x152),'failed':'Connection\x20Failed','retrying':_0x435cce(0x156)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x435cce(0x23e),'networkError':_0x435cce(0x211),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale$1={'mcpStatus':{'disconnected':_0x435cce(0x1e8),'connecting':_0x435cce(0x120),'connected':'MCP\x20已连接','failed':_0x435cce(0x212),'retrying':_0x435cce(0x19d),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x435cce(0x196),'networkError':_0x435cce(0x1c4),'maxRetriesExceeded':_0x435cce(0x1cb),'clickToConnect':_0x435cce(0x231),'clickToConfigure':_0x435cce(0x1eb)},'mcpConfig':{'title':_0x435cce(0x14c),'description':_0x435cce(0x245),'apiKey':_0x435cce(0x1ac),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x435cce(0x205),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x435cce(0x1ae),'configStepTitle':_0x435cce(0x18a),'configStep1':_0x435cce(0x17e),'configStep2':_0x435cce(0x240),'configStep3':_0x435cce(0x150),'sessionId':'会话ID','sessionIdDescription':_0x435cce(0x227),'authorizationDescription':_0x435cce(0x12b),'configParameters':_0x435cce(0x215),'maxRetries':_0x435cce(0x1b2),'save':_0x435cce(0x1f3),'saving':'保存中...','note1':_0x435cce(0x135),'note2':_0x435cce(0x21c),'configSaved':_0x435cce(0x1ed),'configError':_0x435cce(0x112),'apiApplyInfo':{'title':_0x435cce(0x1df),'description':_0x435cce(0x134),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x435cce(0x1f6)},'validation':{'apiKeyRequired':_0x435cce(0x11e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x435cce(0x15e),'invalidApiKey':_0x435cce(0x17d)},'connectionStatus':{'disconnected':'未连接','connecting':_0x435cce(0x1a6),'connected':'已连接','failed':_0x435cce(0x1d4),'retrying':_0x435cce(0x1ba)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x435cce(0x16f),'maxRetriesExceeded':_0x435cce(0x1bb)}}};function _0x1acc(_0x3fd2f8,_0x1761a8){_0x3fd2f8=_0x3fd2f8-0x10c;const _0x1a7016=_0x1a70();let _0x1accb6=_0x1a7016[_0x3fd2f8];return _0x1accb6;}var name=_0x435cce(0x179),version=_0x435cce(0x1cf);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends Plugin{constructor(_0x17f297=defaultPluginConfig,_0x45d501,_0x1f093c,_0x3db30d,_0x52e285,_0x39e67f){const _0x4bc2f7=_0x435cce;super(),this[_0x4bc2f7(0x1f7)]=_0x17f297,this[_0x4bc2f7(0x1f4)]=_0x45d501,this[_0x4bc2f7(0x198)]=_0x1f093c,this[_0x4bc2f7(0x200)]=_0x3db30d,this[_0x4bc2f7(0x187)]=_0x52e285,this[_0x4bc2f7(0x1a5)]=_0x39e67f;const {..._0x49fa07}=merge({},defaultPluginConfig,this['_config']);this[_0x4bc2f7(0x198)][_0x4bc2f7(0x1cd)](MCP_UI_PLUGIN_CONFIG_KEY,_0x49fa07);}async[_0x435cce(0x15f)](){const _0x3f73b3=_0x435cce,_0x3d0e88=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this[_0x3f73b3(0x1f4)][_0x3f73b3(0x1c8)](ISocketService))_0x3d0e88[_0x3f73b3(0x177)]([ISocketService,{'useClass':WebSocketService}]);_0x3d0e88[_0x3f73b3(0x1f2)](_0x3a7265=>this['_injector'][_0x3f73b3(0x167)](_0x3a7265)),this['_injector'][_0x3f73b3(0x12a)](MCPConnectionUIController),this[_0x3f73b3(0x1f4)]['get'](MCPConfigUIController),this['_injector'][_0x3f73b3(0x12a)](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x435cce(0x241),_0x435cce(0x243)),_defineProperty(UniverMCPUIPlugin,_0x435cce(0x1e9),name),_defineProperty(UniverMCPUIPlugin,_0x435cce(0x1b6),version),UniverMCPUIPlugin=__decorate([DependentOn(UniverMCPPlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,IUIPartsService),__decorateParam(0x4,ILocalStorageService),__decorateParam(0x5,Inject(LocaleService))],UniverMCPUIPlugin);export{MCPConfigPanel,MCPConfigUIController,MCPConnectionUIController,MCPStatusDisplay,MCPUIMenuController,OpenMCPConfigPanelCommand,UniverMCPUIPlugin,locale as enUS,locale$1 as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x27ac5f=_0x3a9b;(function(_0x27707b,_0x2626fa){const _0x4dfa4e=_0x3a9b,_0x5637c8=_0x27707b();while(!![]){try{const _0x180c5f=parseInt(_0x4dfa4e(0x12e))/0x1+parseInt(_0x4dfa4e(0x12d))/0x2+parseInt(_0x4dfa4e(0x125))/0x3*(parseInt(_0x4dfa4e(0x129))/0x4)+-parseInt(_0x4dfa4e(0x137))/0x5+-parseInt(_0x4dfa4e(0x11c))/0x6+parseInt(_0x4dfa4e(0x114))/0x7*(-parseInt(_0x4dfa4e(0x12a))/0x8)+parseInt(_0x4dfa4e(0x11a))/0x9*(-parseInt(_0x4dfa4e(0x12f))/0xa);if(_0x180c5f===_0x2626fa)break;else _0x5637c8['push'](_0x5637c8['shift']());}catch(_0x31c2d8){_0x5637c8['push'](_0x5637c8['shift']());}}}(_0x105b,0x5d3a5));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x27ac5f(0x119),'connected':_0x27ac5f(0x117),'failed':_0x27ac5f(0x12b),'retrying':_0x27ac5f(0x122),'unknown':_0x27ac5f(0x12c),'unauthorized':_0x27ac5f(0x10d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x27ac5f(0x126),'maxRetriesExceeded':_0x27ac5f(0x134),'clickToConnect':_0x27ac5f(0x135),'clickToConfigure':_0x27ac5f(0x124)},'mcpConfig':{'title':_0x27ac5f(0x118),'description':_0x27ac5f(0x11d),'apiKey':_0x27ac5f(0x10e),'apiKeyPlaceholder':_0x27ac5f(0x138),'apiKeyHint':_0x27ac5f(0x127),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x27ac5f(0x113),'connectionInfo':_0x27ac5f(0x130),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x27ac5f(0x136),'configStep1':_0x27ac5f(0x109),'configStep2':_0x27ac5f(0x112),'configStep3':_0x27ac5f(0x110),'sessionId':_0x27ac5f(0x133),'sessionIdDescription':_0x27ac5f(0x10b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x27ac5f(0x128),'note1':_0x27ac5f(0x10c),'note2':_0x27ac5f(0x115),'configSaved':_0x27ac5f(0x121),'configError':_0x27ac5f(0x10f),'apiApplyInfo':{'title':_0x27ac5f(0x11b),'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':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x27ac5f(0x116),'apiKeyTooShort':_0x27ac5f(0x106),'invalidConfig':_0x27ac5f(0x132),'invalidApiKey':_0x27ac5f(0x123)},'connectionStatus':{'disconnected':_0x27ac5f(0x120),'connecting':'Connecting...','connected':_0x27ac5f(0x111),'failed':_0x27ac5f(0x11e),'retrying':_0x27ac5f(0x131)},'connectionError':{'unauthorized':_0x27ac5f(0x107),'sessionOccupied':_0x27ac5f(0x108),'networkError':_0x27ac5f(0x10a),'maxRetriesExceeded':_0x27ac5f(0x11f)}}},locale=locale$1;function _0x105b(){const _0xd58776=['259BkKqEs','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Connected','MCP\x20Configuration','MCP\x20Connecting...','405yYCnXX','What\x20is\x20API\x20Key?','2035836nSUrZy','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','8805QBmGmc','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','520tJsiwk','32096cchhil','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','1160228JlVczg','563972fZfkYM','40130HclrTc','MCP\x20Client\x20Configuration','Retrying...','Invalid\x20configuration','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','2377200cPmVWV','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','API\x20Key','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections'];_0x105b=function(){return _0xd58776;};return _0x105b();}function _0x3a9b(_0x46a447,_0x493c9f){_0x46a447=_0x46a447-0x106;const _0x105ba8=_0x105b();let _0x3a9bc7=_0x105ba8[_0x46a447];return _0x3a9bc7;}export{locale as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3ef0(_0x3b44a8,_0x4150ad){_0x3b44a8=_0x3b44a8-0x8b;const _0x17805c=_0x1780();let _0x3ef047=_0x17805c[_0x3b44a8];return _0x3ef047;}const _0x1577c2=_0x3ef0;function _0x1780(){const _0x556c0f=['Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','1096nYngWd','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','530244uWDUct','1144887hwvptz','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','10ConPoX','4XaOohk','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','693276hVnncN','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','77NVTymJ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','5885060ZFpGjK','Saving...','MCP:\x20Network\x20Error','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Connection\x20Failed','13637195dYEuZp','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','Invalid\x20configuration','Failed\x20to\x20save\x20configuration','Session\x20ID','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2UFmlqy','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1530584EqrFUk','17145oijVlM','Max\x20Retries'];_0x1780=function(){return _0x556c0f;};return _0x1780();}(function(_0x49ab38,_0x2809e2){const _0x20992b=_0x3ef0,_0x3bc282=_0x49ab38();while(!![]){try{const _0x467c30=-parseInt(_0x20992b(0x9f))/0x1*(-parseInt(_0x20992b(0xa1))/0x2)+parseInt(_0x20992b(0xac))/0x3*(parseInt(_0x20992b(0xb0))/0x4)+-parseInt(_0x20992b(0xbb))/0x5+-parseInt(_0x20992b(0xb3))/0x6*(parseInt(_0x20992b(0xb8))/0x7)+-parseInt(_0x20992b(0xa7))/0x8*(-parseInt(_0x20992b(0xa2))/0x9)+parseInt(_0x20992b(0xaf))/0xa*(parseInt(_0x20992b(0x95))/0xb)+-parseInt(_0x20992b(0xab))/0xc;if(_0x467c30===_0x2809e2)break;else _0x3bc282['push'](_0x3bc282['shift']());}catch(_0x1559e7){_0x3bc282['push'](_0x3bc282['shift']());}}}(_0x1780,0xe0ca2));const locale={'mcpStatus':{'disconnected':_0x1577c2(0x99),'connecting':_0x1577c2(0xb7),'connected':_0x1577c2(0xb5),'failed':_0x1577c2(0x8f),'retrying':'MCP\x20Retrying...','unknown':_0x1577c2(0x8e),'unauthorized':_0x1577c2(0xb1),'sessionOccupied':_0x1577c2(0xb6),'networkError':_0x1577c2(0xbd),'maxRetriesExceeded':_0x1577c2(0xa9),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1577c2(0x97)},'mcpConfig':{'title':_0x1577c2(0x9d),'description':_0x1577c2(0x98),'apiKey':_0x1577c2(0x8b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1577c2(0x90),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1577c2(0x96),'connectionInfo':_0x1577c2(0x93),'mcpClientConfig':_0x1577c2(0x93),'configInstructions':_0x1577c2(0xb4),'configStepTitle':_0x1577c2(0xba),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1577c2(0xa0),'configStep3':_0x1577c2(0x91),'sessionId':_0x1577c2(0x9c),'sessionIdDescription':_0x1577c2(0xb2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x1577c2(0xa3),'save':_0x1577c2(0xaa),'saving':_0x1577c2(0xbc),'note1':_0x1577c2(0x9e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x1577c2(0x9b),'apiApplyInfo':{'title':_0x1577c2(0xa5),'description':_0x1577c2(0x92),'univerAiLabel':_0x1577c2(0xae),'getStarted':_0x1577c2(0xa4)},'validation':{'apiKeyRequired':_0x1577c2(0xa6),'apiKeyTooShort':_0x1577c2(0x8c),'invalidConfig':_0x1577c2(0x9a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1577c2(0x8d),'connected':'Connected','failed':_0x1577c2(0x94),'retrying':_0x1577c2(0xa8)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1577c2(0xb9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1577c2(0xad)}}};export{locale as default};
|