@univerjs-pro/mcp-ui 0.23.0 → 0.24.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 +3 -3
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a3ce4=_0x54e1;function _0x54e1(_0x56f782,_0x25c14f){_0x56f782=_0x56f782-0x64;const _0x3f83e3=_0x3f83();let _0x54e1db=_0x3f83e3[_0x56f782];return _0x54e1db;}(function(_0x5d5a1a,_0x47e2cb){const _0x138b24=_0x54e1,_0x38eccd=_0x5d5a1a();while(!![]){try{const _0x806d2f=parseInt(_0x138b24(0x93))/0x1+-parseInt(_0x138b24(0x95))/0x2*(-parseInt(_0x138b24(0x66))/0x3)+parseInt(_0x138b24(0x67))/0x4+parseInt(_0x138b24(0x8f))/0x5*(-parseInt(_0x138b24(0x88))/0x6)+-parseInt(_0x138b24(0x92))/0x7+parseInt(_0x138b24(0x77))/0x8*(parseInt(_0x138b24(0x69))/0x9)+-parseInt(_0x138b24(0x8d))/0xa;if(_0x806d2f===_0x47e2cb)break;else _0x38eccd['push'](_0x38eccd['shift']());}catch(_0x3e9a56){_0x38eccd['push'](_0x38eccd['shift']());}}}(_0x3f83,0x4dfb7));const e={'mcpStatus':{'disconnected':_0x4a3ce4(0x68),'connecting':_0x4a3ce4(0x91),'connected':'MCP\x20pripojené','failed':_0x4a3ce4(0x6e),'retrying':_0x4a3ce4(0x6c),'unknown':_0x4a3ce4(0x7a),'unauthorized':_0x4a3ce4(0x84),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x4a3ce4(0x74),'maxRetriesExceeded':'MCP:\x20Prekročený\x20počet\x20pokusov','clickToConnect':_0x4a3ce4(0x8e),'clickToConfigure':_0x4a3ce4(0x73)},'mcpConfig':{'title':_0x4a3ce4(0x8b),'description':_0x4a3ce4(0x6f),'apiKey':_0x4a3ce4(0x96),'apiKeyPlaceholder':_0x4a3ce4(0x7b),'apiKeyHint':_0x4a3ce4(0x75),'enableAuth':_0x4a3ce4(0x7d),'enableAuthHint':_0x4a3ce4(0x82),'connectionInfo':_0x4a3ce4(0x70),'mcpClientConfig':_0x4a3ce4(0x70),'configInstructions':_0x4a3ce4(0x8a),'configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x4a3ce4(0x7c),'configStep2':_0x4a3ce4(0x6d),'configStep3':_0x4a3ce4(0x94),'sessionId':'ID\x20relácie','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':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':_0x4a3ce4(0x6b),'maxRetries':'Maximálny\x20počet\x20pokusov','save':_0x4a3ce4(0x71),'saving':_0x4a3ce4(0x7e),'note1':_0x4a3ce4(0x8c),'note2':_0x4a3ce4(0x65),'configSaved':_0x4a3ce4(0x78),'configError':_0x4a3ce4(0x87),'apiApplyInfo':{'title':'Čo\x20je\x20API\x20kľúč?','description':_0x4a3ce4(0x90),'univerAiLabel':_0x4a3ce4(0x7f),'getStarted':_0x4a3ce4(0x86)},'validation':{'apiKeyRequired':'API\x20kľúč\x20je\x20povinný','apiKeyTooShort':_0x4a3ce4(0x64),'invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':'Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny'},'connectionStatus':{'disconnected':_0x4a3ce4(0x83),'connecting':_0x4a3ce4(0x85),'connected':_0x4a3ce4(0x76),'failed':_0x4a3ce4(0x80),'retrying':_0x4a3ce4(0x72)},'connectionError':{'unauthorized':_0x4a3ce4(0x81),'sessionOccupied':_0x4a3ce4(0x89),'networkError':_0x4a3ce4(0x6a),'maxRetriesExceeded':_0x4a3ce4(0x79)}}};export{e as default};function _0x3f83(){const _0x3518a2=['API\x20kľúč','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','3ZnRGDb','1946448KHdXbN','MCP\x20odpojené','9WdJlQZ','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Parametre\x20konfigurácie:','MCP\x20opakuje\x20pokus...','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Pripojenie\x20MCP\x20zlyhalo','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Konfigurácia\x20klienta\x20MCP','Uložiť\x20konfiguráciu','Skúša\x20sa\x20znova...','Kliknite\x20na\x20konfiguráciu\x20MCP','MCP:\x20Sieťová\x20chyba','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Pripojené','2437952yPEJBo','Konfigurácia\x20bola\x20úspešne\x20uložená','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','MCP\x20neznámy\x20stav','Zadajte\x20svoj\x20API\x20kľúč','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Povoliť\x20overenie','Ukladá\x20sa...','Univer\x20AI\x20konzola','Pripojenie\x20zlyhalo','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Odpojené','MCP:\x20Neautorizované','Pripája\x20sa...','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','670368VLZDdg','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Konfigurácia\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','7452680zgSbCg','Kliknite\x20na\x20pripojenie\x20MCP','25lUdpGK','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.','MCP\x20sa\x20pripája...','1253084vXkREu','471975pdrxJR','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','1078008WORPRX'];_0x3f83=function(){return _0x3518a2;};return _0x3f83();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1b0a64=_0x8818;function _0x8818(_0x5b24fa,_0x49097e){_0x5b24fa=_0x5b24fa-0x16a;const _0x1558fa=_0x1558();let _0x8818de=_0x1558fa[_0x5b24fa];return _0x8818de;}(function(_0x1cf9fc,_0x2b3697){const _0x16835e=_0x8818,_0x13bd7f=_0x1cf9fc();while(!![]){try{const _0x39cbf2=-parseInt(_0x16835e(0x17a))/0x1*(parseInt(_0x16835e(0x18c))/0x2)+parseInt(_0x16835e(0x16b))/0x3+parseInt(_0x16835e(0x19a))/0x4*(parseInt(_0x16835e(0x18d))/0x5)+parseInt(_0x16835e(0x177))/0x6+-parseInt(_0x16835e(0x182))/0x7*(-parseInt(_0x16835e(0x16f))/0x8)+-parseInt(_0x16835e(0x16c))/0x9*(-parseInt(_0x16835e(0x173))/0xa)+-parseInt(_0x16835e(0x18b))/0xb;if(_0x39cbf2===_0x2b3697)break;else _0x13bd7f['push'](_0x13bd7f['shift']());}catch(_0x2a2341){_0x13bd7f['push'](_0x13bd7f['shift']());}}}(_0x1558,0x6d904));const e={'mcpStatus':{'disconnected':_0x1b0a64(0x180),'connecting':_0x1b0a64(0x181),'connected':_0x1b0a64(0x194),'failed':_0x1b0a64(0x18a),'retrying':_0x1b0a64(0x17d),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':_0x1b0a64(0x198),'sessionOccupied':_0x1b0a64(0x171),'networkError':_0x1b0a64(0x178),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x1b0a64(0x170)},'mcpConfig':{'title':_0x1b0a64(0x18e),'description':_0x1b0a64(0x186),'apiKey':_0x1b0a64(0x190),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x1b0a64(0x16d),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':_0x1b0a64(0x184),'mcpClientConfig':_0x1b0a64(0x184),'configInstructions':_0x1b0a64(0x187),'configStepTitle':_0x1b0a64(0x174),'configStep1':_0x1b0a64(0x192),'configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':'Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','sessionId':_0x1b0a64(0x191),'sessionIdDescription':_0x1b0a64(0x17f),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x1b0a64(0x183),'save':_0x1b0a64(0x18f),'saving':_0x1b0a64(0x188),'note1':_0x1b0a64(0x16a),'note2':_0x1b0a64(0x17e),'configSaved':_0x1b0a64(0x197),'configError':_0x1b0a64(0x185),'apiApplyInfo':{'title':_0x1b0a64(0x172),'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':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':_0x1b0a64(0x17c)},'validation':{'apiKeyRequired':_0x1b0a64(0x176),'apiKeyTooShort':_0x1b0a64(0x19b),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x1b0a64(0x189)},'connectionStatus':{'disconnected':_0x1b0a64(0x195),'connecting':_0x1b0a64(0x193),'connected':_0x1b0a64(0x16e),'failed':_0x1b0a64(0x179),'retrying':_0x1b0a64(0x199)},'connectionError':{'unauthorized':_0x1b0a64(0x17b),'sessionOccupied':_0x1b0a64(0x196),'networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0x1b0a64(0x175)}}};export{e as default};function _0x1558(){const _0x40a71a=['Các\x20bước\x20cấu\x20hình:','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Yêu\x20cầu\x20khóa\x20API','1463616JnBsXv','MCP:\x20Lỗi\x20mạng','Kết\x20nối\x20thất\x20bại','2257fjAqdP','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','MCP\x20Đang\x20thử\x20lại...','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Đị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.','MCP\x20Đã\x20ngắt\x20kết\x20nối','MCP\x20Đang\x20kết\x20nối...','402122rWegCm','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Cấu\x20hình\x20máy\x20khách\x20MCP','Lưu\x20cấu\x20hình\x20thất\x20bại','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Đang\x20lưu...','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','MCP\x20Kết\x20nối\x20thất\x20bại','17463787aFpAqC','214dfmyUG','5XDDZFe','Cấu\x20hình\x20MCP','Lưu\x20cấu\x20hình','Khóa\x20API','ID\x20phiên','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Đang\x20kết\x20nối...','MCP\x20Đã\x20kết\x20nối','Đã\x20ngắt\x20kết\x20nối','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','MCP:\x20Không\x20được\x20phép','Đang\x20thử\x20lại...','1433884VvDpvO','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','2324715yDSMRJ','54ZrUsoI','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Đã\x20kết\x20nối','72jnmlWf','Nhấp\x20để\x20cấu\x20hình\x20MCP','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Khóa\x20API\x20là\x20gì?','639270ZKUOtl'];_0x1558=function(){return _0x40a71a;};return _0x1558();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x20cd51=_0x622e;function _0x622e(_0x20af18,_0x51c5b6){_0x20af18=_0x20af18-0x1e6;const _0x3516a8=_0x3516();let _0x622ec6=_0x3516a8[_0x20af18];return _0x622ec6;}(function(_0xf77859,_0x1b52db){const _0x15dd47=_0x622e,_0x29d2d3=_0xf77859();while(!![]){try{const _0x25378d=-parseInt(_0x15dd47(0x1f3))/0x1+parseInt(_0x15dd47(0x1ec))/0x2*(parseInt(_0x15dd47(0x214))/0x3)+parseInt(_0x15dd47(0x208))/0x4*(parseInt(_0x15dd47(0x1e8))/0x5)+parseInt(_0x15dd47(0x212))/0x6+parseInt(_0x15dd47(0x213))/0x7*(parseInt(_0x15dd47(0x1e6))/0x8)+-parseInt(_0x15dd47(0x1f9))/0x9+-parseInt(_0x15dd47(0x1e7))/0xa;if(_0x25378d===_0x1b52db)break;else _0x29d2d3['push'](_0x29d2d3['shift']());}catch(_0x5b0e31){_0x29d2d3['push'](_0x29d2d3['shift']());}}}(_0x3516,0xa43af));function _0x3516(){const _0x43c9f1=['配置更改将立即生效','API\x20密钥长度至少需要\x2010\x20位','MCP\x20连接中...','配置保存失败','API\x20密钥不能为空','3430482CcIaDe','7KuWqpx','57492YCSFxL','9484208qiWtGL','7459090sBdTWY','422600vXgxit','几秒钟内获取您的\x20API\x20密钥','MCP\x20已断开','权限验证失败,请检查您的\x20API\x20密钥','28wDgOgm','点击连接\x20MCP','MCP:\x20超出最大重试次数','MCP\x20连接失败','重连中...','配置无效','会话\x20ID\x20已被占用,请稍后再试','354439AyOIGB','启用身份验证','最大重试次数','Univer\x20AI\x20控制台','MCP\x20重连中...','已连接','11400966IESuub','MCP:\x20会话\x20ID\x20已被占用','连接中...','启用身份验证以获得安全连接','保存中...','将以下配置添加到您的\x20MCP\x20客户端设置中:','请输入您的\x20API\x20密钥','将配置添加到您的\x20MCP\x20客户端设置文件中','复制以下\x20JSON\x20配置','MCP:\x20网络错误','API\x20密钥','MCP:\x20未授权','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20已连接','重启您的\x20MCP\x20客户端以使配置生效','48qvgbUk','配置参数:','MCP\x20客户端配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置步骤:'];_0x3516=function(){return _0x43c9f1;};return _0x3516();}const e={'mcpStatus':{'disconnected':_0x20cd51(0x1ea),'connecting':_0x20cd51(0x20f),'connected':_0x20cd51(0x206),'failed':_0x20cd51(0x1ef),'retrying':_0x20cd51(0x1f7),'unknown':'MCP\x20状态未知','unauthorized':_0x20cd51(0x204),'sessionOccupied':_0x20cd51(0x1fa),'networkError':_0x20cd51(0x202),'maxRetriesExceeded':_0x20cd51(0x1ee),'clickToConnect':_0x20cd51(0x1ed),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x20cd51(0x203),'apiKeyPlaceholder':_0x20cd51(0x1ff),'apiKeyHint':_0x20cd51(0x205),'enableAuth':_0x20cd51(0x1f4),'enableAuthHint':_0x20cd51(0x1fc),'connectionInfo':_0x20cd51(0x20a),'mcpClientConfig':_0x20cd51(0x20a),'configInstructions':_0x20cd51(0x1fe),'configStepTitle':_0x20cd51(0x20c),'configStep1':_0x20cd51(0x201),'configStep2':_0x20cd51(0x200),'configStep3':_0x20cd51(0x207),'sessionId':'会话ID','sessionIdDescription':_0x20cd51(0x20b),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x20cd51(0x209),'maxRetries':_0x20cd51(0x1f5),'save':'保存配置','saving':_0x20cd51(0x1fd),'note1':_0x20cd51(0x20d),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x20cd51(0x210),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x20cd51(0x1f6),'getStarted':_0x20cd51(0x1e9)},'validation':{'apiKeyRequired':_0x20cd51(0x211),'apiKeyTooShort':_0x20cd51(0x20e),'invalidConfig':_0x20cd51(0x1f1),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x20cd51(0x1fb),'connected':_0x20cd51(0x1f8),'failed':'连接失败','retrying':_0x20cd51(0x1f0)},'connectionError':{'unauthorized':_0x20cd51(0x1eb),'sessionOccupied':_0x20cd51(0x1f2),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4d422f=_0x2e38;(function(_0x303a93,_0x12af6e){const _0x10a7c4=_0x2e38,_0x139c34=_0x303a93();while(!![]){try{const _0x4def7d=parseInt(_0x10a7c4(0x1c9))/0x1+-parseInt(_0x10a7c4(0x1db))/0x2+parseInt(_0x10a7c4(0x1b9))/0x3+-parseInt(_0x10a7c4(0x1c6))/0x4*(parseInt(_0x10a7c4(0x1cb))/0x5)+-parseInt(_0x10a7c4(0x1c7))/0x6*(parseInt(_0x10a7c4(0x1cf))/0x7)+-parseInt(_0x10a7c4(0x1c0))/0x8+parseInt(_0x10a7c4(0x1d9))/0x9*(parseInt(_0x10a7c4(0x1cd))/0xa);if(_0x4def7d===_0x12af6e)break;else _0x139c34['push'](_0x139c34['shift']());}catch(_0x22480f){_0x139c34['push'](_0x139c34['shift']());}}}(_0x48b4,0x4940f));function _0x2e38(_0x2ac861,_0x3eb215){_0x2ac861=_0x2ac861-0x1b9;const _0x48b493=_0x48b4();let _0x2e383f=_0x48b493[_0x2ac861];return _0x2e383f;}const e={'mcpStatus':{'disconnected':_0x4d422f(0x1be),'connecting':_0x4d422f(0x1da),'connected':_0x4d422f(0x1c2),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4d422f(0x1e4),'unknown':_0x4d422f(0x1c8),'unauthorized':_0x4d422f(0x1c5),'sessionOccupied':_0x4d422f(0x1d7),'networkError':_0x4d422f(0x1ec),'maxRetriesExceeded':_0x4d422f(0x1dc),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4d422f(0x1bf)},'mcpConfig':{'title':_0x4d422f(0x1e5),'description':_0x4d422f(0x1d6),'apiKey':_0x4d422f(0x1e0),'apiKeyPlaceholder':_0x4d422f(0x1ce),'apiKeyHint':_0x4d422f(0x1c1),'enableAuth':_0x4d422f(0x1e8),'enableAuthHint':_0x4d422f(0x1e9),'connectionInfo':_0x4d422f(0x1bc),'mcpClientConfig':_0x4d422f(0x1bc),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4d422f(0x1e2),'configStep1':_0x4d422f(0x1dd),'configStep2':_0x4d422f(0x1d8),'configStep3':_0x4d422f(0x1ca),'sessionId':_0x4d422f(0x1ea),'sessionIdDescription':_0x4d422f(0x1d5),'authorizationDescription':_0x4d422f(0x1de),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x4d422f(0x1d2),'note1':_0x4d422f(0x1ba),'note2':_0x4d422f(0x1eb),'configSaved':_0x4d422f(0x1d3),'configError':_0x4d422f(0x1bd),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4d422f(0x1e3),'univerAiLabel':_0x4d422f(0x1d0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d422f(0x1d1),'apiKeyTooShort':_0x4d422f(0x1e1),'invalidConfig':_0x4d422f(0x1c4),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4d422f(0x1df),'connecting':_0x4d422f(0x1c3),'connected':_0x4d422f(0x1e6),'failed':_0x4d422f(0x1bb),'retrying':_0x4d422f(0x1e7)},'connectionError':{'unauthorized':_0x4d422f(0x1d4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4d422f(0x1cc),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x48b4(){const _0x54fd0a=['API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','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\x20Retrying...','MCP\x20Configuration','Connected','Retrying...','Enable\x20Authentication','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','396474KxyQcR','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connection\x20Failed','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','1251336XpYuzu','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connected','Connecting...','Invalid\x20configuration','MCP:\x20Unauthorized','880CqoYXM','35142IkdEfu','MCP\x20Unknown\x20Status','129935vviQbH','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','9335shOFQi','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','20fjHldi','Enter\x20your\x20API\x20key','161tKanWy','Univer\x20AI\x20Console','API\x20key\x20is\x20required','Saving...','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4033107OYXHXe','MCP\x20Connecting...','312848LnYYJn','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected'];_0x48b4=function(){return _0x54fd0a;};return _0x48b4();}export{e as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1c59ee,_0x5a67fe){const _0x2feba7=_0x5483,_0x177053=_0x1c59ee();while(!![]){try{const _0x3dd37c=parseInt(_0x2feba7(0x208))/0x1+-parseInt(_0x2feba7(0x16c))/0x2+-parseInt(_0x2feba7(0x244))/0x3+-parseInt(_0x2feba7(0x237))/0x4*(-parseInt(_0x2feba7(0x15d))/0x5)+-parseInt(_0x2feba7(0x22f))/0x6*(parseInt(_0x2feba7(0x16a))/0x7)+parseInt(_0x2feba7(0x238))/0x8*(-parseInt(_0x2feba7(0x23f))/0x9)+-parseInt(_0x2feba7(0x155))/0xa*(-parseInt(_0x2feba7(0x1fe))/0xb);if(_0x3dd37c===_0x5a67fe)break;else _0x177053['push'](_0x177053['shift']());}catch(_0x1c77e7){_0x177053['push'](_0x177053['shift']());}}}(_0xb339,0x82644),function(_0x5cbf2f,_0x9847a3){const _0x1e3c14=_0x5483;typeof exports==_0x1e3c14(0x285)&&typeof module<'u'?_0x9847a3(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x1e3c14(0x146)&&define['amd']?define(['exports','@univerjs/core',_0x1e3c14(0x13a),'@univerjs/design','@univerjs/ui',_0x1e3c14(0x195),'react','react/jsx-runtime',_0x1e3c14(0x189)],_0x9847a3):(_0x5cbf2f=typeof globalThis<'u'?globalThis:_0x5cbf2f||self,_0x9847a3(_0x5cbf2f[_0x1e3c14(0x26a)]={},_0x5cbf2f[_0x1e3c14(0x1b4)],_0x5cbf2f[_0x1e3c14(0x198)],_0x5cbf2f[_0x1e3c14(0x153)],_0x5cbf2f['UniverUi'],_0x5cbf2f['rxjs'],_0x5cbf2f[_0x1e3c14(0x185)],_0x5cbf2f[_0x1e3c14(0x185)],_0x5cbf2f[_0x1e3c14(0x1e4)]));}(this,function(_0x51910d,_0x1f795b,_0x32aaba,_0x1d5666,_0x3c638e,_0x2b6b83,_0x42dad4,_0x150d2d,_0x392d75){const _0xd9144a=_0x5483;Object[_0xd9144a(0x1c3)](_0x51910d,Symbol['toStringTag'],{'value':_0xd9144a(0x19b)});function _0x3ac640({ref:_0x29661f,..._0x561288}){const _0x4f0b05=_0xd9144a;let {icon:_0x463015,id:_0x16a07d,className:_0x876937,extend:_0xc99d09,..._0x456cff}=_0x561288,_0x55a0fc=(_0x4f0b05(0x27f)+_0x16a07d+'\x20'+(_0x876937||''))[_0x4f0b05(0x279)](),_0x5101ca=(0x0,_0x42dad4['useRef'])('_'+_0x295fd5());return _0x3a1dc1(_0x463015,''+_0x16a07d,{'defIds':_0x463015[_0x4f0b05(0x294)],'idSuffix':_0x5101ca[_0x4f0b05(0x1bc)]},{'ref':_0x29661f,'className':_0x55a0fc,..._0x456cff},_0xc99d09);}function _0x3a1dc1(_0x55c4f9,_0x278500,_0x42d320,_0x2a20a1,_0x1935e3){const _0x200367=_0xd9144a;return(0x0,_0x42dad4[_0x200367(0x141)])(_0x55c4f9[_0x200367(0x257)],{'key':_0x278500,..._0x5ed410(_0x55c4f9,_0x42d320,_0x1935e3),..._0x2a20a1},(_0x371e90(_0x55c4f9,_0x42d320)['children']||[])[_0x200367(0x160)]((_0x416a2e,_0x386f8b)=>_0x3a1dc1(_0x416a2e,_0x278500+'-'+_0x55c4f9[_0x200367(0x257)]+'-'+_0x386f8b,_0x42d320,void 0x0,_0x1935e3)));}function _0x5ed410(_0x54bef8,_0x3973c9,_0x59fa82){const _0x50014f=_0xd9144a;let _0x1ab1cc={..._0x54bef8[_0x50014f(0x1d5)]};_0x59fa82!=null&&_0x59fa82['colorChannel1']&&_0x1ab1cc[_0x50014f(0x192)]===_0x50014f(0x12a)&&(_0x1ab1cc[_0x50014f(0x192)]=_0x59fa82[_0x50014f(0x12a)]),_0x54bef8['tag']===_0x50014f(0x1db)&&_0x1ab1cc['id']&&(_0x1ab1cc['id']+=_0x3973c9[_0x50014f(0x1d9)]),Object['entries'](_0x1ab1cc)['forEach'](([_0x3c4d67,_0x21c301])=>{const _0x4b0ad1=_0x50014f;_0x3c4d67==='mask'&&typeof _0x21c301=='string'&&(_0x1ab1cc[_0x3c4d67]=_0x21c301[_0x4b0ad1(0x251)](/url\(#(.*)\)/,_0x4b0ad1(0x1e8)+_0x3973c9[_0x4b0ad1(0x1d9)]+')'));});let {defIds:_0x70a2b5}=_0x3973c9;return!_0x70a2b5||_0x70a2b5[_0x50014f(0x232)]===0x0?_0x1ab1cc:(_0x54bef8[_0x50014f(0x257)]===_0x50014f(0x20d)&&_0x1ab1cc[_0x50014f(0x264)]&&(_0x1ab1cc[_0x50014f(0x264)]+=_0x3973c9['idSuffix']),Object[_0x50014f(0x1ac)](_0x1ab1cc)['forEach'](([_0x988ab6,_0x40f21f])=>{const _0x1bd913=_0x50014f;typeof _0x40f21f==_0x1bd913(0x290)&&(_0x1ab1cc[_0x988ab6]=_0x40f21f[_0x1bd913(0x251)](/url\(#(.*)\)/,_0x1bd913(0x1e8)+_0x3973c9[_0x1bd913(0x1d9)]+')'));}),_0x1ab1cc);}function _0x371e90(_0x330607,_0x2cc962){const _0x2dd217=_0xd9144a;var _0x843e87;let {defIds:_0x58ce51}=_0x2cc962;return!_0x58ce51||_0x58ce51[_0x2dd217(0x232)]===0x0?_0x330607:_0x330607[_0x2dd217(0x257)]==='defs'&&(_0x843e87=_0x330607[_0x2dd217(0x110)])!=null&&_0x843e87[_0x2dd217(0x232)]?{..._0x330607,'children':_0x330607['children']['map'](_0xf8ee9e=>typeof _0xf8ee9e[_0x2dd217(0x1d5)]['id']==_0x2dd217(0x290)&&_0x58ce51&&_0x58ce51['includes'](_0xf8ee9e[_0x2dd217(0x1d5)]['id'])?{..._0xf8ee9e,'attrs':{..._0xf8ee9e[_0x2dd217(0x1d5)],'id':_0xf8ee9e[_0x2dd217(0x1d5)]['id']+_0x2cc962[_0x2dd217(0x1d9)]}}:_0xf8ee9e)}:_0x330607;}function _0x295fd5(){const _0x3f435c=_0xd9144a;return Math[_0x3f435c(0x115)]()['toString'](0x24)[_0x3f435c(0x154)](0x2,0x8);}_0x3ac640[_0xd9144a(0x201)]=_0xd9144a(0x17d);let _0x2e3457={'tag':_0xd9144a(0x1bd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xd9144a(0x1d3),'viewBox':_0xd9144a(0x1a3),'width':_0xd9144a(0x18e),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xd9144a(0x10a),'fillRule':_0xd9144a(0x131),'clipRule':_0xd9144a(0x131)}}]},_0x2e01a0=(0x0,_0x42dad4[_0xd9144a(0x109)])(function(_0x3267da,_0x43b915){const _0x46cb33=_0xd9144a;return(0x0,_0x42dad4[_0x46cb33(0x141)])(_0x3ac640,Object[_0x46cb33(0x14d)]({},_0x3267da,{'id':_0x46cb33(0x126),'ref':_0x43b915,'icon':_0x2e3457}));});_0x2e01a0[_0xd9144a(0x201)]=_0xd9144a(0x1e0);let _0x11f1e2={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xd9144a(0x1d3),'viewBox':_0xd9144a(0x1a3),'width':_0xd9144a(0x18e),'height':_0xd9144a(0x18e)},'children':[{'tag':_0xd9144a(0x207),'attrs':{'fill':_0xd9144a(0x23e),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x197fa0=(0x0,_0x42dad4['forwardRef'])(function(_0x17e3a8,_0x813299){const _0x498fd0=_0xd9144a;return(0x0,_0x42dad4[_0x498fd0(0x141)])(_0x3ac640,Object[_0x498fd0(0x14d)]({},_0x17e3a8,{'id':'close-icon','ref':_0x813299,'icon':_0x11f1e2}));});_0x197fa0['displayName']=_0xd9144a(0x1a5);let _0x1c2291={'tag':_0xd9144a(0x1bd),'attrs':{'xmlns':_0xd9144a(0x280),'fill':_0xd9144a(0x1d3),'viewBox':_0xd9144a(0x1a3),'width':_0xd9144a(0x18e),'height':_0xd9144a(0x18e)},'children':[{'tag':_0xd9144a(0x207),'attrs':{'fill':_0xd9144a(0x23e),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0xd9144a(0x207),'attrs':{'fill':_0xd9144a(0x23e),'d':_0xd9144a(0x12f)}},{'tag':'path','attrs':{'fill':_0xd9144a(0x23e),'d':_0xd9144a(0x1f6),'fillRule':'evenodd','clipRule':_0xd9144a(0x131)}}]},_0x51bc0d=(0x0,_0x42dad4[_0xd9144a(0x109)])(function(_0x28c23a,_0x22dd79){const _0x603edc=_0xd9144a;return(0x0,_0x42dad4[_0x603edc(0x141)])(_0x3ac640,Object[_0x603edc(0x14d)]({},_0x28c23a,{'id':'help-icon','ref':_0x22dd79,'icon':_0x1c2291}));});_0x51bc0d['displayName']='HelpIcon';let _0x14116d={'tag':'svg','attrs':{'xmlns':_0xd9144a(0x280),'fill':_0xd9144a(0x1d3),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0xd9144a(0x18e)},'children':[{'tag':'g','attrs':{'clipPath':_0xd9144a(0x144)},'children':[{'tag':_0xd9144a(0x207),'attrs':{'stroke':'currentColor','d':_0xd9144a(0x147),'strokeLinecap':'round','strokeLinejoin':_0xd9144a(0x241),'strokeWidth':1.2}}]},{'tag':_0xd9144a(0x1c6),'attrs':{},'children':[{'tag':_0xd9144a(0x263),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xd9144a(0x207),'attrs':{'fill':_0xd9144a(0x1bb),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xd9144a(0x1ea)]},_0x2984f3=(0x0,_0x42dad4['forwardRef'])(function(_0x51bee7,_0x5911c5){const _0x151740=_0xd9144a;return(0x0,_0x42dad4[_0x151740(0x141)])(_0x3ac640,Object[_0x151740(0x14d)]({},_0x51bee7,{'id':_0x151740(0x1e2),'ref':_0x5911c5,'icon':_0x14116d}));});_0x2984f3[_0xd9144a(0x201)]=_0xd9144a(0x11b);let _0x429aaa={'tag':_0xd9144a(0x1bd),'attrs':{'xmlns':_0xd9144a(0x280),'fill':_0xd9144a(0x1d3),'viewBox':'0\x200\x2017\x2016','width':_0xd9144a(0x18e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xd9144a(0x12e)},'children':[{'tag':_0xd9144a(0x207),'attrs':{'stroke':_0xd9144a(0x23e),'d':_0xd9144a(0x14a),'strokeLinecap':_0xd9144a(0x241),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xd9144a(0x1c6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xd9144a(0x207),'attrs':{'fill':_0xd9144a(0x1bb),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0xd9144a(0x243)]},_0x204ac3=(0x0,_0x42dad4['forwardRef'])(function(_0x17a95f,_0x20e214){const _0x319254=_0xd9144a;return(0x0,_0x42dad4['createElement'])(_0x3ac640,Object[_0x319254(0x14d)]({},_0x17a95f,{'id':'on-line-icon','ref':_0x20e214,'icon':_0x429aaa}));});_0x204ac3[_0xd9144a(0x201)]=_0xd9144a(0x284);function _0x24fb32(_0x22dfc7){const _0x3f6416=_0xd9144a;var _0x5ad927,_0x17cc97;let {mcpCoreConfig:_0x1abbc1,onSave:_0x25718b,loading:_0xe384b9=!0x1,config:_0x262fea,connectionStatus$:_0x3aa234,connectionError$:_0x4add9c,currentApiKey$:_0x2abd34,currentSessionId$:_0x65f065}=_0x22dfc7,_0x154135=(0x0,_0x3c638e['useDependency'])(_0x1f795b['LocaleService']),_0x36ebbf=(0x0,_0x3c638e[_0x3f6416(0x239)])(_0x3aa234,_0x32aaba[_0x3f6416(0x11c)][_0x3f6416(0x18d)]),_0xff8012=(0x0,_0x3c638e[_0x3f6416(0x239)])(_0x4add9c,_0x32aaba['MCPConnectionError']['NONE']),_0x4a3624=(0x0,_0x3c638e[_0x3f6416(0x239)])(_0x65f065,''),[_0x3ee882,_0x268880]=(0x0,_0x42dad4[_0x3f6416(0x111)])((0x0,_0x3c638e[_0x3f6416(0x239)])(_0x2abd34,'')||''),_0x5b649a=_0x262fea[_0x3f6416(0x175)]&&_0x1abbc1[_0x3f6416(0x19d)]&&(_0x1abbc1[_0x3f6416(0x19d)][_0x3f6416(0x1b9)](_0x3f6416(0x191))||_0x1abbc1[_0x3f6416(0x19d)][_0x3f6416(0x1b9)](_0x3f6416(0x222))),_0x51ddb4=(_0x5ad927=_0x1abbc1[_0x3f6416(0x19d)])==null?void 0x0:_0x5ad927[_0x3f6416(0x1b9)](_0x3f6416(0x191)),_0x181f73=(_0x17cc97=_0x1abbc1[_0x3f6416(0x19d)])==null?void 0x0:_0x17cc97[_0x3f6416(0x1b9)](_0x3f6416(0x222)),_0x8cab12=_0x51ddb4?'https://console.univer.plus':_0x3f6416(0x1cb),_0x201a71=_0x262fea['showDeveloperTools']&&(_0x51ddb4||_0x181f73),[_0x382ed4,_0xeca85]=(0x0,_0x42dad4['useState'])(!_0x3ee882[_0x3f6416(0x279)]()),_0x11e2b6=(_0x3bac53,_0x3cf191)=>{const _0x5edf76=_0x3f6416;if(_0x3cf191===_0x32aaba[_0x5edf76(0x143)][_0x5edf76(0x291)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x3bac53){case _0x32aaba[_0x5edf76(0x11c)]['CONNECTED']:return _0x5edf76(0x19c);case _0x32aaba['MCPConnectionStatus'][_0x5edf76(0x27b)]:case _0x32aaba[_0x5edf76(0x11c)]['RETRYING']:return _0x5edf76(0x270);case _0x32aaba[_0x5edf76(0x11c)][_0x5edf76(0x159)]:return _0x5edf76(0x278);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1936b5=(_0x12e270,_0x1e8883)=>{const _0x317d7a=_0x3f6416;if(_0x1e8883===_0x32aaba[_0x317d7a(0x143)]['UNAUTHORIZED'])return _0x317d7a(0x194);switch(_0x12e270){case _0x32aaba[_0x317d7a(0x11c)]['CONNECTED']:return'univer-bg-green-500';case _0x32aaba['MCPConnectionStatus'][_0x317d7a(0x27b)]:case _0x32aaba[_0x317d7a(0x11c)][_0x317d7a(0x271)]:return _0x317d7a(0x14b);case _0x32aaba['MCPConnectionStatus'][_0x317d7a(0x159)]:return _0x317d7a(0x194);default:return _0x317d7a(0x261);}},_0x83ae9=_0x8f2276=>{const _0x45d7ab=_0x3f6416;switch(_0x8f2276){case _0x32aaba[_0x45d7ab(0x11c)][_0x45d7ab(0x157)]:return _0x154135['t'](_0x45d7ab(0x218));case _0x32aaba['MCPConnectionStatus']['CONNECTING']:return _0x154135['t']('mcpConfig.connectionStatus.connecting');case _0x32aaba[_0x45d7ab(0x11c)][_0x45d7ab(0x159)]:return _0x154135['t'](_0x45d7ab(0x15a));case _0x32aaba[_0x45d7ab(0x11c)]['RETRYING']:return _0x154135['t'](_0x45d7ab(0x24f));default:return _0x154135['t'](_0x45d7ab(0x132));}},_0x354446=_0x270ff0=>{const _0x3aff06=_0x3f6416;switch(_0x270ff0){case _0x32aaba[_0x3aff06(0x143)][_0x3aff06(0x291)]:return _0x154135['t'](_0x3aff06(0x227));case _0x32aaba['MCPConnectionError'][_0x3aff06(0x14e)]:return _0x154135['t'](_0x3aff06(0x204));case _0x32aaba['MCPConnectionError'][_0x3aff06(0x274)]:return _0x154135['t'](_0x3aff06(0x127));case _0x32aaba['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x154135['t'](_0x3aff06(0x1f9));default:return'';}},_0x657bbe=(0x0,_0x42dad4[_0x3f6416(0x216)])(()=>{const _0x270f07=_0x3f6416;_0x25718b({..._0x1abbc1,'apiKey':_0x3ee882[_0x270f07(0x279)](),'enableAuth':!0x0});},[_0x1abbc1,_0x3ee882,!0x0,_0x25718b]),_0x17f962=_0x3ee882['trim']()[_0x3f6416(0x232)]>0x0;return(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x102),'children':[(0x0,_0x150d2d['jsx'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x24a),'children':(0x0,_0x150d2d['jsxs'])('div',{'className':_0x3f6416(0x1d1),'children':[(0x0,_0x150d2d['jsx'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x281),'children':(0x0,_0x150d2d['jsx'])(_0x3f6416(0x21b),{'className':'univer-text-white','children':'⚙'})}),(0x0,_0x150d2d[_0x3f6416(0x140)])('div',{'children':(0x0,_0x150d2d[_0x3f6416(0x140)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x154135['t'](_0x3f6416(0x25f))})})]})}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1ab),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])('div',{'className':(0x0,_0x1d5666[_0x3f6416(0x1c8)])(_0x3f6416(0x287),_0x11e2b6(_0x36ebbf,_0xff8012)),'children':(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1b7),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':(0x0,_0x1d5666['clsx'])('univer-size-2\x20univer-rounded-full',_0x1936b5(_0x36ebbf,_0xff8012))}),(0x0,_0x150d2d['jsx'])('span',{'className':_0x3f6416(0x10c),'children':_0x83ae9(_0x36ebbf)})]})}),_0xff8012!==_0x32aaba[_0x3f6416(0x143)]['NONE']&&(_0x36ebbf===_0x32aaba['MCPConnectionStatus']['FAILED']||_0xff8012===_0x32aaba[_0x3f6416(0x143)][_0x3f6416(0x291)])&&(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x272),'children':(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1fc),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])('span',{'className':_0x3f6416(0x288),'children':'⚠️'}),(0x0,_0x150d2d[_0x3f6416(0x140)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x354446(_0xff8012)})]})})]}),(0x0,_0x150d2d[_0x3f6416(0x140)])('div',{'className':_0x3f6416(0x24e),'children':(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x17e),'children':[(0x0,_0x150d2d['jsxs'])(_0x3f6416(0x1cc),{'className':'univer-space-y-2','children':[(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x12d),{'className':_0x3f6416(0x277),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'children':'🔑'}),'\x20',_0x154135['t'](_0x3f6416(0x210)),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'className':_0x3f6416(0x162),'children':'*'}),_0x5b649a&&(0x0,_0x150d2d[_0x3f6416(0x140)])('a',{'className':_0x3f6416(0x11e),'title':_0x154135['t'](_0x3f6416(0x282)),'role':_0x3f6416(0x12b),'onClick':()=>_0xeca85(!0x0),'children':(0x0,_0x150d2d['jsx'])(_0x51bc0d,{})})]}),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x1d5666[_0x3f6416(0x28f)],{'type':_0x3f6416(0x1d8),'placeholder':_0x154135['t'](_0x3f6416(0x25d)),'value':_0x3ee882,'disabled':_0xe384b9,'autoComplete':_0x3f6416(0x13f),'onChange':_0x268880}),(0x0,_0x150d2d['jsx'])('p',{'className':_0x3f6416(0x15f),'children':_0x154135['t'](_0x3f6416(0x1be))})]}),_0x5b649a&&_0x382ed4&&(0x0,_0x150d2d[_0x3f6416(0x235)])('div',{'className':_0x3f6416(0x28c),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x3f6416(0x12b),'onClick':()=>_0xeca85(!0x1),'children':(0x0,_0x150d2d['jsx'])(_0x197fa0,{'className':_0x3f6416(0x217)})}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x181),'children':(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'className':_0x3f6416(0x20c),'children':'🚀'})}),(0x0,_0x150d2d['jsxs'])(_0x3f6416(0x1cc),{'className':'univer-flex-1','children':[(0x0,_0x150d2d['jsx'])('h4',{'className':_0x3f6416(0x190),'children':_0x154135['t'](_0x3f6416(0x282))}),(0x0,_0x150d2d[_0x3f6416(0x140)])('p',{'className':_0x3f6416(0x26e),'children':_0x154135['t']('mcpConfig.apiApplyInfo.description')}),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x201a71&&(0x0,_0x150d2d[_0x3f6416(0x235)])('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':_0x8cab12,'target':_0x3f6416(0x224),'rel':_0x3f6416(0x233),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'children':'🤖'}),_0x154135['t'](_0x3f6416(0x124)),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'className':_0x3f6416(0x1f5),'children':'↗'})]})}),(0x0,_0x150d2d['jsxs'])(_0x3f6416(0x1cc),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x154135['t'](_0x3f6416(0x158))]})]})]})]}),_0x262fea[_0x3f6416(0x175)]&&(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x234),'children':[(0x0,_0x150d2d[_0x3f6416(0x235)])('h4',{'className':_0x3f6416(0x286),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'children':'🔗'}),'\x20',_0x154135['t']('mcpConfig.connectionInfo')]}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x188),'children':[(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':'univer-space-y-3','children':[(0x0,_0x150d2d[_0x3f6416(0x140)])('p',{'className':_0x3f6416(0x168),'children':_0x154135['t'](_0x3f6416(0x22d))}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1a2),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])('div',{'className':_0x3f6416(0x150),'children':_0x154135['t']('mcpConfig.configStepTitle')}),(0x0,_0x150d2d['jsxs'])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,_0x150d2d['jsxs'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1b7),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])('span',{'className':_0x3f6416(0x292),'children':'1'}),_0x154135['t'](_0x3f6416(0x200))]}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1b7),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'className':_0x3f6416(0x292),'children':'2'}),_0x154135['t'](_0x3f6416(0x13e))]}),(0x0,_0x150d2d['jsxs'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1b7),'children':[(0x0,_0x150d2d['jsx'])('span',{'className':_0x3f6416(0x292),'children':'3'}),_0x154135['t'](_0x3f6416(0x183))]})]})]})]}),(0x0,_0x150d2d['jsxs'])('div',{'className':_0x3f6416(0x1a2),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x150),'children':_0x3f6416(0x1d7)}),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x295),'children':(0x0,_0x150d2d[_0x3f6416(0x140)])('pre',{'className':_0x3f6416(0x21f),'children':JSON[_0x3f6416(0x25e)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x4a3624||_0x3f6416(0x1ed)),'type':_0x3f6416(0x145),'headers':{'Authorization':_0x3f6416(0x148)+(_0x3ee882||'<API_KEY>')}}}},null,0x2)})})]}),(0x0,_0x150d2d[_0x3f6416(0x235)])('div',{'className':_0x3f6416(0x27d),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x154135['t'](_0x3f6416(0x180))}),(0x0,_0x150d2d[_0x3f6416(0x235)])('div',{'className':_0x3f6416(0x1a2),'children':[(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1c4),'children':[(0x0,_0x150d2d['jsx'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1e5)}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x10d),'children':[(0x0,_0x150d2d['jsx'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x249),'children':_0x3f6416(0x149)}),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x15f),'children':_0x154135['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,_0x150d2d['jsxs'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1c4),'children':[(0x0,_0x150d2d['jsx'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x1e5)}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x10d),'children':[(0x0,_0x150d2d['jsx'])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x249),'children':_0x3f6416(0x15c)}),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x15f),'children':_0x154135['t'](_0x3f6416(0x122))})]})]})]})]})]})]}),(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x1d5666['Button'],{'onClick':_0x657bbe,'disabled':!_0x17f962||_0xe384b9,'className':_0x3f6416(0x21e),'children':_0xe384b9?(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x21b),{'className':_0x3f6416(0x1b7),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'children':'⟲'}),_0x154135['t'](_0x3f6416(0x173))]}):(0x0,_0x150d2d['jsxs'])('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x2e01a0,{}),_0x154135['t'](_0x3f6416(0x1dc))]})}),(0x0,_0x150d2d[_0x3f6416(0x140)])('div',{'className':_0x3f6416(0x242),'children':(0x0,_0x150d2d[_0x3f6416(0x235)])('div',{'className':'univer-flex\x20univer-gap-3','children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x21b),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x223),'children':[(0x0,_0x150d2d[_0x3f6416(0x140)])(_0x3f6416(0x1cc),{'className':_0x3f6416(0x26d),'children':_0x3f6416(0x254)}),(0x0,_0x150d2d['jsxs'])(_0x3f6416(0x1cc),{'children':['•',_0x154135['t'](_0x3f6416(0x113))]}),(0x0,_0x150d2d[_0x3f6416(0x235)])(_0x3f6416(0x1cc),{'children':['•',_0x154135['t'](_0x3f6416(0x250))]})]})]})})]})})]});}let _0x450111=_0xd9144a(0x142);Symbol(_0x450111);let _0x4c7983={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x4445c1(_0x2c9a7e){'@babel/helpers - typeof';const _0x4a1c77=_0xd9144a;return _0x4445c1=typeof Symbol==_0x4a1c77(0x146)&&typeof Symbol[_0x4a1c77(0x1d6)]==_0x4a1c77(0x205)?function(_0x48b536){return typeof _0x48b536;}:function(_0x33658b){const _0x587f34=_0x4a1c77;return _0x33658b&&typeof Symbol=='function'&&_0x33658b[_0x587f34(0x259)]===Symbol&&_0x33658b!==Symbol[_0x587f34(0x197)]?_0x587f34(0x205):typeof _0x33658b;},_0x4445c1(_0x2c9a7e);}function _0x3d1196(_0x1ac608,_0x45dee6){const _0x18896a=_0xd9144a;if(_0x4445c1(_0x1ac608)!='object'||!_0x1ac608)return _0x1ac608;var _0x15f5f8=_0x1ac608[Symbol[_0x18896a(0x161)]];if(_0x15f5f8!==void 0x0){var _0x3de3ea=_0x15f5f8['call'](_0x1ac608,_0x45dee6||_0x18896a(0x219));if(_0x4445c1(_0x3de3ea)!=_0x18896a(0x285))return _0x3de3ea;throw TypeError(_0x18896a(0x28a));}return(_0x45dee6===_0x18896a(0x290)?String:Number)(_0x1ac608);}function _0x3c7875(_0x3db3dc){const _0x2d734d=_0xd9144a;var _0x5d3d43=_0x3d1196(_0x3db3dc,_0x2d734d(0x290));return _0x4445c1(_0x5d3d43)=='symbol'?_0x5d3d43:_0x5d3d43+'';}function _0x103371(_0x2eeb6f,_0x32f6da,_0x5cc076){const _0x20bdae=_0xd9144a;return(_0x32f6da=_0x3c7875(_0x32f6da))in _0x2eeb6f?Object[_0x20bdae(0x1c3)](_0x2eeb6f,_0x32f6da,{'value':_0x5cc076,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2eeb6f[_0x32f6da]=_0x5cc076,_0x2eeb6f;}function _0x2664d3(_0xb4e9d2,_0x59ba90){return function(_0x5d49a3,_0x1f0c4c){_0x59ba90(_0x5d49a3,_0x1f0c4c,_0xb4e9d2);};}function _0x79d6ef(_0x5919ec,_0x2cae1e,_0x2ff78f,_0x755ad3){const _0x4f985d=_0xd9144a;var _0x1a567f=arguments[_0x4f985d(0x232)],_0x28b8a8=_0x1a567f<0x3?_0x2cae1e:_0x755ad3===null?_0x755ad3=Object[_0x4f985d(0x1af)](_0x2cae1e,_0x2ff78f):_0x755ad3,_0x1f63ba;if(typeof Reflect==_0x4f985d(0x285)&&typeof Reflect[_0x4f985d(0x22b)]==_0x4f985d(0x146))_0x28b8a8=Reflect['decorate'](_0x5919ec,_0x2cae1e,_0x2ff78f,_0x755ad3);else{for(var _0x139826=_0x5919ec[_0x4f985d(0x232)]-0x1;_0x139826>=0x0;_0x139826--)(_0x1f63ba=_0x5919ec[_0x139826])&&(_0x28b8a8=(_0x1a567f<0x3?_0x1f63ba(_0x28b8a8):_0x1a567f>0x3?_0x1f63ba(_0x2cae1e,_0x2ff78f,_0x28b8a8):_0x1f63ba(_0x2cae1e,_0x2ff78f))||_0x28b8a8);}return _0x1a567f>0x3&&_0x28b8a8&&Object[_0x4f985d(0x1c3)](_0x2cae1e,_0x2ff78f,_0x28b8a8),_0x28b8a8;}let _0x4ebbe7='mcp.apiKey',_0x3971a0=_0xd9144a(0x170),_0x17cdbd=class extends _0x1f795b[_0xd9144a(0x28b)]{constructor(_0x22e49c,_0x4bae32,_0x37ae80,_0x3c27d4,_0x4bf0b6,_0x52787a,_0x5cfb61,_0x22cd08,_0x390cf9,_0x1f1992){const _0x3ac680=_0xd9144a;super(),this[_0x3ac680(0x226)]=_0x22e49c,this[_0x3ac680(0x172)]=_0x4bae32,this[_0x3ac680(0x225)]=_0x37ae80,this[_0x3ac680(0x231)]=_0x3c27d4,this[_0x3ac680(0x1f7)]=_0x4bf0b6,this[_0x3ac680(0x1fb)]=_0x52787a,this[_0x3ac680(0x112)]=_0x5cfb61,this[_0x3ac680(0x211)]=_0x22cd08,this[_0x3ac680(0x176)]=_0x390cf9,this[_0x3ac680(0x1cf)]=_0x1f1992,_0x103371(this,_0x3ac680(0x1da),new _0x2b6b83[(_0x3ac680(0x26f))](!0x1)),_0x103371(this,_0x3ac680(0x1f4),new _0x2b6b83['BehaviorSubject']({})),_0x103371(this,_0x3ac680(0x1dd),new _0x2b6b83[(_0x3ac680(0x26f))]({})),_0x103371(this,_0x3ac680(0x15e),new _0x2b6b83['BehaviorSubject']('')),_0x103371(this,_0x3ac680(0x128),async _0x47d991=>{const _0x328aef=_0x3ac680;this[_0x328aef(0x1da)][_0x328aef(0x28e)](!0x0);try{var _0x3d1297,_0x552baa;let _0xcb79d1=await this[_0x328aef(0x1e6)](_0x47d991);if(!_0xcb79d1[_0x328aef(0x133)]){this[_0x328aef(0x1fb)][_0x328aef(0x293)]({'type':_0x1d5666[_0x328aef(0x13c)]['Error'],'content':_0xcb79d1['errorMessage']||this[_0x328aef(0x211)]['t'](_0x328aef(0x206))});return;}_0x47d991[_0x328aef(0x1b8)]?await this['_localStorageService']['setItem'](_0x4ebbe7,_0x47d991[_0x328aef(0x1b8)][_0x328aef(0x279)]()):await this[_0x328aef(0x231)][_0x328aef(0x213)](_0x4ebbe7),this[_0x328aef(0x15e)][_0x328aef(0x28e)](((_0x3d1297=_0x47d991[_0x328aef(0x1b8)])==null?void 0x0:_0x3d1297['trim']())||''),this[_0x328aef(0x1cf)][_0x328aef(0x1c7)]({'Authorization':_0x328aef(0x148)+((_0x552baa=_0x47d991[_0x328aef(0x1b8)])==null?void 0x0:_0x552baa[_0x328aef(0x279)]())}),this[_0x328aef(0x1fb)][_0x328aef(0x293)]({'type':_0x1d5666[_0x328aef(0x13c)][_0x328aef(0x134)],'content':this[_0x328aef(0x211)]['t'](_0x328aef(0x221))}),setTimeout(()=>{const _0x3cf9a5=_0x328aef;this[_0x3cf9a5(0x1f7)][_0x3cf9a5(0x138)](_0x3971a0);},0x320);}catch(_0x521827){this['_logService'][_0x328aef(0x10e)](_0x328aef(0x169),_0x521827),this[_0x328aef(0x1fb)][_0x328aef(0x293)]({'type':_0x1d5666[_0x328aef(0x13c)][_0x328aef(0x137)],'content':this[_0x328aef(0x211)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x328aef(0x28e)](!0x1);}}),this[_0x3ac680(0x104)](),this[_0x3ac680(0x1a0)](),this[_0x3ac680(0x214)]();}[_0xd9144a(0x1b1)](){const _0x2b5a5d=_0xd9144a;let _0x507c30=this[_0x2b5a5d(0x225)][_0x2b5a5d(0x15b)](_0x450111);_0x507c30!=null&&_0x507c30[_0x2b5a5d(0x175)]&&this[_0x2b5a5d(0x1f7)]['open']({'id':_0x3971a0,'title':{'title':this[_0x2b5a5d(0x211)]['t'](_0x2b5a5d(0x209))},'children':{'label':_0x2b5a5d(0x1f2)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x336207=_0x2b5a5d;this[_0x336207(0x1f7)][_0x336207(0x138)](_0x3971a0);}});}[_0xd9144a(0x26b)](){const _0x49ae56=_0xd9144a;return this[_0x49ae56(0x1f4)][_0x49ae56(0x1b2)];}[_0xd9144a(0x214)](){const _0x4b9bc2=_0xd9144a;this[_0x4b9bc2(0x27e)](this[_0x4b9bc2(0x112)][_0x4b9bc2(0x21a)](_0x4b9bc2(0x1f2),this[_0x4b9bc2(0x246)]()));}[_0xd9144a(0x246)](){const _0x470e64=_0xd9144a;return(0x0,_0x3c638e['connectInjector'])(()=>{const _0xa3e505=_0x5483;var _0x4d0090,_0x2a3557,_0x48ee3d;return(0x0,_0x150d2d[_0xa3e505(0x140)])(_0x24fb32,{'config':this[_0xa3e505(0x1dd)][_0xa3e505(0x1b2)],'mcpCoreConfig':this[_0xa3e505(0x1f4)]['value'],'currentApiKey$':this[_0xa3e505(0x15e)],'onSave':this[_0xa3e505(0x128)],'loading':this[_0xa3e505(0x1da)][_0xa3e505(0x1b2)],'connectionStatus$':(_0x4d0090=this[_0xa3e505(0x1cf)])==null?void 0x0:_0x4d0090[_0xa3e505(0x275)],'connectionError$':(_0x2a3557=this[_0xa3e505(0x1cf)])==null?void 0x0:_0x2a3557[_0xa3e505(0x20a)],'currentSessionId$':(_0x48ee3d=this[_0xa3e505(0x1cf)])==null?void 0x0:_0x48ee3d['sessionId$']});},this[_0x470e64(0x226)]);}[_0xd9144a(0x104)](){const _0x54855b=_0xd9144a;this['disposeWithMe'](this[_0x54855b(0x225)][_0x54855b(0x174)](_0x32aaba['MCP_PLUGIN_CONFIG_KEY'])[_0x54855b(0x1f0)](_0x21a9e0=>{const _0x591319=_0x54855b;this[_0x591319(0x1f4)][_0x591319(0x28e)](_0x21a9e0||{});}));let _0x16deb3=this['_configService']['getConfig'](_0x32aaba[_0x54855b(0x10f)]);this[_0x54855b(0x1f4)][_0x54855b(0x28e)](_0x16deb3||{}),this[_0x54855b(0x27e)](this[_0x54855b(0x225)][_0x54855b(0x174)](_0x450111)['subscribe'](_0x178bc7=>{const _0x2ce9a0=_0x54855b;this[_0x2ce9a0(0x1dd)]['next'](_0x178bc7||{});}));let _0x5b1c0c=this[_0x54855b(0x225)][_0x54855b(0x15b)](_0x450111);this[_0x54855b(0x1dd)][_0x54855b(0x28e)](_0x5b1c0c||{});}async[_0xd9144a(0x1a0)](){const _0x534c9f=_0xd9144a;let _0x5751c0=this['_configService'][_0x534c9f(0x15b)](_0x450111);if(!(_0x5751c0!=null&&_0x5751c0['showDeveloperTools']))return;let _0x57a5db=await this[_0x534c9f(0x231)][_0x534c9f(0x1f3)](_0x4ebbe7);_0x57a5db&&(this['_mcpConnectionController'][_0x534c9f(0x1c7)]({'Authorization':_0x534c9f(0x148)+_0x57a5db}),this[_0x534c9f(0x15e)]['next'](_0x57a5db));}async[_0xd9144a(0x1e6)](_0x4e3037){const _0x4ff956=_0xd9144a;if(!_0x4e3037[_0x4ff956(0x1b8)]||_0x4e3037[_0x4ff956(0x1b8)]['trim']()[_0x4ff956(0x232)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4ff956(0x211)]['t'](_0x4ff956(0x11d))};if(_0x4e3037[_0x4ff956(0x1b8)][_0x4ff956(0x279)]()[_0x4ff956(0x232)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4ff956(0x211)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x975941=await this[_0x4ff956(0x226)][_0x4ff956(0x1e7)](_0x32aaba[_0x4ff956(0x186)])[_0x4ff956(0x1bf)](_0x4e3037[_0x4ff956(0x1b8)][_0x4ff956(0x279)]());return _0x975941['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x975941[_0x4ff956(0x10e)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x56599a){return console[_0x4ff956(0x130)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x56599a),{'isValid':!0x0};}}};_0x17cdbd=_0x79d6ef([_0x2664d3(0x0,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x1f795b[_0xd9144a(0x256)])),_0x2664d3(0x1,_0x3c638e[_0xd9144a(0x18a)]),_0x2664d3(0x2,_0x1f795b[_0xd9144a(0x116)]),_0x2664d3(0x3,_0x1f795b[_0xd9144a(0x14c)]),_0x2664d3(0x4,_0x3c638e[_0xd9144a(0x20e)]),_0x2664d3(0x5,_0x3c638e[_0xd9144a(0x1ff)]),_0x2664d3(0x6,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x3c638e[_0xd9144a(0x16d)])),_0x2664d3(0x7,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x1f795b[_0xd9144a(0x1df)])),_0x2664d3(0x8,_0x1f795b[_0xd9144a(0x283)]),_0x2664d3(0x9,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x32aaba['MCPConnectionController']))],_0x17cdbd);let _0x12d301={'id':_0xd9144a(0x265),'type':_0x1f795b[_0xd9144a(0x22a)][_0xd9144a(0x229)],'handler':async(_0x4bf701,_0x4cbd92)=>(_0x4bf701[_0xd9144a(0x1e7)](_0x17cdbd)[_0xd9144a(0x1b1)](),!0x0)};function _0x19b9ac(_0x4e37c0,_0x288bbb){const _0xcea70e=_0xd9144a;switch(_0x4e37c0){case _0x32aaba[_0xcea70e(0x11c)]['DISCONNECTED']:return'mcpStatus.disconnected';case _0x32aaba[_0xcea70e(0x11c)][_0xcea70e(0x27b)]:return _0xcea70e(0x1a4);case _0x32aaba[_0xcea70e(0x11c)][_0xcea70e(0x157)]:return _0xcea70e(0x25a);case _0x32aaba[_0xcea70e(0x11c)][_0xcea70e(0x159)]:switch(_0x288bbb){case _0x32aaba['MCPConnectionError'][_0xcea70e(0x291)]:return'mcpStatus.unauthorized';case _0x32aaba['MCPConnectionError'][_0xcea70e(0x14e)]:return _0xcea70e(0x1ad);case _0x32aaba[_0xcea70e(0x143)][_0xcea70e(0x274)]:return _0xcea70e(0x1ca);case _0x32aaba['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0xcea70e(0x1ef);default:return _0xcea70e(0x17f);}case _0x32aaba[_0xcea70e(0x11c)]['RETRYING']:return _0xcea70e(0x163);default:return'mcpStatus.unknown';}}function _0xeb23ef(_0x1577a1,_0x211983,_0x2cd5f2,_0x3a674e=!0x0){const _0x1134d1=_0xd9144a;let _0x1c1041=_0x19b9ac(_0x1577a1,_0x211983),_0x2ac8dd=_0x2cd5f2['t'](_0x1c1041);return _0x3a674e?_0x1577a1===_0x32aaba[_0x1134d1(0x11c)][_0x1134d1(0x18d)]&&_0x211983===_0x32aaba[_0x1134d1(0x143)][_0x1134d1(0x291)]?_0x2ac8dd+_0x1134d1(0x152)+_0x2cd5f2['t']('mcpStatus.clickToConfigure'):_0x1577a1===_0x32aaba[_0x1134d1(0x11c)][_0x1134d1(0x157)]?''+_0x2ac8dd:_0x1577a1===_0x32aaba[_0x1134d1(0x11c)][_0x1134d1(0x18d)]||_0x1577a1===_0x32aaba[_0x1134d1(0x11c)][_0x1134d1(0x159)]?_0x2ac8dd+_0x1134d1(0x152)+_0x2cd5f2['t'](_0x1134d1(0x1e9)):_0x2ac8dd:_0x2ac8dd;}function _0x19cab3(_0x3efa46){const _0x45813=_0xd9144a;switch(_0x3efa46){case _0x32aaba[_0x45813(0x11c)][_0x45813(0x157)]:return _0x45813(0x21d);case _0x32aaba[_0x45813(0x11c)][_0x45813(0x27b)]:case _0x32aaba['MCPConnectionStatus']['RETRYING']:return _0x45813(0x276);case _0x32aaba[_0x45813(0x11c)][_0x45813(0x159)]:case _0x32aaba[_0x45813(0x11c)]['DISCONNECTED']:return _0x45813(0x162);default:return _0x45813(0x17b);}}function _0x38ebb0(_0x18b4ed){const _0x537f44=_0xd9144a;let {status$:_0xb6e342,error$:_0x52b262,onConfigure:_0x2f5533,showClickable:_0x3ecfe7=!0x0}=_0x18b4ed,_0x4ba543=(0x0,_0x3c638e[_0x537f44(0x239)])(_0xb6e342,_0x32aaba[_0x537f44(0x11c)][_0x537f44(0x18d)]),_0x463892=(0x0,_0x3c638e[_0x537f44(0x239)])(_0x52b262,_0x32aaba['MCPConnectionError']['NONE']),_0x33372e=(0x0,_0x3c638e[_0x537f44(0x13d)])(_0x1f795b[_0x537f44(0x1df)]),_0x3c4c66=_0x4ba543===_0x32aaba[_0x537f44(0x11c)][_0x537f44(0x157)];_0x4ba543===_0x32aaba[_0x537f44(0x11c)][_0x537f44(0x27b)]||_0x32aaba[_0x537f44(0x11c)][_0x537f44(0x271)];let _0x250723=_0x33372e['t'](_0x19b9ac(_0x4ba543,_0x463892)),_0xf5f358=_0xeb23ef(_0x4ba543,_0x463892,_0x33372e,_0x3ecfe7),_0x545811=_0x19cab3(_0x4ba543),_0x21aca3=_0x3c4c66?(0x0,_0x150d2d[_0x537f44(0x140)])(_0x204ac3,{}):(0x0,_0x150d2d['jsx'])(_0x2984f3,{}),_0x4827b6=(0x0,_0x42dad4[_0x537f44(0x216)])(()=>{_0x3ecfe7&&_0x2f5533&&_0x2f5533();},[_0x3ecfe7,_0x2f5533]);function _0x581639(){const _0x2b3809=_0x537f44;return(0x0,_0x150d2d[_0x2b3809(0x235)])(_0x2b3809(0x1cc),{'className':(0x0,_0x1d5666[_0x2b3809(0x1c8)])('univer-flex\x20univer-items-center',_0x3ecfe7&&_0x2f5533&&_0x2b3809(0x107)),'role':_0x2b3809(0x12b),'onClick':_0x3ecfe7&&_0x2f5533?_0x4827b6:void 0x0,'children':[(0x0,_0x150d2d[_0x2b3809(0x140)])(_0x2b3809(0x1cc),{'className':(0x0,_0x1d5666[_0x2b3809(0x1c8)])(_0x2b3809(0x177),_0x545811),'children':_0x21aca3}),(0x0,_0x150d2d[_0x2b3809(0x140)])(_0x2b3809(0x1cc),{'className':_0x2b3809(0x1c9),'children':_0x250723})]});}return(0x0,_0x150d2d[_0x537f44(0x140)])(_0x1d5666[_0x537f44(0x120)],{'title':_0xf5f358,'placement':'bottom','children':_0x581639()});}let _0xaccb2=class extends _0x1f795b[_0xd9144a(0x28b)]{constructor(_0x578c10,_0x4d4183,_0x478558,_0x3b5e36){const _0xe58500=_0xd9144a;super(),this[_0xe58500(0x226)]=_0x578c10,this[_0xe58500(0x103)]=_0x4d4183,this['_uiPartsService']=_0x478558,this[_0xe58500(0x225)]=_0x3b5e36,this[_0xe58500(0x119)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x29776d=_0xd9144a;let _0x3f97c6=this[_0x29776d(0x225)]['getConfig'](_0x450111);_0x3f97c6!=null&&_0x3f97c6[_0x29776d(0x175)]&&(this[_0x29776d(0x103)][_0x29776d(0x1ee)]=!0x1);}[_0xd9144a(0x20f)](){const _0x1c5e56=_0xd9144a;let _0x331695=this['_configService'][_0x1c5e56(0x15b)](_0x450111);(_0x331695==null?void 0x0:_0x331695[_0x1c5e56(0x236)])!==!0x1&&this[_0x1c5e56(0x27e)](this[_0x1c5e56(0x172)]['registerComponent'](_0x3c638e['BuiltInUIPart'][_0x1c5e56(0x1d0)],()=>{const _0x2335ab=_0x1c5e56;var _0x4f3b42;return(0x0,_0x3c638e[_0x2335ab(0x247)])(_0x2845c3({'status$':this[_0x2335ab(0x103)][_0x2335ab(0x275)],'error$':this[_0x2335ab(0x103)][_0x2335ab(0x20a)],'onConfigure':()=>this[_0x2335ab(0x245)](),'showClickable':(_0x4f3b42=_0x331695==null?void 0x0:_0x331695['showDeveloperTools'])==null?!0x1:_0x4f3b42}),this[_0x2335ab(0x226)]);}));}[_0xd9144a(0x245)](){const _0x20c068=_0xd9144a;this[_0x20c068(0x226)]['get'](_0x17cdbd)['showConfigPanel']();}};_0xaccb2=_0x79d6ef([_0x2664d3(0x0,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x1f795b[_0xd9144a(0x256)])),_0x2664d3(0x1,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x32aaba[_0xd9144a(0x186)])),_0x2664d3(0x2,_0x3c638e['IUIPartsService']),_0x2664d3(0x3,_0x1f795b[_0xd9144a(0x116)])],_0xaccb2);function _0x2845c3(_0x3de77a){let {status$:_0x7c4c57,error$:_0x5526fe,onConfigure:_0x49ec37,showClickable:_0x41c5ba}=_0x3de77a;return function(){const _0x27274a=_0x5483;return(0x0,_0x150d2d[_0x27274a(0x140)])(_0x38ebb0,{'status$':_0x7c4c57,'error$':_0x5526fe,'onConfigure':_0x49ec37,'showClickable':_0x41c5ba});};}function _0x52f643(_0x1f3bd6){const _0x339c1e=_0xd9144a;return{'id':_0x12d301['id'],'type':_0x3c638e[_0x339c1e(0x16e)][_0x339c1e(0x1d2)],'icon':_0x339c1e(0x1cd),'title':_0x339c1e(0x209),'tooltip':_0x339c1e(0x209)};}let _0x2cb617={[_0x3c638e[_0xd9144a(0x268)][_0xd9144a(0x24c)]]:{[_0x12d301['id']]:{'order':0xa,'menuItemFactory':_0x52f643}}},_0x2f33f5=class extends _0x1f795b[_0xd9144a(0x28b)]{constructor(_0x2d4997,_0x37cf04){const _0x3ca565=_0xd9144a;super(),this['_commandService']=_0x2d4997,this[_0x3ca565(0x14f)]=_0x37cf04,this[_0x3ca565(0x167)](),this[_0x3ca565(0x1a6)]();}[_0xd9144a(0x167)](){const _0x4e524d=_0xd9144a;[_0x12d301][_0x4e524d(0x1b0)](_0x4ca337=>{const _0x4cf7dc=_0x4e524d;this[_0x4cf7dc(0x27e)](this[_0x4cf7dc(0x240)]['registerCommand'](_0x4ca337));});}[_0xd9144a(0x1a6)](){const _0x279027=_0xd9144a;this[_0x279027(0x14f)][_0x279027(0x27a)](_0x2cb617);}};_0x2f33f5=_0x79d6ef([_0x2664d3(0x0,_0x1f795b['ICommandService']),_0x2664d3(0x1,_0x3c638e[_0xd9144a(0x1c5)])],_0x2f33f5);let _0x295b57={'mcpStatus':{'disconnected':_0xd9144a(0x23a),'connecting':_0xd9144a(0x273),'connected':'MCP\x20Connected','failed':_0xd9144a(0x22c),'retrying':_0xd9144a(0x118),'unknown':_0xd9144a(0x260),'unauthorized':_0xd9144a(0x1d4),'sessionOccupied':_0xd9144a(0x156),'networkError':_0xd9144a(0x1f1),'maxRetriesExceeded':_0xd9144a(0x11a),'clickToConnect':_0xd9144a(0x23c),'clickToConfigure':_0xd9144a(0x212)},'mcpConfig':{'title':_0xd9144a(0x1d7),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xd9144a(0x10b),'apiKeyPlaceholder':_0xd9144a(0x21c),'apiKeyHint':_0xd9144a(0x16b),'enableAuth':_0xd9144a(0x26c),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xd9144a(0x123),'mcpClientConfig':_0xd9144a(0x123),'configInstructions':_0xd9144a(0x248),'configStepTitle':_0xd9144a(0x1de),'configStep1':_0xd9144a(0x253),'configStep2':_0xd9144a(0x1a1),'configStep3':_0xd9144a(0x166),'sessionId':_0xd9144a(0x27c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xd9144a(0x17a),'configParameters':_0xd9144a(0x1b6),'maxRetries':_0xd9144a(0x1a7),'save':_0xd9144a(0x220),'saving':_0xd9144a(0x24d),'note1':_0xd9144a(0x182),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xd9144a(0x187),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xd9144a(0x228),'description':_0xd9144a(0x1fd),'univerAiLabel':_0xd9144a(0x199),'getStarted':_0xd9144a(0x25b)},'validation':{'apiKeyRequired':_0xd9144a(0x1e3),'apiKeyTooShort':_0xd9144a(0x289),'invalidConfig':_0xd9144a(0x178),'invalidApiKey':_0xd9144a(0x114)},'connectionStatus':{'disconnected':_0xd9144a(0x23b),'connecting':_0xd9144a(0x19e),'connected':_0xd9144a(0x165),'failed':'Connection\x20Failed','retrying':_0xd9144a(0x1ec)},'connectionError':{'unauthorized':_0xd9144a(0x1e1),'sessionOccupied':_0xd9144a(0x11f),'networkError':_0xd9144a(0x129),'maxRetriesExceeded':_0xd9144a(0x12c)}}},_0x31edbc={'mcpStatus':{'disconnected':_0xd9144a(0x125),'connecting':_0xd9144a(0x1aa),'connected':_0xd9144a(0x1b5),'failed':'MCP\x20连接失败','retrying':_0xd9144a(0x18c),'unknown':_0xd9144a(0x1eb),'unauthorized':_0xd9144a(0x1f8),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0xd9144a(0x1c1),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xd9144a(0x17c)},'mcpConfig':{'title':_0xd9144a(0x117),'description':_0xd9144a(0x215),'apiKey':_0xd9144a(0x23d),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0xd9144a(0x28d),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0xd9144a(0x25c),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0xd9144a(0x262),'configStepTitle':_0xd9144a(0x269),'configStep1':_0xd9144a(0x20b),'configStep2':_0xd9144a(0x19f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0xd9144a(0x19a),'sessionIdDescription':_0xd9144a(0x13b),'authorizationDescription':_0xd9144a(0x252),'configParameters':_0xd9144a(0x1ae),'maxRetries':_0xd9144a(0x1c2),'save':_0xd9144a(0x24b),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0xd9144a(0x179),'configSaved':_0xd9144a(0x105),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0xd9144a(0x267),'univerAiLabel':_0xd9144a(0x255),'getStarted':_0xd9144a(0x139)},'validation':{'apiKeyRequired':_0xd9144a(0x151),'apiKeyTooShort':_0xd9144a(0x106),'invalidConfig':'配置无效','invalidApiKey':_0xd9144a(0x1ba)},'connectionStatus':{'disconnected':'未连接','connecting':_0xd9144a(0x196),'connected':_0xd9144a(0x16f),'failed':_0xd9144a(0x18f),'retrying':_0xd9144a(0x121)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0xd9144a(0x135)}}};var _0x4dbe7b='@univerjs-pro/mcp-ui',_0x171100=_0xd9144a(0x1a9);let _0x5dc20d=class extends _0x1f795b[_0xd9144a(0x1ce)]{constructor(_0x16b838=_0x4c7983,_0xb74ad7,_0x3a7a5e,_0x3c048e,_0x15567b,_0x2c420e){const _0x3540a6=_0xd9144a;super(),this[_0x3540a6(0x1c0)]=_0x16b838,this[_0x3540a6(0x226)]=_0xb74ad7,this['_configService']=_0x3a7a5e,this[_0x3540a6(0x172)]=_0x3c048e,this[_0x3540a6(0x231)]=_0x15567b,this[_0x3540a6(0x211)]=_0x2c420e;let {..._0x367dd9}=(0x0,_0x1f795b[_0x3540a6(0x171)])({},_0x4c7983,this[_0x3540a6(0x1c0)]);this[_0x3540a6(0x225)]['setConfig'](_0x450111,_0x367dd9);}async[_0xd9144a(0x193)](){const _0x3695f7=_0xd9144a;let _0x136290=[[_0xaccb2],[_0x17cdbd],[_0x2f33f5]];this[_0x3695f7(0x226)][_0x3695f7(0x1a8)](_0x392d75[_0x3695f7(0x22e)])||_0x136290['push']([_0x392d75[_0x3695f7(0x22e)],{'useClass':_0x392d75[_0x3695f7(0x203)]}]),_0x136290[_0x3695f7(0x1b0)](_0x49b920=>this[_0x3695f7(0x226)][_0x3695f7(0x1b3)](_0x49b920)),this[_0x3695f7(0x226)]['get'](_0xaccb2),this['_injector']['get'](_0x17cdbd),this['_injector']['get'](_0x2f33f5);}};_0x103371(_0x5dc20d,'pluginName',_0xd9144a(0x266)),_0x103371(_0x5dc20d,_0xd9144a(0x184),_0x4dbe7b),_0x103371(_0x5dc20d,'version',_0x171100),_0x5dc20d=_0x79d6ef([(0x0,_0x1f795b['DependentOn'])(_0x32aaba[_0xd9144a(0x108)]),_0x2664d3(0x1,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x1f795b[_0xd9144a(0x256)])),_0x2664d3(0x2,_0x1f795b[_0xd9144a(0x116)]),_0x2664d3(0x3,_0x3c638e[_0xd9144a(0x18a)]),_0x2664d3(0x4,_0x1f795b['ILocalStorageService']),_0x2664d3(0x5,(0x0,_0x1f795b[_0xd9144a(0x258)])(_0x1f795b[_0xd9144a(0x1df)]))],_0x5dc20d),_0x51910d[_0xd9144a(0x1f2)]=_0x24fb32,Object[_0xd9144a(0x1c3)](_0x51910d,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return _0x17cdbd;}}),Object['defineProperty'](_0x51910d,_0xd9144a(0x164),{'enumerable':!0x0,'get':function(){return _0xaccb2;}}),_0x51910d['MCPStatusDisplay']=_0x38ebb0,Object['defineProperty'](_0x51910d,_0xd9144a(0x230),{'enumerable':!0x0,'get':function(){return _0x2f33f5;}}),_0x51910d[_0xd9144a(0x1fa)]=_0x12d301,Object[_0xd9144a(0x1c3)](_0x51910d,_0xd9144a(0x202),{'enumerable':!0x0,'get':function(){return _0x5dc20d;}}),_0x51910d[_0xd9144a(0x136)]=_0x295b57,_0x51910d[_0xd9144a(0x18b)]=_0x31edbc;}));function _0x5483(_0x198e2b,_0x15ec3e){_0x198e2b=_0x198e2b-0x102;const _0xb33950=_0xb339();let _0x5483ea=_0xb33950[_0x198e2b];return _0x5483ea;}function _0xb339(){const _0x1cccf5=['_initAutoConnect','MCP:\x20Max\x20Retries\x20Exceeded','OffLineIcon','MCPConnectionStatus','mcpConfig.validation.apiKeyRequired','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','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Tooltip','重连中...','mcpConfig.authorizationDescription','MCP\x20Client\x20Configuration','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20已断开','check-mark-icon','mcpConfig.connectionError.networkError','_handleConfigSave','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','colorChannel1','button','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','label','url(#on-line-icon_clip0_910_349)','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','warn','evenodd','mcpConfig.connectionStatus.disconnected','isValid','Success','超出最大重试次数,请稍后再试','enUS','Error','close','几秒钟内获取您的\x20API\x20密钥','@univerjs-pro/mcp','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MessageType','useDependency','mcpConfig.configStep2','off','jsx','createElement','mcp-ui.config','MCPConnectionError','url(#off-line-icon_clip0_910_343)','http','function','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','Bearer\x20','univer_session_id:','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-bg-blue-500','ILocalStorageService','assign','SESSION_ID_OCCUPIED','_menuManagerService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥不能为空','\x20-\x20','UniverDesign','substring','10xpjbNK','MCP:\x20Session\x20ID\x20Occupied','CONNECTED','mcpConfig.apiApplyInfo.getStarted','FAILED','mcpConfig.connectionStatus.failed','getConfig','Authorization:','713075NfwdAo','_apiKey$','univer-text-xs\x20univer-text-gray-500','map','toPrimitive','univer-text-red-500','mcpStatus.retrying','MCPConnectionUIController','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_initializeCommands','univer-text-xs\x20univer-text-gray-600','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','7TnwPWN','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1305436wzOJNT','ComponentManager','MenuItemType','已连接','mcp-config-dialog','merge','_uiPartsService','mcpConfig.saving','subscribeConfigValue$','showDeveloperTools','_logService','univer-mr-2\x20univer-flex\x20univer-text-xl','Invalid\x20configuration','您的\x20API\x20密钥安全存储在本地存储中','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-gray-500','点击配置\x20MCP','UniverIcon','univer-space-y-5','mcpStatus.failed','mcpConfig.configParameters','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.configStep3','packageName','React','MCPConnectionController','Configuration\x20saved\x20successfully','univer-space-y-4','@univerjs/network','IUIPartsService','zhCN','MCP\x20重连中...','DISCONNECTED','1em','连接失败','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer.plus','fill','onStarting','univer-bg-red-500','rxjs','连接中...','prototype','UniverProMcp','Univer\x20AI\x20Console','会话ID','Module','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpServerUrl','Connecting...','将配置添加到您的\x20MCP\x20客户端设置文件中','_loadStoredApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-space-y-2','0\x200\x2016\x2016','mcpStatus.connecting','CloseIcon','_initializeMenus','Max\x20Retries','has','0.23.0','MCP\x20连接中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','entries','mcpStatus.sessionOccupied','配置参数:','getOwnPropertyDescriptor','forEach','showConfigPanel','value','add','UniverCore','MCP\x20已连接','Configuration\x20Parameters:','univer-flex\x20univer-items-center\x20univer-gap-2','apiKey','includes','API\x20密钥无效,请检查密钥是否正确','white','current','svg','mcpConfig.apiKeyHint','validateApiKey','_config','MCP:\x20超出最大重试次数','最大重试次数','defineProperty','univer-flex\x20univer-items-start\x20univer-gap-3','IMenuManagerService','defs','__setCustomHeaders','clsx','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.networkError','https://console.univer.ai','div','MenuIcon','Plugin','_mcpConnectionController','HEADER_MENU','univer-flex\x20univer-items-center\x20univer-gap-3','BUTTON','none','MCP:\x20Unauthorized','attrs','iterator','MCP\x20Configuration','text','idSuffix','_loading$','mask','mcpConfig.save','_config$','Configuration\x20Steps:','LocaleService','CheckMarkIcon','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','off-line-icon','API\x20key\x20is\x20required','UniverNetwork','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_validateConfig','get','url(#$1','mcpStatus.clickToConnect','off-line-icon_clip0_910_343','MCP\x20状态未知','Retrying...','<SESSION_ID>','enableAutoConnect','mcpStatus.maxRetriesExceeded','subscribe','MCP:\x20Network\x20Error','MCPConfigPanel','getItem','_mcpCoreConfig$','univer-text-gray-400','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','_dialogService','MCP:\x20未授权','mcpConfig.connectionError.maxRetriesExceeded','OpenMCPConfigPanelCommand','_messageService','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','26937647Wzginw','IMessageService','mcpConfig.configStep1','displayName','UniverMCPUIPlugin','WebSocketService','mcpConfig.connectionError.sessionOccupied','symbol','mcpConfig.validation.invalidConfig','path','30818dEefpL','mcpConfig.title','connectionError$','复制以下\x20JSON\x20配置','univer-text-blue-600','use','IDialogService','_initStatusComponent','mcpConfig.apiKey','_localeService','Click\x20to\x20configure\x20MCP','removeItem','_registerComponent','配置\x20MCP\x20使用\x20AI\x20操作电子表格','useCallback','univer-size-4','mcpConfig.connectionStatus.connected','default','register','span','Enter\x20your\x20API\x20key','univer-text-green-500','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Save\x20Configuration','mcpConfig.configSaved','univer.ai','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_blank','_configService','_injector','mcpConfig.connectionError.unauthorized','What\x20is\x20API\x20Key?','COMMAND','CommandType','decorate','MCP\x20Connection\x20Failed','mcpConfig.configInstructions','ISocketService','5444478PYhbof','MCPUIMenuController','_localStorageService','length','noopener\x20noreferrer','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','jsxs','showStatus','16fllOgY','592zDdCZo','useObservable','MCP\x20Disconnected','Disconnected','Click\x20to\x20connect\x20MCP','API\x20密钥','currentColor','86049MwjEyW','_commandService','round','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','on-line-icon_clip0_910_349','745278jEkofh','_handleConfigure','_createConfigPanelComponent','connectInjector','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','保存配置','OTHERS','Saving...','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.connectionStatus.retrying','mcpConfig.note2','replace','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Notes:','Univer\x20AI\x20控制台','Injector','tag','Inject','constructor','mcpStatus.connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20客户端配置','mcpConfig.apiKeyPlaceholder','stringify','mcpConfig.description','MCP\x20Unknown\x20Status','univer-bg-gray-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','clipPath','xlink:href','mcp-ui.command.openConfigPanel','MCP_UI_PLUGIN','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','RibbonStartGroup','配置步骤:','UniverProMcpUi','getCurrentConfig','Enable\x20Authentication','univer-font-medium','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','BehaviorSubject','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','RETRYING','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP\x20Connecting...','NETWORK_ERROR','connectionStatus$','univer-text-yellow-500','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','trim','mergeMenu','CONNECTING','Session\x20ID','univer-space-y-3','disposeWithMe','univerjs-icon\x20univerjs-icon-','http://www.w3.org/2000/svg','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.title','ILogService','OnLineIcon','object','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-shrink-0\x20univer-text-red-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Disposable','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','您的\x20API\x20密钥将在此浏览器中本地存储','next','Input','string','UNAUTHORIZED','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','show','defIds','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_connectionController','_initConfigSync','配置保存成功','API\x20密钥长度至少需要\x2010\x20位','\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','UniverMCPPlugin','forwardRef','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','API\x20Key','univer-text-sm\x20univer-font-medium','univer-min-w-0\x20univer-flex-1','error','MCP_PLUGIN_CONFIG_KEY','children','useState','_componentManager','mcpConfig.note1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','random','IConfigService','MCP\x20配置','MCP\x20Retrying...'];_0xb339=function(){return _0x1cccf5;};return _0xb339();}
|
|
1
|
+
function _0x424c(){const _0x2c9e2e=['Failed\x20to\x20save\x20configuration','mcpConfig.validation.apiKeyRequired','noopener\x20noreferrer','__setCustomHeaders','apiKey','zhCN','API\x20key\x20with\x20Bearer\x20prefix.','getConfig','MCP\x20Retrying...','保存中...','open','请输入您的\x20API\x20密钥','mcpConfig.note1','value','symbol','entries','Saving...','mcpConfig.sessionIdDescription','getItem','mcpServerUrl','svg','mcpStatus.unknown','MCP\x20已断开','_localeService','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-green-500','on-line-icon','CheckMarkIcon','124114sHwzMC','React','什么是\x20API\x20密钥?','rxjs','MCP\x20连接失败','MCP\x20Connected','off','close','mcpConfig.configStep1','getCurrentConfig','HEADER_MENU','mcpConfig.connectionInfo','mcpConfig.apiApplyInfo.description','@univerjs/network','pre','_menuManagerService','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','复制以下\x20JSON\x20配置','UniverCore','univer-flex\x20univer-items-start\x20univer-gap-2','useObservable','MCP\x20重连中...','_initializeCommands','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCPStatusDisplay','univer-space-y-2','path','get','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','ILogService','_componentManager','mcpStatus.failed','showConfigPanel','UniverProMcpUi','M0\x200H16V16H0z','replace','createElement','DISCONNECTED','Configuration\x20saved\x20successfully','mcpConfig.apiApplyInfo.getStarted','ComponentManager','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','amd','_commandService','What\x20is\x20API\x20Key?','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.apiKey','add','connectionError$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','connectInjector','univer-mr-2\x20univer-flex\x20univer-text-xl','0\x200\x2016\x2016','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','defineProperty','univer-shrink-0\x20univer-text-red-500','registerCommand','url(#$1','UNAUTHORIZED','FAILED','attrs','_apiKey$','text','disposeWithMe','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_config','univer_session_id:','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','div','配置保存失败','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','error','univer-flex\x20univer-items-center\x20univer-gap-3','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','use','883844tBshQz','MCP:\x20Network\x20Error','5427272NEuvbT','mcpConfig.saving','BuiltInUIPart','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','none','object','mcpConfig.apiKeyHint','CloseIcon','_initAutoConnect','OTHERS','Button','constructor','merge','off-line-icon_clip0_910_343','1446550MuNcxe','jsxs','Error','_handleConfigure','OpenMCPConfigPanelCommand','MCP:\x20网络错误','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MCP\x20配置','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_createConfigPanelComponent','NETWORK_ERROR','label','white','removeItem','0\x200\x2017\x2016','univer-flex-1','mcpStatus.retrying','MCPConnectionStatus','将配置添加到您的\x20MCP\x20客户端设置文件中','defs','Tooltip','启用身份验证','forwardRef','mcpConfig.connectionError.unauthorized','重连中...','enUS','MCP\x20Unknown\x20Status','univerjs-icon\x20univerjs-icon-','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','ISocketService','show','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20状态未知','mcpConfig.description','clipPath','ILocalStorageService','Click\x20to\x20configure\x20MCP','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-bg-blue-500','clsx','244227yceCTX','univer-bg-red-500','MenuIcon','mcpConfig.connectionError.networkError','Success','mcpConfig.connectionStatus.retrying','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-flex\x20univer-items-start\x20univer-gap-3','Univer\x20AI\x20控制台','fill','ICommandService','univer.ai','children','MCP\x20Connection\x20Failed','您的\x20API\x20密钥将在此浏览器中本地存储','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Connecting...','MCPConfigUIController','round','MCP:\x20超出最大重试次数','evenodd','Enable\x20authentication\x20for\x20secure\x20connections','currentColor','_configService','univer-shrink-0\x20univer-text-blue-500','UniverDesign','mcpConfig.configStep3','SESSION_ID_OCCUPIED','MCPConnectionUIController','UniverUi','assign','mcpConfig.apiApplyInfo.title','Univer\x20AI\x20Console','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configError','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','权限验证失败,请检查您的\x20API\x20密钥','Input','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','length','超出最大重试次数,请稍后再试','IDialogService','<API_KEY>','help-icon','_uiPartsService','MCP\x20Connecting...','_dialogService','_injector','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','registerComponent','RETRYING','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','on-line-icon_clip0_910_349','mcpConfig.connectionStatus.connecting','mcpConfig.configStepTitle','mcpConfig.configSaved','MCP\x20连接中...','enableAutoConnect','univer-min-w-0\x20univer-flex-1','配置参数:','isValid','mask','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-text-xs\x20univer-text-gray-600','univer-size-4','idSuffix','setItem','MCP:\x20会话\x20ID\x20已被占用','未连接','mcpStatus.clickToConnect','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','tag','_handleConfigSave','API\x20密钥','univer-space-y-3','Plugin','univer-text-yellow-500','string','_blank','_localStorageService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','connectionStatus$','UniverIcon','连接失败','univer-size-2\x20univer-rounded-full','check-mark-icon','CONNECTED','subscribeConfigValue$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initStatusComponent','LocaleService','Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','https://mcp.univer.ai/mcp/?univer_session_id=','MCP_UI_PLUGIN','close-icon','_registerComponent','univer-text-gray-400','1em','WebSocketService','univer-text-sm\x20univer-text-gray-500','http://www.w3.org/2000/svg','univer-space-y-4','_loadStoredApiKey','MCP\x20客户端配置','BehaviorSubject','CONNECTING','univer-flex\x20univer-gap-3','_mcpCoreConfig$','mcpConfig.apiKeyPlaceholder','_loading$','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','function','mcpConfig.connectionStatus.failed','UniverProMcp','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.connectionError.maxRetriesExceeded','Enter\x20your\x20API\x20key','mcp.apiKey','Bearer\x20','_config$','mcpConfig.validation.invalidConfig','mcpConfig.validation.apiKeyTooShort','mcpConfig.authorizationDescription','Enable\x20Authentication','forEach','API\x20密钥不能为空','map','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','COMMAND','includes','univer-text-white','Injector','univer-text-blue-600','网络连接错误,请检查您的网络连接','UniverNetwork','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','IConfigService','MenuItemType','配置步骤:','@univerjs/ui','toStringTag','API\x20Key','CommandType','2609694CfqiCp','mcp-ui.command.openConfigPanel','<SESSION_ID>','MCPConnectionController','subscribe','decorate','MCP\x20Client\x20Configuration','Session\x20ID','MCPConnectionError','HelpIcon','MCP:\x20Unauthorized','jsx','http','next','MCPConfigPanel','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_initializeMenus','Copy\x20the\x20JSON\x20configuration\x20below','mcpStatus.unauthorized','mcpConfig.configStep2','IUIPartsService','MCP_PLUGIN_CONFIG_KEY','version','translate(.97)','displayName','配置无效','Inject','_mcpConnectionController','https://console.univer.plus','sessionId$','NONE','useDependency','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_initConfigSync','_messageService','MessageType','配置更改将立即生效','univer-flex\x20univer-items-center\x20univer-gap-2','showDeveloperTools','univer-text-xs\x20univer-text-gray-500','@univerjs/design','MCP:\x20未授权','has','OnLineIcon','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','RibbonStartGroup','url(#off-line-icon_clip0_910_343)','API\x20密钥无效,请检查密钥是否正确','useState','trim','mcpStatus.maxRetriesExceeded','mcp-ui.config','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Click\x20to\x20connect\x20MCP','xlink:href','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','@univerjs-pro/mcp','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','errorMessage','Configuration\x20Notes:','7nzAsGV','重启您的\x20MCP\x20客户端以使配置生效','toString','setConfig','_connectionController','UniverMCPUIPlugin','705722ipNFvB','Save\x20Configuration','UniverMCPPlugin','useRef','Invalid\x20configuration','mcpConfig.save','univer-text-sm\x20univer-font-medium','span','Authorization:','Disposable','univer-text-red-500','MCPUIMenuController','colorChannel1','0.24.0','点击配置\x20MCP','mcpConfig.title','toPrimitive'];_0x424c=function(){return _0x2c9e2e;};return _0x424c();}function _0x445a(_0x3ae1dd,_0x69c622){_0x3ae1dd=_0x3ae1dd-0x182;const _0x424c96=_0x424c();let _0x445a6e=_0x424c96[_0x3ae1dd];return _0x445a6e;}(function(_0xfde0fe,_0x47bfc6){const _0x1d3767=_0x445a,_0x128ee0=_0xfde0fe();while(!![]){try{const _0x1c7cb0=-parseInt(_0x1d3767(0x2c5))/0x1+parseInt(_0x1d3767(0x298))/0x2+-parseInt(_0x1d3767(0x1c3))/0x3+parseInt(_0x1d3767(0x189))/0x4+-parseInt(_0x1d3767(0x199))/0x5+-parseInt(_0x1d3767(0x255))/0x6+parseInt(_0x1d3767(0x292))/0x7*(parseInt(_0x1d3767(0x18b))/0x8);if(_0x1c7cb0===_0x47bfc6)break;else _0x128ee0['push'](_0x128ee0['shift']());}catch(_0x48e679){_0x128ee0['push'](_0x128ee0['shift']());}}}(_0x424c,0x4eb91),function(_0x2d5d3c,_0x680e23){const _0x59d7e2=_0x445a;typeof exports==_0x59d7e2(0x190)&&typeof module<'u'?_0x680e23(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x59d7e2(0x234)&&define[_0x59d7e2(0x2f0)]?define(['exports','@univerjs/core',_0x59d7e2(0x28e),_0x59d7e2(0x27d),_0x59d7e2(0x251),_0x59d7e2(0x2c8),'react','react/jsx-runtime',_0x59d7e2(0x2d2)],_0x680e23):(_0x2d5d3c=typeof globalThis<'u'?globalThis:_0x2d5d3c||self,_0x680e23(_0x2d5d3c[_0x59d7e2(0x2e7)]={},_0x2d5d3c[_0x59d7e2(0x2d7)],_0x2d5d3c[_0x59d7e2(0x236)],_0x2d5d3c[_0x59d7e2(0x1dc)],_0x2d5d3c[_0x59d7e2(0x1e0)],_0x2d5d3c[_0x59d7e2(0x2c8)],_0x2d5d3c[_0x59d7e2(0x2c6)],_0x2d5d3c['React'],_0x2d5d3c[_0x59d7e2(0x24c)]));}(this,function(_0x598267,_0x561e95,_0x3f7e87,_0x5ebeb1,_0x2defbe,_0x5114ab,_0x3144d2,_0x15d98c,_0x26d054){const _0x3b25c9=_0x445a;Object['defineProperty'](_0x598267,Symbol[_0x3b25c9(0x252)],{'value':'Module'});function _0x37d16f({ref:_0x366cc9,..._0x44c161}){const _0x56ddf6=_0x3b25c9;let {icon:_0x2ccb6b,id:_0x2a2f90,className:_0x53e732,extend:_0x284714,..._0x1019e9}=_0x44c161,_0x56dab8=(_0x56ddf6(0x1b5)+_0x2a2f90+'\x20'+(_0x53e732||''))[_0x56ddf6(0x286)](),_0x3073f0=(0x0,_0x3144d2[_0x56ddf6(0x29b)])('_'+_0x15226b());return _0x59dd97(_0x2ccb6b,''+_0x2a2f90,{'defIds':_0x2ccb6b['defIds'],'idSuffix':_0x3073f0['current']},{'ref':_0x366cc9,'className':_0x56dab8,..._0x1019e9},_0x284714);}function _0x59dd97(_0x2a0e3c,_0x40a7c2,_0x3b9c86,_0x51e1a5,_0x5e1787){const _0x168d12=_0x3b25c9;return(0x0,_0x3144d2[_0x168d12(0x2ea)])(_0x2a0e3c[_0x168d12(0x20b)],{'key':_0x40a7c2,..._0x1b1366(_0x2a0e3c,_0x3b9c86,_0x5e1787),..._0x51e1a5},(_0x455f10(_0x2a0e3c,_0x3b9c86)[_0x168d12(0x1cf)]||[])[_0x168d12(0x244)]((_0x40a437,_0x12bbed)=>_0x59dd97(_0x40a437,_0x40a7c2+'-'+_0x2a0e3c[_0x168d12(0x20b)]+'-'+_0x12bbed,_0x3b9c86,void 0x0,_0x5e1787)));}function _0x1b1366(_0x4e9c63,_0x4de7aa,_0xdf25ee){const _0x3bd70f=_0x3b25c9;let _0x586c8f={..._0x4e9c63[_0x3bd70f(0x303)]};_0xdf25ee!=null&&_0xdf25ee[_0x3bd70f(0x2a4)]&&_0x586c8f[_0x3bd70f(0x1cc)]===_0x3bd70f(0x2a4)&&(_0x586c8f['fill']=_0xdf25ee['colorChannel1']),_0x4e9c63[_0x3bd70f(0x20b)]===_0x3bd70f(0x201)&&_0x586c8f['id']&&(_0x586c8f['id']+=_0x4de7aa[_0x3bd70f(0x205)]),Object['entries'](_0x586c8f)[_0x3bd70f(0x242)](([_0x346586,_0x3b9d5d])=>{const _0x252ad6=_0x3bd70f;_0x346586===_0x252ad6(0x201)&&typeof _0x3b9d5d==_0x252ad6(0x211)&&(_0x586c8f[_0x346586]=_0x3b9d5d[_0x252ad6(0x2e9)](/url\(#(.*)\)/,_0x252ad6(0x300)+_0x4de7aa['idSuffix']+')'));});let {defIds:_0x107b0f}=_0x4de7aa;return!_0x107b0f||_0x107b0f[_0x3bd70f(0x1eb)]===0x0?_0x586c8f:(_0x4e9c63['tag']===_0x3bd70f(0x188)&&_0x586c8f[_0x3bd70f(0x28c)]&&(_0x586c8f[_0x3bd70f(0x28c)]+=_0x4de7aa['idSuffix']),Object[_0x3bd70f(0x2b8)](_0x586c8f)[_0x3bd70f(0x242)](([_0x13088e,_0x1145ab])=>{const _0x2256c1=_0x3bd70f;typeof _0x1145ab==_0x2256c1(0x211)&&(_0x586c8f[_0x13088e]=_0x1145ab[_0x2256c1(0x2e9)](/url\(#(.*)\)/,_0x2256c1(0x300)+_0x4de7aa[_0x2256c1(0x205)]+')'));}),_0x586c8f);}function _0x455f10(_0x8eec11,_0x224c7a){const _0x56e4ec=_0x3b25c9;var _0x17dbd9;let {defIds:_0x481554}=_0x224c7a;return!_0x481554||_0x481554[_0x56e4ec(0x1eb)]===0x0?_0x8eec11:_0x8eec11[_0x56e4ec(0x20b)]===_0x56e4ec(0x1ad)&&(_0x17dbd9=_0x8eec11[_0x56e4ec(0x1cf)])!=null&&_0x17dbd9['length']?{..._0x8eec11,'children':_0x8eec11['children'][_0x56e4ec(0x244)](_0x2f4ce2=>typeof _0x2f4ce2['attrs']['id']==_0x56e4ec(0x211)&&_0x481554&&_0x481554[_0x56e4ec(0x247)](_0x2f4ce2['attrs']['id'])?{..._0x2f4ce2,'attrs':{..._0x2f4ce2[_0x56e4ec(0x303)],'id':_0x2f4ce2[_0x56e4ec(0x303)]['id']+_0x224c7a[_0x56e4ec(0x205)]}}:_0x2f4ce2)}:_0x8eec11;}function _0x15226b(){const _0x14ddeb=_0x3b25c9;return Math['random']()[_0x14ddeb(0x294)](0x24)['substring'](0x2,0x8);}_0x37d16f['displayName']=_0x3b25c9(0x216);let _0x285ea8={'tag':_0x3b25c9(0x2bd),'attrs':{'xmlns':_0x3b25c9(0x229),'fill':'none','viewBox':_0x3b25c9(0x2fb),'width':_0x3b25c9(0x226),'height':'1em'},'children':[{'tag':_0x3b25c9(0x2df),'attrs':{'fill':_0x3b25c9(0x1d9),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x3b25c9(0x1d7)}}]},_0x33c636=(0x0,_0x3144d2['forwardRef'])(function(_0x349861,_0x3deeb3){const _0x24e918=_0x3b25c9;return(0x0,_0x3144d2[_0x24e918(0x2ea)])(_0x37d16f,Object[_0x24e918(0x1e1)]({},_0x349861,{'id':_0x24e918(0x219),'ref':_0x3deeb3,'icon':_0x285ea8}));});_0x33c636[_0x3b25c9(0x26d)]=_0x3b25c9(0x2c4);let _0x4ca1a0={'tag':'svg','attrs':{'xmlns':_0x3b25c9(0x229),'fill':_0x3b25c9(0x18f),'viewBox':_0x3b25c9(0x2fb),'width':_0x3b25c9(0x226),'height':'1em'},'children':[{'tag':_0x3b25c9(0x2df),'attrs':{'fill':_0x3b25c9(0x1d9),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0xc10331=(0x0,_0x3144d2[_0x3b25c9(0x1b0)])(function(_0x45fb5b,_0x317774){const _0x69fe7c=_0x3b25c9;return(0x0,_0x3144d2[_0x69fe7c(0x2ea)])(_0x37d16f,Object['assign']({},_0x45fb5b,{'id':_0x69fe7c(0x223),'ref':_0x317774,'icon':_0x4ca1a0}));});_0xc10331['displayName']=_0x3b25c9(0x192);let _0x459085={'tag':'svg','attrs':{'xmlns':_0x3b25c9(0x229),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3b25c9(0x226),'height':_0x3b25c9(0x226)},'children':[{'tag':_0x3b25c9(0x2df),'attrs':{'fill':_0x3b25c9(0x1d9),'d':_0x3b25c9(0x289)}},{'tag':_0x3b25c9(0x2df),'attrs':{'fill':_0x3b25c9(0x1d9),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x3b25c9(0x2df),'attrs':{'fill':'currentColor','d':_0x3b25c9(0x233),'fillRule':_0x3b25c9(0x1d7),'clipRule':_0x3b25c9(0x1d7)}}]},_0x4240b1=(0x0,_0x3144d2[_0x3b25c9(0x1b0)])(function(_0xae61a6,_0x2bd87e){const _0x5b4bf7=_0x3b25c9;return(0x0,_0x3144d2['createElement'])(_0x37d16f,Object[_0x5b4bf7(0x1e1)]({},_0xae61a6,{'id':_0x5b4bf7(0x1ef),'ref':_0x2bd87e,'icon':_0x459085}));});_0x4240b1[_0x3b25c9(0x26d)]=_0x3b25c9(0x25e);let _0x46f656={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3b25c9(0x18f),'viewBox':_0x3b25c9(0x2fb),'width':_0x3b25c9(0x226),'height':_0x3b25c9(0x226)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b25c9(0x283)},'children':[{'tag':'path','attrs':{'stroke':_0x3b25c9(0x1d9),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3b25c9(0x1d5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3b25c9(0x1ad),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3b25c9(0x198)},'children':[{'tag':_0x3b25c9(0x2df),'attrs':{'fill':_0x3b25c9(0x1a6),'d':_0x3b25c9(0x2e8)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0xf908f9=(0x0,_0x3144d2[_0x3b25c9(0x1b0)])(function(_0x4b8ee4,_0x171db0){const _0xe76011=_0x3b25c9;return(0x0,_0x3144d2[_0xe76011(0x2ea)])(_0x37d16f,Object[_0xe76011(0x1e1)]({},_0x4b8ee4,{'id':'off-line-icon','ref':_0x171db0,'icon':_0x46f656}));});_0xf908f9[_0x3b25c9(0x26d)]='OffLineIcon';let _0x505a0d={'tag':_0x3b25c9(0x2bd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3b25c9(0x18f),'viewBox':_0x3b25c9(0x1a8),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x3b25c9(0x2df),'attrs':{'stroke':_0x3b25c9(0x1d9),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3b25c9(0x1d5),'strokeLinejoin':_0x3b25c9(0x1d5),'strokeWidth':1.2}}]},{'tag':_0x3b25c9(0x1ad),'attrs':{},'children':[{'tag':_0x3b25c9(0x1bd),'attrs':{'id':_0x3b25c9(0x1f8)},'children':[{'tag':_0x3b25c9(0x2df),'attrs':{'fill':_0x3b25c9(0x1a6),'d':_0x3b25c9(0x2e8),'transform':_0x3b25c9(0x26c)}}]}]}],'defIds':[_0x3b25c9(0x1f8)]},_0x119fb8=(0x0,_0x3144d2[_0x3b25c9(0x1b0)])(function(_0x558ef0,_0xb6ddd6){const _0x546eb6=_0x3b25c9;return(0x0,_0x3144d2[_0x546eb6(0x2ea)])(_0x37d16f,Object['assign']({},_0x558ef0,{'id':_0x546eb6(0x2c3),'ref':_0xb6ddd6,'icon':_0x505a0d}));});_0x119fb8[_0x3b25c9(0x26d)]=_0x3b25c9(0x280);function _0x494764(_0x4fabc3){const _0x182971=_0x3b25c9;var _0x4a2014,_0x1ec119;let {mcpCoreConfig:_0x2d23af,onSave:_0x1f1c9b,loading:_0x283161=!0x1,config:_0x320492,connectionStatus$:_0x4c66b3,connectionError$:_0x45c734,currentApiKey$:_0x2d7af7,currentSessionId$:_0x57425c}=_0x4fabc3,_0x301162=(0x0,_0x2defbe[_0x182971(0x274)])(_0x561e95['LocaleService']),_0xce3d96=(0x0,_0x2defbe[_0x182971(0x2d9)])(_0x4c66b3,_0x3f7e87[_0x182971(0x1ab)][_0x182971(0x2eb)]),_0x480dd8=(0x0,_0x2defbe[_0x182971(0x2d9)])(_0x45c734,_0x3f7e87[_0x182971(0x25d)][_0x182971(0x273)]),_0x12b643=(0x0,_0x2defbe['useObservable'])(_0x57425c,''),[_0x7f04b4,_0x6847cd]=(0x0,_0x3144d2[_0x182971(0x285)])((0x0,_0x2defbe[_0x182971(0x2d9)])(_0x2d7af7,'')||''),_0x2ed43b=_0x320492[_0x182971(0x27b)]&&_0x2d23af['mcpServerUrl']&&(_0x2d23af[_0x182971(0x2bc)][_0x182971(0x247)]('univer.plus')||_0x2d23af[_0x182971(0x2bc)][_0x182971(0x247)](_0x182971(0x1ce))),_0x4cb599=(_0x4a2014=_0x2d23af[_0x182971(0x2bc)])==null?void 0x0:_0x4a2014[_0x182971(0x247)]('univer.plus'),_0xf6df38=(_0x1ec119=_0x2d23af[_0x182971(0x2bc)])==null?void 0x0:_0x1ec119[_0x182971(0x247)](_0x182971(0x1ce)),_0x429b6d=_0x4cb599?_0x182971(0x271):'https://console.univer.ai',_0x8c9d72=_0x320492[_0x182971(0x27b)]&&(_0x4cb599||_0xf6df38),[_0x24f214,_0xfdf6ca]=(0x0,_0x3144d2[_0x182971(0x285)])(!_0x7f04b4[_0x182971(0x286)]()),_0x231c19=(_0x231364,_0x2d03d0)=>{const _0xfb97ea=_0x182971;if(_0x2d03d0===_0x3f7e87[_0xfb97ea(0x25d)]['UNAUTHORIZED'])return _0xfb97ea(0x1b9);switch(_0x231364){case _0x3f7e87['MCPConnectionStatus'][_0xfb97ea(0x21a)]:return _0xfb97ea(0x19f);case _0x3f7e87[_0xfb97ea(0x1ab)][_0xfb97ea(0x22e)]:case _0x3f7e87[_0xfb97ea(0x1ab)][_0xfb97ea(0x1f6)]:return _0xfb97ea(0x2e2);case _0x3f7e87[_0xfb97ea(0x1ab)][_0xfb97ea(0x302)]:return _0xfb97ea(0x1b9);default:return _0xfb97ea(0x214);}},_0xfb928f=(_0x9a8402,_0x2c5ed5)=>{const _0xf10d6c=_0x182971;if(_0x2c5ed5===_0x3f7e87[_0xf10d6c(0x25d)][_0xf10d6c(0x301)])return _0xf10d6c(0x1c4);switch(_0x9a8402){case _0x3f7e87['MCPConnectionStatus'][_0xf10d6c(0x21a)]:return'univer-bg-green-500';case _0x3f7e87[_0xf10d6c(0x1ab)][_0xf10d6c(0x22e)]:case _0x3f7e87['MCPConnectionStatus'][_0xf10d6c(0x1f6)]:return _0xf10d6c(0x1c1);case _0x3f7e87[_0xf10d6c(0x1ab)][_0xf10d6c(0x302)]:return _0xf10d6c(0x1c4);default:return'univer-bg-gray-500';}},_0x2756bd=_0x31b22e=>{const _0x1b3ab3=_0x182971;switch(_0x31b22e){case _0x3f7e87['MCPConnectionStatus'][_0x1b3ab3(0x21a)]:return _0x301162['t']('mcpConfig.connectionStatus.connected');case _0x3f7e87[_0x1b3ab3(0x1ab)][_0x1b3ab3(0x22e)]:return _0x301162['t'](_0x1b3ab3(0x1f9));case _0x3f7e87[_0x1b3ab3(0x1ab)]['FAILED']:return _0x301162['t'](_0x1b3ab3(0x235));case _0x3f7e87['MCPConnectionStatus'][_0x1b3ab3(0x1f6)]:return _0x301162['t'](_0x1b3ab3(0x1c8));default:return _0x301162['t']('mcpConfig.connectionStatus.disconnected');}},_0x513fc8=_0x16e9bb=>{const _0x1d3e39=_0x182971;switch(_0x16e9bb){case _0x3f7e87[_0x1d3e39(0x25d)][_0x1d3e39(0x301)]:return _0x301162['t'](_0x1d3e39(0x1b1));case _0x3f7e87[_0x1d3e39(0x25d)][_0x1d3e39(0x1de)]:return _0x301162['t']('mcpConfig.connectionError.sessionOccupied');case _0x3f7e87[_0x1d3e39(0x25d)]['NETWORK_ERROR']:return _0x301162['t'](_0x1d3e39(0x1c6));case _0x3f7e87['MCPConnectionError'][_0x1d3e39(0x2f3)]:return _0x301162['t'](_0x1d3e39(0x239));default:return'';}},_0x230670=(0x0,_0x3144d2['useCallback'])(()=>{const _0x18d7f3=_0x182971;_0x1f1c9b({..._0x2d23af,'apiKey':_0x7f04b4[_0x18d7f3(0x286)](),'enableAuth':!0x0});},[_0x2d23af,_0x7f04b4,!0x0,_0x1f1c9b]),_0x34e016=_0x7f04b4[_0x182971(0x286)]()[_0x182971(0x1eb)]>0x0;return(0x0,_0x15d98c['jsxs'])('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x24d),'children':(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x184),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x202),'children':(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':_0x182971(0x248),'children':'⚙'})}),(0x0,_0x15d98c['jsx'])('div',{'children':(0x0,_0x15d98c[_0x182971(0x260)])('p',{'className':_0x182971(0x228),'children':_0x301162['t'](_0x182971(0x1bc))})})]})}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x21c),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':(0x0,_0x5ebeb1[_0x182971(0x1c2)])(_0x182971(0x2f4),_0x231c19(_0xce3d96,_0x480dd8)),'children':(0x0,_0x15d98c['jsxs'])(_0x182971(0x30b),{'className':_0x182971(0x27a),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':(0x0,_0x5ebeb1[_0x182971(0x1c2)])(_0x182971(0x218),_0xfb928f(_0xce3d96,_0x480dd8))}),(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':_0x182971(0x29e),'children':_0x2756bd(_0xce3d96)})]})}),_0x480dd8!==_0x3f7e87[_0x182971(0x25d)][_0x182971(0x273)]&&(_0xce3d96===_0x3f7e87['MCPConnectionStatus'][_0x182971(0x302)]||_0x480dd8===_0x3f7e87[_0x182971(0x25d)]['UNAUTHORIZED'])&&(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x245),'children':(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x2d8),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':_0x182971(0x2fe),'children':'⚠️'}),(0x0,_0x15d98c['jsx'])('p',{'className':_0x182971(0x30a),'children':_0x513fc8(_0x480dd8)})]})})]}),(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':'univer-space-y-5','children':[(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x2de),'children':[(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x1a5),{'className':_0x182971(0x2c1),'children':[(0x0,_0x15d98c[_0x182971(0x260)])('span',{'children':'🔑'}),'\x20',_0x301162['t'](_0x182971(0x2f5)),(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':'univer-text-red-500','children':'*'}),_0x2ed43b&&(0x0,_0x15d98c[_0x182971(0x260)])('a',{'className':_0x182971(0x2e1),'title':_0x301162['t'](_0x182971(0x1e2)),'role':'button','onClick':()=>_0xfdf6ca(!0x0),'children':(0x0,_0x15d98c[_0x182971(0x260)])(_0x4240b1,{})})]}),(0x0,_0x15d98c[_0x182971(0x260)])(_0x5ebeb1[_0x182971(0x1e9)],{'type':_0x182971(0x305),'placeholder':_0x301162['t'](_0x182971(0x231)),'value':_0x7f04b4,'disabled':_0x283161,'autoComplete':_0x182971(0x2cb),'onChange':_0x6847cd}),(0x0,_0x15d98c[_0x182971(0x260)])('p',{'className':_0x182971(0x27c),'children':_0x301162['t'](_0x182971(0x191))})]}),_0x2ed43b&&_0x24f214&&(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,_0x15d98c[_0x182971(0x260)])('a',{'className':_0x182971(0x28d),'role':'button','onClick':()=>_0xfdf6ca(!0x1),'children':(0x0,_0x15d98c[_0x182971(0x260)])(_0xc10331,{'className':_0x182971(0x204)})}),(0x0,_0x15d98c[_0x182971(0x19a)])('div',{'className':_0x182971(0x18e),'children':[(0x0,_0x15d98c['jsx'])(_0x182971(0x30b),{'className':_0x182971(0x1a0),'children':(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':_0x182971(0x24a),'children':'🚀'})}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x1a9),'children':[(0x0,_0x15d98c['jsx'])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x301162['t']('mcpConfig.apiApplyInfo.title')}),(0x0,_0x15d98c[_0x182971(0x260)])('p',{'className':_0x182971(0x20a),'children':_0x301162['t'](_0x182971(0x2d1))}),(0x0,_0x15d98c['jsx'])(_0x182971(0x30b),{'className':_0x182971(0x1ba),'children':_0x8c9d72&&(0x0,_0x15d98c[_0x182971(0x19a)])('a',{'className':_0x182971(0x2d5),'href':_0x429b6d,'target':_0x182971(0x212),'rel':_0x182971(0x2ab),'children':[(0x0,_0x15d98c['jsx'])(_0x182971(0x29f),{'children':'🤖'}),_0x301162['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':_0x182971(0x225),'children':'↗'})]})}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x281),'children':['✨','\x20',_0x301162['t'](_0x182971(0x2ed))]})]})]})]}),_0x320492[_0x182971(0x27b)]&&(0x0,_0x15d98c[_0x182971(0x19a)])('div',{'className':_0x182971(0x1d2),'children':[(0x0,_0x15d98c[_0x182971(0x19a)])('h4',{'className':_0x182971(0x1e4),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'children':'🔗'}),'\x20',_0x301162['t'](_0x182971(0x2d0))]}),(0x0,_0x15d98c[_0x182971(0x19a)])('div',{'className':_0x182971(0x22a),'children':[(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':'univer-space-y-3','children':[(0x0,_0x15d98c[_0x182971(0x260)])('p',{'className':_0x182971(0x203),'children':_0x301162['t']('mcpConfig.configInstructions')}),(0x0,_0x15d98c[_0x182971(0x19a)])('div',{'className':_0x182971(0x2de),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x237),'children':_0x301162['t'](_0x182971(0x1fa))}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x182),'children':[(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x27a),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':_0x182971(0x1f4),'children':'1'}),_0x301162['t'](_0x182971(0x2cd))]}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x27a),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x301162['t'](_0x182971(0x268))]}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x15d98c['jsx'])(_0x182971(0x29f),{'className':_0x182971(0x1f4),'children':'3'}),_0x301162['t'](_0x182971(0x1dd))]})]})]})]}),(0x0,_0x15d98c['jsxs'])(_0x182971(0x30b),{'className':_0x182971(0x2de),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x182971(0x187)}),(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x264),'children':(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x2d3),{'className':_0x182971(0x1c0),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x182971(0x221)+(_0x12b643||_0x182971(0x257)),'type':_0x182971(0x261),'headers':{'Authorization':_0x182971(0x23c)+(_0x7f04b4||_0x182971(0x1ee))}}}},null,0x2)})})]}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':_0x182971(0x20e),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x237),'children':_0x301162['t']('mcpConfig.configParameters')}),(0x0,_0x15d98c['jsxs'])('div',{'className':_0x182971(0x2de),'children':[(0x0,_0x15d98c['jsxs'])(_0x182971(0x30b),{'className':_0x182971(0x1ca),'children':[(0x0,_0x15d98c[_0x182971(0x260)])('div',{'className':_0x182971(0x2f8)}),(0x0,_0x15d98c['jsxs'])('div',{'className':_0x182971(0x1fe),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x182971(0x309)}),(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x27c),'children':_0x301162['t'](_0x182971(0x2ba))})]})]}),(0x0,_0x15d98c[_0x182971(0x19a)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x2f8)}),(0x0,_0x15d98c['jsxs'])('div',{'className':_0x182971(0x1fe),'children':[(0x0,_0x15d98c['jsx'])('div',{'className':_0x182971(0x1a2),'children':_0x182971(0x2a0)}),(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':_0x182971(0x27c),'children':_0x301162['t'](_0x182971(0x240))})]})]})]})]})]})]}),(0x0,_0x15d98c[_0x182971(0x260)])(_0x5ebeb1[_0x182971(0x195)],{'onClick':_0x230670,'disabled':!_0x34e016||_0x283161,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x283161?(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x29f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'children':'⟲'}),_0x301162['t'](_0x182971(0x18c))]}):(0x0,_0x15d98c['jsxs'])(_0x182971(0x29f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x33c636,{}),_0x301162['t'](_0x182971(0x29d))]})}),(0x0,_0x15d98c['jsx'])(_0x182971(0x30b),{'className':_0x182971(0x1e7),'children':(0x0,_0x15d98c[_0x182971(0x19a)])('div',{'className':_0x182971(0x22f),'children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x29f),{'className':_0x182971(0x1db),'children':'💡'}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,_0x15d98c[_0x182971(0x260)])(_0x182971(0x30b),{'className':'univer-font-medium','children':_0x182971(0x291)}),(0x0,_0x15d98c['jsxs'])('div',{'children':['•',_0x301162['t'](_0x182971(0x2b5))]}),(0x0,_0x15d98c[_0x182971(0x19a)])(_0x182971(0x30b),{'children':['•',_0x301162['t']('mcpConfig.note2')]})]})]})})]})})]});}let _0x4dff90=_0x3b25c9(0x288);Symbol(_0x4dff90);let _0x9ac10e={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x2f604e(_0x9039f6){'@babel/helpers - typeof';const _0x4b222b=_0x3b25c9;return _0x2f604e=typeof Symbol==_0x4b222b(0x234)&&typeof Symbol['iterator']==_0x4b222b(0x2b7)?function(_0x17cae5){return typeof _0x17cae5;}:function(_0x3623c6){const _0x4f723d=_0x4b222b;return _0x3623c6&&typeof Symbol=='function'&&_0x3623c6[_0x4f723d(0x196)]===Symbol&&_0x3623c6!==Symbol['prototype']?_0x4f723d(0x2b7):typeof _0x3623c6;},_0x2f604e(_0x9039f6);}function _0xc09a2a(_0xcd3740,_0x6c94d5){const _0x5f15c7=_0x3b25c9;if(_0x2f604e(_0xcd3740)!=_0x5f15c7(0x190)||!_0xcd3740)return _0xcd3740;var _0x3c2b00=_0xcd3740[Symbol[_0x5f15c7(0x2a8)]];if(_0x3c2b00!==void 0x0){var _0x1a7a07=_0x3c2b00['call'](_0xcd3740,_0x6c94d5||'default');if(_0x2f604e(_0x1a7a07)!=_0x5f15c7(0x190))return _0x1a7a07;throw TypeError(_0x5f15c7(0x28a));}return(_0x6c94d5===_0x5f15c7(0x211)?String:Number)(_0xcd3740);}function _0x442102(_0x5f23d5){const _0x5f205d=_0x3b25c9;var _0x2b9058=_0xc09a2a(_0x5f23d5,'string');return _0x2f604e(_0x2b9058)==_0x5f205d(0x2b7)?_0x2b9058:_0x2b9058+'';}function _0x374468(_0xb6fc93,_0x2e7d5c,_0x23d8f3){const _0x1c9f07=_0x3b25c9;return(_0x2e7d5c=_0x442102(_0x2e7d5c))in _0xb6fc93?Object[_0x1c9f07(0x2fd)](_0xb6fc93,_0x2e7d5c,{'value':_0x23d8f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb6fc93[_0x2e7d5c]=_0x23d8f3,_0xb6fc93;}function _0x224519(_0x1329aa,_0x4c7dd3){return function(_0x5e1818,_0x1cb54d){_0x4c7dd3(_0x5e1818,_0x1cb54d,_0x1329aa);};}function _0x57f55b(_0xf7eb9a,_0x395868,_0x20c70c,_0x6e8b92){const _0x24fc9c=_0x3b25c9;var _0x1f2a5b=arguments['length'],_0x6a5821=_0x1f2a5b<0x3?_0x395868:_0x6e8b92===null?_0x6e8b92=Object['getOwnPropertyDescriptor'](_0x395868,_0x20c70c):_0x6e8b92,_0x411ee0;if(typeof Reflect==_0x24fc9c(0x190)&&typeof Reflect[_0x24fc9c(0x25a)]==_0x24fc9c(0x234))_0x6a5821=Reflect[_0x24fc9c(0x25a)](_0xf7eb9a,_0x395868,_0x20c70c,_0x6e8b92);else{for(var _0xbf8c9f=_0xf7eb9a['length']-0x1;_0xbf8c9f>=0x0;_0xbf8c9f--)(_0x411ee0=_0xf7eb9a[_0xbf8c9f])&&(_0x6a5821=(_0x1f2a5b<0x3?_0x411ee0(_0x6a5821):_0x1f2a5b>0x3?_0x411ee0(_0x395868,_0x20c70c,_0x6a5821):_0x411ee0(_0x395868,_0x20c70c))||_0x6a5821);}return _0x1f2a5b>0x3&&_0x6a5821&&Object[_0x24fc9c(0x2fd)](_0x395868,_0x20c70c,_0x6a5821),_0x6a5821;}let _0x36b789=_0x3b25c9(0x23b),_0x268f80='mcp-config-dialog',_0x26fe70=class extends _0x561e95[_0x3b25c9(0x2a1)]{constructor(_0x49f234,_0x1e19ab,_0x144427,_0x2812fb,_0x27a69c,_0x507a76,_0x16a4aa,_0x5d0172,_0x18320b,_0x506df5){const _0x28b41a=_0x3b25c9;super(),this[_0x28b41a(0x1f3)]=_0x49f234,this[_0x28b41a(0x1f0)]=_0x1e19ab,this[_0x28b41a(0x1da)]=_0x144427,this['_localStorageService']=_0x2812fb,this['_dialogService']=_0x27a69c,this[_0x28b41a(0x277)]=_0x507a76,this[_0x28b41a(0x2e4)]=_0x16a4aa,this[_0x28b41a(0x2c0)]=_0x5d0172,this['_logService']=_0x18320b,this['_mcpConnectionController']=_0x506df5,_0x374468(this,'_loading$',new _0x5114ab['BehaviorSubject'](!0x1)),_0x374468(this,_0x28b41a(0x230),new _0x5114ab[(_0x28b41a(0x22d))]({})),_0x374468(this,'_config$',new _0x5114ab[(_0x28b41a(0x22d))]({})),_0x374468(this,_0x28b41a(0x304),new _0x5114ab['BehaviorSubject']('')),_0x374468(this,_0x28b41a(0x20c),async _0x1208a3=>{const _0x272b95=_0x28b41a;this[_0x272b95(0x232)][_0x272b95(0x262)](!0x0);try{var _0x918d15,_0x5d48ab;let _0x5234dc=await this['_validateConfig'](_0x1208a3);if(!_0x5234dc[_0x272b95(0x200)]){this['_messageService'][_0x272b95(0x1b8)]({'type':_0x5ebeb1[_0x272b95(0x278)][_0x272b95(0x19b)],'content':_0x5234dc[_0x272b95(0x290)]||this[_0x272b95(0x2c0)]['t'](_0x272b95(0x23e))});return;}_0x1208a3[_0x272b95(0x2ad)]?await this[_0x272b95(0x213)][_0x272b95(0x206)](_0x36b789,_0x1208a3[_0x272b95(0x2ad)]['trim']()):await this[_0x272b95(0x213)][_0x272b95(0x1a7)](_0x36b789),this[_0x272b95(0x304)]['next'](((_0x918d15=_0x1208a3[_0x272b95(0x2ad)])==null?void 0x0:_0x918d15[_0x272b95(0x286)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x272b95(0x23c)+((_0x5d48ab=_0x1208a3['apiKey'])==null?void 0x0:_0x5d48ab['trim']())}),this[_0x272b95(0x277)][_0x272b95(0x1b8)]({'type':_0x5ebeb1['MessageType'][_0x272b95(0x1c7)],'content':this[_0x272b95(0x2c0)]['t'](_0x272b95(0x1fb))}),setTimeout(()=>{const _0x3321e7=_0x272b95;this[_0x3321e7(0x1f2)][_0x3321e7(0x2cc)](_0x268f80);},0x320);}catch(_0x4505df){this['_logService'][_0x272b95(0x183)](_0x272b95(0x1ea),_0x4505df),this[_0x272b95(0x277)]['show']({'type':_0x5ebeb1[_0x272b95(0x278)][_0x272b95(0x19b)],'content':this[_0x272b95(0x2c0)]['t'](_0x272b95(0x1e6))});}finally{this['_loading$'][_0x272b95(0x262)](!0x1);}}),this[_0x28b41a(0x276)](),this[_0x28b41a(0x22b)](),this[_0x28b41a(0x224)]();}[_0x3b25c9(0x2e6)](){const _0x2a1264=_0x3b25c9;let _0x54d09e=this[_0x2a1264(0x1da)]['getConfig'](_0x4dff90);_0x54d09e!=null&&_0x54d09e[_0x2a1264(0x27b)]&&this[_0x2a1264(0x1f2)][_0x2a1264(0x2b3)]({'id':_0x268f80,'title':{'title':this[_0x2a1264(0x2c0)]['t'](_0x2a1264(0x2a7))},'children':{'label':_0x2a1264(0x263)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x410911=_0x2a1264;this['_dialogService'][_0x410911(0x2cc)](_0x268f80);}});}[_0x3b25c9(0x2ce)](){const _0x2ac88a=_0x3b25c9;return this[_0x2ac88a(0x230)]['value'];}[_0x3b25c9(0x224)](){const _0x267109=_0x3b25c9;this[_0x267109(0x306)](this[_0x267109(0x2e4)]['register'](_0x267109(0x263),this['_createConfigPanelComponent']()));}[_0x3b25c9(0x1a3)](){const _0x54af40=_0x3b25c9;return(0x0,_0x2defbe['connectInjector'])(()=>{const _0x384fe1=_0x445a;var _0x53d880,_0x1a37fd,_0xb0bc37;return(0x0,_0x15d98c[_0x384fe1(0x260)])(_0x494764,{'config':this['_config$'][_0x384fe1(0x2b6)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x384fe1(0x2b6)],'currentApiKey$':this[_0x384fe1(0x304)],'onSave':this[_0x384fe1(0x20c)],'loading':this[_0x384fe1(0x232)][_0x384fe1(0x2b6)],'connectionStatus$':(_0x53d880=this[_0x384fe1(0x270)])==null?void 0x0:_0x53d880[_0x384fe1(0x215)],'connectionError$':(_0x1a37fd=this[_0x384fe1(0x270)])==null?void 0x0:_0x1a37fd[_0x384fe1(0x2f7)],'currentSessionId$':(_0xb0bc37=this['_mcpConnectionController'])==null?void 0x0:_0xb0bc37[_0x384fe1(0x272)]});},this[_0x54af40(0x1f3)]);}['_initConfigSync'](){const _0x4f89bc=_0x3b25c9;this[_0x4f89bc(0x306)](this[_0x4f89bc(0x1da)][_0x4f89bc(0x21b)](_0x3f7e87[_0x4f89bc(0x26a)])[_0x4f89bc(0x259)](_0x132786=>{const _0x3029f2=_0x4f89bc;this[_0x3029f2(0x230)][_0x3029f2(0x262)](_0x132786||{});}));let _0x5a122c=this[_0x4f89bc(0x1da)][_0x4f89bc(0x2b0)](_0x3f7e87['MCP_PLUGIN_CONFIG_KEY']);this[_0x4f89bc(0x230)][_0x4f89bc(0x262)](_0x5a122c||{}),this[_0x4f89bc(0x306)](this[_0x4f89bc(0x1da)][_0x4f89bc(0x21b)](_0x4dff90)['subscribe'](_0xe12c03=>{const _0x3eb5c9=_0x4f89bc;this[_0x3eb5c9(0x23d)][_0x3eb5c9(0x262)](_0xe12c03||{});}));let _0x267359=this['_configService'][_0x4f89bc(0x2b0)](_0x4dff90);this[_0x4f89bc(0x23d)][_0x4f89bc(0x262)](_0x267359||{});}async['_loadStoredApiKey'](){const _0x1b2a6a=_0x3b25c9;let _0xdfd0da=this[_0x1b2a6a(0x1da)][_0x1b2a6a(0x2b0)](_0x4dff90);if(!(_0xdfd0da!=null&&_0xdfd0da[_0x1b2a6a(0x27b)]))return;let _0x35e596=await this[_0x1b2a6a(0x213)][_0x1b2a6a(0x2bb)](_0x36b789);_0x35e596&&(this[_0x1b2a6a(0x270)][_0x1b2a6a(0x2ac)]({'Authorization':_0x1b2a6a(0x23c)+_0x35e596}),this[_0x1b2a6a(0x304)][_0x1b2a6a(0x262)](_0x35e596));}async['_validateConfig'](_0x428b8b){const _0x229d30=_0x3b25c9;if(!_0x428b8b[_0x229d30(0x2ad)]||_0x428b8b['apiKey'][_0x229d30(0x286)]()[_0x229d30(0x1eb)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x229d30(0x2aa))};if(_0x428b8b[_0x229d30(0x2ad)][_0x229d30(0x286)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x229d30(0x2c0)]['t'](_0x229d30(0x23f))};try{let _0x127dbe=await this[_0x229d30(0x1f3)][_0x229d30(0x2e0)](_0x3f7e87['MCPConnectionController'])['validateApiKey'](_0x428b8b[_0x229d30(0x2ad)][_0x229d30(0x286)]());return _0x127dbe[_0x229d30(0x200)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x127dbe[_0x229d30(0x183)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x4fc0a8){return console['warn'](_0x229d30(0x1b6),_0x4fc0a8),{'isValid':!0x0};}}};_0x26fe70=_0x57f55b([_0x224519(0x0,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x561e95['Injector'])),_0x224519(0x1,_0x2defbe['IUIPartsService']),_0x224519(0x2,_0x561e95['IConfigService']),_0x224519(0x3,_0x561e95[_0x3b25c9(0x1be)]),_0x224519(0x4,_0x2defbe[_0x3b25c9(0x1ed)]),_0x224519(0x5,_0x2defbe['IMessageService']),_0x224519(0x6,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x2defbe[_0x3b25c9(0x2ee)])),_0x224519(0x7,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x561e95[_0x3b25c9(0x21e)])),_0x224519(0x8,_0x561e95[_0x3b25c9(0x2e3)]),_0x224519(0x9,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x3f7e87[_0x3b25c9(0x258)]))],_0x26fe70);let _0x593bd9={'id':_0x3b25c9(0x256),'type':_0x561e95[_0x3b25c9(0x254)][_0x3b25c9(0x246)],'handler':async(_0xee06,_0x1bb09a)=>(_0xee06[_0x3b25c9(0x2e0)](_0x26fe70)[_0x3b25c9(0x2e6)](),!0x0)};function _0x43f52e(_0x3c2857,_0xac05f4){const _0x339836=_0x3b25c9;switch(_0x3c2857){case _0x3f7e87[_0x339836(0x1ab)][_0x339836(0x2eb)]:return'mcpStatus.disconnected';case _0x3f7e87[_0x339836(0x1ab)][_0x339836(0x22e)]:return'mcpStatus.connecting';case _0x3f7e87[_0x339836(0x1ab)][_0x339836(0x21a)]:return'mcpStatus.connected';case _0x3f7e87[_0x339836(0x1ab)][_0x339836(0x302)]:switch(_0xac05f4){case _0x3f7e87[_0x339836(0x25d)][_0x339836(0x301)]:return _0x339836(0x267);case _0x3f7e87[_0x339836(0x25d)]['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0x3f7e87[_0x339836(0x25d)][_0x339836(0x1a4)]:return'mcpStatus.networkError';case _0x3f7e87[_0x339836(0x25d)]['MAX_RETRIES_EXCEEDED']:return _0x339836(0x287);default:return _0x339836(0x2e5);}case _0x3f7e87['MCPConnectionStatus'][_0x339836(0x1f6)]:return _0x339836(0x1aa);default:return _0x339836(0x2be);}}function _0x29c6be(_0xfb3acb,_0x8ea29a,_0x5ce3c0,_0x253804=!0x0){const _0x3597b2=_0x3b25c9;let _0x4b7726=_0x43f52e(_0xfb3acb,_0x8ea29a),_0x1e8a15=_0x5ce3c0['t'](_0x4b7726);return _0x253804?_0xfb3acb===_0x3f7e87['MCPConnectionStatus']['DISCONNECTED']&&_0x8ea29a===_0x3f7e87[_0x3597b2(0x25d)]['UNAUTHORIZED']?_0x1e8a15+'\x20-\x20'+_0x5ce3c0['t']('mcpStatus.clickToConfigure'):_0xfb3acb===_0x3f7e87[_0x3597b2(0x1ab)]['CONNECTED']?''+_0x1e8a15:_0xfb3acb===_0x3f7e87[_0x3597b2(0x1ab)][_0x3597b2(0x2eb)]||_0xfb3acb===_0x3f7e87['MCPConnectionStatus']['FAILED']?_0x1e8a15+'\x20-\x20'+_0x5ce3c0['t'](_0x3597b2(0x209)):_0x1e8a15:_0x1e8a15;}function _0x182d43(_0x4b8d83){const _0x556d5b=_0x3b25c9;switch(_0x4b8d83){case _0x3f7e87['MCPConnectionStatus']['CONNECTED']:return _0x556d5b(0x2c2);case _0x3f7e87[_0x556d5b(0x1ab)][_0x556d5b(0x22e)]:case _0x3f7e87[_0x556d5b(0x1ab)][_0x556d5b(0x1f6)]:return _0x556d5b(0x210);case _0x3f7e87[_0x556d5b(0x1ab)]['FAILED']:case _0x3f7e87[_0x556d5b(0x1ab)][_0x556d5b(0x2eb)]:return _0x556d5b(0x2a2);default:return'univer-text-gray-500';}}function _0x530948(_0xf1420a){const _0x3f768d=_0x3b25c9;let {status$:_0x55a101,error$:_0x41300d,onConfigure:_0x2ff66d,showClickable:_0x363202=!0x0}=_0xf1420a,_0x4c289d=(0x0,_0x2defbe[_0x3f768d(0x2d9)])(_0x55a101,_0x3f7e87[_0x3f768d(0x1ab)][_0x3f768d(0x2eb)]),_0x437884=(0x0,_0x2defbe[_0x3f768d(0x2d9)])(_0x41300d,_0x3f7e87[_0x3f768d(0x25d)][_0x3f768d(0x273)]),_0x1f180c=(0x0,_0x2defbe[_0x3f768d(0x274)])(_0x561e95['LocaleService']),_0x494700=_0x4c289d===_0x3f7e87['MCPConnectionStatus'][_0x3f768d(0x21a)];_0x4c289d===_0x3f7e87[_0x3f768d(0x1ab)][_0x3f768d(0x22e)]||_0x3f7e87['MCPConnectionStatus'][_0x3f768d(0x1f6)];let _0x3482e1=_0x1f180c['t'](_0x43f52e(_0x4c289d,_0x437884)),_0x401d32=_0x29c6be(_0x4c289d,_0x437884,_0x1f180c,_0x363202),_0x24afec=_0x182d43(_0x4c289d),_0x2e13ba=_0x494700?(0x0,_0x15d98c[_0x3f768d(0x260)])(_0x119fb8,{}):(0x0,_0x15d98c[_0x3f768d(0x260)])(_0xf908f9,{}),_0xc825f6=(0x0,_0x3144d2['useCallback'])(()=>{_0x363202&&_0x2ff66d&&_0x2ff66d();},[_0x363202,_0x2ff66d]);function _0x11eb6f(){const _0x530980=_0x3f768d;return(0x0,_0x15d98c[_0x530980(0x19a)])(_0x530980(0x30b),{'className':(0x0,_0x5ebeb1[_0x530980(0x1c2)])('univer-flex\x20univer-items-center',_0x363202&&_0x2ff66d&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x363202&&_0x2ff66d?_0xc825f6:void 0x0,'children':[(0x0,_0x15d98c[_0x530980(0x260)])(_0x530980(0x30b),{'className':(0x0,_0x5ebeb1['clsx'])(_0x530980(0x2fa),_0x24afec),'children':_0x2e13ba}),(0x0,_0x15d98c[_0x530980(0x260)])(_0x530980(0x30b),{'className':_0x530980(0x238),'children':_0x3482e1})]});}return(0x0,_0x15d98c[_0x3f768d(0x260)])(_0x5ebeb1[_0x3f768d(0x1ae)],{'title':_0x401d32,'placement':'bottom','children':_0x11eb6f()});}let _0x5f3acd=class extends _0x561e95[_0x3b25c9(0x2a1)]{constructor(_0x49479a,_0x35678a,_0x11d8c7,_0xa06491){const _0x283ce1=_0x3b25c9;super(),this['_injector']=_0x49479a,this['_connectionController']=_0x35678a,this['_uiPartsService']=_0x11d8c7,this[_0x283ce1(0x1da)]=_0xa06491,this['_initAutoConnect'](),this[_0x283ce1(0x21d)]();}[_0x3b25c9(0x193)](){const _0x26c18e=_0x3b25c9;let _0x21d131=this[_0x26c18e(0x1da)][_0x26c18e(0x2b0)](_0x4dff90);_0x21d131!=null&&_0x21d131['showDeveloperTools']&&(this[_0x26c18e(0x296)][_0x26c18e(0x1fd)]=!0x1);}[_0x3b25c9(0x21d)](){const _0x976ebb=_0x3b25c9;let _0x7db47=this['_configService'][_0x976ebb(0x2b0)](_0x4dff90);(_0x7db47==null?void 0x0:_0x7db47['showStatus'])!==!0x1&&this[_0x976ebb(0x306)](this['_uiPartsService'][_0x976ebb(0x1f5)](_0x2defbe[_0x976ebb(0x18d)][_0x976ebb(0x2cf)],()=>{const _0x18cae3=_0x976ebb;var _0x33f7b7;return(0x0,_0x2defbe[_0x18cae3(0x2f9)])(_0x306c94({'status$':this[_0x18cae3(0x296)]['connectionStatus$'],'error$':this[_0x18cae3(0x296)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x33f7b7=_0x7db47==null?void 0x0:_0x7db47['showDeveloperTools'])==null?!0x1:_0x33f7b7}),this['_injector']);}));}[_0x3b25c9(0x19c)](){const _0x4a6966=_0x3b25c9;this[_0x4a6966(0x1f3)][_0x4a6966(0x2e0)](_0x26fe70)['showConfigPanel']();}};_0x5f3acd=_0x57f55b([_0x224519(0x0,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x561e95[_0x3b25c9(0x249)])),_0x224519(0x1,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x3f7e87[_0x3b25c9(0x258)])),_0x224519(0x2,_0x2defbe[_0x3b25c9(0x269)]),_0x224519(0x3,_0x561e95[_0x3b25c9(0x24e)])],_0x5f3acd);function _0x306c94(_0x5d3479){let {status$:_0xbc3e00,error$:_0x3020a8,onConfigure:_0x3e1128,showClickable:_0x339a21}=_0x5d3479;return function(){const _0x363d5a=_0x445a;return(0x0,_0x15d98c[_0x363d5a(0x260)])(_0x530948,{'status$':_0xbc3e00,'error$':_0x3020a8,'onConfigure':_0x3e1128,'showClickable':_0x339a21});};}function _0x425e90(_0x3d2887){const _0x17a099=_0x3b25c9;return{'id':_0x593bd9['id'],'type':_0x2defbe[_0x17a099(0x24f)]['BUTTON'],'icon':_0x17a099(0x1c5),'title':_0x17a099(0x2a7),'tooltip':_0x17a099(0x2a7)};}let _0x93dc4f={[_0x2defbe[_0x3b25c9(0x282)][_0x3b25c9(0x194)]]:{[_0x593bd9['id']]:{'order':0xa,'menuItemFactory':_0x425e90}}},_0x39563e=class extends _0x561e95[_0x3b25c9(0x2a1)]{constructor(_0x15479b,_0x5ebfe9){const _0x1afa28=_0x3b25c9;super(),this['_commandService']=_0x15479b,this[_0x1afa28(0x2d4)]=_0x5ebfe9,this[_0x1afa28(0x2db)](),this[_0x1afa28(0x265)]();}[_0x3b25c9(0x2db)](){const _0x25da4d=_0x3b25c9;[_0x593bd9][_0x25da4d(0x242)](_0x5e2666=>{const _0x5a494e=_0x25da4d;this[_0x5a494e(0x306)](this[_0x5a494e(0x2f1)][_0x5a494e(0x2ff)](_0x5e2666));});}[_0x3b25c9(0x265)](){const _0x3e72fb=_0x3b25c9;this[_0x3e72fb(0x2d4)]['mergeMenu'](_0x93dc4f);}};_0x39563e=_0x57f55b([_0x224519(0x0,_0x561e95[_0x3b25c9(0x1cd)]),_0x224519(0x1,_0x2defbe['IMenuManagerService'])],_0x39563e);let _0x2cf8f3={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3b25c9(0x1f1),'connected':_0x3b25c9(0x2ca),'failed':_0x3b25c9(0x1d0),'retrying':_0x3b25c9(0x2b1),'unknown':_0x3b25c9(0x1b4),'unauthorized':_0x3b25c9(0x25f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3b25c9(0x18a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3b25c9(0x28b),'clickToConfigure':_0x3b25c9(0x1bf)},'mcpConfig':{'title':_0x3b25c9(0x187),'description':_0x3b25c9(0x1c9),'apiKey':_0x3b25c9(0x253),'apiKeyPlaceholder':_0x3b25c9(0x23a),'apiKeyHint':_0x3b25c9(0x186),'enableAuth':_0x3b25c9(0x241),'enableAuthHint':_0x3b25c9(0x1d8),'connectionInfo':_0x3b25c9(0x25b),'mcpClientConfig':_0x3b25c9(0x25b),'configInstructions':_0x3b25c9(0x28f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3b25c9(0x266),'configStep2':_0x3b25c9(0x2dc),'configStep3':_0x3b25c9(0x185),'sessionId':_0x3b25c9(0x25c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3b25c9(0x2af),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x3b25c9(0x299),'saving':_0x3b25c9(0x2b9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3b25c9(0x307),'configSaved':_0x3b25c9(0x2ec),'configError':_0x3b25c9(0x2a9),'apiApplyInfo':{'title':_0x3b25c9(0x2f2),'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':_0x3b25c9(0x1e3),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3b25c9(0x1f7),'invalidConfig':_0x3b25c9(0x29c),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3b25c9(0x21f),'connecting':_0x3b25c9(0x1d3),'connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3b25c9(0x220),'sessionOccupied':_0x3b25c9(0x2fc),'networkError':_0x3b25c9(0x275),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x4414f4={'mcpStatus':{'disconnected':_0x3b25c9(0x2bf),'connecting':_0x3b25c9(0x1fc),'connected':'MCP\x20已连接','failed':_0x3b25c9(0x2c9),'retrying':_0x3b25c9(0x2da),'unknown':_0x3b25c9(0x1bb),'unauthorized':_0x3b25c9(0x27e),'sessionOccupied':_0x3b25c9(0x207),'networkError':_0x3b25c9(0x19e),'maxRetriesExceeded':_0x3b25c9(0x1d6),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x3b25c9(0x2a6)},'mcpConfig':{'title':_0x3b25c9(0x1a1),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x3b25c9(0x20d),'apiKeyPlaceholder':_0x3b25c9(0x2b4),'apiKeyHint':_0x3b25c9(0x1d1),'enableAuth':_0x3b25c9(0x1af),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3b25c9(0x22c),'mcpClientConfig':_0x3b25c9(0x22c),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3b25c9(0x250),'configStep1':_0x3b25c9(0x2d6),'configStep2':_0x3b25c9(0x1ac),'configStep3':_0x3b25c9(0x293),'sessionId':'会话ID','sessionIdDescription':_0x3b25c9(0x2ef),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x3b25c9(0x1ff),'maxRetries':'最大重试次数','save':'保存配置','saving':_0x3b25c9(0x2b2),'note1':_0x3b25c9(0x279),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x3b25c9(0x30c),'apiApplyInfo':{'title':_0x3b25c9(0x2c7),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x3b25c9(0x1cb),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3b25c9(0x243),'apiKeyTooShort':_0x3b25c9(0x1e5),'invalidConfig':_0x3b25c9(0x26e),'invalidApiKey':_0x3b25c9(0x284)},'connectionStatus':{'disconnected':_0x3b25c9(0x208),'connecting':'连接中...','connected':'已连接','failed':_0x3b25c9(0x217),'retrying':_0x3b25c9(0x1b2)},'connectionError':{'unauthorized':_0x3b25c9(0x1e8),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x3b25c9(0x24b),'maxRetriesExceeded':_0x3b25c9(0x1ec)}}};var _0xd05380='@univerjs-pro/mcp-ui',_0xed58c8=_0x3b25c9(0x2a5);let _0x2a5ae1=class extends _0x561e95[_0x3b25c9(0x20f)]{constructor(_0x4a01ea=_0x9ac10e,_0x53b792,_0x1d6157,_0x1332e0,_0x111dc9,_0x25bc09){const _0x158151=_0x3b25c9;super(),this['_config']=_0x4a01ea,this[_0x158151(0x1f3)]=_0x53b792,this[_0x158151(0x1da)]=_0x1d6157,this[_0x158151(0x1f0)]=_0x1332e0,this[_0x158151(0x213)]=_0x111dc9,this['_localeService']=_0x25bc09;let {..._0x479b84}=(0x0,_0x561e95[_0x158151(0x197)])({},_0x9ac10e,this[_0x158151(0x308)]);this['_configService'][_0x158151(0x295)](_0x4dff90,_0x479b84);}async['onStarting'](){const _0x17bcff=_0x3b25c9;let _0x56990c=[[_0x5f3acd],[_0x26fe70],[_0x39563e]];this[_0x17bcff(0x1f3)][_0x17bcff(0x27f)](_0x26d054[_0x17bcff(0x1b7)])||_0x56990c['push']([_0x26d054['ISocketService'],{'useClass':_0x26d054[_0x17bcff(0x227)]}]),_0x56990c['forEach'](_0x2cf005=>this['_injector'][_0x17bcff(0x2f6)](_0x2cf005)),this[_0x17bcff(0x1f3)][_0x17bcff(0x2e0)](_0x5f3acd),this[_0x17bcff(0x1f3)][_0x17bcff(0x2e0)](_0x26fe70),this[_0x17bcff(0x1f3)]['get'](_0x39563e);}};_0x374468(_0x2a5ae1,'pluginName',_0x3b25c9(0x222)),_0x374468(_0x2a5ae1,'packageName',_0xd05380),_0x374468(_0x2a5ae1,_0x3b25c9(0x26b),_0xed58c8),_0x2a5ae1=_0x57f55b([(0x0,_0x561e95['DependentOn'])(_0x3f7e87[_0x3b25c9(0x29a)]),_0x224519(0x1,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x561e95[_0x3b25c9(0x249)])),_0x224519(0x2,_0x561e95[_0x3b25c9(0x24e)]),_0x224519(0x3,_0x2defbe[_0x3b25c9(0x269)]),_0x224519(0x4,_0x561e95[_0x3b25c9(0x1be)]),_0x224519(0x5,(0x0,_0x561e95[_0x3b25c9(0x26f)])(_0x561e95[_0x3b25c9(0x21e)]))],_0x2a5ae1),_0x598267['MCPConfigPanel']=_0x494764,Object[_0x3b25c9(0x2fd)](_0x598267,_0x3b25c9(0x1d4),{'enumerable':!0x0,'get':function(){return _0x26fe70;}}),Object[_0x3b25c9(0x2fd)](_0x598267,_0x3b25c9(0x1df),{'enumerable':!0x0,'get':function(){return _0x5f3acd;}}),_0x598267[_0x3b25c9(0x2dd)]=_0x530948,Object['defineProperty'](_0x598267,_0x3b25c9(0x2a3),{'enumerable':!0x0,'get':function(){return _0x39563e;}}),_0x598267[_0x3b25c9(0x19d)]=_0x593bd9,Object[_0x3b25c9(0x2fd)](_0x598267,_0x3b25c9(0x297),{'enumerable':!0x0,'get':function(){return _0x2a5ae1;}}),_0x598267[_0x3b25c9(0x1b3)]=_0x2cf8f3,_0x598267[_0x3b25c9(0x2ae)]=_0x4414f4;}));
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x405297,_0x777758){var _0x52dc82=_0x479b,_0x1ea231=_0x405297();while(!![]){try{var _0x4f9e1c=parseInt(_0x52dc82(0x199))/0x1*(parseInt(_0x52dc82(0x179))/0x2)+parseInt(_0x52dc82(0x188))/0x3*(-parseInt(_0x52dc82(0x185))/0x4)+parseInt(_0x52dc82(0x16c))/0x5+parseInt(_0x52dc82(0x174))/0x6+-parseInt(_0x52dc82(0x187))/0x7*(-parseInt(_0x52dc82(0x175))/0x8)+parseInt(_0x52dc82(0x160))/0x9+-parseInt(_0x52dc82(0x18c))/0xa;if(_0x4f9e1c===_0x777758)break;else _0x1ea231['push'](_0x1ea231['shift']());}catch(_0x144f74){_0x1ea231['push'](_0x1ea231['shift']());}}}(_0xb6d7,0x9937b),function(_0x44db74,_0x4564c5){var _0x4b413f=_0x479b;typeof exports==_0x4b413f(0x17b)&&typeof module<'u'?module[_0x4b413f(0x17a)]=_0x4564c5():typeof define==_0x4b413f(0x15f)&&define[_0x4b413f(0x181)]?define([],_0x4564c5):(_0x44db74=typeof globalThis<'u'?globalThis:_0x44db74||self,_0x44db74[_0x4b413f(0x184)]=_0x4564c5());}(this,function(){var _0x53e0d6=_0x479b;return{'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x53e0d6(0x16e),'failed':_0x53e0d6(0x15e),'retrying':_0x53e0d6(0x17e),'unknown':_0x53e0d6(0x18f),'unauthorized':_0x53e0d6(0x17c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x53e0d6(0x161),'maxRetriesExceeded':_0x53e0d6(0x164),'clickToConnect':_0x53e0d6(0x163),'clickToConfigure':_0x53e0d6(0x167)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x53e0d6(0x189),'apiKey':_0x53e0d6(0x193),'apiKeyPlaceholder':_0x53e0d6(0x16b),'apiKeyHint':_0x53e0d6(0x194),'enableAuth':_0x53e0d6(0x176),'enableAuthHint':_0x53e0d6(0x191),'connectionInfo':_0x53e0d6(0x197),'mcpClientConfig':_0x53e0d6(0x197),'configInstructions':_0x53e0d6(0x17d),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x53e0d6(0x173),'configStep2':_0x53e0d6(0x192),'configStep3':_0x53e0d6(0x196),'sessionId':_0x53e0d6(0x177),'sessionIdDescription':_0x53e0d6(0x178),'authorizationDescription':_0x53e0d6(0x198),'configParameters':_0x53e0d6(0x186),'maxRetries':_0x53e0d6(0x171),'save':'Save\x20Configuration','saving':_0x53e0d6(0x18b),'note1':_0x53e0d6(0x166),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x53e0d6(0x18a),'configError':_0x53e0d6(0x168),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x53e0d6(0x18e),'univerAiLabel':_0x53e0d6(0x170),'getStarted':_0x53e0d6(0x16d)},'validation':{'apiKeyRequired':_0x53e0d6(0x165),'apiKeyTooShort':_0x53e0d6(0x18d),'invalidConfig':_0x53e0d6(0x182),'invalidApiKey':_0x53e0d6(0x162)},'connectionStatus':{'disconnected':_0x53e0d6(0x172),'connecting':_0x53e0d6(0x183),'connected':_0x53e0d6(0x190),'failed':_0x53e0d6(0x17f),'retrying':_0x53e0d6(0x180)},'connectionError':{'unauthorized':_0x53e0d6(0x169),'sessionOccupied':_0x53e0d6(0x16a),'networkError':_0x53e0d6(0x16f),'maxRetriesExceeded':_0x53e0d6(0x195)}}};}));function _0x479b(_0x346e84,_0xd568b4){_0x346e84=_0x346e84-0x15e;var _0xb6d7a6=_0xb6d7();var _0x479b48=_0xb6d7a6[_0x346e84];return _0x479b48;}function _0xb6d7(){var _0x240bfe=['3001430LSmbCZ','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','Max\x20Retries','Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','77400OqBwPq','8HFmArv','Enable\x20Authentication','Session\x20ID','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','21778KAieNY','exports','object','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','Connection\x20Failed','Retrying...','amd','Invalid\x20configuration','Connecting...','UniverProMcpUiCaES','396OGLYKl','Configuration\x20Parameters:','2593311OfWJxh','3882vmAjGp','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','Saving...','20727090lyvGvN','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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\x20Unknown\x20Status','Connected','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','61nJHqAd','MCP\x20Connection\x20Failed','function','10624554WFmTPD','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enter\x20your\x20API\x20key'];_0xb6d7=function(){return _0x240bfe;};return _0xb6d7();}
|