@univerjs-pro/mcp-ui 0.12.2-nightly.202511241159 → 0.12.2-nightly.202511290732
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/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/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/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/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 +8 -8
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4afef4=_0x5f03;(function(_0x79cc92,_0xe136e6){const _0xd6a58b=_0x5f03,_0x11c108=_0x79cc92();while(!![]){try{const _0x4aae4c=-parseInt(_0xd6a58b(0xd5))/0x1+parseInt(_0xd6a58b(0xbf))/0x2+-parseInt(_0xd6a58b(0xb3))/0x3*(-parseInt(_0xd6a58b(0xc3))/0x4)+-parseInt(_0xd6a58b(0xc5))/0x5+parseInt(_0xd6a58b(0xd2))/0x6+parseInt(_0xd6a58b(0xdb))/0x7+-parseInt(_0xd6a58b(0xac))/0x8;if(_0x4aae4c===_0xe136e6)break;else _0x11c108['push'](_0x11c108['shift']());}catch(_0x27b674){_0x11c108['push'](_0x11c108['shift']());}}}(_0x4273,0x9c86d));function _0x4273(){const _0x1649a9=['API\x20키를\x20입력하세요','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','MCP\x20설정','설정\x20저장\x20실패','세션\x20ID','MCP\x20연결됨','18RlbxpZ','유효하지\x20않은\x20설정','연결\x20중...','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','연결\x20실패','저장\x20중...','MCP\x20연결\x20끊김','Bearer\x20접두사가\x20있는\x20API\x20키.','MCP\x20알\x20수\x20없는\x20상태','설정이\x20성공적으로\x20저장되었습니다','인증\x20활성화','설정\x20저장','1446760sTbFuo','최대\x20재시도\x20횟수','MCP:\x20인증되지\x20않음','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','831580KCkncg','Univer\x20AI\x20콘솔','4716545QEAaMI','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','API\x20키는\x2010자\x20이상이어야\x20합니다','아래\x20JSON\x20설정\x20복사','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','설정\x20매개변수:','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','연결\x20끊김','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','보안\x20연결을\x20위해\x20인증\x20활성화','연결됨','클릭하여\x20MCP\x20연결','MCP\x20연결\x20실패','5000856hsJvzh','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','클릭하여\x20MCP\x20설정','677557KkmTEP','MCP:\x20세션\x20ID\x20사용\x20중','API\x20키는\x20필수입니다','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','MCP\x20재시도\x20중...','MCP\x20연결\x20중...','6002899mnpmbZ','MCP:\x20네트워크\x20오류','11198272KCXIRb'];_0x4273=function(){return _0x1649a9;};return _0x4273();}function _0x5f03(_0x28f03b,_0x237c1c){const _0x4273c3=_0x4273();return _0x5f03=function(_0x5f0370,_0x302360){_0x5f0370=_0x5f0370-0xab;let _0x1d3d6f=_0x4273c3[_0x5f0370];return _0x1d3d6f;},_0x5f03(_0x28f03b,_0x237c1c);}const e={'mcpStatus':{'disconnected':_0x4afef4(0xb9),'connecting':_0x4afef4(0xda),'connected':_0x4afef4(0xb2),'failed':_0x4afef4(0xd1),'retrying':_0x4afef4(0xd9),'unknown':_0x4afef4(0xbb),'unauthorized':_0x4afef4(0xc1),'sessionOccupied':_0x4afef4(0xd6),'networkError':_0x4afef4(0xab),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x4afef4(0xd0),'clickToConfigure':_0x4afef4(0xd4)},'mcpConfig':{'title':_0x4afef4(0xaf),'description':_0x4afef4(0xcd),'apiKey':'API\x20키','apiKeyPlaceholder':_0x4afef4(0xad),'apiKeyHint':_0x4afef4(0xcb),'enableAuth':_0x4afef4(0xbd),'enableAuthHint':_0x4afef4(0xce),'connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':'설정\x20단계:','configStep1':_0x4afef4(0xc8),'configStep2':_0x4afef4(0xb6),'configStep3':_0x4afef4(0xc2),'sessionId':_0x4afef4(0xb1),'sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':_0x4afef4(0xba),'configParameters':_0x4afef4(0xca),'maxRetries':_0x4afef4(0xc0),'save':_0x4afef4(0xbe),'saving':_0x4afef4(0xb8),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x4afef4(0xd8),'configSaved':_0x4afef4(0xbc),'configError':_0x4afef4(0xb0),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x4afef4(0xd3),'univerAiLabel':_0x4afef4(0xc4),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':_0x4afef4(0xd7),'apiKeyTooShort':_0x4afef4(0xc7),'invalidConfig':_0x4afef4(0xb4),'invalidApiKey':_0x4afef4(0xc9)},'connectionStatus':{'disconnected':_0x4afef4(0xcc),'connecting':_0x4afef4(0xb5),'connected':_0x4afef4(0xcf),'failed':_0x4afef4(0xb7),'retrying':'재시도\x20중...'},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x4afef4(0xae),'maxRetriesExceeded':_0x4afef4(0xc6)}}};module['exports']=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x580fdb=_0xaeab;(function(_0x3d998f,_0x5d7010){const _0xd1fd97=_0xaeab,_0x4621eb=_0x3d998f();while(!![]){try{const _0xcbeb5a=parseInt(_0xd1fd97(0xab))/0x1*(parseInt(_0xd1fd97(0xb3))/0x2)+parseInt(_0xd1fd97(0xaf))/0x3*(parseInt(_0xd1fd97(0xc2))/0x4)+-parseInt(_0xd1fd97(0xa4))/0x5+-parseInt(_0xd1fd97(0xb8))/0x6+-parseInt(_0xd1fd97(0xb4))/0x7*(parseInt(_0xd1fd97(0xa0))/0x8)+-parseInt(_0xd1fd97(0xba))/0x9+-parseInt(_0xd1fd97(0xcd))/0xa*(-parseInt(_0xd1fd97(0xa8))/0xb);if(_0xcbeb5a===_0x5d7010)break;else _0x4621eb['push'](_0x4621eb['shift']());}catch(_0x1972e2){_0x4621eb['push'](_0x4621eb['shift']());}}}(_0x4899,0xa7df3));const e={'mcpStatus':{'disconnected':_0x580fdb(0xbb),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x580fdb(0xcc),'retrying':_0x580fdb(0xc0),'unknown':_0x580fdb(0xc9),'unauthorized':_0x580fdb(0x9f),'sessionOccupied':_0x580fdb(0xb0),'networkError':_0x580fdb(0xcf),'maxRetriesExceeded':_0x580fdb(0xc6),'clickToConnect':_0x580fdb(0xbe),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x580fdb(0xcb),'description':_0x580fdb(0xc1),'apiKey':_0x580fdb(0xb7),'apiKeyPlaceholder':_0x580fdb(0xc8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x580fdb(0xb2),'enableAuthHint':_0x580fdb(0xc4),'connectionInfo':_0x580fdb(0xb9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x580fdb(0xc7),'configStepTitle':_0x580fdb(0xbc),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x580fdb(0xb6),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x580fdb(0xb1),'sessionIdDescription':_0x580fdb(0xa2),'authorizationDescription':_0x580fdb(0xa9),'configParameters':_0x580fdb(0xac),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x580fdb(0xad),'note2':_0x580fdb(0xc3),'configSaved':_0x580fdb(0xd0),'configError':_0x580fdb(0xd2),'apiApplyInfo':{'title':_0x580fdb(0xbd),'description':_0x580fdb(0x9e),'univerAiLabel':_0x580fdb(0xa7),'getStarted':_0x580fdb(0xa6)},'validation':{'apiKeyRequired':_0x580fdb(0xa5),'apiKeyTooShort':_0x580fdb(0xae),'invalidConfig':_0x580fdb(0xce),'invalidApiKey':_0x580fdb(0xa3)},'connectionStatus':{'disconnected':_0x580fdb(0xb5),'connecting':_0x580fdb(0xaa),'connected':_0x580fdb(0xa1),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x580fdb(0xca),'sessionOccupied':_0x580fdb(0xd1),'networkError':_0x580fdb(0xbf),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0xaeab(_0x3752a5,_0x3e8575){const _0x489949=_0x4899();return _0xaeab=function(_0xaeab89,_0x3cd857){_0xaeab89=_0xaeab89-0x9e;let _0x775057=_0x489949[_0xaeab89];return _0x775057;},_0xaeab(_0x3752a5,_0x3e8575);}function _0x4899(){const _0x333918=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Unauthorized','8jlCFhy','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','3117575lcafaO','API\x20key\x20is\x20required','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','33BREoOE','API\x20key\x20with\x20Bearer\x20prefix.','Connecting...','8pyNMbI','Configuration\x20Parameters:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','62226LmtAnp','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','Enable\x20Authentication','145364CGkElc','7882847XWvKnM','Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','3236652SJtuKm','MCP\x20Client\x20Configuration','3821760mSqXlw','MCP\x20Disconnected','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','168rkwfhy','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','exports','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Configuration','MCP\x20Connection\x20Failed','6495670WCbWdn','Invalid\x20configuration','MCP:\x20Network\x20Error','Configuration\x20saved\x20successfully'];_0x4899=function(){return _0x333918;};return _0x4899();}module[_0x580fdb(0xc5)]=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x476a(_0x41fa57,_0x1bf555){const _0x499f37=_0x499f();return _0x476a=function(_0x476afe,_0x5731e9){_0x476afe=_0x476afe-0x87;let _0x219b0b=_0x499f37[_0x476afe];return _0x219b0b;},_0x476a(_0x41fa57,_0x1bf555);}const _0x23b10a=_0x476a;(function(_0x5ab729,_0x358e3e){const _0x510577=_0x476a,_0x301282=_0x5ab729();while(!![]){try{const _0x23e960=parseInt(_0x510577(0x97))/0x1+-parseInt(_0x510577(0x8f))/0x2+-parseInt(_0x510577(0xb4))/0x3*(-parseInt(_0x510577(0xb2))/0x4)+-parseInt(_0x510577(0x9c))/0x5*(parseInt(_0x510577(0xa6))/0x6)+-parseInt(_0x510577(0x88))/0x7*(-parseInt(_0x510577(0x8a))/0x8)+parseInt(_0x510577(0xac))/0x9+-parseInt(_0x510577(0x99))/0xa;if(_0x23e960===_0x358e3e)break;else _0x301282['push'](_0x301282['shift']());}catch(_0x1314e2){_0x301282['push'](_0x301282['shift']());}}}(_0x499f,0xa4918));function _0x499f(){const _0x4acccd=['Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','1652216KWzklu','MCP:\x20Unauthorized','3qAvUOS','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','Invalid\x20configuration','Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','35WVetEM','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1878208YnaCgN','API\x20key\x20is\x20required','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','2449890YlSzjf','Max\x20Retries','What\x20is\x20API\x20Key?','Configuration\x20saved\x20successfully','MCP\x20Configuration','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','837555eKfZPG','Configuration\x20Parameters:','5869340DENyNP','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','5fPngEi','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','7254510wmmend','exports','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Disconnected','11434923rUBQue','MCP\x20Unknown\x20Status'];_0x499f=function(){return _0x4acccd;};return _0x499f();}const e={'mcpStatus':{'disconnected':_0x23b10a(0xab),'connecting':'MCP\x20Connecting...','connected':_0x23b10a(0xa9),'failed':_0x23b10a(0x9a),'retrying':'MCP\x20Retrying...','unknown':_0x23b10a(0xad),'unauthorized':_0x23b10a(0xb3),'sessionOccupied':_0x23b10a(0x96),'networkError':_0x23b10a(0xaf),'maxRetriesExceeded':_0x23b10a(0xa8),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x23b10a(0x93),'description':_0x23b10a(0x9f),'apiKey':_0x23b10a(0xa3),'apiKeyPlaceholder':_0x23b10a(0xb6),'apiKeyHint':_0x23b10a(0xa5),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x23b10a(0x9e),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x23b10a(0x87),'configStep2':_0x23b10a(0xaa),'configStep3':_0x23b10a(0x95),'sessionId':_0x23b10a(0xa1),'sessionIdDescription':_0x23b10a(0xb5),'authorizationDescription':_0x23b10a(0xb9),'configParameters':_0x23b10a(0x98),'maxRetries':_0x23b10a(0x90),'save':_0x23b10a(0x9d),'saving':_0x23b10a(0xb1),'note1':_0x23b10a(0x9b),'note2':_0x23b10a(0x89),'configSaved':_0x23b10a(0x92),'configError':_0x23b10a(0x8e),'apiApplyInfo':{'title':_0x23b10a(0x91),'description':_0x23b10a(0xa4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23b10a(0xae)},'validation':{'apiKeyRequired':_0x23b10a(0x8b),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x23b10a(0xb7),'invalidApiKey':_0x23b10a(0xa2)},'connectionStatus':{'disconnected':_0x23b10a(0xba),'connecting':_0x23b10a(0xb8),'connected':'Connected','failed':_0x23b10a(0x8c),'retrying':_0x23b10a(0x94)},'connectionError':{'unauthorized':_0x23b10a(0xa0),'sessionOccupied':_0x23b10a(0x8d),'networkError':_0x23b10a(0xb0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x23b10a(0xa7)]=n;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x15dbbc=_0x1dce;function _0x2e2c(){const _0x575262=['网络连接错误,请检查您的网络连接','几秒钟内获取您的\x20API\x20密钥','连接失败','配置更改将立即生效','8geKQXs','3155174nqYOtn','6486165DjwRXe','配置\x20MCP\x20使用\x20AI\x20操作电子表格','权限验证失败,请检查您的\x20API\x20密钥','MCP:\x20网络错误','会话\x20ID\x20已被占用,请稍后再试','配置参数:','MCP\x20已断开','带有\x20Bearer\x20前缀的\x20API\x20密钥。','启用身份验证','配置步骤:','MCP\x20客户端配置','您的\x20API\x20密钥将在此浏览器中本地存储','3332385zccLkN','将配置添加到您的\x20MCP\x20客户端设置文件中','最大重试次数','保存中...','exports','未连接','MCP:\x20未授权','MCP:\x20会话\x20ID\x20已被占用','配置无效','复制以下\x20JSON\x20配置','已连接','会话ID','点击配置\x20MCP','4768074YtWDfi','API\x20密钥不能为空','MCP\x20已连接','启用身份验证以获得安全连接','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20密钥','MCP\x20配置','Univer\x20AI\x20控制台','4gedyVr','连接中...','6339324CpWSsA','MCP:\x20超出最大重试次数','1248504WXNhCP','您的\x20API\x20密钥安全存储在本地存储中','API\x20密钥长度至少需要\x2010\x20位','7140985vBxwpp','配置保存成功','配置保存失败','将以下配置添加到您的\x20MCP\x20客户端设置中:'];_0x2e2c=function(){return _0x575262;};return _0x2e2c();}(function(_0x3c5833,_0x5209c0){const _0x5972d5=_0x1dce,_0x28d10=_0x3c5833();while(!![]){try{const _0x1fccb2=parseInt(_0x5972d5(0x1a5))/0x1+parseInt(_0x5972d5(0x17f))/0x2+-parseInt(_0x5972d5(0x18c))/0x3+parseInt(_0x5972d5(0x1a1))/0x4*(-parseInt(_0x5972d5(0x1a8))/0x5)+parseInt(_0x5972d5(0x1a3))/0x6+-parseInt(_0x5972d5(0x180))/0x7*(parseInt(_0x5972d5(0x1b0))/0x8)+parseInt(_0x5972d5(0x199))/0x9;if(_0x1fccb2===_0x5209c0)break;else _0x28d10['push'](_0x28d10['shift']());}catch(_0x20fefd){_0x28d10['push'](_0x28d10['shift']());}}}(_0x2e2c,0xe729c));function _0x1dce(_0x54ca82,_0x5a3b3c){const _0x2e2cc4=_0x2e2c();return _0x1dce=function(_0x1dce33,_0x4ff7c9){_0x1dce33=_0x1dce33-0x17f;let _0x432e72=_0x2e2cc4[_0x1dce33];return _0x432e72;},_0x1dce(_0x54ca82,_0x5a3b3c);}const e={'mcpStatus':{'disconnected':_0x15dbbc(0x186),'connecting':'MCP\x20连接中...','connected':_0x15dbbc(0x19b),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x15dbbc(0x192),'sessionOccupied':_0x15dbbc(0x193),'networkError':_0x15dbbc(0x183),'maxRetriesExceeded':_0x15dbbc(0x1a4),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x15dbbc(0x198)},'mcpConfig':{'title':_0x15dbbc(0x19f),'description':_0x15dbbc(0x181),'apiKey':_0x15dbbc(0x19e),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x15dbbc(0x18b),'enableAuth':_0x15dbbc(0x188),'enableAuthHint':_0x15dbbc(0x19c),'connectionInfo':_0x15dbbc(0x18a),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x15dbbc(0x1ab),'configStepTitle':_0x15dbbc(0x189),'configStep1':_0x15dbbc(0x195),'configStep2':_0x15dbbc(0x18d),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x15dbbc(0x197),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x15dbbc(0x187),'configParameters':_0x15dbbc(0x185),'maxRetries':_0x15dbbc(0x18e),'save':'保存配置','saving':_0x15dbbc(0x18f),'note1':_0x15dbbc(0x1af),'note2':_0x15dbbc(0x1a6),'configSaved':_0x15dbbc(0x1a9),'configError':_0x15dbbc(0x1aa),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x15dbbc(0x19d),'univerAiLabel':_0x15dbbc(0x1a0),'getStarted':_0x15dbbc(0x1ad)},'validation':{'apiKeyRequired':_0x15dbbc(0x19a),'apiKeyTooShort':_0x15dbbc(0x1a7),'invalidConfig':_0x15dbbc(0x194),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x15dbbc(0x191),'connecting':_0x15dbbc(0x1a2),'connected':_0x15dbbc(0x196),'failed':_0x15dbbc(0x1ae),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x15dbbc(0x182),'sessionOccupied':_0x15dbbc(0x184),'networkError':_0x15dbbc(0x1ac),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x15dbbc(0x190)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4db786=_0x1afd;function _0x16cd(){const _0x5071ef=['Univer\x20AI\x20Console','107739WrgLcb','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','100cBLHiz','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','855276JAcUvx','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','1003918KMejrA','7cSRQyG','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20configure\x20MCP','10jzVOQM','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','859772GhiMnD','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','22DqxXmc','2qaElwv','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','7282956hEtMXv','Session\x20ID','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','11689572KdopXG','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Max\x20Retries','Disconnected','Save\x20Configuration','9226400RjyFJH','API\x20Key','API\x20key\x20is\x20required'];_0x16cd=function(){return _0x5071ef;};return _0x16cd();}(function(_0x2c8673,_0x29b916){const _0x9b6c2a=_0x1afd,_0x56c904=_0x2c8673();while(!![]){try{const _0x2707b9=parseInt(_0x9b6c2a(0x14b))/0x1*(-parseInt(_0x9b6c2a(0x160))/0x2)+parseInt(_0x9b6c2a(0x179))/0x3+-parseInt(_0x9b6c2a(0x15b))/0x4*(parseInt(_0x9b6c2a(0x151))/0x5)+-parseInt(_0x9b6c2a(0x163))/0x6*(parseInt(_0x9b6c2a(0x14c))/0x7)+parseInt(_0x9b6c2a(0x16d))/0x8+-parseInt(_0x9b6c2a(0x171))/0x9*(parseInt(_0x9b6c2a(0x174))/0xa)+-parseInt(_0x9b6c2a(0x15f))/0xb*(-parseInt(_0x9b6c2a(0x167))/0xc);if(_0x2707b9===_0x29b916)break;else _0x56c904['push'](_0x56c904['shift']());}catch(_0x3ea05c){_0x56c904['push'](_0x56c904['shift']());}}}(_0x16cd,0x97332));function _0x1afd(_0x4fbe03,_0x252847){const _0x16cd47=_0x16cd();return _0x1afd=function(_0x1afde5,_0x4c1505){_0x1afde5=_0x1afde5-0x14a;let _0x565a85=_0x16cd47[_0x1afde5];return _0x565a85;},_0x1afd(_0x4fbe03,_0x252847);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4db786(0x173),'failed':_0x4db786(0x168),'retrying':_0x4db786(0x14a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4db786(0x162),'sessionOccupied':_0x4db786(0x14f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4db786(0x175),'clickToConfigure':_0x4db786(0x150)},'mcpConfig':{'title':_0x4db786(0x153),'description':_0x4db786(0x156),'apiKey':_0x4db786(0x16e),'apiKeyPlaceholder':_0x4db786(0x161),'apiKeyHint':_0x4db786(0x14d),'enableAuth':_0x4db786(0x157),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4db786(0x169),'mcpClientConfig':_0x4db786(0x169),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4db786(0x15e),'configStep1':_0x4db786(0x166),'configStep2':_0x4db786(0x159),'configStep3':_0x4db786(0x172),'sessionId':_0x4db786(0x164),'sessionIdDescription':_0x4db786(0x177),'authorizationDescription':_0x4db786(0x17b),'configParameters':_0x4db786(0x165),'maxRetries':_0x4db786(0x16a),'save':_0x4db786(0x16c),'saving':'Saving...','note1':_0x4db786(0x178),'note2':_0x4db786(0x14e),'configSaved':_0x4db786(0x17a),'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':_0x4db786(0x170),'getStarted':_0x4db786(0x154)},'validation':{'apiKeyRequired':_0x4db786(0x16f),'apiKeyTooShort':_0x4db786(0x158),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4db786(0x155)},'connectionStatus':{'disconnected':_0x4db786(0x16b),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4db786(0x15c)},'connectionError':{'unauthorized':_0x4db786(0x15a),'sessionOccupied':_0x4db786(0x15d),'networkError':_0x4db786(0x176),'maxRetriesExceeded':_0x4db786(0x152)}}},n=e;module['exports']=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2769d5=_0x10e1;(function(_0x50d313,_0x9dac4){const _0x1cc3b9=_0x10e1,_0x30f250=_0x50d313();while(!![]){try{const _0x5e888b=parseInt(_0x1cc3b9(0x236))/0x1+-parseInt(_0x1cc3b9(0x1f3))/0x2*(parseInt(_0x1cc3b9(0x1f8))/0x3)+-parseInt(_0x1cc3b9(0x2a9))/0x4+parseInt(_0x1cc3b9(0x28f))/0x5+-parseInt(_0x1cc3b9(0x2f3))/0x6*(-parseInt(_0x1cc3b9(0x263))/0x7)+-parseInt(_0x1cc3b9(0x2c8))/0x8+-parseInt(_0x1cc3b9(0x299))/0x9*(-parseInt(_0x1cc3b9(0x1fd))/0xa);if(_0x5e888b===_0x9dac4)break;else _0x30f250['push'](_0x30f250['shift']());}catch(_0x2ad4c7){_0x30f250['push'](_0x30f250['shift']());}}}(_0x3190,0xdfd65));function _0x3190(){const _0x53e1eb=['MCP\x20客户端配置','url(#on-line-icon_clip0_910_349)','entries','配置参数:','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','202149GMlKqH','mergeMenu','currentColor','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_handleConfigSave','open','univer-bg-green-500','value','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-flex\x20univer-items-center','Enable\x20Authentication','register','attrs','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','635636tyqwlo','off-line-icon','white','getItem','MCP\x20Configuration','path','univer-min-w-0\x20univer-flex-1','Saving...','SESSION_ID_OCCUPIED','配置无效','mcpStatus.clickToConfigure','div','showDeveloperTools','_configService','univer-text-blue-600','Retrying...','点击配置\x20MCP','启用身份验证以获得安全连接','OTHERS','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20Connecting...','_apiKey$','什么是\x20API\x20密钥?','https://console.univer.ai','OnLineIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','none','CloseIcon','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','children','mcpConfig.connectionStatus.disconnected','9997440JsFlgo','defs','BUTTON','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Click\x20to\x20connect\x20MCP','_messageService','noopener\x20noreferrer','warn','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','mcpConfig.connectionStatus.failed','defIds','mcpConfig.configParameters','连接失败','mcpConfig.connectionInfo','getConfig','mcpConfig.authorizationDescription','close-icon','random','UNAUTHORIZED','colorChannel1','\x20-\x20','mcpStatus.connecting','xlink:href','onStarting','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_uiPartsService','mcpConfig.title','_localStorageService','mcpConfig.note2','_initializeCommands','M0\x200H16V16H0z','mcpStatus.retrying','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','CONNECTED','mcp-ui.config','连接中...','error','MCP:\x20Session\x20ID\x20Occupied','sessionId$','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MAX_RETRIES_EXCEEDED','14304IPJkrY','univer-text-yellow-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','What\x20is\x20API\x20Key?','会话ID','mcpConfig.configStep1','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','MCP\x20已连接','univer-flex\x20univer-items-center\x20univer-gap-2','get','disposeWithMe','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','RETRYING','add','univer-mr-2\x20univer-flex\x20univer-text-xl','substring','MCP:\x20Max\x20Retries\x20Exceeded','univer-size-2\x20univer-rounded-full','__setCustomHeaders','errorMessage','fill','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','url(#$1','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥长度至少需要\x2010\x20位','off-line-icon_clip0_910_343','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥不能为空','univer-shrink-0\x20univer-text-blue-500','button','univer.plus','univer-bg-gray-500','MCP\x20连接失败','mcpConfig.configStep2','OffLineIcon','length','_handleConfigure','Authorization:','push','DISCONNECTED','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','https://console.univer.plus','mcpConfig.connectionError.networkError','_initAutoConnect','mcpConfig.apiApplyInfo.getStarted','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.saving','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','clipPath','trim','mcpStatus.disconnected','univer-font-medium','tag','enableAutoConnect','复制以下\x20JSON\x20配置','mcpConfig.configInstructions','_localeService','Connected','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Bearer\x20','<API_KEY>','univer-flex\x20univer-items-center\x20univer-gap-3','NONE','MCP\x20Retrying...','mcpStatus.maxRetriesExceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','replace','mcpConfig.note1','defineProperty','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','mcpConfig.connectionError.unauthorized','_mcpCoreConfig$','text','stringify','svg','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.apiKeyPlaceholder','重连中...','mcpConfig.apiApplyInfo.title','registerComponent','点击连接\x20MCP','2430306XUqbwU','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpConnectionController','http://www.w3.org/2000/svg','1em','3eVbdKC','current','univer-text-red-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','pre','470kognzq','mcpConfig.connectionStatus.connecting','启用身份验证','getCurrentConfig','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','HelpIcon','Configuration\x20saved\x20successfully','MCP\x20配置','subscribeConfigValue$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','symbol','配置保存失败','请输入您的\x20API\x20密钥','<SESSION_ID>','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','mcpConfig.configError','mcpConfig.apiKey','translate(.97)','_config$','MCP\x20Client\x20Configuration','未连接','mcpStatus.unknown','_createConfigPanelComponent','配置步骤:','FAILED','_connectionController','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-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex-1','univer-text-gray-500','univer-bg-red-500','MCP:\x20超出最大重试次数','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-items-start\x20univer-gap-2','label','mcpStatus.sessionOccupied','univer-space-y-4','_registerComponent','mcpServerUrl','show','mcpConfig.sessionIdDescription','includes','0\x200\x2017\x2016','_injector','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20Unknown\x20Status','use','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.save','MCP\x20已断开','MCP:\x20网络错误','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','getOwnPropertyDescriptor','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Failed\x20to\x20save\x20configuration','subscribe','396712mNSxwN','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','配置保存成功','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStepTitle','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','_loading$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcp.apiKey','validateApiKey','round','assign','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','CONNECTING','connectionStatus$','displayName','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.connectionStatus.connected','univer-space-y-5','univer-space-y-3','univer-flex\x20univer-gap-3','最大重试次数','MCP_UI_PLUGIN','mask','_menuManagerService','COMMAND','string','mcpConfig.validation.apiKeyTooShort','Error','univer-bg-blue-500','保存配置','_loadStoredApiKey','Connection\x20Failed','_initializeMenus','next','univer.ai','close','将配置添加到您的\x20MCP\x20客户端设置文件中','_config','showStatus','evenodd','_validateConfig','span','保存中...','univer-text-sm\x20univer-text-gray-500','5012yToIle','univer-flex\x20univer-flex-wrap\x20univer-gap-2','网络连接错误,请检查您的网络连接','isValid','mcpConfig.validation.apiKeyRequired','配置\x20MCP\x20使用\x20AI\x20操作电子表格','API\x20Key','mcpConfig.configSaved','mcpConfig.configStep3','_initConfigSync','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionError.sessionOccupied','mcpConfig.description','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','NETWORK_ERROR','mcpConfig.apiApplyInfo.description','map','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20状态未知','MCPConfigPanel','_componentManager','univer-flex\x20univer-items-start\x20univer-gap-3','idSuffix','forEach','_initStatusComponent','配置更改将立即生效','on-line-icon','showConfigPanel','connectionError$','univer-space-y-2','univer-text-xs\x20univer-text-gray-500','_commandService','registerCommand','0\x200\x2016\x2016','_dialogService','几秒钟内获取您的\x20API\x20密钥','API\x20密钥','MCP\x20连接中...','apiKey','Session\x20ID','http','has','_logService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','1906280SHmTHH','_blank','API\x20key\x20is\x20required','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Invalid\x20configuration'];_0x3190=function(){return _0x53e1eb;};return _0x3190();}var Pe=Object['defineProperty'],Ee=(_0x524962,_0x347cbe,_0x2757ae)=>_0x347cbe in _0x524962?Pe(_0x524962,_0x347cbe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2757ae}):_0x524962[_0x347cbe]=_0x2757ae,x=(_0x3bd200,_0x363495,_0x658086)=>Ee(_0x3bd200,typeof _0x363495!=_0x2769d5(0x207)?_0x363495+'':_0x363495,_0x658086);import{LocaleService as _0x233df5,Inject as _0x4b7a17,Injector as _0x421ef2,IConfigService as _0xee81c0,ILocalStorageService as _0x795f9,ILogService as _0x1d458a,Disposable as _0x3d3fb7,CommandType as _0xd160eb,ICommandService as _0x36bc7c,DependentOn as _0x4a5a48,Plugin as _0x54c9f4,merge as _0x2a82b6}from'@univerjs/core';import{jsxs as _0x7f3ff3,jsx as _0x318c08}from'react/jsx-runtime';import{MCPConnectionStatus as _0x1d4de4,MCPConnectionError as _0x323128,MCPConnectionController as _0x3b6c50,MCP_PLUGIN_CONFIG_KEY as _0x1502e5,UniverMCPPlugin as _0x695d2d}from'@univerjs-pro/mcp';import{clsx as _0x40786a,Input as _0x4edb36,Button as _0x598e0c,MessageType as _0x2548c2,Tooltip as _0x4febfc}from'@univerjs/design';import{useDependency as _0x4d60eb,useObservable as _0x4603d5,IUIPartsService as _0x1c5d31,IDialogService as _0x417636,IMessageService as _0x2a2fb0,ComponentManager as _0x4b5304,connectInjector as _0x142cda,BuiltInUIPart as _0x3b5bbf,MenuItemType as _0xe1ffbe,RibbonStartGroup as _0xb6b573,IMenuManagerService as _0x54b291}from'@univerjs/ui';import{BehaviorSubject as _0x2f2d8d}from'rxjs';import{useRef as _0xe4f10f,createElement as _0x2a79e6,forwardRef as _0x397b7e,useState as _0x436be2,useCallback as _0x1b2b1f}from'react';import{ISocketService as _0x56b0af,WebSocketService as _0x367e96}from'@univerjs/network';function b({ref:_0x451cb6,..._0x1744e2}){const _0x1bf184=_0x2769d5,{icon:_0x585315,id:_0x3d49b0,className:_0x4a6405,extend:_0x1fdee3,..._0x728f6}=_0x1744e2,_0x475dd7=('univerjs-icon\x20univerjs-icon-'+_0x3d49b0+'\x20'+(_0x4a6405||''))[_0x1bf184(0x1d2)](),_0x51a029=_0xe4f10f('_'+We());return ae(_0x585315,''+_0x3d49b0,{'defIds':_0x585315[_0x1bf184(0x2d3)],'idSuffix':_0x51a029[_0x1bf184(0x1f9)]},{'ref':_0x451cb6,'className':_0x475dd7,..._0x728f6},_0x1fdee3);}function ae(_0x187796,_0x4b9763,_0x237918,_0x5543ac,_0x5e7e67){const _0x187324=_0x2769d5;return _0x2a79e6(_0x187796[_0x187324(0x1d5)],{'key':_0x4b9763,...Ye(_0x187796,_0x237918,_0x5e7e67),..._0x5543ac},(Ze(_0x187796,_0x237918)[_0x187324(0x2c6)]||[])[_0x187324(0x273)]((_0x409ef5,_0x20184b)=>ae(_0x409ef5,_0x4b9763+'-'+_0x187796['tag']+'-'+_0x20184b,_0x237918,void 0x0,_0x5e7e67)));}function Ye(_0x3e217a,_0x4ff6cb,_0x1b3d22){const _0x54bff8=_0x2769d5,_0x3f12b7={..._0x3e217a['attrs']};_0x1b3d22!=null&&_0x1b3d22[_0x54bff8(0x2dc)]&&_0x3f12b7[_0x54bff8(0x307)]===_0x54bff8(0x2dc)&&(_0x3f12b7[_0x54bff8(0x307)]=_0x1b3d22[_0x54bff8(0x2dc)]),_0x3e217a[_0x54bff8(0x1d5)]==='mask'&&_0x3f12b7['id']&&(_0x3f12b7['id']=_0x3f12b7['id']+_0x4ff6cb[_0x54bff8(0x279)]),Object[_0x54bff8(0x296)](_0x3f12b7)[_0x54bff8(0x27a)](([_0x104489,_0x1378bc])=>{const _0x3aa768=_0x54bff8;_0x104489===_0x3aa768(0x24d)&&typeof _0x1378bc=='string'&&(_0x3f12b7[_0x104489]=_0x1378bc[_0x3aa768(0x1e3)](/url\(#(.*)\)/,_0x3aa768(0x309)+_0x4ff6cb[_0x3aa768(0x279)]+')'));});const {defIds:_0x1cc687}=_0x4ff6cb;return!_0x1cc687||_0x1cc687[_0x54bff8(0x316)]===0x0||(_0x3e217a[_0x54bff8(0x1d5)]===_0x54bff8(0x22c)&&_0x3f12b7[_0x54bff8(0x2df)]&&(_0x3f12b7[_0x54bff8(0x2df)]=_0x3f12b7['xlink:href']+_0x4ff6cb['idSuffix']),Object[_0x54bff8(0x296)](_0x3f12b7)[_0x54bff8(0x27a)](([_0x4014e9,_0x59e8fb])=>{const _0x256bf3=_0x54bff8;typeof _0x59e8fb==_0x256bf3(0x250)&&(_0x3f12b7[_0x4014e9]=_0x59e8fb[_0x256bf3(0x1e3)](/url\(#(.*)\)/,_0x256bf3(0x309)+_0x4ff6cb[_0x256bf3(0x279)]+')'));})),_0x3f12b7;}function Ze(_0x13f15e,_0x1ca638){const _0x405616=_0x2769d5;var _0x16702d;const {defIds:_0x3a7764}=_0x1ca638;return!_0x3a7764||_0x3a7764[_0x405616(0x316)]===0x0?_0x13f15e:_0x13f15e[_0x405616(0x1d5)]===_0x405616(0x2c9)&&((_0x16702d=_0x13f15e[_0x405616(0x2c6)])!=null&&_0x16702d[_0x405616(0x316)])?{..._0x13f15e,'children':_0x13f15e[_0x405616(0x2c6)][_0x405616(0x273)](_0x3878b1=>typeof _0x3878b1['attrs']['id']==_0x405616(0x250)&&_0x3a7764&&_0x3a7764[_0x405616(0x227)](_0x3878b1['attrs']['id'])?{..._0x3878b1,'attrs':{..._0x3878b1[_0x405616(0x2a7)],'id':_0x3878b1[_0x405616(0x2a7)]['id']+_0x1ca638[_0x405616(0x279)]}}:_0x3878b1)}:_0x13f15e;}function We(){const _0x314b53=_0x2769d5;return Math[_0x314b53(0x2da)]()['toString'](0x24)[_0x314b53(0x302)](0x2,0x8);}b[_0x2769d5(0x245)]='UniverIcon';const qe={'tag':_0x2769d5(0x1eb),'attrs':{'xmlns':_0x2769d5(0x1f6),'fill':_0x2769d5(0x2c3),'viewBox':_0x2769d5(0x284),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x2769d5(0x29b),'d':_0x2769d5(0x242),'fillRule':'evenodd','clipRule':'evenodd'}}]},le=_0x397b7e(function(_0x1c81aa,_0x4356b2){const _0x50101a=_0x2769d5;return _0x2a79e6(b,Object[_0x50101a(0x241)]({},_0x1c81aa,{'id':'check-mark-icon','ref':_0x4356b2,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x2769d5(0x1f6),'fill':'none','viewBox':_0x2769d5(0x284),'width':'1em','height':_0x2769d5(0x1f7)},'children':[{'tag':_0x2769d5(0x2ae),'attrs':{'fill':_0x2769d5(0x29b),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x397b7e(function(_0xd2cda0,_0x401ec5){const _0x324bea=_0x2769d5;return _0x2a79e6(b,Object['assign']({},_0xd2cda0,{'id':_0x324bea(0x2d9),'ref':_0x401ec5,'icon':Xe}));});ue[_0x2769d5(0x245)]=_0x2769d5(0x2c4);const Je={'tag':_0x2769d5(0x1eb),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2769d5(0x2c3),'viewBox':_0x2769d5(0x284),'width':_0x2769d5(0x1f7),'height':_0x2769d5(0x1f7)},'children':[{'tag':_0x2769d5(0x2ae),'attrs':{'fill':_0x2769d5(0x29b),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x2769d5(0x2ae),'attrs':{'fill':_0x2769d5(0x29b),'d':_0x2769d5(0x270)}},{'tag':_0x2769d5(0x2ae),'attrs':{'fill':_0x2769d5(0x29b),'d':_0x2769d5(0x20b),'fillRule':'evenodd','clipRule':_0x2769d5(0x25e)}}]},ve=_0x397b7e(function(_0xcc083d,_0x49dc51){return _0x2a79e6(b,Object['assign']({},_0xcc083d,{'id':'help-icon','ref':_0x49dc51,'icon':Je}));});ve[_0x2769d5(0x245)]=_0x2769d5(0x202);const Qe={'tag':_0x2769d5(0x1eb),'attrs':{'xmlns':_0x2769d5(0x1f6),'fill':_0x2769d5(0x2c3),'viewBox':_0x2769d5(0x284),'width':_0x2769d5(0x1f7),'height':_0x2769d5(0x1f7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x2769d5(0x29b),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2769d5(0x240),'strokeLinejoin':_0x2769d5(0x240),'strokeWidth':1.2}}]},{'tag':_0x2769d5(0x2c9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x2769d5(0x2ab),'d':_0x2769d5(0x2e7)}}]}]}],'defIds':[_0x2769d5(0x30c)]},de=_0x397b7e(function(_0x3d850c,_0x4a7b9c){const _0x14cc8b=_0x2769d5;return _0x2a79e6(b,Object[_0x14cc8b(0x241)]({},_0x3d850c,{'id':_0x14cc8b(0x2aa),'ref':_0x4a7b9c,'icon':Qe}));});de[_0x2769d5(0x245)]=_0x2769d5(0x315);const en={'tag':_0x2769d5(0x1eb),'attrs':{'xmlns':_0x2769d5(0x1f6),'fill':'none','viewBox':_0x2769d5(0x228),'width':_0x2769d5(0x1f7),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2769d5(0x295)},'children':[{'tag':_0x2769d5(0x2ae),'attrs':{'stroke':_0x2769d5(0x29b),'d':_0x2769d5(0x2d1),'strokeLinecap':_0x2769d5(0x240),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2769d5(0x2c9),'attrs':{},'children':[{'tag':_0x2769d5(0x1d1),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2769d5(0x2e7),'transform':_0x2769d5(0x20e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x397b7e(function(_0x5898c2,_0x3d96b8){const _0x57ddcf=_0x2769d5;return _0x2a79e6(b,Object[_0x57ddcf(0x241)]({},_0x5898c2,{'id':_0x57ddcf(0x27d),'ref':_0x3d96b8,'icon':en}));});ge['displayName']=_0x2769d5(0x2c1);function nn(_0x17836b){const _0xca7e5b=_0x2769d5;var _0x19774c,_0x3765a1;const {mcpCoreConfig:_0x456885,onSave:_0xe7abf3,loading:_0x5698d0=!0x1,config:_0x23702d,connectionStatus$:_0x241f6c,connectionError$:_0x35781d,currentApiKey$:_0xb94bcf,currentSessionId$:_0x15cb83}=_0x17836b,_0x5824ac=_0x4d60eb(_0x233df5),_0x19e2ba=_0x4603d5(_0x241f6c,_0x1d4de4[_0xca7e5b(0x1c8)]),_0xf7852a=_0x4603d5(_0x35781d,_0x323128[_0xca7e5b(0x1df)]),_0x4ae18b=_0x4603d5(_0x15cb83,''),_0x1ec99e=_0x4603d5(_0xb94bcf,''),[_0x336798,_0x384b1d]=_0x436be2(_0x1ec99e||''),_0x213230=!0x0,_0x535487=_0x23702d['showDeveloperTools']&&_0x456885[_0xca7e5b(0x224)]&&(_0x456885[_0xca7e5b(0x224)]['includes']('univer.plus')||_0x456885['mcpServerUrl']['includes'](_0xca7e5b(0x259))),_0x30f384=(_0x19774c=_0x456885[_0xca7e5b(0x224)])==null?void 0x0:_0x19774c[_0xca7e5b(0x227)](_0xca7e5b(0x311)),_0x2852fe=(_0x3765a1=_0x456885[_0xca7e5b(0x224)])==null?void 0x0:_0x3765a1[_0xca7e5b(0x227)]('univer.ai'),_0x33dfc5=_0x30f384?_0xca7e5b(0x1ca):_0xca7e5b(0x2c0),_0x3c41de=_0x23702d[_0xca7e5b(0x2b5)]&&(_0x30f384||_0x2852fe),[_0x128790,_0x263515]=_0x436be2(!_0x336798[_0xca7e5b(0x1d2)]()),_0x63dcbf=(_0x1a83ce,_0x620e7a)=>{const _0x2df4dd=_0xca7e5b;if(_0x620e7a===_0x323128[_0x2df4dd(0x2db)])return _0x2df4dd(0x2cb);switch(_0x1a83ce){case _0x1d4de4[_0x2df4dd(0x2ea)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1d4de4[_0x2df4dd(0x243)]:case _0x1d4de4['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x1d4de4[_0x2df4dd(0x215)]:return _0x2df4dd(0x2cb);default:return _0x2df4dd(0x206);}},_0x57c33c=(_0x4774e1,_0x31c70b)=>{const _0x431b80=_0xca7e5b;if(_0x31c70b===_0x323128[_0x431b80(0x2db)])return _0x431b80(0x21c);switch(_0x4774e1){case _0x1d4de4['CONNECTED']:return _0x431b80(0x29f);case _0x1d4de4[_0x431b80(0x243)]:case _0x1d4de4[_0x431b80(0x2ff)]:return _0x431b80(0x253);case _0x1d4de4[_0x431b80(0x215)]:return _0x431b80(0x21c);default:return _0x431b80(0x312);}},_0xac2cd=_0x243daf=>{const _0x12fb08=_0xca7e5b;switch(_0x243daf){case _0x1d4de4['CONNECTED']:return _0x5824ac['t'](_0x12fb08(0x247));case _0x1d4de4[_0x12fb08(0x243)]:return _0x5824ac['t'](_0x12fb08(0x1fe));case _0x1d4de4['FAILED']:return _0x5824ac['t'](_0x12fb08(0x2d2));case _0x1d4de4['RETRYING']:return _0x5824ac['t']('mcpConfig.connectionStatus.retrying');default:return _0x5824ac['t'](_0x12fb08(0x2c7));}},_0x4c42c1=_0x43c494=>{const _0x75c5a4=_0xca7e5b;switch(_0x43c494){case _0x323128['UNAUTHORIZED']:return _0x5824ac['t'](_0x75c5a4(0x1e7));case _0x323128[_0x75c5a4(0x2b1)]:return _0x5824ac['t'](_0x75c5a4(0x26e));case _0x323128[_0x75c5a4(0x271)]:return _0x5824ac['t'](_0x75c5a4(0x1cb));case _0x323128[_0x75c5a4(0x2f2)]:return _0x5824ac['t'](_0x75c5a4(0x1ce));default:return'';}},_0x39d01f=_0x1b2b1f(()=>{const _0x13539a=_0xca7e5b,_0x1647f0={..._0x456885,'apiKey':_0x336798[_0x13539a(0x1d2)](),'enableAuth':_0x213230};_0xe7abf3(_0x1647f0);},[_0x456885,_0x336798,_0x213230,_0xe7abf3]),_0x2c45a1=_0x336798[_0xca7e5b(0x1d2)]()[_0xca7e5b(0x316)]>0x0;return _0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x22a),'children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x292),'children':_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x1de),'children':[_0x318c08('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x318c08(_0xca7e5b(0x260),{'className':'univer-text-white','children':'⚙'})}),_0x318c08(_0xca7e5b(0x2b4),{'children':_0x318c08('p',{'className':_0xca7e5b(0x262),'children':_0x5824ac['t'](_0xca7e5b(0x26f))})})]})}),_0x7f3ff3('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0x40786a(_0xca7e5b(0x218),_0x63dcbf(_0x19e2ba,_0xf7852a)),'children':_0x7f3ff3(_0xca7e5b(0x2b4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0x40786a(_0xca7e5b(0x304),_0x57c33c(_0x19e2ba,_0xf7852a))}),_0x318c08(_0xca7e5b(0x260),{'className':'univer-text-sm\x20univer-font-medium','children':_0xac2cd(_0x19e2ba)})]})}),_0xf7852a!==_0x323128[_0xca7e5b(0x1df)]&&(_0x19e2ba===_0x1d4de4[_0xca7e5b(0x215)]||_0xf7852a===_0x323128[_0xca7e5b(0x2db)])&&_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x2e1),'children':_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x21f),'children':[_0x318c08(_0xca7e5b(0x260),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x318c08('p',{'className':_0xca7e5b(0x29c),'children':_0x4c42c1(_0xf7852a)})]})})]}),_0x318c08('div',{'className':_0xca7e5b(0x30d),'children':_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x248),'children':[_0x7f3ff3('div',{'className':'univer-space-y-2','children':[_0x7f3ff3(_0xca7e5b(0x220),{'className':_0xca7e5b(0x26d),'children':[_0x318c08(_0xca7e5b(0x260),{'children':'🔑'}),'\x20',_0x5824ac['t'](_0xca7e5b(0x20d)),_0x318c08(_0xca7e5b(0x260),{'className':'univer-text-red-500','children':'*'}),_0x535487&&_0x318c08('a',{'className':_0xca7e5b(0x308),'title':_0x5824ac['t'](_0xca7e5b(0x1f0)),'role':_0xca7e5b(0x310),'onClick':()=>_0x263515(!0x0),'children':_0x318c08(ve,{})})]}),_0x318c08(_0x4edb36,{'type':_0xca7e5b(0x1e9),'placeholder':_0x5824ac['t'](_0xca7e5b(0x1ee)),'value':_0x336798,'disabled':_0x5698d0,'autoComplete':'off','onChange':_0x384b1d}),_0x318c08('p',{'className':_0xca7e5b(0x281),'children':_0x5824ac['t']('mcpConfig.apiKeyHint')})]}),_0x535487&&_0x128790&&_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x1e6),'children':[_0x318c08('a',{'className':_0xca7e5b(0x23b),'role':_0xca7e5b(0x310),'onClick':()=>_0x263515(!0x1),'children':_0x318c08(ue,{'className':'univer-size-4'})}),_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x23d),'children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x298),'children':_0x318c08(_0xca7e5b(0x260),{'className':_0xca7e5b(0x2b7),'children':'🚀'})}),_0x7f3ff3('div',{'className':_0xca7e5b(0x21a),'children':[_0x318c08('h4',{'className':_0xca7e5b(0x1c9),'children':_0x5824ac['t'](_0xca7e5b(0x1f0))}),_0x318c08('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x5824ac['t'](_0xca7e5b(0x272))}),_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x264),'children':_0x3c41de&&_0x7f3ff3('a',{'className':_0xca7e5b(0x2f9),'href':_0x33dfc5,'target':_0xca7e5b(0x290),'rel':_0xca7e5b(0x2ce),'children':[_0x318c08(_0xca7e5b(0x260),{'children':'🤖'}),_0x5824ac['t'](_0xca7e5b(0x219)),_0x318c08(_0xca7e5b(0x260),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x7f3ff3(_0xca7e5b(0x2b4),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x5824ac['t'](_0xca7e5b(0x1cd))]})]})]})]}),_0x23702d[_0xca7e5b(0x2b5)]&&_0x7f3ff3(_0xca7e5b(0x2b4),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x7f3ff3('h4',{'className':_0xca7e5b(0x28e),'children':[_0x318c08(_0xca7e5b(0x260),{'children':'🔗'}),'\x20',_0x5824ac['t'](_0xca7e5b(0x2d6))]}),_0x7f3ff3('div',{'className':_0xca7e5b(0x222),'children':[_0x7f3ff3('div',{'className':'univer-space-y-3','children':[_0x318c08('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x5824ac['t'](_0xca7e5b(0x1d8))}),_0x7f3ff3(_0xca7e5b(0x2b4),{'className':'univer-space-y-2','children':[_0x318c08('div',{'className':_0xca7e5b(0x30a),'children':_0x5824ac['t'](_0xca7e5b(0x23a))}),_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x233),'children':[_0x7f3ff3(_0xca7e5b(0x2b4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x318c08(_0xca7e5b(0x260),{'className':_0xca7e5b(0x201),'children':'1'}),_0x5824ac['t'](_0xca7e5b(0x2f8))]}),_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x2fb),'children':[_0x318c08('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x5824ac['t'](_0xca7e5b(0x314))]}),_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x2fb),'children':[_0x318c08(_0xca7e5b(0x260),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x5824ac['t'](_0xca7e5b(0x26b))]})]})]})]}),_0x7f3ff3('div',{'className':_0xca7e5b(0x280),'children':[_0x318c08('div',{'className':_0xca7e5b(0x30a),'children':_0xca7e5b(0x2ad)}),_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x1db),'children':_0x318c08(_0xca7e5b(0x1fc),{'className':_0xca7e5b(0x2f5),'children':JSON[_0xca7e5b(0x1ea)]({'mcpServers':{'univer':{'url':_0xca7e5b(0x239)+(_0x4ae18b||_0xca7e5b(0x20a)),'type':_0xca7e5b(0x28b),'headers':{'Authorization':'Bearer\x20'+(_0x336798||_0xca7e5b(0x1dd))}}}},null,0x2)})})]}),_0x7f3ff3('div',{'className':_0xca7e5b(0x249),'children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x30a),'children':_0x5824ac['t'](_0xca7e5b(0x2d4))}),_0x7f3ff3('div',{'className':'univer-space-y-2','children':[_0x7f3ff3(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x278),'children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x21e)}),_0x7f3ff3(_0xca7e5b(0x2b4),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x318c08(_0xca7e5b(0x2b4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x281),'children':_0x5824ac['t'](_0xca7e5b(0x226))})]})]}),_0x7f3ff3('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x21e)}),_0x7f3ff3('div',{'className':_0xca7e5b(0x2af),'children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x274),'children':_0xca7e5b(0x1c6)}),_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x281),'children':_0x5824ac['t'](_0xca7e5b(0x2d8))})]})]})]})]})]})]}),_0x318c08(_0x598e0c,{'onClick':_0x39d01f,'disabled':!_0x2c45a1||_0x5698d0,'className':_0xca7e5b(0x217),'children':_0x5698d0?_0x7f3ff3('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x318c08(_0xca7e5b(0x260),{'children':'⟲'}),_0x5824ac['t'](_0xca7e5b(0x1cf))]}):_0x7f3ff3(_0xca7e5b(0x260),{'className':_0xca7e5b(0x2fb),'children':[_0x318c08(le,{}),_0x5824ac['t'](_0xca7e5b(0x22e))]})}),_0x318c08('div',{'className':_0xca7e5b(0x1f4),'children':_0x7f3ff3('div',{'className':_0xca7e5b(0x24a),'children':[_0x318c08('span',{'className':_0xca7e5b(0x30f),'children':'💡'}),_0x7f3ff3('div',{'className':_0xca7e5b(0x1d0),'children':[_0x318c08(_0xca7e5b(0x2b4),{'className':_0xca7e5b(0x1d4),'children':'Configuration\x20Notes:'}),_0x7f3ff3('div',{'children':['•',_0x5824ac['t'](_0xca7e5b(0x1e4))]}),_0x7f3ff3(_0xca7e5b(0x2b4),{'children':['•',_0x5824ac['t'](_0xca7e5b(0x2e5))]})]})]})})]})})]});}const y=_0x2769d5(0x2eb),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x2769d5(0x232)],tn=(_0x15dff8,_0xe622b8,_0x37e17e,_0x38d3aa)=>{const _0x342b3e=_0x2769d5;for(var _0x30bcc8=_0x38d3aa>0x1?void 0x0:_0x38d3aa?rn(_0xe622b8,_0x37e17e):_0xe622b8,_0x50e438=_0x15dff8[_0x342b3e(0x316)]-0x1,_0x3cff77;_0x50e438>=0x0;_0x50e438--)(_0x3cff77=_0x15dff8[_0x50e438])&&(_0x30bcc8=_0x3cff77(_0x30bcc8)||_0x30bcc8);return _0x30bcc8;},d=(_0x3a4c3b,_0x28eacf)=>(_0x379735,_0x3919ea)=>_0x28eacf(_0x379735,_0x3919ea,_0x3a4c3b);const U=_0x2769d5(0x23e),L='mcp-config-dialog';let I=class extends _0x3d3fb7{constructor(_0xe8e321,_0x36e0ca,_0x47872b,_0x32e1b5,_0x23e45f,_0x1fdc28,_0x1d348c,_0x2334cd,_0x3d2693,_0x5b958c){const _0x612b46=_0x2769d5;super(),x(this,_0x612b46(0x23c),new _0x2f2d8d(!0x1)),x(this,_0x612b46(0x1e8),new _0x2f2d8d({})),x(this,'_config$',new _0x2f2d8d({})),x(this,_0x612b46(0x2be),new _0x2f2d8d('')),x(this,_0x612b46(0x29d),async _0x2a558d=>{const _0x578930=_0x612b46;var _0x33dba6,_0x4539b4;this[_0x578930(0x23c)][_0x578930(0x258)](!0x0);try{const _0x463d95=await this[_0x578930(0x25f)](_0x2a558d);if(!_0x463d95[_0x578930(0x266)]){this['_messageService'][_0x578930(0x225)]({'type':_0x2548c2[_0x578930(0x252)],'content':_0x463d95[_0x578930(0x306)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x2a558d[_0x578930(0x289)]?await this['_localStorageService']['setItem'](U,_0x2a558d[_0x578930(0x289)][_0x578930(0x1d2)]()):await this[_0x578930(0x2e4)]['removeItem'](U),this['_apiKey$']['next'](((_0x33dba6=_0x2a558d[_0x578930(0x289)])==null?void 0x0:_0x33dba6[_0x578930(0x1d2)]())||''),this[_0x578930(0x1f5)][_0x578930(0x305)]({'Authorization':_0x578930(0x1dc)+((_0x4539b4=_0x2a558d[_0x578930(0x289)])==null?void 0x0:_0x4539b4[_0x578930(0x1d2)]())}),this[_0x578930(0x2cd)][_0x578930(0x225)]({'type':_0x2548c2['Success'],'content':this[_0x578930(0x1d9)]['t'](_0x578930(0x26a))}),setTimeout(()=>{const _0xa7da2a=_0x578930;this['_dialogService'][_0xa7da2a(0x25a)](L);},0x320);}catch(_0x501279){this[_0x578930(0x28d)][_0x578930(0x2ed)](_0x578930(0x22d),_0x501279),this[_0x578930(0x2cd)][_0x578930(0x225)]({'type':_0x2548c2[_0x578930(0x252)],'content':this[_0x578930(0x1d9)]['t'](_0x578930(0x20c))});}finally{this['_loading$'][_0x578930(0x258)](!0x1);}}),(this['_injector']=_0xe8e321,this[_0x612b46(0x2e2)]=_0x36e0ca,this['_configService']=_0x47872b,this[_0x612b46(0x2e4)]=_0x32e1b5,this[_0x612b46(0x285)]=_0x23e45f,this[_0x612b46(0x2cd)]=_0x1fdc28,this[_0x612b46(0x277)]=_0x1d348c,this[_0x612b46(0x1d9)]=_0x2334cd,this['_logService']=_0x3d2693,this[_0x612b46(0x1f5)]=_0x5b958c,this[_0x612b46(0x26c)](),this['_loadStoredApiKey'](),this[_0x612b46(0x223)]());}[_0x2769d5(0x27e)](){const _0x1402c7=_0x2769d5,_0x2f8454=this[_0x1402c7(0x2b6)][_0x1402c7(0x2d7)](y);_0x2f8454!=null&&_0x2f8454[_0x1402c7(0x2b5)]&&this['_dialogService'][_0x1402c7(0x29e)]({'id':L,'title':{'title':this['_localeService']['t'](_0x1402c7(0x2e3))},'children':{'label':_0x1402c7(0x276)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x32a44e=_0x1402c7;this['_dialogService'][_0x32a44e(0x25a)](L);}});}[_0x2769d5(0x200)](){const _0x2c944a=_0x2769d5;return this['_mcpCoreConfig$'][_0x2c944a(0x2a0)];}['_registerComponent'](){const _0x10c725=_0x2769d5;this[_0x10c725(0x2fd)](this[_0x10c725(0x277)][_0x10c725(0x2a6)]('MCPConfigPanel',this[_0x10c725(0x213)]()));}['_createConfigPanelComponent'](){return _0x142cda(()=>{const _0xb6f27d=_0x10e1;var _0xe2caf9,_0x4076d9,_0x773393;return _0x318c08(nn,{'config':this[_0xb6f27d(0x20f)]['value'],'mcpCoreConfig':this[_0xb6f27d(0x1e8)]['value'],'currentApiKey$':this[_0xb6f27d(0x2be)],'onSave':this[_0xb6f27d(0x29d)],'loading':this['_loading$']['value'],'connectionStatus$':(_0xe2caf9=this[_0xb6f27d(0x1f5)])==null?void 0x0:_0xe2caf9[_0xb6f27d(0x244)],'connectionError$':(_0x4076d9=this[_0xb6f27d(0x1f5)])==null?void 0x0:_0x4076d9[_0xb6f27d(0x27f)],'currentSessionId$':(_0x773393=this[_0xb6f27d(0x1f5)])==null?void 0x0:_0x773393[_0xb6f27d(0x2ef)]});},this['_injector']);}[_0x2769d5(0x26c)](){const _0x4b3b56=_0x2769d5;this[_0x4b3b56(0x2fd)](this[_0x4b3b56(0x2b6)][_0x4b3b56(0x205)](_0x1502e5)[_0x4b3b56(0x235)](_0x1112ee=>{const _0x8b28f=_0x4b3b56;this[_0x8b28f(0x1e8)][_0x8b28f(0x258)](_0x1112ee||{});}));const _0x576302=this['_configService'][_0x4b3b56(0x2d7)](_0x1502e5);this['_mcpCoreConfig$'][_0x4b3b56(0x258)](_0x576302||{}),this[_0x4b3b56(0x2fd)](this[_0x4b3b56(0x2b6)][_0x4b3b56(0x205)](y)[_0x4b3b56(0x235)](_0x515c5c=>{const _0x324f83=_0x4b3b56;this[_0x324f83(0x20f)][_0x324f83(0x258)](_0x515c5c||{});}));const _0xba49c8=this['_configService'][_0x4b3b56(0x2d7)](y);this[_0x4b3b56(0x20f)][_0x4b3b56(0x258)](_0xba49c8||{});}async[_0x2769d5(0x255)](){const _0x55b182=_0x2769d5,_0x31c6b5=this[_0x55b182(0x2b6)][_0x55b182(0x2d7)](y);if(!(_0x31c6b5!=null&&_0x31c6b5[_0x55b182(0x2b5)]))return;const _0x464c3d=await this[_0x55b182(0x2e4)][_0x55b182(0x2ac)](U);_0x464c3d&&(this[_0x55b182(0x1f5)][_0x55b182(0x305)]({'Authorization':_0x55b182(0x1dc)+_0x464c3d}),this['_apiKey$'][_0x55b182(0x258)](_0x464c3d));}async[_0x2769d5(0x25f)](_0x3148d2){const _0x3966d6=_0x2769d5;if(!_0x3148d2[_0x3966d6(0x289)]||_0x3148d2[_0x3966d6(0x289)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3966d6(0x1d9)]['t'](_0x3966d6(0x267))};if(_0x3148d2[_0x3966d6(0x289)][_0x3966d6(0x1d2)]()[_0x3966d6(0x316)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x3966d6(0x251))};try{const _0x3bdb64=await this['_injector'][_0x3966d6(0x2fc)](_0x3b6c50)[_0x3966d6(0x23f)](_0x3148d2[_0x3966d6(0x289)][_0x3966d6(0x1d2)]());return _0x3bdb64[_0x3966d6(0x266)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3bdb64[_0x3966d6(0x2ed)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x33da1f){return console[_0x3966d6(0x2cf)](_0x3966d6(0x2c2),_0x33da1f),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4b7a17(_0x421ef2)),d(0x1,_0x1c5d31),d(0x2,_0xee81c0),d(0x3,_0x795f9),d(0x4,_0x417636),d(0x5,_0x2a2fb0),d(0x6,_0x4b7a17(_0x4b5304)),d(0x7,_0x4b7a17(_0x233df5)),d(0x8,_0x1d458a),d(0x9,_0x4b7a17(_0x3b6c50))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0xd160eb[_0x2769d5(0x24f)],'handler':async(_0x57db3f,_0x52d6a8)=>(_0x57db3f[_0x2769d5(0x2fc)](I)[_0x2769d5(0x27e)](),!0x0)};function pe(_0x3094b7,_0x59278c){const _0x31406a=_0x2769d5;switch(_0x3094b7){case _0x1d4de4[_0x31406a(0x1c8)]:return _0x31406a(0x1d3);case _0x1d4de4['CONNECTING']:return _0x31406a(0x2de);case _0x1d4de4[_0x31406a(0x2ea)]:return'mcpStatus.connected';case _0x1d4de4[_0x31406a(0x215)]:switch(_0x59278c){case _0x323128[_0x31406a(0x2db)]:return'mcpStatus.unauthorized';case _0x323128[_0x31406a(0x2b1)]:return _0x31406a(0x221);case _0x323128[_0x31406a(0x271)]:return'mcpStatus.networkError';case _0x323128[_0x31406a(0x2f2)]:return _0x31406a(0x1e1);default:return'mcpStatus.failed';}case _0x1d4de4['RETRYING']:return _0x31406a(0x2e8);default:return _0x31406a(0x212);}}function on(_0x123f4c,_0x55f29f,_0x156123,_0x2a4054=!0x0){const _0x4aa913=_0x2769d5,_0x485b9a=pe(_0x123f4c,_0x55f29f),_0x544084=_0x156123['t'](_0x485b9a);return _0x2a4054?_0x123f4c===_0x1d4de4[_0x4aa913(0x1c8)]&&_0x55f29f===_0x323128['UNAUTHORIZED']?_0x544084+_0x4aa913(0x2dd)+_0x156123['t'](_0x4aa913(0x2b3)):_0x123f4c===_0x1d4de4[_0x4aa913(0x2ea)]?''+_0x544084:_0x123f4c===_0x1d4de4[_0x4aa913(0x1c8)]||_0x123f4c===_0x1d4de4['FAILED']?_0x544084+'\x20-\x20'+_0x156123['t']('mcpStatus.clickToConnect'):_0x544084:_0x544084;}function sn(_0x392754){const _0x524dc5=_0x2769d5;switch(_0x392754){case _0x1d4de4[_0x524dc5(0x2ea)]:return'univer-text-green-500';case _0x1d4de4[_0x524dc5(0x243)]:case _0x1d4de4[_0x524dc5(0x2ff)]:return _0x524dc5(0x2f4);case _0x1d4de4['FAILED']:case _0x1d4de4[_0x524dc5(0x1c8)]:return _0x524dc5(0x1fa);default:return _0x524dc5(0x21b);}}function cn(_0x402636){const _0xf80999=_0x2769d5,{status$:_0xed0ece,error$:_0x3ac864,onConfigure:_0x204028,showClickable:_0x50f9c6=!0x0}=_0x402636,_0xd7af46=_0x4603d5(_0xed0ece,_0x1d4de4[_0xf80999(0x1c8)]),_0x3de9f5=_0x4603d5(_0x3ac864,_0x323128[_0xf80999(0x1df)]),_0x137c4f=_0x4d60eb(_0x233df5),_0x3a553f=_0xd7af46===_0x1d4de4[_0xf80999(0x2ea)];_0xd7af46===_0x1d4de4[_0xf80999(0x243)]||_0x1d4de4[_0xf80999(0x2ff)];const _0x12798c=_0x137c4f['t'](pe(_0xd7af46,_0x3de9f5)),_0x3ef30c=on(_0xd7af46,_0x3de9f5,_0x137c4f,_0x50f9c6),_0x3158ef=sn(_0xd7af46),_0x38e686=_0x3a553f?_0x318c08(ge,{}):_0x318c08(de,{}),_0x1faf84=_0x1b2b1f(()=>{_0x50f9c6&&_0x204028&&_0x204028();},[_0x50f9c6,_0x204028]);function _0x4dafcd(){const _0x442585=_0xf80999;return _0x7f3ff3(_0x442585(0x2b4),{'className':_0x40786a(_0x442585(0x2a4),_0x50f9c6&&_0x204028&&'\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':_0x442585(0x310),'onClick':_0x50f9c6&&_0x204028?_0x1faf84:void 0x0,'children':[_0x318c08(_0x442585(0x2b4),{'className':_0x40786a(_0x442585(0x301),_0x3158ef),'children':_0x38e686}),_0x318c08(_0x442585(0x2b4),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x12798c})]});}return _0x318c08(_0x4febfc,{'title':_0x3ef30c,'placement':'bottom','children':_0x4dafcd()});}var an=Object[_0x2769d5(0x232)],ln=(_0x35cbf0,_0x1bc337,_0x130e60,_0x537c94)=>{const _0x21650b=_0x2769d5;for(var _0x3742be=_0x537c94>0x1?void 0x0:_0x537c94?an(_0x1bc337,_0x130e60):_0x1bc337,_0x44ebb7=_0x35cbf0[_0x21650b(0x316)]-0x1,_0xb55f2a;_0x44ebb7>=0x0;_0x44ebb7--)(_0xb55f2a=_0x35cbf0[_0x44ebb7])&&(_0x3742be=_0xb55f2a(_0x3742be)||_0x3742be);return _0x3742be;},M=(_0x3fd124,_0x3ff37c)=>(_0xaf11f7,_0xa5143b)=>_0x3ff37c(_0xaf11f7,_0xa5143b,_0x3fd124);let O=class extends _0x3d3fb7{constructor(_0x75e434,_0x4ef6a4,_0x406887,_0x3d867e){const _0x9f8451=_0x2769d5;super(),this[_0x9f8451(0x229)]=_0x75e434,this[_0x9f8451(0x216)]=_0x4ef6a4,this['_uiPartsService']=_0x406887,this[_0x9f8451(0x2b6)]=_0x3d867e,this[_0x9f8451(0x1cc)](),this[_0x9f8451(0x27b)]();}['_initAutoConnect'](){const _0x4a151f=_0x2769d5,_0x2fcc66=this[_0x4a151f(0x2b6)]['getConfig'](y);_0x2fcc66!=null&&_0x2fcc66['showDeveloperTools']&&(this[_0x4a151f(0x216)][_0x4a151f(0x1d6)]=!0x1);}[_0x2769d5(0x27b)](){const _0x397e7c=_0x2769d5,_0x4733ee=this['_configService']['getConfig'](y);(_0x4733ee==null?void 0x0:_0x4733ee[_0x397e7c(0x25d)])!==!0x1&&this[_0x397e7c(0x2fd)](this['_uiPartsService'][_0x397e7c(0x1f1)](_0x3b5bbf['HEADER_MENU'],()=>{const _0x6281c0=_0x397e7c;var _0x169728;return _0x142cda(un({'status$':this['_connectionController'][_0x6281c0(0x244)],'error$':this[_0x6281c0(0x216)][_0x6281c0(0x27f)],'onConfigure':()=>this[_0x6281c0(0x317)](),'showClickable':(_0x169728=_0x4733ee==null?void 0x0:_0x4733ee['showDeveloperTools'])!=null?_0x169728:!0x1}),this[_0x6281c0(0x229)]);}));}[_0x2769d5(0x317)](){const _0x47879d=_0x2769d5;this[_0x47879d(0x229)]['get'](I)[_0x47879d(0x27e)]();}};O=ln([M(0x0,_0x4b7a17(_0x421ef2)),M(0x1,_0x4b7a17(_0x3b6c50)),M(0x2,_0x1c5d31),M(0x3,_0xee81c0)],O);function un(_0x263541){const {status$:_0x26150b,error$:_0x3a501f,onConfigure:_0x5a13cb,showClickable:_0x1ce5e5}=_0x263541;return function(){return _0x318c08(cn,{'status$':_0x26150b,'error$':_0x3a501f,'onConfigure':_0x5a13cb,'showClickable':_0x1ce5e5});};}function vn(_0x3fd738){const _0x5ac198=_0x2769d5;return{'id':V['id'],'type':_0xe1ffbe[_0x5ac198(0x2ca)],'icon':'MenuIcon','title':_0x5ac198(0x2e3),'tooltip':_0x5ac198(0x2e3)};}const dn={[_0xb6b573[_0x2769d5(0x2bb)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x2769d5(0x232)],pn=(_0x30afba,_0x5885a7,_0x37535f,_0x3b2717)=>{const _0x1e83da=_0x2769d5;for(var _0x1f5b20=_0x3b2717>0x1?void 0x0:_0x3b2717?gn(_0x5885a7,_0x37535f):_0x5885a7,_0x34bfc1=_0x30afba[_0x1e83da(0x316)]-0x1,_0x5c6375;_0x34bfc1>=0x0;_0x34bfc1--)(_0x5c6375=_0x30afba[_0x34bfc1])&&(_0x1f5b20=_0x5c6375(_0x1f5b20)||_0x1f5b20);return _0x1f5b20;},re=(_0x1e3022,_0x93c7e4)=>(_0x320edc,_0x46eafd)=>_0x93c7e4(_0x320edc,_0x46eafd,_0x1e3022);let D=class extends _0x3d3fb7{constructor(_0x2bc068,_0xf6afa5){const _0x3671f9=_0x2769d5;super(),this[_0x3671f9(0x282)]=_0x2bc068,this['_menuManagerService']=_0xf6afa5,this[_0x3671f9(0x2e6)](),this['_initializeMenus']();}[_0x2769d5(0x2e6)](){const _0x515029=_0x2769d5;[V][_0x515029(0x27a)](_0x433cdb=>{const _0x13b62e=_0x515029;this[_0x13b62e(0x2fd)](this[_0x13b62e(0x282)][_0x13b62e(0x283)](_0x433cdb));});}[_0x2769d5(0x257)](){const _0x1aa5e2=_0x2769d5;this[_0x1aa5e2(0x24e)][_0x1aa5e2(0x29a)](dn);}};function _0x10e1(_0x93342b,_0x377064){const _0x3190fc=_0x3190();return _0x10e1=function(_0x10e1f5,_0x25ab29){_0x10e1f5=_0x10e1f5-0x1c6;let _0x19e8e9=_0x3190fc[_0x10e1f5];return _0x19e8e9;},_0x10e1(_0x93342b,_0x377064);}D=pn([re(0x0,_0x36bc7c),re(0x1,_0x54b291)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2769d5(0x2bd),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x2769d5(0x1e0),'unknown':_0x2769d5(0x22b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2769d5(0x2ee),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2769d5(0x303),'clickToConnect':_0x2769d5(0x2cc),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2769d5(0x2ad),'description':_0x2769d5(0x2d0),'apiKey':_0x2769d5(0x269),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2769d5(0x2a2),'enableAuth':_0x2769d5(0x2a5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2769d5(0x210),'mcpClientConfig':_0x2769d5(0x210),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2769d5(0x2a1),'configStep1':_0x2769d5(0x1ed),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2769d5(0x231),'sessionId':_0x2769d5(0x28a),'sessionIdDescription':_0x2769d5(0x2a3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2769d5(0x1ec),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2769d5(0x2b0),'note1':_0x2769d5(0x237),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2769d5(0x203),'configError':_0x2769d5(0x234),'apiApplyInfo':{'title':_0x2769d5(0x2f6),'description':_0x2769d5(0x2f0),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2769d5(0x291),'apiKeyTooShort':_0x2769d5(0x2fe),'invalidConfig':_0x2769d5(0x293),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x2769d5(0x1da),'failed':_0x2769d5(0x256),'retrying':_0x2769d5(0x2b8)},'connectionError':{'unauthorized':_0x2769d5(0x2f1),'sessionOccupied':_0x2769d5(0x2c5),'networkError':_0x2769d5(0x2e9),'maxRetriesExceeded':_0x2769d5(0x1e2)}}},An={'mcpStatus':{'disconnected':_0x2769d5(0x22f),'connecting':_0x2769d5(0x288),'connected':_0x2769d5(0x2fa),'failed':_0x2769d5(0x313),'retrying':'MCP\x20重连中...','unknown':_0x2769d5(0x275),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x2769d5(0x230),'maxRetriesExceeded':_0x2769d5(0x21d),'clickToConnect':_0x2769d5(0x1f2),'clickToConfigure':_0x2769d5(0x2b9)},'mcpConfig':{'title':_0x2769d5(0x204),'description':_0x2769d5(0x268),'apiKey':_0x2769d5(0x287),'apiKeyPlaceholder':_0x2769d5(0x209),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x2769d5(0x1ff),'enableAuthHint':_0x2769d5(0x2ba),'connectionInfo':_0x2769d5(0x294),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x2769d5(0x214),'configStep1':_0x2769d5(0x1d7),'configStep2':_0x2769d5(0x25b),'configStep3':_0x2769d5(0x2bc),'sessionId':_0x2769d5(0x2f7),'sessionIdDescription':_0x2769d5(0x1fb),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x2769d5(0x297),'maxRetries':_0x2769d5(0x24b),'save':_0x2769d5(0x254),'saving':_0x2769d5(0x261),'note1':_0x2769d5(0x27c),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x2769d5(0x238),'configError':_0x2769d5(0x208),'apiApplyInfo':{'title':_0x2769d5(0x2bf),'description':_0x2769d5(0x2a8),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x2769d5(0x286)},'validation':{'apiKeyRequired':_0x2769d5(0x30e),'apiKeyTooShort':_0x2769d5(0x30b),'invalidConfig':_0x2769d5(0x2b2),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x2769d5(0x211),'connecting':_0x2769d5(0x2ec),'connected':'已连接','failed':_0x2769d5(0x2d5),'retrying':_0x2769d5(0x1ef)},'connectionError':{'unauthorized':_0x2769d5(0x246),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x2769d5(0x265),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x2769d5(0x1e5)],hn=Object[_0x2769d5(0x232)],Cn=(_0x380276,_0x3be217,_0x545c7f)=>_0x3be217 in _0x380276?fn(_0x380276,_0x3be217,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x545c7f}):_0x380276[_0x3be217]=_0x545c7f,mn=(_0x2ef1dd,_0x2ceecd,_0x292dd9,_0x199ea0)=>{const _0x1c68f1=_0x2769d5;for(var _0x2f7625=_0x199ea0>0x1?void 0x0:_0x199ea0?hn(_0x2ceecd,_0x292dd9):_0x2ceecd,_0x30ddda=_0x2ef1dd[_0x1c68f1(0x316)]-0x1,_0x2aefd0;_0x30ddda>=0x0;_0x30ddda--)(_0x2aefd0=_0x2ef1dd[_0x30ddda])&&(_0x2f7625=_0x2aefd0(_0x2f7625)||_0x2f7625);return _0x2f7625;},P=(_0x536dc7,_0x50469b)=>(_0x36032d,_0x4b659c)=>_0x50469b(_0x36032d,_0x4b659c,_0x536dc7),_n=(_0xd65554,_0x23b773,_0x518285)=>Cn(_0xd65554,_0x23b773+'',_0x518285);let j=class extends _0x54c9f4{constructor(_0x549df8=ie,_0x314ccd,_0x4e7745,_0x2db093,_0x20cfb5,_0x4f2716){const _0x2b0386=_0x2769d5;super(),this[_0x2b0386(0x25c)]=_0x549df8,this[_0x2b0386(0x229)]=_0x314ccd,this['_configService']=_0x4e7745,this[_0x2b0386(0x2e2)]=_0x2db093,this[_0x2b0386(0x2e4)]=_0x20cfb5,this['_localeService']=_0x4f2716;const {..._0x901d70}=_0x2a82b6({},ie,this[_0x2b0386(0x25c)]);this[_0x2b0386(0x2b6)]['setConfig'](y,_0x901d70);}async[_0x2769d5(0x2e0)](){const _0x42ad10=_0x2769d5,_0x452ccb=[[O],[I],[D]];this['_injector'][_0x42ad10(0x28c)](_0x56b0af)||_0x452ccb[_0x42ad10(0x1c7)]([_0x56b0af,{'useClass':_0x367e96}]),_0x452ccb[_0x42ad10(0x27a)](_0x3f5ed5=>this[_0x42ad10(0x229)][_0x42ad10(0x300)](_0x3f5ed5)),this[_0x42ad10(0x229)]['get'](O),this[_0x42ad10(0x229)]['get'](I),this[_0x42ad10(0x229)][_0x42ad10(0x2fc)](D);}};_n(j,'pluginName',_0x2769d5(0x24c)),j=mn([_0x4a5a48(_0x695d2d),P(0x1,_0x4b7a17(_0x421ef2)),P(0x2,_0xee81c0),P(0x3,_0x1c5d31),P(0x4,_0x795f9),P(0x5,_0x4b7a17(_0x233df5))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x5ed51e=_0x26ba;(function(_0x218726,_0x1e975b){const _0x4e23b8=_0x26ba,_0x526b83=_0x218726();while(!![]){try{const _0x541d9a=parseInt(_0x4e23b8(0x1ba))/0x1*(-parseInt(_0x4e23b8(0x1e5))/0x2)+parseInt(_0x4e23b8(0x19f))/0x3*(parseInt(_0x4e23b8(0x264))/0x4)+-parseInt(_0x4e23b8(0x287))/0x5*(parseInt(_0x4e23b8(0x23f))/0x6)+parseInt(_0x4e23b8(0x267))/0x7+-parseInt(_0x4e23b8(0x1dc))/0x8*(-parseInt(_0x4e23b8(0x1a7))/0x9)+parseInt(_0x4e23b8(0x17d))/0xa*(parseInt(_0x4e23b8(0x28c))/0xb)+-parseInt(_0x4e23b8(0x1ae))/0xc;if(_0x541d9a===_0x1e975b)break;else _0x526b83['push'](_0x526b83['shift']());}catch(_0x437dd0){_0x526b83['push'](_0x526b83['shift']());}}}(_0x26d0,0x2b518));var Pe=Object[_0x5ed51e(0x22a)],Ee=(_0x11bdb0,_0x12fb24,_0x413a8f)=>_0x12fb24 in _0x11bdb0?Pe(_0x11bdb0,_0x12fb24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413a8f}):_0x11bdb0[_0x12fb24]=_0x413a8f,x=(_0x13cea0,_0x47f5d6,_0x51e3f6)=>Ee(_0x13cea0,typeof _0x47f5d6!=_0x5ed51e(0x1de)?_0x47f5d6+'':_0x47f5d6,_0x51e3f6);import{LocaleService as _0x444c96,Inject as _0x985524,Injector as _0x1e8295,IConfigService as _0x416ca4,ILocalStorageService as _0xd1378d,ILogService as _0x2991f1,Disposable as _0x2bae7f,CommandType as _0x413bb0,ICommandService as _0x15708a,DependentOn as _0x652699,Plugin as _0x30a094,merge as _0x3f7f0f}from'@univerjs/core';import{jsxs as _0x12850e,jsx as _0x3294b1}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5bdbeb,MCPConnectionError as _0x1541ac,MCPConnectionController as _0x425719,MCP_PLUGIN_CONFIG_KEY as _0x4c0acf,UniverMCPPlugin as _0x2887ba}from'@univerjs-pro/mcp';import{clsx as _0x1b93b5,Input as _0x143463,Button as _0x509b67,MessageType as _0x405837,Tooltip as _0x6255f7}from'@univerjs/design';import{useDependency as _0x5c2bc6,useObservable as _0x1569a2,IUIPartsService as _0x22208f,IDialogService as _0x572193,IMessageService as _0x1eb474,ComponentManager as _0x10d7b1,connectInjector as _0x54da21,BuiltInUIPart as _0x53de30,MenuItemType as _0x15f919,RibbonStartGroup as _0x17dab4,IMenuManagerService as _0x8782b1}from'@univerjs/ui';import{BehaviorSubject as _0x4e37a6}from'rxjs';import{useRef as _0x112c16,createElement as _0x549334,forwardRef as _0x134ec4,useState as _0x30910c,useCallback as _0x5f3e9a}from'react';import{ISocketService as _0x5ba078,WebSocketService as _0x7684a5}from'@univerjs/network';function b({ref:_0x1f531d,..._0x4065ae}){const _0x4c5292=_0x5ed51e,{icon:_0x370a1e,id:_0x49799a,className:_0x339fa3,extend:_0x24da97,..._0x5d6e0e}=_0x4065ae,_0x5a7b19=('univerjs-icon\x20univerjs-icon-'+_0x49799a+'\x20'+(_0x339fa3||''))[_0x4c5292(0x206)](),_0x63e843=_0x112c16('_'+We());return ae(_0x370a1e,''+_0x49799a,{'defIds':_0x370a1e['defIds'],'idSuffix':_0x63e843['current']},{'ref':_0x1f531d,'className':_0x5a7b19,..._0x5d6e0e},_0x24da97);}function ae(_0x5b24ac,_0x11cb7a,_0x4d0a4f,_0xa0c62f,_0x46e2c2){const _0x24307b=_0x5ed51e;return _0x549334(_0x5b24ac[_0x24307b(0x20c)],{'key':_0x11cb7a,...Ye(_0x5b24ac,_0x4d0a4f,_0x46e2c2),..._0xa0c62f},(Ze(_0x5b24ac,_0x4d0a4f)['children']||[])[_0x24307b(0x239)]((_0x5e1137,_0x28856d)=>ae(_0x5e1137,_0x11cb7a+'-'+_0x5b24ac[_0x24307b(0x20c)]+'-'+_0x28856d,_0x4d0a4f,void 0x0,_0x46e2c2)));}function _0x26d0(){const _0x2ad1d5=['fill','Enter\x20your\x20API\x20key','mcp-ui.command.openConfigPanel','MCP:\x20Unauthorized','connectionStatus$','<SESSION_ID>','Disconnected','_apiKey$','_createConfigPanelComponent','univer-text-sm\x20univer-font-medium','MCP:\x20Max\x20Retries\x20Exceeded','univer-flex\x20univer-gap-3','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-blue-600','mcpStatus.connected','M0\x200H16V16H0z','Univer\x20AI\x20Console','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.connectionError.unauthorized','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loadStoredApiKey','mcpConfig.configStep3','10ZkaZAn','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','配置保存失败','mcpStatus.disconnected','show','url(#$1','on-line-icon','children','univer-flex-1','mcpConfig.apiKeyPlaceholder','MCPConfigPanel','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','_handleConfigure','UniverIcon','mcpConfig.note1','attrs','Saving...','setItem','mcpConfig.connectionStatus.connecting','univer-bg-green-500','url(#on-line-icon_clip0_910_349)','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','NETWORK_ERROR','Enable\x20authentication\x20for\x20secure\x20connections','push','_validateConfig','round','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','use','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.note2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.apiKeyHint','_registerComponent','219873YFUvoq','_initAutoConnect','idSuffix','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mergeMenu','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','CONNECTING','_initializeCommands','49581bcpqPM','univer-space-y-2','string','MCP\x20Connecting...','_uiPartsService','NONE','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','1630188ViFLHO','get','univer-text-green-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','button','defs','配置更改将立即生效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_logService','noopener\x20noreferrer','path','85139qAMBWm','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','SESSION_ID_OCCUPIED','\x20-\x20','<API_KEY>','_mcpCoreConfig$','connectionError$','1em','_localStorageService','replace','error','API\x20密钥无效,请检查密钥是否正确','text','warn','_configService','MCP:\x20网络错误','univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20超出最大重试次数','span','请输入您的\x20API\x20密钥','mcpStatus.sessionOccupied','Retrying...','Authorization:','sessionId$','off-line-icon_clip0_910_343','random','univer-space-y-5','mcpConfig.configStepTitle','mcpStatus.maxRetriesExceeded','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','off-line-icon','56uERncw','mcpStatus.connecting','symbol','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','errorMessage','mcpConfig.save','UNAUTHORIZED','close-icon','超出最大重试次数,请稍后再试','2NPDhWN','univer-text-yellow-500','univer-bg-red-500','您的\x20API\x20密钥安全存储在本地存储中','subscribe','Invalid\x20configuration','univer-mr-2\x20univer-flex\x20univer-text-xl','RETRYING','stringify','label','mcpConfig.connectionStatus.disconnected','_initStatusComponent','http','currentColor','entries','univer-shrink-0\x20univer-text-red-500','Get\x20your\x20API\x20key\x20in\x20seconds','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','_blank','apiKey','subscribeConfigValue$','mcpConfig.apiApplyInfo.getStarted','未连接','_mcpConnectionController','OTHERS','getCurrentConfig','mcpConfig.connectionStatus.failed','mask','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.authorizationDescription','重启您的\x20MCP\x20客户端以使配置生效','Max\x20Retries','网络连接错误,请检查您的网络连接','trim','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Configuration','univer-size-4','univer-bg-blue-500','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','tag','MCP:\x20Network\x20Error','mcpConfig.validation.invalidConfig','mcpConfig.configParameters','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-text-xs\x20univer-text-gray-600','_connectionController','univer-bg-gray-500','mcpConfig.sessionIdDescription','mcpConfig.configSaved','close','API\x20key\x20is\x20required','MCP\x20已断开','div','mcpStatus.unknown','includes','substring','evenodd','您的\x20API\x20密钥将在此浏览器中本地存储','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','已连接','\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','带有\x20Bearer\x20前缀的\x20API\x20密钥。','会话ID','最大重试次数','mcpConfig.configStep1','univer-flex\x20univer-items-center\x20univer-gap-2','_messageService','OnLineIcon','保存中...','defineProperty','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','white','Configuration\x20saved\x20successfully','mcpConfig.configError','_initConfigSync','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpStatus.networkError','OffLineIcon','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-gray-500','MCP\x20Connected','0\x200\x2016\x2016','getOwnPropertyDescriptor','CONNECTED','map','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','连接中...','API\x20Key','mcp-ui.config','4062QyIGZr','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','CheckMarkIcon','MCP\x20Client\x20Configuration','几秒钟内获取您的\x20API\x20密钥','启用身份验证以获得安全连接','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20状态未知','mcpConfig.validation.apiKeyTooShort','BUTTON','配置保存成功','univer-flex\x20univer-items-center','_initializeMenus','univer-space-y-4','MCP:\x20未授权','enableAutoConnect','_injector','Connected','disposeWithMe','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-flex\x20univer-items-start\x20univer-gap-3','MCP\x20客户端配置','registerComponent','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','mcpServerUrl','MCP\x20配置','forEach','mcpConfig.configInstructions','univer-text-red-500','Enable\x20Authentication','MCP\x20已连接','DISCONNECTED','mcpConfig.apiKey','_commandService','removeItem','mcpConfig.title','8oTKPbL','univer-font-medium','_localeService','1754732Hawrjy','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','0\x200\x2017\x2016','MCP\x20连接失败','pre','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','none','assign','svg','length','showStatus','配置步骤:','has','univer_session_id:','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','pluginName','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','colorChannel1','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','https://console.univer.ai','Error','mcp.apiKey','_config','_config$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','validateApiKey','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','__setCustomHeaders','showConfigPanel','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-text-white','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','415SQEJyf','_dialogService','registerCommand','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','206690TwsinZ','Configuration\x20Steps:','重连中...','open','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MAX_RETRIES_EXCEEDED','会话\x20ID\x20已被占用,请稍后再试','isValid','https://console.univer.plus','univer-shrink-0\x20univer-text-blue-500','univer.plus','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-3','点击连接\x20MCP','univer-min-w-0\x20univer-flex-1','next','getConfig','FAILED','mcpConfig.configStep2','_menuManagerService','add','MCP\x20Unknown\x20Status','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','on-line-icon_clip0_910_349','mcpStatus.unauthorized','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','mcpConfig.connectionStatus.retrying','toString','_loading$','Univer\x20AI\x20控制台','xlink:href','配置无效','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20Disconnected','value','univer.ai','MCP\x20Connection\x20Failed','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.failed','clipPath','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','权限验证失败,请检查您的\x20API\x20密钥','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','连接失败','http://www.w3.org/2000/svg','mcpConfig.apiApplyInfo.title','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','API\x20密钥','univer-text-sm\x20univer-text-gray-500','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','displayName','COMMAND','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below','_componentManager','HEADER_MENU','showDeveloperTools','help-icon'];_0x26d0=function(){return _0x2ad1d5;};return _0x26d0();}function Ye(_0x5c8e7a,_0x3ccd91,_0x1e4a7c){const _0x2bf091=_0x5ed51e,_0x31720d={..._0x5c8e7a[_0x2bf091(0x18c)]};_0x1e4a7c!=null&&_0x1e4a7c[_0x2bf091(0x278)]&&_0x31720d[_0x2bf091(0x2c8)]===_0x2bf091(0x278)&&(_0x31720d[_0x2bf091(0x2c8)]=_0x1e4a7c['colorChannel1']),_0x5c8e7a[_0x2bf091(0x20c)]==='mask'&&_0x31720d['id']&&(_0x31720d['id']=_0x31720d['id']+_0x3ccd91[_0x2bf091(0x1a1)]),Object[_0x2bf091(0x1f3)](_0x31720d)[_0x2bf091(0x25a)](([_0x4638da,_0x31dc57])=>{const _0x1f6c3e=_0x2bf091;_0x4638da===_0x1f6c3e(0x200)&&typeof _0x31dc57==_0x1f6c3e(0x1a9)&&(_0x31720d[_0x4638da]=_0x31dc57[_0x1f6c3e(0x1c3)](/url\(#(.*)\)/,_0x1f6c3e(0x182)+_0x3ccd91[_0x1f6c3e(0x1a1)]+')'));});const {defIds:_0x389a41}=_0x3ccd91;return!_0x389a41||_0x389a41['length']===0x0||(_0x5c8e7a['tag']===_0x2bf091(0x199)&&_0x31720d[_0x2bf091(0x2aa)]&&(_0x31720d[_0x2bf091(0x2aa)]=_0x31720d['xlink:href']+_0x3ccd91[_0x2bf091(0x1a1)]),Object[_0x2bf091(0x1f3)](_0x31720d)['forEach'](([_0x508978,_0x17b1a7])=>{const _0x20275a=_0x2bf091;typeof _0x17b1a7=='string'&&(_0x31720d[_0x508978]=_0x17b1a7['replace'](/url\(#(.*)\)/,_0x20275a(0x182)+_0x3ccd91[_0x20275a(0x1a1)]+')'));})),_0x31720d;}function Ze(_0x5e92cc,_0xc4afed){const _0x3639fd=_0x5ed51e;var _0x871998;const {defIds:_0x201b97}=_0xc4afed;return!_0x201b97||_0x201b97[_0x3639fd(0x270)]===0x0?_0x5e92cc:_0x5e92cc[_0x3639fd(0x20c)]==='defs'&&((_0x871998=_0x5e92cc[_0x3639fd(0x184)])!=null&&_0x871998[_0x3639fd(0x270)])?{..._0x5e92cc,'children':_0x5e92cc[_0x3639fd(0x184)][_0x3639fd(0x239)](_0x116ba2=>typeof _0x116ba2[_0x3639fd(0x18c)]['id']==_0x3639fd(0x1a9)&&_0x201b97&&_0x201b97[_0x3639fd(0x21b)](_0x116ba2[_0x3639fd(0x18c)]['id'])?{..._0x116ba2,'attrs':{..._0x116ba2[_0x3639fd(0x18c)],'id':_0x116ba2['attrs']['id']+_0xc4afed[_0x3639fd(0x1a1)]}}:_0x116ba2)}:_0x5e92cc;}function We(){const _0x10a84a=_0x5ed51e;return Math[_0x10a84a(0x1d6)]()[_0x10a84a(0x2a7)](0x24)[_0x10a84a(0x21c)](0x2,0x8);}b[_0x5ed51e(0x2bf)]=_0x5ed51e(0x18a);const qe={'tag':_0x5ed51e(0x26f),'attrs':{'xmlns':_0x5ed51e(0x2b9),'fill':_0x5ed51e(0x26d),'viewBox':'0\x200\x2016\x2016','width':_0x5ed51e(0x1c1),'height':'1em'},'children':[{'tag':_0x5ed51e(0x1b9),'attrs':{'fill':_0x5ed51e(0x1f2),'d':_0x5ed51e(0x1da),'fillRule':'evenodd','clipRule':_0x5ed51e(0x21d)}}]},le=_0x134ec4(function(_0x58688e,_0x55583c){const _0x218386=_0x5ed51e;return _0x549334(b,Object[_0x218386(0x26e)]({},_0x58688e,{'id':'check-mark-icon','ref':_0x55583c,'icon':qe}));});le[_0x5ed51e(0x2bf)]=_0x5ed51e(0x241);const Xe={'tag':_0x5ed51e(0x26f),'attrs':{'xmlns':_0x5ed51e(0x2b9),'fill':_0x5ed51e(0x26d),'viewBox':'0\x200\x2016\x2016','width':_0x5ed51e(0x1c1),'height':_0x5ed51e(0x1c1)},'children':[{'tag':_0x5ed51e(0x1b9),'attrs':{'fill':_0x5ed51e(0x1f2),'d':_0x5ed51e(0x252)}}]},ue=_0x134ec4(function(_0x3b70cf,_0x346d57){const _0x2e8928=_0x5ed51e;return _0x549334(b,Object[_0x2e8928(0x26e)]({},_0x3b70cf,{'id':_0x2e8928(0x1e3),'ref':_0x346d57,'icon':Xe}));});ue[_0x5ed51e(0x2bf)]='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5ed51e(0x26d),'viewBox':_0x5ed51e(0x236),'width':_0x5ed51e(0x1c1),'height':'1em'},'children':[{'tag':_0x5ed51e(0x1b9),'attrs':{'fill':_0x5ed51e(0x1f2),'d':_0x5ed51e(0x1f6)}},{'tag':_0x5ed51e(0x1b9),'attrs':{'fill':'currentColor','d':_0x5ed51e(0x275)}},{'tag':_0x5ed51e(0x1b9),'attrs':{'fill':'currentColor','d':_0x5ed51e(0x1bb),'fillRule':_0x5ed51e(0x21d),'clipRule':_0x5ed51e(0x21d)}}]},ve=_0x134ec4(function(_0x53af3b,_0x55d54d){const _0x2c3440=_0x5ed51e;return _0x549334(b,Object[_0x2c3440(0x26e)]({},_0x53af3b,{'id':_0x2c3440(0x2c7),'ref':_0x55d54d,'icon':Je}));});ve[_0x5ed51e(0x2bf)]='HelpIcon';const Qe={'tag':'svg','attrs':{'xmlns':_0x5ed51e(0x2b9),'fill':_0x5ed51e(0x26d),'viewBox':_0x5ed51e(0x236),'width':_0x5ed51e(0x1c1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5ed51e(0x1b9),'attrs':{'stroke':_0x5ed51e(0x1f2),'d':_0x5ed51e(0x284),'strokeLinecap':_0x5ed51e(0x197),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5ed51e(0x2b3),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5ed51e(0x1b9),'attrs':{'fill':_0x5ed51e(0x22c),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5ed51e(0x1d5)]},de=_0x134ec4(function(_0x532f06,_0x28a40d){const _0x3a044f=_0x5ed51e;return _0x549334(b,Object[_0x3a044f(0x26e)]({},_0x532f06,{'id':_0x3a044f(0x1db),'ref':_0x28a40d,'icon':Qe}));});de['displayName']=_0x5ed51e(0x232);const en={'tag':_0x5ed51e(0x26f),'attrs':{'xmlns':_0x5ed51e(0x2b9),'fill':_0x5ed51e(0x26d),'viewBox':_0x5ed51e(0x269),'width':_0x5ed51e(0x1c1),'height':_0x5ed51e(0x1c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x5ed51e(0x191)},'children':[{'tag':_0x5ed51e(0x1b9),'attrs':{'stroke':_0x5ed51e(0x1f2),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5ed51e(0x197),'strokeLinejoin':_0x5ed51e(0x197),'strokeWidth':1.2}}]},{'tag':_0x5ed51e(0x1b3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5ed51e(0x2a3)},'children':[{'tag':_0x5ed51e(0x1b9),'attrs':{'fill':_0x5ed51e(0x22c),'d':_0x5ed51e(0x175),'transform':'translate(.97)'}}]}]}],'defIds':[_0x5ed51e(0x2a3)]},ge=_0x134ec4(function(_0x1e4ca8,_0x572b11){const _0x5d43cf=_0x5ed51e;return _0x549334(b,Object[_0x5d43cf(0x26e)]({},_0x1e4ca8,{'id':_0x5d43cf(0x183),'ref':_0x572b11,'icon':en}));});ge[_0x5ed51e(0x2bf)]=_0x5ed51e(0x228);function nn(_0x1621bb){const _0x53fb02=_0x5ed51e;var _0x1a2f2c,_0x29fe59;const {mcpCoreConfig:_0x59f300,onSave:_0xe5f391,loading:_0x12b62a=!0x1,config:_0x20e3f1,connectionStatus$:_0x465e15,connectionError$:_0x530eaa,currentApiKey$:_0x2d4175,currentSessionId$:_0x402648}=_0x1621bb,_0x45a479=_0x5c2bc6(_0x444c96),_0x4ac475=_0x1569a2(_0x465e15,_0x5bdbeb[_0x53fb02(0x25f)]),_0x39e735=_0x1569a2(_0x530eaa,_0x1541ac['NONE']),_0x5e420f=_0x1569a2(_0x402648,''),_0x134226=_0x1569a2(_0x2d4175,''),[_0x3c801b,_0x77fa7f]=_0x30910c(_0x134226||''),_0x4ba346=!0x0,_0x596f48=_0x20e3f1[_0x53fb02(0x2c6)]&&_0x59f300[_0x53fb02(0x258)]&&(_0x59f300[_0x53fb02(0x258)][_0x53fb02(0x21b)](_0x53fb02(0x296))||_0x59f300[_0x53fb02(0x258)][_0x53fb02(0x21b)](_0x53fb02(0x2af))),_0x53915d=(_0x1a2f2c=_0x59f300[_0x53fb02(0x258)])==null?void 0x0:_0x1a2f2c['includes']('univer.plus'),_0x231a6e=(_0x29fe59=_0x59f300[_0x53fb02(0x258)])==null?void 0x0:_0x29fe59[_0x53fb02(0x21b)](_0x53fb02(0x2af)),_0x6c704e=_0x53915d?_0x53fb02(0x294):_0x53fb02(0x27a),_0x3326a1=_0x20e3f1[_0x53fb02(0x2c6)]&&(_0x53915d||_0x231a6e),[_0x2b5865,_0xdbbd89]=_0x30910c(!_0x3c801b[_0x53fb02(0x206)]()),_0x22074d=(_0x5308ef,_0x1bd4c1)=>{const _0x300862=_0x53fb02;if(_0x1bd4c1===_0x1541ac[_0x300862(0x1e2)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5308ef){case _0x5bdbeb['CONNECTED']:return _0x300862(0x1ad);case _0x5bdbeb[_0x300862(0x1a5)]:case _0x5bdbeb['RETRYING']:return _0x300862(0x268);case _0x5bdbeb[_0x300862(0x29d)]:return _0x300862(0x19a);default:return _0x300862(0x19c);}},_0x209cd3=(_0x4688f0,_0x216cc2)=>{const _0x111288=_0x53fb02;if(_0x216cc2===_0x1541ac[_0x111288(0x1e2)])return _0x111288(0x1e7);switch(_0x4688f0){case _0x5bdbeb[_0x111288(0x238)]:return _0x111288(0x190);case _0x5bdbeb[_0x111288(0x1a5)]:case _0x5bdbeb[_0x111288(0x1ec)]:return _0x111288(0x20a);case _0x5bdbeb['FAILED']:return'univer-bg-red-500';default:return _0x111288(0x213);}},_0x36f035=_0x4674b3=>{const _0xe636d2=_0x53fb02;switch(_0x4674b3){case _0x5bdbeb[_0xe636d2(0x238)]:return _0x45a479['t']('mcpConfig.connectionStatus.connected');case _0x5bdbeb['CONNECTING']:return _0x45a479['t'](_0xe636d2(0x18f));case _0x5bdbeb[_0xe636d2(0x29d)]:return _0x45a479['t'](_0xe636d2(0x1ff));case _0x5bdbeb[_0xe636d2(0x1ec)]:return _0x45a479['t'](_0xe636d2(0x2a6));default:return _0x45a479['t'](_0xe636d2(0x1ef));}},_0x502598=_0x11c39d=>{const _0x21612e=_0x53fb02;switch(_0x11c39d){case _0x1541ac[_0x21612e(0x1e2)]:return _0x45a479['t'](_0x21612e(0x178));case _0x1541ac[_0x21612e(0x1bc)]:return _0x45a479['t']('mcpConfig.connectionError.sessionOccupied');case _0x1541ac[_0x21612e(0x193)]:return _0x45a479['t']('mcpConfig.connectionError.networkError');case _0x1541ac[_0x21612e(0x291)]:return _0x45a479['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0xaf53fb=_0x5f3e9a(()=>{const _0x31dc86=_0x53fb02,_0xed21d0={..._0x59f300,'apiKey':_0x3c801b[_0x31dc86(0x206)](),'enableAuth':_0x4ba346};_0xe5f391(_0xed21d0);},[_0x59f300,_0x3c801b,_0x4ba346,_0xe5f391]),_0x2ac377=_0x3c801b[_0x53fb02(0x206)]()['length']>0x0;return _0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x177),'children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x1a2),'children':_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x1cb),'children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x277),'children':_0x3294b1(_0x53fb02(0x1cf),{'className':_0x53fb02(0x285),'children':'⚙'})}),_0x3294b1('div',{'children':_0x3294b1('p',{'className':_0x53fb02(0x2bd),'children':_0x45a479['t']('mcpConfig.description')})})]})}),_0x12850e('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x1b93b5(_0x53fb02(0x297),_0x22074d(_0x4ac475,_0x39e735)),'children':_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x226),'children':[_0x3294b1('div',{'className':_0x1b93b5('univer-size-2\x20univer-rounded-full',_0x209cd3(_0x4ac475,_0x39e735))}),_0x3294b1(_0x53fb02(0x1cf),{'className':_0x53fb02(0x2d1),'children':_0x36f035(_0x4ac475)})]})}),_0x39e735!==_0x1541ac[_0x53fb02(0x1ac)]&&(_0x4ac475===_0x5bdbeb[_0x53fb02(0x29d)]||_0x39e735===_0x1541ac[_0x53fb02(0x1e2)])&&_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x279),'children':_0x12850e(_0x53fb02(0x219),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x3294b1('span',{'className':_0x53fb02(0x1f4),'children':'⚠️'}),_0x3294b1('p',{'className':_0x53fb02(0x27f),'children':_0x502598(_0x39e735)})]})})]}),_0x3294b1(_0x53fb02(0x219),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x1d7),'children':[_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x1a8),'children':[_0x12850e(_0x53fb02(0x1ee),{'className':_0x53fb02(0x23b),'children':[_0x3294b1(_0x53fb02(0x1cf),{'children':'🔑'}),'\x20',_0x45a479['t'](_0x53fb02(0x260)),_0x3294b1(_0x53fb02(0x1cf),{'className':_0x53fb02(0x25c),'children':'*'}),_0x596f48&&_0x3294b1('a',{'className':_0x53fb02(0x2a5),'title':_0x45a479['t']('mcpConfig.apiApplyInfo.title'),'role':_0x53fb02(0x1b2),'onClick':()=>_0xdbbd89(!0x0),'children':_0x3294b1(ve,{})})]}),_0x3294b1(_0x143463,{'type':_0x53fb02(0x1c6),'placeholder':_0x45a479['t'](_0x53fb02(0x186)),'value':_0x3c801b,'disabled':_0x12b62a,'autoComplete':'off','onChange':_0x77fa7f}),_0x3294b1('p',{'className':_0x53fb02(0x1ca),'children':_0x45a479['t'](_0x53fb02(0x19d))})]}),_0x596f48&&_0x2b5865&&_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x188),'children':[_0x3294b1('a',{'className':_0x53fb02(0x2bb),'role':_0x53fb02(0x1b2),'onClick':()=>_0xdbbd89(!0x1),'children':_0x3294b1(ue,{'className':_0x53fb02(0x209)})}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x2ac),'children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x1a4),'children':_0x3294b1(_0x53fb02(0x1cf),{'className':_0x53fb02(0x173),'children':'🚀'})}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x185),'children':[_0x3294b1('h4',{'className':_0x53fb02(0x230),'children':_0x45a479['t'](_0x53fb02(0x2ba))}),_0x3294b1('p',{'className':_0x53fb02(0x2b1),'children':_0x45a479['t']('mcpConfig.apiApplyInfo.description')}),_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x207),'children':_0x3326a1&&_0x12850e('a',{'className':_0x53fb02(0x2be),'href':_0x6c704e,'target':_0x53fb02(0x1f7),'rel':_0x53fb02(0x1b8),'children':[_0x3294b1(_0x53fb02(0x1cf),{'children':'🤖'}),_0x45a479['t'](_0x53fb02(0x233)),_0x3294b1(_0x53fb02(0x1cf),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x2b5),'children':['✨','\x20',_0x45a479['t'](_0x53fb02(0x1fa))]})]})]})]}),_0x20e3f1[_0x53fb02(0x2c6)]&&_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x17e),'children':[_0x12850e('h4',{'className':_0x53fb02(0x17a),'children':[_0x3294b1(_0x53fb02(0x1cf),{'children':'🔗'}),'\x20',_0x45a479['t']('mcpConfig.connectionInfo')]}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x24c),'children':[_0x12850e(_0x53fb02(0x219),{'className':'univer-space-y-3','children':[_0x3294b1('p',{'className':_0x53fb02(0x211),'children':_0x45a479['t'](_0x53fb02(0x25b))}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x1a8),'children':[_0x3294b1('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x45a479['t'](_0x53fb02(0x1d8))}),_0x12850e(_0x53fb02(0x219),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x226),'children':[_0x3294b1(_0x53fb02(0x1cf),{'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':'1'}),_0x45a479['t'](_0x53fb02(0x225))]}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x226),'children':[_0x3294b1(_0x53fb02(0x1cf),{'className':_0x53fb02(0x26c),'children':'2'}),_0x45a479['t'](_0x53fb02(0x29e))]}),_0x12850e(_0x53fb02(0x219),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3294b1(_0x53fb02(0x1cf),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x45a479['t'](_0x53fb02(0x17c))]})]})]})]}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x1a8),'children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x290),'children':'MCP\x20Configuration'}),_0x3294b1('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x3294b1(_0x53fb02(0x26b),{'className':_0x53fb02(0x22b),'children':JSON[_0x53fb02(0x1ed)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x5e420f||_0x53fb02(0x2cd)),'type':_0x53fb02(0x1f1),'headers':{'Authorization':'Bearer\x20'+(_0x3c801b||_0x53fb02(0x1be))}}}},null,0x2)})})]}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x298),'children':[_0x3294b1(_0x53fb02(0x219),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x45a479['t'](_0x53fb02(0x20f))}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x1a8),'children':[_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x253),'children':[_0x3294b1('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x12850e('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x3294b1(_0x53fb02(0x219),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x53fb02(0x274)}),_0x3294b1(_0x53fb02(0x219),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x45a479['t'](_0x53fb02(0x214))})]})]}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x253),'children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x20b)}),_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x29a),'children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x192),'children':_0x53fb02(0x1d3)}),_0x3294b1('div',{'className':_0x53fb02(0x1ca),'children':_0x45a479['t'](_0x53fb02(0x202))})]})]})]})]})]})]}),_0x3294b1(_0x509b67,{'onClick':_0xaf53fb,'disabled':!_0x2ac377||_0x12b62a,'className':_0x53fb02(0x281),'children':_0x12b62a?_0x12850e(_0x53fb02(0x1cf),{'className':_0x53fb02(0x226),'children':[_0x3294b1(_0x53fb02(0x1cf),{'children':'⟲'}),_0x45a479['t']('mcpConfig.saving')]}):_0x12850e(_0x53fb02(0x1cf),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3294b1(le,{}),_0x45a479['t'](_0x53fb02(0x1e1))]})}),_0x3294b1(_0x53fb02(0x219),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x12850e(_0x53fb02(0x219),{'className':_0x53fb02(0x171),'children':[_0x3294b1(_0x53fb02(0x1cf),{'className':_0x53fb02(0x295),'children':'💡'}),_0x12850e(_0x53fb02(0x219),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x3294b1(_0x53fb02(0x219),{'className':_0x53fb02(0x265),'children':'Configuration\x20Notes:'}),_0x12850e(_0x53fb02(0x219),{'children':['•',_0x45a479['t'](_0x53fb02(0x18b))]}),_0x12850e(_0x53fb02(0x219),{'children':['•',_0x45a479['t'](_0x53fb02(0x19b))]})]})]})})]})})]});}const y=_0x5ed51e(0x23e),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5ed51e(0x237)],tn=(_0x44936a,_0x437504,_0x49b685,_0x4b69f7)=>{const _0x34eb32=_0x5ed51e;for(var _0xb29edc=_0x4b69f7>0x1?void 0x0:_0x4b69f7?rn(_0x437504,_0x49b685):_0x437504,_0x30a513=_0x44936a[_0x34eb32(0x270)]-0x1,_0xa5e088;_0x30a513>=0x0;_0x30a513--)(_0xa5e088=_0x44936a[_0x30a513])&&(_0xb29edc=_0xa5e088(_0xb29edc)||_0xb29edc);return _0xb29edc;},d=(_0x2d3423,_0x2c6079)=>(_0x472f04,_0x16abf4)=>_0x2c6079(_0x472f04,_0x16abf4,_0x2d3423);const U=_0x5ed51e(0x27c),L='mcp-config-dialog';let I=class extends _0x2bae7f{constructor(_0x1ebd59,_0x4ca90f,_0x394d7b,_0x2ab262,_0x39edc5,_0x45e6a9,_0x424abd,_0x4a2fe3,_0xea1d92,_0x539a4b){const _0x49833f=_0x5ed51e;super(),x(this,_0x49833f(0x2a8),new _0x4e37a6(!0x1)),x(this,_0x49833f(0x1bf),new _0x4e37a6({})),x(this,'_config$',new _0x4e37a6({})),x(this,_0x49833f(0x2cf),new _0x4e37a6('')),x(this,'_handleConfigSave',async _0x4213bb=>{const _0x58356e=_0x49833f;var _0x3032ed,_0x2ba638;this[_0x58356e(0x2a8)][_0x58356e(0x29b)](!0x0);try{const _0x50a43c=await this[_0x58356e(0x196)](_0x4213bb);if(!_0x50a43c[_0x58356e(0x293)]){this[_0x58356e(0x227)][_0x58356e(0x181)]({'type':_0x405837[_0x58356e(0x27b)],'content':_0x50a43c[_0x58356e(0x1e0)]||this[_0x58356e(0x266)]['t'](_0x58356e(0x20e))});return;}_0x4213bb[_0x58356e(0x1f8)]?await this[_0x58356e(0x1c2)][_0x58356e(0x18e)](U,_0x4213bb[_0x58356e(0x1f8)][_0x58356e(0x206)]()):await this[_0x58356e(0x1c2)][_0x58356e(0x262)](U),this[_0x58356e(0x2cf)][_0x58356e(0x29b)](((_0x3032ed=_0x4213bb[_0x58356e(0x1f8)])==null?void 0x0:_0x3032ed[_0x58356e(0x206)]())||''),this[_0x58356e(0x1fc)][_0x58356e(0x282)]({'Authorization':'Bearer\x20'+((_0x2ba638=_0x4213bb[_0x58356e(0x1f8)])==null?void 0x0:_0x2ba638[_0x58356e(0x206)]())}),this[_0x58356e(0x227)][_0x58356e(0x181)]({'type':_0x405837['Success'],'content':this['_localeService']['t'](_0x58356e(0x215))}),setTimeout(()=>{const _0x1d04b4=_0x58356e;this[_0x1d04b4(0x288)]['close'](L);},0x320);}catch(_0x193813){this['_logService'][_0x58356e(0x1c4)](_0x58356e(0x2b4),_0x193813),this['_messageService'][_0x58356e(0x181)]({'type':_0x405837[_0x58356e(0x27b)],'content':this['_localeService']['t'](_0x58356e(0x22e))});}finally{this[_0x58356e(0x2a8)][_0x58356e(0x29b)](!0x1);}}),(this['_injector']=_0x1ebd59,this[_0x49833f(0x1ab)]=_0x4ca90f,this[_0x49833f(0x1c8)]=_0x394d7b,this[_0x49833f(0x1c2)]=_0x2ab262,this[_0x49833f(0x288)]=_0x39edc5,this[_0x49833f(0x227)]=_0x45e6a9,this[_0x49833f(0x2c4)]=_0x424abd,this[_0x49833f(0x266)]=_0x4a2fe3,this[_0x49833f(0x1b7)]=_0xea1d92,this[_0x49833f(0x1fc)]=_0x539a4b,this[_0x49833f(0x22f)](),this[_0x49833f(0x17b)](),this[_0x49833f(0x19e)]());}[_0x5ed51e(0x283)](){const _0x269175=_0x5ed51e,_0x573c8c=this['_configService'][_0x269175(0x29c)](y);_0x573c8c!=null&&_0x573c8c[_0x269175(0x2c6)]&&this['_dialogService'][_0x269175(0x28f)]({'id':L,'title':{'title':this[_0x269175(0x266)]['t'](_0x269175(0x263))},'children':{'label':_0x269175(0x187)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3679d3=_0x269175;this[_0x3679d3(0x288)][_0x3679d3(0x216)](L);}});}[_0x5ed51e(0x1fe)](){const _0x5d08c2=_0x5ed51e;return this['_mcpCoreConfig$'][_0x5d08c2(0x2ae)];}[_0x5ed51e(0x19e)](){const _0x3a2334=_0x5ed51e;this[_0x3a2334(0x251)](this[_0x3a2334(0x2c4)]['register']('MCPConfigPanel',this[_0x3a2334(0x2d0)]()));}[_0x5ed51e(0x2d0)](){const _0x2904e4=_0x5ed51e;return _0x54da21(()=>{const _0x48a597=_0x26ba;var _0x234066,_0x3bfa47,_0x388e97;return _0x3294b1(nn,{'config':this[_0x48a597(0x27e)][_0x48a597(0x2ae)],'mcpCoreConfig':this[_0x48a597(0x1bf)][_0x48a597(0x2ae)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x48a597(0x2a8)]['value'],'connectionStatus$':(_0x234066=this['_mcpConnectionController'])==null?void 0x0:_0x234066[_0x48a597(0x2cc)],'connectionError$':(_0x3bfa47=this[_0x48a597(0x1fc)])==null?void 0x0:_0x3bfa47[_0x48a597(0x1c0)],'currentSessionId$':(_0x388e97=this['_mcpConnectionController'])==null?void 0x0:_0x388e97[_0x48a597(0x1d4)]});},this[_0x2904e4(0x24f)]);}['_initConfigSync'](){const _0x1b1330=_0x5ed51e;this[_0x1b1330(0x251)](this['_configService'][_0x1b1330(0x1f9)](_0x4c0acf)[_0x1b1330(0x1e9)](_0x8d920a=>{const _0x37e3d6=_0x1b1330;this[_0x37e3d6(0x1bf)]['next'](_0x8d920a||{});}));const _0x42b44a=this[_0x1b1330(0x1c8)][_0x1b1330(0x29c)](_0x4c0acf);this[_0x1b1330(0x1bf)][_0x1b1330(0x29b)](_0x42b44a||{}),this[_0x1b1330(0x251)](this[_0x1b1330(0x1c8)]['subscribeConfigValue$'](y)[_0x1b1330(0x1e9)](_0x2a6158=>{const _0x2fa0b9=_0x1b1330;this[_0x2fa0b9(0x27e)]['next'](_0x2a6158||{});}));const _0x53b0fa=this[_0x1b1330(0x1c8)][_0x1b1330(0x29c)](y);this[_0x1b1330(0x27e)][_0x1b1330(0x29b)](_0x53b0fa||{});}async['_loadStoredApiKey'](){const _0x163733=_0x5ed51e,_0x4cb9b7=this[_0x163733(0x1c8)][_0x163733(0x29c)](y);if(!(_0x4cb9b7!=null&&_0x4cb9b7['showDeveloperTools']))return;const _0x2df576=await this['_localStorageService']['getItem'](U);_0x2df576&&(this[_0x163733(0x1fc)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x2df576}),this['_apiKey$'][_0x163733(0x29b)](_0x2df576));}async[_0x5ed51e(0x196)](_0x3d69c3){const _0xbccf68=_0x5ed51e;if(!_0x3d69c3['apiKey']||_0x3d69c3['apiKey']['trim']()[_0xbccf68(0x270)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3d69c3['apiKey']['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0xbccf68(0x266)]['t'](_0xbccf68(0x247))};try{const _0x104f42=await this[_0xbccf68(0x24f)][_0xbccf68(0x1af)](_0x425719)[_0xbccf68(0x280)](_0x3d69c3[_0xbccf68(0x1f8)][_0xbccf68(0x206)]());return _0x104f42['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x104f42[_0xbccf68(0x1c4)]||this[_0xbccf68(0x266)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x5c95a1){return console[_0xbccf68(0x1c7)](_0xbccf68(0x2c1),_0x5c95a1),{'isValid':!0x0};}}};I=tn([d(0x0,_0x985524(_0x1e8295)),d(0x1,_0x22208f),d(0x2,_0x416ca4),d(0x3,_0xd1378d),d(0x4,_0x572193),d(0x5,_0x1eb474),d(0x6,_0x985524(_0x10d7b1)),d(0x7,_0x985524(_0x444c96)),d(0x8,_0x2991f1),d(0x9,_0x985524(_0x425719))],I);const V={'id':_0x5ed51e(0x2ca),'type':_0x413bb0[_0x5ed51e(0x2c0)],'handler':async(_0x318e87,_0x5ce75e)=>(_0x318e87[_0x5ed51e(0x1af)](I)[_0x5ed51e(0x283)](),!0x0)};function pe(_0x330e80,_0x599b79){const _0xf4250a=_0x5ed51e;switch(_0x330e80){case _0x5bdbeb[_0xf4250a(0x25f)]:return _0xf4250a(0x180);case _0x5bdbeb[_0xf4250a(0x1a5)]:return _0xf4250a(0x1dd);case _0x5bdbeb[_0xf4250a(0x238)]:return _0xf4250a(0x174);case _0x5bdbeb[_0xf4250a(0x29d)]:switch(_0x599b79){case _0x1541ac[_0xf4250a(0x1e2)]:return _0xf4250a(0x2a4);case _0x1541ac[_0xf4250a(0x1bc)]:return _0xf4250a(0x1d1);case _0x1541ac[_0xf4250a(0x193)]:return _0xf4250a(0x231);case _0x1541ac[_0xf4250a(0x291)]:return _0xf4250a(0x1d9);default:return _0xf4250a(0x2b2);}case _0x5bdbeb['RETRYING']:return'mcpStatus.retrying';default:return _0xf4250a(0x21a);}}function on(_0x595f52,_0xa2e8ff,_0x19660a,_0x5c6fdd=!0x0){const _0x46a6f6=_0x5ed51e,_0xe5fd8=pe(_0x595f52,_0xa2e8ff),_0x225b66=_0x19660a['t'](_0xe5fd8);return _0x5c6fdd?_0x595f52===_0x5bdbeb[_0x46a6f6(0x25f)]&&_0xa2e8ff===_0x1541ac[_0x46a6f6(0x1e2)]?_0x225b66+_0x46a6f6(0x1bd)+_0x19660a['t']('mcpStatus.clickToConfigure'):_0x595f52===_0x5bdbeb[_0x46a6f6(0x238)]?''+_0x225b66:_0x595f52===_0x5bdbeb['DISCONNECTED']||_0x595f52===_0x5bdbeb['FAILED']?_0x225b66+_0x46a6f6(0x1bd)+_0x19660a['t']('mcpStatus.clickToConnect'):_0x225b66:_0x225b66;}function sn(_0x4409a2){const _0x46071c=_0x5ed51e;switch(_0x4409a2){case _0x5bdbeb['CONNECTED']:return _0x46071c(0x1b0);case _0x5bdbeb[_0x46071c(0x1a5)]:case _0x5bdbeb[_0x46071c(0x1ec)]:return _0x46071c(0x1e6);case _0x5bdbeb[_0x46071c(0x29d)]:case _0x5bdbeb[_0x46071c(0x25f)]:return _0x46071c(0x25c);default:return _0x46071c(0x234);}}function cn(_0x139dad){const _0x445e8b=_0x5ed51e,{status$:_0x2f96ac,error$:_0x78b404,onConfigure:_0x50b2d3,showClickable:_0xf2b466=!0x0}=_0x139dad,_0x32047e=_0x1569a2(_0x2f96ac,_0x5bdbeb['DISCONNECTED']),_0x4bccf5=_0x1569a2(_0x78b404,_0x1541ac[_0x445e8b(0x1ac)]),_0x5702b3=_0x5c2bc6(_0x444c96),_0x2afa5e=_0x32047e===_0x5bdbeb[_0x445e8b(0x238)];_0x32047e===_0x5bdbeb[_0x445e8b(0x1a5)]||_0x5bdbeb[_0x445e8b(0x1ec)];const _0x78a6fd=_0x5702b3['t'](pe(_0x32047e,_0x4bccf5)),_0x217f62=on(_0x32047e,_0x4bccf5,_0x5702b3,_0xf2b466),_0xe054b2=sn(_0x32047e),_0x45eb16=_0x2afa5e?_0x3294b1(ge,{}):_0x3294b1(de,{}),_0x3e30ed=_0x5f3e9a(()=>{_0xf2b466&&_0x50b2d3&&_0x50b2d3();},[_0xf2b466,_0x50b2d3]);function _0x454bfe(){const _0x4c2394=_0x445e8b;return _0x12850e(_0x4c2394(0x219),{'className':_0x1b93b5(_0x4c2394(0x24a),_0xf2b466&&_0x50b2d3&&_0x4c2394(0x221)),'role':_0x4c2394(0x1b2),'onClick':_0xf2b466&&_0x50b2d3?_0x3e30ed:void 0x0,'children':[_0x3294b1(_0x4c2394(0x219),{'className':_0x1b93b5(_0x4c2394(0x1eb),_0xe054b2),'children':_0x45eb16}),_0x3294b1(_0x4c2394(0x219),{'className':_0x4c2394(0x2b7),'children':_0x78a6fd})]});}return _0x3294b1(_0x6255f7,{'title':_0x217f62,'placement':'bottom','children':_0x454bfe()});}function _0x26ba(_0xd27e15,_0x4dcbc9){const _0x26d015=_0x26d0();return _0x26ba=function(_0x26ba2b,_0x2c3a5e){_0x26ba2b=_0x26ba2b-0x171;let _0x508e06=_0x26d015[_0x26ba2b];return _0x508e06;},_0x26ba(_0xd27e15,_0x4dcbc9);}var an=Object[_0x5ed51e(0x237)],ln=(_0x1cc7ff,_0x52f7b8,_0x3f9b3c,_0x180e83)=>{const _0x4d4be6=_0x5ed51e;for(var _0x5d2366=_0x180e83>0x1?void 0x0:_0x180e83?an(_0x52f7b8,_0x3f9b3c):_0x52f7b8,_0x434ae2=_0x1cc7ff[_0x4d4be6(0x270)]-0x1,_0x255abf;_0x434ae2>=0x0;_0x434ae2--)(_0x255abf=_0x1cc7ff[_0x434ae2])&&(_0x5d2366=_0x255abf(_0x5d2366)||_0x5d2366);return _0x5d2366;},M=(_0x15a5df,_0x165495)=>(_0x233860,_0x193c09)=>_0x165495(_0x233860,_0x193c09,_0x15a5df);let O=class extends _0x2bae7f{constructor(_0x100483,_0x713313,_0x31ee02,_0x1944f5){const _0x5e1f56=_0x5ed51e;super(),this[_0x5e1f56(0x24f)]=_0x100483,this[_0x5e1f56(0x212)]=_0x713313,this['_uiPartsService']=_0x31ee02,this[_0x5e1f56(0x1c8)]=_0x1944f5,this[_0x5e1f56(0x1a0)](),this[_0x5e1f56(0x1f0)]();}[_0x5ed51e(0x1a0)](){const _0x527a7d=_0x5ed51e,_0x35b8c4=this[_0x527a7d(0x1c8)]['getConfig'](y);_0x35b8c4!=null&&_0x35b8c4[_0x527a7d(0x2c6)]&&(this[_0x527a7d(0x212)][_0x527a7d(0x24e)]=!0x1);}[_0x5ed51e(0x1f0)](){const _0x580d1d=_0x5ed51e,_0x2bdfb8=this[_0x580d1d(0x1c8)]['getConfig'](y);(_0x2bdfb8==null?void 0x0:_0x2bdfb8[_0x580d1d(0x271)])!==!0x1&&this[_0x580d1d(0x251)](this[_0x580d1d(0x1ab)][_0x580d1d(0x255)](_0x53de30[_0x580d1d(0x2c5)],()=>{const _0x35bd9=_0x580d1d;var _0x45e2e0;return _0x54da21(un({'status$':this[_0x35bd9(0x212)][_0x35bd9(0x2cc)],'error$':this[_0x35bd9(0x212)]['connectionError$'],'onConfigure':()=>this[_0x35bd9(0x189)](),'showClickable':(_0x45e2e0=_0x2bdfb8==null?void 0x0:_0x2bdfb8[_0x35bd9(0x2c6)])!=null?_0x45e2e0:!0x1}),this['_injector']);}));}[_0x5ed51e(0x189)](){const _0xac5fd8=_0x5ed51e;this[_0xac5fd8(0x24f)][_0xac5fd8(0x1af)](I)[_0xac5fd8(0x283)]();}};O=ln([M(0x0,_0x985524(_0x1e8295)),M(0x1,_0x985524(_0x425719)),M(0x2,_0x22208f),M(0x3,_0x416ca4)],O);function un(_0x54098c){const {status$:_0x1d4650,error$:_0xd3cf53,onConfigure:_0x10328e,showClickable:_0xbcc616}=_0x54098c;return function(){return _0x3294b1(cn,{'status$':_0x1d4650,'error$':_0xd3cf53,'onConfigure':_0x10328e,'showClickable':_0xbcc616});};}function vn(_0x3cbeaf){const _0x1fb77e=_0x5ed51e;return{'id':V['id'],'type':_0x15f919[_0x1fb77e(0x248)],'icon':_0x1fb77e(0x23a),'title':_0x1fb77e(0x263),'tooltip':_0x1fb77e(0x263)};}const dn={[_0x17dab4[_0x5ed51e(0x1fd)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x5ed51e(0x237)],pn=(_0x1b3281,_0x3b8fa9,_0x412b1f,_0x2064c6)=>{const _0x242013=_0x5ed51e;for(var _0x382403=_0x2064c6>0x1?void 0x0:_0x2064c6?gn(_0x3b8fa9,_0x412b1f):_0x3b8fa9,_0x1b4308=_0x1b3281[_0x242013(0x270)]-0x1,_0x33cf38;_0x1b4308>=0x0;_0x1b4308--)(_0x33cf38=_0x1b3281[_0x1b4308])&&(_0x382403=_0x33cf38(_0x382403)||_0x382403);return _0x382403;},re=(_0x4f752c,_0x4066dd)=>(_0x245a89,_0x23df08)=>_0x4066dd(_0x245a89,_0x23df08,_0x4f752c);let D=class extends _0x2bae7f{constructor(_0x3c3423,_0x4bc34a){const _0x4457d2=_0x5ed51e;super(),this['_commandService']=_0x3c3423,this[_0x4457d2(0x29f)]=_0x4bc34a,this['_initializeCommands'](),this[_0x4457d2(0x24b)]();}[_0x5ed51e(0x1a6)](){const _0x437d3b=_0x5ed51e;[V][_0x437d3b(0x25a)](_0x3a2c1a=>{const _0x27b493=_0x437d3b;this[_0x27b493(0x251)](this[_0x27b493(0x261)][_0x27b493(0x289)](_0x3a2c1a));});}[_0x5ed51e(0x24b)](){const _0x541e7a=_0x5ed51e;this[_0x541e7a(0x29f)][_0x541e7a(0x1a3)](dn);}};D=pn([re(0x0,_0x15708a),re(0x1,_0x8782b1)],D);const Mn={'mcpStatus':{'disconnected':_0x5ed51e(0x2ad),'connecting':_0x5ed51e(0x1aa),'connected':_0x5ed51e(0x235),'failed':_0x5ed51e(0x2b0),'retrying':_0x5ed51e(0x28a),'unknown':_0x5ed51e(0x2a1),'unauthorized':_0x5ed51e(0x2cb),'sessionOccupied':_0x5ed51e(0x1cc),'networkError':_0x5ed51e(0x20d),'maxRetriesExceeded':_0x5ed51e(0x2d2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5ed51e(0x208),'description':_0x5ed51e(0x201),'apiKey':_0x5ed51e(0x23d),'apiKeyPlaceholder':_0x5ed51e(0x2c9),'apiKeyHint':_0x5ed51e(0x256),'enableAuth':_0x5ed51e(0x25d),'enableAuthHint':_0x5ed51e(0x194),'connectionInfo':_0x5ed51e(0x242),'mcpClientConfig':_0x5ed51e(0x242),'configInstructions':_0x5ed51e(0x240),'configStepTitle':_0x5ed51e(0x28d),'configStep1':_0x5ed51e(0x2c3),'configStep2':_0x5ed51e(0x2a2),'configStep3':_0x5ed51e(0x1cd),'sessionId':'Session\x20ID','sessionIdDescription':_0x5ed51e(0x2c2),'authorizationDescription':_0x5ed51e(0x245),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5ed51e(0x204),'save':'Save\x20Configuration','saving':_0x5ed51e(0x18d),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5ed51e(0x210),'configSaved':_0x5ed51e(0x22d),'configError':_0x5ed51e(0x28b),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5ed51e(0x1df),'univerAiLabel':_0x5ed51e(0x176),'getStarted':_0x5ed51e(0x1f5)},'validation':{'apiKeyRequired':_0x5ed51e(0x217),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5ed51e(0x1ea),'invalidApiKey':_0x5ed51e(0x1b6)},'connectionStatus':{'disconnected':_0x5ed51e(0x2ce),'connecting':'Connecting...','connected':_0x5ed51e(0x250),'failed':_0x5ed51e(0x257),'retrying':_0x5ed51e(0x1d2)},'connectionError':{'unauthorized':_0x5ed51e(0x198),'sessionOccupied':_0x5ed51e(0x21f),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5ed51e(0x172)}}},An={'mcpStatus':{'disconnected':_0x5ed51e(0x218),'connecting':'MCP\x20连接中...','connected':_0x5ed51e(0x25e),'failed':_0x5ed51e(0x26a),'retrying':'MCP\x20重连中...','unknown':_0x5ed51e(0x246),'unauthorized':_0x5ed51e(0x24d),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x5ed51e(0x1c9),'maxRetriesExceeded':_0x5ed51e(0x1ce),'clickToConnect':_0x5ed51e(0x299),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5ed51e(0x259),'description':_0x5ed51e(0x1b5),'apiKey':_0x5ed51e(0x2bc),'apiKeyPlaceholder':_0x5ed51e(0x1d0),'apiKeyHint':_0x5ed51e(0x21e),'enableAuth':'启用身份验证','enableAuthHint':_0x5ed51e(0x244),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5ed51e(0x254),'configInstructions':_0x5ed51e(0x1b1),'configStepTitle':_0x5ed51e(0x272),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x5ed51e(0x179),'configStep3':_0x5ed51e(0x203),'sessionId':_0x5ed51e(0x223),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5ed51e(0x222),'configParameters':'配置参数:','maxRetries':_0x5ed51e(0x224),'save':'保存配置','saving':_0x5ed51e(0x229),'note1':_0x5ed51e(0x1b4),'note2':_0x5ed51e(0x1e8),'configSaved':_0x5ed51e(0x249),'configError':_0x5ed51e(0x17f),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5ed51e(0x286),'univerAiLabel':_0x5ed51e(0x2a9),'getStarted':_0x5ed51e(0x243)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5ed51e(0x2ab),'invalidApiKey':_0x5ed51e(0x1c5)},'connectionStatus':{'disconnected':_0x5ed51e(0x1fb),'connecting':_0x5ed51e(0x23c),'connected':_0x5ed51e(0x220),'failed':_0x5ed51e(0x2b8),'retrying':_0x5ed51e(0x28e)},'connectionError':{'unauthorized':_0x5ed51e(0x2b6),'sessionOccupied':_0x5ed51e(0x292),'networkError':_0x5ed51e(0x205),'maxRetriesExceeded':_0x5ed51e(0x1e4)}}};var fn=Object[_0x5ed51e(0x22a)],hn=Object[_0x5ed51e(0x237)],Cn=(_0x4309c9,_0x272b97,_0x3558ab)=>_0x272b97 in _0x4309c9?fn(_0x4309c9,_0x272b97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3558ab}):_0x4309c9[_0x272b97]=_0x3558ab,mn=(_0x230ca2,_0x30dc7e,_0x24b10c,_0x1877e7)=>{for(var _0x1f27e2=_0x1877e7>0x1?void 0x0:_0x1877e7?hn(_0x30dc7e,_0x24b10c):_0x30dc7e,_0x77e15b=_0x230ca2['length']-0x1,_0x33c0e2;_0x77e15b>=0x0;_0x77e15b--)(_0x33c0e2=_0x230ca2[_0x77e15b])&&(_0x1f27e2=_0x33c0e2(_0x1f27e2)||_0x1f27e2);return _0x1f27e2;},P=(_0x548e5a,_0x4144b3)=>(_0x1a5e19,_0x50ec03)=>_0x4144b3(_0x1a5e19,_0x50ec03,_0x548e5a),_n=(_0x1a5be9,_0x284d7b,_0x214ff2)=>Cn(_0x1a5be9,_0x284d7b+'',_0x214ff2);let j=class extends _0x30a094{constructor(_0x41f93a=ie,_0x2275f5,_0xf8f6f9,_0x4db791,_0x254b20,_0x336292){const _0xeee6fb=_0x5ed51e;super(),this[_0xeee6fb(0x27d)]=_0x41f93a,this[_0xeee6fb(0x24f)]=_0x2275f5,this[_0xeee6fb(0x1c8)]=_0xf8f6f9,this[_0xeee6fb(0x1ab)]=_0x4db791,this['_localStorageService']=_0x254b20,this[_0xeee6fb(0x266)]=_0x336292;const {..._0x1da260}=_0x3f7f0f({},ie,this[_0xeee6fb(0x27d)]);this[_0xeee6fb(0x1c8)]['setConfig'](y,_0x1da260);}async['onStarting'](){const _0xc6c3f2=_0x5ed51e,_0x51a702=[[O],[I],[D]];this[_0xc6c3f2(0x24f)][_0xc6c3f2(0x273)](_0x5ba078)||_0x51a702[_0xc6c3f2(0x195)]([_0x5ba078,{'useClass':_0x7684a5}]),_0x51a702[_0xc6c3f2(0x25a)](_0x41ec47=>this['_injector'][_0xc6c3f2(0x2a0)](_0x41ec47)),this[_0xc6c3f2(0x24f)][_0xc6c3f2(0x1af)](O),this[_0xc6c3f2(0x24f)][_0xc6c3f2(0x1af)](I),this['_injector'][_0xc6c3f2(0x1af)](D);}};_n(j,_0x5ed51e(0x276),'MCP_UI_PLUGIN'),j=mn([_0x652699(_0x2887ba),P(0x1,_0x985524(_0x1e8295)),P(0x2,_0x416ca4),P(0x3,_0x22208f),P(0x4,_0xd1378d),P(0x5,_0x985524(_0x444c96))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2c90c1=_0x2026;function _0x2026(_0x32e8e1,_0x285e26){const _0x1ed0e4=_0x1ed0();return _0x2026=function(_0x202690,_0x1ea066){_0x202690=_0x202690-0x12c;let _0x3f194b=_0x1ed0e4[_0x202690];return _0x3f194b;},_0x2026(_0x32e8e1,_0x285e26);}(function(_0x53901e,_0x502986){const _0x4c2617=_0x2026,_0x48b361=_0x53901e();while(!![]){try{const _0x5f04a6=-parseInt(_0x4c2617(0x14e))/0x1*(parseInt(_0x4c2617(0x14c))/0x2)+parseInt(_0x4c2617(0x152))/0x3*(parseInt(_0x4c2617(0x155))/0x4)+-parseInt(_0x4c2617(0x15a))/0x5*(parseInt(_0x4c2617(0x15f))/0x6)+parseInt(_0x4c2617(0x150))/0x7*(-parseInt(_0x4c2617(0x15b))/0x8)+parseInt(_0x4c2617(0x141))/0x9*(parseInt(_0x4c2617(0x13a))/0xa)+-parseInt(_0x4c2617(0x136))/0xb+-parseInt(_0x4c2617(0x138))/0xc*(-parseInt(_0x4c2617(0x142))/0xd);if(_0x5f04a6===_0x502986)break;else _0x48b361['push'](_0x48b361['shift']());}catch(_0x406439){_0x48b361['push'](_0x48b361['shift']());}}}(_0x1ed0,0xbf349));const e={'mcpStatus':{'disconnected':_0x2c90c1(0x15d),'connecting':_0x2c90c1(0x143),'connected':_0x2c90c1(0x147),'failed':_0x2c90c1(0x160),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2c90c1(0x13f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2c90c1(0x13b),'maxRetriesExceeded':_0x2c90c1(0x14b),'clickToConnect':_0x2c90c1(0x144),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2c90c1(0x146),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2c90c1(0x13c),'apiKeyPlaceholder':_0x2c90c1(0x153),'apiKeyHint':_0x2c90c1(0x13e),'enableAuth':_0x2c90c1(0x134),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2c90c1(0x14d),'mcpClientConfig':_0x2c90c1(0x14d),'configInstructions':_0x2c90c1(0x130),'configStepTitle':_0x2c90c1(0x157),'configStep1':_0x2c90c1(0x149),'configStep2':_0x2c90c1(0x12e),'configStep3':_0x2c90c1(0x161),'sessionId':_0x2c90c1(0x14f),'sessionIdDescription':_0x2c90c1(0x132),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2c90c1(0x158),'maxRetries':_0x2c90c1(0x14a),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2c90c1(0x12f),'note2':_0x2c90c1(0x135),'configSaved':_0x2c90c1(0x159),'configError':_0x2c90c1(0x131),'apiApplyInfo':{'title':_0x2c90c1(0x145),'description':_0x2c90c1(0x154),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2c90c1(0x151)},'validation':{'apiKeyRequired':_0x2c90c1(0x15e),'apiKeyTooShort':_0x2c90c1(0x137),'invalidConfig':_0x2c90c1(0x148),'invalidApiKey':_0x2c90c1(0x156)},'connectionStatus':{'disconnected':_0x2c90c1(0x13d),'connecting':_0x2c90c1(0x133),'connected':_0x2c90c1(0x140),'failed':_0x2c90c1(0x12c),'retrying':_0x2c90c1(0x15c)},'connectionError':{'unauthorized':_0x2c90c1(0x12d),'sessionOccupied':_0x2c90c1(0x139),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x1ed0(){const _0x56cad1=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','289224fggaDT','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','270KHCdYN','MCP:\x20Network\x20Error','API\x20Key','Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Unauthorized','Connected','110169wfnVOu','416ZhnxTR','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Configuration','MCP\x20Connected','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','25506ZfsEzS','MCP\x20Client\x20Configuration','30vgsBrG','Session\x20ID','7ukgFMS','Get\x20your\x20API\x20key\x20in\x20seconds','705DRoApR','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','6412jwoTpZ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Steps:','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','109845ldtnBk','5480gVhYsJ','Retrying...','MCP\x20Disconnected','API\x20key\x20is\x20required','30RrsVAa','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connecting...','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2223969nmRMSa'];_0x1ed0=function(){return _0x56cad1;};return _0x1ed0();}export{n as default};
|