@univerjs-pro/mcp-ui 0.25.0 → 0.25.1
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
|
+
function _0x4b76(){const _0x12a05f=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2638zoBTSl','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','261NebvLz','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','8407529xxvsjL','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','564WPfhal','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','MCP\x20Connected','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','5130AmkXKN','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2784VWlqEo','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','MCP:\x20Unauthorized','MCP\x20Configuration','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','453zGvjyp','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Retrying...','3690HUNlKm','MCP\x20Disconnected','1204wBMSFf','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','101497KoUIUe','exports','MCP\x20Unknown\x20Status','Click\x20to\x20configure\x20MCP','Save\x20Configuration','MCP\x20Connection\x20Failed','91jvjZJh','176830FQBmYt','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','346312WJenNr','MCP\x20Connecting...','Connecting...','Univer\x20AI\x20Console','Saving...','Enable\x20authentication\x20for\x20secure\x20connections'];_0x4b76=function(){return _0x12a05f;};return _0x4b76();}const _0x215ee1=_0x53e1;function _0x53e1(_0x1e9c6b,_0x234cdc){_0x1e9c6b=_0x1e9c6b-0x87;const _0x4b7608=_0x4b76();let _0x53e1f1=_0x4b7608[_0x1e9c6b];return _0x53e1f1;}(function(_0x13e2af,_0x2648bc){const _0x32938d=_0x53e1,_0x53d6d7=_0x13e2af();while(!![]){try{const _0x375b9d=-parseInt(_0x32938d(0x94))/0x1*(parseInt(_0x32938d(0xae))/0x2)+-parseInt(_0x32938d(0x8c))/0x3*(-parseInt(_0x32938d(0x99))/0x4)+parseInt(_0x32938d(0x97))/0x5*(-parseInt(_0x32938d(0x88))/0x6)+parseInt(_0x32938d(0xa2))/0x7*(parseInt(_0x32938d(0xa6))/0x8)+parseInt(_0x32938d(0xb2))/0x9*(parseInt(_0x32938d(0xa3))/0xa)+parseInt(_0x32938d(0x9c))/0xb*(-parseInt(_0x32938d(0xbb))/0xc)+parseInt(_0x32938d(0xb7))/0xd;if(_0x375b9d===_0x2648bc)break;else _0x53d6d7['push'](_0x53d6d7['shift']());}catch(_0xa8f017){_0x53d6d7['push'](_0x53d6d7['shift']());}}}(_0x4b76,0x52e03));const e={'mcpStatus':{'disconnected':_0x215ee1(0x98),'connecting':_0x215ee1(0xa7),'connected':_0x215ee1(0xbf),'failed':_0x215ee1(0xa1),'retrying':_0x215ee1(0x96),'unknown':_0x215ee1(0x9e),'unauthorized':_0x215ee1(0x90),'sessionOccupied':_0x215ee1(0x95),'networkError':_0x215ee1(0x87),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x215ee1(0xc0),'clickToConfigure':_0x215ee1(0x9f)},'mcpConfig':{'title':_0x215ee1(0x91),'description':_0x215ee1(0x89),'apiKey':_0x215ee1(0xaf),'apiKeyPlaceholder':_0x215ee1(0x9a),'apiKeyHint':_0x215ee1(0xb4),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x215ee1(0xab),'connectionInfo':_0x215ee1(0xbe),'mcpClientConfig':_0x215ee1(0xbe),'configInstructions':_0x215ee1(0xb9),'configStepTitle':_0x215ee1(0xb3),'configStep1':_0x215ee1(0xa5),'configStep2':_0x215ee1(0x8e),'configStep3':_0x215ee1(0xb6),'sessionId':_0x215ee1(0xb8),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x215ee1(0xbc),'configParameters':_0x215ee1(0x9b),'maxRetries':_0x215ee1(0x8f),'save':_0x215ee1(0xa0),'saving':_0x215ee1(0xaa),'note1':_0x215ee1(0x8d),'note2':_0x215ee1(0x8b),'configSaved':_0x215ee1(0xa4),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','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':_0x215ee1(0xa9),'getStarted':_0x215ee1(0xb0)},'validation':{'apiKeyRequired':_0x215ee1(0xb5),'apiKeyTooShort':_0x215ee1(0xbd),'invalidConfig':_0x215ee1(0x8a),'invalidApiKey':_0x215ee1(0x93)},'connectionStatus':{'disconnected':_0x215ee1(0xba),'connecting':_0x215ee1(0xa8),'connected':_0x215ee1(0x92),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x215ee1(0xad),'sessionOccupied':_0x215ee1(0xac),'networkError':_0x215ee1(0xb1),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x215ee1(0x9d)]=e;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1cb4(_0x24f6de,_0x3a9a19){_0x24f6de=_0x24f6de-0x1a1;const _0x3ffb82=_0x3ffb();let _0x1cb4c3=_0x3ffb82[_0x24f6de];return _0x1cb4c3;}function _0x3ffb(){const _0x2989dd=['Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','327830iruAtu','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP:\x20Prekročený\x20počet\x20pokusov','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Pripojenie\x20MCP\x20zlyhalo','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','100341SgkLPS','Povoliť\x20overenie','MCP\x20odpojené','3NFUdCb','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','ID\x20relácie','8RIAbWD','2890800aSruek','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','API\x20kľúč\x20je\x20povinný','Skúša\x20sa\x20znova...','Pripojené','Univer\x20AI\x20konzola','Konfigurácia\x20klienta\x20MCP','Čo\x20je\x20API\x20kľúč?','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','360DsSFAy','MCP\x20opakuje\x20pokus...','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','API\x20kľúč\x20s\x20prefixom\x20Bearer.','MCP\x20neznámy\x20stav','MCP:\x20Neautorizované','2125823HmxDYX','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','MCP\x20sa\x20pripája...','440740nIBUmP','exports','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.','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Konfigurácia\x20MCP','Kroky\x20konfigurácie:','Konfigurácia\x20bola\x20úspešne\x20uložená','Zadajte\x20svoj\x20API\x20kľúč','Odpojené','Kliknite\x20na\x20pripojenie\x20MCP','2147502iDsDkN','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','MCP:\x20Sieťová\x20chyba','524025FSKFFQ','Pripojenie\x20zlyhalo'];_0x3ffb=function(){return _0x2989dd;};return _0x3ffb();}const _0x482a45=_0x1cb4;(function(_0x4bb420,_0x136ed1){const _0x1ad70c=_0x1cb4,_0x2af6b8=_0x4bb420();while(!![]){try{const _0x5114d1=parseInt(_0x1ad70c(0x1c5))/0x1+-parseInt(_0x1ad70c(0x1c8))/0x2*(parseInt(_0x1ad70c(0x1a1))/0x3)+parseInt(_0x1ad70c(0x1a4))/0x4*(parseInt(_0x1ad70c(0x1b7))/0x5)+parseInt(_0x1ad70c(0x1c1))/0x6+-parseInt(_0x1ad70c(0x1b4))/0x7+parseInt(_0x1ad70c(0x1ae))/0x8*(-parseInt(_0x1ad70c(0x1ce))/0x9)+parseInt(_0x1ad70c(0x1a5))/0xa;if(_0x5114d1===_0x136ed1)break;else _0x2af6b8['push'](_0x2af6b8['shift']());}catch(_0x422fd5){_0x2af6b8['push'](_0x2af6b8['shift']());}}}(_0x3ffb,0x5c499));const e={'mcpStatus':{'disconnected':_0x482a45(0x1d0),'connecting':_0x482a45(0x1b6),'connected':'MCP\x20pripojené','failed':_0x482a45(0x1cc),'retrying':_0x482a45(0x1af),'unknown':_0x482a45(0x1b2),'unauthorized':_0x482a45(0x1b3),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x482a45(0x1c4),'maxRetriesExceeded':_0x482a45(0x1ca),'clickToConnect':_0x482a45(0x1c0),'clickToConfigure':'Kliknite\x20na\x20konfiguráciu\x20MCP'},'mcpConfig':{'title':_0x482a45(0x1bb),'description':_0x482a45(0x1b5),'apiKey':'API\x20kľúč','apiKeyPlaceholder':_0x482a45(0x1be),'apiKeyHint':_0x482a45(0x1c7),'enableAuth':_0x482a45(0x1cf),'enableAuthHint':'Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':_0x482a45(0x1ab),'configInstructions':_0x482a45(0x1a2),'configStepTitle':_0x482a45(0x1bc),'configStep1':_0x482a45(0x1c2),'configStep2':_0x482a45(0x1cd),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x482a45(0x1a3),'sessionIdDescription':_0x482a45(0x1b9),'authorizationDescription':_0x482a45(0x1b1),'configParameters':'Parametre\x20konfigurácie:','maxRetries':'Maximálny\x20počet\x20pokusov','save':'Uložiť\x20konfiguráciu','saving':'Ukladá\x20sa...','note1':'Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','note2':_0x482a45(0x1ad),'configSaved':_0x482a45(0x1bd),'configError':_0x482a45(0x1a6),'apiApplyInfo':{'title':_0x482a45(0x1ac),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':_0x482a45(0x1aa),'getStarted':_0x482a45(0x1cb)},'validation':{'apiKeyRequired':_0x482a45(0x1a7),'apiKeyTooShort':_0x482a45(0x1c3),'invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':'Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny'},'connectionStatus':{'disconnected':_0x482a45(0x1bf),'connecting':'Pripája\x20sa...','connected':_0x482a45(0x1a9),'failed':_0x482a45(0x1c6),'retrying':_0x482a45(0x1a8)},'connectionError':{'unauthorized':_0x482a45(0x1ba),'sessionOccupied':_0x482a45(0x1c9),'networkError':_0x482a45(0x1b0),'maxRetriesExceeded':'Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr'}}};module[_0x482a45(0x1b8)]=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x49f713=_0x237e;(function(_0x32a7da,_0x24b348){const _0x2ecf38=_0x237e,_0x109cb2=_0x32a7da();while(!![]){try{const _0x5e1661=-parseInt(_0x2ecf38(0x130))/0x1*(parseInt(_0x2ecf38(0x13d))/0x2)+parseInt(_0x2ecf38(0x14a))/0x3*(-parseInt(_0x2ecf38(0x13a))/0x4)+parseInt(_0x2ecf38(0x141))/0x5*(-parseInt(_0x2ecf38(0x13e))/0x6)+-parseInt(_0x2ecf38(0x157))/0x7*(-parseInt(_0x2ecf38(0x14c))/0x8)+-parseInt(_0x2ecf38(0x136))/0x9+parseInt(_0x2ecf38(0x12b))/0xa+parseInt(_0x2ecf38(0x12f))/0xb*(parseInt(_0x2ecf38(0x135))/0xc);if(_0x5e1661===_0x24b348)break;else _0x109cb2['push'](_0x109cb2['shift']());}catch(_0x2f0665){_0x109cb2['push'](_0x109cb2['shift']());}}}(_0x3635,0x96262));const e={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x49f713(0x143),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x49f713(0x14f),'retrying':_0x49f713(0x138),'unknown':_0x49f713(0x14d),'unauthorized':_0x49f713(0x127),'sessionOccupied':_0x49f713(0x12e),'networkError':_0x49f713(0x134),'maxRetriesExceeded':_0x49f713(0x152),'clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x49f713(0x140)},'mcpConfig':{'title':_0x49f713(0x151),'description':_0x49f713(0x147),'apiKey':_0x49f713(0x12a),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x49f713(0x126),'enableAuth':_0x49f713(0x145),'enableAuthHint':_0x49f713(0x137),'connectionInfo':_0x49f713(0x14e),'mcpClientConfig':_0x49f713(0x14e),'configInstructions':_0x49f713(0x131),'configStepTitle':_0x49f713(0x155),'configStep1':_0x49f713(0x123),'configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':_0x49f713(0x129),'sessionId':_0x49f713(0x133),'sessionIdDescription':_0x49f713(0x146),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':_0x49f713(0x13f),'maxRetries':_0x49f713(0x128),'save':'Lưu\x20cấu\x20hình','saving':_0x49f713(0x154),'note1':_0x49f713(0x13b),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x49f713(0x149),'apiApplyInfo':{'title':_0x49f713(0x14b),'description':_0x49f713(0x124),'univerAiLabel':_0x49f713(0x139),'getStarted':_0x49f713(0x122)},'validation':{'apiKeyRequired':_0x49f713(0x148),'apiKeyTooShort':_0x49f713(0x150),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x49f713(0x12c)},'connectionStatus':{'disconnected':_0x49f713(0x156),'connecting':_0x49f713(0x13c),'connected':'Đã\x20kết\x20nối','failed':_0x49f713(0x144),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x49f713(0x132),'sessionOccupied':_0x49f713(0x125),'networkError':_0x49f713(0x12d),'maxRetriesExceeded':_0x49f713(0x153)}}};function _0x237e(_0x2ccd4b,_0xdbcdb6){_0x2ccd4b=_0x2ccd4b-0x122;const _0x363555=_0x3635();let _0x237e6d=_0x363555[_0x2ccd4b];return _0x237e6d;}module[_0x49f713(0x142)]=e;function _0x3635(){const _0x2a65c4=['470911CiLbka','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','ID\x20phiên','MCP:\x20Lỗi\x20mạng','11368740mXttnW','10259991IITnQb','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','MCP\x20Đang\x20thử\x20lại...','Bảng\x20điều\x20khiển\x20Univer\x20AI','4XfSJrn','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Đang\x20kết\x20nối...','2KuBgaY','6Ijaxgk','Tham\x20số\x20cấu\x20hình:','Nhấp\x20để\x20cấu\x20hình\x20MCP','631730xQriGs','exports','MCP\x20Đang\x20kết\x20nối...','Kết\x20nối\x20thất\x20bại','Bật\x20xác\x20thực','Đị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.','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Yêu\x20cầu\x20khóa\x20API','Lưu\x20cấu\x20hình\x20thất\x20bại','686100ypcSMp','Khóa\x20API\x20là\x20gì?','23016HvfUeg','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Kết\x20nối\x20thất\x20bại','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Cấu\x20hình\x20MCP','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Đang\x20lưu...','Các\x20bước\x20cấu\x20hình:','Đã\x20ngắt\x20kết\x20nối','140mxABPA','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','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.','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','MCP:\x20Không\x20được\x20phép','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Khóa\x20API','6286360FUBMtj','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','22LnWtgG'];_0x3635=function(){return _0x2a65c4;};return _0x3635();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x91e436=_0x5e04;function _0x5e04(_0x5d445a,_0x1501c4){_0x5d445a=_0x5d445a-0xcd;const _0x1dc245=_0x1dc2();let _0x5e0413=_0x1dc245[_0x5d445a];return _0x5e0413;}(function(_0x5d76d1,_0x457bc5){const _0x503562=_0x5e04,_0x22598e=_0x5d76d1();while(!![]){try{const _0x1e1afe=parseInt(_0x503562(0xf2))/0x1+-parseInt(_0x503562(0xce))/0x2*(parseInt(_0x503562(0xee))/0x3)+parseInt(_0x503562(0xd5))/0x4*(parseInt(_0x503562(0xd4))/0x5)+-parseInt(_0x503562(0xeb))/0x6+parseInt(_0x503562(0xf6))/0x7+parseInt(_0x503562(0xe6))/0x8+parseInt(_0x503562(0xe3))/0x9*(-parseInt(_0x503562(0xde))/0xa);if(_0x1e1afe===_0x457bc5)break;else _0x22598e['push'](_0x22598e['shift']());}catch(_0x20f9d8){_0x22598e['push'](_0x22598e['shift']());}}}(_0x1dc2,0x52b3a));function _0x1dc2(){const _0x6d3535=['API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置\x20MCP\x20使用\x20AI\x20操作电子表格','1967274kKqbBX','会话ID','配置步骤:','3vtPCqr','API\x20密钥长度至少需要\x2010\x20位','什么是\x20API\x20密钥?','MCP:\x20未授权','505697wvUaAh','超出最大重试次数,请稍后再试','最大重试次数','带有\x20Bearer\x20前缀的\x20API\x20密钥。','1259734aIvvDc','已连接','MCP\x20连接失败','996554hcXKVN','MCP\x20客户端配置','启用身份验证以获得安全连接','启用身份验证','MCP\x20配置','您的\x20API\x20密钥将在此浏览器中本地存储','51855jNnZeL','240bgzNXl','配置无效','重连中...','MCP\x20重连中...','配置参数:','exports','MCP:\x20网络错误','将以下配置添加到您的\x20MCP\x20客户端设置中:','点击配置\x20MCP','30gIaHTa','MCP\x20连接中...','配置更改将立即生效','网络连接错误,请检查您的网络连接','连接失败','572337lITtnw','复制以下\x20JSON\x20配置','重启您的\x20MCP\x20客户端以使配置生效','382096XJiLQk','API\x20密钥无效,请检查密钥是否正确','请输入您的\x20API\x20密钥'];_0x1dc2=function(){return _0x6d3535;};return _0x1dc2();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x91e436(0xdf),'connected':'MCP\x20已连接','failed':_0x91e436(0xcd),'retrying':_0x91e436(0xd8),'unknown':'MCP\x20状态未知','unauthorized':_0x91e436(0xf1),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x91e436(0xdb),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x91e436(0xdd)},'mcpConfig':{'title':_0x91e436(0xd2),'description':_0x91e436(0xea),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x91e436(0xe8),'apiKeyHint':_0x91e436(0xd3),'enableAuth':_0x91e436(0xd1),'enableAuthHint':_0x91e436(0xd0),'connectionInfo':_0x91e436(0xcf),'mcpClientConfig':_0x91e436(0xcf),'configInstructions':_0x91e436(0xdc),'configStepTitle':_0x91e436(0xed),'configStep1':_0x91e436(0xe4),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x91e436(0xe5),'sessionId':_0x91e436(0xec),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x91e436(0xf5),'configParameters':_0x91e436(0xd9),'maxRetries':_0x91e436(0xf4),'save':'保存配置','saving':'保存中...','note1':_0x91e436(0xe0),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x91e436(0xf0),'description':_0x91e436(0xe9),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x91e436(0xef),'invalidConfig':_0x91e436(0xd6),'invalidApiKey':_0x91e436(0xe7)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x91e436(0xf7),'failed':_0x91e436(0xe2),'retrying':_0x91e436(0xd7)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x91e436(0xe1),'maxRetriesExceeded':_0x91e436(0xf3)}}};module[_0x91e436(0xda)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x6f1b(){const _0x513126=['API\x20Key','344itqZkm','Connected','MCP\x20Configuration','28940vjzMsX','35HJajZJ','Connection\x20Failed','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','Connecting...','What\x20is\x20API\x20Key?','1947228rhWknS','exports','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','Enable\x20Authentication','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','MCP\x20Connected','Session\x20ID','8964HqcvSd','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','448317pxiLgh','MCP\x20Connecting...','MCP:\x20Unauthorized','Saving...','Click\x20to\x20connect\x20MCP','7442320qbASoV','Click\x20to\x20configure\x20MCP','6XqGzah','1155256DQdiZg','Save\x20Configuration','139261gmFXOm','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x6f1b=function(){return _0x513126;};return _0x6f1b();}const _0x2330e5=_0x31f7;(function(_0x50fa86,_0x58f09f){const _0x2e6359=_0x31f7,_0x5a4d9a=_0x50fa86();while(!![]){try{const _0x1122bc=-parseInt(_0x2e6359(0xe4))/0x1*(parseInt(_0x2e6359(0xe1))/0x2)+parseInt(_0x2e6359(0xda))/0x3+-parseInt(_0x2e6359(0xb3))/0x4*(-parseInt(_0x2e6359(0xb6))/0x5)+parseInt(_0x2e6359(0xc5))/0x6+-parseInt(_0x2e6359(0xb7))/0x7*(-parseInt(_0x2e6359(0xe2))/0x8)+-parseInt(_0x2e6359(0xd8))/0x9+-parseInt(_0x2e6359(0xdf))/0xa;if(_0x1122bc===_0x58f09f)break;else _0x5a4d9a['push'](_0x5a4d9a['shift']());}catch(_0x145d3f){_0x5a4d9a['push'](_0x5a4d9a['shift']());}}}(_0x6f1b,0x81951));const e={'mcpStatus':{'disconnected':_0x2330e5(0xe5),'connecting':_0x2330e5(0xdb),'connected':_0x2330e5(0xd6),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2330e5(0xbc),'unknown':_0x2330e5(0xd1),'unauthorized':_0x2330e5(0xdc),'sessionOccupied':_0x2330e5(0xba),'networkError':_0x2330e5(0xd2),'maxRetriesExceeded':_0x2330e5(0xbd),'clickToConnect':_0x2330e5(0xde),'clickToConfigure':_0x2330e5(0xe0)},'mcpConfig':{'title':_0x2330e5(0xb5),'description':_0x2330e5(0xce),'apiKey':_0x2330e5(0xb2),'apiKeyPlaceholder':_0x2330e5(0xcb),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2330e5(0xcc),'enableAuthHint':_0x2330e5(0xbb),'connectionInfo':_0x2330e5(0xb9),'mcpClientConfig':_0x2330e5(0xb9),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2330e5(0xcf),'configStep1':_0x2330e5(0xaf),'configStep2':_0x2330e5(0xc1),'configStep3':_0x2330e5(0xb0),'sessionId':_0x2330e5(0xd7),'sessionIdDescription':_0x2330e5(0xc8),'authorizationDescription':_0x2330e5(0xca),'configParameters':_0x2330e5(0xbe),'maxRetries':_0x2330e5(0xcd),'save':_0x2330e5(0xe3),'saving':_0x2330e5(0xdd),'note1':_0x2330e5(0xd9),'note2':_0x2330e5(0xd0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2330e5(0xbf),'apiApplyInfo':{'title':_0x2330e5(0xc4),'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':_0x2330e5(0xd5),'getStarted':_0x2330e5(0xc9)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2330e5(0xd4),'invalidConfig':_0x2330e5(0xc0),'invalidApiKey':_0x2330e5(0xd3)},'connectionStatus':{'disconnected':_0x2330e5(0xc2),'connecting':_0x2330e5(0xc3),'connected':_0x2330e5(0xb4),'failed':_0x2330e5(0xb8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2330e5(0xc7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2330e5(0xb1),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x31f7(_0x5b0b3e,_0x5a4579){_0x5b0b3e=_0x5b0b3e-0xaf;const _0x6f1b1c=_0x6f1b();let _0x31f7e6=_0x6f1b1c[_0x5b0b3e];return _0x31f7e6;}module[_0x2330e5(0xc6)]=e;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a528e=_0x1c93;(function(_0x17a5ff,_0x11f00b){const _0xcb9cc9=_0x1c93,_0x1556b4=_0x17a5ff();while(!![]){try{const _0x107f5b=-parseInt(_0xcb9cc9(0x230))/0x1+-parseInt(_0xcb9cc9(0x156))/0x2+-parseInt(_0xcb9cc9(0x226))/0x3*(-parseInt(_0xcb9cc9(0x20e))/0x4)+parseInt(_0xcb9cc9(0x15d))/0x5*(parseInt(_0xcb9cc9(0x212))/0x6)+parseInt(_0xcb9cc9(0x245))/0x7*(parseInt(_0xcb9cc9(0x13b))/0x8)+-parseInt(_0xcb9cc9(0x16a))/0x9+parseInt(_0xcb9cc9(0x1f2))/0xa;if(_0x107f5b===_0x11f00b)break;else _0x1556b4['push'](_0x1556b4['shift']());}catch(_0x413ac2){_0x1556b4['push'](_0x1556b4['shift']());}}}(_0x4af5,0x91b74));import{CommandType as _0x24f842,DependentOn as _0x301de1,Disposable as _0x104263,ICommandService as _0x3dd060,IConfigService as _0x5c1546,ILocalStorageService as _0x51289c,ILogService as _0x5688b6,Inject as _0x520f38,Injector as _0x52d720,LocaleService as _0x1c055e,Plugin as _0x1904dc,merge as _0x30ce96}from'@univerjs/core';import{MCPConnectionController as _0x59b840,MCPConnectionError as _0x5b2f42,MCPConnectionStatus as _0x12d328,MCP_PLUGIN_CONFIG_KEY as _0x388181,UniverMCPPlugin as _0x2c3451}from'@univerjs-pro/mcp';import{Button as _0x40886f,Input as _0x1b8384,MessageType as _0x43e9d1,Tooltip as _0x17feeb,clsx as _0x4edf12}from'@univerjs/design';import{BuiltInUIPart as _0x2f6062,ComponentManager as _0x347581,IDialogService as _0xf080f,IMenuManagerService as _0x29010f,IMessageService as _0x1e86e2,IUIPartsService as _0x4b1764,MenuItemType as _0x616908,RibbonStartGroup as _0x4b7d34,connectInjector as _0x3eb632,useDependency as _0x27fbf1,useObservable as _0x4e5559}from'@univerjs/ui';import{BehaviorSubject as _0x1489c4}from'rxjs';import{CheckMarkIcon as _0x34eb61,CloseIcon as _0x520d07,HelpIcon as _0x28aa91,OffLineIcon as _0x178dec,OnLineIcon as _0xfd0da4}from'@univerjs/icons';import{useCallback as _0x2f9a45,useState as _0x4b5271}from'react';import{jsx as _0x1b0256,jsxs as _0x1a9f70}from'react/jsx-runtime';import{ISocketService as _0x255d94,WebSocketService as _0x11bb76}from'@univerjs/network';function z(_0x46eb76){const _0x2a05d1=_0x1c93;var _0x2b1d77,_0x403590;let {mcpCoreConfig:_0x1dcd88,onSave:_0x535973,loading:_0x2b8ebb=!0x1,config:_0x432097,connectionStatus$:_0x11f7e1,connectionError$:_0x425667,currentApiKey$:_0x397c46,currentSessionId$:_0x365a95}=_0x46eb76,_0x1b1753=_0x27fbf1(_0x1c055e),_0x473dc4=_0x4e5559(_0x11f7e1,_0x12d328[_0x2a05d1(0x205)]),_0x320a4c=_0x4e5559(_0x425667,_0x5b2f42[_0x2a05d1(0x215)]),_0x479a4e=_0x4e5559(_0x365a95,''),[_0x1ce765,_0xc9cb53]=_0x4b5271(_0x4e5559(_0x397c46,'')||''),_0x433cc4=_0x432097['showDeveloperTools']&&_0x1dcd88[_0x2a05d1(0x227)]&&(_0x1dcd88[_0x2a05d1(0x227)]['includes'](_0x2a05d1(0x149))||_0x1dcd88[_0x2a05d1(0x227)][_0x2a05d1(0x1f6)](_0x2a05d1(0x122))),_0x3fd400=(_0x2b1d77=_0x1dcd88[_0x2a05d1(0x227)])==null?void 0x0:_0x2b1d77['includes'](_0x2a05d1(0x149)),_0x58457c=(_0x403590=_0x1dcd88['mcpServerUrl'])==null?void 0x0:_0x403590[_0x2a05d1(0x1f6)](_0x2a05d1(0x122)),_0x48dfc0=_0x3fd400?_0x2a05d1(0x1ba):'https://console.univer.ai',_0x512318=_0x432097[_0x2a05d1(0x1d8)]&&(_0x3fd400||_0x58457c),[_0x576e05,_0xda3b36]=_0x4b5271(!_0x1ce765[_0x2a05d1(0x240)]()),_0x4c28d6=(_0x512424,_0x1ac0f1)=>{const _0x9f9a6a=_0x2a05d1;if(_0x1ac0f1===_0x5b2f42['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x512424){case _0x12d328[_0x9f9a6a(0x169)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x12d328[_0x9f9a6a(0x244)]:case _0x12d328[_0x9f9a6a(0x1bb)]:return _0x9f9a6a(0x231);case _0x12d328['FAILED']:return _0x9f9a6a(0x14a);default:return _0x9f9a6a(0x150);}},_0x16c4ac=(_0x5ddacc,_0x130e65)=>{const _0x31c4d6=_0x2a05d1;if(_0x130e65===_0x5b2f42[_0x31c4d6(0x1e6)])return _0x31c4d6(0x157);switch(_0x5ddacc){case _0x12d328[_0x31c4d6(0x169)]:return _0x31c4d6(0x1ac);case _0x12d328[_0x31c4d6(0x244)]:case _0x12d328[_0x31c4d6(0x1bb)]:return'univer-bg-blue-500';case _0x12d328[_0x31c4d6(0x127)]:return _0x31c4d6(0x157);default:return _0x31c4d6(0x131);}},_0x18753d=_0x31d846=>{const _0x28e3a7=_0x2a05d1;switch(_0x31d846){case _0x12d328[_0x28e3a7(0x169)]:return _0x1b1753['t'](_0x28e3a7(0x1c1));case _0x12d328[_0x28e3a7(0x244)]:return _0x1b1753['t'](_0x28e3a7(0x165));case _0x12d328[_0x28e3a7(0x127)]:return _0x1b1753['t'](_0x28e3a7(0x1e9));case _0x12d328['RETRYING']:return _0x1b1753['t'](_0x28e3a7(0x137));default:return _0x1b1753['t'](_0x28e3a7(0x18e));}},_0x43016f=_0x43dc54=>{const _0x17a83f=_0x2a05d1;switch(_0x43dc54){case _0x5b2f42['UNAUTHORIZED']:return _0x1b1753['t'](_0x17a83f(0x163));case _0x5b2f42['SESSION_ID_OCCUPIED']:return _0x1b1753['t']('mcpConfig.connectionError.sessionOccupied');case _0x5b2f42['NETWORK_ERROR']:return _0x1b1753['t'](_0x17a83f(0x233));case _0x5b2f42['MAX_RETRIES_EXCEEDED']:return _0x1b1753['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x425feb=_0x2f9a45(()=>{const _0x406b31=_0x2a05d1;_0x535973({..._0x1dcd88,'apiKey':_0x1ce765[_0x406b31(0x240)](),'enableAuth':!0x0});},[_0x1dcd88,_0x1ce765,!0x0,_0x535973]),_0x135844=_0x1ce765[_0x2a05d1(0x240)]()[_0x2a05d1(0x192)]>0x0;return _0x1a9f70('div',{'className':_0x2a05d1(0x1d4),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x1a9f70('div',{'className':_0x2a05d1(0x1a7),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x13c),'children':_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-white','children':'⚙'})}),_0x1b0256('div',{'children':_0x1b0256('p',{'className':_0x2a05d1(0x1be),'children':_0x1b1753['t'](_0x2a05d1(0x18d))})})]})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x186),'children':[_0x1b0256('div',{'className':_0x4edf12(_0x2a05d1(0x22e),_0x4c28d6(_0x473dc4,_0x320a4c)),'children':_0x1a9f70('div',{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x4edf12(_0x2a05d1(0x158),_0x16c4ac(_0x473dc4,_0x320a4c))}),_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x1df),'children':_0x18753d(_0x473dc4)})]})}),_0x320a4c!==_0x5b2f42['NONE']&&(_0x473dc4===_0x12d328[_0x2a05d1(0x127)]||_0x320a4c===_0x5b2f42[_0x2a05d1(0x1e6)])&&_0x1b0256('div',{'className':_0x2a05d1(0x18b),'children':_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x13d),'children':[_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x1b0256('p',{'className':_0x2a05d1(0x19c),'children':_0x43016f(_0x320a4c)})]})})]}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x10e),'children':_0x1a9f70('div',{'className':_0x2a05d1(0x11f),'children':[_0x1a9f70('div',{'className':_0x2a05d1(0x1d2),'children':[_0x1a9f70(_0x2a05d1(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'🔑'}),'\x20',_0x1b1753['t'](_0x2a05d1(0x203)),_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x216),'children':'*'}),_0x433cc4&&_0x1b0256('a',{'className':_0x2a05d1(0x1bf),'title':_0x1b1753['t'](_0x2a05d1(0x211)),'role':_0x2a05d1(0x13e),'onClick':()=>_0xda3b36(!0x0),'children':_0x1b0256(_0x28aa91,{})})]}),_0x1b0256(_0x1b8384,{'type':'text','placeholder':_0x1b1753['t'](_0x2a05d1(0x1da)),'value':_0x1ce765,'disabled':_0x2b8ebb,'autoComplete':_0x2a05d1(0x164),'onChange':_0xc9cb53}),_0x1b0256('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1b1753['t'](_0x2a05d1(0x1b3))})]}),_0x433cc4&&_0x576e05&&_0x1a9f70(_0x2a05d1(0x12b),{'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':[_0x1b0256('a',{'className':_0x2a05d1(0x1c4),'role':_0x2a05d1(0x13e),'onClick':()=>_0xda3b36(!0x1),'children':_0x1b0256(_0x520d07,{'className':_0x2a05d1(0x15f)})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x10f),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x1f4),'children':_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-blue-600','children':'🚀'})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x148),'children':[_0x1b0256('h4',{'className':_0x2a05d1(0x1d9),'children':_0x1b1753['t'](_0x2a05d1(0x211))}),_0x1b0256('p',{'className':_0x2a05d1(0x22a),'children':_0x1b1753['t'](_0x2a05d1(0x20d))}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x132),'children':_0x512318&&_0x1a9f70('a',{'className':_0x2a05d1(0x14d),'href':_0x48dfc0,'target':_0x2a05d1(0x221),'rel':_0x2a05d1(0x1c2),'children':[_0x1b0256('span',{'children':'🤖'}),_0x1b1753['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1b1753['t'](_0x2a05d1(0x114))]})]})]})]}),_0x432097[_0x2a05d1(0x1d8)]&&_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x179),'children':[_0x1a9f70('h4',{'className':_0x2a05d1(0x17e),'children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'🔗'}),'\x20',_0x1b1753['t'](_0x2a05d1(0x1cc))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x167),'children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-space-y-3','children':[_0x1b0256('p',{'className':_0x2a05d1(0x206),'children':_0x1b1753['t'](_0x2a05d1(0x168))}),_0x1a9f70('div',{'className':_0x2a05d1(0x1d2),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x16b),'children':_0x1b1753['t'](_0x2a05d1(0x11d))}),_0x1a9f70('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x15b),'children':'1'}),_0x1b1753['t'](_0x2a05d1(0x1cd))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1b1753['t'](_0x2a05d1(0x213))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x15b),'children':'3'}),_0x1b1753['t'](_0x2a05d1(0x196))]})]})]})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1d2),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x16b),'children':_0x2a05d1(0x246)}),_0x1b0256('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x1b0256('pre',{'className':_0x2a05d1(0x237),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x2a05d1(0x1a0)+(_0x479a4e||_0x2a05d1(0x22b)),'type':_0x2a05d1(0x198),'headers':{'Authorization':_0x2a05d1(0x1f7)+(_0x1ce765||_0x2a05d1(0x1ce))}}}},null,0x2)})})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1ca),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x16b),'children':_0x1b1753['t'](_0x2a05d1(0x147))}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1d2),'children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x208)}),_0x1a9f70('div',{'className':_0x2a05d1(0x1bc),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x234),'children':_0x2a05d1(0x145)}),_0x1b0256('div',{'className':_0x2a05d1(0x249),'children':_0x1b1753['t'](_0x2a05d1(0x112))})]})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x20c),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x208)}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1b0256('div',{'className':_0x2a05d1(0x234),'children':_0x2a05d1(0x14f)}),_0x1b0256('div',{'className':_0x2a05d1(0x249),'children':_0x1b1753['t'](_0x2a05d1(0x228))})]})]})]})]})]})]}),_0x1b0256(_0x40886f,{'onClick':_0x425feb,'disabled':!_0x135844||_0x2b8ebb,'className':_0x2a05d1(0x201),'children':_0x2b8ebb?_0x1a9f70(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'⟲'}),_0x1b1753['t'](_0x2a05d1(0x1ed))]}):_0x1a9f70('span',{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x34eb61,{}),_0x1b1753['t'](_0x2a05d1(0x185))]})}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x21b),'children':_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x17f),'children':[_0x1b0256('span',{'className':_0x2a05d1(0x133),'children':'💡'}),_0x1a9f70('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1b0256('div',{'className':_0x2a05d1(0x12c),'children':'Configuration\x20Notes:'}),_0x1a9f70(_0x2a05d1(0x12b),{'children':['•',_0x1b1753['t'](_0x2a05d1(0x243))]}),_0x1a9f70(_0x2a05d1(0x12b),{'children':['•',_0x1b1753['t'](_0x2a05d1(0x23c))]})]})]})})]})})]});}function _0x4af5(){const _0x6c020=['MCP\x20状态未知','getCurrentConfig','getConfig','validateApiKey','_initAutoConnect','mcpConfig.apiKeyHint','connectionError$','error','Enter\x20your\x20API\x20key','default','MCP:\x20Network\x20Error','已连接','https://console.univer.plus','RETRYING','univer-min-w-0\x20univer-flex-1','_injector','univer-text-sm\x20univer-text-gray-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','forEach','mcpConfig.connectionStatus.connected','noopener\x20noreferrer','open','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','Configuration\x20Parameters:','MCP\x20连接中...','mcp-ui.config','Configuration\x20Steps:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-space-y-3','has','mcpConfig.connectionInfo','mcpConfig.configStep1','<API_KEY>','function','version','_mcpCoreConfig$','univer-space-y-2','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.failed','网络连接错误,请检查您的网络连接','showDeveloperTools','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiKeyPlaceholder','defineProperty','mcpStatus.unknown','请输入您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','univer-text-sm\x20univer-font-medium','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','getOwnPropertyDescriptor','@univerjs-pro/mcp-ui','MCP\x20已断开','mcpStatus.retrying','MAX_RETRIES_EXCEEDED','UNAUTHORIZED','_initializeMenus','_configService','mcpConfig.connectionStatus.failed','_validateConfig','value','Click\x20to\x20configure\x20MCP','mcpConfig.saving','_connectionController','复制以下\x20JSON\x20配置','连接中...','_apiKey$','6792360wcqPyp','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcp-ui.command.openConfigPanel','includes','Bearer\x20','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','_loadStoredApiKey','mcpConfig.configError','MCP\x20Disconnected','_config','close','几秒钟内获取您的\x20API\x20密钥','subscribe','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','_registerComponent','mcpConfig.apiKey','保存配置','DISCONNECTED','univer-text-xs\x20univer-text-gray-600','配置保存成功','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Univer\x20AI\x20控制台','MCP\x20连接失败','重连中...','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.apiApplyInfo.description','4ecyqJe','MCPConfigPanel','sessionId$','mcpConfig.apiApplyInfo.title','6THUfdi','mcpConfig.configStep2','toPrimitive','NONE','univer-text-red-500','univer-text-yellow-500','API\x20密钥长度至少需要\x2010\x20位','_uiPartsService','_initConfigSync','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-gray-500','mcpStatus.clickToConfigure','_mcpConnectionController','setConfig','isValid','_blank','iterator','OTHERS','Connecting...','配置无效','514497vNHLiT','mcpServerUrl','mcpConfig.authorizationDescription','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','<SESSION_ID>','Error','errorMessage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','您的\x20API\x20密钥安全存储在本地存储中','194166Ggyolr','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_componentManager','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20配置','_initializeCommands','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_localStorageService','mcp-config-dialog','removeItem','symbol','mcpConfig.note2','mcpConfig.validation.invalidApiKey','_createConfigPanelComponent','MCP\x20Client\x20Configuration','trim','Failed\x20to\x20save\x20configuration','SESSION_ID_OCCUPIED','mcpConfig.note1','CONNECTING','7564501duMupm','MCP\x20Configuration','registerComponent','Configuration\x20saved\x20successfully','univer-text-xs\x20univer-text-gray-500','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','prototype','onStarting','mcpConfig.sessionIdDescription','_config$','mcpConfig.apiApplyInfo.getStarted','get','MCP:\x20网络错误','MCP\x20Connection\x20Failed','_messageService','_commandService','mergeMenu','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_dialogService','mcpConfig.configStepTitle','保存中...','univer-space-y-5','object','Connection\x20Failed','univer.ai','权限验证失败,请检查您的\x20API\x20密钥','未连接','点击连接\x20MCP','mcpConfig.title','FAILED','API\x20密钥不能为空','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','div','univer-font-medium','showStatus','_loading$','univer-flex\x20univer-items-center\x20univer-gap-2','MCP_UI_PLUGIN','univer-bg-gray-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-shrink-0\x20univer-text-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','配置保存失败','超出最大重试次数,请稍后再试','mcpConfig.connectionStatus.retrying','Retrying...','最大重试次数','warn','8LVVnwZ','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-items-start\x20univer-gap-2','button','启用身份验证以获得安全连接','add','mcpStatus.networkError','connectionStatus$','mcpStatus.maxRetriesExceeded','_logService','univer_session_id:','配置更改将立即生效','mcpConfig.configParameters','univer-flex-1','univer.plus','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.configSaved','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','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','\x20-\x20','Authorization:','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','HEADER_MENU','BUTTON','string','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2267618dOuidq','univer-bg-red-500','univer-size-2\x20univer-rounded-full','__setCustomHeaders','带有\x20Bearer\x20前缀的\x20API\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','show','284855XzjZbf','MCP\x20客户端配置','univer-size-4','NETWORK_ERROR','MCP:\x20会话\x20ID\x20已被占用','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.connectionError.unauthorized','off','mcpConfig.connectionStatus.connecting','API\x20Key','univer-space-y-4','mcpConfig.configInstructions','CONNECTED','571698xpHMlT','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥','_initStatusComponent','mcp.apiKey','MCP\x20Unknown\x20Status','_handleConfigSave','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','call','0.25.0','MCP\x20已连接','Session\x20ID','MCP\x20重连中...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','点击配置\x20MCP','univer-text-green-500','span','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-gap-3','showConfigPanel','apiKey','mcpStatus.unauthorized','_handleConfigure','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.save','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.validation.apiKeyRequired','registerCommand','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Univer\x20AI\x20Console','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Success','mcpConfig.description','mcpConfig.connectionStatus.disconnected','register','push','什么是\x20API\x20密钥?','length','next','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.configStep3','enableAutoConnect','http','pluginName','mcpConfig.validation.apiKeyTooShort','mcpStatus.connected','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_localeService','API\x20key\x20is\x20required','https://mcp.univer.ai/mcp/?univer_session_id=','disposeWithMe','MCP:\x20超出最大重试次数','constructor','label','Connected','setItem','univer-flex\x20univer-items-center\x20univer-gap-3','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','decorate','MCP:\x20Unauthorized','API\x20密钥无效,请检查密钥是否正确','univer-bg-green-500','MCP\x20Connecting...'];_0x4af5=function(){return _0x6c020;};return _0x4af5();}const B=_0x4a528e(0x1c7),V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x22f856){'@babel/helpers - typeof';const _0x4ce639=_0x4a528e;return H=typeof Symbol==_0x4ce639(0x1cf)&&typeof Symbol[_0x4ce639(0x222)]==_0x4ce639(0x23b)?function(_0x3b3ecf){return typeof _0x3b3ecf;}:function(_0x2d4079){const _0xf5be9c=_0x4ce639;return _0x2d4079&&typeof Symbol==_0xf5be9c(0x1cf)&&_0x2d4079[_0xf5be9c(0x1a3)]===Symbol&&_0x2d4079!==Symbol[_0xf5be9c(0x110)]?_0xf5be9c(0x23b):typeof _0x2d4079;},H(_0x22f856);}function oe(_0x1b2fb7,_0x4484f1){const _0x284556=_0x4a528e;if(H(_0x1b2fb7)!=_0x284556(0x120)||!_0x1b2fb7)return _0x1b2fb7;var _0x4160db=_0x1b2fb7[Symbol[_0x284556(0x214)]];if(_0x4160db!==void 0x0){var _0x552ddf=_0x4160db[_0x284556(0x173)](_0x1b2fb7,_0x4484f1||_0x284556(0x1b7));if(H(_0x552ddf)!=_0x284556(0x120))return _0x552ddf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4484f1===_0x284556(0x153)?String:Number)(_0x1b2fb7);}function se(_0x43e022){const _0x4162b0=_0x4a528e;var _0x44dd41=oe(_0x43e022,_0x4162b0(0x153));return H(_0x44dd41)==_0x4162b0(0x23b)?_0x44dd41:_0x44dd41+'';}function U(_0xc6b90b,_0x5f0f60,_0x317fa5){const _0x1fbeee=_0x4a528e;return(_0x5f0f60=se(_0x5f0f60))in _0xc6b90b?Object[_0x1fbeee(0x1db)](_0xc6b90b,_0x5f0f60,{'value':_0x317fa5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc6b90b[_0x5f0f60]=_0x317fa5,_0xc6b90b;}function W(_0x8a53e4,_0x54bf54){return function(_0xd0b5d3,_0x20059b){_0x54bf54(_0xd0b5d3,_0x20059b,_0x8a53e4);};}function G(_0x246257,_0x10ce85,_0x3b06f0,_0x34c465){const _0x50abc4=_0x4a528e;var _0x35043f=arguments[_0x50abc4(0x192)],_0x5543aa=_0x35043f<0x3?_0x10ce85:_0x34c465===null?_0x34c465=Object[_0x50abc4(0x1e1)](_0x10ce85,_0x3b06f0):_0x34c465,_0x1c82d2;if(typeof Reflect=='object'&&typeof Reflect[_0x50abc4(0x1a9)]==_0x50abc4(0x1cf))_0x5543aa=Reflect[_0x50abc4(0x1a9)](_0x246257,_0x10ce85,_0x3b06f0,_0x34c465);else{for(var _0x566ae8=_0x246257[_0x50abc4(0x192)]-0x1;_0x566ae8>=0x0;_0x566ae8--)(_0x1c82d2=_0x246257[_0x566ae8])&&(_0x5543aa=(_0x35043f<0x3?_0x1c82d2(_0x5543aa):_0x35043f>0x3?_0x1c82d2(_0x10ce85,_0x3b06f0,_0x5543aa):_0x1c82d2(_0x10ce85,_0x3b06f0))||_0x5543aa);}return _0x35043f>0x3&&_0x5543aa&&Object['defineProperty'](_0x10ce85,_0x3b06f0,_0x5543aa),_0x5543aa;}const K=_0x4a528e(0x16e),q=_0x4a528e(0x239);let J=class extends _0x104263{constructor(_0x15fbc4,_0x17e476,_0x3e254f,_0x58855f,_0x441fcc,_0x167094,_0x28c367,_0x14fc1f,_0x1db398,_0x308981){const _0x56a2f1=_0x4a528e;super(),this[_0x56a2f1(0x1bd)]=_0x15fbc4,this[_0x56a2f1(0x219)]=_0x17e476,this[_0x56a2f1(0x1e8)]=_0x3e254f,this[_0x56a2f1(0x238)]=_0x58855f,this['_dialogService']=_0x441fcc,this[_0x56a2f1(0x118)]=_0x167094,this[_0x56a2f1(0x232)]=_0x28c367,this['_localeService']=_0x14fc1f,this[_0x56a2f1(0x144)]=_0x1db398,this[_0x56a2f1(0x21e)]=_0x308981,U(this,_0x56a2f1(0x12e),new _0x1489c4(!0x1)),U(this,_0x56a2f1(0x1d1),new _0x1489c4({})),U(this,_0x56a2f1(0x113),new _0x1489c4({})),U(this,_0x56a2f1(0x1f1),new _0x1489c4('')),U(this,'_handleConfigSave',async _0x2b067a=>{const _0x2faa4b=_0x56a2f1;this[_0x2faa4b(0x12e)][_0x2faa4b(0x193)](!0x0);try{var _0x3be551,_0x3beec7;let _0x475efd=await this[_0x2faa4b(0x1ea)](_0x2b067a);if(!_0x475efd['isValid']){this[_0x2faa4b(0x118)][_0x2faa4b(0x15c)]({'type':_0x43e9d1[_0x2faa4b(0x22c)],'content':_0x475efd[_0x2faa4b(0x22d)]||this[_0x2faa4b(0x19e)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2b067a[_0x2faa4b(0x181)]?await this[_0x2faa4b(0x238)][_0x2faa4b(0x1a6)](K,_0x2b067a[_0x2faa4b(0x181)][_0x2faa4b(0x240)]()):await this[_0x2faa4b(0x238)][_0x2faa4b(0x23a)](K),this[_0x2faa4b(0x1f1)]['next'](((_0x3be551=_0x2b067a[_0x2faa4b(0x181)])==null?void 0x0:_0x3be551['trim']())||''),this[_0x2faa4b(0x21e)][_0x2faa4b(0x159)]({'Authorization':'Bearer\x20'+((_0x3beec7=_0x2b067a['apiKey'])==null?void 0x0:_0x3beec7[_0x2faa4b(0x240)]())}),this[_0x2faa4b(0x118)]['show']({'type':_0x43e9d1[_0x2faa4b(0x18c)],'content':this[_0x2faa4b(0x19e)]['t'](_0x2faa4b(0x14b))}),setTimeout(()=>{const _0x593378=_0x2faa4b;this[_0x593378(0x11c)][_0x593378(0x1fe)](q);},0x320);}catch(_0x1d2732){this[_0x2faa4b(0x144)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1d2732),this['_messageService']['show']({'type':_0x43e9d1[_0x2faa4b(0x22c)],'content':this[_0x2faa4b(0x19e)]['t'](_0x2faa4b(0x1fb))});}finally{this[_0x2faa4b(0x12e)][_0x2faa4b(0x193)](!0x1);}}),this[_0x56a2f1(0x21a)](),this['_loadStoredApiKey'](),this['_registerComponent']();}['showConfigPanel'](){const _0x59961c=_0x4a528e;let _0x4388bd=this[_0x59961c(0x1e8)][_0x59961c(0x1b0)](B);_0x4388bd!=null&&_0x4388bd[_0x59961c(0x1d8)]&&this[_0x59961c(0x11c)][_0x59961c(0x1c3)]({'id':q,'title':{'title':this['_localeService']['t'](_0x59961c(0x126))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3f7e09=_0x59961c;this[_0x3f7e09(0x11c)][_0x3f7e09(0x1fe)](q);}});}[_0x4a528e(0x1af)](){const _0x5307c7=_0x4a528e;return this[_0x5307c7(0x1d1)][_0x5307c7(0x1eb)];}[_0x4a528e(0x202)](){const _0x2cba83=_0x4a528e;this[_0x2cba83(0x1a1)](this['_componentManager'][_0x2cba83(0x18f)](_0x2cba83(0x20f),this[_0x2cba83(0x23e)]()));}['_createConfigPanelComponent'](){const _0x35e1a8=_0x4a528e;return _0x3eb632(()=>{const _0x40a66d=_0x1c93;var _0x5d0056,_0x5a5c4e,_0x152e9d;return _0x1b0256(z,{'config':this[_0x40a66d(0x113)][_0x40a66d(0x1eb)],'mcpCoreConfig':this[_0x40a66d(0x1d1)][_0x40a66d(0x1eb)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x40a66d(0x170)],'loading':this[_0x40a66d(0x12e)][_0x40a66d(0x1eb)],'connectionStatus$':(_0x5d0056=this[_0x40a66d(0x21e)])==null?void 0x0:_0x5d0056[_0x40a66d(0x142)],'connectionError$':(_0x5a5c4e=this[_0x40a66d(0x21e)])==null?void 0x0:_0x5a5c4e[_0x40a66d(0x1b4)],'currentSessionId$':(_0x152e9d=this[_0x40a66d(0x21e)])==null?void 0x0:_0x152e9d[_0x40a66d(0x210)]});},this[_0x35e1a8(0x1bd)]);}[_0x4a528e(0x21a)](){const _0x34fb05=_0x4a528e;this['disposeWithMe'](this[_0x34fb05(0x1e8)]['subscribeConfigValue$'](_0x388181)[_0x34fb05(0x200)](_0xe4b60d=>{const _0x95e442=_0x34fb05;this[_0x95e442(0x1d1)][_0x95e442(0x193)](_0xe4b60d||{});}));let _0x5f0c04=this[_0x34fb05(0x1e8)][_0x34fb05(0x1b0)](_0x388181);this[_0x34fb05(0x1d1)][_0x34fb05(0x193)](_0x5f0c04||{}),this[_0x34fb05(0x1a1)](this[_0x34fb05(0x1e8)]['subscribeConfigValue$'](B)['subscribe'](_0x589a37=>{const _0x423bcd=_0x34fb05;this[_0x423bcd(0x113)][_0x423bcd(0x193)](_0x589a37||{});}));let _0x4234d1=this['_configService'][_0x34fb05(0x1b0)](B);this[_0x34fb05(0x113)][_0x34fb05(0x193)](_0x4234d1||{});}async[_0x4a528e(0x1fa)](){const _0x1c332e=_0x4a528e;let _0x12fa6e=this[_0x1c332e(0x1e8)][_0x1c332e(0x1b0)](B);if(!(_0x12fa6e!=null&&_0x12fa6e['showDeveloperTools']))return;let _0x1c4c6b=await this[_0x1c332e(0x238)]['getItem'](K);_0x1c4c6b&&(this['_mcpConnectionController'][_0x1c332e(0x159)]({'Authorization':_0x1c332e(0x1f7)+_0x1c4c6b}),this[_0x1c332e(0x1f1)][_0x1c332e(0x193)](_0x1c4c6b));}async[_0x4a528e(0x1ea)](_0x483b07){const _0x4b4390=_0x4a528e;if(!_0x483b07[_0x4b4390(0x181)]||_0x483b07[_0x4b4390(0x181)]['trim']()[_0x4b4390(0x192)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x187))};if(_0x483b07[_0x4b4390(0x181)]['trim']()[_0x4b4390(0x192)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x19a))};try{let _0x3d5fab=await this[_0x4b4390(0x1bd)][_0x4b4390(0x115)](_0x59b840)[_0x4b4390(0x1b1)](_0x483b07[_0x4b4390(0x181)][_0x4b4390(0x240)]());return _0x3d5fab[_0x4b4390(0x220)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3d5fab[_0x4b4390(0x1b5)]||this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x23d))};}catch(_0x54d875){return console[_0x4b4390(0x13a)](_0x4b4390(0x189),_0x54d875),{'isValid':!0x0};}}};J=G([W(0x0,_0x520f38(_0x52d720)),W(0x1,_0x4b1764),W(0x2,_0x5c1546),W(0x3,_0x51289c),W(0x4,_0xf080f),W(0x5,_0x1e86e2),W(0x6,_0x520f38(_0x347581)),W(0x7,_0x520f38(_0x1c055e)),W(0x8,_0x5688b6),W(0x9,_0x520f38(_0x59b840))],J);const Y={'id':_0x4a528e(0x1f5),'type':_0x24f842['COMMAND'],'handler':async(_0xf73df9,_0x3d00e1)=>(_0xf73df9[_0x4a528e(0x115)](J)[_0x4a528e(0x180)](),!0x0)};function X(_0x3d3467,_0x533f04){const _0x427283=_0x4a528e;switch(_0x3d3467){case _0x12d328['DISCONNECTED']:return'mcpStatus.disconnected';case _0x12d328['CONNECTING']:return'mcpStatus.connecting';case _0x12d328[_0x427283(0x169)]:return _0x427283(0x19b);case _0x12d328[_0x427283(0x127)]:switch(_0x533f04){case _0x5b2f42['UNAUTHORIZED']:return _0x427283(0x182);case _0x5b2f42[_0x427283(0x242)]:return'mcpStatus.sessionOccupied';case _0x5b2f42[_0x427283(0x160)]:return _0x427283(0x141);case _0x5b2f42[_0x427283(0x1e5)]:return _0x427283(0x143);default:return _0x427283(0x1d6);}case _0x12d328[_0x427283(0x1bb)]:return _0x427283(0x1e4);default:return _0x427283(0x1dc);}}function ce(_0x337b23,_0x137f2b,_0xd25106,_0x45ed3d=!0x0){const _0x362dd6=_0x4a528e;let _0x42274b=X(_0x337b23,_0x137f2b),_0x418a91=_0xd25106['t'](_0x42274b);return _0x45ed3d?_0x337b23===_0x12d328['DISCONNECTED']&&_0x137f2b===_0x5b2f42[_0x362dd6(0x1e6)]?_0x418a91+_0x362dd6(0x14e)+_0xd25106['t'](_0x362dd6(0x21d)):_0x337b23===_0x12d328[_0x362dd6(0x169)]?''+_0x418a91:_0x337b23===_0x12d328['DISCONNECTED']||_0x337b23===_0x12d328[_0x362dd6(0x127)]?_0x418a91+_0x362dd6(0x14e)+_0xd25106['t']('mcpStatus.clickToConnect'):_0x418a91:_0x418a91;}function le(_0x3ef4c5){const _0x19b306=_0x4a528e;switch(_0x3ef4c5){case _0x12d328['CONNECTED']:return _0x19b306(0x17c);case _0x12d328[_0x19b306(0x244)]:case _0x12d328[_0x19b306(0x1bb)]:return _0x19b306(0x217);case _0x12d328[_0x19b306(0x127)]:case _0x12d328[_0x19b306(0x205)]:return _0x19b306(0x216);default:return _0x19b306(0x21c);}}function ue(_0x5253fc){const _0x4c0bc2=_0x4a528e;let {status$:_0x4353c8,error$:_0x584cda,onConfigure:_0x39033b,showClickable:_0x540f86=!0x0}=_0x5253fc,_0x4e8724=_0x4e5559(_0x4353c8,_0x12d328[_0x4c0bc2(0x205)]),_0x5da686=_0x4e5559(_0x584cda,_0x5b2f42[_0x4c0bc2(0x215)]),_0x247edd=_0x27fbf1(_0x1c055e),_0x188334=_0x4e8724===_0x12d328[_0x4c0bc2(0x169)];_0x4e8724===_0x12d328[_0x4c0bc2(0x244)]||_0x12d328[_0x4c0bc2(0x1bb)];let _0x4363ad=_0x247edd['t'](X(_0x4e8724,_0x5da686)),_0x347bad=ce(_0x4e8724,_0x5da686,_0x247edd,_0x540f86),_0x4d105a=le(_0x4e8724),_0x226a8f=_0x1b0256(_0x188334?_0xfd0da4:_0x178dec,{}),_0x442286=_0x2f9a45(()=>{_0x540f86&&_0x39033b&&_0x39033b();},[_0x540f86,_0x39033b]);function _0x5c1914(){const _0x5e1478=_0x4c0bc2;return _0x1a9f70('div',{'className':_0x4edf12('univer-flex\x20univer-items-center',_0x540f86&&_0x39033b&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x540f86&&_0x39033b?_0x442286:void 0x0,'children':[_0x1b0256(_0x5e1478(0x12b),{'className':_0x4edf12('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x4d105a),'children':_0x226a8f}),_0x1b0256(_0x5e1478(0x12b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4363ad})]});}return _0x1b0256(_0x17feeb,{'title':_0x347bad,'placement':'bottom','children':_0x5c1914()});}let Z=class extends _0x104263{constructor(_0x31cf5c,_0x1ba9b2,_0x431bb7,_0x3d735f){const _0x3e64fc=_0x4a528e;super(),this[_0x3e64fc(0x1bd)]=_0x31cf5c,this[_0x3e64fc(0x1ee)]=_0x1ba9b2,this[_0x3e64fc(0x219)]=_0x431bb7,this[_0x3e64fc(0x1e8)]=_0x3d735f,this['_initAutoConnect'](),this[_0x3e64fc(0x16d)]();}[_0x4a528e(0x1b2)](){const _0x444319=_0x4a528e;let _0x376a0f=this['_configService'][_0x444319(0x1b0)](B);_0x376a0f!=null&&_0x376a0f['showDeveloperTools']&&(this[_0x444319(0x1ee)][_0x444319(0x197)]=!0x1);}[_0x4a528e(0x16d)](){const _0x3a35e8=_0x4a528e;let _0x16226b=this[_0x3a35e8(0x1e8)]['getConfig'](B);(_0x16226b==null?void 0x0:_0x16226b[_0x3a35e8(0x12d)])!==!0x1&&this[_0x3a35e8(0x1a1)](this[_0x3a35e8(0x219)][_0x3a35e8(0x247)](_0x2f6062[_0x3a35e8(0x151)],()=>{const _0xac0222=_0x3a35e8;var _0x3e2685;return _0x3eb632(de({'status$':this[_0xac0222(0x1ee)]['connectionStatus$'],'error$':this[_0xac0222(0x1ee)][_0xac0222(0x1b4)],'onConfigure':()=>this[_0xac0222(0x183)](),'showClickable':(_0x3e2685=_0x16226b==null?void 0x0:_0x16226b['showDeveloperTools'])==null?!0x1:_0x3e2685}),this[_0xac0222(0x1bd)]);}));}['_handleConfigure'](){const _0x54a707=_0x4a528e;this['_injector'][_0x54a707(0x115)](J)[_0x54a707(0x180)]();}};Z=G([W(0x0,_0x520f38(_0x52d720)),W(0x1,_0x520f38(_0x59b840)),W(0x2,_0x4b1764),W(0x3,_0x5c1546)],Z);function de(_0x2bf82d){let {status$:_0x14e3c4,error$:_0x2f3f89,onConfigure:_0x3ef277,showClickable:_0x3619a6}=_0x2bf82d;return function(){return _0x1b0256(ue,{'status$':_0x14e3c4,'error$':_0x2f3f89,'onConfigure':_0x3ef277,'showClickable':_0x3619a6});};}function fe(_0x2b44f0){const _0xf69c60=_0x4a528e;return{'id':Y['id'],'type':_0x616908[_0xf69c60(0x152)],'icon':'MenuIcon','title':_0xf69c60(0x126),'tooltip':_0xf69c60(0x126)};}const pe={[_0x4b7d34[_0x4a528e(0x223)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x104263{constructor(_0x2c0e37,_0x46ea9b){const _0x198079=_0x4a528e;super(),this[_0x198079(0x119)]=_0x2c0e37,this['_menuManagerService']=_0x46ea9b,this[_0x198079(0x236)](),this[_0x198079(0x1e7)]();}['_initializeCommands'](){const _0x232142=_0x4a528e;[Y][_0x232142(0x1c0)](_0x3efd59=>{const _0x5af946=_0x232142;this['disposeWithMe'](this[_0x5af946(0x119)][_0x5af946(0x188)](_0x3efd59));});}[_0x4a528e(0x1e7)](){const _0x419287=_0x4a528e;this['_menuManagerService'][_0x419287(0x11a)](pe);}};Q=G([W(0x0,_0x3dd060),W(0x1,_0x29010f)],Q);const me={'mcpStatus':{'disconnected':_0x4a528e(0x1fc),'connecting':_0x4a528e(0x1ad),'connected':'MCP\x20Connected','failed':_0x4a528e(0x117),'retrying':_0x4a528e(0x129),'unknown':_0x4a528e(0x16f),'unauthorized':_0x4a528e(0x1aa),'sessionOccupied':_0x4a528e(0x195),'networkError':_0x4a528e(0x1b8),'maxRetriesExceeded':_0x4a528e(0x194),'clickToConnect':_0x4a528e(0x12a),'clickToConfigure':_0x4a528e(0x1ec)},'mcpConfig':{'title':_0x4a528e(0x246),'description':_0x4a528e(0x178),'apiKey':_0x4a528e(0x166),'apiKeyPlaceholder':_0x4a528e(0x1b6),'apiKeyHint':_0x4a528e(0x1f8),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4a528e(0x162),'connectionInfo':_0x4a528e(0x23f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4a528e(0x14c),'configStepTitle':_0x4a528e(0x1c8),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4a528e(0x1a8),'configStep3':_0x4a528e(0x172),'sessionId':_0x4a528e(0x176),'sessionIdDescription':_0x4a528e(0x229),'authorizationDescription':_0x4a528e(0x1d5),'configParameters':_0x4a528e(0x1c5),'maxRetries':'Max\x20Retries','save':_0x4a528e(0x154),'saving':'Saving...','note1':_0x4a528e(0x184),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4a528e(0x248),'configError':_0x4a528e(0x241),'apiApplyInfo':{'title':_0x4a528e(0x1f9),'description':_0x4a528e(0x19d),'univerAiLabel':_0x4a528e(0x18a),'getStarted':_0x4a528e(0x171)},'validation':{'apiKeyRequired':_0x4a528e(0x19f),'apiKeyTooShort':_0x4a528e(0x155),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4a528e(0x1d3)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4a528e(0x224),'connected':_0x4a528e(0x1a5),'failed':_0x4a528e(0x121),'retrying':_0x4a528e(0x138)},'connectionError':{'unauthorized':_0x4a528e(0x11b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4a528e(0x17a),'maxRetriesExceeded':_0x4a528e(0x134)}}},he={'mcpStatus':{'disconnected':_0x4a528e(0x1e3),'connecting':_0x4a528e(0x1c6),'connected':_0x4a528e(0x175),'failed':_0x4a528e(0x20a),'retrying':_0x4a528e(0x177),'unknown':_0x4a528e(0x1ae),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4a528e(0x161),'networkError':_0x4a528e(0x116),'maxRetriesExceeded':_0x4a528e(0x1a2),'clickToConnect':_0x4a528e(0x125),'clickToConfigure':_0x4a528e(0x17b)},'mcpConfig':{'title':_0x4a528e(0x235),'description':_0x4a528e(0x1c9),'apiKey':_0x4a528e(0x16c),'apiKeyPlaceholder':_0x4a528e(0x1dd),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x4a528e(0x13f),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4a528e(0x15e),'configInstructions':_0x4a528e(0x1f3),'configStepTitle':'配置步骤:','configStep1':_0x4a528e(0x1ef),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4a528e(0x1de),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4a528e(0x15a),'configParameters':'配置参数:','maxRetries':_0x4a528e(0x139),'save':_0x4a528e(0x204),'saving':_0x4a528e(0x11e),'note1':_0x4a528e(0x146),'note2':_0x4a528e(0x22f),'configSaved':_0x4a528e(0x207),'configError':_0x4a528e(0x135),'apiApplyInfo':{'title':_0x4a528e(0x191),'description':_0x4a528e(0x1e0),'univerAiLabel':_0x4a528e(0x209),'getStarted':_0x4a528e(0x1ff)},'validation':{'apiKeyRequired':_0x4a528e(0x128),'apiKeyTooShort':_0x4a528e(0x218),'invalidConfig':_0x4a528e(0x225),'invalidApiKey':_0x4a528e(0x1ab)},'connectionStatus':{'disconnected':_0x4a528e(0x124),'connecting':_0x4a528e(0x1f0),'connected':_0x4a528e(0x1b9),'failed':'连接失败','retrying':_0x4a528e(0x20b)},'connectionError':{'unauthorized':_0x4a528e(0x123),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4a528e(0x1d7),'maxRetriesExceeded':_0x4a528e(0x136)}}};var ge=_0x4a528e(0x1e2),_e=_0x4a528e(0x174);function _0x1c93(_0x3dadee,_0x318707){_0x3dadee=_0x3dadee-0x10e;const _0x4af59b=_0x4af5();let _0x1c9353=_0x4af59b[_0x3dadee];return _0x1c9353;}let $=class extends _0x1904dc{constructor(_0x54da7f=V,_0x137b01,_0x5cd17f,_0x224e79,_0x26d234,_0x47adac){const _0x21c832=_0x4a528e;super(),this[_0x21c832(0x1fd)]=_0x54da7f,this[_0x21c832(0x1bd)]=_0x137b01,this[_0x21c832(0x1e8)]=_0x5cd17f,this[_0x21c832(0x219)]=_0x224e79,this[_0x21c832(0x238)]=_0x26d234,this[_0x21c832(0x19e)]=_0x47adac;let {..._0xea54e2}=_0x30ce96({},V,this['_config']);this['_configService'][_0x21c832(0x21f)](B,_0xea54e2);}async[_0x4a528e(0x111)](){const _0x5da323=_0x4a528e;let _0x467d71=[[Z],[J],[Q]];this[_0x5da323(0x1bd)][_0x5da323(0x1cb)](_0x255d94)||_0x467d71[_0x5da323(0x190)]([_0x255d94,{'useClass':_0x11bb76}]),_0x467d71['forEach'](_0x146373=>this[_0x5da323(0x1bd)][_0x5da323(0x140)](_0x146373)),this[_0x5da323(0x1bd)][_0x5da323(0x115)](Z),this['_injector'][_0x5da323(0x115)](J),this['_injector'][_0x5da323(0x115)](Q);}};U($,_0x4a528e(0x199),_0x4a528e(0x130)),U($,'packageName',ge),U($,_0x4a528e(0x1d0),_e),$=G([_0x301de1(_0x2c3451),W(0x1,_0x520f38(_0x52d720)),W(0x2,_0x5c1546),W(0x3,_0x4b1764),W(0x4,_0x51289c),W(0x5,_0x520f38(_0x1c055e))],$);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};
|
|
1
|
+
const _0x349f38=_0x100b;(function(_0x3f3bf0,_0x458e94){const _0xd76345=_0x100b,_0x292124=_0x3f3bf0();while(!![]){try{const _0x3f138f=parseInt(_0xd76345(0x196))/0x1*(-parseInt(_0xd76345(0x202))/0x2)+parseInt(_0xd76345(0x279))/0x3*(-parseInt(_0xd76345(0x1bb))/0x4)+-parseInt(_0xd76345(0x242))/0x5+-parseInt(_0xd76345(0x261))/0x6+parseInt(_0xd76345(0x20c))/0x7*(parseInt(_0xd76345(0x1e2))/0x8)+parseInt(_0xd76345(0x187))/0x9+parseInt(_0xd76345(0x190))/0xa*(parseInt(_0xd76345(0x25d))/0xb);if(_0x3f138f===_0x458e94)break;else _0x292124['push'](_0x292124['shift']());}catch(_0x2d9b0b){_0x292124['push'](_0x292124['shift']());}}}(_0x24d2,0x53960));import{CommandType as _0x406843,DependentOn as _0x1cb994,Disposable as _0x5f07cd,ICommandService as _0x58a53f,IConfigService as _0x2b4b65,ILocalStorageService as _0x504129,ILogService as _0x5466f8,Inject as _0x5ab4cd,Injector as _0x52106a,LocaleService as _0x2a4117,Plugin as _0x281e21,merge as _0x31de54}from'@univerjs/core';import{MCPConnectionController as _0xa07734,MCPConnectionError as _0x4f4eca,MCPConnectionStatus as _0x22b515,MCP_PLUGIN_CONFIG_KEY as _0x46f5fe,UniverMCPPlugin as _0x4fc106}from'@univerjs-pro/mcp';import{Button as _0x281a3f,Input as _0xb5960,MessageType as _0x3d27a9,Tooltip as _0x42e742,clsx as _0x5161dc}from'@univerjs/design';import{BuiltInUIPart as _0x150bb3,ComponentManager as _0x517ccd,IDialogService as _0x179317,IMenuManagerService as _0x481c09,IMessageService as _0x459a62,IUIPartsService as _0x19a644,MenuItemType as _0x4562b8,RibbonStartGroup as _0xa20e1c,connectInjector as _0x277d2c,useDependency as _0x1b601f,useObservable as _0x22b380}from'@univerjs/ui';import{BehaviorSubject as _0x56b14b}from'rxjs';import{CheckMarkIcon as _0x2b54e9,CloseIcon as _0x914b78,HelpIcon as _0x180a71,OffLineIcon as _0x46e5cb,OnLineIcon as _0x32786a}from'@univerjs/icons';import{useCallback as _0x2c1554,useState as _0x12cec2}from'react';import{jsx as _0x17a7ec,jsxs as _0x1fe9f9}from'react/jsx-runtime';import{ISocketService as _0x14f887,WebSocketService as _0x29f53e}from'@univerjs/network';function z(_0x2bee8a){const _0x21a784=_0x100b;var _0x25207e,_0x2f8602;let {mcpCoreConfig:_0x4de57f,onSave:_0x32b4b4,loading:_0x5638d5=!0x1,config:_0x58f6a8,connectionStatus$:_0x7f9402,connectionError$:_0x4de8bb,currentApiKey$:_0xaa1eb5,currentSessionId$:_0x2c6c77}=_0x2bee8a,_0x1d3675=_0x1b601f(_0x2a4117),_0x391b16=_0x22b380(_0x7f9402,_0x22b515['DISCONNECTED']),_0x23c598=_0x22b380(_0x4de8bb,_0x4f4eca[_0x21a784(0x1d4)]),_0xc7eca0=_0x22b380(_0x2c6c77,''),[_0x45a398,_0x18f2d9]=_0x12cec2(_0x22b380(_0xaa1eb5,'')||''),_0x4c4861=_0x58f6a8[_0x21a784(0x262)]&&_0x4de57f[_0x21a784(0x20d)]&&(_0x4de57f[_0x21a784(0x20d)]['includes'](_0x21a784(0x24b))||_0x4de57f[_0x21a784(0x20d)][_0x21a784(0x1e3)](_0x21a784(0x1e8))),_0xba5e0a=(_0x25207e=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x25207e[_0x21a784(0x1e3)](_0x21a784(0x24b)),_0xbfcc22=(_0x2f8602=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x2f8602[_0x21a784(0x1e3)](_0x21a784(0x1e8)),_0x34a6ac=_0xba5e0a?_0x21a784(0x220):_0x21a784(0x1ca),_0x44e4f0=_0x58f6a8['showDeveloperTools']&&(_0xba5e0a||_0xbfcc22),[_0x3f9460,_0x1a0716]=_0x12cec2(!_0x45a398[_0x21a784(0x290)]()),_0x31de11=(_0x4898e2,_0x184818)=>{const _0x308f1e=_0x21a784;if(_0x184818===_0x4f4eca['UNAUTHORIZED'])return _0x308f1e(0x1f0);switch(_0x4898e2){case _0x22b515[_0x308f1e(0x1f7)]:return _0x308f1e(0x23d);case _0x22b515['CONNECTING']:case _0x22b515[_0x308f1e(0x23a)]:return _0x308f1e(0x23c);case _0x22b515['FAILED']:return _0x308f1e(0x1f0);default:return _0x308f1e(0x1f9);}},_0x31309d=(_0x693879,_0x436c4e)=>{const _0x31cd69=_0x21a784;if(_0x436c4e===_0x4f4eca[_0x31cd69(0x223)])return _0x31cd69(0x26d);switch(_0x693879){case _0x22b515[_0x31cd69(0x1f7)]:return'univer-bg-green-500';case _0x22b515[_0x31cd69(0x1ea)]:case _0x22b515[_0x31cd69(0x23a)]:return _0x31cd69(0x23f);case _0x22b515[_0x31cd69(0x25b)]:return'univer-bg-red-500';default:return _0x31cd69(0x293);}},_0xf47ff6=_0x3a445e=>{const _0x1a51c6=_0x21a784;switch(_0x3a445e){case _0x22b515[_0x1a51c6(0x1f7)]:return _0x1d3675['t']('mcpConfig.connectionStatus.connected');case _0x22b515[_0x1a51c6(0x1ea)]:return _0x1d3675['t'](_0x1a51c6(0x1ed));case _0x22b515['FAILED']:return _0x1d3675['t'](_0x1a51c6(0x268));case _0x22b515['RETRYING']:return _0x1d3675['t'](_0x1a51c6(0x17e));default:return _0x1d3675['t'](_0x1a51c6(0x288));}},_0x24d7fe=_0x5a15e9=>{const _0x12a228=_0x21a784;switch(_0x5a15e9){case _0x4f4eca['UNAUTHORIZED']:return _0x1d3675['t'](_0x12a228(0x1ee));case _0x4f4eca[_0x12a228(0x26e)]:return _0x1d3675['t'](_0x12a228(0x263));case _0x4f4eca[_0x12a228(0x278)]:return _0x1d3675['t'](_0x12a228(0x1c7));case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x1d3675['t'](_0x12a228(0x28e));default:return'';}},_0x2d243f=_0x2c1554(()=>{const _0x21a3e8=_0x21a784;_0x32b4b4({..._0x4de57f,'apiKey':_0x45a398[_0x21a3e8(0x290)](),'enableAuth':!0x0});},[_0x4de57f,_0x45a398,!0x0,_0x32b4b4]),_0x3fe736=_0x45a398[_0x21a784(0x290)]()['length']>0x0;return _0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1cd),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x22b),'children':_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-white','children':'⚙'})}),_0x17a7ec(_0x21a784(0x26b),{'children':_0x17a7ec('p',{'className':_0x21a784(0x189),'children':_0x1d3675['t'](_0x21a784(0x234))})})]})}),_0x1fe9f9('div',{'className':_0x21a784(0x232),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x31de11(_0x391b16,_0x23c598)),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc(_0x21a784(0x298),_0x31309d(_0x391b16,_0x23c598))}),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-sm\x20univer-font-medium','children':_0xf47ff6(_0x391b16)})]})}),_0x23c598!==_0x4f4eca[_0x21a784(0x1d4)]&&(_0x391b16===_0x22b515['FAILED']||_0x23c598===_0x4f4eca[_0x21a784(0x223)])&&_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x18e),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27c),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x1d8),'children':'⚠️'}),_0x17a7ec('p',{'className':_0x21a784(0x22f),'children':_0x24d7fe(_0x23c598)})]})})]}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1eb),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x198),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x173),{'className':_0x21a784(0x213),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🔑'}),'\x20',_0x1d3675['t'](_0x21a784(0x1a6)),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-red-500','children':'*'}),_0x4c4861&&_0x17a7ec('a',{'className':_0x21a784(0x25e),'title':_0x1d3675['t'](_0x21a784(0x22c)),'role':'button','onClick':()=>_0x1a0716(!0x0),'children':_0x17a7ec(_0x180a71,{})})]}),_0x17a7ec(_0xb5960,{'type':_0x21a784(0x269),'placeholder':_0x1d3675['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x45a398,'disabled':_0x5638d5,'autoComplete':_0x21a784(0x206),'onChange':_0x18f2d9}),_0x17a7ec('p',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x256))})]}),_0x4c4861&&_0x3f9460&&_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27a),'children':[_0x17a7ec('a',{'className':_0x21a784(0x229),'role':'button','onClick':()=>_0x1a0716(!0x1),'children':_0x17a7ec(_0x914b78,{'className':'univer-size-4'})}),_0x1fe9f9('div',{'className':_0x21a784(0x1ac),'children':[_0x17a7ec('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x17a7ec('span',{'className':_0x21a784(0x1c0),'children':'🚀'})}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x210),'children':[_0x17a7ec('h4',{'className':_0x21a784(0x1fe),'children':_0x1d3675['t'](_0x21a784(0x22c))}),_0x17a7ec('p',{'className':_0x21a784(0x1fc),'children':_0x1d3675['t'](_0x21a784(0x170))}),_0x17a7ec('div',{'className':_0x21a784(0x21a),'children':_0x44e4f0&&_0x1fe9f9('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':_0x34a6ac,'target':_0x21a784(0x1bd),'rel':_0x21a784(0x224),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🤖'}),_0x1d3675['t'](_0x21a784(0x17f)),_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x21e),'children':'↗'})]})}),_0x1fe9f9('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1d3675['t'](_0x21a784(0x272))]})]})]})]}),_0x58f6a8[_0x21a784(0x262)]&&_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1fe9f9('h4',{'className':_0x21a784(0x1e5),'children':[_0x17a7ec('span',{'children':'🔗'}),'\x20',_0x1d3675['t'](_0x21a784(0x1e4))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d6),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-space-y-3','children':[_0x17a7ec('p',{'className':_0x21a784(0x20b),'children':_0x1d3675['t'](_0x21a784(0x1c2))}),_0x1fe9f9('div',{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x17c),'children':_0x1d3675['t'](_0x21a784(0x211))}),_0x1fe9f9('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1fe9f9('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x17a7ec('span',{'className':_0x21a784(0x236),'children':'1'}),_0x1d3675['t']('mcpConfig.configStep1')]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1d3675['t'](_0x21a784(0x1de))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x236),'children':'3'}),_0x1d3675['t']('mcpConfig.configStep3')]})]})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x21a784(0x1df)}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1fb),'children':_0x17a7ec(_0x21a784(0x21c),{'className':_0x21a784(0x1a0),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x21a784(0x216)+(_0xc7eca0||'<SESSION_ID>'),'type':_0x21a784(0x282),'headers':{'Authorization':_0x21a784(0x194)+(_0x45a398||_0x21a784(0x1cc))}}}},null,0x2)})})]}),_0x1fe9f9('div',{'className':_0x21a784(0x296),'children':[_0x17a7ec('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d3675['t']('mcpConfig.configParameters')}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1c8)}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1f4),'children':_0x21a784(0x1b7)}),_0x17a7ec('div',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x217))})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec('div',{'className':_0x21a784(0x1f4),'children':'Authorization:'}),_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1d3675['t'](_0x21a784(0x237))})]})]})]})]})]})]}),_0x17a7ec(_0x281a3f,{'onClick':_0x2d243f,'disabled':!_0x3fe736||_0x5638d5,'className':_0x21a784(0x297),'children':_0x5638d5?_0x1fe9f9(_0x21a784(0x18b),{'className':_0x21a784(0x218),'children':[_0x17a7ec('span',{'children':'⟲'}),_0x1d3675['t'](_0x21a784(0x1bf))]}):_0x1fe9f9('span',{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x2b54e9,{}),_0x1d3675['t'](_0x21a784(0x26c))]})}),_0x17a7ec('div',{'className':_0x21a784(0x260),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x267),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x22e),'children':'💡'}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x21f),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x208),'children':_0x21a784(0x25f)}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x22d))]}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x1e1))]})]})]})})]})})]});}const B=_0x349f38(0x257),V={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x24d2(){const _0x4b56ae=['mcpConfig.configStepTitle','removeItem','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','getConfig','mcpStatus.retrying','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.sessionIdDescription','univer-flex\x20univer-items-center\x20univer-gap-2','_componentManager','univer-flex\x20univer-flex-wrap\x20univer-gap-2','string','pre','univer-text-gray-500','univer-text-gray-400','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','https://console.univer.plus','几秒钟内获取您的\x20API\x20密钥','packageName','UNAUTHORIZED','noopener\x20noreferrer','mcp-ui.command.openConfigPanel','MCP\x20客户端配置','MCP\x20Connection\x20Failed','什么是\x20API\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','mcpConfig.validation.invalidConfig','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.title','mcpConfig.note1','univer-shrink-0\x20univer-text-blue-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','subscribeConfigValue$','_config$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.description','MCP_UI_PLUGIN','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','mcpConfig.authorizationDescription','Click\x20to\x20configure\x20MCP','showConfigPanel','RETRYING','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','get','univer-bg-blue-500','启用身份验证以获得安全连接','close','3277640GmyZZd','add','_initAutoConnect','iterator','_injector','object','您的\x20API\x20密钥安全存储在本地存储中','Configuration\x20Parameters:','_localeService','univer.plus','_apiKey$','_dialogService','启用身份验证','将配置添加到您的\x20MCP\x20客户端设置文件中','call','_handleConfigSave','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','超出最大重试次数,请稍后再试','Click\x20to\x20connect\x20MCP','API\x20Key','mcpConfig.apiKeyHint','mcp-ui.config','symbol','Connecting...','mcpStatus.sessionOccupied','FAILED','_validateConfig','2370291JDXmiF','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','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','219630qnFOQy','showDeveloperTools','mcpConfig.connectionError.sessionOccupied','_connectionController','配置保存成功','配置更改将立即生效','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.failed','text','Save\x20Configuration','div','mcpConfig.save','univer-bg-red-500','SESSION_ID_OCCUPIED','Copy\x20the\x20JSON\x20configuration\x20below','prototype','复制以下\x20JSON\x20配置','mcpConfig.apiApplyInfo.getStarted','error','COMMAND','Error','_logService','mcpStatus.disconnected','NETWORK_ERROR','3WmyyfE','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Unknown\x20Status','function','会话\x20ID\x20已被占用,请稍后再试','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.maxRetriesExceeded','http','__setCustomHeaders','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','push','MCPConfigPanel','mcpConfig.connectionStatus.disconnected','_uiPartsService','DISCONNECTED','连接中...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','open','mcpConfig.connectionError.maxRetriesExceeded','会话ID','trim','registerComponent','mcpConfig.configSaved','univer-bg-gray-500','未连接','errorMessage','univer-space-y-3','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-size-2\x20univer-rounded-full','getOwnPropertyDescriptor','Get\x20your\x20API\x20key\x20in\x20seconds','mcp.apiKey','decorate','mcpConfig.apiApplyInfo.description','validateApiKey','MCP\x20重连中...','label','Configuration\x20saved\x20successfully','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP\x20连接失败','pluginName','Disconnected','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','connectionStatus$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','register','mcpConfig.connectionStatus.retrying','mcpConfig.apiApplyInfo.univerAiLabel','_mcpCoreConfig$','MCP\x20Client\x20Configuration','OTHERS','_createConfigPanelComponent','apiKey','univer-flex\x20univer-items-center','MCP:\x20Max\x20Retries\x20Exceeded','2058939usdpmo','MCP\x20已断开','univer-text-sm\x20univer-text-gray-500','API\x20密钥不能为空','span','mcpStatus.unauthorized','univer-text-green-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','50ufdvOc','univer-flex\x20univer-items-start\x20univer-gap-3','show','_mcpConnectionController','Bearer\x20','Success','2xNMpWR','MCP\x20Connecting...','univer-space-y-5','showStatus','mcpConfig.configError','_initConfigSync','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_initStatusComponent','\x20-\x20','setConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','已连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','has','MCP\x20Retrying...','mcpConfig.apiKey','enableAutoConnect','mcpStatus.unknown','disposeWithMe','权限验证失败,请检查您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','warn','Connected','MCP:\x20未授权','_initializeMenus','Failed\x20to\x20save\x20configuration','BUTTON','mergeMenu','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.clickToConfigure','重连中...','univer_session_id:','mcpConfig.title','mcp-config-dialog','Saving...','498124xBmDwz','univer-text-red-500','_blank','getItem','mcpConfig.saving','univer-text-blue-600','sessionId$','mcpConfig.configInstructions','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_handleConfigure','mcpStatus.failed','MCP:\x20Network\x20Error','mcpConfig.connectionError.networkError','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_config','https://console.univer.ai','_loading$','<API_KEY>','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','请输入您的\x20API\x20密钥','univer-text-xs\x20univer-text-gray-500','mcpConfig.validation.invalidApiKey','配置参数:','_localStorageService','isValid','NONE','subscribe','univer-space-y-4','univer-space-y-2','univer-shrink-0\x20univer-text-red-500','_commandService','API\x20密钥长度至少需要\x2010\x20位','length','Enable\x20Authentication','配置步骤:','mcpConfig.configStep2','MCP\x20Configuration','next','mcpConfig.note2','20704etgRYD','includes','mcpConfig.connectionInfo','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥','connectionError$','univer.ai','defineProperty','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','最大重试次数','mcpConfig.connectionStatus.connecting','mcpConfig.connectionError.unauthorized','0.25.1','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_configService','_loadStoredApiKey','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_messageService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','getCurrentConfig','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','setItem','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','连接失败','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyRequired','点击连接\x20MCP','MenuIcon','180788wYkBVs','MCP\x20连接中...','保存配置','Enter\x20your\x20API\x20key','off','value','univer-font-medium','constructor','version','univer-text-xs\x20univer-text-gray-600','91VZdEDG','mcpServerUrl','MCP:\x20会话\x20ID\x20已被占用','HEADER_MENU','univer-flex-1'];_0x24d2=function(){return _0x4b56ae;};return _0x24d2();}function H(_0x10c6b1){'@babel/helpers - typeof';const _0x1b0209=_0x349f38;return H=typeof Symbol==_0x1b0209(0x27e)&&typeof Symbol[_0x1b0209(0x245)]=='symbol'?function(_0x2dfa17){return typeof _0x2dfa17;}:function(_0x5e7f9a){const _0x3b2554=_0x1b0209;return _0x5e7f9a&&typeof Symbol==_0x3b2554(0x27e)&&_0x5e7f9a[_0x3b2554(0x209)]===Symbol&&_0x5e7f9a!==Symbol[_0x3b2554(0x270)]?_0x3b2554(0x258):typeof _0x5e7f9a;},H(_0x10c6b1);}function oe(_0x24de2d,_0x1bc569){const _0x1edbc7=_0x349f38;if(H(_0x24de2d)!=_0x1edbc7(0x247)||!_0x24de2d)return _0x24de2d;var _0x6ea2cb=_0x24de2d[Symbol['toPrimitive']];if(_0x6ea2cb!==void 0x0){var _0x562613=_0x6ea2cb[_0x1edbc7(0x250)](_0x24de2d,_0x1bc569||'default');if(H(_0x562613)!=_0x1edbc7(0x247))return _0x562613;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1bc569===_0x1edbc7(0x21b)?String:Number)(_0x24de2d);}function se(_0x2fe064){const _0x3e8254=_0x349f38;var _0x37a438=oe(_0x2fe064,'string');return H(_0x37a438)==_0x3e8254(0x258)?_0x37a438:_0x37a438+'';}function U(_0x57cbbd,_0xd4f952,_0x500e11){const _0x1cfd3b=_0x349f38;return(_0xd4f952=se(_0xd4f952))in _0x57cbbd?Object[_0x1cfd3b(0x1e9)](_0x57cbbd,_0xd4f952,{'value':_0x500e11,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57cbbd[_0xd4f952]=_0x500e11,_0x57cbbd;}function W(_0x47b003,_0x187f63){return function(_0x227ebc,_0x50addf){_0x187f63(_0x227ebc,_0x50addf,_0x47b003);};}function G(_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a){const _0x21d3c7=_0x349f38;var _0x396866=arguments['length'],_0x8c49e1=_0x396866<0x3?_0x2d1d12:_0x58bc1a===null?_0x58bc1a=Object[_0x21d3c7(0x16c)](_0x2d1d12,_0x5d2dcd):_0x58bc1a,_0x5e1270;if(typeof Reflect==_0x21d3c7(0x247)&&typeof Reflect[_0x21d3c7(0x16f)]==_0x21d3c7(0x27e))_0x8c49e1=Reflect[_0x21d3c7(0x16f)](_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a);else{for(var _0x5e7024=_0x3096cb['length']-0x1;_0x5e7024>=0x0;_0x5e7024--)(_0x5e1270=_0x3096cb[_0x5e7024])&&(_0x8c49e1=(_0x396866<0x3?_0x5e1270(_0x8c49e1):_0x396866>0x3?_0x5e1270(_0x2d1d12,_0x5d2dcd,_0x8c49e1):_0x5e1270(_0x2d1d12,_0x5d2dcd))||_0x8c49e1);}return _0x396866>0x3&&_0x8c49e1&&Object[_0x21d3c7(0x1e9)](_0x2d1d12,_0x5d2dcd,_0x8c49e1),_0x8c49e1;}const K=_0x349f38(0x16e),q=_0x349f38(0x1b9);let J=class extends _0x5f07cd{constructor(_0x2210c8,_0xb195a5,_0x2440ad,_0x564bc7,_0x3e66e7,_0x1bbf86,_0x3b966d,_0x3b9c84,_0x47e96a,_0x231a85){const _0x412fcf=_0x349f38;super(),this[_0x412fcf(0x246)]=_0x2210c8,this[_0x412fcf(0x289)]=_0xb195a5,this[_0x412fcf(0x1f1)]=_0x2440ad,this[_0x412fcf(0x1d2)]=_0x564bc7,this[_0x412fcf(0x24d)]=_0x3e66e7,this[_0x412fcf(0x1f5)]=_0x1bbf86,this[_0x412fcf(0x219)]=_0x3b966d,this['_localeService']=_0x3b9c84,this[_0x412fcf(0x276)]=_0x47e96a,this[_0x412fcf(0x193)]=_0x231a85,U(this,'_loading$',new _0x56b14b(!0x1)),U(this,'_mcpCoreConfig$',new _0x56b14b({})),U(this,_0x412fcf(0x231),new _0x56b14b({})),U(this,_0x412fcf(0x24c),new _0x56b14b('')),U(this,'_handleConfigSave',async _0x2d7587=>{const _0x35606b=_0x412fcf;this[_0x35606b(0x1cb)]['next'](!0x0);try{var _0x58c308,_0x23da9c;let _0x2d12d6=await this[_0x35606b(0x25c)](_0x2d7587);if(!_0x2d12d6[_0x35606b(0x1d3)]){this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9['Error'],'content':_0x2d12d6[_0x35606b(0x295)]||this[_0x35606b(0x24a)]['t'](_0x35606b(0x22a))});return;}_0x2d7587[_0x35606b(0x184)]?await this['_localStorageService'][_0x35606b(0x1fa)](K,_0x2d7587[_0x35606b(0x184)][_0x35606b(0x290)]()):await this[_0x35606b(0x1d2)][_0x35606b(0x212)](K),this[_0x35606b(0x24c)][_0x35606b(0x1e0)](((_0x58c308=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x58c308[_0x35606b(0x290)]())||''),this[_0x35606b(0x193)]['__setCustomHeaders']({'Authorization':_0x35606b(0x194)+((_0x23da9c=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x23da9c[_0x35606b(0x290)]())}),this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9[_0x35606b(0x195)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x292))}),setTimeout(()=>{const _0x48e96c=_0x35606b;this[_0x48e96c(0x24d)][_0x48e96c(0x241)](q);},0x320);}catch(_0x3eb94f){this[_0x35606b(0x276)][_0x35606b(0x273)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3eb94f),this[_0x35606b(0x1f5)]['show']({'type':_0x3d27a9[_0x35606b(0x275)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x19a))});}finally{this[_0x35606b(0x1cb)]['next'](!0x1);}}),this['_initConfigSync'](),this[_0x412fcf(0x1f2)](),this[_0x412fcf(0x18f)]();}[_0x349f38(0x239)](){const _0x349705=_0x349f38;let _0x371990=this[_0x349705(0x1f1)][_0x349705(0x214)](B);_0x371990!=null&&_0x371990[_0x349705(0x262)]&&this[_0x349705(0x24d)][_0x349705(0x28d)]({'id':q,'title':{'title':this[_0x349705(0x24a)]['t'](_0x349705(0x1b8))},'children':{'label':_0x349705(0x287)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x51addc=_0x349705;this[_0x51addc(0x24d)][_0x51addc(0x241)](q);}});}[_0x349f38(0x1f8)](){return this['_mcpCoreConfig$']['value'];}[_0x349f38(0x18f)](){const _0x16b593=_0x349f38;this['disposeWithMe'](this[_0x16b593(0x219)][_0x16b593(0x17d)](_0x16b593(0x287),this[_0x16b593(0x183)]()));}[_0x349f38(0x183)](){return _0x277d2c(()=>{const _0x3156e4=_0x100b;var _0x25bfda,_0x3a3694,_0xeb7f3b;return _0x17a7ec(z,{'config':this[_0x3156e4(0x231)][_0x3156e4(0x207)],'mcpCoreConfig':this[_0x3156e4(0x180)][_0x3156e4(0x207)],'currentApiKey$':this[_0x3156e4(0x24c)],'onSave':this[_0x3156e4(0x251)],'loading':this['_loading$'][_0x3156e4(0x207)],'connectionStatus$':(_0x25bfda=this['_mcpConnectionController'])==null?void 0x0:_0x25bfda[_0x3156e4(0x17b)],'connectionError$':(_0x3a3694=this[_0x3156e4(0x193)])==null?void 0x0:_0x3a3694[_0x3156e4(0x1e7)],'currentSessionId$':(_0xeb7f3b=this[_0x3156e4(0x193)])==null?void 0x0:_0xeb7f3b[_0x3156e4(0x1c1)]});},this['_injector']);}[_0x349f38(0x19b)](){const _0x34c9a3=_0x349f38;this[_0x34c9a3(0x1a9)](this['_configService'][_0x34c9a3(0x230)](_0x46f5fe)[_0x34c9a3(0x1d5)](_0x591f2c=>{const _0x24b8f5=_0x34c9a3;this[_0x24b8f5(0x180)][_0x24b8f5(0x1e0)](_0x591f2c||{});}));let _0x3a495c=this['_configService'][_0x34c9a3(0x214)](_0x46f5fe);this['_mcpCoreConfig$']['next'](_0x3a495c||{}),this[_0x34c9a3(0x1a9)](this[_0x34c9a3(0x1f1)]['subscribeConfigValue$'](B)[_0x34c9a3(0x1d5)](_0x17f203=>{const _0x116bec=_0x34c9a3;this[_0x116bec(0x231)][_0x116bec(0x1e0)](_0x17f203||{});}));let _0x11d63a=this[_0x34c9a3(0x1f1)][_0x34c9a3(0x214)](B);this[_0x34c9a3(0x231)]['next'](_0x11d63a||{});}async[_0x349f38(0x1f2)](){const _0xae08d4=_0x349f38;let _0x18e459=this[_0xae08d4(0x1f1)][_0xae08d4(0x214)](B);if(!(_0x18e459!=null&&_0x18e459[_0xae08d4(0x262)]))return;let _0x135e7a=await this[_0xae08d4(0x1d2)][_0xae08d4(0x1be)](K);_0x135e7a&&(this[_0xae08d4(0x193)][_0xae08d4(0x283)]({'Authorization':_0xae08d4(0x194)+_0x135e7a}),this[_0xae08d4(0x24c)][_0xae08d4(0x1e0)](_0x135e7a));}async['_validateConfig'](_0x357d7b){const _0x1f2742=_0x349f38;if(!_0x357d7b[_0x1f2742(0x184)]||_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()[_0x1f2742(0x1db)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1ff))};if(_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x185c69=await this[_0x1f2742(0x246)]['get'](_0xa07734)[_0x1f2742(0x171)](_0x357d7b['apiKey']['trim']());return _0x185c69[_0x1f2742(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x185c69[_0x1f2742(0x273)]||this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1d0))};}catch(_0xb0b18a){return console[_0x1f2742(0x1ad)](_0x1f2742(0x175),_0xb0b18a),{'isValid':!0x0};}}};J=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x19a644),W(0x2,_0x2b4b65),W(0x3,_0x504129),W(0x4,_0x179317),W(0x5,_0x459a62),W(0x6,_0x5ab4cd(_0x517ccd)),W(0x7,_0x5ab4cd(_0x2a4117)),W(0x8,_0x5466f8),W(0x9,_0x5ab4cd(_0xa07734))],J);const Y={'id':_0x349f38(0x225),'type':_0x406843[_0x349f38(0x274)],'handler':async(_0x2afc2b,_0x1fdd78)=>(_0x2afc2b[_0x349f38(0x23e)](J)[_0x349f38(0x239)](),!0x0)};function X(_0x114b2d,_0x36fb23){const _0x78e4a3=_0x349f38;switch(_0x114b2d){case _0x22b515[_0x78e4a3(0x28a)]:return _0x78e4a3(0x277);case _0x22b515['CONNECTING']:return'mcpStatus.connecting';case _0x22b515[_0x78e4a3(0x1f7)]:return'mcpStatus.connected';case _0x22b515['FAILED']:switch(_0x36fb23){case _0x4f4eca[_0x78e4a3(0x223)]:return _0x78e4a3(0x18c);case _0x4f4eca[_0x78e4a3(0x26e)]:return _0x78e4a3(0x25a);case _0x4f4eca['NETWORK_ERROR']:return'mcpStatus.networkError';case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x78e4a3(0x281);default:return _0x78e4a3(0x1c5);}case _0x22b515[_0x78e4a3(0x23a)]:return _0x78e4a3(0x215);default:return _0x78e4a3(0x1a8);}}function _0x100b(_0x3b4dd3,_0x1b5b2c){_0x3b4dd3=_0x3b4dd3-0x16c;const _0x24d259=_0x24d2();let _0x100b57=_0x24d259[_0x3b4dd3];return _0x100b57;}function ce(_0x11edc8,_0x5f24cd,_0x2edeca,_0x223c52=!0x0){const _0x4abc33=_0x349f38;let _0xe46f7a=X(_0x11edc8,_0x5f24cd),_0x488602=_0x2edeca['t'](_0xe46f7a);return _0x223c52?_0x11edc8===_0x22b515[_0x4abc33(0x28a)]&&_0x5f24cd===_0x4f4eca['UNAUTHORIZED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t'](_0x4abc33(0x1b5)):_0x11edc8===_0x22b515[_0x4abc33(0x1f7)]?''+_0x488602:_0x11edc8===_0x22b515[_0x4abc33(0x28a)]||_0x11edc8===_0x22b515['FAILED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t']('mcpStatus.clickToConnect'):_0x488602:_0x488602;}function le(_0x5dbdea){const _0x7ff7ed=_0x349f38;switch(_0x5dbdea){case _0x22b515[_0x7ff7ed(0x1f7)]:return _0x7ff7ed(0x18d);case _0x22b515[_0x7ff7ed(0x1ea)]:case _0x22b515[_0x7ff7ed(0x23a)]:return'univer-text-yellow-500';case _0x22b515['FAILED']:case _0x22b515[_0x7ff7ed(0x28a)]:return _0x7ff7ed(0x1bc);default:return _0x7ff7ed(0x21d);}}function ue(_0x152244){const _0x2a7187=_0x349f38;let {status$:_0x5ac207,error$:_0x1be9f5,onConfigure:_0x4ac8e7,showClickable:_0x85eac2=!0x0}=_0x152244,_0x1372b3=_0x22b380(_0x5ac207,_0x22b515['DISCONNECTED']),_0x2bc02a=_0x22b380(_0x1be9f5,_0x4f4eca[_0x2a7187(0x1d4)]),_0x496ef7=_0x1b601f(_0x2a4117),_0x34e12e=_0x1372b3===_0x22b515[_0x2a7187(0x1f7)];_0x1372b3===_0x22b515[_0x2a7187(0x1ea)]||_0x22b515[_0x2a7187(0x23a)];let _0x1c1805=_0x496ef7['t'](X(_0x1372b3,_0x2bc02a)),_0x36f08d=ce(_0x1372b3,_0x2bc02a,_0x496ef7,_0x85eac2),_0x407a19=le(_0x1372b3),_0x3563f2=_0x17a7ec(_0x34e12e?_0x32786a:_0x46e5cb,{}),_0x2703e2=_0x2c1554(()=>{_0x85eac2&&_0x4ac8e7&&_0x4ac8e7();},[_0x85eac2,_0x4ac8e7]);function _0x512b4d(){const _0x23bb92=_0x2a7187;return _0x1fe9f9('div',{'className':_0x5161dc(_0x23bb92(0x185),_0x85eac2&&_0x4ac8e7&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x85eac2&&_0x4ac8e7?_0x2703e2:void 0x0,'children':[_0x17a7ec(_0x23bb92(0x26b),{'className':_0x5161dc(_0x23bb92(0x27b),_0x407a19),'children':_0x3563f2}),_0x17a7ec(_0x23bb92(0x26b),{'className':_0x23bb92(0x280),'children':_0x1c1805})]});}return _0x17a7ec(_0x42e742,{'title':_0x36f08d,'placement':'bottom','children':_0x512b4d()});}let Z=class extends _0x5f07cd{constructor(_0x346cdf,_0x211f99,_0x5b521a,_0x2a80e3){const _0x19bedc=_0x349f38;super(),this[_0x19bedc(0x246)]=_0x346cdf,this[_0x19bedc(0x264)]=_0x211f99,this[_0x19bedc(0x289)]=_0x5b521a,this[_0x19bedc(0x1f1)]=_0x2a80e3,this['_initAutoConnect'](),this[_0x19bedc(0x19d)]();}[_0x349f38(0x244)](){const _0x1e43fe=_0x349f38;let _0x5b1fce=this[_0x1e43fe(0x1f1)][_0x1e43fe(0x214)](B);_0x5b1fce!=null&&_0x5b1fce[_0x1e43fe(0x262)]&&(this[_0x1e43fe(0x264)][_0x1e43fe(0x1a7)]=!0x1);}[_0x349f38(0x19d)](){const _0x4a7122=_0x349f38;let _0x45fac1=this[_0x4a7122(0x1f1)][_0x4a7122(0x214)](B);(_0x45fac1==null?void 0x0:_0x45fac1[_0x4a7122(0x199)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x4a7122(0x291)](_0x150bb3[_0x4a7122(0x20f)],()=>{const _0x3e56ce=_0x4a7122;var _0xbda99;return _0x277d2c(de({'status$':this[_0x3e56ce(0x264)][_0x3e56ce(0x17b)],'error$':this[_0x3e56ce(0x264)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xbda99=_0x45fac1==null?void 0x0:_0x45fac1[_0x3e56ce(0x262)])==null?!0x1:_0xbda99}),this[_0x3e56ce(0x246)]);}));}[_0x349f38(0x1c4)](){const _0x11e9f1=_0x349f38;this['_injector'][_0x11e9f1(0x23e)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x5ab4cd(_0xa07734)),W(0x2,_0x19a644),W(0x3,_0x2b4b65)],Z);function de(_0x4e40dc){let {status$:_0xf7c9bd,error$:_0x51af1e,onConfigure:_0x2feca5,showClickable:_0x33e29d}=_0x4e40dc;return function(){return _0x17a7ec(ue,{'status$':_0xf7c9bd,'error$':_0x51af1e,'onConfigure':_0x2feca5,'showClickable':_0x33e29d});};}function fe(_0x4251cc){const _0x1f6fcf=_0x349f38;return{'id':Y['id'],'type':_0x4562b8[_0x1f6fcf(0x1b2)],'icon':_0x1f6fcf(0x201),'title':_0x1f6fcf(0x1b8),'tooltip':'mcpConfig.title'};}const pe={[_0xa20e1c[_0x349f38(0x182)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x5f07cd{constructor(_0x57f3cc,_0x44063c){const _0x1e726e=_0x349f38;super(),this[_0x1e726e(0x1d9)]=_0x57f3cc,this['_menuManagerService']=_0x44063c,this['_initializeCommands'](),this[_0x1e726e(0x1b0)]();}['_initializeCommands'](){[Y]['forEach'](_0x20842e=>{const _0x29ba5a=_0x100b;this[_0x29ba5a(0x1a9)](this[_0x29ba5a(0x1d9)]['registerCommand'](_0x20842e));});}[_0x349f38(0x1b0)](){const _0x2d8274=_0x349f38;this['_menuManagerService'][_0x2d8274(0x1b3)](pe);}};Q=G([W(0x0,_0x58a53f),W(0x1,_0x481c09)],Q);const me={'mcpStatus':{'disconnected':_0x349f38(0x179),'connecting':_0x349f38(0x197),'connected':_0x349f38(0x284),'failed':_0x349f38(0x227),'retrying':_0x349f38(0x1a5),'unknown':_0x349f38(0x27d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x349f38(0x233),'networkError':_0x349f38(0x1c6),'maxRetriesExceeded':_0x349f38(0x186),'clickToConnect':_0x349f38(0x254),'clickToConfigure':_0x349f38(0x238)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x349f38(0x1a3),'apiKey':_0x349f38(0x255),'apiKeyPlaceholder':_0x349f38(0x205),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x349f38(0x1dc),'enableAuthHint':_0x349f38(0x1b4),'connectionInfo':_0x349f38(0x181),'mcpClientConfig':_0x349f38(0x181),'configInstructions':_0x349f38(0x1ab),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x349f38(0x26f),'configStep2':_0x349f38(0x1c3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x349f38(0x1a1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x349f38(0x249),'maxRetries':'Max\x20Retries','save':_0x349f38(0x26a),'saving':_0x349f38(0x1ba),'note1':_0x349f38(0x28c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x349f38(0x174),'configError':_0x349f38(0x1b1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x349f38(0x17a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x349f38(0x16d)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x349f38(0x285),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x349f38(0x19c)},'connectionStatus':{'disconnected':_0x349f38(0x178),'connecting':_0x349f38(0x259),'connected':_0x349f38(0x1ae),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x349f38(0x1f6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x349f38(0x252)}}},he={'mcpStatus':{'disconnected':_0x349f38(0x188),'connecting':_0x349f38(0x203),'connected':'MCP\x20已连接','failed':_0x349f38(0x176),'retrying':_0x349f38(0x172),'unknown':'MCP\x20状态未知','unauthorized':_0x349f38(0x1af),'sessionOccupied':_0x349f38(0x20e),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x349f38(0x200),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x349f38(0x1e6),'apiKeyPlaceholder':_0x349f38(0x1ce),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x349f38(0x24e),'enableAuthHint':_0x349f38(0x240),'connectionInfo':_0x349f38(0x226),'mcpClientConfig':_0x349f38(0x226),'configInstructions':_0x349f38(0x23b),'configStepTitle':_0x349f38(0x1dd),'configStep1':_0x349f38(0x271),'configStep2':_0x349f38(0x24f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x349f38(0x28f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x349f38(0x1d1),'maxRetries':_0x349f38(0x1ec),'save':_0x349f38(0x204),'saving':'保存中...','note1':_0x349f38(0x266),'note2':_0x349f38(0x248),'configSaved':_0x349f38(0x265),'configError':'配置保存失败','apiApplyInfo':{'title':_0x349f38(0x228),'description':_0x349f38(0x1f3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x349f38(0x221)},'validation':{'apiKeyRequired':_0x349f38(0x18a),'apiKeyTooShort':_0x349f38(0x1da),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x349f38(0x294),'connecting':_0x349f38(0x28b),'connected':_0x349f38(0x1a2),'failed':_0x349f38(0x1fd),'retrying':_0x349f38(0x1b6)},'connectionError':{'unauthorized':_0x349f38(0x1aa),'sessionOccupied':_0x349f38(0x27f),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x349f38(0x253)}}};var ge='@univerjs-pro/mcp-ui',_e=_0x349f38(0x1ef);let $=class extends _0x281e21{constructor(_0x2771b8=V,_0x20c65a,_0x3d8a97,_0x579aab,_0x3dffdf,_0x139d20){const _0x161f3b=_0x349f38;super(),this['_config']=_0x2771b8,this['_injector']=_0x20c65a,this[_0x161f3b(0x1f1)]=_0x3d8a97,this['_uiPartsService']=_0x579aab,this[_0x161f3b(0x1d2)]=_0x3dffdf,this['_localeService']=_0x139d20;let {..._0x52bcfc}=_0x31de54({},V,this[_0x161f3b(0x1c9)]);this[_0x161f3b(0x1f1)][_0x161f3b(0x19f)](B,_0x52bcfc);}async['onStarting'](){const _0x16e2a5=_0x349f38;let _0x5b0143=[[Z],[J],[Q]];this[_0x16e2a5(0x246)][_0x16e2a5(0x1a4)](_0x14f887)||_0x5b0143[_0x16e2a5(0x286)]([_0x14f887,{'useClass':_0x29f53e}]),_0x5b0143['forEach'](_0x1f29ce=>this[_0x16e2a5(0x246)][_0x16e2a5(0x243)](_0x1f29ce)),this['_injector'][_0x16e2a5(0x23e)](Z),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](J),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](Q);}};U($,_0x349f38(0x177),_0x349f38(0x235)),U($,_0x349f38(0x222),ge),U($,_0x349f38(0x20a),_e),$=G([_0x1cb994(_0x4fc106),W(0x1,_0x5ab4cd(_0x52106a)),W(0x2,_0x2b4b65),W(0x3,_0x19a644),W(0x4,_0x504129),W(0x5,_0x5ab4cd(_0x2a4117))],$);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
|
+
function _0x1e8b(_0x404f13,_0x151fc0){_0x404f13=_0x404f13-0x19c;const _0x1fcd5c=_0x1fcd();let _0x1e8bb4=_0x1fcd5c[_0x404f13];return _0x1e8bb4;}function _0x1fcd(){const _0x1b8e70=['Get\x20your\x20API\x20key\x20in\x20seconds','2iCEEoN','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','29135293APLrbO','524050xbWwHq','MCP\x20Retrying...','2631282DQnvZu','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','Connection\x20Failed','6206669xllqHv','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','120HyrTCq','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','45JuXMyF','67170zUEMvn','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','613723rxIvYc','API\x20Key','Configuration\x20Steps:','Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Network\x20Error','12DKLSbR','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','8nskxKs','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','2611698vWcljr','Retrying...'];_0x1fcd=function(){return _0x1b8e70;};return _0x1fcd();}const _0x420bc5=_0x1e8b;(function(_0x54d612,_0x395856){const _0x2545e3=_0x1e8b,_0x5ad3b8=_0x54d612();while(!![]){try{const _0x50b4a6=-parseInt(_0x2545e3(0x19d))/0x1+-parseInt(_0x2545e3(0x1b7))/0x2*(parseInt(_0x2545e3(0x1b4))/0x3)+-parseInt(_0x2545e3(0x1c7))/0x4*(parseInt(_0x2545e3(0x1cd))/0x5)+parseInt(_0x2545e3(0x1bd))/0x6+parseInt(_0x2545e3(0x1c3))/0x7*(-parseInt(_0x2545e3(0x1af))/0x8)+-parseInt(_0x2545e3(0x1cc))/0x9*(-parseInt(_0x2545e3(0x1bb))/0xa)+-parseInt(_0x2545e3(0x1ba))/0xb*(-parseInt(_0x2545e3(0x1a3))/0xc);if(_0x50b4a6===_0x395856)break;else _0x5ad3b8['push'](_0x5ad3b8['shift']());}catch(_0x3b0f81){_0x5ad3b8['push'](_0x5ad3b8['shift']());}}}(_0x1fcd,0x8c71b));const e={'mcpStatus':{'disconnected':_0x420bc5(0x1be),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x420bc5(0x1c0),'retrying':_0x420bc5(0x1bc),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x420bc5(0x1b8),'sessionOccupied':_0x420bc5(0x1ac),'networkError':_0x420bc5(0x1a2),'maxRetriesExceeded':_0x420bc5(0x1ad),'clickToConnect':_0x420bc5(0x1a9),'clickToConfigure':_0x420bc5(0x1c5)},'mcpConfig':{'title':_0x420bc5(0x1c6),'description':_0x420bc5(0x1b0),'apiKey':_0x420bc5(0x19e),'apiKeyPlaceholder':_0x420bc5(0x1b1),'apiKeyHint':_0x420bc5(0x1b9),'enableAuth':_0x420bc5(0x1a6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x420bc5(0x1c8),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x420bc5(0x19f),'configStep1':_0x420bc5(0x1ca),'configStep2':_0x420bc5(0x1ce),'configStep3':_0x420bc5(0x1a5),'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':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x420bc5(0x19c),'note1':_0x420bc5(0x1a7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x420bc5(0x1c9),'configError':_0x420bc5(0x1b3),'apiApplyInfo':{'title':_0x420bc5(0x1c1),'description':_0x420bc5(0x1a1),'univerAiLabel':_0x420bc5(0x1ae),'getStarted':_0x420bc5(0x1b6)},'validation':{'apiKeyRequired':_0x420bc5(0x1a4),'apiKeyTooShort':_0x420bc5(0x1b2),'invalidConfig':_0x420bc5(0x1cb),'invalidApiKey':_0x420bc5(0x1a8)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x420bc5(0x1a0),'connected':_0x420bc5(0x1ab),'failed':_0x420bc5(0x1c2),'retrying':_0x420bc5(0x1b5)},'connectionError':{'unauthorized':_0x420bc5(0x1c4),'sessionOccupied':_0x420bc5(0x1aa),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x420bc5(0x1bf)}}};export{e as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x891f(_0x434604,_0x35e69f){_0x434604=_0x434604-0x19f;const _0x436ff0=_0x436f();let _0x891f5c=_0x436ff0[_0x434604];return _0x891f5c;}const _0x3b16f9=_0x891f;function _0x436f(){const _0x12c512=['Univer\x20AI\x20Console','MCP\x20Connected','MCP\x20Configuration','1884778DCOpIN','26cVoidu','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Retrying...','351852feDzGz','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','MCP\x20Connecting...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','622775vhIYLx','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','6934344ScRFfn','96180NYIEYN','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','19005hmUOwY','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Connection\x20Failed','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','283453VgDgGB','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x436f=function(){return _0x12c512;};return _0x436f();}(function(_0x1505ab,_0xa613a3){const _0x347b15=_0x891f,_0x24ec5d=_0x1505ab();while(!![]){try{const _0x48096e=-parseInt(_0x347b15(0x1b6))/0x1+-parseInt(_0x347b15(0x1bc))/0x2*(-parseInt(_0x347b15(0x1a9))/0x3)+-parseInt(_0x347b15(0x1c1))/0x4+-parseInt(_0x347b15(0x1cc))/0x5+parseInt(_0x347b15(0x1a6))/0x6+-parseInt(_0x347b15(0x1bb))/0x7+parseInt(_0x347b15(0x1a5))/0x8;if(_0x48096e===_0xa613a3)break;else _0x24ec5d['push'](_0x24ec5d['shift']());}catch(_0x4cb92b){_0x24ec5d['push'](_0x24ec5d['shift']());}}}(_0x436f,0x30d11));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3b16f9(0x1c9),'connected':_0x3b16f9(0x1b9),'failed':_0x3b16f9(0x1a8),'retrying':_0x3b16f9(0x1a4),'unknown':_0x3b16f9(0x1ca),'unauthorized':_0x3b16f9(0x1c8),'sessionOccupied':_0x3b16f9(0x1b2),'networkError':_0x3b16f9(0x1ae),'maxRetriesExceeded':_0x3b16f9(0x1a3),'clickToConnect':_0x3b16f9(0x1b5),'clickToConfigure':_0x3b16f9(0x1ac)},'mcpConfig':{'title':_0x3b16f9(0x1ba),'description':_0x3b16f9(0x1a1),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3b16f9(0x1aa),'apiKeyHint':_0x3b16f9(0x1b3),'enableAuth':_0x3b16f9(0x1c6),'enableAuthHint':_0x3b16f9(0x19f),'connectionInfo':_0x3b16f9(0x1cb),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3b16f9(0x1a7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3b16f9(0x1af),'configStep2':_0x3b16f9(0x1bd),'configStep3':_0x3b16f9(0x1c3),'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':_0x3b16f9(0x1a0),'maxRetries':_0x3b16f9(0x1b1),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3b16f9(0x1c7),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3b16f9(0x1bf),'description':_0x3b16f9(0x1b0),'univerAiLabel':_0x3b16f9(0x1b8),'getStarted':_0x3b16f9(0x1c5)},'validation':{'apiKeyRequired':_0x3b16f9(0x1ab),'apiKeyTooShort':_0x3b16f9(0x1c4),'invalidConfig':_0x3b16f9(0x1a2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3b16f9(0x1ad),'retrying':_0x3b16f9(0x1c0)},'connectionError':{'unauthorized':_0x3b16f9(0x1c2),'sessionOccupied':_0x3b16f9(0x1be),'networkError':_0x3b16f9(0x1b4),'maxRetriesExceeded':_0x3b16f9(0x1b7)}}};export{e as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a1552=_0x39d0;function _0x39d0(_0x15ad18,_0x35f5ae){_0x15ad18=_0x15ad18-0xad;const _0x25dfc9=_0x25df();let _0x39d0e7=_0x25dfc9[_0x15ad18];return _0x39d0e7;}(function(_0x2289ac,_0x11816d){const _0x3f41bd=_0x39d0,_0x45225a=_0x2289ac();while(!![]){try{const _0x2fc945=-parseInt(_0x3f41bd(0xba))/0x1+-parseInt(_0x3f41bd(0xb5))/0x2*(-parseInt(_0x3f41bd(0xcd))/0x3)+parseInt(_0x3f41bd(0xc4))/0x4+parseInt(_0x3f41bd(0xd6))/0x5+parseInt(_0x3f41bd(0xbe))/0x6+parseInt(_0x3f41bd(0xad))/0x7+-parseInt(_0x3f41bd(0xb3))/0x8;if(_0x2fc945===_0x11816d)break;else _0x45225a['push'](_0x45225a['shift']());}catch(_0x2ec1f5){_0x45225a['push'](_0x45225a['shift']());}}}(_0x25df,0xbe988));const e={'mcpStatus':{'disconnected':_0x5a1552(0xc3),'connecting':_0x5a1552(0xb1),'connected':_0x5a1552(0xc0),'failed':_0x5a1552(0xb8),'retrying':_0x5a1552(0xb6),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5a1552(0xb7),'clickToConnect':_0x5a1552(0xc5),'clickToConfigure':_0x5a1552(0xd4)},'mcpConfig':{'title':_0x5a1552(0xcf),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5a1552(0xb9),'apiKeyPlaceholder':_0x5a1552(0xc8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5a1552(0xc6),'enableAuthHint':_0x5a1552(0xc7),'connectionInfo':_0x5a1552(0xaf),'mcpClientConfig':_0x5a1552(0xaf),'configInstructions':_0x5a1552(0xd3),'configStepTitle':_0x5a1552(0xcb),'configStep1':_0x5a1552(0xbf),'configStep2':_0x5a1552(0xbc),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5a1552(0xd8),'sessionIdDescription':_0x5a1552(0xd5),'authorizationDescription':_0x5a1552(0xae),'configParameters':_0x5a1552(0xc1),'maxRetries':_0x5a1552(0xd9),'save':_0x5a1552(0xcc),'saving':_0x5a1552(0xb0),'note1':_0x5a1552(0xda),'note2':_0x5a1552(0xc2),'configSaved':_0x5a1552(0xce),'configError':_0x5a1552(0xb2),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5a1552(0xd0),'univerAiLabel':_0x5a1552(0xc9),'getStarted':_0x5a1552(0xb4)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5a1552(0xbd),'invalidConfig':_0x5a1552(0xdb),'invalidApiKey':_0x5a1552(0xd1)},'connectionStatus':{'disconnected':_0x5a1552(0xd7),'connecting':'Connecting...','connected':_0x5a1552(0xdd),'failed':'Connection\x20Failed','retrying':_0x5a1552(0xdc)},'connectionError':{'unauthorized':_0x5a1552(0xca),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a1552(0xbb),'maxRetriesExceeded':_0x5a1552(0xd2)}}};function _0x25df(){const _0x113e0b=['Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Univer\x20AI\x20Console','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Save\x20Configuration','4498077rJiKLX','Configuration\x20saved\x20successfully','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','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.','5577280QECCsf','Disconnected','Session\x20ID','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Retrying...','Connected','62209NDRaDj','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','Saving...','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','21690048NiZkTU','Get\x20your\x20API\x20key\x20in\x20seconds','2CyIMRo','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','API\x20Key','1549165SdcceB','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','8838432espaXQ','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','3777308ByhXyw','Click\x20to\x20connect\x20MCP','Enable\x20Authentication'];_0x25df=function(){return _0x113e0b;};return _0x25df();}export{e as default};
|