@univerjs-pro/mcp-ui 0.19.0 → 0.21.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 +7 -7
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c5ecc=_0x5aaf;(function(_0x155ad9,_0x3ac94d){const _0x4a8621=_0x5aaf,_0x45c832=_0x155ad9();while(!![]){try{const _0x302b5e=-parseInt(_0x4a8621(0xa7))/0x1+parseInt(_0x4a8621(0x93))/0x2+parseInt(_0x4a8621(0x9b))/0x3*(parseInt(_0x4a8621(0x88))/0x4)+-parseInt(_0x4a8621(0xa5))/0x5+parseInt(_0x4a8621(0x90))/0x6+-parseInt(_0x4a8621(0xa3))/0x7+parseInt(_0x4a8621(0xb0))/0x8;if(_0x302b5e===_0x3ac94d)break;else _0x45c832['push'](_0x45c832['shift']());}catch(_0xf2ecaa){_0x45c832['push'](_0x45c832['shift']());}}}(_0x5f4b,0xabde3));const locale$1={'mcpStatus':{'disconnected':_0x2c5ecc(0xaa),'connecting':_0x2c5ecc(0xa8),'connected':_0x2c5ecc(0x94),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2c5ecc(0xa1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2c5ecc(0xaf),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2c5ecc(0xa2),'clickToConnect':_0x2c5ecc(0x9f),'clickToConfigure':_0x2c5ecc(0x9a)},'mcpConfig':{'title':_0x2c5ecc(0xa6),'description':_0x2c5ecc(0xa9),'apiKey':_0x2c5ecc(0xa4),'apiKeyPlaceholder':_0x2c5ecc(0x9d),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2c5ecc(0x98),'enableAuthHint':_0x2c5ecc(0x8b),'connectionInfo':_0x2c5ecc(0xab),'mcpClientConfig':_0x2c5ecc(0xab),'configInstructions':_0x2c5ecc(0x92),'configStepTitle':_0x2c5ecc(0xae),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2c5ecc(0x99),'configStep3':_0x2c5ecc(0x86),'sessionId':_0x2c5ecc(0x96),'sessionIdDescription':_0x2c5ecc(0xa0),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2c5ecc(0x85),'save':'Save\x20Configuration','saving':_0x2c5ecc(0x8c),'note1':_0x2c5ecc(0x8a),'note2':_0x2c5ecc(0x87),'configSaved':_0x2c5ecc(0x91),'configError':_0x2c5ecc(0x8d),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2c5ecc(0xac),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2c5ecc(0x9c),'apiKeyTooShort':_0x2c5ecc(0xad),'invalidConfig':_0x2c5ecc(0x9e),'invalidApiKey':_0x2c5ecc(0x89)},'connectionStatus':{'disconnected':_0x2c5ecc(0x97),'connecting':'Connecting...','connected':_0x2c5ecc(0x84),'failed':_0x2c5ecc(0x8e),'retrying':_0x2c5ecc(0x8f)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2c5ecc(0x95)}}},locale=locale$1;export{locale as default};function _0x5aaf(_0x178901,_0x57de9e){_0x178901=_0x178901-0x84;const _0x5f4bbc=_0x5f4b();let _0x5aaf3c=_0x5f4bbc[_0x178901];return _0x5aaf3c;}function _0x5f4b(){const _0x4552ea=['MCP:\x20Unauthorized','8180432LWOtSe','Connected','Max\x20Retries','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4Rqowpe','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Retrying...','6145152kczUzv','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','172938JMYlPi','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','Disconnected','Enable\x20Authentication','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20configure\x20MCP','163794WUdjMW','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','2820167bKDHhI','API\x20Key','6340CvWlth','MCP\x20Configuration','1079693GLzpfw','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:'];_0x5f4b=function(){return _0x4552ea;};return _0x5f4b();}
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x372b(){const _0x2813ac=['Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','MCP:\x20Prekročený\x20počet\x20pokusov','MCP:\x20Sieťová\x20chyba','Odpojené','Pripojenie\x20MCP\x20zlyhalo','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','MCP\x20sa\x20pripája...','156cvcKjn','482517yMLvwx','API\x20kľúč','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','MCP\x20opakuje\x20pokus...','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Skúša\x20sa\x20znova...','Univer\x20AI\x20konzola','Čo\x20je\x20API\x20kľúč?','API\x20kľúč\x20je\x20povinný','68863qOqLKD','238xswkPw','MCP\x20odpojené','1018632fmdLRw','Konfigurácia\x20klienta\x20MCP','Pripojenie\x20zlyhalo','Pripája\x20sa...','Kliknite\x20na\x20konfiguráciu\x20MCP','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','43900CRNfDU','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','9EjwYWV','MCP:\x20Neautorizované','ID\x20relácie','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','79278LiiHIN','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','40450LJfMKf','MCP\x20neznámy\x20stav','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','MCP:\x20ID\x20relácie\x20je\x20obsadené','2481766rHXHkq','Ukladá\x20sa...','Zadajte\x20svoj\x20API\x20kľúč','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.','Konfigurácia\x20MCP','Kliknite\x20na\x20pripojenie\x20MCP','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.','Maximálny\x20počet\x20pokusov','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','429voJJxc','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Uložiť\x20konfiguráciu','Konfigurácia\x20bola\x20úspešne\x20uložená'];_0x372b=function(){return _0x2813ac;};return _0x372b();}const _0x287570=_0x59f9;(function(_0x25230a,_0x31ddde){const _0xb96ff4=_0x59f9,_0x1f7c57=_0x25230a();while(!![]){try{const _0x5f4254=-parseInt(_0xb96ff4(0x1f2))/0x1+parseInt(_0xb96ff4(0x1d2))/0x2+-parseInt(_0xb96ff4(0x1e8))/0x3+parseInt(_0xb96ff4(0x1e7))/0x4*(-parseInt(_0xb96ff4(0x1cd))/0x5)+parseInt(_0xb96ff4(0x1cb))/0x6*(parseInt(_0xb96ff4(0x1f3))/0x7)+parseInt(_0xb96ff4(0x1bf))/0x8*(-parseInt(_0xb96ff4(0x1c7))/0x9)+-parseInt(_0xb96ff4(0x1c5))/0xa*(parseInt(_0xb96ff4(0x1db))/0xb);if(_0x5f4254===_0x31ddde)break;else _0x1f7c57['push'](_0x1f7c57['shift']());}catch(_0x4e1609){_0x1f7c57['push'](_0x1f7c57['shift']());}}}(_0x372b,0xcea26));const locale={'mcpStatus':{'disconnected':_0x287570(0x1f4),'connecting':_0x287570(0x1e6),'connected':'MCP\x20pripojené','failed':_0x287570(0x1e3),'retrying':_0x287570(0x1eb),'unknown':_0x287570(0x1ce),'unauthorized':_0x287570(0x1c8),'sessionOccupied':_0x287570(0x1d1),'networkError':_0x287570(0x1e1),'maxRetriesExceeded':_0x287570(0x1e0),'clickToConnect':_0x287570(0x1d7),'clickToConfigure':_0x287570(0x1c3)},'mcpConfig':{'title':_0x287570(0x1d6),'description':_0x287570(0x1dc),'apiKey':_0x287570(0x1e9),'apiKeyPlaceholder':_0x287570(0x1d4),'apiKeyHint':'Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','enableAuth':'Povoliť\x20overenie','enableAuthHint':_0x287570(0x1cf),'connectionInfo':_0x287570(0x1c0),'mcpClientConfig':_0x287570(0x1c0),'configInstructions':_0x287570(0x1cc),'configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x287570(0x1ed),'configStep2':_0x287570(0x1ec),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x287570(0x1c9),'sessionIdDescription':_0x287570(0x1d5),'authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x287570(0x1d9),'save':_0x287570(0x1dd),'saving':_0x287570(0x1d3),'note1':_0x287570(0x1df),'note2':_0x287570(0x1e4),'configSaved':_0x287570(0x1de),'configError':_0x287570(0x1da),'apiApplyInfo':{'title':_0x287570(0x1f0),'description':_0x287570(0x1d8),'univerAiLabel':_0x287570(0x1ef),'getStarted':'Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd'},'validation':{'apiKeyRequired':_0x287570(0x1f1),'apiKeyTooShort':_0x287570(0x1c4),'invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':_0x287570(0x1ea)},'connectionStatus':{'disconnected':_0x287570(0x1e2),'connecting':_0x287570(0x1c2),'connected':'Pripojené','failed':_0x287570(0x1c1),'retrying':_0x287570(0x1ee)},'connectionError':{'unauthorized':_0x287570(0x1e5),'sessionOccupied':_0x287570(0x1c6),'networkError':_0x287570(0x1d0),'maxRetriesExceeded':_0x287570(0x1ca)}}};function _0x59f9(_0x3e0415,_0x304545){_0x3e0415=_0x3e0415-0x1bf;const _0x372ba5=_0x372b();let _0x59f9fb=_0x372ba5[_0x3e0415];return _0x59f9fb;}export{locale as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x156a(_0x417aaf,_0x556891){_0x417aaf=_0x417aaf-0xae;const _0x5ad9e4=_0x5ad9();let _0x156a26=_0x5ad9e4[_0x417aaf];return _0x156a26;}const _0x5bd314=_0x156a;(function(_0x16a0ba,_0x5f25ff){const _0x116623=_0x156a,_0x2018f1=_0x16a0ba();while(!![]){try{const _0x1cabf5=-parseInt(_0x116623(0xcf))/0x1*(-parseInt(_0x116623(0xb4))/0x2)+parseInt(_0x116623(0xcc))/0x3+parseInt(_0x116623(0xb7))/0x4+-parseInt(_0x116623(0xd4))/0x5+-parseInt(_0x116623(0xc3))/0x6*(parseInt(_0x116623(0xd7))/0x7)+-parseInt(_0x116623(0xc9))/0x8*(-parseInt(_0x116623(0xc0))/0x9)+-parseInt(_0x116623(0xbc))/0xa;if(_0x1cabf5===_0x5f25ff)break;else _0x2018f1['push'](_0x2018f1['shift']());}catch(_0x301185){_0x2018f1['push'](_0x2018f1['shift']());}}}(_0x5ad9,0x26857));function _0x5ad9(){const _0x198c2b=['Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','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.','MCP\x20Đã\x20ngắt\x20kết\x20nối','710370mozSAm','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Đang\x20thử\x20lại...','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','9DYdPQG','Kết\x20nối\x20thất\x20bại','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','582XvxpHQ','Đang\x20lưu...','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Đị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.','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Nhập\x20khóa\x20API\x20của\x20bạn','1126696FvcJac','Yêu\x20cầu\x20khóa\x20API','MCP:\x20Lỗi\x20mạng','782241LMvASA','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','32774suYqbM','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','MCP\x20Đã\x20kết\x20nối','993265AfjBhH','Nhấp\x20để\x20kết\x20nối\x20MCP','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','8141gtlbJB','Cấu\x20hình\x20không\x20hợp\x20lệ','MCP\x20Đang\x20kết\x20nối...','Bật\x20xác\x20thực','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Lưu\x20cấu\x20hình','Các\x20bước\x20cấu\x20hình:','Lưu\x20cấu\x20hình\x20thất\x20bại','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','ID\x20phiên','Nhấp\x20để\x20cấu\x20hình\x20MCP','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','MCP\x20Đang\x20thử\x20lại...','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Khóa\x20API\x20là\x20gì?','Bảng\x20điều\x20khiển\x20Univer\x20AI','Số\x20lần\x20thử\x20lại\x20tối\x20đa','2vHMhVF','Cấu\x20hình\x20máy\x20khách\x20MCP','Đang\x20kết\x20nối...','423704YqfzPx','Đã\x20kết\x20nối'];_0x5ad9=function(){return _0x198c2b;};return _0x5ad9();}const locale={'mcpStatus':{'disconnected':_0x5bd314(0xbb),'connecting':_0x5bd314(0xd9),'connected':_0x5bd314(0xd3),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':_0x5bd314(0xaf),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x5bd314(0xcb),'maxRetriesExceeded':_0x5bd314(0xdf),'clickToConnect':_0x5bd314(0xd5),'clickToConfigure':_0x5bd314(0xe1)},'mcpConfig':{'title':'Cấu\x20hình\x20MCP','description':_0x5bd314(0xce),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x5bd314(0xc8),'apiKeyHint':_0x5bd314(0xd1),'enableAuth':_0x5bd314(0xda),'enableAuthHint':_0x5bd314(0xb9),'connectionInfo':_0x5bd314(0xb5),'mcpClientConfig':_0x5bd314(0xb5),'configInstructions':_0x5bd314(0xc7),'configStepTitle':_0x5bd314(0xdd),'configStep1':_0x5bd314(0xc2),'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':_0x5bd314(0xdb),'sessionId':_0x5bd314(0xe0),'sessionIdDescription':_0x5bd314(0xc6),'authorizationDescription':_0x5bd314(0xd6),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x5bd314(0xb3),'save':_0x5bd314(0xdc),'saving':_0x5bd314(0xc4),'note1':_0x5bd314(0xae),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':_0x5bd314(0xb0),'configError':_0x5bd314(0xde),'apiApplyInfo':{'title':_0x5bd314(0xb1),'description':_0x5bd314(0xba),'univerAiLabel':_0x5bd314(0xb2),'getStarted':_0x5bd314(0xd2)},'validation':{'apiKeyRequired':_0x5bd314(0xca),'apiKeyTooShort':_0x5bd314(0xbf),'invalidConfig':_0x5bd314(0xd8),'invalidApiKey':_0x5bd314(0xcd)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x5bd314(0xb6),'connected':_0x5bd314(0xb8),'failed':_0x5bd314(0xc1),'retrying':_0x5bd314(0xbe)},'connectionError':{'unauthorized':_0x5bd314(0xc5),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x5bd314(0xd0),'maxRetriesExceeded':_0x5bd314(0xbd)}}};export{locale as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b01af=_0x13ed;function _0x2956(){const _0x51a5f9=['会话ID','1011mBstYH','6663312aYykmB','配置\x20MCP\x20使用\x20AI\x20操作电子表格','4112MHQOey','MCP:\x20会话\x20ID\x20已被占用','启用身份验证以获得安全连接','复制以下\x20JSON\x20配置','1501507sbMPNJ','几秒钟内获取您的\x20API\x20密钥','保存中...','API\x20密钥无效,请检查密钥是否正确','MCP\x20连接失败','配置参数:','将配置添加到您的\x20MCP\x20客户端设置文件中','配置保存失败','配置保存成功','751545mjJDAE','MCP\x20客户端配置','MCP:\x20未授权','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20已断开','启用身份验证','MCP\x20重连中...','API\x20密钥','MCP\x20状态未知','54771vjJeaU','重启您的\x20MCP\x20客户端以使配置生效','MCP:\x20网络错误','API\x20密钥长度至少需要\x2010\x20位','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20已连接','配置无效','未连接','Univer\x20AI\x20控制台','已连接','连接失败','点击配置\x20MCP','API\x20密钥不能为空','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20连接中...','MCP:\x20超出最大重试次数','什么是\x20API\x20密钥?','最大重试次数','您的\x20API\x20密钥将在此浏览器中本地存储','380210oaysIL','16AMxhmH','2488968yBsbPp','带有\x20Bearer\x20前缀的\x20API\x20密钥。'];_0x2956=function(){return _0x51a5f9;};return _0x2956();}(function(_0x16bce2,_0x4f8cc4){const _0x53928c=_0x13ed,_0x1f2ba5=_0x16bce2();while(!![]){try{const _0x4566fa=parseInt(_0x53928c(0x1e2))/0x1+-parseInt(_0x53928c(0x1c4))/0x2+-parseInt(_0x53928c(0x1c9))/0x3*(-parseInt(_0x53928c(0x1cc))/0x4)+parseInt(_0x53928c(0x1d9))/0x5+-parseInt(_0x53928c(0x1c6))/0x6+parseInt(_0x53928c(0x1d0))/0x7*(-parseInt(_0x53928c(0x1c5))/0x8)+parseInt(_0x53928c(0x1ca))/0x9;if(_0x4566fa===_0x4f8cc4)break;else _0x1f2ba5['push'](_0x1f2ba5['shift']());}catch(_0x229952){_0x1f2ba5['push'](_0x1f2ba5['shift']());}}}(_0x2956,0x3ef9d));function _0x13ed(_0x1e44f1,_0x2471fb){_0x1e44f1=_0x1e44f1-0x1b4;const _0x295683=_0x2956();let _0x13ed25=_0x295683[_0x1e44f1];return _0x13ed25;}const locale={'mcpStatus':{'disconnected':_0x2b01af(0x1dd),'connecting':_0x2b01af(0x1bf),'connected':_0x2b01af(0x1b6),'failed':_0x2b01af(0x1d4),'retrying':_0x2b01af(0x1df),'unknown':_0x2b01af(0x1e1),'unauthorized':_0x2b01af(0x1db),'sessionOccupied':_0x2b01af(0x1cd),'networkError':_0x2b01af(0x1e4),'maxRetriesExceeded':_0x2b01af(0x1c0),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2b01af(0x1bc)},'mcpConfig':{'title':'MCP\x20配置','description':_0x2b01af(0x1cb),'apiKey':_0x2b01af(0x1e0),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2b01af(0x1c3),'enableAuth':_0x2b01af(0x1de),'enableAuthHint':_0x2b01af(0x1ce),'connectionInfo':_0x2b01af(0x1da),'mcpClientConfig':_0x2b01af(0x1da),'configInstructions':_0x2b01af(0x1b4),'configStepTitle':'配置步骤:','configStep1':_0x2b01af(0x1cf),'configStep2':_0x2b01af(0x1d6),'configStep3':_0x2b01af(0x1e3),'sessionId':_0x2b01af(0x1c8),'sessionIdDescription':_0x2b01af(0x1be),'authorizationDescription':_0x2b01af(0x1c7),'configParameters':_0x2b01af(0x1d5),'maxRetries':_0x2b01af(0x1c2),'save':'保存配置','saving':_0x2b01af(0x1d2),'note1':'配置更改将立即生效','note2':_0x2b01af(0x1dc),'configSaved':_0x2b01af(0x1d8),'configError':_0x2b01af(0x1d7),'apiApplyInfo':{'title':_0x2b01af(0x1c1),'description':_0x2b01af(0x1b5),'univerAiLabel':_0x2b01af(0x1b9),'getStarted':_0x2b01af(0x1d1)},'validation':{'apiKeyRequired':_0x2b01af(0x1bd),'apiKeyTooShort':_0x2b01af(0x1e5),'invalidConfig':_0x2b01af(0x1b7),'invalidApiKey':_0x2b01af(0x1d3)},'connectionStatus':{'disconnected':_0x2b01af(0x1b8),'connecting':'连接中...','connected':_0x2b01af(0x1ba),'failed':_0x2b01af(0x1bb),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{locale as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c1f6c=_0xbc98;(function(_0x1b7c73,_0x484b10){const _0x5d442b=_0xbc98,_0x1f64b2=_0x1b7c73();while(!![]){try{const _0x106a98=parseInt(_0x5d442b(0xa8))/0x1*(parseInt(_0x5d442b(0xa7))/0x2)+parseInt(_0x5d442b(0xa3))/0x3+parseInt(_0x5d442b(0xa0))/0x4*(-parseInt(_0x5d442b(0xb5))/0x5)+-parseInt(_0x5d442b(0xa2))/0x6*(parseInt(_0x5d442b(0x97))/0x7)+-parseInt(_0x5d442b(0xaa))/0x8*(-parseInt(_0x5d442b(0xb8))/0x9)+parseInt(_0x5d442b(0xaf))/0xa*(-parseInt(_0x5d442b(0xb0))/0xb)+-parseInt(_0x5d442b(0x8b))/0xc*(-parseInt(_0x5d442b(0x8d))/0xd);if(_0x106a98===_0x484b10)break;else _0x1f64b2['push'](_0x1f64b2['shift']());}catch(_0x2cbac3){_0x1f64b2['push'](_0x1f64b2['shift']());}}}(_0x41bc,0xd2801));function _0xbc98(_0x30a5b9,_0x94c6e4){_0x30a5b9=_0x30a5b9-0x8a;const _0x41bcb5=_0x41bc();let _0xbc987a=_0x41bcb5[_0x30a5b9];return _0xbc987a;}function _0x41bc(){const _0x5149cb=['686670Svsnva','2841015UQKInr','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2ewFJHc','1134443uYWbQV','Configuration\x20Steps:','88QoZuEe','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','37880UvXINX','22WBfNat','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','5575610qmAAli','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','181341zobkBg','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','Failed\x20to\x20save\x20configuration','12LpaGxi','What\x20is\x20API\x20Key?','3302585hzHFpL','Connection\x20Failed','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','35FHNTCm','MCP\x20Disconnected','Connected','MCP\x20Configuration','MCP\x20Client\x20Configuration','Invalid\x20configuration','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','4yrOSVP','Copy\x20the\x20JSON\x20configuration\x20below'];_0x41bc=function(){return _0x5149cb;};return _0x41bc();}const locale$1={'mcpStatus':{'disconnected':_0x1c1f6c(0x98),'connecting':_0x1c1f6c(0xb2),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1c1f6c(0xad),'networkError':_0x1c1f6c(0x9d),'maxRetriesExceeded':_0x1c1f6c(0xb3),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1c1f6c(0x8f)},'mcpConfig':{'title':_0x1c1f6c(0x9a),'description':_0x1c1f6c(0xba),'apiKey':_0x1c1f6c(0x9f),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1c1f6c(0xa5),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1c1f6c(0xb7),'connectionInfo':_0x1c1f6c(0x9b),'mcpClientConfig':_0x1c1f6c(0x9b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1c1f6c(0xa9),'configStep1':_0x1c1f6c(0xa1),'configStep2':_0x1c1f6c(0x90),'configStep3':_0x1c1f6c(0x95),'sessionId':_0x1c1f6c(0xae),'sessionIdDescription':_0x1c1f6c(0xb9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1c1f6c(0x93),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x1c1f6c(0xa6),'note2':_0x1c1f6c(0xb1),'configSaved':_0x1c1f6c(0x92),'configError':_0x1c1f6c(0x8a),'apiApplyInfo':{'title':_0x1c1f6c(0x8c),'description':_0x1c1f6c(0xb4),'univerAiLabel':_0x1c1f6c(0xab),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1c1f6c(0xb6),'invalidConfig':_0x1c1f6c(0x9c),'invalidApiKey':_0x1c1f6c(0xac)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1c1f6c(0x91),'connected':_0x1c1f6c(0x99),'failed':_0x1c1f6c(0x8e),'retrying':_0x1c1f6c(0x96)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1c1f6c(0xa4),'networkError':_0x1c1f6c(0x94),'maxRetriesExceeded':_0x1c1f6c(0x9e)}}},locale=locale$1;export{locale as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x209d23,_0x4885a){const _0x3e2c3e=_0x5155,_0x14ae4b=_0x209d23();while(!![]){try{const _0x29d061=-parseInt(_0x3e2c3e(0x1c2))/0x1*(parseInt(_0x3e2c3e(0x290))/0x2)+parseInt(_0x3e2c3e(0x1ca))/0x3*(parseInt(_0x3e2c3e(0x2ec))/0x4)+-parseInt(_0x3e2c3e(0x207))/0x5*(parseInt(_0x3e2c3e(0x195))/0x6)+parseInt(_0x3e2c3e(0x1dd))/0x7*(-parseInt(_0x3e2c3e(0x23c))/0x8)+-parseInt(_0x3e2c3e(0x267))/0x9*(parseInt(_0x3e2c3e(0x2ae))/0xa)+-parseInt(_0x3e2c3e(0x16a))/0xb+-parseInt(_0x3e2c3e(0x297))/0xc*(-parseInt(_0x3e2c3e(0x2e8))/0xd);if(_0x29d061===_0x4885a)break;else _0x14ae4b['push'](_0x14ae4b['shift']());}catch(_0x2c1076){_0x14ae4b['push'](_0x14ae4b['shift']());}}}(_0x3f4d,0xca21d),function(_0x106c0b,_0x950231){const _0x367424=_0x5155;typeof exports=='object'&&typeof module<'u'?_0x950231(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==_0x367424(0x217)&&define['amd']?define([_0x367424(0x26f),_0x367424(0x2e2),_0x367424(0x1da),_0x367424(0x274),_0x367424(0x23b),_0x367424(0x20e),_0x367424(0x1b8),_0x367424(0x238),_0x367424(0x27f)],_0x950231):(_0x106c0b=typeof globalThis<'u'?globalThis:_0x106c0b||self,_0x950231(_0x106c0b['UniverProMcpUi']={},_0x106c0b[_0x367424(0x226)],_0x106c0b[_0x367424(0x1e2)],_0x106c0b[_0x367424(0x2da)],_0x106c0b['UniverUi'],_0x106c0b[_0x367424(0x20e)],_0x106c0b[_0x367424(0x1cd)],_0x106c0b[_0x367424(0x1cd)],_0x106c0b[_0x367424(0x24a)]));}(this,function(_0x4a5d58,_0xe35369,_0x2a5c68,_0x184252,_0x339ac9,_0xce3e33,_0x2f78bc,_0x29ded9,_0x211abe){const _0x56fe33=_0x5155;Object[_0x56fe33(0x26c)](_0x4a5d58,Symbol['toStringTag'],{'value':'Module'});function _0x460bd5({ref:_0x5b56e7,..._0x440dec}){const _0x4c8f8a=_0x56fe33;let {icon:_0xf1cdb,id:_0x25f91e,className:_0x3a156a,extend:_0x37aca5,..._0x255b3c}=_0x440dec,_0x2bee8e=(_0x4c8f8a(0x1fb)+_0x25f91e+'\x20'+(_0x3a156a||''))[_0x4c8f8a(0x2cd)](),_0x37f7b0=(0x0,_0x2f78bc[_0x4c8f8a(0x1c1)])('_'+_0x271cc8());return _0x38e00b(_0xf1cdb,''+_0x25f91e,{'defIds':_0xf1cdb['defIds'],'idSuffix':_0x37f7b0[_0x4c8f8a(0x1e9)]},{'ref':_0x5b56e7,'className':_0x2bee8e,..._0x255b3c},_0x37aca5);}function _0x38e00b(_0x3a52cd,_0x324fab,_0x12b960,_0xead769,_0x5eb599){const _0x40b458=_0x56fe33;return(0x0,_0x2f78bc[_0x40b458(0x206)])(_0x3a52cd['tag'],{'key':_0x324fab,..._0x55b9ef(_0x3a52cd,_0x12b960,_0x5eb599),..._0xead769},(_0x5e6d0c(_0x3a52cd,_0x12b960)[_0x40b458(0x293)]||[])[_0x40b458(0x2c6)]((_0x14286d,_0x40eb76)=>_0x38e00b(_0x14286d,_0x324fab+'-'+_0x3a52cd['tag']+'-'+_0x40eb76,_0x12b960,void 0x0,_0x5eb599)));}function _0x55b9ef(_0xd1f474,_0x42a044,_0x585da1){const _0xdc7acc=_0x56fe33;let _0x123e01={..._0xd1f474[_0xdc7acc(0x260)]};_0x585da1!=null&&_0x585da1[_0xdc7acc(0x244)]&&_0x123e01['fill']===_0xdc7acc(0x244)&&(_0x123e01['fill']=_0x585da1[_0xdc7acc(0x244)]),_0xd1f474[_0xdc7acc(0x1e5)]===_0xdc7acc(0x175)&&_0x123e01['id']&&(_0x123e01['id']+=_0x42a044[_0xdc7acc(0x1c9)]),Object[_0xdc7acc(0x2a4)](_0x123e01)[_0xdc7acc(0x285)](([_0x43bb4b,_0x2c8d61])=>{const _0x7de1b3=_0xdc7acc;_0x43bb4b===_0x7de1b3(0x175)&&typeof _0x2c8d61=='string'&&(_0x123e01[_0x43bb4b]=_0x2c8d61[_0x7de1b3(0x2dd)](/url\(#(.*)\)/,_0x7de1b3(0x216)+_0x42a044[_0x7de1b3(0x1c9)]+')'));});let {defIds:_0xf8bdb4}=_0x42a044;return!_0xf8bdb4||_0xf8bdb4[_0xdc7acc(0x1d5)]===0x0?_0x123e01:(_0xd1f474['tag']===_0xdc7acc(0x26b)&&_0x123e01[_0xdc7acc(0x20c)]&&(_0x123e01[_0xdc7acc(0x20c)]+=_0x42a044['idSuffix']),Object['entries'](_0x123e01)['forEach'](([_0x349abb,_0x213ae4])=>{const _0x28e1ed=_0xdc7acc;typeof _0x213ae4==_0x28e1ed(0x2e0)&&(_0x123e01[_0x349abb]=_0x213ae4[_0x28e1ed(0x2dd)](/url\(#(.*)\)/,_0x28e1ed(0x216)+_0x42a044[_0x28e1ed(0x1c9)]+')'));}),_0x123e01);}function _0x5e6d0c(_0x5926f0,_0x351b60){const _0x3c668e=_0x56fe33;var _0x3ec1ba;let {defIds:_0x2fb88a}=_0x351b60;return!_0x2fb88a||_0x2fb88a[_0x3c668e(0x1d5)]===0x0?_0x5926f0:_0x5926f0[_0x3c668e(0x1e5)]===_0x3c668e(0x2a2)&&(_0x3ec1ba=_0x5926f0['children'])!=null&&_0x3ec1ba['length']?{..._0x5926f0,'children':_0x5926f0[_0x3c668e(0x293)][_0x3c668e(0x2c6)](_0x9ef9a3=>typeof _0x9ef9a3[_0x3c668e(0x260)]['id']=='string'&&_0x2fb88a&&_0x2fb88a[_0x3c668e(0x2d0)](_0x9ef9a3['attrs']['id'])?{..._0x9ef9a3,'attrs':{..._0x9ef9a3['attrs'],'id':_0x9ef9a3[_0x3c668e(0x260)]['id']+_0x351b60[_0x3c668e(0x1c9)]}}:_0x9ef9a3)}:_0x5926f0;}function _0x271cc8(){const _0x2c0c2d=_0x56fe33;return Math[_0x2c0c2d(0x192)]()[_0x2c0c2d(0x219)](0x24)[_0x2c0c2d(0x161)](0x2,0x8);}_0x460bd5[_0x56fe33(0x1cf)]=_0x56fe33(0x1e6);let _0x16d315={'tag':_0x56fe33(0x1a5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x56fe33(0x1aa),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x56fe33(0x2a6)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x181),'d':_0x56fe33(0x247),'fillRule':'evenodd','clipRule':_0x56fe33(0x22c)}}]},_0x17f2a5=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x47385b,_0x399ef4){const _0x4f0987=_0x56fe33;return(0x0,_0x2f78bc[_0x4f0987(0x206)])(_0x460bd5,Object[_0x4f0987(0x27a)]({},_0x47385b,{'id':_0x4f0987(0x2ee),'ref':_0x399ef4,'icon':_0x16d315}));});_0x17f2a5['displayName']='CheckMarkIcon';let _0x5f3929={'tag':'svg','attrs':{'xmlns':_0x56fe33(0x22f),'fill':_0x56fe33(0x1aa),'viewBox':_0x56fe33(0x2d7),'width':'1em','height':_0x56fe33(0x2a6)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x181),'d':_0x56fe33(0x2b1)}}]},_0x49e86e=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x5ac21b,_0x3f7d46){const _0x572680=_0x56fe33;return(0x0,_0x2f78bc[_0x572680(0x206)])(_0x460bd5,Object[_0x572680(0x27a)]({},_0x5ac21b,{'id':_0x572680(0x251),'ref':_0x3f7d46,'icon':_0x5f3929}));});_0x49e86e[_0x56fe33(0x1cf)]=_0x56fe33(0x190);let _0x26adf0={'tag':'svg','attrs':{'xmlns':_0x56fe33(0x22f),'fill':'none','viewBox':_0x56fe33(0x2d7),'width':_0x56fe33(0x2a6),'height':_0x56fe33(0x2a6)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':'currentColor','d':_0x56fe33(0x1b2)}},{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x181),'d':_0x56fe33(0x299)}},{'tag':'path','attrs':{'fill':_0x56fe33(0x181),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x56fe33(0x22c)}}]},_0x2b658b=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x33c4c3,_0x2b75ef){const _0x42b620=_0x56fe33;return(0x0,_0x2f78bc[_0x42b620(0x206)])(_0x460bd5,Object[_0x42b620(0x27a)]({},_0x33c4c3,{'id':_0x42b620(0x249),'ref':_0x2b75ef,'icon':_0x26adf0}));});_0x2b658b[_0x56fe33(0x1cf)]='HelpIcon';let _0x25f33f={'tag':_0x56fe33(0x1a5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x56fe33(0x1aa),'viewBox':_0x56fe33(0x2d7),'width':_0x56fe33(0x2a6),'height':_0x56fe33(0x2a6)},'children':[{'tag':'g','attrs':{'clipPath':_0x56fe33(0x2c1)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'stroke':_0x56fe33(0x181),'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':_0x56fe33(0x282),'strokeLinejoin':_0x56fe33(0x282),'strokeWidth':1.2}}]},{'tag':_0x56fe33(0x2a2),'attrs':{},'children':[{'tag':_0x56fe33(0x271),'attrs':{'id':_0x56fe33(0x1ec)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x1de),'d':_0x56fe33(0x248)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x44d819=(0x0,_0x2f78bc[_0x56fe33(0x2e1)])(function(_0x4eb3d0,_0x47b11f){const _0x4d94d8=_0x56fe33;return(0x0,_0x2f78bc[_0x4d94d8(0x206)])(_0x460bd5,Object[_0x4d94d8(0x27a)]({},_0x4eb3d0,{'id':_0x4d94d8(0x18f),'ref':_0x47b11f,'icon':_0x25f33f}));});_0x44d819[_0x56fe33(0x1cf)]='OffLineIcon';let _0xda347={'tag':_0x56fe33(0x1a5),'attrs':{'xmlns':_0x56fe33(0x22f),'fill':_0x56fe33(0x1aa),'viewBox':'0\x200\x2017\x2016','width':_0x56fe33(0x2a6),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x56fe33(0x2b5)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'stroke':_0x56fe33(0x181),'d':_0x56fe33(0x253),'strokeLinecap':_0x56fe33(0x282),'strokeLinejoin':_0x56fe33(0x282),'strokeWidth':1.2}}]},{'tag':_0x56fe33(0x2a2),'attrs':{},'children':[{'tag':_0x56fe33(0x271),'attrs':{'id':_0x56fe33(0x1a2)},'children':[{'tag':_0x56fe33(0x1b4),'attrs':{'fill':_0x56fe33(0x1de),'d':_0x56fe33(0x248),'transform':_0x56fe33(0x1ae)}}]}]}],'defIds':[_0x56fe33(0x1a2)]},_0x21a717=(0x0,_0x2f78bc['forwardRef'])(function(_0x146bec,_0x5e2fa9){const _0x3cfce3=_0x56fe33;return(0x0,_0x2f78bc[_0x3cfce3(0x206)])(_0x460bd5,Object[_0x3cfce3(0x27a)]({},_0x146bec,{'id':_0x3cfce3(0x1dc),'ref':_0x5e2fa9,'icon':_0xda347}));});_0x21a717[_0x56fe33(0x1cf)]=_0x56fe33(0x163);function _0x3b5837(_0x2e5135){const _0x4ba817=_0x56fe33;var _0x363467,_0x1844be;let {mcpCoreConfig:_0x1b135f,onSave:_0x122991,loading:_0x3409c3=!0x1,config:_0x3923e3,connectionStatus$:_0x30a26c,connectionError$:_0x24d4ec,currentApiKey$:_0x41a977,currentSessionId$:_0x440713}=_0x2e5135,_0x1b836e=(0x0,_0x339ac9[_0x4ba817(0x2ca)])(_0xe35369[_0x4ba817(0x1af)]),_0x116362=(0x0,_0x339ac9[_0x4ba817(0x1f8)])(_0x30a26c,_0x2a5c68[_0x4ba817(0x19f)]['DISCONNECTED']),_0x14c76f=(0x0,_0x339ac9[_0x4ba817(0x1f8)])(_0x24d4ec,_0x2a5c68[_0x4ba817(0x220)]['NONE']),_0x1f40a6=(0x0,_0x339ac9[_0x4ba817(0x1f8)])(_0x440713,''),[_0x276d6e,_0x4df44b]=(0x0,_0x2f78bc[_0x4ba817(0x29e)])((0x0,_0x339ac9['useObservable'])(_0x41a977,'')||''),_0x499041=_0x3923e3['showDeveloperTools']&&_0x1b135f[_0x4ba817(0x2e6)]&&(_0x1b135f['mcpServerUrl'][_0x4ba817(0x2d0)](_0x4ba817(0x2b0))||_0x1b135f[_0x4ba817(0x2e6)]['includes'](_0x4ba817(0x227))),_0x250fb3=(_0x363467=_0x1b135f[_0x4ba817(0x2e6)])==null?void 0x0:_0x363467[_0x4ba817(0x2d0)]('univer.plus'),_0x3c9346=(_0x1844be=_0x1b135f[_0x4ba817(0x2e6)])==null?void 0x0:_0x1844be[_0x4ba817(0x2d0)]('univer.ai'),_0x2ec51b=_0x250fb3?'https://console.univer.plus':'https://console.univer.ai',_0x3ceae5=_0x3923e3[_0x4ba817(0x25d)]&&(_0x250fb3||_0x3c9346),[_0x2395fd,_0x4be11d]=(0x0,_0x2f78bc[_0x4ba817(0x29e)])(!_0x276d6e[_0x4ba817(0x2cd)]()),_0x5b9525=(_0x3b704d,_0x2bda65)=>{const _0x1cc706=_0x4ba817;if(_0x2bda65===_0x2a5c68[_0x1cc706(0x220)]['UNAUTHORIZED'])return _0x1cc706(0x187);switch(_0x3b704d){case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x2e9)]:return _0x1cc706(0x1d9);case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x268)]:case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x201)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x2a5c68[_0x1cc706(0x19f)][_0x1cc706(0x1cc)]:return _0x1cc706(0x187);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2ca76c=(_0x1f04ed,_0x5ad8e3)=>{const _0x5bd42b=_0x4ba817;if(_0x5ad8e3===_0x2a5c68[_0x5bd42b(0x220)][_0x5bd42b(0x178)])return _0x5bd42b(0x179);switch(_0x1f04ed){case _0x2a5c68['MCPConnectionStatus'][_0x5bd42b(0x2e9)]:return _0x5bd42b(0x1e3);case _0x2a5c68[_0x5bd42b(0x19f)][_0x5bd42b(0x268)]:case _0x2a5c68['MCPConnectionStatus'][_0x5bd42b(0x201)]:return _0x5bd42b(0x291);case _0x2a5c68[_0x5bd42b(0x19f)][_0x5bd42b(0x1cc)]:return _0x5bd42b(0x179);default:return'univer-bg-gray-500';}},_0x223f64=_0x4de99b=>{const _0x54357f=_0x4ba817;switch(_0x4de99b){case _0x2a5c68[_0x54357f(0x19f)][_0x54357f(0x2e9)]:return _0x1b836e['t'](_0x54357f(0x23d));case _0x2a5c68[_0x54357f(0x19f)]['CONNECTING']:return _0x1b836e['t'](_0x54357f(0x1f5));case _0x2a5c68[_0x54357f(0x19f)][_0x54357f(0x1cc)]:return _0x1b836e['t'](_0x54357f(0x18a));case _0x2a5c68[_0x54357f(0x19f)][_0x54357f(0x201)]:return _0x1b836e['t'](_0x54357f(0x21f));default:return _0x1b836e['t'](_0x54357f(0x1e4));}},_0x52c3af=_0x29f296=>{const _0xaf058c=_0x4ba817;switch(_0x29f296){case _0x2a5c68['MCPConnectionError']['UNAUTHORIZED']:return _0x1b836e['t']('mcpConfig.connectionError.unauthorized');case _0x2a5c68['MCPConnectionError'][_0xaf058c(0x1d3)]:return _0x1b836e['t'](_0xaf058c(0x1b0));case _0x2a5c68[_0xaf058c(0x220)][_0xaf058c(0x1c6)]:return _0x1b836e['t'](_0xaf058c(0x28c));case _0x2a5c68[_0xaf058c(0x220)][_0xaf058c(0x1bd)]:return _0x1b836e['t'](_0xaf058c(0x246));default:return'';}},_0x4287d0=(0x0,_0x2f78bc[_0x4ba817(0x230)])(()=>{const _0x1fd794=_0x4ba817;_0x122991({..._0x1b135f,'apiKey':_0x276d6e[_0x1fd794(0x2cd)](),'enableAuth':!0x0});},[_0x1b135f,_0x276d6e,!0x0,_0x122991]),_0x5151f2=_0x276d6e['trim']()[_0x4ba817(0x1d5)]>0x0;return(0x0,_0x29ded9['jsxs'])('div',{'className':_0x4ba817(0x19e),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2bd),'children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1ee),'children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1f3),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':'univer-text-white','children':'⚙'})}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'children':(0x0,_0x29ded9['jsx'])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1b836e['t']('mcpConfig.description')})})]})}),(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':(0x0,_0x184252[_0x4ba817(0x1fa)])(_0x4ba817(0x1b9),_0x5b9525(_0x116362,_0x14c76f)),'children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':(0x0,_0x184252[_0x4ba817(0x1fa)])(_0x4ba817(0x205),_0x2ca76c(_0x116362,_0x14c76f))}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':'univer-text-sm\x20univer-font-medium','children':_0x223f64(_0x116362)})]})}),_0x14c76f!==_0x2a5c68[_0x4ba817(0x220)][_0x4ba817(0x2d4)]&&(_0x116362===_0x2a5c68[_0x4ba817(0x19f)]['FAILED']||_0x14c76f===_0x2a5c68[_0x4ba817(0x220)][_0x4ba817(0x178)])&&(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x172),'children':(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2d3),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':_0x4ba817(0x2e4),'children':_0x52c3af(_0x14c76f)})]})})]}),(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x165),'children':[(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x162),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'children':'🔑'}),'\x20',_0x1b836e['t']('mcpConfig.apiKey'),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('span',{'className':'univer-text-red-500','children':'*'}),_0x499041&&(0x0,_0x29ded9[_0x4ba817(0x1d2)])('a',{'className':_0x4ba817(0x22d),'title':_0x1b836e['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x4be11d(!0x0),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x2b658b,{})})]}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x184252['Input'],{'type':_0x4ba817(0x284),'placeholder':_0x1b836e['t'](_0x4ba817(0x239)),'value':_0x276d6e,'disabled':_0x3409c3,'autoComplete':_0x4ba817(0x1a3),'onChange':_0x4df44b}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1b836e['t'](_0x4ba817(0x189))})]}),_0x499041&&_0x2395fd&&(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':_0x4ba817(0x1bb),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('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':_0x4ba817(0x2a7),'onClick':()=>_0x4be11d(!0x1),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x49e86e,{'className':_0x4ba817(0x1b7)})}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x176),'children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x196),'children':'🚀'})}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x168),'children':[(0x0,_0x29ded9['jsx'])('h4',{'className':_0x4ba817(0x1e0),'children':_0x1b836e['t'](_0x4ba817(0x1f9))}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':_0x4ba817(0x2d9),'children':_0x1b836e['t'](_0x4ba817(0x209))}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x3ceae5&&(0x0,_0x29ded9[_0x4ba817(0x236)])('a',{'className':_0x4ba817(0x264),'href':_0x2ec51b,'target':_0x4ba817(0x256),'rel':'noopener\x20noreferrer','children':[(0x0,_0x29ded9['jsx'])('span',{'children':'🤖'}),_0x1b836e['t'](_0x4ba817(0x2b4)),(0x0,_0x29ded9['jsx'])(_0x4ba817(0x2b8),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x199),'children':['✨','\x20',_0x1b836e['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3923e3[_0x4ba817(0x25d)]&&(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[(0x0,_0x29ded9['jsxs'])('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'children':'🔗'}),'\x20',_0x1b836e['t']('mcpConfig.connectionInfo')]}),(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':_0x4ba817(0x2b3),'children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x28b),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('p',{'className':_0x4ba817(0x202),'children':_0x1b836e['t'](_0x4ba817(0x275))}),(0x0,_0x29ded9['jsxs'])('div',{'className':_0x4ba817(0x2aa),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x208),'children':_0x1b836e['t'](_0x4ba817(0x1bf))}),(0x0,_0x29ded9[_0x4ba817(0x236)])('div',{'className':_0x4ba817(0x2c4),'children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x164),'children':'1'}),_0x1b836e['t']('mcpConfig.configStep1')]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x164),'children':'2'}),_0x1b836e['t'](_0x4ba817(0x177))]}),(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('span',{'className':_0x4ba817(0x164),'children':'3'}),_0x1b836e['t'](_0x4ba817(0x174))]})]})]})]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2aa),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x208),'children':_0x4ba817(0x203)}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2bc),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x4ba817(0x16b)]({'mcpServers':{'univer':{'url':_0x4ba817(0x21e)+(_0x1f40a6||'<SESSION_ID>'),'type':_0x4ba817(0x2e5),'headers':{'Authorization':_0x4ba817(0x2de)+(_0x276d6e||_0x4ba817(0x2dc))}}}},null,0x2)})})]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':'univer-space-y-3','children':[(0x0,_0x29ded9['jsx'])(_0x4ba817(0x1c3),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1b836e['t']('mcpConfig.configParameters')}),(0x0,_0x29ded9['jsxs'])(_0x4ba817(0x1c3),{'className':'univer-space-y-2','children':[(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1ff),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2cb)}),(0x0,_0x29ded9['jsxs'])('div',{'className':_0x4ba817(0x2a0),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2d5),'children':_0x4ba817(0x29a)}),(0x0,_0x29ded9['jsx'])('div',{'className':_0x4ba817(0x266),'children':_0x1b836e['t'](_0x4ba817(0x1a6))})]})]}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x1ff),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2cb)}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2a0),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x2d5),'children':_0x4ba817(0x1f0)}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x266),'children':_0x1b836e['t'](_0x4ba817(0x1a4))})]})]})]})]})]})]}),(0x0,_0x29ded9['jsx'])(_0x184252[_0x4ba817(0x1d4)],{'onClick':_0x4287d0,'disabled':!_0x5151f2||_0x3409c3,'className':_0x4ba817(0x24d),'children':_0x3409c3?(0x0,_0x29ded9[_0x4ba817(0x236)])('span',{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x2b8),{'children':'⟲'}),_0x1b836e['t'](_0x4ba817(0x298))]}):(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x2b8),{'className':_0x4ba817(0x204),'children':[(0x0,_0x29ded9['jsx'])(_0x17f2a5,{}),_0x1b836e['t']('mcpConfig.save')]})}),(0x0,_0x29ded9[_0x4ba817(0x1d2)])('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x278),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])('span',{'className':_0x4ba817(0x258),'children':'💡'}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x296),'children':[(0x0,_0x29ded9[_0x4ba817(0x1d2)])(_0x4ba817(0x1c3),{'className':_0x4ba817(0x24c),'children':_0x4ba817(0x242)}),(0x0,_0x29ded9[_0x4ba817(0x236)])(_0x4ba817(0x1c3),{'children':['•',_0x1b836e['t'](_0x4ba817(0x262))]}),(0x0,_0x29ded9['jsxs'])('div',{'children':['•',_0x1b836e['t'](_0x4ba817(0x2f1))]})]})]})})]})})]});}let _0x258604=_0x56fe33(0x292);Symbol(_0x258604);let _0x10ffbb={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x9b93b4(_0x1f8cce){'@babel/helpers - typeof';const _0x37971a=_0x56fe33;return _0x9b93b4=typeof Symbol==_0x37971a(0x217)&&typeof Symbol[_0x37971a(0x215)]==_0x37971a(0x22b)?function(_0x28c9bd){return typeof _0x28c9bd;}:function(_0x8136c1){const _0x1ac21a=_0x37971a;return _0x8136c1&&typeof Symbol=='function'&&_0x8136c1[_0x1ac21a(0x17f)]===Symbol&&_0x8136c1!==Symbol[_0x1ac21a(0x263)]?_0x1ac21a(0x22b):typeof _0x8136c1;},_0x9b93b4(_0x1f8cce);}function _0x35b50f(_0x41c522,_0x3bd183){const _0xd55f62=_0x56fe33;if(_0x9b93b4(_0x41c522)!='object'||!_0x41c522)return _0x41c522;var _0x88d275=_0x41c522[Symbol[_0xd55f62(0x29d)]];if(_0x88d275!==void 0x0){var _0x4328c1=_0x88d275[_0xd55f62(0x1c0)](_0x41c522,_0x3bd183||_0xd55f62(0x182));if(_0x9b93b4(_0x4328c1)!=_0xd55f62(0x184))return _0x4328c1;throw TypeError(_0xd55f62(0x18b));}return(_0x3bd183===_0xd55f62(0x2e0)?String:Number)(_0x41c522);}function _0x21f966(_0x22f080){const _0x26c2c8=_0x56fe33;var _0x2254f3=_0x35b50f(_0x22f080,_0x26c2c8(0x2e0));return _0x9b93b4(_0x2254f3)==_0x26c2c8(0x22b)?_0x2254f3:_0x2254f3+'';}function _0x364e42(_0x24d4fe,_0x352dbe,_0x311aaa){const _0x5022bb=_0x56fe33;return(_0x352dbe=_0x21f966(_0x352dbe))in _0x24d4fe?Object[_0x5022bb(0x26c)](_0x24d4fe,_0x352dbe,{'value':_0x311aaa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24d4fe[_0x352dbe]=_0x311aaa,_0x24d4fe;}function _0x51f7d0(_0xa64f04,_0x1d0008){return function(_0x26554a,_0x155c44){_0x1d0008(_0x26554a,_0x155c44,_0xa64f04);};}function _0x3da21a(_0x270a2c,_0xff4099,_0x167dbb,_0x430975){const _0x6aca85=_0x56fe33;var _0x3b1f43=arguments[_0x6aca85(0x1d5)],_0x403dae=_0x3b1f43<0x3?_0xff4099:_0x430975===null?_0x430975=Object[_0x6aca85(0x1b5)](_0xff4099,_0x167dbb):_0x430975,_0x13b4df;if(typeof Reflect==_0x6aca85(0x184)&&typeof Reflect[_0x6aca85(0x223)]=='function')_0x403dae=Reflect[_0x6aca85(0x223)](_0x270a2c,_0xff4099,_0x167dbb,_0x430975);else{for(var _0x831888=_0x270a2c['length']-0x1;_0x831888>=0x0;_0x831888--)(_0x13b4df=_0x270a2c[_0x831888])&&(_0x403dae=(_0x3b1f43<0x3?_0x13b4df(_0x403dae):_0x3b1f43>0x3?_0x13b4df(_0xff4099,_0x167dbb,_0x403dae):_0x13b4df(_0xff4099,_0x167dbb))||_0x403dae);}return _0x3b1f43>0x3&&_0x403dae&&Object[_0x6aca85(0x26c)](_0xff4099,_0x167dbb,_0x403dae),_0x403dae;}let _0x495185=_0x56fe33(0x21c),_0x2e2a49=_0x56fe33(0x2ab),_0x456519=class extends _0xe35369[_0x56fe33(0x17a)]{constructor(_0x7cc139,_0x560502,_0x2f10ed,_0x35f79f,_0x32420e,_0x9cf94e,_0x8c1a0c,_0x106540,_0x3fe0d8,_0x2e2c29){const _0x136eba=_0x56fe33;super(),this[_0x136eba(0x200)]=_0x7cc139,this[_0x136eba(0x1eb)]=_0x560502,this[_0x136eba(0x2f0)]=_0x2f10ed,this[_0x136eba(0x19d)]=_0x35f79f,this['_dialogService']=_0x32420e,this['_messageService']=_0x9cf94e,this[_0x136eba(0x18c)]=_0x8c1a0c,this[_0x136eba(0x211)]=_0x106540,this['_logService']=_0x3fe0d8,this['_mcpConnectionController']=_0x2e2c29,_0x364e42(this,_0x136eba(0x257),new _0xce3e33[(_0x136eba(0x2a8))](!0x1)),_0x364e42(this,_0x136eba(0x245),new _0xce3e33[(_0x136eba(0x2a8))]({})),_0x364e42(this,_0x136eba(0x2e3),new _0xce3e33[(_0x136eba(0x2a8))]({})),_0x364e42(this,_0x136eba(0x16e),new _0xce3e33[(_0x136eba(0x2a8))]('')),_0x364e42(this,_0x136eba(0x2f2),async _0x3f099a=>{const _0x5a27c5=_0x136eba;this['_loading$'][_0x5a27c5(0x214)](!0x0);try{var _0x4a0d15,_0x55f06d;let _0x553188=await this[_0x5a27c5(0x283)](_0x3f099a);if(!_0x553188[_0x5a27c5(0x20b)]){this['_messageService'][_0x5a27c5(0x289)]({'type':_0x184252[_0x5a27c5(0x171)][_0x5a27c5(0x2ac)],'content':_0x553188[_0x5a27c5(0x225)]||this[_0x5a27c5(0x211)]['t'](_0x5a27c5(0x2d2))});return;}_0x3f099a[_0x5a27c5(0x2d8)]?await this[_0x5a27c5(0x19d)][_0x5a27c5(0x17d)](_0x495185,_0x3f099a[_0x5a27c5(0x2d8)]['trim']()):await this[_0x5a27c5(0x19d)][_0x5a27c5(0x2c7)](_0x495185),this[_0x5a27c5(0x16e)][_0x5a27c5(0x214)](((_0x4a0d15=_0x3f099a['apiKey'])==null?void 0x0:_0x4a0d15['trim']())||''),this['_mcpConnectionController'][_0x5a27c5(0x2c8)]({'Authorization':'Bearer\x20'+((_0x55f06d=_0x3f099a['apiKey'])==null?void 0x0:_0x55f06d[_0x5a27c5(0x2cd)]())}),this[_0x5a27c5(0x28e)][_0x5a27c5(0x289)]({'type':_0x184252['MessageType'][_0x5a27c5(0x1be)],'content':this[_0x5a27c5(0x211)]['t'](_0x5a27c5(0x1bc))}),setTimeout(()=>{const _0x2b78ce=_0x5a27c5;this[_0x2b78ce(0x2b6)][_0x2b78ce(0x27b)](_0x2e2a49);},0x320);}catch(_0x1836dc){this[_0x5a27c5(0x18e)][_0x5a27c5(0x1c5)](_0x5a27c5(0x255),_0x1836dc),this[_0x5a27c5(0x28e)]['show']({'type':_0x184252[_0x5a27c5(0x171)]['Error'],'content':this[_0x5a27c5(0x211)]['t'](_0x5a27c5(0x229))});}finally{this['_loading$'][_0x5a27c5(0x214)](!0x1);}}),this[_0x136eba(0x1f2)](),this[_0x136eba(0x1d6)](),this[_0x136eba(0x29c)]();}[_0x56fe33(0x2ef)](){const _0x4da7a5=_0x56fe33;let _0x4ad4df=this[_0x4da7a5(0x2f0)]['getConfig'](_0x258604);_0x4ad4df!=null&&_0x4ad4df[_0x4da7a5(0x25d)]&&this[_0x4da7a5(0x2b6)][_0x4da7a5(0x16c)]({'id':_0x2e2a49,'title':{'title':this[_0x4da7a5(0x211)]['t'](_0x4da7a5(0x1ba))},'children':{'label':_0x4da7a5(0x1c7)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4b9821=_0x4da7a5;this[_0x4b9821(0x2b6)][_0x4b9821(0x27b)](_0x2e2a49);}});}[_0x56fe33(0x2bb)](){const _0x48aca9=_0x56fe33;return this[_0x48aca9(0x245)]['value'];}[_0x56fe33(0x29c)](){const _0x10e0ec=_0x56fe33;this[_0x10e0ec(0x224)](this[_0x10e0ec(0x18c)][_0x10e0ec(0x20a)](_0x10e0ec(0x1c7),this[_0x10e0ec(0x259)]()));}['_createConfigPanelComponent'](){const _0x4f260f=_0x56fe33;return(0x0,_0x339ac9[_0x4f260f(0x2bf)])(()=>{const _0x38287f=_0x4f260f;var _0x472e32,_0x38543c,_0x5e3481;return(0x0,_0x29ded9[_0x38287f(0x1d2)])(_0x3b5837,{'config':this[_0x38287f(0x2e3)][_0x38287f(0x221)],'mcpCoreConfig':this[_0x38287f(0x245)][_0x38287f(0x221)],'currentApiKey$':this[_0x38287f(0x16e)],'onSave':this[_0x38287f(0x2f2)],'loading':this[_0x38287f(0x257)][_0x38287f(0x221)],'connectionStatus$':(_0x472e32=this[_0x38287f(0x16d)])==null?void 0x0:_0x472e32[_0x38287f(0x1b1)],'connectionError$':(_0x38543c=this[_0x38287f(0x16d)])==null?void 0x0:_0x38543c['connectionError$'],'currentSessionId$':(_0x5e3481=this[_0x38287f(0x16d)])==null?void 0x0:_0x5e3481[_0x38287f(0x1c4)]});},this[_0x4f260f(0x200)]);}[_0x56fe33(0x1f2)](){const _0x37f826=_0x56fe33;this[_0x37f826(0x224)](this[_0x37f826(0x2f0)][_0x37f826(0x2d1)](_0x2a5c68[_0x37f826(0x29f)])[_0x37f826(0x26e)](_0x3e13f1=>{this['_mcpCoreConfig$']['next'](_0x3e13f1||{});}));let _0x48f883=this[_0x37f826(0x2f0)][_0x37f826(0x2f3)](_0x2a5c68[_0x37f826(0x29f)]);this[_0x37f826(0x245)][_0x37f826(0x214)](_0x48f883||{}),this[_0x37f826(0x224)](this[_0x37f826(0x2f0)][_0x37f826(0x2d1)](_0x258604)['subscribe'](_0x2d8c68=>{const _0x21b5fd=_0x37f826;this[_0x21b5fd(0x2e3)][_0x21b5fd(0x214)](_0x2d8c68||{});}));let _0x351db0=this['_configService']['getConfig'](_0x258604);this[_0x37f826(0x2e3)][_0x37f826(0x214)](_0x351db0||{});}async['_loadStoredApiKey'](){const _0x1718e1=_0x56fe33;let _0x88e29=this[_0x1718e1(0x2f0)][_0x1718e1(0x2f3)](_0x258604);if(!(_0x88e29!=null&&_0x88e29['showDeveloperTools']))return;let _0x2a5a8a=await this[_0x1718e1(0x19d)][_0x1718e1(0x2d6)](_0x495185);_0x2a5a8a&&(this[_0x1718e1(0x16d)][_0x1718e1(0x2c8)]({'Authorization':_0x1718e1(0x2de)+_0x2a5a8a}),this['_apiKey$'][_0x1718e1(0x214)](_0x2a5a8a));}async['_validateConfig'](_0x2b380e){const _0x479a5e=_0x56fe33;if(!_0x2b380e['apiKey']||_0x2b380e['apiKey'][_0x479a5e(0x2cd)]()[_0x479a5e(0x1d5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x479a5e(0x211)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2b380e[_0x479a5e(0x2d8)][_0x479a5e(0x2cd)]()[_0x479a5e(0x1d5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x479a5e(0x211)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x397ef5=await this['_injector'][_0x479a5e(0x1cb)](_0x2a5c68[_0x479a5e(0x1e7)])['validateApiKey'](_0x2b380e[_0x479a5e(0x2d8)][_0x479a5e(0x2cd)]());return _0x397ef5['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x397ef5[_0x479a5e(0x1c5)]||this[_0x479a5e(0x211)]['t'](_0x479a5e(0x2ba))};}catch(_0x521d81){return console[_0x479a5e(0x1a0)](_0x479a5e(0x2a1),_0x521d81),{'isValid':!0x0};}}};_0x456519=_0x3da21a([_0x51f7d0(0x0,(0x0,_0xe35369['Inject'])(_0xe35369[_0x56fe33(0x281)])),_0x51f7d0(0x1,_0x339ac9[_0x56fe33(0x193)]),_0x51f7d0(0x2,_0xe35369[_0x56fe33(0x1e8)]),_0x51f7d0(0x3,_0xe35369['ILocalStorageService']),_0x51f7d0(0x4,_0x339ac9[_0x56fe33(0x24e)]),_0x51f7d0(0x5,_0x339ac9[_0x56fe33(0x173)]),_0x51f7d0(0x6,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0x339ac9[_0x56fe33(0x26a)])),_0x51f7d0(0x7,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0xe35369[_0x56fe33(0x1af)])),_0x51f7d0(0x8,_0xe35369[_0x56fe33(0x279)]),_0x51f7d0(0x9,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0x2a5c68['MCPConnectionController']))],_0x456519);let _0x13e2cd={'id':_0x56fe33(0x2b9),'type':_0xe35369[_0x56fe33(0x20f)][_0x56fe33(0x2a3)],'handler':async(_0x1117f2,_0x2e2f05)=>(_0x1117f2['get'](_0x456519)[_0x56fe33(0x2ef)](),!0x0)};function _0x11c571(_0x17da2a,_0x13f6c3){const _0x3d7aca=_0x56fe33;switch(_0x17da2a){case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x252)]:return _0x3d7aca(0x254);case _0x2a5c68['MCPConnectionStatus'][_0x3d7aca(0x268)]:return _0x3d7aca(0x27c);case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x2e9)]:return _0x3d7aca(0x2ad);case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x1cc)]:switch(_0x13f6c3){case _0x2a5c68['MCPConnectionError']['UNAUTHORIZED']:return _0x3d7aca(0x21a);case _0x2a5c68[_0x3d7aca(0x220)][_0x3d7aca(0x1d3)]:return'mcpStatus.sessionOccupied';case _0x2a5c68[_0x3d7aca(0x220)]['NETWORK_ERROR']:return _0x3d7aca(0x2eb);case _0x2a5c68[_0x3d7aca(0x220)][_0x3d7aca(0x1bd)]:return'mcpStatus.maxRetriesExceeded';default:return _0x3d7aca(0x2f4);}case _0x2a5c68[_0x3d7aca(0x19f)][_0x3d7aca(0x201)]:return _0x3d7aca(0x218);default:return'mcpStatus.unknown';}}function _0x2ffd72(_0x3999bf,_0x38eed0,_0x416a8f,_0xa263c2=!0x0){const _0x3ba5f2=_0x56fe33;let _0x194da6=_0x11c571(_0x3999bf,_0x38eed0),_0xb24588=_0x416a8f['t'](_0x194da6);return _0xa263c2?_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)]['DISCONNECTED']&&_0x38eed0===_0x2a5c68[_0x3ba5f2(0x220)][_0x3ba5f2(0x178)]?_0xb24588+_0x3ba5f2(0x23f)+_0x416a8f['t'](_0x3ba5f2(0x295)):_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)][_0x3ba5f2(0x2e9)]?''+_0xb24588:_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)][_0x3ba5f2(0x252)]||_0x3999bf===_0x2a5c68[_0x3ba5f2(0x19f)][_0x3ba5f2(0x1cc)]?_0xb24588+_0x3ba5f2(0x23f)+_0x416a8f['t'](_0x3ba5f2(0x2a9)):_0xb24588:_0xb24588;}function _0x3583eb(_0x51abd3){const _0x193526=_0x56fe33;switch(_0x51abd3){case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x2e9)]:return _0x193526(0x286);case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x268)]:case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x201)]:return'univer-text-yellow-500';case _0x2a5c68[_0x193526(0x19f)][_0x193526(0x1cc)]:case _0x2a5c68[_0x193526(0x19f)]['DISCONNECTED']:return _0x193526(0x1db);default:return _0x193526(0x1df);}}function _0x11f78f(_0x10be00){const _0x103791=_0x56fe33;let {status$:_0x5cc5b9,error$:_0x5a15dc,onConfigure:_0x2b6950,showClickable:_0x4fe9c6=!0x0}=_0x10be00,_0x4441ff=(0x0,_0x339ac9[_0x103791(0x1f8)])(_0x5cc5b9,_0x2a5c68['MCPConnectionStatus']['DISCONNECTED']),_0x383160=(0x0,_0x339ac9[_0x103791(0x1f8)])(_0x5a15dc,_0x2a5c68[_0x103791(0x220)]['NONE']),_0x74e565=(0x0,_0x339ac9[_0x103791(0x2ca)])(_0xe35369[_0x103791(0x1af)]),_0x5234eb=_0x4441ff===_0x2a5c68[_0x103791(0x19f)][_0x103791(0x2e9)];_0x4441ff===_0x2a5c68[_0x103791(0x19f)]['CONNECTING']||_0x2a5c68[_0x103791(0x19f)][_0x103791(0x201)];let _0x516625=_0x74e565['t'](_0x11c571(_0x4441ff,_0x383160)),_0x35d84f=_0x2ffd72(_0x4441ff,_0x383160,_0x74e565,_0x4fe9c6),_0x2b9ef2=_0x3583eb(_0x4441ff),_0x41090d=_0x5234eb?(0x0,_0x29ded9[_0x103791(0x1d2)])(_0x21a717,{}):(0x0,_0x29ded9[_0x103791(0x1d2)])(_0x44d819,{}),_0xe31384=(0x0,_0x2f78bc[_0x103791(0x230)])(()=>{_0x4fe9c6&&_0x2b6950&&_0x2b6950();},[_0x4fe9c6,_0x2b6950]);function _0x475631(){const _0x156899=_0x103791;return(0x0,_0x29ded9['jsxs'])(_0x156899(0x1c3),{'className':(0x0,_0x184252[_0x156899(0x1fa)])(_0x156899(0x28a),_0x4fe9c6&&_0x2b6950&&'\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':_0x156899(0x2a7),'onClick':_0x4fe9c6&&_0x2b6950?_0xe31384:void 0x0,'children':[(0x0,_0x29ded9[_0x156899(0x1d2)])(_0x156899(0x1c3),{'className':(0x0,_0x184252[_0x156899(0x1fa)])(_0x156899(0x19c),_0x2b9ef2),'children':_0x41090d}),(0x0,_0x29ded9[_0x156899(0x1d2)])(_0x156899(0x1c3),{'className':_0x156899(0x197),'children':_0x516625})]});}return(0x0,_0x29ded9[_0x103791(0x1d2)])(_0x184252[_0x103791(0x1d7)],{'title':_0x35d84f,'placement':'bottom','children':_0x475631()});}let _0x5ad99d=class extends _0xe35369[_0x56fe33(0x17a)]{constructor(_0x148b1e,_0x441d55,_0x51df60,_0x33a80c){const _0x422d21=_0x56fe33;super(),this['_injector']=_0x148b1e,this[_0x422d21(0x1ed)]=_0x441d55,this[_0x422d21(0x1eb)]=_0x51df60,this[_0x422d21(0x2f0)]=_0x33a80c,this[_0x422d21(0x25b)](),this[_0x422d21(0x2ed)]();}['_initAutoConnect'](){const _0x4bce8a=_0x56fe33;let _0x19c66a=this[_0x4bce8a(0x2f0)]['getConfig'](_0x258604);_0x19c66a!=null&&_0x19c66a[_0x4bce8a(0x25d)]&&(this[_0x4bce8a(0x1ed)][_0x4bce8a(0x18d)]=!0x1);}[_0x56fe33(0x2ed)](){const _0x2af49f=_0x56fe33;let _0x4de409=this[_0x2af49f(0x2f0)][_0x2af49f(0x2f3)](_0x258604);(_0x4de409==null?void 0x0:_0x4de409[_0x2af49f(0x27e)])!==!0x1&&this[_0x2af49f(0x224)](this[_0x2af49f(0x1eb)][_0x2af49f(0x21d)](_0x339ac9[_0x2af49f(0x188)][_0x2af49f(0x1b6)],()=>{const _0x259bd7=_0x2af49f;var _0x37d2b6;return(0x0,_0x339ac9['connectInjector'])(_0x3a3742({'status$':this['_connectionController'][_0x259bd7(0x1b1)],'error$':this[_0x259bd7(0x1ed)][_0x259bd7(0x1ea)],'onConfigure':()=>this[_0x259bd7(0x265)](),'showClickable':(_0x37d2b6=_0x4de409==null?void 0x0:_0x4de409[_0x259bd7(0x25d)])==null?!0x1:_0x37d2b6}),this[_0x259bd7(0x200)]);}));}[_0x56fe33(0x265)](){const _0x298256=_0x56fe33;this[_0x298256(0x200)][_0x298256(0x1cb)](_0x456519)[_0x298256(0x2ef)]();}};_0x5ad99d=_0x3da21a([_0x51f7d0(0x0,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0xe35369['Injector'])),_0x51f7d0(0x1,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0x2a5c68['MCPConnectionController'])),_0x51f7d0(0x2,_0x339ac9[_0x56fe33(0x193)]),_0x51f7d0(0x3,_0xe35369[_0x56fe33(0x1e8)])],_0x5ad99d);function _0x3a3742(_0x291ba5){let {status$:_0x2065c3,error$:_0x82c219,onConfigure:_0x16c55c,showClickable:_0x46626b}=_0x291ba5;return function(){const _0x40a929=_0x5155;return(0x0,_0x29ded9[_0x40a929(0x1d2)])(_0x11f78f,{'status$':_0x2065c3,'error$':_0x82c219,'onConfigure':_0x16c55c,'showClickable':_0x46626b});};}function _0x4c150a(_0x2784c9){const _0x5e114b=_0x56fe33;return{'id':_0x13e2cd['id'],'type':_0x339ac9[_0x5e114b(0x28f)][_0x5e114b(0x1a8)],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':'mcpConfig.title'};}let _0x2b73b7={[_0x339ac9[_0x56fe33(0x1f6)][_0x56fe33(0x228)]]:{[_0x13e2cd['id']]:{'order':0xa,'menuItemFactory':_0x4c150a}}},_0x1ce95a=class extends _0xe35369['Disposable']{constructor(_0x18376e,_0x189c81){const _0xafd7d2=_0x56fe33;super(),this['_commandService']=_0x18376e,this[_0xafd7d2(0x250)]=_0x189c81,this[_0xafd7d2(0x243)](),this['_initializeMenus']();}['_initializeCommands'](){[_0x13e2cd]['forEach'](_0x5d4a41=>{const _0x1aa1d1=_0x5155;this[_0x1aa1d1(0x224)](this[_0x1aa1d1(0x26d)][_0x1aa1d1(0x273)](_0x5d4a41));});}[_0x56fe33(0x19a)](){const _0x1138f1=_0x56fe33;this['_menuManagerService'][_0x1138f1(0x2c5)](_0x2b73b7);}};_0x1ce95a=_0x3da21a([_0x51f7d0(0x0,_0xe35369[_0x56fe33(0x1c8)]),_0x51f7d0(0x1,_0x339ac9[_0x56fe33(0x25e)])],_0x1ce95a);let _0x5ec1eb={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x56fe33(0x27d),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x56fe33(0x191),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x56fe33(0x210),'networkError':_0x56fe33(0x1b3),'maxRetriesExceeded':_0x56fe33(0x1fc),'clickToConnect':_0x56fe33(0x1ab),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x56fe33(0x203),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x56fe33(0x22a),'apiKeyPlaceholder':_0x56fe33(0x1d1),'apiKeyHint':_0x56fe33(0x24b),'enableAuth':_0x56fe33(0x261),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x56fe33(0x2df),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x56fe33(0x232),'configStep2':_0x56fe33(0x185),'configStep3':_0x56fe33(0x15f),'sessionId':_0x56fe33(0x2cf),'sessionIdDescription':_0x56fe33(0x25c),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x56fe33(0x2af),'maxRetries':_0x56fe33(0x234),'save':_0x56fe33(0x1f4),'saving':'Saving...','note1':_0x56fe33(0x23a),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x56fe33(0x1a9),'configError':_0x56fe33(0x25a),'apiApplyInfo':{'title':_0x56fe33(0x2ea),'description':_0x56fe33(0x180),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x56fe33(0x17e),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x56fe33(0x2b2),'invalidApiKey':_0x56fe33(0x167)},'connectionStatus':{'disconnected':_0x56fe33(0x294),'connecting':_0x56fe33(0x22e),'connected':_0x56fe33(0x2c2),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x56fe33(0x2a5),'sessionOccupied':_0x56fe33(0x21b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x56fe33(0x28d)}}},_0x3eb365={'mcpStatus':{'disconnected':_0x56fe33(0x2ce),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x56fe33(0x17b),'unknown':'MCP\x20状态未知','unauthorized':_0x56fe33(0x183),'sessionOccupied':_0x56fe33(0x2be),'networkError':_0x56fe33(0x2e7),'maxRetriesExceeded':_0x56fe33(0x231),'clickToConnect':_0x56fe33(0x24f),'clickToConfigure':_0x56fe33(0x269)},'mcpConfig':{'title':_0x56fe33(0x1ad),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x56fe33(0x287),'apiKeyPlaceholder':_0x56fe33(0x1a1),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x56fe33(0x166),'enableAuthHint':_0x56fe33(0x1ac),'connectionInfo':_0x56fe33(0x1d0),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x56fe33(0x241),'configStepTitle':_0x56fe33(0x186),'configStep1':_0x56fe33(0x1ce),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x56fe33(0x213),'sessionId':_0x56fe33(0x2b7),'sessionIdDescription':_0x56fe33(0x1fd),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x56fe33(0x169),'maxRetries':_0x56fe33(0x1f7),'save':_0x56fe33(0x2db),'saving':_0x56fe33(0x25f),'note1':'配置更改将立即生效','note2':_0x56fe33(0x160),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x56fe33(0x233),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x56fe33(0x212),'apiKeyTooShort':_0x56fe33(0x1f1),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x56fe33(0x277),'connecting':_0x56fe33(0x1a7),'connected':_0x56fe33(0x237),'failed':'连接失败','retrying':_0x56fe33(0x20d)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x56fe33(0x29b),'maxRetriesExceeded':_0x56fe33(0x1ef)}}};var _0x5b2912=_0x56fe33(0x2c0),_0x3dc7c9=_0x56fe33(0x288);let _0x49cf8f=class extends _0xe35369['Plugin']{constructor(_0x4e05a7=_0x10ffbb,_0x1b3b43,_0x50fd60,_0x43357c,_0xbee7ad,_0x4b03e3){const _0x33cc93=_0x56fe33;super(),this['_config']=_0x4e05a7,this['_injector']=_0x1b3b43,this[_0x33cc93(0x2f0)]=_0x50fd60,this['_uiPartsService']=_0x43357c,this['_localStorageService']=_0xbee7ad,this[_0x33cc93(0x211)]=_0x4b03e3;let {..._0xdab798}=(0x0,_0xe35369[_0x33cc93(0x194)])({},_0x10ffbb,this[_0x33cc93(0x240)]);this[_0x33cc93(0x2f0)][_0x33cc93(0x1e1)](_0x258604,_0xdab798);}async[_0x56fe33(0x2cc)](){const _0x5004ef=_0x56fe33;let _0x2dce4e=[[_0x5ad99d],[_0x456519],[_0x1ce95a]];this['_injector'][_0x5004ef(0x276)](_0x211abe[_0x5004ef(0x198)])||_0x2dce4e[_0x5004ef(0x222)]([_0x211abe[_0x5004ef(0x198)],{'useClass':_0x211abe['WebSocketService']}]),_0x2dce4e[_0x5004ef(0x285)](_0x567df6=>this['_injector'][_0x5004ef(0x1fe)](_0x567df6)),this['_injector'][_0x5004ef(0x1cb)](_0x5ad99d),this['_injector'][_0x5004ef(0x1cb)](_0x456519),this[_0x5004ef(0x200)][_0x5004ef(0x1cb)](_0x1ce95a);}};_0x364e42(_0x49cf8f,_0x56fe33(0x235),'MCP_UI_PLUGIN'),_0x364e42(_0x49cf8f,_0x56fe33(0x17c),_0x5b2912),_0x364e42(_0x49cf8f,'version',_0x3dc7c9),_0x49cf8f=_0x3da21a([(0x0,_0xe35369[_0x56fe33(0x19b)])(_0x2a5c68[_0x56fe33(0x270)]),_0x51f7d0(0x1,(0x0,_0xe35369[_0x56fe33(0x2c3)])(_0xe35369['Injector'])),_0x51f7d0(0x2,_0xe35369[_0x56fe33(0x1e8)]),_0x51f7d0(0x3,_0x339ac9[_0x56fe33(0x193)]),_0x51f7d0(0x4,_0xe35369[_0x56fe33(0x23e)]),_0x51f7d0(0x5,(0x0,_0xe35369['Inject'])(_0xe35369['LocaleService']))],_0x49cf8f),_0x4a5d58['MCPConfigPanel']=_0x3b5837,Object[_0x56fe33(0x26c)](_0x4a5d58,_0x56fe33(0x280),{'enumerable':!0x0,'get':function(){return _0x456519;}}),Object[_0x56fe33(0x26c)](_0x4a5d58,'MCPConnectionUIController',{'enumerable':!0x0,'get':function(){return _0x5ad99d;}}),_0x4a5d58[_0x56fe33(0x272)]=_0x11f78f,Object[_0x56fe33(0x26c)](_0x4a5d58,_0x56fe33(0x170),{'enumerable':!0x0,'get':function(){return _0x1ce95a;}}),_0x4a5d58[_0x56fe33(0x1d8)]=_0x13e2cd,Object[_0x56fe33(0x26c)](_0x4a5d58,_0x56fe33(0x16f),{'enumerable':!0x0,'get':function(){return _0x49cf8f;}}),_0x4a5d58[_0x56fe33(0x2c9)]=_0x5ec1eb,_0x4a5d58['zhCN']=_0x3eb365;}));function _0x5155(_0x202c2d,_0x539017){_0x202c2d=_0x202c2d-0x15f;const _0x3f4d79=_0x3f4d();let _0x515590=_0x3f4d79[_0x202c2d];return _0x515590;}function _0x3f4d(){const _0x389d56=['path','getOwnPropertyDescriptor','HEADER_MENU','univer-size-4','react','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.title','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','mcpConfig.configSaved','MAX_RETRIES_EXCEEDED','Success','mcpConfig.configStepTitle','call','useRef','2lFldVp','div','sessionId$','error','NETWORK_ERROR','MCPConfigPanel','ICommandService','idSuffix','330303BQSMyz','get','FAILED','React','复制以下\x20JSON\x20配置','displayName','MCP\x20客户端配置','Enter\x20your\x20API\x20key','jsx','SESSION_ID_OCCUPIED','Button','length','_loadStoredApiKey','Tooltip','OpenMCPConfigPanelCommand','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','@univerjs-pro/mcp','univer-text-red-500','on-line-icon','741349PbRBsc','white','univer-text-gray-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','setConfig','UniverProMcp','univer-bg-green-500','mcpConfig.connectionStatus.disconnected','tag','UniverIcon','MCPConnectionController','IConfigService','current','connectionError$','_uiPartsService','off-line-icon_clip0_910_343','_connectionController','univer-flex\x20univer-items-center\x20univer-gap-3','超出最大重试次数,请稍后再试','Authorization:','API\x20密钥长度至少需要\x2010\x20位','_initConfigSync','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Save\x20Configuration','mcpConfig.connectionStatus.connecting','RibbonStartGroup','最大重试次数','useObservable','mcpConfig.apiApplyInfo.title','clsx','univerjs-icon\x20univerjs-icon-','MCP:\x20Max\x20Retries\x20Exceeded','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','add','univer-flex\x20univer-items-start\x20univer-gap-3','_injector','RETRYING','univer-text-xs\x20univer-text-gray-600','MCP\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2','univer-size-2\x20univer-rounded-full','createElement','210JzFjpU','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.apiApplyInfo.description','register','isValid','xlink:href','重连中...','rxjs','CommandType','MCP:\x20Session\x20ID\x20Occupied','_localeService','API\x20密钥不能为空','重启您的\x20MCP\x20客户端以使配置生效','next','iterator','url(#$1','function','mcpStatus.retrying','toString','mcpStatus.unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcp.apiKey','registerComponent','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.connectionStatus.retrying','MCPConnectionError','value','push','decorate','disposeWithMe','errorMessage','UniverCore','univer.ai','OTHERS','mcpConfig.configError','API\x20Key','symbol','evenodd','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Connecting...','http://www.w3.org/2000/svg','useCallback','MCP:\x20超出最大重试次数','Copy\x20the\x20JSON\x20configuration\x20below','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Max\x20Retries','pluginName','jsxs','已连接','react/jsx-runtime','mcpConfig.apiKeyPlaceholder','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','@univerjs/ui','40YdaQBW','mcpConfig.connectionStatus.connected','ILocalStorageService','\x20-\x20','_config','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20Notes:','_initializeCommands','colorChannel1','_mcpCoreConfig$','mcpConfig.connectionError.maxRetriesExceeded','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','M0\x200H16V16H0z','help-icon','UniverNetwork','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-font-medium','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','IDialogService','点击连接\x20MCP','_menuManagerService','close-icon','DISCONNECTED','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','mcpStatus.disconnected','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_blank','_loading$','univer-shrink-0\x20univer-text-blue-500','_createConfigPanelComponent','Failed\x20to\x20save\x20configuration','_initAutoConnect','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','showDeveloperTools','IMenuManagerService','保存中...','attrs','Enable\x20Authentication','mcpConfig.note1','prototype','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','_handleConfigure','univer-text-xs\x20univer-text-gray-500','1611vTsCJp','CONNECTING','点击配置\x20MCP','ComponentManager','use','defineProperty','_commandService','subscribe','exports','UniverMCPPlugin','clipPath','MCPStatusDisplay','registerCommand','@univerjs/design','mcpConfig.configInstructions','has','未连接','univer-flex\x20univer-gap-3','ILogService','assign','close','mcpStatus.connecting','MCP\x20Connected','showStatus','@univerjs/network','MCPConfigUIController','Injector','round','_validateConfig','text','forEach','univer-text-green-500','API\x20密钥','0.19.0','show','univer-flex\x20univer-items-center','univer-space-y-3','mcpConfig.connectionError.networkError','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_messageService','MenuItemType','826654YBpfZs','univer-bg-blue-500','mcp-ui.config','children','Disconnected','mcpStatus.clickToConfigure','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','12EvIPEs','mcpConfig.saving','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','univer_session_id:','网络连接错误,请检查您的网络连接','_registerComponent','toPrimitive','useState','MCP_PLUGIN_CONFIG_KEY','univer-min-w-0\x20univer-flex-1','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','defs','COMMAND','entries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1em','button','BehaviorSubject','mcpStatus.clickToConnect','univer-space-y-2','mcp-config-dialog','Error','mcpStatus.connected','68910jOWrrU','Configuration\x20Parameters:','univer.plus','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','Invalid\x20configuration','univer-space-y-4','mcpConfig.apiApplyInfo.univerAiLabel','url(#on-line-icon_clip0_910_349)','_dialogService','会话ID','span','mcp-ui.command.openConfigPanel','mcpConfig.validation.invalidApiKey','getCurrentConfig','pre','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP:\x20会话\x20ID\x20已被占用','connectInjector','@univerjs-pro/mcp-ui','url(#off-line-icon_clip0_910_343)','Connected','Inject','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mergeMenu','map','removeItem','__setCustomHeaders','enUS','useDependency','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','onStarting','trim','MCP\x20已断开','Session\x20ID','includes','subscribeConfigValue$','mcpConfig.validation.invalidConfig','univer-flex\x20univer-items-start\x20univer-gap-2','NONE','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','getItem','0\x200\x2016\x2016','apiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','UniverDesign','保存配置','<API_KEY>','replace','Bearer\x20','MCP\x20Client\x20Configuration','string','forwardRef','@univerjs/core','_config$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','http','mcpServerUrl','MCP:\x20网络错误','70345093OtHaUd','CONNECTED','What\x20is\x20API\x20Key?','mcpStatus.networkError','12cScKgL','_initStatusComponent','check-mark-icon','showConfigPanel','_configService','mcpConfig.note2','_handleConfigSave','getConfig','mcpStatus.failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','您的\x20API\x20密钥安全存储在本地存储中','substring','label','OnLineIcon','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-space-y-5','启用身份验证','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex-1','配置参数:','12607903DAhLUB','stringify','open','_mcpConnectionController','_apiKey$','UniverMCPUIPlugin','MCPUIMenuController','MessageType','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','IMessageService','mcpConfig.configStep3','mask','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configStep2','UNAUTHORIZED','univer-bg-red-500','Disposable','MCP\x20重连中...','packageName','setItem','API\x20key\x20is\x20required','constructor','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','currentColor','default','MCP:\x20未授权','object','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','配置步骤:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','BuiltInUIPart','mcpConfig.apiKeyHint','mcpConfig.connectionStatus.failed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_componentManager','enableAutoConnect','_logService','off-line-icon','CloseIcon','MCP\x20Unknown\x20Status','random','IUIPartsService','merge','168240owapas','univer-text-blue-600','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ISocketService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_initializeMenus','DependentOn','univer-mr-2\x20univer-flex\x20univer-text-xl','_localStorageService','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCPConnectionStatus','warn','请输入您的\x20API\x20密钥','on-line-icon_clip0_910_349','off','mcpConfig.authorizationDescription','svg','mcpConfig.sessionIdDescription','连接中...','BUTTON','Configuration\x20saved\x20successfully','none','Click\x20to\x20connect\x20MCP','启用身份验证以获得安全连接','MCP\x20配置','translate(.97)','LocaleService','mcpConfig.connectionError.sessionOccupied','connectionStatus$','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','MCP:\x20Network\x20Error'];_0x3f4d=function(){return _0x389d56;};return _0x3f4d();}
|
|
1
|
+
function _0x462a(_0x340496,_0x5834ec){_0x340496=_0x340496-0x1c8;const _0x437dfe=_0x437d();let _0x462a46=_0x437dfe[_0x340496];return _0x462a46;}(function(_0x5ce36d,_0x434145){const _0x4e065e=_0x462a,_0x241434=_0x5ce36d();while(!![]){try{const _0x276c2a=parseInt(_0x4e065e(0x204))/0x1+-parseInt(_0x4e065e(0x243))/0x2+parseInt(_0x4e065e(0x1d6))/0x3+-parseInt(_0x4e065e(0x248))/0x4+parseInt(_0x4e065e(0x35e))/0x5+parseInt(_0x4e065e(0x362))/0x6+-parseInt(_0x4e065e(0x350))/0x7*(-parseInt(_0x4e065e(0x346))/0x8);if(_0x276c2a===_0x434145)break;else _0x241434['push'](_0x241434['shift']());}catch(_0x55c0a7){_0x241434['push'](_0x241434['shift']());}}}(_0x437d,0x20c74),function(_0x5b9697,_0x58a2dd){const _0x2c544c=_0x462a;typeof exports==_0x2c544c(0x28e)&&typeof module<'u'?_0x58a2dd(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==_0x2c544c(0x1d2)&&define[_0x2c544c(0x271)]?define([_0x2c544c(0x239),'@univerjs/core',_0x2c544c(0x2f2),_0x2c544c(0x2b7),_0x2c544c(0x2c6),_0x2c544c(0x354),_0x2c544c(0x34b),'react/jsx-runtime',_0x2c544c(0x2fd)],_0x58a2dd):(_0x5b9697=typeof globalThis<'u'?globalThis:_0x5b9697||self,_0x58a2dd(_0x5b9697[_0x2c544c(0x34c)]={},_0x5b9697[_0x2c544c(0x2e1)],_0x5b9697[_0x2c544c(0x335)],_0x5b9697['UniverDesign'],_0x5b9697[_0x2c544c(0x2ff)],_0x5b9697[_0x2c544c(0x354)],_0x5b9697['React'],_0x5b9697[_0x2c544c(0x319)],_0x5b9697[_0x2c544c(0x203)]));}(this,function(_0x54b705,_0x1911b9,_0x4892eb,_0x18bd2a,_0x18c29b,_0x2c14c0,_0x477a26,_0x3edaaa,_0x44589b){const _0x1abd98=_0x462a;Object['defineProperty'](_0x54b705,Symbol[_0x1abd98(0x1cf)],{'value':_0x1abd98(0x20f)});function _0x38e7b4({ref:_0x547034,..._0x5a3920}){const _0x25d496=_0x1abd98;let {icon:_0xaa6039,id:_0x163784,className:_0x2385f6,extend:_0x38829a,..._0xa6bd39}=_0x5a3920,_0x265c80=(_0x25d496(0x216)+_0x163784+'\x20'+(_0x2385f6||''))['trim'](),_0x5c5113=(0x0,_0x477a26[_0x25d496(0x229)])('_'+_0x539851());return _0x4058b9(_0xaa6039,''+_0x163784,{'defIds':_0xaa6039['defIds'],'idSuffix':_0x5c5113['current']},{'ref':_0x547034,'className':_0x265c80,..._0xa6bd39},_0x38829a);}function _0x4058b9(_0x56d980,_0x373de7,_0x31cab4,_0x1fc70a,_0x1f11c1){const _0x3e9f9e=_0x1abd98;return(0x0,_0x477a26[_0x3e9f9e(0x2be)])(_0x56d980[_0x3e9f9e(0x24d)],{'key':_0x373de7,..._0x29122b(_0x56d980,_0x31cab4,_0x1f11c1),..._0x1fc70a},(_0x2322cd(_0x56d980,_0x31cab4)['children']||[])[_0x3e9f9e(0x2a5)]((_0x439654,_0x2b6fbe)=>_0x4058b9(_0x439654,_0x373de7+'-'+_0x56d980[_0x3e9f9e(0x24d)]+'-'+_0x2b6fbe,_0x31cab4,void 0x0,_0x1f11c1)));}function _0x29122b(_0x2bd4b2,_0xc2f63b,_0x40514d){const _0x318d7c=_0x1abd98;let _0xeb95c0={..._0x2bd4b2['attrs']};_0x40514d!=null&&_0x40514d[_0x318d7c(0x330)]&&_0xeb95c0['fill']==='colorChannel1'&&(_0xeb95c0[_0x318d7c(0x246)]=_0x40514d['colorChannel1']),_0x2bd4b2[_0x318d7c(0x24d)]===_0x318d7c(0x315)&&_0xeb95c0['id']&&(_0xeb95c0['id']+=_0xc2f63b[_0x318d7c(0x263)]),Object[_0x318d7c(0x2f6)](_0xeb95c0)[_0x318d7c(0x259)](([_0x1de542,_0x47a390])=>{const _0x5a9852=_0x318d7c;_0x1de542===_0x5a9852(0x315)&&typeof _0x47a390=='string'&&(_0xeb95c0[_0x1de542]=_0x47a390[_0x5a9852(0x253)](/url\(#(.*)\)/,_0x5a9852(0x275)+_0xc2f63b[_0x5a9852(0x263)]+')'));});let {defIds:_0x27e138}=_0xc2f63b;return!_0x27e138||_0x27e138[_0x318d7c(0x299)]===0x0?_0xeb95c0:(_0x2bd4b2['tag']==='use'&&_0xeb95c0['xlink:href']&&(_0xeb95c0[_0x318d7c(0x2cf)]+=_0xc2f63b[_0x318d7c(0x263)]),Object[_0x318d7c(0x2f6)](_0xeb95c0)[_0x318d7c(0x259)](([_0x26b2c6,_0x795f6f])=>{const _0xc001b6=_0x318d7c;typeof _0x795f6f=='string'&&(_0xeb95c0[_0x26b2c6]=_0x795f6f[_0xc001b6(0x253)](/url\(#(.*)\)/,'url(#$1'+_0xc2f63b[_0xc001b6(0x263)]+')'));}),_0xeb95c0);}function _0x2322cd(_0x58cc8f,_0x1af29c){const _0xd24eaf=_0x1abd98;var _0x43ed88;let {defIds:_0x5f1903}=_0x1af29c;return!_0x5f1903||_0x5f1903[_0xd24eaf(0x299)]===0x0?_0x58cc8f:_0x58cc8f[_0xd24eaf(0x24d)]===_0xd24eaf(0x32e)&&(_0x43ed88=_0x58cc8f['children'])!=null&&_0x43ed88[_0xd24eaf(0x299)]?{..._0x58cc8f,'children':_0x58cc8f['children']['map'](_0x18be8b=>typeof _0x18be8b[_0xd24eaf(0x207)]['id']==_0xd24eaf(0x2db)&&_0x5f1903&&_0x5f1903[_0xd24eaf(0x24a)](_0x18be8b[_0xd24eaf(0x207)]['id'])?{..._0x18be8b,'attrs':{..._0x18be8b['attrs'],'id':_0x18be8b[_0xd24eaf(0x207)]['id']+_0x1af29c['idSuffix']}}:_0x18be8b)}:_0x58cc8f;}function _0x539851(){const _0x535795=_0x1abd98;return Math[_0x535795(0x31b)]()['toString'](0x24)['substring'](0x2,0x8);}_0x38e7b4[_0x1abd98(0x1e9)]=_0x1abd98(0x302);let _0xbd3d9b={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':_0x1abd98(0x304),'viewBox':'0\x200\x2016\x2016','width':_0x1abd98(0x1d9),'height':'1em'},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':'currentColor','d':_0x1abd98(0x32f),'fillRule':'evenodd','clipRule':_0x1abd98(0x359)}}]},_0x1c991e=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x992ecf,_0xaf37c8){const _0x3443e4=_0x1abd98;return(0x0,_0x477a26[_0x3443e4(0x2be)])(_0x38e7b4,Object[_0x3443e4(0x27c)]({},_0x992ecf,{'id':_0x3443e4(0x22d),'ref':_0xaf37c8,'icon':_0xbd3d9b}));});_0x1c991e[_0x1abd98(0x1e9)]=_0x1abd98(0x29a);let _0x2305e8={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':'none','viewBox':_0x1abd98(0x23d),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1abd98(0x236),'d':_0x1abd98(0x25f)}}]},_0x3eefb1=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x18cf0a,_0x1d431d){const _0x52d5a8=_0x1abd98;return(0x0,_0x477a26['createElement'])(_0x38e7b4,Object[_0x52d5a8(0x27c)]({},_0x18cf0a,{'id':_0x52d5a8(0x262),'ref':_0x1d431d,'icon':_0x2305e8}));});_0x3eefb1['displayName']=_0x1abd98(0x25c);let _0x4b6903={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':'none','viewBox':_0x1abd98(0x23d),'width':_0x1abd98(0x1d9),'height':_0x1abd98(0x1d9)},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x236),'d':_0x1abd98(0x25b)}},{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x236),'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':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x236),'d':_0x1abd98(0x228),'fillRule':_0x1abd98(0x359),'clipRule':_0x1abd98(0x359)}}]},_0x250693=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x326ba5,_0x9a20ac){const _0x3c5f06=_0x1abd98;return(0x0,_0x477a26['createElement'])(_0x38e7b4,Object[_0x3c5f06(0x27c)]({},_0x326ba5,{'id':'help-icon','ref':_0x9a20ac,'icon':_0x4b6903}));});_0x250693[_0x1abd98(0x1e9)]='HelpIcon';let _0x3cb1c7={'tag':'svg','attrs':{'xmlns':_0x1abd98(0x265),'fill':_0x1abd98(0x304),'viewBox':_0x1abd98(0x23d),'width':_0x1abd98(0x1d9),'height':_0x1abd98(0x1d9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1abd98(0x277),'attrs':{'stroke':'currentColor','d':_0x1abd98(0x1ec),'strokeLinecap':'round','strokeLinejoin':_0x1abd98(0x1ea),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1abd98(0x295),'attrs':{'id':_0x1abd98(0x2fa)},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x244),'d':_0x1abd98(0x2f5)}}]}]}],'defIds':[_0x1abd98(0x2fa)]},_0x5b1c76=(0x0,_0x477a26[_0x1abd98(0x2b4)])(function(_0x3d2c37,_0x302aa8){const _0x2b628f=_0x1abd98;return(0x0,_0x477a26[_0x2b628f(0x2be)])(_0x38e7b4,Object['assign']({},_0x3d2c37,{'id':_0x2b628f(0x26e),'ref':_0x302aa8,'icon':_0x3cb1c7}));});_0x5b1c76[_0x1abd98(0x1e9)]=_0x1abd98(0x27b);let _0x486e9b={'tag':_0x1abd98(0x212),'attrs':{'xmlns':_0x1abd98(0x265),'fill':_0x1abd98(0x304),'viewBox':_0x1abd98(0x1fb),'width':_0x1abd98(0x1d9),'height':_0x1abd98(0x1d9)},'children':[{'tag':'g','attrs':{'clipPath':_0x1abd98(0x285)},'children':[{'tag':'path','attrs':{'stroke':_0x1abd98(0x236),'d':_0x1abd98(0x267),'strokeLinecap':_0x1abd98(0x1ea),'strokeLinejoin':_0x1abd98(0x1ea),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1abd98(0x295),'attrs':{'id':_0x1abd98(0x2b5)},'children':[{'tag':_0x1abd98(0x277),'attrs':{'fill':_0x1abd98(0x244),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x1abd98(0x2b5)]},_0x4796b4=(0x0,_0x477a26['forwardRef'])(function(_0x24940d,_0x5dbcca){const _0xa8fd26=_0x1abd98;return(0x0,_0x477a26['createElement'])(_0x38e7b4,Object[_0xa8fd26(0x27c)]({},_0x24940d,{'id':_0xa8fd26(0x2a8),'ref':_0x5dbcca,'icon':_0x486e9b}));});_0x4796b4['displayName']='OnLineIcon';function _0x4ab373(_0x2ee9ab){const _0x449805=_0x1abd98;var _0x19ea7d,_0x923cf9;let {mcpCoreConfig:_0x25cb15,onSave:_0x5d8a49,loading:_0x12bf0f=!0x1,config:_0x4f0c27,connectionStatus$:_0x267cc8,connectionError$:_0x4a44c5,currentApiKey$:_0x46d8a9,currentSessionId$:_0x242979}=_0x2ee9ab,_0x1eba53=(0x0,_0x18c29b[_0x449805(0x2cb)])(_0x1911b9['LocaleService']),_0x34f542=(0x0,_0x18c29b['useObservable'])(_0x267cc8,_0x4892eb[_0x449805(0x27e)][_0x449805(0x213)]),_0x2b5681=(0x0,_0x18c29b[_0x449805(0x338)])(_0x4a44c5,_0x4892eb[_0x449805(0x1d1)][_0x449805(0x33d)]),_0x48828c=(0x0,_0x18c29b[_0x449805(0x338)])(_0x242979,''),[_0x25af8c,_0x48d5e1]=(0x0,_0x477a26['useState'])((0x0,_0x18c29b[_0x449805(0x338)])(_0x46d8a9,'')||''),_0x307e7f=_0x4f0c27['showDeveloperTools']&&_0x25cb15[_0x449805(0x33b)]&&(_0x25cb15[_0x449805(0x33b)][_0x449805(0x24a)](_0x449805(0x303))||_0x25cb15[_0x449805(0x33b)][_0x449805(0x24a)](_0x449805(0x355))),_0x478463=(_0x19ea7d=_0x25cb15[_0x449805(0x33b)])==null?void 0x0:_0x19ea7d['includes'](_0x449805(0x303)),_0x2a4399=(_0x923cf9=_0x25cb15[_0x449805(0x33b)])==null?void 0x0:_0x923cf9['includes']('univer.ai'),_0x1ee938=_0x478463?_0x449805(0x252):_0x449805(0x2c9),_0x512885=_0x4f0c27[_0x449805(0x26f)]&&(_0x478463||_0x2a4399),[_0x499b78,_0x420c83]=(0x0,_0x477a26[_0x449805(0x249)])(!_0x25af8c['trim']()),_0x514f09=(_0x1398eb,_0x3c5f05)=>{const _0x17ba40=_0x449805;if(_0x3c5f05===_0x4892eb[_0x17ba40(0x1d1)][_0x17ba40(0x284)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1398eb){case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x309)]:return _0x17ba40(0x2cd);case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x2aa)]:case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x343)]:return _0x17ba40(0x2e4);case _0x4892eb[_0x17ba40(0x27e)][_0x17ba40(0x219)]:return _0x17ba40(0x2f1);default:return _0x17ba40(0x1e0);}},_0x24a8a1=(_0x4a5102,_0x3d34ab)=>{const _0x59ef5f=_0x449805;if(_0x3d34ab===_0x4892eb[_0x59ef5f(0x1d1)][_0x59ef5f(0x284)])return'univer-bg-red-500';switch(_0x4a5102){case _0x4892eb[_0x59ef5f(0x27e)]['CONNECTED']:return _0x59ef5f(0x26a);case _0x4892eb[_0x59ef5f(0x27e)][_0x59ef5f(0x2aa)]:case _0x4892eb['MCPConnectionStatus'][_0x59ef5f(0x343)]:return _0x59ef5f(0x240);case _0x4892eb['MCPConnectionStatus'][_0x59ef5f(0x219)]:return _0x59ef5f(0x211);default:return'univer-bg-gray-500';}},_0x46ff5d=_0x23f5bf=>{const _0x374df1=_0x449805;switch(_0x23f5bf){case _0x4892eb[_0x374df1(0x27e)][_0x374df1(0x309)]:return _0x1eba53['t'](_0x374df1(0x2ca));case _0x4892eb['MCPConnectionStatus']['CONNECTING']:return _0x1eba53['t'](_0x374df1(0x21e));case _0x4892eb[_0x374df1(0x27e)][_0x374df1(0x219)]:return _0x1eba53['t'](_0x374df1(0x2dd));case _0x4892eb['MCPConnectionStatus'][_0x374df1(0x343)]:return _0x1eba53['t'](_0x374df1(0x325));default:return _0x1eba53['t'](_0x374df1(0x21c));}},_0x504eb7=_0x369d94=>{const _0x135251=_0x449805;switch(_0x369d94){case _0x4892eb[_0x135251(0x1d1)][_0x135251(0x284)]:return _0x1eba53['t'](_0x135251(0x23f));case _0x4892eb['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x1eba53['t'](_0x135251(0x1cc));case _0x4892eb[_0x135251(0x1d1)][_0x135251(0x341)]:return _0x1eba53['t'](_0x135251(0x230));case _0x4892eb[_0x135251(0x1d1)][_0x135251(0x358)]:return _0x1eba53['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2a7b20=(0x0,_0x477a26[_0x449805(0x218)])(()=>{_0x5d8a49({..._0x25cb15,'apiKey':_0x25af8c['trim'](),'enableAuth':!0x0});},[_0x25cb15,_0x25af8c,!0x0,_0x5d8a49]),_0x25e615=_0x25af8c[_0x449805(0x2d6)]()[_0x449805(0x299)]>0x0;return(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x202),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x33f),'children':(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x27d),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':'univer-text-white','children':'⚙'})}),(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'children':(0x0,_0x3edaaa['jsx'])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1eba53['t']('mcpConfig.description')})})]})}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':(0x0,_0x18bd2a[_0x449805(0x298)])(_0x449805(0x320),_0x514f09(_0x34f542,_0x2b5681)),'children':(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':(0x0,_0x18bd2a[_0x449805(0x298)])('univer-size-2\x20univer-rounded-full',_0x24a8a1(_0x34f542,_0x2b5681))}),(0x0,_0x3edaaa['jsx'])(_0x449805(0x1f7),{'className':_0x449805(0x293),'children':_0x46ff5d(_0x34f542)})]})}),_0x2b5681!==_0x4892eb[_0x449805(0x1d1)][_0x449805(0x33d)]&&(_0x34f542===_0x4892eb[_0x449805(0x27e)][_0x449805(0x219)]||_0x2b5681===_0x4892eb[_0x449805(0x1d1)][_0x449805(0x284)])&&(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x231),'children':(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x283),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('span',{'className':_0x449805(0x1e8),'children':'⚠️'}),(0x0,_0x3edaaa['jsx'])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x504eb7(_0x2b5681)})]})})]}),(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x347),'children':(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':'univer-space-y-5','children':[(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':_0x449805(0x321),'children':[(0x0,_0x3edaaa['jsxs'])(_0x449805(0x24b),{'className':_0x449805(0x1d4),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'children':'🔑'}),'\x20',_0x1eba53['t']('mcpConfig.apiKey'),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x288),'children':'*'}),_0x307e7f&&(0x0,_0x3edaaa[_0x449805(0x264)])('a',{'className':_0x449805(0x278),'title':_0x1eba53['t'](_0x449805(0x2b2)),'role':_0x449805(0x2d9),'onClick':()=>_0x420c83(!0x0),'children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x250693,{})})]}),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x18bd2a['Input'],{'type':_0x449805(0x32a),'placeholder':_0x1eba53['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x25af8c,'disabled':_0x12bf0f,'autoComplete':_0x449805(0x25a),'onChange':_0x48d5e1}),(0x0,_0x3edaaa[_0x449805(0x264)])('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1eba53['t'](_0x449805(0x254))})]}),_0x307e7f&&_0x499b78&&(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'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,_0x3edaaa[_0x449805(0x264)])('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':'button','onClick':()=>_0x420c83(!0x1),'children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x3eefb1,{'className':_0x449805(0x1e1)})}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x34a),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x297),'children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x31f),'children':'🚀'})}),(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':_0x449805(0x28d),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x1eba53['t'](_0x449805(0x2b2))}),(0x0,_0x3edaaa[_0x449805(0x264)])('p',{'className':_0x449805(0x201),'children':_0x1eba53['t'](_0x449805(0x2a7))}),(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':_0x449805(0x35c),'children':_0x512885&&(0x0,_0x3edaaa['jsxs'])('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x1ee938,'target':'_blank','rel':'noopener\x20noreferrer','children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x1f7),{'children':'🤖'}),_0x1eba53['t'](_0x449805(0x30f)),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x361),'children':'↗'})]})}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x1d3),'children':['✨','\x20',_0x1eba53['t'](_0x449805(0x280))]})]})]})]}),_0x4f0c27[_0x449805(0x26f)]&&(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x2d8),'children':[(0x0,_0x3edaaa[_0x449805(0x24f)])('h4',{'className':_0x449805(0x334),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'children':'🔗'}),'\x20',_0x1eba53['t'](_0x449805(0x2bb))]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':'univer-space-y-4','children':[(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':'univer-space-y-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])('p',{'className':_0x449805(0x30b),'children':_0x1eba53['t']('mcpConfig.configInstructions')}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x321),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':_0x449805(0x289),'children':_0x1eba53['t'](_0x449805(0x23b))}),(0x0,_0x3edaaa['jsxs'])('div',{'className':_0x449805(0x2ef),'children':[(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x1f7),{'className':_0x449805(0x282),'children':'1'}),_0x1eba53['t']('mcpConfig.configStep1')]}),(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x3edaaa[_0x449805(0x264)])('span',{'className':_0x449805(0x282),'children':'2'}),_0x1eba53['t'](_0x449805(0x2fe))]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x1eba53['t'](_0x449805(0x221))]})]})]})]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x321),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x339),{'className':_0x449805(0x2ea),'children':JSON[_0x449805(0x208)]({'mcpServers':{'univer':{'url':_0x449805(0x2e9)+(_0x48828c||_0x449805(0x2e5)),'type':_0x449805(0x241),'headers':{'Authorization':_0x449805(0x301)+(_0x25af8c||_0x449805(0x35f))}}}},null,0x2)})})]}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-space-y-3','children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x289),'children':_0x1eba53['t'](_0x449805(0x209))}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-space-y-2','children':[(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2ed)}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'className':_0x449805(0x337),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x1ef),'children':_0x449805(0x332)}),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2a4),'children':_0x1eba53['t'](_0x449805(0x272))})]})]}),(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2ed)}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x337),'children':[(0x0,_0x3edaaa['jsx'])(_0x449805(0x200),{'className':_0x449805(0x1ef),'children':_0x449805(0x1fd)}),(0x0,_0x3edaaa[_0x449805(0x264)])('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1eba53['t'](_0x449805(0x30c))})]})]})]})]})]})]}),(0x0,_0x3edaaa['jsx'])(_0x18bd2a[_0x449805(0x327)],{'onClick':_0x2a7b20,'disabled':!_0x25e615||_0x12bf0f,'className':_0x449805(0x2a3),'children':_0x12bf0f?(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x1f7),{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'children':'⟲'}),_0x1eba53['t']('mcpConfig.saving')]}):(0x0,_0x3edaaa[_0x449805(0x24f)])('span',{'className':_0x449805(0x349),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x1c991e,{}),_0x1eba53['t'](_0x449805(0x26b))]})}),(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2ec),'children':(0x0,_0x3edaaa[_0x449805(0x24f)])('div',{'className':_0x449805(0x2d3),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x1f7),{'className':_0x449805(0x22f),'children':'💡'}),(0x0,_0x3edaaa[_0x449805(0x24f)])(_0x449805(0x200),{'className':_0x449805(0x1c8),'children':[(0x0,_0x3edaaa[_0x449805(0x264)])(_0x449805(0x200),{'className':_0x449805(0x2c0),'children':_0x449805(0x2c2)}),(0x0,_0x3edaaa['jsxs'])('div',{'children':['•',_0x1eba53['t']('mcpConfig.note1')]}),(0x0,_0x3edaaa['jsxs'])(_0x449805(0x200),{'children':['•',_0x1eba53['t'](_0x449805(0x26d))]})]})]})})]})})]});}let _0x2de6c4='mcp-ui.config';Symbol(_0x2de6c4);let _0x732be6={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x4c6961(_0xa6ecb5){'@babel/helpers - typeof';const _0x5bb381=_0x1abd98;return _0x4c6961=typeof Symbol==_0x5bb381(0x1d2)&&typeof Symbol['iterator']==_0x5bb381(0x29f)?function(_0x27297e){return typeof _0x27297e;}:function(_0xf8628a){const _0x472a9b=_0x5bb381;return _0xf8628a&&typeof Symbol=='function'&&_0xf8628a[_0x472a9b(0x2d5)]===Symbol&&_0xf8628a!==Symbol[_0x472a9b(0x306)]?_0x472a9b(0x29f):typeof _0xf8628a;},_0x4c6961(_0xa6ecb5);}function _0x3ce7ac(_0xeb5a4a,_0x5c1cb4){const _0x5b685a=_0x1abd98;if(_0x4c6961(_0xeb5a4a)!=_0x5b685a(0x28e)||!_0xeb5a4a)return _0xeb5a4a;var _0x5cb848=_0xeb5a4a[Symbol[_0x5b685a(0x245)]];if(_0x5cb848!==void 0x0){var _0x251c96=_0x5cb848['call'](_0xeb5a4a,_0x5c1cb4||_0x5b685a(0x2fc));if(_0x4c6961(_0x251c96)!=_0x5b685a(0x28e))return _0x251c96;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c1cb4===_0x5b685a(0x2db)?String:Number)(_0xeb5a4a);}function _0xfc7c30(_0x3f9bae){const _0x4d7ef4=_0x1abd98;var _0x438585=_0x3ce7ac(_0x3f9bae,_0x4d7ef4(0x2db));return _0x4c6961(_0x438585)==_0x4d7ef4(0x29f)?_0x438585:_0x438585+'';}function _0x433eb1(_0x532dce,_0x258b1c,_0x2f8623){return(_0x258b1c=_0xfc7c30(_0x258b1c))in _0x532dce?Object['defineProperty'](_0x532dce,_0x258b1c,{'value':_0x2f8623,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x532dce[_0x258b1c]=_0x2f8623,_0x532dce;}function _0x295925(_0x33fd3c,_0x360fd6){return function(_0x19f80c,_0x33e322){_0x360fd6(_0x19f80c,_0x33e322,_0x33fd3c);};}function _0x1bc844(_0x506054,_0x773306,_0x46732a,_0x5ba8b1){const _0x41da4c=_0x1abd98;var _0x2e1a57=arguments[_0x41da4c(0x299)],_0x543f51=_0x2e1a57<0x3?_0x773306:_0x5ba8b1===null?_0x5ba8b1=Object[_0x41da4c(0x27f)](_0x773306,_0x46732a):_0x5ba8b1,_0x4ac7c7;if(typeof Reflect=='object'&&typeof Reflect[_0x41da4c(0x258)]==_0x41da4c(0x1d2))_0x543f51=Reflect['decorate'](_0x506054,_0x773306,_0x46732a,_0x5ba8b1);else{for(var _0x12c12f=_0x506054[_0x41da4c(0x299)]-0x1;_0x12c12f>=0x0;_0x12c12f--)(_0x4ac7c7=_0x506054[_0x12c12f])&&(_0x543f51=(_0x2e1a57<0x3?_0x4ac7c7(_0x543f51):_0x2e1a57>0x3?_0x4ac7c7(_0x773306,_0x46732a,_0x543f51):_0x4ac7c7(_0x773306,_0x46732a))||_0x543f51);}return _0x2e1a57>0x3&&_0x543f51&&Object[_0x41da4c(0x31e)](_0x773306,_0x46732a,_0x543f51),_0x543f51;}let _0x21b983=_0x1abd98(0x2bf),_0x5e5fd7=_0x1abd98(0x33e),_0x20adc2=class extends _0x1911b9[_0x1abd98(0x20d)]{constructor(_0x514a01,_0x3cfb29,_0x2eefb8,_0x30ff04,_0xfbf897,_0x45dedc,_0x44b96d,_0xcca52b,_0x524bf7,_0x3618d7){const _0xd35b9f=_0x1abd98;super(),this[_0xd35b9f(0x2d7)]=_0x514a01,this['_uiPartsService']=_0x3cfb29,this[_0xd35b9f(0x238)]=_0x2eefb8,this[_0xd35b9f(0x1eb)]=_0x30ff04,this[_0xd35b9f(0x328)]=_0xfbf897,this[_0xd35b9f(0x210)]=_0x45dedc,this[_0xd35b9f(0x2ba)]=_0x44b96d,this[_0xd35b9f(0x224)]=_0xcca52b,this[_0xd35b9f(0x261)]=_0x524bf7,this[_0xd35b9f(0x1db)]=_0x3618d7,_0x433eb1(this,_0xd35b9f(0x2c4),new _0x2c14c0[(_0xd35b9f(0x300))](!0x1)),_0x433eb1(this,_0xd35b9f(0x291),new _0x2c14c0[(_0xd35b9f(0x300))]({})),_0x433eb1(this,_0xd35b9f(0x1fe),new _0x2c14c0[(_0xd35b9f(0x300))]({})),_0x433eb1(this,_0xd35b9f(0x214),new _0x2c14c0[(_0xd35b9f(0x300))]('')),_0x433eb1(this,_0xd35b9f(0x31c),async _0x2d99ee=>{const _0x5b255f=_0xd35b9f;this[_0x5b255f(0x2c4)]['next'](!0x0);try{var _0x2315ad,_0x1fd969;let _0x12d661=await this[_0x5b255f(0x2dc)](_0x2d99ee);if(!_0x12d661[_0x5b255f(0x287)]){this['_messageService'][_0x5b255f(0x1e5)]({'type':_0x18bd2a[_0x5b255f(0x1f9)][_0x5b255f(0x1ca)],'content':_0x12d661[_0x5b255f(0x1f8)]||this[_0x5b255f(0x224)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2d99ee[_0x5b255f(0x21f)]?await this['_localStorageService'][_0x5b255f(0x1ce)](_0x21b983,_0x2d99ee[_0x5b255f(0x21f)][_0x5b255f(0x2d6)]()):await this[_0x5b255f(0x1eb)][_0x5b255f(0x29c)](_0x21b983),this[_0x5b255f(0x214)][_0x5b255f(0x1cb)](((_0x2315ad=_0x2d99ee[_0x5b255f(0x21f)])==null?void 0x0:_0x2315ad['trim']())||''),this[_0x5b255f(0x1db)][_0x5b255f(0x1e2)]({'Authorization':_0x5b255f(0x301)+((_0x1fd969=_0x2d99ee[_0x5b255f(0x21f)])==null?void 0x0:_0x1fd969['trim']())}),this[_0x5b255f(0x210)][_0x5b255f(0x1e5)]({'type':_0x18bd2a['MessageType'][_0x5b255f(0x1f5)],'content':this[_0x5b255f(0x224)]['t'](_0x5b255f(0x232))}),setTimeout(()=>{const _0x13ce50=_0x5b255f;this['_dialogService'][_0x13ce50(0x2c7)](_0x5e5fd7);},0x320);}catch(_0x30744c){this[_0x5b255f(0x261)][_0x5b255f(0x1ee)](_0x5b255f(0x32d),_0x30744c),this['_messageService']['show']({'type':_0x18bd2a[_0x5b255f(0x1f9)]['Error'],'content':this[_0x5b255f(0x224)]['t'](_0x5b255f(0x2e2))});}finally{this[_0x5b255f(0x2c4)][_0x5b255f(0x1cb)](!0x1);}}),this[_0xd35b9f(0x251)](),this['_loadStoredApiKey'](),this[_0xd35b9f(0x34d)]();}[_0x1abd98(0x220)](){const _0x4673ac=_0x1abd98;let _0xcb601a=this['_configService'][_0x4673ac(0x35d)](_0x2de6c4);_0xcb601a!=null&&_0xcb601a['showDeveloperTools']&&this['_dialogService']['open']({'id':_0x5e5fd7,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x4673ac(0x233)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x476936=_0x4673ac;this[_0x476936(0x328)]['close'](_0x5e5fd7);}});}[_0x1abd98(0x2ab)](){const _0x2c273f=_0x1abd98;return this[_0x2c273f(0x291)]['value'];}[_0x1abd98(0x34d)](){const _0x1fe9ea=_0x1abd98;this['disposeWithMe'](this['_componentManager']['register'](_0x1fe9ea(0x233),this[_0x1fe9ea(0x20e)]()));}[_0x1abd98(0x20e)](){const _0x1cbf44=_0x1abd98;return(0x0,_0x18c29b[_0x1cbf44(0x234)])(()=>{const _0x86c956=_0x1cbf44;var _0x4b28fd,_0x1648c3,_0x40d5a9;return(0x0,_0x3edaaa['jsx'])(_0x4ab373,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x86c956(0x291)][_0x86c956(0x290)],'currentApiKey$':this[_0x86c956(0x214)],'onSave':this[_0x86c956(0x31c)],'loading':this[_0x86c956(0x2c4)][_0x86c956(0x290)],'connectionStatus$':(_0x4b28fd=this[_0x86c956(0x1db)])==null?void 0x0:_0x4b28fd['connectionStatus$'],'connectionError$':(_0x1648c3=this[_0x86c956(0x1db)])==null?void 0x0:_0x1648c3['connectionError$'],'currentSessionId$':(_0x40d5a9=this[_0x86c956(0x1db)])==null?void 0x0:_0x40d5a9[_0x86c956(0x2f8)]});},this[_0x1cbf44(0x2d7)]);}[_0x1abd98(0x251)](){const _0x5cae34=_0x1abd98;this['disposeWithMe'](this[_0x5cae34(0x238)][_0x5cae34(0x2d2)](_0x4892eb[_0x5cae34(0x32c)])['subscribe'](_0x3ec8a3=>{const _0x1bbfb6=_0x5cae34;this['_mcpCoreConfig$'][_0x1bbfb6(0x1cb)](_0x3ec8a3||{});}));let _0x9590b4=this[_0x5cae34(0x238)]['getConfig'](_0x4892eb['MCP_PLUGIN_CONFIG_KEY']);this[_0x5cae34(0x291)][_0x5cae34(0x1cb)](_0x9590b4||{}),this[_0x5cae34(0x2f3)](this[_0x5cae34(0x238)][_0x5cae34(0x2d2)](_0x2de6c4)['subscribe'](_0x41c072=>{const _0x5882c8=_0x5cae34;this[_0x5882c8(0x1fe)][_0x5882c8(0x1cb)](_0x41c072||{});}));let _0x1ca79c=this['_configService'][_0x5cae34(0x35d)](_0x2de6c4);this[_0x5cae34(0x1fe)][_0x5cae34(0x1cb)](_0x1ca79c||{});}async[_0x1abd98(0x20a)](){const _0x277d00=_0x1abd98;let _0x38e0e1=this[_0x277d00(0x238)]['getConfig'](_0x2de6c4);if(!(_0x38e0e1!=null&&_0x38e0e1[_0x277d00(0x26f)]))return;let _0x39a31f=await this[_0x277d00(0x1eb)][_0x277d00(0x237)](_0x21b983);_0x39a31f&&(this[_0x277d00(0x1db)][_0x277d00(0x1e2)]({'Authorization':'Bearer\x20'+_0x39a31f}),this[_0x277d00(0x214)][_0x277d00(0x1cb)](_0x39a31f));}async[_0x1abd98(0x2dc)](_0x3a7ff6){const _0x49a80e=_0x1abd98;if(!_0x3a7ff6['apiKey']||_0x3a7ff6[_0x49a80e(0x21f)][_0x49a80e(0x2d6)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x49a80e(0x23a))};if(_0x3a7ff6['apiKey'][_0x49a80e(0x2d6)]()[_0x49a80e(0x299)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x49a80e(0x224)]['t'](_0x49a80e(0x340))};try{let _0x9c135f=await this['_injector'][_0x49a80e(0x2de)](_0x4892eb['MCPConnectionController'])['validateApiKey'](_0x3a7ff6[_0x49a80e(0x21f)]['trim']());return _0x9c135f[_0x49a80e(0x287)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x9c135f[_0x49a80e(0x1ee)]||this[_0x49a80e(0x224)]['t'](_0x49a80e(0x1d8))};}catch(_0x3e3163){return console[_0x49a80e(0x276)](_0x49a80e(0x1de),_0x3e3163),{'isValid':!0x0};}}};_0x20adc2=_0x1bc844([_0x295925(0x0,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x2c8)])),_0x295925(0x1,_0x18c29b[_0x1abd98(0x2ad)]),_0x295925(0x2,_0x1911b9[_0x1abd98(0x28a)]),_0x295925(0x3,_0x1911b9[_0x1abd98(0x356)]),_0x295925(0x4,_0x18c29b[_0x1abd98(0x215)]),_0x295925(0x5,_0x18c29b[_0x1abd98(0x344)]),_0x295925(0x6,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x18c29b[_0x1abd98(0x33a)])),_0x295925(0x7,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x311)])),_0x295925(0x8,_0x1911b9[_0x1abd98(0x217)]),_0x295925(0x9,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x4892eb[_0x1abd98(0x2df)]))],_0x20adc2);let _0x5f0af1={'id':_0x1abd98(0x2d0),'type':_0x1911b9[_0x1abd98(0x2c3)]['COMMAND'],'handler':async(_0x1e5477,_0x421648)=>(_0x1e5477[_0x1abd98(0x2de)](_0x20adc2)[_0x1abd98(0x220)](),!0x0)};function _0x6b5645(_0x1fe57b,_0x48eefa){const _0x390d94=_0x1abd98;switch(_0x1fe57b){case _0x4892eb['MCPConnectionStatus'][_0x390d94(0x213)]:return'mcpStatus.disconnected';case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x2aa)]:return _0x390d94(0x223);case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x309)]:return _0x390d94(0x32b);case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x219)]:switch(_0x48eefa){case _0x4892eb[_0x390d94(0x1d1)]['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x4892eb[_0x390d94(0x1d1)][_0x390d94(0x2ac)]:return _0x390d94(0x2bd);case _0x4892eb[_0x390d94(0x1d1)]['NETWORK_ERROR']:return _0x390d94(0x307);case _0x4892eb['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x390d94(0x34f);default:return _0x390d94(0x270);}case _0x4892eb[_0x390d94(0x27e)][_0x390d94(0x343)]:return _0x390d94(0x1fc);default:return'mcpStatus.unknown';}}function _0x224952(_0x374126,_0x4f4c18,_0x53b175,_0x2bdaf0=!0x0){const _0x5819e3=_0x1abd98;let _0x38e616=_0x6b5645(_0x374126,_0x4f4c18),_0x1edd0d=_0x53b175['t'](_0x38e616);return _0x2bdaf0?_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x213)]&&_0x4f4c18===_0x4892eb[_0x5819e3(0x1d1)]['UNAUTHORIZED']?_0x1edd0d+_0x5819e3(0x34e)+_0x53b175['t'](_0x5819e3(0x29b)):_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x309)]?''+_0x1edd0d:_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x213)]||_0x374126===_0x4892eb[_0x5819e3(0x27e)][_0x5819e3(0x219)]?_0x1edd0d+_0x5819e3(0x34e)+_0x53b175['t']('mcpStatus.clickToConnect'):_0x1edd0d:_0x1edd0d;}function _0x48b546(_0x561574){const _0x55dda0=_0x1abd98;switch(_0x561574){case _0x4892eb[_0x55dda0(0x27e)][_0x55dda0(0x309)]:return'univer-text-green-500';case _0x4892eb[_0x55dda0(0x27e)][_0x55dda0(0x2aa)]:case _0x4892eb['MCPConnectionStatus'][_0x55dda0(0x343)]:return _0x55dda0(0x2da);case _0x4892eb[_0x55dda0(0x27e)]['FAILED']:case _0x4892eb[_0x55dda0(0x27e)][_0x55dda0(0x213)]:return _0x55dda0(0x288);default:return'univer-text-gray-500';}}function _0x1b446a(_0x167fdb){const _0x1896b0=_0x1abd98;let {status$:_0x156154,error$:_0x4fd206,onConfigure:_0x1e7a01,showClickable:_0x21b778=!0x0}=_0x167fdb,_0x485c0f=(0x0,_0x18c29b[_0x1896b0(0x338)])(_0x156154,_0x4892eb['MCPConnectionStatus'][_0x1896b0(0x213)]),_0x45ea23=(0x0,_0x18c29b[_0x1896b0(0x338)])(_0x4fd206,_0x4892eb[_0x1896b0(0x1d1)][_0x1896b0(0x33d)]),_0x13ff54=(0x0,_0x18c29b[_0x1896b0(0x2cb)])(_0x1911b9[_0x1896b0(0x311)]),_0xd9a0e7=_0x485c0f===_0x4892eb['MCPConnectionStatus'][_0x1896b0(0x309)];_0x485c0f===_0x4892eb[_0x1896b0(0x27e)][_0x1896b0(0x2aa)]||_0x4892eb[_0x1896b0(0x27e)][_0x1896b0(0x343)];let _0x12c7e2=_0x13ff54['t'](_0x6b5645(_0x485c0f,_0x45ea23)),_0x1da30b=_0x224952(_0x485c0f,_0x45ea23,_0x13ff54,_0x21b778),_0x4f8cb3=_0x48b546(_0x485c0f),_0x5d51b1=_0xd9a0e7?(0x0,_0x3edaaa['jsx'])(_0x4796b4,{}):(0x0,_0x3edaaa['jsx'])(_0x5b1c76,{}),_0x368e3f=(0x0,_0x477a26[_0x1896b0(0x218)])(()=>{_0x21b778&&_0x1e7a01&&_0x1e7a01();},[_0x21b778,_0x1e7a01]);function _0x3d361a(){const _0xe2f22b=_0x1896b0;return(0x0,_0x3edaaa['jsxs'])(_0xe2f22b(0x200),{'className':(0x0,_0x18bd2a['clsx'])('univer-flex\x20univer-items-center',_0x21b778&&_0x1e7a01&&_0xe2f22b(0x2f4)),'role':'button','onClick':_0x21b778&&_0x1e7a01?_0x368e3f:void 0x0,'children':[(0x0,_0x3edaaa[_0xe2f22b(0x264)])(_0xe2f22b(0x200),{'className':(0x0,_0x18bd2a[_0xe2f22b(0x298)])(_0xe2f22b(0x286),_0x4f8cb3),'children':_0x5d51b1}),(0x0,_0x3edaaa[_0xe2f22b(0x264)])(_0xe2f22b(0x200),{'className':_0xe2f22b(0x313),'children':_0x12c7e2})]});}return(0x0,_0x3edaaa[_0x1896b0(0x264)])(_0x18bd2a[_0x1896b0(0x357)],{'title':_0x1da30b,'placement':_0x1896b0(0x353),'children':_0x3d361a()});}let _0x4ec1b0=class extends _0x1911b9[_0x1abd98(0x20d)]{constructor(_0x3cf559,_0x1af7bc,_0x457b42,_0x1361b2){const _0x4667dd=_0x1abd98;super(),this[_0x4667dd(0x2d7)]=_0x3cf559,this[_0x4667dd(0x2e0)]=_0x1af7bc,this[_0x4667dd(0x322)]=_0x457b42,this[_0x4667dd(0x238)]=_0x1361b2,this['_initAutoConnect'](),this[_0x4667dd(0x250)]();}[_0x1abd98(0x308)](){const _0x34a51b=_0x1abd98;let _0x566430=this[_0x34a51b(0x238)][_0x34a51b(0x35d)](_0x2de6c4);_0x566430!=null&&_0x566430['showDeveloperTools']&&(this[_0x34a51b(0x2e0)][_0x34a51b(0x22b)]=!0x1);}['_initStatusComponent'](){const _0x27aa61=_0x1abd98;let _0x296d57=this[_0x27aa61(0x238)][_0x27aa61(0x35d)](_0x2de6c4);(_0x296d57==null?void 0x0:_0x296d57[_0x27aa61(0x296)])!==!0x1&&this[_0x27aa61(0x2f3)](this['_uiPartsService'][_0x27aa61(0x29d)](_0x18c29b[_0x27aa61(0x2ce)][_0x27aa61(0x35a)],()=>{const _0x5d0c23=_0x27aa61;var _0x39dc85;return(0x0,_0x18c29b['connectInjector'])(_0x4b32d9({'status$':this[_0x5d0c23(0x2e0)][_0x5d0c23(0x273)],'error$':this[_0x5d0c23(0x2e0)][_0x5d0c23(0x1f0)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x39dc85=_0x296d57==null?void 0x0:_0x296d57[_0x5d0c23(0x26f)])==null?!0x1:_0x39dc85}),this[_0x5d0c23(0x2d7)]);}));}[_0x1abd98(0x1ff)](){const _0x198b31=_0x1abd98;this[_0x198b31(0x2d7)]['get'](_0x20adc2)['showConfigPanel']();}};_0x4ec1b0=_0x1bc844([_0x295925(0x0,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x2c8)])),_0x295925(0x1,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x4892eb[_0x1abd98(0x2df)])),_0x295925(0x2,_0x18c29b[_0x1abd98(0x2ad)]),_0x295925(0x3,_0x1911b9[_0x1abd98(0x28a)])],_0x4ec1b0);function _0x4b32d9(_0x22dbc9){let {status$:_0xf771e5,error$:_0x53089d,onConfigure:_0x4bf4b2,showClickable:_0x554e17}=_0x22dbc9;return function(){const _0x48f92e=_0x462a;return(0x0,_0x3edaaa[_0x48f92e(0x264)])(_0x1b446a,{'status$':_0xf771e5,'error$':_0x53089d,'onConfigure':_0x4bf4b2,'showClickable':_0x554e17});};}function _0x489e72(_0x4103d3){const _0x4d410d=_0x1abd98;return{'id':_0x5f0af1['id'],'type':_0x18c29b[_0x4d410d(0x31a)][_0x4d410d(0x25e)],'icon':_0x4d410d(0x305),'title':'mcpConfig.title','tooltip':_0x4d410d(0x2f0)};}let _0x46cc52={[_0x18c29b[_0x1abd98(0x2e8)]['OTHERS']]:{[_0x5f0af1['id']]:{'order':0xa,'menuItemFactory':_0x489e72}}},_0x1abfd1=class extends _0x1911b9[_0x1abd98(0x20d)]{constructor(_0x50b42a,_0x848ced){const _0x236424=_0x1abd98;super(),this[_0x236424(0x21a)]=_0x50b42a,this[_0x236424(0x292)]=_0x848ced,this['_initializeCommands'](),this['_initializeMenus']();}[_0x1abd98(0x1f6)](){[_0x5f0af1]['forEach'](_0x125339=>{const _0x3962f9=_0x462a;this[_0x3962f9(0x2f3)](this['_commandService'][_0x3962f9(0x33c)](_0x125339));});}[_0x1abd98(0x1f2)](){const _0x2e346d=_0x1abd98;this[_0x2e346d(0x292)][_0x2e346d(0x30e)](_0x46cc52);}};_0x1abfd1=_0x1bc844([_0x295925(0x0,_0x1911b9[_0x1abd98(0x2b6)]),_0x295925(0x1,_0x18c29b[_0x1abd98(0x25d)])],_0x1abfd1);let _0x308166={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1abd98(0x2ee),'connected':_0x1abd98(0x1f4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1abd98(0x256),'unknown':_0x1abd98(0x360),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1abd98(0x24c),'networkError':_0x1abd98(0x31d),'maxRetriesExceeded':_0x1abd98(0x1dc),'clickToConnect':_0x1abd98(0x2b8),'clickToConfigure':_0x1abd98(0x1cd)},'mcpConfig':{'title':_0x1abd98(0x331),'description':_0x1abd98(0x23c),'apiKey':_0x1abd98(0x1c9),'apiKeyPlaceholder':_0x1abd98(0x310),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1abd98(0x1dd),'enableAuthHint':_0x1abd98(0x318),'connectionInfo':_0x1abd98(0x2e6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1abd98(0x28c),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1abd98(0x1da),'configStep3':_0x1abd98(0x1e6),'sessionId':_0x1abd98(0x28b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1abd98(0x2bc),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1abd98(0x26c),'save':'Save\x20Configuration','saving':_0x1abd98(0x27a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1abd98(0x1d5),'configSaved':_0x1abd98(0x316),'configError':_0x1abd98(0x29e),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1abd98(0x2ae),'univerAiLabel':_0x1abd98(0x2b9),'getStarted':_0x1abd98(0x329)},'validation':{'apiKeyRequired':_0x1abd98(0x2eb),'apiKeyTooShort':_0x1abd98(0x30a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1abd98(0x2a0)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1abd98(0x351),'failed':_0x1abd98(0x21b),'retrying':_0x1abd98(0x2c5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1abd98(0x348)}}},_0x35947b={'mcpStatus':{'disconnected':_0x1abd98(0x260),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x1abd98(0x1ed),'unknown':_0x1abd98(0x326),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x1abd98(0x317),'networkError':_0x1abd98(0x324),'maxRetriesExceeded':_0x1abd98(0x323),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x1abd98(0x2b0)},'mcpConfig':{'title':_0x1abd98(0x1e3),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1abd98(0x21d),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x1abd98(0x227),'enableAuth':_0x1abd98(0x1e4),'enableAuthHint':_0x1abd98(0x1f1),'connectionInfo':_0x1abd98(0x35b),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1abd98(0x2a6),'configStepTitle':_0x1abd98(0x1f3),'configStep1':_0x1abd98(0x2d4),'configStep2':_0x1abd98(0x2af),'configStep3':_0x1abd98(0x2d1),'sessionId':'会话ID','sessionIdDescription':_0x1abd98(0x20b),'authorizationDescription':_0x1abd98(0x2cc),'configParameters':_0x1abd98(0x2a9),'maxRetries':_0x1abd98(0x281),'save':'保存配置','saving':_0x1abd98(0x2a1),'note1':_0x1abd98(0x266),'note2':_0x1abd98(0x28f),'configSaved':_0x1abd98(0x205),'configError':_0x1abd98(0x279),'apiApplyInfo':{'title':_0x1abd98(0x333),'description':_0x1abd98(0x2f9),'univerAiLabel':_0x1abd98(0x269),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x1abd98(0x23e),'apiKeyTooShort':_0x1abd98(0x2f7),'invalidConfig':_0x1abd98(0x1d7),'invalidApiKey':_0x1abd98(0x2e3)},'connectionStatus':{'disconnected':_0x1abd98(0x257),'connecting':_0x1abd98(0x206),'connected':_0x1abd98(0x225),'failed':_0x1abd98(0x226),'retrying':_0x1abd98(0x345)},'connectionError':{'unauthorized':_0x1abd98(0x2c1),'sessionOccupied':_0x1abd98(0x1df),'networkError':_0x1abd98(0x352),'maxRetriesExceeded':_0x1abd98(0x1e7)}}};var _0x5b5e5c=_0x1abd98(0x274),_0x2cb732=_0x1abd98(0x2b3);let _0x12b8be=class extends _0x1911b9[_0x1abd98(0x24e)]{constructor(_0x41e2c8=_0x732be6,_0x17cae7,_0x1c90cc,_0x47d913,_0x422e8e,_0xa767da){const _0x70ddd5=_0x1abd98;super(),this[_0x70ddd5(0x30d)]=_0x41e2c8,this[_0x70ddd5(0x2d7)]=_0x17cae7,this['_configService']=_0x1c90cc,this[_0x70ddd5(0x322)]=_0x47d913,this[_0x70ddd5(0x1eb)]=_0x422e8e,this[_0x70ddd5(0x224)]=_0xa767da;let {..._0x10287a}=(0x0,_0x1911b9[_0x70ddd5(0x268)])({},_0x732be6,this[_0x70ddd5(0x30d)]);this[_0x70ddd5(0x238)][_0x70ddd5(0x242)](_0x2de6c4,_0x10287a);}async[_0x1abd98(0x312)](){const _0x1e7438=_0x1abd98;let _0x1a610e=[[_0x4ec1b0],[_0x20adc2],[_0x1abfd1]];this[_0x1e7438(0x2d7)][_0x1e7438(0x336)](_0x44589b[_0x1e7438(0x22a)])||_0x1a610e[_0x1e7438(0x2e7)]([_0x44589b[_0x1e7438(0x22a)],{'useClass':_0x44589b[_0x1e7438(0x222)]}]),_0x1a610e[_0x1e7438(0x259)](_0x7651a9=>this[_0x1e7438(0x2d7)][_0x1e7438(0x1d0)](_0x7651a9)),this[_0x1e7438(0x2d7)]['get'](_0x4ec1b0),this['_injector']['get'](_0x20adc2),this[_0x1e7438(0x2d7)][_0x1e7438(0x2de)](_0x1abfd1);}};_0x433eb1(_0x12b8be,_0x1abd98(0x247),_0x1abd98(0x314)),_0x433eb1(_0x12b8be,_0x1abd98(0x255),_0x5b5e5c),_0x433eb1(_0x12b8be,_0x1abd98(0x235),_0x2cb732),_0x12b8be=_0x1bc844([(0x0,_0x1911b9[_0x1abd98(0x2b1)])(_0x4892eb[_0x1abd98(0x2fb)]),_0x295925(0x1,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9[_0x1abd98(0x2c8)])),_0x295925(0x2,_0x1911b9[_0x1abd98(0x28a)]),_0x295925(0x3,_0x18c29b[_0x1abd98(0x2ad)]),_0x295925(0x4,_0x1911b9[_0x1abd98(0x356)]),_0x295925(0x5,(0x0,_0x1911b9[_0x1abd98(0x22e)])(_0x1911b9['LocaleService']))],_0x12b8be),_0x54b705['MCPConfigPanel']=_0x4ab373,Object[_0x1abd98(0x31e)](_0x54b705,_0x1abd98(0x20c),{'enumerable':!0x0,'get':function(){return _0x20adc2;}}),Object[_0x1abd98(0x31e)](_0x54b705,_0x1abd98(0x2a2),{'enumerable':!0x0,'get':function(){return _0x4ec1b0;}}),_0x54b705[_0x1abd98(0x294)]=_0x1b446a,Object[_0x1abd98(0x31e)](_0x54b705,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return _0x1abfd1;}}),_0x54b705['OpenMCPConfigPanelCommand']=_0x5f0af1,Object[_0x1abd98(0x31e)](_0x54b705,_0x1abd98(0x22c),{'enumerable':!0x0,'get':function(){return _0x12b8be;}}),_0x54b705[_0x1abd98(0x342)]=_0x308166,_0x54b705[_0x1abd98(0x1fa)]=_0x35947b;}));function _0x437d(){const _0x1af4d9=['white','toPrimitive','fill','pluginName','218744tcsidy','useState','includes','label','MCP:\x20Session\x20ID\x20Occupied','tag','Plugin','jsxs','_initStatusComponent','_initConfigSync','https://console.univer.plus','replace','mcpConfig.apiKeyHint','packageName','MCP\x20Retrying...','未连接','decorate','forEach','off','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','CloseIcon','IMenuManagerService','BUTTON','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','MCP\x20已断开','_logService','close-icon','idSuffix','jsx','http://www.w3.org/2000/svg','配置更改将立即生效','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','merge','Univer\x20AI\x20控制台','univer-bg-green-500','mcpConfig.save','Max\x20Retries','mcpConfig.note2','off-line-icon','showDeveloperTools','mcpStatus.failed','amd','mcpConfig.sessionIdDescription','connectionStatus$','@univerjs-pro/mcp-ui','url(#$1','warn','path','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','配置保存失败','Saving...','OffLineIcon','assign','univer-flex\x20univer-items-center\x20univer-gap-3','MCPConnectionStatus','getOwnPropertyDescriptor','mcpConfig.apiApplyInfo.getStarted','最大重试次数','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-items-start\x20univer-gap-2','UNAUTHORIZED','url(#on-line-icon_clip0_910_349)','univer-mr-2\x20univer-flex\x20univer-text-xl','isValid','univer-text-red-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','IConfigService','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex-1','object','您的\x20API\x20密钥安全存储在本地存储中','value','_mcpCoreConfig$','_menuManagerService','univer-text-sm\x20univer-font-medium','MCPStatusDisplay','clipPath','showStatus','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','clsx','length','CheckMarkIcon','mcpStatus.clickToConfigure','removeItem','registerComponent','Failed\x20to\x20save\x20configuration','symbol','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','保存中...','MCPConnectionUIController','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-text-xs\x20univer-text-gray-500','map','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.apiApplyInfo.description','on-line-icon','配置参数:','CONNECTING','getCurrentConfig','SESSION_ID_OCCUPIED','IUIPartsService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','将配置添加到您的\x20MCP\x20客户端设置文件中','点击配置\x20MCP','DependentOn','mcpConfig.apiApplyInfo.title','0.21.0','forwardRef','on-line-icon_clip0_910_349','ICommandService','@univerjs/design','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','_componentManager','mcpConfig.connectionInfo','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.sessionOccupied','createElement','mcp.apiKey','univer-font-medium','权限验证失败,请检查您的\x20API\x20密钥','Configuration\x20Notes:','CommandType','_loading$','Retrying...','@univerjs/ui','close','Injector','https://console.univer.ai','mcpConfig.connectionStatus.connected','useDependency','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','BuiltInUIPart','xlink:href','mcp-ui.command.openConfigPanel','重启您的\x20MCP\x20客户端以使配置生效','subscribeConfigValue$','univer-flex\x20univer-gap-3','复制以下\x20JSON\x20配置','constructor','trim','_injector','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','button','univer-text-yellow-500','string','_validateConfig','mcpConfig.connectionStatus.failed','get','MCPConnectionController','_connectionController','UniverCore','mcpConfig.configError','API\x20密钥无效,请检查密钥是否正确','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','<SESSION_ID>','MCP\x20Client\x20Configuration','push','RibbonStartGroup','https://mcp.univer.ai/mcp/?univer_session_id=','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','API\x20key\x20is\x20required','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP\x20Connecting...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.title','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','@univerjs-pro/mcp','disposeWithMe','\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','M0\x200H16V16H0z','entries','API\x20密钥长度至少需要\x2010\x20位','sessionId$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','off-line-icon_clip0_910_343','UniverMCPPlugin','default','@univerjs/network','mcpConfig.configStep2','UniverUi','BehaviorSubject','Bearer\x20','UniverIcon','univer.plus','none','MenuIcon','prototype','mcpStatus.networkError','_initAutoConnect','CONNECTED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-text-xs\x20univer-text-gray-600','mcpConfig.authorizationDescription','_config','mergeMenu','mcpConfig.apiApplyInfo.univerAiLabel','Enter\x20your\x20API\x20key','LocaleService','onStarting','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP_UI_PLUGIN','mask','Configuration\x20saved\x20successfully','MCP:\x20会话\x20ID\x20已被占用','Enable\x20authentication\x20for\x20secure\x20connections','React','MenuItemType','random','_handleConfigSave','MCP:\x20Network\x20Error','defineProperty','univer-text-blue-600','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-2','_uiPartsService','MCP:\x20超出最大重试次数','MCP:\x20网络错误','mcpConfig.connectionStatus.retrying','MCP\x20状态未知','Button','_dialogService','Get\x20your\x20API\x20key\x20in\x20seconds','text','mcpStatus.connected','MCP_PLUGIN_CONFIG_KEY','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','defs','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','colorChannel1','MCP\x20Configuration','univer_session_id:','什么是\x20API\x20密钥?','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','UniverProMcp','has','univer-min-w-0\x20univer-flex-1','useObservable','pre','ComponentManager','mcpServerUrl','registerCommand','NONE','mcp-config-dialog','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.validation.apiKeyTooShort','NETWORK_ERROR','enUS','RETRYING','IMessageService','重连中...','40TksIbL','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','react','UniverProMcpUi','_registerComponent','\x20-\x20','mcpStatus.maxRetriesExceeded','168133AUwwdg','Connected','网络连接错误,请检查您的网络连接','bottom','rxjs','univer.ai','ILocalStorageService','Tooltip','MAX_RETRIES_EXCEEDED','evenodd','HEADER_MENU','MCP\x20客户端配置','univer-flex\x20univer-flex-wrap\x20univer-gap-2','getConfig','697835zXkscm','<API_KEY>','MCP\x20Unknown\x20Status','univer-text-gray-400','175638rWVokJ','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20Key','Error','next','mcpConfig.connectionError.sessionOccupied','Click\x20to\x20configure\x20MCP','setItem','toStringTag','add','MCPConnectionError','function','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','97899pXqdrH','配置无效','mcpConfig.validation.invalidApiKey','1em','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_mcpConnectionController','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','会话\x20ID\x20已被占用,请稍后再试','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-size-4','__setCustomHeaders','MCP\x20配置','启用身份验证','show','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','超出最大重试次数,请稍后再试','univer-shrink-0\x20univer-text-red-500','displayName','round','_localStorageService','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','MCP\x20重连中...','error','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','connectionError$','启用身份验证以获得安全连接','_initializeMenus','配置步骤:','MCP\x20Connected','Success','_initializeCommands','span','errorMessage','MessageType','zhCN','0\x200\x2017\x2016','mcpStatus.retrying','Authorization:','_config$','_handleConfigure','div','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','UniverNetwork','79632jIBLfM','配置保存成功','连接中...','attrs','stringify','mcpConfig.configParameters','_loadStoredApiKey','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCPConfigUIController','Disposable','_createConfigPanelComponent','Module','_messageService','univer-bg-red-500','svg','DISCONNECTED','_apiKey$','IDialogService','univerjs-icon\x20univerjs-icon-','ILogService','useCallback','FAILED','_commandService','Connection\x20Failed','mcpConfig.connectionStatus.disconnected','API\x20密钥','mcpConfig.connectionStatus.connecting','apiKey','showConfigPanel','mcpConfig.configStep3','WebSocketService','mcpStatus.connecting','_localeService','已连接','连接失败','您的\x20API\x20密钥将在此浏览器中本地存储','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','useRef','ISocketService','enableAutoConnect','UniverMCPUIPlugin','check-mark-icon','Inject','univer-shrink-0\x20univer-text-blue-500','mcpConfig.connectionError.networkError','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configSaved','MCPConfigPanel','connectInjector','version','currentColor','getItem','_configService','exports','mcpConfig.validation.apiKeyRequired','mcpConfig.configStepTitle','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','0\x200\x2016\x2016','API\x20密钥不能为空','mcpConfig.connectionError.unauthorized','univer-bg-blue-500','http','setConfig','424508pWSFmK'];_0x437d=function(){return _0x1af4d9;};return _0x437d();}
|