@univerjs-pro/mcp-ui 0.22.1 → 0.23.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/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5f1da2=_0x1135;(function(_0x2b7d74,_0x598666){const _0x598d25=_0x1135,_0x55d4d3=_0x2b7d74();while(!![]){try{const _0x3e0991=parseInt(_0x598d25(0x178))/0x1*(-parseInt(_0x598d25(0x18b))/0x2)+parseInt(_0x598d25(0x1a2))/0x3*(parseInt(_0x598d25(0x1a9))/0x4)+-parseInt(_0x598d25(0x1a3))/0x5*(-parseInt(_0x598d25(0x182))/0x6)+-parseInt(_0x598d25(0x19d))/0x7+-parseInt(_0x598d25(0x194))/0x8*(parseInt(_0x598d25(0x1a0))/0x9)+-parseInt(_0x598d25(0x17d))/0xa+parseInt(_0x598d25(0x19b))/0xb;if(_0x3e0991===_0x598666)break;else _0x55d4d3['push'](_0x55d4d3['shift']());}catch(_0x165775){_0x55d4d3['push'](_0x55d4d3['shift']());}}}(_0x119b,0x916e9));const e={'mcpStatus':{'disconnected':_0x5f1da2(0x196),'connecting':_0x5f1da2(0x187),'connected':'MCP\x20Connected','failed':_0x5f1da2(0x18a),'retrying':_0x5f1da2(0x1a1),'unknown':_0x5f1da2(0x1a4),'unauthorized':_0x5f1da2(0x17b),'sessionOccupied':_0x5f1da2(0x180),'networkError':_0x5f1da2(0x1ab),'maxRetriesExceeded':_0x5f1da2(0x19c),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5f1da2(0x195),'description':_0x5f1da2(0x1aa),'apiKey':_0x5f1da2(0x17c),'apiKeyPlaceholder':_0x5f1da2(0x192),'apiKeyHint':_0x5f1da2(0x197),'enableAuth':_0x5f1da2(0x184),'enableAuthHint':_0x5f1da2(0x18e),'connectionInfo':_0x5f1da2(0x179),'mcpClientConfig':_0x5f1da2(0x179),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5f1da2(0x188),'configStep1':_0x5f1da2(0x189),'configStep2':_0x5f1da2(0x19e),'configStep3':_0x5f1da2(0x1a5),'sessionId':'Session\x20ID','sessionIdDescription':_0x5f1da2(0x181),'authorizationDescription':_0x5f1da2(0x1a8),'configParameters':_0x5f1da2(0x1a7),'maxRetries':_0x5f1da2(0x17e),'save':_0x5f1da2(0x17f),'saving':_0x5f1da2(0x18d),'note1':_0x5f1da2(0x18f),'note2':_0x5f1da2(0x186),'configSaved':_0x5f1da2(0x185),'configError':_0x5f1da2(0x193),'apiApplyInfo':{'title':_0x5f1da2(0x183),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x5f1da2(0x191),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5f1da2(0x199),'apiKeyTooShort':_0x5f1da2(0x19f),'invalidConfig':_0x5f1da2(0x18c),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5f1da2(0x198),'connecting':_0x5f1da2(0x1ac),'connected':_0x5f1da2(0x1a6),'failed':'Connection\x20Failed','retrying':_0x5f1da2(0x17a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5f1da2(0x190),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x1135(_0x9689c5,_0x582621){_0x9689c5=_0x9689c5-0x178;const _0x119b99=_0x119b();let _0x113586=_0x119b99[_0x9689c5];return _0x113586;}module[_0x5f1da2(0x19a)]=e;function _0x119b(){const _0x247ade=['MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','8vYfrNt','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Connecting...','35406oDCJhS','MCP\x20Client\x20Configuration','Retrying...','MCP:\x20Unauthorized','API\x20Key','9095610EJuTww','Max\x20Retries','Save\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','6912dKXyOL','What\x20is\x20API\x20Key?','Enable\x20Authentication','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connecting...','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','2LcJdAb','Invalid\x20configuration','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','168424UUuYzQ','MCP\x20Configuration','MCP\x20Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','API\x20key\x20is\x20required','exports','4316290yiEnsX','MCP:\x20Max\x20Retries\x20Exceeded','259581viedJQ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','297OixnNq','MCP\x20Retrying...','1359987hbotIe','4225SoioXT'];_0x119b=function(){return _0x247ade;};return _0x119b();}
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x39bb1a=_0x24a7;function _0x24a7(_0x59c38c,_0x287209){_0x59c38c=_0x59c38c-0xa2;const _0x39840b=_0x3984();let _0x24a7ce=_0x39840b[_0x59c38c];return _0x24a7ce;}function _0x3984(){const _0x1cadae=['1728627nuuirD','API\x20kľúč','10sMcEJV','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Parametre\x20konfigurácie:','Pripojenie\x20zlyhalo','Kroky\x20konfigurácie:','567721sNItba','ID\x20relácie','Pripojenie\x20MCP\x20zlyhalo','MCP\x20sa\x20pripája...','49hjVkLr','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Pripojené','Pripája\x20sa...','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Uložiť\x20konfiguráciu','422294sQUEXc','74322Jfcksd','Kliknite\x20na\x20pripojenie\x20MCP','Ukladá\x20sa...','exports','6100hWKZBe','2dFqWeR','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','MCP:\x20ID\x20relácie\x20je\x20obsadené','Zadajte\x20svoj\x20API\x20kľúč','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','API\x20kľúč\x20je\x20povinný','1964aCXvnZ','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','1059688XAfkZd','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','MCP\x20pripojené','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','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.','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.','MCP\x20odpojené','MCP\x20opakuje\x20pokus...','MCP:\x20Sieťová\x20chyba','MCP:\x20Neautorizované','Čo\x20je\x20API\x20kľúč?','Kliknite\x20na\x20konfiguráciu\x20MCP','MCP:\x20Prekročený\x20počet\x20pokusov','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','6140358UvEFWN','264vENFYw','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Neplatná\x20konfigurácia'];_0x3984=function(){return _0x1cadae;};return _0x3984();}(function(_0x523f28,_0x59e0a2){const _0xc3762a=_0x24a7,_0x44f7b6=_0x523f28();while(!![]){try{const _0xa87a90=parseInt(_0xc3762a(0xd1))/0x1*(-parseInt(_0xc3762a(0xcb))/0x2)+parseInt(_0xc3762a(0xb8))/0x3+-parseInt(_0xc3762a(0xa4))/0x4*(-parseInt(_0xc3762a(0xd0))/0x5)+-parseInt(_0xc3762a(0xcc))/0x6*(parseInt(_0xc3762a(0xc4))/0x7)+parseInt(_0xc3762a(0xa6))/0x8+parseInt(_0xc3762a(0xb4))/0x9*(parseInt(_0xc3762a(0xba))/0xa)+parseInt(_0xc3762a(0xc0))/0xb*(-parseInt(_0xc3762a(0xb5))/0xc);if(_0xa87a90===_0x59e0a2)break;else _0x44f7b6['push'](_0x44f7b6['shift']());}catch(_0xc86ee0){_0x44f7b6['push'](_0x44f7b6['shift']());}}}(_0x3984,0x545a3));const e={'mcpStatus':{'disconnected':_0x39bb1a(0xac),'connecting':_0x39bb1a(0xc3),'connected':_0x39bb1a(0xa8),'failed':_0x39bb1a(0xc2),'retrying':_0x39bb1a(0xad),'unknown':'MCP\x20neznámy\x20stav','unauthorized':_0x39bb1a(0xaf),'sessionOccupied':_0x39bb1a(0xd3),'networkError':_0x39bb1a(0xae),'maxRetriesExceeded':_0x39bb1a(0xb2),'clickToConnect':_0x39bb1a(0xcd),'clickToConfigure':_0x39bb1a(0xb1)},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':_0x39bb1a(0xbb),'apiKey':_0x39bb1a(0xb9),'apiKeyPlaceholder':_0x39bb1a(0xd4),'apiKeyHint':_0x39bb1a(0xc9),'enableAuth':'Povoliť\x20overenie','enableAuthHint':_0x39bb1a(0xb3),'connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':'Konfigurácia\x20klienta\x20MCP','configInstructions':_0x39bb1a(0xa7),'configStepTitle':_0x39bb1a(0xbf),'configStep1':_0x39bb1a(0xa2),'configStep2':_0x39bb1a(0xd2),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x39bb1a(0xc1),'sessionIdDescription':_0x39bb1a(0xab),'authorizationDescription':_0x39bb1a(0xbc),'configParameters':_0x39bb1a(0xbd),'maxRetries':'Maximálny\x20počet\x20pokusov','save':_0x39bb1a(0xca),'saving':_0x39bb1a(0xce),'note1':'Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','note2':'Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','configSaved':'Konfigurácia\x20bola\x20úspešne\x20uložená','configError':'Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','apiApplyInfo':{'title':_0x39bb1a(0xb0),'description':_0x39bb1a(0xaa),'univerAiLabel':'Univer\x20AI\x20konzola','getStarted':_0x39bb1a(0xa5)},'validation':{'apiKeyRequired':_0x39bb1a(0xa3),'apiKeyTooShort':_0x39bb1a(0xc8),'invalidConfig':_0x39bb1a(0xb7),'invalidApiKey':_0x39bb1a(0xa9)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x39bb1a(0xc7),'connected':_0x39bb1a(0xc6),'failed':_0x39bb1a(0xbe),'retrying':'Skúša\x20sa\x20znova...'},'connectionError':{'unauthorized':_0x39bb1a(0xc5),'sessionOccupied':_0x39bb1a(0xb6),'networkError':'Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','maxRetriesExceeded':'Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr'}}};module[_0x39bb1a(0xcf)]=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x15192e=_0x10f8;(function(_0x34a5a5,_0x1ad332){const _0x226006=_0x10f8,_0x15f687=_0x34a5a5();while(!![]){try{const _0x4507d1=-parseInt(_0x226006(0x9f))/0x1*(parseInt(_0x226006(0x91))/0x2)+-parseInt(_0x226006(0xa6))/0x3*(-parseInt(_0x226006(0x8c))/0x4)+-parseInt(_0x226006(0x8d))/0x5*(parseInt(_0x226006(0xa0))/0x6)+-parseInt(_0x226006(0xa3))/0x7+-parseInt(_0x226006(0x8e))/0x8+-parseInt(_0x226006(0x89))/0x9+parseInt(_0x226006(0x7e))/0xa;if(_0x4507d1===_0x1ad332)break;else _0x15f687['push'](_0x15f687['shift']());}catch(_0x54fe1f){_0x15f687['push'](_0x15f687['shift']());}}}(_0x2e90,0x5c9f5));function _0x10f8(_0x17489b,_0x2773a5){_0x17489b=_0x17489b-0x7a;const _0x2e90f5=_0x2e90();let _0x10f8ef=_0x2e90f5[_0x17489b];return _0x10f8ef;}const e={'mcpStatus':{'disconnected':_0x15192e(0xa7),'connecting':_0x15192e(0x84),'connected':_0x15192e(0x7a),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':_0x15192e(0xa5),'unknown':_0x15192e(0x94),'unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':_0x15192e(0x86),'networkError':_0x15192e(0x82),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x15192e(0x96)},'mcpConfig':{'title':_0x15192e(0x7f),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x15192e(0x88),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x15192e(0xa4),'enableAuth':_0x15192e(0x87),'enableAuthHint':_0x15192e(0xab),'connectionInfo':_0x15192e(0x85),'mcpClientConfig':_0x15192e(0x85),'configInstructions':_0x15192e(0x97),'configStepTitle':_0x15192e(0x99),'configStep1':_0x15192e(0x83),'configStep2':_0x15192e(0x9e),'configStep3':_0x15192e(0x9b),'sessionId':_0x15192e(0x8b),'sessionIdDescription':'Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','authorizationDescription':_0x15192e(0x9c),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':_0x15192e(0x8a),'saving':_0x15192e(0x7c),'note1':_0x15192e(0xa1),'note2':_0x15192e(0x81),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x15192e(0x9d),'apiApplyInfo':{'title':_0x15192e(0xa2),'description':_0x15192e(0x7d),'univerAiLabel':_0x15192e(0x8f),'getStarted':_0x15192e(0xa8)},'validation':{'apiKeyRequired':_0x15192e(0xaa),'apiKeyTooShort':_0x15192e(0x80),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':'Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không'},'connectionStatus':{'disconnected':_0x15192e(0x92),'connecting':_0x15192e(0x98),'connected':_0x15192e(0x9a),'failed':_0x15192e(0x90),'retrying':_0x15192e(0x95)},'connectionError':{'unauthorized':_0x15192e(0xa9),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x15192e(0x93),'maxRetriesExceeded':_0x15192e(0x7b)}}};function _0x2e90(){const _0x340767=['MCP\x20Đã\x20kết\x20nối','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Đang\x20lưu...','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.','23914370dNodJj','Cấu\x20hình\x20MCP','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','MCP:\x20Lỗi\x20mạng','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','MCP\x20Đang\x20kết\x20nối...','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Bật\x20xác\x20thực','Khóa\x20API','6347511HRYxaM','Lưu\x20cấu\x20hình','ID\x20phiên','56visQwo','5agTyfR','4635000cQIqQt','Bảng\x20điều\x20khiển\x20Univer\x20AI','Kết\x20nối\x20thất\x20bại','2TwYPgU','Đã\x20ngắt\x20kết\x20nối','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Đang\x20thử\x20lại...','Nhấp\x20để\x20cấu\x20hình\x20MCP','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Đang\x20kết\x20nối...','Các\x20bước\x20cấu\x20hình:','Đã\x20kết\x20nối','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Lưu\x20cấu\x20hình\x20thất\x20bại','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','131317cGSfIw','2843214yzPkNg','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Khóa\x20API\x20là\x20gì?','3157336WMcXsZ','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','MCP\x20Đang\x20thử\x20lại...','70464gbjiTM','MCP\x20Đã\x20ngắt\x20kết\x20nối','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Yêu\x20cầu\x20khóa\x20API','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn'];_0x2e90=function(){return _0x340767;};return _0x2e90();}module['exports']=e;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x458304=_0x31d0;(function(_0x5c114f,_0x23cc41){const _0xbc7429=_0x31d0,_0x29571f=_0x5c114f();while(!![]){try{const _0x3cc588=parseInt(_0xbc7429(0x10b))/0x1+parseInt(_0xbc7429(0xf4))/0x2+-parseInt(_0xbc7429(0xee))/0x3+parseInt(_0xbc7429(0x101))/0x4+-parseInt(_0xbc7429(0xef))/0x5*(-parseInt(_0xbc7429(0x116))/0x6)+-parseInt(_0xbc7429(0x10d))/0x7*(parseInt(_0xbc7429(0xf9))/0x8)+parseInt(_0xbc7429(0xe9))/0x9*(-parseInt(_0xbc7429(0x114))/0xa);if(_0x3cc588===_0x23cc41)break;else _0x29571f['push'](_0x29571f['shift']());}catch(_0x59cc5d){_0x29571f['push'](_0x29571f['shift']());}}}(_0x176c,0x89cfd));function _0x31d0(_0x3f75f4,_0x507e33){_0x3f75f4=_0x3f75f4-0xe9;const _0x176c90=_0x176c();let _0x31d0c2=_0x176c90[_0x3f75f4];return _0x31d0c2;}const e={'mcpStatus':{'disconnected':_0x458304(0xf8),'connecting':_0x458304(0xf0),'connected':_0x458304(0xfe),'failed':_0x458304(0x113),'retrying':_0x458304(0xfb),'unknown':_0x458304(0x115),'unauthorized':_0x458304(0x107),'sessionOccupied':_0x458304(0x11b),'networkError':_0x458304(0x10e),'maxRetriesExceeded':_0x458304(0x110),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x458304(0xfc)},'mcpConfig':{'title':_0x458304(0xf1),'description':_0x458304(0x104),'apiKey':_0x458304(0x10a),'apiKeyPlaceholder':_0x458304(0x109),'apiKeyHint':_0x458304(0x108),'enableAuth':_0x458304(0xf2),'enableAuthHint':_0x458304(0xf3),'connectionInfo':_0x458304(0xfd),'mcpClientConfig':_0x458304(0xfd),'configInstructions':_0x458304(0xf6),'configStepTitle':_0x458304(0x10f),'configStep1':_0x458304(0x119),'configStep2':_0x458304(0x100),'configStep3':_0x458304(0x105),'sessionId':_0x458304(0xf5),'sessionIdDescription':_0x458304(0xec),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x458304(0xed),'save':_0x458304(0x118),'saving':_0x458304(0xf7),'note1':_0x458304(0xeb),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x458304(0xfa),'apiApplyInfo':{'title':_0x458304(0x111),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x458304(0x11a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x458304(0x10c),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x458304(0xea),'connecting':_0x458304(0x112),'connected':_0x458304(0x117),'failed':_0x458304(0x103),'retrying':_0x458304(0x102)},'connectionError':{'unauthorized':_0x458304(0xff),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x458304(0x106),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module['exports']=e;function _0x176c(){const _0x334c91=['未连接','配置更改将立即生效','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','最大重试次数','169815rmGFHq','47445mEIQsg','MCP\x20连接中...','MCP\x20配置','启用身份验证','启用身份验证以获得安全连接','1256548UKLoPC','会话ID','将以下配置添加到您的\x20MCP\x20客户端设置中:','保存中...','MCP\x20已断开','520pPZkCO','配置保存失败','MCP\x20重连中...','点击配置\x20MCP','MCP\x20客户端配置','MCP\x20已连接','权限验证失败,请检查您的\x20API\x20密钥','将配置添加到您的\x20MCP\x20客户端设置文件中','875832FFDrMG','重连中...','连接失败','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重启您的\x20MCP\x20客户端以使配置生效','网络连接错误,请检查您的网络连接','MCP:\x20未授权','您的\x20API\x20密钥将在此浏览器中本地存储','请输入您的\x20API\x20密钥','API\x20密钥','489562vfJPFd','配置无效','62503dUFiAi','MCP:\x20网络错误','配置步骤:','MCP:\x20超出最大重试次数','什么是\x20API\x20密钥?','连接中...','MCP\x20连接失败','519380xMGwkS','MCP\x20状态未知','210EMkpwe','已连接','保存配置','复制以下\x20JSON\x20配置','几秒钟内获取您的\x20API\x20密钥','MCP:\x20会话\x20ID\x20已被占用','81oYxjNa'];_0x176c=function(){return _0x334c91;};return _0x176c();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xdbadcf=_0x20b5;function _0x5cf1(){const _0x39111d=['MCP\x20Configuration','Saving...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Parameters:','MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','MCP\x20Disconnected','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','10780JAlKwp','1414491XPGLxI','2040952mWOsZQ','6404142DTcqNy','Connection\x20Failed','Retrying...','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','39611160zlDRGP','5XYBmYM','7246712HUmkuS','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','exports','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2360CfPjsb','MCP\x20Connection\x20Failed','5587437JsKEGB','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:'];_0x5cf1=function(){return _0x39111d;};return _0x5cf1();}(function(_0x749de8,_0x316448){const _0xa3c152=_0x20b5,_0xb2539b=_0x749de8();while(!![]){try{const _0x234125=-parseInt(_0xa3c152(0x70))/0x1+parseInt(_0xa3c152(0x71))/0x2+-parseInt(_0xa3c152(0x8f))/0x3+-parseInt(_0xa3c152(0x83))/0x4+parseInt(_0xa3c152(0x82))/0x5*(parseInt(_0xa3c152(0x72))/0x6)+parseInt(_0xa3c152(0x6f))/0x7*(-parseInt(_0xa3c152(0x8d))/0x8)+parseInt(_0xa3c152(0x81))/0x9;if(_0x234125===_0x316448)break;else _0xb2539b['push'](_0xb2539b['shift']());}catch(_0x4ce452){_0xb2539b['push'](_0xb2539b['shift']());}}}(_0x5cf1,0xe6fcd));function _0x20b5(_0x2ae23f,_0x333b37){_0x2ae23f=_0x2ae23f-0x6d;const _0x5cf121=_0x5cf1();let _0x20b522=_0x5cf121[_0x2ae23f];return _0x20b522;}const e={'mcpStatus':{'disconnected':_0xdbadcf(0x9b),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0xdbadcf(0x8e),'retrying':'MCP\x20Retrying...','unknown':_0xdbadcf(0x76),'unauthorized':_0xdbadcf(0x97),'sessionOccupied':_0xdbadcf(0x91),'networkError':_0xdbadcf(0x87),'maxRetriesExceeded':_0xdbadcf(0x8a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xdbadcf(0x93),'description':_0xdbadcf(0x99),'apiKey':_0xdbadcf(0x84),'apiKeyPlaceholder':_0xdbadcf(0x6d),'apiKeyHint':_0xdbadcf(0x8c),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xdbadcf(0x80),'connectionInfo':_0xdbadcf(0x78),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xdbadcf(0x90),'configStepTitle':_0xdbadcf(0x92),'configStep1':_0xdbadcf(0x98),'configStep2':_0xdbadcf(0x79),'configStep3':_0xdbadcf(0x95),'sessionId':_0xdbadcf(0x89),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xdbadcf(0x77),'configParameters':_0xdbadcf(0x96),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0xdbadcf(0x94),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xdbadcf(0x7f),'configSaved':_0xdbadcf(0x8b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xdbadcf(0x75),'description':_0xdbadcf(0x7d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xdbadcf(0x85)},'validation':{'apiKeyRequired':_0xdbadcf(0x7b),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xdbadcf(0x7e),'invalidApiKey':_0xdbadcf(0x7c)},'connectionStatus':{'disconnected':_0xdbadcf(0x7a),'connecting':'Connecting...','connected':_0xdbadcf(0x9a),'failed':_0xdbadcf(0x73),'retrying':_0xdbadcf(0x74)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xdbadcf(0x6e),'networkError':_0xdbadcf(0x86),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0xdbadcf(0x88)]=e;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe5c988=_0x19ff;(function(_0x29c6de,_0xf448e6){const _0x1a91e8=_0x19ff,_0x309839=_0x29c6de();while(!![]){try{const _0x59c7dc=parseInt(_0x1a91e8(0xc0))/0x1+parseInt(_0x1a91e8(0x104))/0x2*(parseInt(_0x1a91e8(0xce))/0x3)+parseInt(_0x1a91e8(0xf8))/0x4*(parseInt(_0x1a91e8(0x93))/0x5)+-parseInt(_0x1a91e8(0x17c))/0x6*(-parseInt(_0x1a91e8(0x153))/0x7)+-parseInt(_0x1a91e8(0xe4))/0x8+parseInt(_0x1a91e8(0x11b))/0x9+-parseInt(_0x1a91e8(0x17f))/0xa;if(_0x59c7dc===_0xf448e6)break;else _0x309839['push'](_0x309839['shift']());}catch(_0xcc703){_0x309839['push'](_0x309839['shift']());}}}(_0x26f5,0xc0aa1));import{CommandType,DependentOn,Disposable,ICommandService,IConfigService,ILocalStorageService,ILogService,Inject,Injector,LocaleService,Plugin,merge}from'@univerjs/core';import{MCPConnectionController,MCPConnectionError,MCPConnectionStatus,MCP_PLUGIN_CONFIG_KEY,UniverMCPPlugin}from'@univerjs-pro/mcp';import{Button,Input,MessageType,Tooltip,clsx}from'@univerjs/design';import{BuiltInUIPart,ComponentManager,IDialogService,IMenuManagerService,IMessageService,IUIPartsService,MenuItemType,RibbonStartGroup,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject}from'rxjs';import{CheckMarkIcon,CloseIcon,HelpIcon,OffLineIcon,OnLineIcon}from'@univerjs/icons';import{useCallback,useState}from'react';import{jsx,jsxs}from'react/jsx-runtime';import{ISocketService,WebSocketService}from'@univerjs/network';function MCPConfigPanel(_0x8c4cbb){const _0x3561f4=_0x19ff;var _0x25aa38,_0x5b3f1e;const {mcpCoreConfig:_0xdc9199,onSave:_0x2f46bc,loading:loading=![],config:_0x3ba388,connectionStatus$:_0x5699f3,connectionError$:_0x32bb85,currentApiKey$:_0x45d3d8,currentSessionId$:_0x2f1c39}=_0x8c4cbb,_0x3952f4=useDependency(LocaleService),_0x30207=useObservable(_0x5699f3,MCPConnectionStatus[_0x3561f4(0x72)]),_0x1a1371=useObservable(_0x32bb85,MCPConnectionError[_0x3561f4(0xbf)]),_0x52536a=useObservable(_0x2f1c39,''),[_0x3a62e5,_0x321f4e]=useState(useObservable(_0x45d3d8,'')||''),_0x5965af=!![],_0x540380=_0x3ba388[_0x3561f4(0x100)]&&_0xdc9199[_0x3561f4(0x6d)]&&(_0xdc9199['mcpServerUrl'][_0x3561f4(0xed)](_0x3561f4(0x158))||_0xdc9199[_0x3561f4(0x6d)][_0x3561f4(0xed)]('univer.ai')),_0x5388fa=(_0x25aa38=_0xdc9199[_0x3561f4(0x6d)])===null||_0x25aa38===void 0x0?void 0x0:_0x25aa38[_0x3561f4(0xed)](_0x3561f4(0x158)),_0x488b69=(_0x5b3f1e=_0xdc9199[_0x3561f4(0x6d)])===null||_0x5b3f1e===void 0x0?void 0x0:_0x5b3f1e[_0x3561f4(0xed)](_0x3561f4(0x9a)),_0x38b71c=_0x5388fa?_0x3561f4(0xd8):_0x3561f4(0x134),_0x2587a3=_0x3ba388[_0x3561f4(0x100)]&&(_0x5388fa||_0x488b69),[_0x371c10,_0xb759d]=useState(!_0x3a62e5[_0x3561f4(0xe8)]()),_0x3a8050=(_0x187e13,_0x47c9a2)=>{const _0x2a2b9e=_0x3561f4;if(_0x47c9a2===MCPConnectionError[_0x2a2b9e(0x15c)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x187e13){case MCPConnectionStatus[_0x2a2b9e(0x6a)]:return _0x2a2b9e(0x92);case MCPConnectionStatus[_0x2a2b9e(0x8e)]:case MCPConnectionStatus['RETRYING']:return _0x2a2b9e(0x173);case MCPConnectionStatus[_0x2a2b9e(0x7c)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2a2b9e(0x141);}},_0x49e935=(_0x1cf7c4,_0x49d155)=>{const _0x1542f0=_0x3561f4;if(_0x49d155===MCPConnectionError['UNAUTHORIZED'])return _0x1542f0(0x8a);switch(_0x1cf7c4){case MCPConnectionStatus['CONNECTED']:return _0x1542f0(0x84);case MCPConnectionStatus[_0x1542f0(0x8e)]:case MCPConnectionStatus[_0x1542f0(0xa3)]:return'univer-bg-blue-500';case MCPConnectionStatus[_0x1542f0(0x7c)]:return _0x1542f0(0x8a);default:return _0x1542f0(0x85);}},_0x33fe7e=_0x12315d=>{const _0x1eb0c6=_0x3561f4;switch(_0x12315d){case MCPConnectionStatus[_0x1eb0c6(0x6a)]:return _0x3952f4['t'](_0x1eb0c6(0xc7));case MCPConnectionStatus[_0x1eb0c6(0x8e)]:return _0x3952f4['t']('mcpConfig.connectionStatus.connecting');case MCPConnectionStatus[_0x1eb0c6(0x7c)]:return _0x3952f4['t'](_0x1eb0c6(0xe5));case MCPConnectionStatus[_0x1eb0c6(0xa3)]:return _0x3952f4['t'](_0x1eb0c6(0x10f));default:return _0x3952f4['t'](_0x1eb0c6(0x12d));}},_0x29b6c3=_0x233353=>{const _0x5b0dc0=_0x3561f4;switch(_0x233353){case MCPConnectionError[_0x5b0dc0(0x15c)]:return _0x3952f4['t'](_0x5b0dc0(0x149));case MCPConnectionError['SESSION_ID_OCCUPIED']:return _0x3952f4['t'](_0x5b0dc0(0x157));case MCPConnectionError[_0x5b0dc0(0x175)]:return _0x3952f4['t']('mcpConfig.connectionError.networkError');case MCPConnectionError[_0x5b0dc0(0x9d)]:return _0x3952f4['t'](_0x5b0dc0(0xba));default:return'';}},_0x27e070=useCallback(()=>{_0x2f46bc({..._0xdc9199,'apiKey':_0x3a62e5['trim'](),'enableAuth':_0x5965af});},[_0xdc9199,_0x3a62e5,_0x5965af,_0x2f46bc]),_0x2dabef=_0x3a62e5['trim']()[_0x3561f4(0xee)]>0x0;return jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[jsx('div',{'className':_0x3561f4(0x6c),'children':jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x119),'children':jsx(_0x3561f4(0x12f),{'className':'univer-text-white','children':'⚙'})}),jsx(_0x3561f4(0x169),{'children':jsx('p',{'className':_0x3561f4(0xe9),'children':_0x3952f4['t'](_0x3561f4(0xfb))})})]})}),jsxs('div',{'className':_0x3561f4(0x88),'children':[jsx('div',{'className':clsx('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x3a8050(_0x30207,_0x1a1371)),'children':jsxs('div',{'className':_0x3561f4(0xb5),'children':[jsx(_0x3561f4(0x169),{'className':clsx(_0x3561f4(0x15f),_0x49e935(_0x30207,_0x1a1371))}),jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0xbb),'children':_0x33fe7e(_0x30207)})]})}),_0x1a1371!==MCPConnectionError[_0x3561f4(0xbf)]&&(_0x30207===MCPConnectionStatus[_0x3561f4(0x7c)]||_0x1a1371===MCPConnectionError['UNAUTHORIZED'])&&jsx(_0x3561f4(0x169),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':jsxs('div',{'className':_0x3561f4(0xbc),'children':[jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0x15a),'children':'⚠️'}),jsx('p',{'className':_0x3561f4(0x165),'children':_0x29b6c3(_0x1a1371)})]})})]}),jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x14b),'children':jsxs('div',{'className':_0x3561f4(0xd9),'children':[jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x12e),'children':[jsxs('label',{'className':_0x3561f4(0x14f),'children':[jsx(_0x3561f4(0x12f),{'children':'🔑'}),'\x20',_0x3952f4['t'](_0x3561f4(0xa0)),jsx('span',{'className':_0x3561f4(0x140),'children':'*'}),_0x540380&&jsx('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3952f4['t'](_0x3561f4(0x68)),'role':_0x3561f4(0x114),'onClick':()=>_0xb759d(!![]),'children':jsx(HelpIcon,{})})]}),jsx(Input,{'type':_0x3561f4(0x11e),'placeholder':_0x3952f4['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x3a62e5,'disabled':loading,'autoComplete':_0x3561f4(0x13d),'onChange':_0x321f4e}),jsx('p',{'className':_0x3561f4(0x186),'children':_0x3952f4['t']('mcpConfig.apiKeyHint')})]}),_0x540380&&_0x371c10&&jsxs(_0x3561f4(0x169),{'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':[jsx('a',{'className':_0x3561f4(0x17b),'role':'button','onClick':()=>_0xb759d(![]),'children':jsx(CloseIcon,{'className':_0x3561f4(0x7e)})}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xb3),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xea),'children':jsx('span',{'className':_0x3561f4(0xd4),'children':'🚀'})}),jsxs(_0x3561f4(0x169),{'className':'univer-flex-1','children':[jsx('h4',{'className':_0x3561f4(0x176),'children':_0x3952f4['t'](_0x3561f4(0x68))}),jsx('p',{'className':_0x3561f4(0x71),'children':_0x3952f4['t'](_0x3561f4(0x160))}),jsx('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x2587a3&&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':_0x38b71c,'target':_0x3561f4(0x15d),'rel':_0x3561f4(0x14a),'children':[jsx(_0x3561f4(0x12f),{'children':'🤖'}),_0x3952f4['t'](_0x3561f4(0x6b)),jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0x109),'children':'↗'})]})}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xe3),'children':['✨','\x20',_0x3952f4['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3ba388[_0x3561f4(0x100)]&&jsxs(_0x3561f4(0x169),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[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':[jsx(_0x3561f4(0x12f),{'children':'🔗'}),'\x20',_0x3952f4['t'](_0x3561f4(0xab))]}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x118),'children':[jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x143),'children':[jsx('p',{'className':_0x3561f4(0xf5),'children':_0x3952f4['t'](_0x3561f4(0xdf))}),jsxs('div',{'className':_0x3561f4(0x12e),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xca),'children':_0x3952f4['t']('mcpConfig.configStepTitle')}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x161),'children':[jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xb5),'children':[jsx('span',{'className':_0x3561f4(0x174),'children':'1'}),_0x3952f4['t'](_0x3561f4(0x82))]}),jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[jsx(_0x3561f4(0x12f),{'className':_0x3561f4(0x174),'children':'2'}),_0x3952f4['t'](_0x3561f4(0x188))]}),jsxs('div',{'className':_0x3561f4(0xb5),'children':[jsx('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'}),_0x3952f4['t'](_0x3561f4(0x8f))]})]})]})]}),jsxs(_0x3561f4(0x169),{'className':'univer-space-y-2','children':[jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3561f4(0x177)}),jsx(_0x3561f4(0x169),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':jsx(_0x3561f4(0x126),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x3561f4(0x73)]({'mcpServers':{'univer':{'url':_0x3561f4(0x95)+(_0x52536a||_0x3561f4(0xaf)),'type':_0x3561f4(0x75),'headers':{'Authorization':_0x3561f4(0x10b)+(_0x3a62e5||_0x3561f4(0x107))}}}},null,0x2)})})]}),jsxs(_0x3561f4(0x169),{'className':'univer-space-y-3','children':[jsx('div',{'className':_0x3561f4(0xca),'children':_0x3952f4['t'](_0x3561f4(0x146))}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x12e),'children':[jsxs(_0x3561f4(0x169),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[jsx('div',{'className':_0x3561f4(0xf1)}),jsxs(_0x3561f4(0x169),{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3952f4['t']('mcpConfig.sessionIdDescription')})]})]}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0xb7),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xf1)}),jsxs('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x9f),'children':_0x3561f4(0x127)}),jsx(_0x3561f4(0x169),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3952f4['t'](_0x3561f4(0x120))})]})]})]})]})]})]}),jsx(Button,{'onClick':_0x27e070,'disabled':!_0x2dabef||loading,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':loading?jsxs('span',{'className':_0x3561f4(0xb5),'children':[jsx('span',{'children':'⟲'}),_0x3952f4['t']('mcpConfig.saving')]}):jsxs('span',{'className':_0x3561f4(0xb5),'children':[jsx(CheckMarkIcon,{}),_0x3952f4['t'](_0x3561f4(0xcc))]})}),jsx(_0x3561f4(0x169),{'className':_0x3561f4(0xfd),'children':jsxs('div',{'className':_0x3561f4(0xdc),'children':[jsx('span',{'className':_0x3561f4(0xf2),'children':'💡'}),jsxs(_0x3561f4(0x169),{'className':_0x3561f4(0x11d),'children':[jsx(_0x3561f4(0x169),{'className':_0x3561f4(0x10e),'children':_0x3561f4(0x117)}),jsxs('div',{'children':['•',_0x3952f4['t'](_0x3561f4(0x182))]}),jsxs(_0x3561f4(0x169),{'children':['•',_0x3952f4['t'](_0x3561f4(0x142))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY='mcp-ui.config',configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0xc43a45){'@babel/helpers - typeof';const _0x13e682=_0x19ff;return _typeof=_0x13e682(0x162)==typeof Symbol&&_0x13e682(0x13f)==typeof Symbol['iterator']?function(_0x29f6e4){return typeof _0x29f6e4;}:function(_0x1623c8){const _0x12e602=_0x13e682;return _0x1623c8&&_0x12e602(0x162)==typeof Symbol&&_0x1623c8[_0x12e602(0x12c)]===Symbol&&_0x1623c8!==Symbol[_0x12e602(0x13e)]?'symbol':typeof _0x1623c8;},_typeof(_0xc43a45);}function toPrimitive(_0xef3eb1,_0x17b5a8){const _0x5095b0=_0x19ff;if(_0x5095b0(0x16c)!=_typeof(_0xef3eb1)||!_0xef3eb1)return _0xef3eb1;var _0x54cb7c=_0xef3eb1[Symbol[_0x5095b0(0xad)]];if(void 0x0!==_0x54cb7c){var _0x1d2d6e=_0x54cb7c[_0x5095b0(0x136)](_0xef3eb1,_0x17b5a8||'default');if(_0x5095b0(0x16c)!=_typeof(_0x1d2d6e))return _0x1d2d6e;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5095b0(0x156)===_0x17b5a8?String:Number)(_0xef3eb1);}function toPropertyKey(_0x3963dc){var _0x4e2db1=toPrimitive(_0x3963dc,'string');return'symbol'==_typeof(_0x4e2db1)?_0x4e2db1:_0x4e2db1+'';}function _0x26f5(){const _0x7b1749=['_createConfigPanelComponent','Enable\x20authentication\x20for\x20secure\x20connections','29032vhhrEr','Save\x20Configuration','_mcpConnectionController','mcpConfig.description','MenuIcon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','showStatus','Connection\x20Failed','showDeveloperTools','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','\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','API\x20密钥不能为空','579310ZwjftU','_registerComponent','Click\x20to\x20configure\x20MCP','<API_KEY>','push','univer-text-gray-400','getItem','Bearer\x20','_commandService','_handleConfigSave','univer-font-medium','mcpConfig.connectionStatus.retrying','_logService','Invalid\x20configuration','_initializeMenus','_config','button','SESSION_ID_OCCUPIED','pluginName','Configuration\x20Notes:','univer-space-y-4','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','defineProperty','14095881XguygD','mcpStatus.networkError','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','text','apiKey','mcpConfig.authorizationDescription','mcp-config-dialog','_localStorageService','error','_initConfigSync','Configuration\x20Parameters:','pre','Authorization:','配置步骤:','mcpStatus.connecting','MCPConfigPanel','univer-text-yellow-500','constructor','mcpConfig.connectionStatus.disconnected','univer-space-y-2','span','showConfigPanel','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.failed','https://console.univer.ai','MCP\x20Disconnected','call','validateApiKey','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connection\x20Failed','MCP:\x20未授权','getConfig','BUTTON','off','prototype','symbol','univer-text-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.note2','univer-space-y-3','show','Saving...','mcpConfig.configParameters','重启您的\x20MCP\x20客户端以使配置生效','配置更改将立即生效','mcpConfig.connectionError.unauthorized','noopener\x20noreferrer','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','register','配置无效','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.sessionOccupied','COMMAND','MCP\x20Client\x20Configuration','7SuyMgp','subscribeConfigValue$','univer-mr-2\x20univer-flex\x20univer-text-xl','string','mcpConfig.connectionError.sessionOccupied','univer.plus','close','univer-shrink-0\x20univer-text-red-500','setItem','UNAUTHORIZED','_blank','mergeMenu','univer-size-2\x20univer-rounded-full','mcpConfig.apiApplyInfo.description','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','function','_loading$','MCP\x20Connecting...','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','isValid','已连接','_uiPartsService','div','保存中...','配置参数:','object','packageName','@univerjs-pro/mcp-ui','_messageService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','点击连接\x20MCP','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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','NETWORK_ERROR','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20Configuration','bottom','您的\x20API\x20密钥将在此浏览器中本地存储','\x20-\x20','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','5050362jExPUm','connectionStatus$','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','34870050WZbqGa','API\x20密钥','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.note1','Enter\x20your\x20API\x20key','点击配置\x20MCP','_initStatusComponent','univer-text-xs\x20univer-text-gray-500','MCP\x20已连接','mcpConfig.configStep2','registerComponent','errorMessage','_componentManager','mcpConfig.validation.apiKeyRequired','_handleConfigure','_menuManagerService','mcpConfig.apiApplyInfo.title','HEADER_MENU','CONNECTED','mcpConfig.apiApplyInfo.univerAiLabel','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpServerUrl','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','会话\x20ID\x20已被占用,请稍后再试','sessionId$','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','DISCONNECTED','stringify','mcpConfig.validation.invalidConfig','http','_initializeCommands','权限验证失败,请检查您的\x20API\x20密钥','Enable\x20Authentication','MCP\x20客户端配置','disposeWithMe','API\x20密钥长度至少需要\x2010\x20位','FAILED','_localeService','univer-size-4','warn','Failed\x20to\x20save\x20configuration','_dialogService','mcpConfig.configStep1','getOwnPropertyDescriptor','univer-bg-green-500','univer-bg-gray-500','MCP:\x20超出最大重试次数','_apiKey$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','What\x20is\x20API\x20Key?','univer-bg-red-500','Univer\x20AI\x20Console','_injector','_configService','CONNECTING','mcpConfig.configStep3','Copy\x20the\x20JSON\x20configuration\x20below','subscribe','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','40IaHngC','您的\x20API\x20密钥安全存储在本地存储中','https://mcp.univer.ai/mcp/?univer_session_id=','version','mcpStatus.unknown','MCP:\x20Network\x20Error','__setCustomHeaders','univer.ai','启用身份验证','_config$','MAX_RETRIES_EXCEEDED','setConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiKey','_connectionController','mcpStatus.unauthorized','RETRYING','mcpConfig.title','几秒钟内获取您的\x20API\x20密钥','Max\x20Retries','MCP\x20Connected','_validateConfig','配置保存成功','mcpConfig.validation.apiKeyTooShort','mcpConfig.connectionInfo','将配置添加到您的\x20MCP\x20客户端设置文件中','toPrimitive','启用身份验证以获得安全连接','<SESSION_ID>','最大重试次数','连接失败','get','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpStatus.clickToConfigure','univer-flex\x20univer-items-center\x20univer-gap-2','连接中...','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20密钥无效,请检查密钥是否正确','MCP\x20连接中...','mcpConfig.connectionError.maxRetriesExceeded','univer-text-sm\x20univer-font-medium','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Unknown\x20Status','mcpStatus.connected','NONE','1267348pGxsMK','decorate','未连接','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20网络错误','MCP_UI_PLUGIN','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.connectionStatus.connected','会话ID','API\x20key\x20is\x20required','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','超出最大重试次数,请稍后再试','mcpConfig.save','什么是\x20API\x20密钥?','9mJYYzG','保存配置','mcpConfig.configError','_mcpCoreConfig$','mcpConfig.configSaved','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-text-blue-600','_initAutoConnect','_loadStoredApiKey','MCP:\x20Unauthorized','https://console.univer.plus','univer-space-y-5','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','next','univer-flex\x20univer-gap-3','forEach','removeItem','mcpConfig.configInstructions','value','connectionError$','onStarting','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','2609240MPMFEx','mcpConfig.connectionStatus.failed','Error','Retrying...','trim','univer-text-sm\x20univer-text-gray-500','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','registerCommand','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','includes','length','配置保存失败','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-shrink-0\x20univer-text-blue-500','网络连接错误,请检查您的网络连接','Configuration\x20Steps:','univer-text-xs\x20univer-text-gray-600'];_0x26f5=function(){return _0x7b1749;};return _0x26f5();}function _defineProperty(_0x48d28e,_0x123c6b,_0x5e66aa){const _0x3bd24b=_0x19ff;return(_0x123c6b=toPropertyKey(_0x123c6b))in _0x48d28e?Object[_0x3bd24b(0x11a)](_0x48d28e,_0x123c6b,{'value':_0x5e66aa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48d28e[_0x123c6b]=_0x5e66aa,_0x48d28e;}function __decorateParam(_0x6fdfdc,_0x411b53){return function(_0x40d1e8,_0x537c09){_0x411b53(_0x40d1e8,_0x537c09,_0x6fdfdc);};}function __decorate(_0x2eff10,_0x43107f,_0x46611f,_0x521308){const _0xa8d162=_0x19ff;var _0x2f75bc=arguments[_0xa8d162(0xee)],_0x54fdb8=_0x2f75bc<0x3?_0x43107f:_0x521308===null?_0x521308=Object[_0xa8d162(0x83)](_0x43107f,_0x46611f):_0x521308,_0x1e7a86;if(typeof Reflect===_0xa8d162(0x16c)&&typeof Reflect['decorate']===_0xa8d162(0x162))_0x54fdb8=Reflect[_0xa8d162(0xc1)](_0x2eff10,_0x43107f,_0x46611f,_0x521308);else{for(var _0x2300a8=_0x2eff10[_0xa8d162(0xee)]-0x1;_0x2300a8>=0x0;_0x2300a8--)if(_0x1e7a86=_0x2eff10[_0x2300a8])_0x54fdb8=(_0x2f75bc<0x3?_0x1e7a86(_0x54fdb8):_0x2f75bc>0x3?_0x1e7a86(_0x43107f,_0x46611f,_0x54fdb8):_0x1e7a86(_0x43107f,_0x46611f))||_0x54fdb8;}return _0x2f75bc>0x3&&_0x54fdb8&&Object[_0xa8d162(0x11a)](_0x43107f,_0x46611f,_0x54fdb8),_0x54fdb8;}const MCP_API_KEY_STORAGE_KEY='mcp.apiKey',MCP_CONFIG_DIALOG_ID=_0xe5c988(0x121);let MCPConfigUIController=class MCPConfigUIController extends Disposable{constructor(_0x297f06,_0x3b4a79,_0x1794ba,_0x1e45a6,_0xb271c6,_0x34c72d,_0x18f854,_0x45fe9c,_0x1194d7,_0xb62849){const _0x55871f=_0xe5c988;super(),this[_0x55871f(0x8c)]=_0x297f06,this[_0x55871f(0x168)]=_0x3b4a79,this[_0x55871f(0x8d)]=_0x1794ba,this[_0x55871f(0x122)]=_0x1e45a6,this[_0x55871f(0x81)]=_0xb271c6,this['_messageService']=_0x34c72d,this[_0x55871f(0x18b)]=_0x18f854,this['_localeService']=_0x45fe9c,this[_0x55871f(0x110)]=_0x1194d7,this[_0x55871f(0xfa)]=_0xb62849,_defineProperty(this,_0x55871f(0x163),new BehaviorSubject(![])),_defineProperty(this,_0x55871f(0xd1),new BehaviorSubject({})),_defineProperty(this,_0x55871f(0x9c),new BehaviorSubject({})),_defineProperty(this,_0x55871f(0x87),new BehaviorSubject('')),_defineProperty(this,_0x55871f(0x10d),async _0x17446b=>{const _0x7a79e4=_0x55871f;this[_0x7a79e4(0x163)][_0x7a79e4(0xdb)](!![]);try{var _0xcbbdf,_0x319c1a;const _0x2b60f6=await this[_0x7a79e4(0xa8)](_0x17446b);if(!_0x2b60f6[_0x7a79e4(0x166)]){this[_0x7a79e4(0x16f)][_0x7a79e4(0x144)]({'type':MessageType[_0x7a79e4(0xe6)],'content':_0x2b60f6[_0x7a79e4(0x18a)]||this[_0x7a79e4(0x7d)]['t'](_0x7a79e4(0x74))});return;}if(_0x17446b[_0x7a79e4(0x11f)])await this['_localStorageService'][_0x7a79e4(0x15b)](MCP_API_KEY_STORAGE_KEY,_0x17446b[_0x7a79e4(0x11f)][_0x7a79e4(0xe8)]());else await this[_0x7a79e4(0x122)][_0x7a79e4(0xde)](MCP_API_KEY_STORAGE_KEY);this[_0x7a79e4(0x87)][_0x7a79e4(0xdb)](((_0xcbbdf=_0x17446b[_0x7a79e4(0x11f)])===null||_0xcbbdf===void 0x0?void 0x0:_0xcbbdf[_0x7a79e4(0xe8)]())||''),this[_0x7a79e4(0xfa)][_0x7a79e4(0x99)]({'Authorization':_0x7a79e4(0x10b)+((_0x319c1a=_0x17446b[_0x7a79e4(0x11f)])===null||_0x319c1a===void 0x0?void 0x0:_0x319c1a['trim']())}),this[_0x7a79e4(0x16f)][_0x7a79e4(0x144)]({'type':MessageType['Success'],'content':this[_0x7a79e4(0x7d)]['t'](_0x7a79e4(0xd2))}),setTimeout(()=>{const _0x267e62=_0x7a79e4;this['_dialogService'][_0x267e62(0x159)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x1e0b9a){this[_0x7a79e4(0x110)][_0x7a79e4(0x123)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1e0b9a),this[_0x7a79e4(0x16f)][_0x7a79e4(0x144)]({'type':MessageType[_0x7a79e4(0xe6)],'content':this[_0x7a79e4(0x7d)]['t'](_0x7a79e4(0xd0))});}finally{this['_loading$'][_0x7a79e4(0xdb)](![]);}}),this[_0x55871f(0x124)](),this[_0x55871f(0xd6)](),this['_registerComponent']();}[_0xe5c988(0x130)](){const _0x4ebaf4=_0xe5c988,_0x5a6c43=this[_0x4ebaf4(0x8d)][_0x4ebaf4(0x13b)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5a6c43===null||_0x5a6c43===void 0x0?void 0x0:_0x5a6c43[_0x4ebaf4(0x100)])this['_dialogService']['open']({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x4ebaf4(0x7d)]['t'](_0x4ebaf4(0xa4))},'children':{'label':_0x4ebaf4(0x12a)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x5382d1=_0x4ebaf4;this['_dialogService'][_0x5382d1(0x159)](MCP_CONFIG_DIALOG_ID);}});}['getCurrentConfig'](){const _0x4027b0=_0xe5c988;return this[_0x4027b0(0xd1)][_0x4027b0(0xe0)];}[_0xe5c988(0x105)](){const _0x535b60=_0xe5c988;this['disposeWithMe'](this[_0x535b60(0x18b)][_0x535b60(0x14c)](_0x535b60(0x12a),this[_0x535b60(0xf6)]()));}['_createConfigPanelComponent'](){const _0x80f94=_0xe5c988;return connectInjector(()=>{const _0x309aec=_0x19ff;var _0x3e8798,_0x4cd4fc,_0x5467e1;return jsx(MCPConfigPanel,{'config':this[_0x309aec(0x9c)][_0x309aec(0xe0)],'mcpCoreConfig':this[_0x309aec(0xd1)][_0x309aec(0xe0)],'currentApiKey$':this[_0x309aec(0x87)],'onSave':this[_0x309aec(0x10d)],'loading':this[_0x309aec(0x163)][_0x309aec(0xe0)],'connectionStatus$':(_0x3e8798=this[_0x309aec(0xfa)])===null||_0x3e8798===void 0x0?void 0x0:_0x3e8798[_0x309aec(0x17d)],'connectionError$':(_0x4cd4fc=this[_0x309aec(0xfa)])===null||_0x4cd4fc===void 0x0?void 0x0:_0x4cd4fc[_0x309aec(0xe1)],'currentSessionId$':(_0x5467e1=this[_0x309aec(0xfa)])===null||_0x5467e1===void 0x0?void 0x0:_0x5467e1[_0x309aec(0x70)]});},this[_0x80f94(0x8c)]);}[_0xe5c988(0x124)](){const _0x22a297=_0xe5c988;this[_0x22a297(0x7a)](this[_0x22a297(0x8d)]['subscribeConfigValue$'](MCP_PLUGIN_CONFIG_KEY)[_0x22a297(0x91)](_0x1f7108=>{const _0x152e32=_0x22a297;this['_mcpCoreConfig$'][_0x152e32(0xdb)](_0x1f7108||{});}));const _0x46760c=this[_0x22a297(0x8d)][_0x22a297(0x13b)](MCP_PLUGIN_CONFIG_KEY);this['_mcpCoreConfig$'][_0x22a297(0xdb)](_0x46760c||{}),this['disposeWithMe'](this[_0x22a297(0x8d)][_0x22a297(0x154)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x22a297(0x91)](_0xf09522=>{const _0x55e1be=_0x22a297;this[_0x55e1be(0x9c)][_0x55e1be(0xdb)](_0xf09522||{});}));const _0x487f3c=this[_0x22a297(0x8d)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);this[_0x22a297(0x9c)]['next'](_0x487f3c||{});}async[_0xe5c988(0xd6)](){const _0x57d630=_0xe5c988,_0x3b778b=this['_configService'][_0x57d630(0x13b)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x3b778b===null||_0x3b778b===void 0x0?void 0x0:_0x3b778b['showDeveloperTools']))return;const _0x16a40a=await this[_0x57d630(0x122)][_0x57d630(0x10a)](MCP_API_KEY_STORAGE_KEY);_0x16a40a&&(this['_mcpConnectionController'][_0x57d630(0x99)]({'Authorization':_0x57d630(0x10b)+_0x16a40a}),this[_0x57d630(0x87)][_0x57d630(0xdb)](_0x16a40a));}async[_0xe5c988(0xa8)](_0x535e10){const _0x36ceea=_0xe5c988;if(!_0x535e10[_0x36ceea(0x11f)]||_0x535e10[_0x36ceea(0x11f)]['trim']()[_0x36ceea(0xee)]===0x0)return{'isValid':![],'errorMessage':this[_0x36ceea(0x7d)]['t'](_0x36ceea(0x18c))};if(_0x535e10[_0x36ceea(0x11f)][_0x36ceea(0xe8)]()[_0x36ceea(0xee)]<0xa)return{'isValid':![],'errorMessage':this['_localeService']['t'](_0x36ceea(0xaa))};try{const _0x41bad0=await this[_0x36ceea(0x8c)][_0x36ceea(0xb2)](MCPConnectionController)[_0x36ceea(0x137)](_0x535e10['apiKey']['trim']());if(!_0x41bad0[_0x36ceea(0x166)])return{'isValid':![],'errorMessage':_0x41bad0[_0x36ceea(0x123)]||this[_0x36ceea(0x7d)]['t']('mcpConfig.validation.invalidApiKey')};return{'isValid':!![]};}catch(_0x37808d){return console[_0x36ceea(0x7f)](_0x36ceea(0xec),_0x37808d),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILocalStorageService),__decorateParam(0x4,IDialogService),__decorateParam(0x5,IMessageService),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,Inject(LocaleService)),__decorateParam(0x8,ILogService),__decorateParam(0x9,Inject(MCPConnectionController))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':'mcp-ui.command.openConfigPanel','type':CommandType[_0xe5c988(0x151)],'handler':async(_0x253f89,_0x1865f7)=>{const _0x2da317=_0xe5c988;return _0x253f89[_0x2da317(0xb2)](MCPConfigUIController)['showConfigPanel'](),!![];}};function mapStatusToI18NKey(_0x4f8666,_0xd86137){const _0x33fc2a=_0xe5c988;switch(_0x4f8666){case MCPConnectionStatus[_0x33fc2a(0x72)]:return'mcpStatus.disconnected';case MCPConnectionStatus['CONNECTING']:return _0x33fc2a(0x129);case MCPConnectionStatus[_0x33fc2a(0x6a)]:return _0x33fc2a(0xbe);case MCPConnectionStatus[_0x33fc2a(0x7c)]:switch(_0xd86137){case MCPConnectionError['UNAUTHORIZED']:return _0x33fc2a(0xa2);case MCPConnectionError[_0x33fc2a(0x115)]:return _0x33fc2a(0x150);case MCPConnectionError['NETWORK_ERROR']:return _0x33fc2a(0x11c);case MCPConnectionError['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x33fc2a(0x133);}case MCPConnectionStatus[_0x33fc2a(0xa3)]:return'mcpStatus.retrying';default:return _0x33fc2a(0x97);}}function getTooltipText(_0x44a010,_0x2a37a7,_0x1fabb7,_0x5c61c5=!![]){const _0x1cc743=_0xe5c988,_0xcf1cb1=mapStatusToI18NKey(_0x44a010,_0x2a37a7),_0x381809=_0x1fabb7['t'](_0xcf1cb1);if(!_0x5c61c5)return _0x381809;if(_0x44a010===MCPConnectionStatus[_0x1cc743(0x72)]&&_0x2a37a7===MCPConnectionError[_0x1cc743(0x15c)])return _0x381809+_0x1cc743(0x17a)+_0x1fabb7['t'](_0x1cc743(0xb4));else{if(_0x44a010===MCPConnectionStatus[_0x1cc743(0x6a)])return''+_0x381809;else{if(_0x44a010===MCPConnectionStatus[_0x1cc743(0x72)]||_0x44a010===MCPConnectionStatus[_0x1cc743(0x7c)])return _0x381809+'\x20-\x20'+_0x1fabb7['t']('mcpStatus.clickToConnect');}}return _0x381809;}function getStatusColor(_0x1cbc5f){const _0x37baca=_0xe5c988;switch(_0x1cbc5f){case MCPConnectionStatus[_0x37baca(0x6a)]:return'univer-text-green-500';case MCPConnectionStatus[_0x37baca(0x8e)]:case MCPConnectionStatus[_0x37baca(0xa3)]:return _0x37baca(0x12b);case MCPConnectionStatus['FAILED']:case MCPConnectionStatus[_0x37baca(0x72)]:return _0x37baca(0x140);default:return'univer-text-gray-500';}}function MCPStatusDisplay(_0x33c667){const _0x4cb763=_0xe5c988,{status$:_0xbf3a2c,error$:_0x51b79f,onConfigure:_0x529bc6,showClickable:showClickable=!![]}=_0x33c667,_0x425598=useObservable(_0xbf3a2c,MCPConnectionStatus[_0x4cb763(0x72)]),_0x48c0fb=useObservable(_0x51b79f,MCPConnectionError[_0x4cb763(0xbf)]),_0x2194d3=useDependency(LocaleService),_0x230fa1=_0x425598===MCPConnectionStatus[_0x4cb763(0x6a)];_0x425598===MCPConnectionStatus[_0x4cb763(0x8e)]||MCPConnectionStatus[_0x4cb763(0xa3)];const _0x5d859b=_0x2194d3['t'](mapStatusToI18NKey(_0x425598,_0x48c0fb)),_0x21366a=getTooltipText(_0x425598,_0x48c0fb,_0x2194d3,showClickable),_0x3ef07f=getStatusColor(_0x425598),_0x356600=_0x230fa1?jsx(OnLineIcon,{}):jsx(OffLineIcon,{}),_0x2b50f3=useCallback(()=>{if(showClickable&&_0x529bc6)_0x529bc6();},[showClickable,_0x529bc6]);function _0x66badd(){const _0x21b6c0=_0x4cb763;return jsxs(_0x21b6c0(0x169),{'className':clsx('univer-flex\x20univer-items-center',showClickable&&_0x529bc6&&_0x21b6c0(0x102)),'role':_0x21b6c0(0x114),'onClick':showClickable&&_0x529bc6?_0x2b50f3:void 0x0,'children':[jsx(_0x21b6c0(0x169),{'className':clsx(_0x21b6c0(0x155),_0x3ef07f),'children':_0x356600}),jsx('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5d859b})]});}return jsx(Tooltip,{'title':_0x21366a,'placement':_0x4cb763(0x178),'children':_0x66badd()});}function _0x19ff(_0x483bd9,_0x5ea467){_0x483bd9=_0x483bd9-0x66;const _0x26f5c9=_0x26f5();let _0x19ff87=_0x26f5c9[_0x483bd9];return _0x19ff87;}let MCPConnectionUIController=class MCPConnectionUIController extends Disposable{constructor(_0xfcd9fa,_0x54b19f,_0x497d5e,_0x44b577){const _0x5d35b6=_0xe5c988;super(),this[_0x5d35b6(0x8c)]=_0xfcd9fa,this[_0x5d35b6(0xa1)]=_0x54b19f,this[_0x5d35b6(0x168)]=_0x497d5e,this['_configService']=_0x44b577,this[_0x5d35b6(0xd5)](),this[_0x5d35b6(0x185)]();}[_0xe5c988(0xd5)](){const _0x301f1a=_0xe5c988,_0x817c21=this['_configService']['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x817c21===null||_0x817c21===void 0x0?void 0x0:_0x817c21['showDeveloperTools'])this[_0x301f1a(0xa1)]['enableAutoConnect']=![];}[_0xe5c988(0x185)](){const _0x18fddc=_0xe5c988,_0xf95b91=this[_0x18fddc(0x8d)][_0x18fddc(0x13b)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0xf95b91===null||_0xf95b91===void 0x0?void 0x0:_0xf95b91[_0x18fddc(0xfe)])!==![])this[_0x18fddc(0x7a)](this[_0x18fddc(0x168)][_0x18fddc(0x189)](BuiltInUIPart[_0x18fddc(0x69)],()=>{const _0x2af89e=_0x18fddc;var _0x3fec80;return connectInjector(passProps({'status$':this[_0x2af89e(0xa1)][_0x2af89e(0x17d)],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x2af89e(0x66)](),'showClickable':(_0x3fec80=_0xf95b91===null||_0xf95b91===void 0x0?void 0x0:_0xf95b91['showDeveloperTools'])!==null&&_0x3fec80!==void 0x0?_0x3fec80:![]}),this[_0x2af89e(0x8c)]);}));}['_handleConfigure'](){const _0x28c4e9=_0xe5c988;this[_0x28c4e9(0x8c)]['get'](MCPConfigUIController)[_0x28c4e9(0x130)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(MCPConnectionController)),__decorateParam(0x2,IUIPartsService),__decorateParam(0x3,IConfigService)],MCPConnectionUIController);function passProps(_0x378e0b){const {status$:_0x1fed89,error$:_0xbcaf3b,onConfigure:_0x1d461a,showClickable:_0x39c03c}=_0x378e0b;return function _0xf60bce(){return jsx(MCPStatusDisplay,{'status$':_0x1fed89,'error$':_0xbcaf3b,'onConfigure':_0x1d461a,'showClickable':_0x39c03c});};}function MCPConfigMenuItemFactory(_0x2f3e11){const _0x2f5aa0=_0xe5c988;return{'id':OpenMCPConfigPanelCommand['id'],'type':MenuItemType[_0x2f5aa0(0x13c)],'icon':_0x2f5aa0(0xfc),'title':_0x2f5aa0(0xa4),'tooltip':_0x2f5aa0(0xa4)};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends Disposable{constructor(_0x42e9e7,_0x47fa1e){const _0x4b6a47=_0xe5c988;super(),this[_0x4b6a47(0x10c)]=_0x42e9e7,this[_0x4b6a47(0x67)]=_0x47fa1e,this[_0x4b6a47(0x76)](),this[_0x4b6a47(0x112)]();}[_0xe5c988(0x76)](){const _0x40ba01=_0xe5c988;[OpenMCPConfigPanelCommand][_0x40ba01(0xdd)](_0x1523ce=>{const _0x167e7b=_0x40ba01;this[_0x167e7b(0x7a)](this[_0x167e7b(0x10c)][_0x167e7b(0xeb)](_0x1523ce));});}[_0xe5c988(0x112)](){const _0x4bd94b=_0xe5c988;this[_0x4bd94b(0x67)][_0x4bd94b(0x15e)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService)],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0xe5c988(0x135),'connecting':_0xe5c988(0x164),'connected':_0xe5c988(0xa7),'failed':_0xe5c988(0x139),'retrying':'MCP\x20Retrying...','unknown':_0xe5c988(0xbd),'unauthorized':_0xe5c988(0xd7),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xe5c988(0x98),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xe5c988(0x106)},'mcpConfig':{'title':_0xe5c988(0x177),'description':_0xe5c988(0xf0),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xe5c988(0x183),'apiKeyHint':_0xe5c988(0x101),'enableAuth':_0xe5c988(0x78),'enableAuthHint':_0xe5c988(0xf7),'connectionInfo':_0xe5c988(0x152),'mcpClientConfig':_0xe5c988(0x152),'configInstructions':_0xe5c988(0x17e),'configStepTitle':_0xe5c988(0xf4),'configStep1':_0xe5c988(0x90),'configStep2':_0xe5c988(0xc6),'configStep3':_0xe5c988(0x170),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xe5c988(0x125),'maxRetries':_0xe5c988(0xa6),'save':_0xe5c988(0xf9),'saving':_0xe5c988(0x145),'note1':_0xe5c988(0x6e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xe5c988(0x80),'apiApplyInfo':{'title':_0xe5c988(0x89),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0xe5c988(0x8b),'getStarted':_0xe5c988(0x132)},'validation':{'apiKeyRequired':_0xe5c988(0xc9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xe5c988(0x111),'invalidApiKey':_0xe5c988(0x171)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0xe5c988(0xff),'retrying':_0xe5c988(0xe7)},'connectionError':{'unauthorized':_0xe5c988(0x14e),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xe5c988(0xda),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale$1={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xe5c988(0xb9),'connected':_0xe5c988(0x187),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0xe5c988(0x13a),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xe5c988(0xc4),'maxRetriesExceeded':_0xe5c988(0x86),'clickToConnect':_0xe5c988(0x172),'clickToConfigure':_0xe5c988(0x184)},'mcpConfig':{'title':'MCP\x20配置','description':_0xe5c988(0x131),'apiKey':_0xe5c988(0x180),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0xe5c988(0x179),'enableAuth':_0xe5c988(0x9b),'enableAuthHint':_0xe5c988(0xae),'connectionInfo':_0xe5c988(0x79),'mcpClientConfig':_0xe5c988(0x79),'configInstructions':_0xe5c988(0x181),'configStepTitle':_0xe5c988(0x128),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0xe5c988(0xac),'configStep3':_0xe5c988(0x147),'sessionId':_0xe5c988(0xc8),'sessionIdDescription':_0xe5c988(0xd3),'authorizationDescription':_0xe5c988(0x138),'configParameters':_0xe5c988(0x16b),'maxRetries':_0xe5c988(0xb0),'save':_0xe5c988(0xcf),'saving':_0xe5c988(0x16a),'note1':_0xe5c988(0x148),'note2':_0xe5c988(0x94),'configSaved':_0xe5c988(0xa9),'configError':_0xe5c988(0xef),'apiApplyInfo':{'title':_0xe5c988(0xcd),'description':_0xe5c988(0xc3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xe5c988(0xa5)},'validation':{'apiKeyRequired':_0xe5c988(0x103),'apiKeyTooShort':_0xe5c988(0x7b),'invalidConfig':_0xe5c988(0x14d),'invalidApiKey':_0xe5c988(0xb8)},'connectionStatus':{'disconnected':_0xe5c988(0xc2),'connecting':_0xe5c988(0xb6),'connected':_0xe5c988(0x167),'failed':_0xe5c988(0xb1),'retrying':'重连中...'},'connectionError':{'unauthorized':_0xe5c988(0x77),'sessionOccupied':_0xe5c988(0x6f),'networkError':_0xe5c988(0xf3),'maxRetriesExceeded':_0xe5c988(0xcb)}}};var name=_0xe5c988(0x16e),version='0.22.1';let UniverMCPUIPlugin=class UniverMCPUIPlugin extends Plugin{constructor(_0x26411d=defaultPluginConfig,_0x4e920b,_0x96a272,_0x4488ce,_0x5a766f,_0x40878f){const _0x36f675=_0xe5c988;super(),this[_0x36f675(0x113)]=_0x26411d,this['_injector']=_0x4e920b,this[_0x36f675(0x8d)]=_0x96a272,this[_0x36f675(0x168)]=_0x4488ce,this[_0x36f675(0x122)]=_0x5a766f,this[_0x36f675(0x7d)]=_0x40878f;const {..._0x3c09ee}=merge({},defaultPluginConfig,this[_0x36f675(0x113)]);this['_configService'][_0x36f675(0x9e)](MCP_UI_PLUGIN_CONFIG_KEY,_0x3c09ee);}async[_0xe5c988(0xe2)](){const _0x4ef54d=_0xe5c988,_0x4fb726=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this[_0x4ef54d(0x8c)]['has'](ISocketService))_0x4fb726[_0x4ef54d(0x108)]([ISocketService,{'useClass':WebSocketService}]);_0x4fb726[_0x4ef54d(0xdd)](_0x47c978=>this[_0x4ef54d(0x8c)]['add'](_0x47c978)),this[_0x4ef54d(0x8c)]['get'](MCPConnectionUIController),this['_injector']['get'](MCPConfigUIController),this['_injector']['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0xe5c988(0x116),_0xe5c988(0xc5)),_defineProperty(UniverMCPUIPlugin,_0xe5c988(0x16d),name),_defineProperty(UniverMCPUIPlugin,_0xe5c988(0x96),version),UniverMCPUIPlugin=__decorate([DependentOn(UniverMCPPlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,IUIPartsService),__decorateParam(0x4,ILocalStorageService),__decorateParam(0x5,Inject(LocaleService))],UniverMCPUIPlugin);export{MCPConfigPanel,MCPConfigUIController,MCPConnectionUIController,MCPStatusDisplay,MCPUIMenuController,OpenMCPConfigPanelCommand,UniverMCPUIPlugin,locale as enUS,locale$1 as zhCN};
|
|
1
|
+
const _0x24e2fc=_0x1ffc;(function(_0x48e63d,_0x151f61){const _0x15b1ad=_0x1ffc,_0x56663e=_0x48e63d();while(!![]){try{const _0x18c108=parseInt(_0x15b1ad(0x2e2))/0x1+-parseInt(_0x15b1ad(0x2c9))/0x2*(parseInt(_0x15b1ad(0x251))/0x3)+-parseInt(_0x15b1ad(0x2fc))/0x4*(-parseInt(_0x15b1ad(0x29d))/0x5)+parseInt(_0x15b1ad(0x1f9))/0x6+-parseInt(_0x15b1ad(0x21a))/0x7+parseInt(_0x15b1ad(0x246))/0x8*(parseInt(_0x15b1ad(0x2ed))/0x9)+parseInt(_0x15b1ad(0x2bb))/0xa*(-parseInt(_0x15b1ad(0x1f1))/0xb);if(_0x18c108===_0x151f61)break;else _0x56663e['push'](_0x56663e['shift']());}catch(_0x5114cb){_0x56663e['push'](_0x56663e['shift']());}}}(_0x4b3e,0xa2034));import{CommandType as _0x2f411b,DependentOn as _0x55f634,Disposable as _0x553c10,ICommandService as _0x274b3d,IConfigService as _0x16e4b4,ILocalStorageService as _0x5192e1,ILogService as _0x3720d4,Inject as _0x17ef4b,Injector as _0x498a04,LocaleService as _0x58c1f8,Plugin as _0x210a69,merge as _0x5b05be}from'@univerjs/core';import{MCPConnectionController as _0x3a6502,MCPConnectionError as _0x4f8a1c,MCPConnectionStatus as _0x440b2d,MCP_PLUGIN_CONFIG_KEY as _0x15ca7d,UniverMCPPlugin as _0x2ba359}from'@univerjs-pro/mcp';import{Button as _0x979000,Input as _0x17d910,MessageType as _0x4b0c69,Tooltip as _0x48d592,clsx as _0xe696c7}from'@univerjs/design';import{BuiltInUIPart as _0x5d5a0c,ComponentManager as _0x26c3a3,IDialogService as _0x4d970d,IMenuManagerService as _0x2be40c,IMessageService as _0x34758a,IUIPartsService as _0xbb3625,MenuItemType as _0x547bdc,RibbonStartGroup as _0x66f7f3,connectInjector as _0xd78b8b,useDependency as _0x5d46a2,useObservable as _0x12c36e}from'@univerjs/ui';function _0x4b3e(){const _0x5b0d1e=['univer-text-white','MCP:\x20会话\x20ID\x20已被占用','20meFObI','univer-min-w-0\x20univer-flex-1','连接中...','MCP\x20Retrying...','Invalid\x20configuration','未连接','registerComponent','FAILED','_mcpCoreConfig$','value','mcpConfig.connectionInfo','_uiPartsService','mcpConfig.apiKeyPlaceholder','mcpStatus.clickToConnect','1378348byIxEa','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','string','0.23.0','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-green-500','MCP\x20连接中...','配置步骤:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','object','add','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.plus','CONNECTED','warn','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','mcp-ui.command.openConfigPanel','setConfig','网络连接错误,请检查您的网络连接','mcpConfig.apiKey','univer-bg-green-500','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','stringify','Success','1040284WKDTjU','Enable\x20Authentication','RETRYING','push','复制以下\x20JSON\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置参数:','univer-space-y-2','getConfig','sessionId$','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','180594POtpkO','MCP:\x20Network\x20Error','univer-text-red-500','MCP_UI_PLUGIN','setItem','show','mcpServerUrl','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20客户端配置','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','重连中...','MCP\x20连接失败','1392460HwYfly','version','配置保存成功','getOwnPropertyDescriptor','DISCONNECTED','@univerjs-pro/mcp-ui','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','has','univer-text-gray-400','univer-space-y-3','_loadStoredApiKey','请输入您的\x20API\x20密钥','mcpConfig.connectionError.unauthorized','errorMessage','_handleConfigSave','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','showDeveloperTools','close','mcpConfig.apiApplyInfo.title','enableAutoConnect','几秒钟内获取您的\x20API\x20密钥','Disconnected','Connection\x20Failed','univer-font-medium','univer-text-xs\x20univer-text-gray-500','_localStorageService','_config$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥','Session\x20ID','\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','packageName','_configService','_initializeMenus','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','subscribeConfigValue$','univer-bg-blue-500','_menuManagerService','univer-space-y-5','univer-text-yellow-500','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','Get\x20your\x20API\x20key\x20in\x20seconds','6846917UWqTgP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-items-center\x20univer-gap-2','__setCustomHeaders','MCP:\x20超出最大重试次数','constructor','MCP\x20Unknown\x20Status','mcpConfig.authorizationDescription','3974802zOWACE','label','forEach','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.note2','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','defineProperty','_validateConfig','Retrying...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpConnectionController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.connecting','connectionError$','_initStatusComponent','https://mcp.univer.ai/mcp/?univer_session_id=','connectionStatus$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','symbol','https://console.univer.plus','NONE','_commandService','showConfigPanel','mcpConfig.description','toPrimitive','_connectionController','UNAUTHORIZED','getItem','Error','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MAX_RETRIES_EXCEEDED','13783znffYC','prototype','error','mcpStatus.maxRetriesExceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.configStep3','_injector','Connecting...','_loading$','\x20-\x20','_registerComponent','OTHERS','subscribe','mcpStatus.networkError','div','Configuration\x20Steps:','权限验证失败,请检查您的\x20API\x20密钥','next','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-gap-3','registerCommand','univer-flex\x20univer-items-center\x20univer-gap-3','SESSION_ID_OCCUPIED','API\x20密钥长度至少需要\x2010\x20位','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','open','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Enter\x20your\x20API\x20key','mcpConfig.configStep1','mcpStatus.connected','mcpConfig.apiKeyHint','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','text','mcpConfig.configParameters','mcpConfig.connectionStatus.failed','univer-flex-1','_apiKey$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_localeService','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','已连接','80agbRrY','mcpConfig.connectionStatus.connecting','API\x20密钥无效,请检查密钥是否正确','noopener\x20noreferrer','mcpConfig.note1','配置无效','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_config','mcpConfig.apiApplyInfo.description','register','3dAVUES','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','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','点击配置\x20MCP','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','length','mcpStatus.retrying','includes','mcpConfig.configSaved','mcpStatus.clickToConfigure','univer-bg-red-500','MCP:\x20未授权','showStatus','mcpConfig.configStepTitle','MCPConfigPanel','bottom','decorate','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置','univer-flex\x20univer-items-start\x20univer-gap-3','What\x20is\x20API\x20Key?','mcpStatus.unknown','您的\x20API\x20密钥将在此浏览器中本地存储','univer.ai','_initializeCommands','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Connected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','pluginName','Configuration\x20saved\x20successfully','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-text-sm\x20univer-font-medium','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','off','mcpConfig.save','http','univer-flex\x20univer-items-start\x20univer-gap-2','Bearer\x20','trim','点击连接\x20MCP','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','https://console.univer.ai','iterator','配置保存失败','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcp.apiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','disposeWithMe','span','MCP\x20Disconnected','_logService','univer-text-blue-600','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.configStep2','function','_dialogService','mcpConfig.connectionError.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','<API_KEY>','Saving...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.failed','mcpConfig.title','_blank','mergeMenu','连接失败','10qfPWQk','mcpStatus.sessionOccupied','MCP\x20已断开','Univer\x20AI\x20控制台','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Authorization:','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.getStarted','onStarting','COMMAND','_handleConfigure','Enable\x20authentication\x20for\x20secure\x20connections','get','MCP\x20Configuration','MCP:\x20网络错误','BUTTON','NETWORK_ERROR','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','button','_initConfigSync','univer-bg-gray-500','会话ID','isValid','_createConfigPanelComponent','mcpConfig.saving','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CONNECTING','_componentManager'];_0x4b3e=function(){return _0x5b0d1e;};return _0x4b3e();}import{BehaviorSubject as _0x4bb220}from'rxjs';function _0x1ffc(_0x38081f,_0x257c3c){_0x38081f=_0x38081f-0x1ed;const _0x4b3e5c=_0x4b3e();let _0x1ffc6a=_0x4b3e5c[_0x38081f];return _0x1ffc6a;}import{CheckMarkIcon as _0x4ed399,CloseIcon as _0x161a36,HelpIcon as _0x347fde,OffLineIcon as _0x619373,OnLineIcon as _0x2e186b}from'@univerjs/icons';import{useCallback as _0x526f6e,useState as _0x39d669}from'react';import{jsx as _0x19478f,jsxs as _0x4ad251}from'react/jsx-runtime';import{ISocketService as _0x184860,WebSocketService as _0x3859a6}from'@univerjs/network';function z(_0x5ec482){const _0x3525a0=_0x1ffc;var _0x38271d,_0x1168d0;let {mcpCoreConfig:_0x5d6c31,onSave:_0x39585b,loading:_0x32c72a=!0x1,config:_0x3a5ba1,connectionStatus$:_0x2dccf7,connectionError$:_0x39ef50,currentApiKey$:_0x2361b0,currentSessionId$:_0x107f2f}=_0x5ec482,_0x271951=_0x5d46a2(_0x58c1f8),_0x4be279=_0x12c36e(_0x2dccf7,_0x440b2d[_0x3525a0(0x300)]),_0x3a42ac=_0x12c36e(_0x39ef50,_0x4f8a1c[_0x3525a0(0x20d)]),_0x321029=_0x12c36e(_0x107f2f,''),[_0x5960a9,_0x2ccefb]=_0x39d669(_0x12c36e(_0x2361b0,'')||''),_0x5cfe5d=_0x3a5ba1[_0x3525a0(0x30e)]&&_0x5d6c31[_0x3525a0(0x2f3)]&&(_0x5d6c31['mcpServerUrl']['includes'](_0x3525a0(0x2d5))||_0x5d6c31['mcpServerUrl'][_0x3525a0(0x259)](_0x3525a0(0x269))),_0x4765f2=(_0x38271d=_0x5d6c31[_0x3525a0(0x2f3)])==null?void 0x0:_0x38271d['includes'](_0x3525a0(0x2d5)),_0x5f2368=(_0x1168d0=_0x5d6c31['mcpServerUrl'])==null?void 0x0:_0x1168d0[_0x3525a0(0x259)]('univer.ai'),_0x1b17d3=_0x4765f2?_0x3525a0(0x20c):_0x3525a0(0x27e),_0x529be5=_0x3a5ba1[_0x3525a0(0x30e)]&&(_0x4765f2||_0x5f2368),[_0x4e266c,_0x27fd24]=_0x39d669(!_0x5960a9[_0x3525a0(0x27a)]()),_0x2bb093=(_0x1617fd,_0x5012fe)=>{const _0x51ea61=_0x3525a0;if(_0x5012fe===_0x4f8a1c[_0x51ea61(0x213)])return _0x51ea61(0x30d);switch(_0x1617fd){case _0x440b2d[_0x51ea61(0x2d6)]:return _0x51ea61(0x2f4);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x51ea61(0x26d);case _0x440b2d[_0x51ea61(0x2c2)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x51ea61(0x320);}},_0x25d1b3=(_0x3485e4,_0x3747b6)=>{const _0x5f1a06=_0x3525a0;if(_0x3747b6===_0x4f8a1c['UNAUTHORIZED'])return _0x5f1a06(0x25c);switch(_0x3485e4){case _0x440b2d['CONNECTED']:return _0x5f1a06(0x2de);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x5f1a06(0x322);case _0x440b2d['FAILED']:return _0x5f1a06(0x25c);default:return _0x5f1a06(0x2b1);}},_0x128034=_0x489383=>{const _0x3aa6f5=_0x3525a0;switch(_0x489383){case _0x440b2d[_0x3aa6f5(0x2d6)]:return _0x271951['t'](_0x3aa6f5(0x243));case _0x440b2d[_0x3aa6f5(0x2b7)]:return _0x271951['t'](_0x3aa6f5(0x247));case _0x440b2d[_0x3aa6f5(0x2c2)]:return _0x271951['t'](_0x3aa6f5(0x23e));case _0x440b2d[_0x3aa6f5(0x2e4)]:return _0x271951['t']('mcpConfig.connectionStatus.retrying');default:return _0x271951['t']('mcpConfig.connectionStatus.disconnected');}},_0x57ab4b=_0x532ae2=>{const _0x68f161=_0x3525a0;switch(_0x532ae2){case _0x4f8a1c[_0x68f161(0x213)]:return _0x271951['t'](_0x68f161(0x30a));case _0x4f8a1c['SESSION_ID_OCCUPIED']:return _0x271951['t']('mcpConfig.connectionError.sessionOccupied');case _0x4f8a1c[_0x68f161(0x2ad)]:return _0x271951['t']('mcpConfig.connectionError.networkError');case _0x4f8a1c[_0x68f161(0x219)]:return _0x271951['t'](_0x68f161(0x291));default:return'';}},_0x3b6f9b=_0x526f6e(()=>{const _0x41a729=_0x3525a0;_0x39585b({..._0x5d6c31,'apiKey':_0x5960a9[_0x41a729(0x27a)](),'enableAuth':!0x0});},[_0x5d6c31,_0x5960a9,!0x0,_0x39585b]),_0x4ce68d=_0x5960a9[_0x3525a0(0x27a)]()['length']>0x0;return _0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x294),'children':[_0x19478f('div',{'className':_0x3525a0(0x2ca),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22f),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ae),'children':_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x2b9),'children':'⚙'})}),_0x19478f(_0x3525a0(0x228),{'children':_0x19478f('p',{'className':_0x3525a0(0x2f8),'children':_0x271951['t'](_0x3525a0(0x210))})})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2d4),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0xe696c7(_0x3525a0(0x1fe),_0x2bb093(_0x4be279,_0x3a42ac)),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x1f3),'children':[_0x19478f('div',{'className':_0xe696c7('univer-size-2\x20univer-rounded-full',_0x25d1b3(_0x4be279,_0x3a42ac))}),_0x19478f('span',{'className':_0x3525a0(0x273),'children':_0x128034(_0x4be279)})]})}),_0x3a42ac!==_0x4f8a1c[_0x3525a0(0x20d)]&&(_0x4be279===_0x440b2d[_0x3525a0(0x2c2)]||_0x3a42ac===_0x4f8a1c[_0x3525a0(0x213)])&&_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ec),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x278),'children':[_0x19478f(_0x3525a0(0x286),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x19478f('p',{'className':_0x3525a0(0x241),'children':_0x57ab4b(_0x3a42ac)})]})})]}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x319),'children':_0x4ad251('div',{'className':_0x3525a0(0x1ed),'children':[_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2e9),'children':[_0x4ad251(_0x3525a0(0x1fa),{'className':_0x3525a0(0x26b),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🔑'}),'\x20',_0x271951['t'](_0x3525a0(0x2dd)),_0x19478f('span',{'className':'univer-text-red-500','children':'*'}),_0x5cfe5d&&_0x19478f('a',{'className':_0x3525a0(0x2df),'title':_0x271951['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x27fd24(!0x0),'children':_0x19478f(_0x347fde,{})})]}),_0x19478f(_0x17d910,{'type':_0x3525a0(0x23c),'placeholder':_0x271951['t'](_0x3525a0(0x2c7)),'value':_0x5960a9,'disabled':_0x32c72a,'autoComplete':_0x3525a0(0x275),'onChange':_0x2ccefb}),_0x19478f('p',{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x238))})]}),_0x5cfe5d&&_0x4e266c&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x254),'children':[_0x19478f('a',{'className':_0x3525a0(0x1ef),'role':'button','onClick':()=>_0x27fd24(!0x1),'children':_0x19478f(_0x161a36,{'className':'univer-size-4'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x24d),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x256),'children':_0x19478f('span',{'className':_0x3525a0(0x289),'children':'🚀'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x23f),'children':[_0x19478f('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x271951['t'](_0x3525a0(0x310))}),_0x19478f('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x271951['t'](_0x3525a0(0x24f))}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x297),'children':_0x529be5&&_0x4ad251('a',{'className':_0x3525a0(0x253),'href':_0x1b17d3,'target':_0x3525a0(0x29a),'rel':_0x3525a0(0x249),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🤖'}),_0x271951['t'](_0x3525a0(0x2f7)),_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x306),'children':'↗'})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2b6),'children':['✨','\x20',_0x271951['t'](_0x3525a0(0x2a4))]})]})]})]}),_0x3a5ba1[_0x3525a0(0x30e)]&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x27d),'children':[_0x4ad251('h4',{'className':_0x3525a0(0x23b),'children':[_0x19478f('span',{'children':'🔗'}),'\x20',_0x271951['t'](_0x3525a0(0x2c5))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-4','children':[_0x4ad251('div',{'className':_0x3525a0(0x307),'children':[_0x19478f('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x271951['t']('mcpConfig.configInstructions')}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x19478f('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x25f))}),_0x4ad251('div',{'className':_0x3525a0(0x2e7),'children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'1'}),_0x271951['t'](_0x3525a0(0x236))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'2'}),_0x271951['t'](_0x3525a0(0x28e))]}),_0x4ad251('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'className':_0x3525a0(0x23a),'children':'3'}),_0x271951['t'](_0x3525a0(0x21f))]})]})]})]}),_0x4ad251('div',{'className':_0x3525a0(0x2e9),'children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3525a0(0x2aa)}),_0x19478f('div',{'className':_0x3525a0(0x302),'children':_0x19478f('pre',{'className':_0x3525a0(0x204),'children':JSON[_0x3525a0(0x2e0)]({'mcpServers':{'univer':{'url':_0x3525a0(0x208)+(_0x321029||'<SESSION_ID>'),'type':_0x3525a0(0x277),'headers':{'Authorization':_0x3525a0(0x279)+(_0x5960a9||_0x3525a0(0x295))}}}},null,0x2)})})]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-3','children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x23d))}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251('div',{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':'univer_session_id:'}),_0x19478f('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x271951['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x265),'children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':_0x3525a0(0x2a2)}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x1f8))})]})]})]})]})]})]}),_0x19478f(_0x979000,{'onClick':_0x3b6f9b,'disabled':!_0x4ce68d||_0x32c72a,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x32c72a?_0x4ad251(_0x3525a0(0x286),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'children':'⟲'}),_0x271951['t'](_0x3525a0(0x2b5))]}):_0x4ad251(_0x3525a0(0x286),{'className':_0x3525a0(0x1f3),'children':[_0x19478f(_0x4ed399,{}),_0x271951['t'](_0x3525a0(0x276))]})}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x202),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22d),'children':[_0x19478f('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4ad251('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x315),'children':'Configuration\x20Notes:'}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x24a))]}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x1fd))]})]})]})})]})})]});}const B='mcp-ui.config';Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x98d677){'@babel/helpers - typeof';const _0x244465=_0x1ffc;return H=typeof Symbol==_0x244465(0x28f)&&typeof Symbol[_0x244465(0x27f)]==_0x244465(0x20b)?function(_0xc6dabe){return typeof _0xc6dabe;}:function(_0x259a3f){const _0x26b283=_0x244465;return _0x259a3f&&typeof Symbol==_0x26b283(0x28f)&&_0x259a3f[_0x26b283(0x1f6)]===Symbol&&_0x259a3f!==Symbol[_0x26b283(0x21b)]?_0x26b283(0x20b):typeof _0x259a3f;},H(_0x98d677);}function oe(_0x3d033d,_0x4b508a){const _0xa3501=_0x1ffc;if(H(_0x3d033d)!=_0xa3501(0x2d2)||!_0x3d033d)return _0x3d033d;var _0x2613a2=_0x3d033d[Symbol[_0xa3501(0x211)]];if(_0x2613a2!==void 0x0){var _0x396eda=_0x2613a2['call'](_0x3d033d,_0x4b508a||'default');if(H(_0x396eda)!=_0xa3501(0x2d2))return _0x396eda;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b508a===_0xa3501(0x2cb)?String:Number)(_0x3d033d);}function se(_0x23e8f1){const _0x571051=_0x1ffc;var _0xf3e5f3=oe(_0x23e8f1,_0x571051(0x2cb));return H(_0xf3e5f3)==_0x571051(0x20b)?_0xf3e5f3:_0xf3e5f3+'';}function U(_0x346a19,_0x4b0ba3,_0x3cda37){return(_0x4b0ba3=se(_0x4b0ba3))in _0x346a19?Object['defineProperty'](_0x346a19,_0x4b0ba3,{'value':_0x3cda37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x346a19[_0x4b0ba3]=_0x3cda37,_0x346a19;}function W(_0x3c463a,_0x48436b){return function(_0x589983,_0x27aa5e){_0x48436b(_0x589983,_0x27aa5e,_0x3c463a);};}function G(_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba){const _0x350520=_0x1ffc;var _0x11f209=arguments[_0x350520(0x257)],_0x5859ff=_0x11f209<0x3?_0x18a431:_0x1c21ba===null?_0x1c21ba=Object[_0x350520(0x2ff)](_0x18a431,_0x30eb75):_0x1c21ba,_0x232a1d;if(typeof Reflect==_0x350520(0x2d2)&&typeof Reflect['decorate']=='function')_0x5859ff=Reflect[_0x350520(0x262)](_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba);else{for(var _0x1d6b85=_0x5bcc7d[_0x350520(0x257)]-0x1;_0x1d6b85>=0x0;_0x1d6b85--)(_0x232a1d=_0x5bcc7d[_0x1d6b85])&&(_0x5859ff=(_0x11f209<0x3?_0x232a1d(_0x5859ff):_0x11f209>0x3?_0x232a1d(_0x18a431,_0x30eb75,_0x5859ff):_0x232a1d(_0x18a431,_0x30eb75))||_0x5859ff);}return _0x11f209>0x3&&_0x5859ff&&Object[_0x350520(0x1ff)](_0x18a431,_0x30eb75,_0x5859ff),_0x5859ff;}const K=_0x24e2fc(0x283),q='mcp-config-dialog';let J=class extends _0x553c10{constructor(_0x5e351e,_0x3ab646,_0x42c83e,_0x5e37ec,_0x2767ba,_0x26f814,_0x1c46de,_0x2cbd8c,_0x58387f,_0x358328){const _0x5163a=_0x24e2fc;super(),this[_0x5163a(0x220)]=_0x5e351e,this[_0x5163a(0x2c6)]=_0x3ab646,this[_0x5163a(0x31e)]=_0x42c83e,this[_0x5163a(0x317)]=_0x5e37ec,this[_0x5163a(0x290)]=_0x2767ba,this['_messageService']=_0x26f814,this[_0x5163a(0x2b8)]=_0x1c46de,this[_0x5163a(0x242)]=_0x2cbd8c,this['_logService']=_0x58387f,this[_0x5163a(0x203)]=_0x358328,U(this,_0x5163a(0x222),new _0x4bb220(!0x1)),U(this,'_mcpCoreConfig$',new _0x4bb220({})),U(this,_0x5163a(0x318),new _0x4bb220({})),U(this,_0x5163a(0x240),new _0x4bb220('')),U(this,_0x5163a(0x30c),async _0xd8700f=>{const _0x2f24cf=_0x5163a;this['_loading$'][_0x2f24cf(0x22b)](!0x0);try{var _0x266908,_0x43005a;let _0x1f8280=await this[_0x2f24cf(0x200)](_0xd8700f);if(!_0x1f8280['isValid']){this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':_0x1f8280[_0x2f24cf(0x30b)]||this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x2a3))});return;}_0xd8700f[_0x2f24cf(0x27c)]?await this[_0x2f24cf(0x317)][_0x2f24cf(0x2f1)](K,_0xd8700f[_0x2f24cf(0x27c)][_0x2f24cf(0x27a)]()):await this[_0x2f24cf(0x317)]['removeItem'](K),this[_0x2f24cf(0x240)]['next'](((_0x266908=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x266908['trim']())||''),this[_0x2f24cf(0x203)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x43005a=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x43005a[_0x2f24cf(0x27a)]())}),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x2e1)],'content':this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x25a))}),setTimeout(()=>{const _0x223e40=_0x2f24cf;this['_dialogService'][_0x223e40(0x30f)](q);},0x320);}catch(_0x2b2c71){this[_0x2f24cf(0x288)][_0x2f24cf(0x21c)](_0x2f24cf(0x274),_0x2b2c71),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':this[_0x2f24cf(0x242)]['t']('mcpConfig.configError')});}finally{this[_0x2f24cf(0x222)][_0x2f24cf(0x22b)](!0x1);}}),this[_0x5163a(0x2b0)](),this[_0x5163a(0x308)](),this[_0x5163a(0x224)]();}[_0x24e2fc(0x20f)](){const _0x218016=_0x24e2fc;let _0x1a9c76=this[_0x218016(0x31e)][_0x218016(0x2ea)](B);_0x1a9c76!=null&&_0x1a9c76[_0x218016(0x30e)]&&this['_dialogService'][_0x218016(0x233)]({'id':q,'title':{'title':this[_0x218016(0x242)]['t'](_0x218016(0x299))},'children':{'label':_0x218016(0x260)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4b7762=_0x218016;this[_0x4b7762(0x290)][_0x4b7762(0x30f)](q);}});}['getCurrentConfig'](){const _0x50ac9c=_0x24e2fc;return this[_0x50ac9c(0x2c3)][_0x50ac9c(0x2c4)];}[_0x24e2fc(0x224)](){const _0x593179=_0x24e2fc;this['disposeWithMe'](this['_componentManager'][_0x593179(0x250)](_0x593179(0x260),this[_0x593179(0x2b4)]()));}['_createConfigPanelComponent'](){const _0x57a3ce=_0x24e2fc;return _0xd78b8b(()=>{const _0x395199=_0x1ffc;var _0x4c64d6,_0x2ba410,_0x36667b;return _0x19478f(z,{'config':this[_0x395199(0x318)][_0x395199(0x2c4)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x395199(0x2c4)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x395199(0x30c)],'loading':this[_0x395199(0x222)][_0x395199(0x2c4)],'connectionStatus$':(_0x4c64d6=this[_0x395199(0x203)])==null?void 0x0:_0x4c64d6[_0x395199(0x209)],'connectionError$':(_0x2ba410=this['_mcpConnectionController'])==null?void 0x0:_0x2ba410[_0x395199(0x206)],'currentSessionId$':(_0x36667b=this[_0x395199(0x203)])==null?void 0x0:_0x36667b[_0x395199(0x2eb)]});},this[_0x57a3ce(0x220)]);}[_0x24e2fc(0x2b0)](){const _0x44ba0c=_0x24e2fc;this['disposeWithMe'](this[_0x44ba0c(0x31e)][_0x44ba0c(0x321)](_0x15ca7d)[_0x44ba0c(0x226)](_0x5671c5=>{const _0x3e7aa3=_0x44ba0c;this[_0x3e7aa3(0x2c3)]['next'](_0x5671c5||{});}));let _0x423898=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](_0x15ca7d);this['_mcpCoreConfig$'][_0x44ba0c(0x22b)](_0x423898||{}),this[_0x44ba0c(0x285)](this['_configService'][_0x44ba0c(0x321)](B)[_0x44ba0c(0x226)](_0x102967=>{const _0x3b49d0=_0x44ba0c;this[_0x3b49d0(0x318)]['next'](_0x102967||{});}));let _0x109ac2=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](B);this[_0x44ba0c(0x318)][_0x44ba0c(0x22b)](_0x109ac2||{});}async[_0x24e2fc(0x308)](){const _0x1e972b=_0x24e2fc;let _0x407bb5=this['_configService']['getConfig'](B);if(!(_0x407bb5!=null&&_0x407bb5['showDeveloperTools']))return;let _0x3896ef=await this[_0x1e972b(0x317)][_0x1e972b(0x214)](K);_0x3896ef&&(this['_mcpConnectionController'][_0x1e972b(0x1f4)]({'Authorization':'Bearer\x20'+_0x3896ef}),this['_apiKey$'][_0x1e972b(0x22b)](_0x3896ef));}async[_0x24e2fc(0x200)](_0x6729e7){const _0x2e975d=_0x24e2fc;if(!_0x6729e7['apiKey']||_0x6729e7[_0x2e975d(0x27c)][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2e975d(0x242)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x6729e7['apiKey'][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2e975d(0x22c))};try{let _0x2edefd=await this[_0x2e975d(0x220)][_0x2e975d(0x2a9)](_0x3a6502)['validateApiKey'](_0x6729e7['apiKey'][_0x2e975d(0x27a)]());return _0x2edefd[_0x2e975d(0x2b3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2edefd[_0x2e975d(0x21c)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x261952){return console[_0x2e975d(0x2d7)](_0x2e975d(0x284),_0x261952),{'isValid':!0x0};}}};J=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0xbb3625),W(0x2,_0x16e4b4),W(0x3,_0x5192e1),W(0x4,_0x4d970d),W(0x5,_0x34758a),W(0x6,_0x17ef4b(_0x26c3a3)),W(0x7,_0x17ef4b(_0x58c1f8)),W(0x8,_0x3720d4),W(0x9,_0x17ef4b(_0x3a6502))],J);const Y={'id':_0x24e2fc(0x2da),'type':_0x2f411b[_0x24e2fc(0x2a6)],'handler':async(_0x3cb36c,_0x176c77)=>(_0x3cb36c[_0x24e2fc(0x2a9)](J)[_0x24e2fc(0x20f)](),!0x0)};function X(_0x471adf,_0x2a2665){const _0x5c23c0=_0x24e2fc;switch(_0x471adf){case _0x440b2d[_0x5c23c0(0x300)]:return'mcpStatus.disconnected';case _0x440b2d[_0x5c23c0(0x2b7)]:return _0x5c23c0(0x205);case _0x440b2d[_0x5c23c0(0x2d6)]:return _0x5c23c0(0x237);case _0x440b2d[_0x5c23c0(0x2c2)]:switch(_0x2a2665){case _0x4f8a1c[_0x5c23c0(0x213)]:return'mcpStatus.unauthorized';case _0x4f8a1c[_0x5c23c0(0x230)]:return _0x5c23c0(0x29e);case _0x4f8a1c['NETWORK_ERROR']:return _0x5c23c0(0x227);case _0x4f8a1c[_0x5c23c0(0x219)]:return _0x5c23c0(0x21d);default:return _0x5c23c0(0x298);}case _0x440b2d[_0x5c23c0(0x2e4)]:return _0x5c23c0(0x258);default:return _0x5c23c0(0x267);}}function ce(_0x376bdb,_0x2768d3,_0x5d850c,_0x33f1de=!0x0){const _0x87c606=_0x24e2fc;let _0x262535=X(_0x376bdb,_0x2768d3),_0x357eaa=_0x5d850c['t'](_0x262535);return _0x33f1de?_0x376bdb===_0x440b2d[_0x87c606(0x300)]&&_0x2768d3===_0x4f8a1c[_0x87c606(0x213)]?_0x357eaa+_0x87c606(0x223)+_0x5d850c['t'](_0x87c606(0x25b)):_0x376bdb===_0x440b2d['CONNECTED']?''+_0x357eaa:_0x376bdb===_0x440b2d[_0x87c606(0x300)]||_0x376bdb===_0x440b2d[_0x87c606(0x2c2)]?_0x357eaa+'\x20-\x20'+_0x5d850c['t'](_0x87c606(0x2c8)):_0x357eaa:_0x357eaa;}function le(_0x179861){const _0x981f21=_0x24e2fc;switch(_0x179861){case _0x440b2d[_0x981f21(0x2d6)]:return _0x981f21(0x2ce);case _0x440b2d[_0x981f21(0x2b7)]:case _0x440b2d[_0x981f21(0x2e4)]:return _0x981f21(0x1ee);case _0x440b2d[_0x981f21(0x2c2)]:case _0x440b2d[_0x981f21(0x300)]:return _0x981f21(0x2ef);default:return'univer-text-gray-500';}}function ue(_0x4665d1){const _0x3a3707=_0x24e2fc;let {status$:_0x875bc4,error$:_0x2caaf8,onConfigure:_0xc225ce,showClickable:_0x154139=!0x0}=_0x4665d1,_0x6f8728=_0x12c36e(_0x875bc4,_0x440b2d[_0x3a3707(0x300)]),_0x443139=_0x12c36e(_0x2caaf8,_0x4f8a1c['NONE']),_0x16edc5=_0x5d46a2(_0x58c1f8),_0x4f148b=_0x6f8728===_0x440b2d[_0x3a3707(0x2d6)];_0x6f8728===_0x440b2d[_0x3a3707(0x2b7)]||_0x440b2d[_0x3a3707(0x2e4)];let _0xc000a0=_0x16edc5['t'](X(_0x6f8728,_0x443139)),_0x3a2a03=ce(_0x6f8728,_0x443139,_0x16edc5,_0x154139),_0xccad93=le(_0x6f8728),_0x5e5561=_0x19478f(_0x4f148b?_0x2e186b:_0x619373,{}),_0x237bcf=_0x526f6e(()=>{_0x154139&&_0xc225ce&&_0xc225ce();},[_0x154139,_0xc225ce]);function _0x2d0590(){const _0x69582e=_0x3a3707;return _0x4ad251('div',{'className':_0xe696c7('univer-flex\x20univer-items-center',_0x154139&&_0xc225ce&&_0x69582e(0x31c)),'role':_0x69582e(0x2af),'onClick':_0x154139&&_0xc225ce?_0x237bcf:void 0x0,'children':[_0x19478f('div',{'className':_0xe696c7('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xccad93),'children':_0x5e5561}),_0x19478f('div',{'className':_0x69582e(0x244),'children':_0xc000a0})]});}return _0x19478f(_0x48d592,{'title':_0x3a2a03,'placement':_0x3a3707(0x261),'children':_0x2d0590()});}let Z=class extends _0x553c10{constructor(_0x45c99d,_0x3f9566,_0x40ce21,_0x40c76f){const _0x411aea=_0x24e2fc;super(),this[_0x411aea(0x220)]=_0x45c99d,this[_0x411aea(0x212)]=_0x3f9566,this['_uiPartsService']=_0x40ce21,this[_0x411aea(0x31e)]=_0x40c76f,this['_initAutoConnect'](),this[_0x411aea(0x207)]();}['_initAutoConnect'](){const _0x272300=_0x24e2fc;let _0x2300fd=this[_0x272300(0x31e)]['getConfig'](B);_0x2300fd!=null&&_0x2300fd[_0x272300(0x30e)]&&(this[_0x272300(0x212)][_0x272300(0x311)]=!0x1);}[_0x24e2fc(0x207)](){const _0x1cd8d9=_0x24e2fc;let _0x122744=this[_0x1cd8d9(0x31e)][_0x1cd8d9(0x2ea)](B);(_0x122744==null?void 0x0:_0x122744[_0x1cd8d9(0x25e)])!==!0x1&&this[_0x1cd8d9(0x285)](this[_0x1cd8d9(0x2c6)][_0x1cd8d9(0x2c1)](_0x5d5a0c['HEADER_MENU'],()=>{const _0x13aa93=_0x1cd8d9;var _0x28c411;return _0xd78b8b(de({'status$':this[_0x13aa93(0x212)]['connectionStatus$'],'error$':this[_0x13aa93(0x212)][_0x13aa93(0x206)],'onConfigure':()=>this[_0x13aa93(0x2a7)](),'showClickable':(_0x28c411=_0x122744==null?void 0x0:_0x122744['showDeveloperTools'])==null?!0x1:_0x28c411}),this[_0x13aa93(0x220)]);}));}[_0x24e2fc(0x2a7)](){const _0x533463=_0x24e2fc;this[_0x533463(0x220)]['get'](J)[_0x533463(0x20f)]();}};Z=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0x17ef4b(_0x3a6502)),W(0x2,_0xbb3625),W(0x3,_0x16e4b4)],Z);function de(_0x2f20df){let {status$:_0x3461cc,error$:_0xbcf148,onConfigure:_0x53f021,showClickable:_0x1720b5}=_0x2f20df;return function(){return _0x19478f(ue,{'status$':_0x3461cc,'error$':_0xbcf148,'onConfigure':_0x53f021,'showClickable':_0x1720b5});};}function fe(_0x143afe){const _0x3c34d5=_0x24e2fc;return{'id':Y['id'],'type':_0x547bdc[_0x3c34d5(0x2ac)],'icon':'MenuIcon','title':_0x3c34d5(0x299),'tooltip':_0x3c34d5(0x299)};}const pe={[_0x66f7f3[_0x24e2fc(0x225)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x553c10{constructor(_0x1e18a5,_0x444104){const _0x20c5e9=_0x24e2fc;super(),this[_0x20c5e9(0x20e)]=_0x1e18a5,this[_0x20c5e9(0x323)]=_0x444104,this[_0x20c5e9(0x26a)](),this[_0x20c5e9(0x31f)]();}[_0x24e2fc(0x26a)](){const _0x2670cd=_0x24e2fc;[Y][_0x2670cd(0x1fb)](_0x38abc6=>{const _0x444362=_0x2670cd;this[_0x444362(0x285)](this[_0x444362(0x20e)][_0x444362(0x22e)](_0x38abc6));});}['_initializeMenus'](){const _0x1873b1=_0x24e2fc;this[_0x1873b1(0x323)][_0x1873b1(0x29b)](pe);}};Q=G([W(0x0,_0x274b3d),W(0x1,_0x2be40c)],Q);const me={'mcpStatus':{'disconnected':_0x24e2fc(0x287),'connecting':_0x24e2fc(0x28b),'connected':_0x24e2fc(0x28c),'failed':'MCP\x20Connection\x20Failed','retrying':_0x24e2fc(0x2be),'unknown':_0x24e2fc(0x1f7),'unauthorized':_0x24e2fc(0x26e),'sessionOccupied':_0x24e2fc(0x292),'networkError':_0x24e2fc(0x2ee),'maxRetriesExceeded':_0x24e2fc(0x28d),'clickToConnect':_0x24e2fc(0x28a),'clickToConfigure':_0x24e2fc(0x217)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x24e2fc(0x24c),'apiKey':_0x24e2fc(0x281),'apiKeyPlaceholder':_0x24e2fc(0x235),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x24e2fc(0x2e3),'enableAuthHint':_0x24e2fc(0x2a8),'connectionInfo':_0x24e2fc(0x303),'mcpClientConfig':_0x24e2fc(0x303),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x24e2fc(0x229),'configStep1':_0x24e2fc(0x2d9),'configStep2':_0x24e2fc(0x282),'configStep3':_0x24e2fc(0x2cd),'sessionId':_0x24e2fc(0x31b),'sessionIdDescription':_0x24e2fc(0x218),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x24e2fc(0x2f9),'save':'Save\x20Configuration','saving':_0x24e2fc(0x296),'note1':_0x24e2fc(0x2d1),'note2':_0x24e2fc(0x252),'configSaved':_0x24e2fc(0x271),'configError':_0x24e2fc(0x304),'apiApplyInfo':{'title':_0x24e2fc(0x266),'description':_0x24e2fc(0x1f2),'univerAiLabel':_0x24e2fc(0x216),'getStarted':_0x24e2fc(0x1f0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x24e2fc(0x2d8),'invalidConfig':_0x24e2fc(0x2bf),'invalidApiKey':_0x24e2fc(0x293)},'connectionStatus':{'disconnected':_0x24e2fc(0x313),'connecting':_0x24e2fc(0x221),'connected':_0x24e2fc(0x26c),'failed':_0x24e2fc(0x314),'retrying':_0x24e2fc(0x201)},'connectionError':{'unauthorized':_0x24e2fc(0x232),'sessionOccupied':_0x24e2fc(0x21e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x24e2fc(0x26f)}}},he={'mcpStatus':{'disconnected':_0x24e2fc(0x29f),'connecting':_0x24e2fc(0x2cf),'connected':'MCP\x20已连接','failed':_0x24e2fc(0x2fb),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x24e2fc(0x25d),'sessionOccupied':_0x24e2fc(0x2ba),'networkError':_0x24e2fc(0x2ab),'maxRetriesExceeded':_0x24e2fc(0x1f5),'clickToConnect':_0x24e2fc(0x27b),'clickToConfigure':_0x24e2fc(0x255)},'mcpConfig':{'title':'MCP\x20配置','description':_0x24e2fc(0x1fc),'apiKey':_0x24e2fc(0x31a),'apiKeyPlaceholder':_0x24e2fc(0x309),'apiKeyHint':_0x24e2fc(0x268),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x24e2fc(0x2f5),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x24e2fc(0x2d0),'configStep1':_0x24e2fc(0x2e6),'configStep2':_0x24e2fc(0x272),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x24e2fc(0x2b2),'sessionIdDescription':_0x24e2fc(0x234),'authorizationDescription':_0x24e2fc(0x263),'configParameters':_0x24e2fc(0x2e8),'maxRetries':'最大重试次数','save':_0x24e2fc(0x264),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x24e2fc(0x2fe),'configError':_0x24e2fc(0x280),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x24e2fc(0x20a),'univerAiLabel':_0x24e2fc(0x2a0),'getStarted':_0x24e2fc(0x312)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x24e2fc(0x231),'invalidConfig':_0x24e2fc(0x24b),'invalidApiKey':_0x24e2fc(0x248)},'connectionStatus':{'disconnected':_0x24e2fc(0x2c0),'connecting':_0x24e2fc(0x2bd),'connected':_0x24e2fc(0x245),'failed':_0x24e2fc(0x29c),'retrying':_0x24e2fc(0x2fa)},'connectionError':{'unauthorized':_0x24e2fc(0x22a),'sessionOccupied':_0x24e2fc(0x239),'networkError':_0x24e2fc(0x2dc),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x24e2fc(0x301),_e=_0x24e2fc(0x2cc);let $=class extends _0x210a69{constructor(_0x73ee84=V,_0x5d0d4f,_0x308648,_0x1e86ea,_0x2a2491,_0x23d8fa){const _0x1c91fa=_0x24e2fc;super(),this[_0x1c91fa(0x24e)]=_0x73ee84,this['_injector']=_0x5d0d4f,this[_0x1c91fa(0x31e)]=_0x308648,this[_0x1c91fa(0x2c6)]=_0x1e86ea,this['_localStorageService']=_0x2a2491,this[_0x1c91fa(0x242)]=_0x23d8fa;let {..._0x3674b2}=_0x5b05be({},V,this[_0x1c91fa(0x24e)]);this[_0x1c91fa(0x31e)][_0x1c91fa(0x2db)](B,_0x3674b2);}async[_0x24e2fc(0x2a5)](){const _0x272e39=_0x24e2fc;let _0xf72973=[[Z],[J],[Q]];this[_0x272e39(0x220)][_0x272e39(0x305)](_0x184860)||_0xf72973[_0x272e39(0x2e5)]([_0x184860,{'useClass':_0x3859a6}]),_0xf72973[_0x272e39(0x1fb)](_0x19b9e0=>this[_0x272e39(0x220)][_0x272e39(0x2d3)](_0x19b9e0)),this['_injector'][_0x272e39(0x2a9)](Z),this[_0x272e39(0x220)]['get'](J),this[_0x272e39(0x220)][_0x272e39(0x2a9)](Q);}};U($,_0x24e2fc(0x270),_0x24e2fc(0x2f0)),U($,_0x24e2fc(0x31d),ge),U($,_0x24e2fc(0x2fd),_e),$=G([_0x55f634(_0x2ba359),W(0x1,_0x17ef4b(_0x498a04)),W(0x2,_0x16e4b4),W(0x3,_0xbb3625),W(0x4,_0x5192e1),W(0x5,_0x17ef4b(_0x58c1f8))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2e77b0=_0x42c4;(function(_0x16015d,_0x4e5652){const _0x4d73c2=_0x42c4,_0x32f1f7=_0x16015d();while(!![]){try{const _0xb8326=parseInt(_0x4d73c2(0x169))/0x1*(-parseInt(_0x4d73c2(0x16b))/0x2)+parseInt(_0x4d73c2(0x165))/0x3+-parseInt(_0x4d73c2(0x167))/0x4*(parseInt(_0x4d73c2(0x174))/0x5)+-parseInt(_0x4d73c2(0x181))/0x6*(-parseInt(_0x4d73c2(0x17b))/0x7)+-parseInt(_0x4d73c2(0x16e))/0x8*(parseInt(_0x4d73c2(0x17c))/0x9)+-parseInt(_0x4d73c2(0x184))/0xa*(-parseInt(_0x4d73c2(0x163))/0xb)+parseInt(_0x4d73c2(0x170))/0xc;if(_0xb8326===_0x4e5652)break;else _0x32f1f7['push'](_0x32f1f7['shift']());}catch(_0x1d6080){_0x32f1f7['push'](_0x32f1f7['shift']());}}}(_0x4564,0x72046));function _0x42c4(_0x1025aa,_0x35fcad){_0x1025aa=_0x1025aa-0x159;const _0x4564e6=_0x4564();let _0x42c477=_0x4564e6[_0x1025aa];return _0x42c477;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2e77b0(0x15a),'connected':_0x2e77b0(0x15b),'failed':_0x2e77b0(0x180),'retrying':_0x2e77b0(0x15f),'unknown':_0x2e77b0(0x18b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2e77b0(0x185),'maxRetriesExceeded':_0x2e77b0(0x188),'clickToConnect':_0x2e77b0(0x177),'clickToConfigure':_0x2e77b0(0x17f)},'mcpConfig':{'title':_0x2e77b0(0x18a),'description':_0x2e77b0(0x16a),'apiKey':_0x2e77b0(0x159),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2e77b0(0x175),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2e77b0(0x171),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2e77b0(0x16d),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2e77b0(0x17e),'configStep2':_0x2e77b0(0x178),'configStep3':_0x2e77b0(0x15e),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2e77b0(0x164),'configParameters':_0x2e77b0(0x179),'maxRetries':_0x2e77b0(0x166),'save':_0x2e77b0(0x168),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2e77b0(0x160),'configSaved':_0x2e77b0(0x183),'configError':_0x2e77b0(0x17a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2e77b0(0x182),'univerAiLabel':_0x2e77b0(0x186),'getStarted':_0x2e77b0(0x17d)},'validation':{'apiKeyRequired':_0x2e77b0(0x173),'apiKeyTooShort':_0x2e77b0(0x16f),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2e77b0(0x172)},'connectionStatus':{'disconnected':_0x2e77b0(0x15c),'connecting':_0x2e77b0(0x187),'connected':_0x2e77b0(0x161),'failed':_0x2e77b0(0x189),'retrying':_0x2e77b0(0x16c)},'connectionError':{'unauthorized':_0x2e77b0(0x18c),'sessionOccupied':_0x2e77b0(0x15d),'networkError':_0x2e77b0(0x162),'maxRetriesExceeded':_0x2e77b0(0x176)}}};export{e as default};function _0x4564(){const _0x3da008=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','1198253HFQQWR','7651791VCDqBT','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','18bNWZrm','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','30wvIZdL','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','MCP\x20Configuration','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key','MCP\x20Connecting...','MCP\x20Connected','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','542608ydGxec','API\x20key\x20with\x20Bearer\x20prefix.','1541004vJnkdV','Max\x20Retries','8XldVai','Save\x20Configuration','109060ojPkSD','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4dFwCMl','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8IfmXQT','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','13264656gozCBV','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required','1863110RWThgu','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP'];_0x4564=function(){return _0x3da008;};return _0x4564();}
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a9d25=_0x2ae1;(function(_0x1afc1d,_0x1e707e){const _0x11159f=_0x2ae1,_0x461ff7=_0x1afc1d();while(!![]){try{const _0x22cb1d=parseInt(_0x11159f(0xa0))/0x1*(-parseInt(_0x11159f(0xbd))/0x2)+-parseInt(_0x11159f(0xb1))/0x3+parseInt(_0x11159f(0x9e))/0x4+-parseInt(_0x11159f(0xa8))/0x5+parseInt(_0x11159f(0xb9))/0x6+parseInt(_0x11159f(0xa3))/0x7*(parseInt(_0x11159f(0x92))/0x8)+parseInt(_0x11159f(0xaf))/0x9*(parseInt(_0x11159f(0xb8))/0xa);if(_0x22cb1d===_0x1e707e)break;else _0x461ff7['push'](_0x461ff7['shift']());}catch(_0x2e6d2c){_0x461ff7['push'](_0x461ff7['shift']());}}}(_0x2671,0x68c0b));const e={'mcpStatus':{'disconnected':_0x4a9d25(0xaa),'connecting':_0x4a9d25(0x9b),'connected':_0x4a9d25(0xa5),'failed':_0x4a9d25(0xb5),'retrying':_0x4a9d25(0xbe),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4a9d25(0xb0),'sessionOccupied':_0x4a9d25(0xbc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4a9d25(0xc1),'clickToConnect':_0x4a9d25(0xbb),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4a9d25(0x90),'description':_0x4a9d25(0x9a),'apiKey':_0x4a9d25(0xbf),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4a9d25(0xa4),'enableAuthHint':_0x4a9d25(0xb4),'connectionInfo':_0x4a9d25(0xa9),'mcpClientConfig':_0x4a9d25(0xa9),'configInstructions':_0x4a9d25(0x8f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4a9d25(0xb7),'configStep2':_0x4a9d25(0xab),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4a9d25(0x96),'sessionIdDescription':_0x4a9d25(0xae),'authorizationDescription':_0x4a9d25(0x99),'configParameters':_0x4a9d25(0xc0),'maxRetries':'Max\x20Retries','save':_0x4a9d25(0xa6),'saving':_0x4a9d25(0x9d),'note1':_0x4a9d25(0xac),'note2':_0x4a9d25(0x94),'configSaved':_0x4a9d25(0x95),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4a9d25(0xa7),'description':_0x4a9d25(0x9c),'univerAiLabel':_0x4a9d25(0x91),'getStarted':_0x4a9d25(0x9f)},'validation':{'apiKeyRequired':_0x4a9d25(0x98),'apiKeyTooShort':_0x4a9d25(0xa1),'invalidConfig':_0x4a9d25(0xad),'invalidApiKey':_0x4a9d25(0x93)},'connectionStatus':{'disconnected':_0x4a9d25(0xb3),'connecting':'Connecting...','connected':_0x4a9d25(0xba),'failed':_0x4a9d25(0xa2),'retrying':_0x4a9d25(0x97)},'connectionError':{'unauthorized':_0x4a9d25(0xb6),'sessionOccupied':_0x4a9d25(0x8e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4a9d25(0xb2)}}};export{e as default};function _0x2ae1(_0x393934,_0x4ece80){_0x393934=_0x393934-0x8e;const _0x2671db=_0x2671();let _0x2ae177=_0x2671db[_0x393934];return _0x2ae177;}function _0x2671(){const _0x1fa68e=['What\x20is\x20API\x20Key?','119670LvEJeL','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','78525RBobVm','MCP:\x20Unauthorized','1098951erPEjh','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','210WPMQcS','888480rlRJFq','Connected','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','2sefPLL','MCP\x20Retrying...','API\x20Key','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Univer\x20AI\x20Console','8ZMuoTO','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','Session\x20ID','Retrying...','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','1796560fHfftr','Get\x20your\x20API\x20key\x20in\x20seconds','173478WOTPkh','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','1486457Pwfyda','Enable\x20Authentication','MCP\x20Connected','Save\x20Configuration'];_0x2671=function(){return _0x1fa68e;};return _0x2671();}
|