@univerjs-pro/mcp-ui 0.10.7-nightly.202509130703 → 0.10.8
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/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/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/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/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 +7 -7
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x322c2e=_0x2106;function _0x2106(_0x30c6d0,_0x1ae4ee){const _0x337c94=_0x337c();return _0x2106=function(_0x210677,_0x4249d9){_0x210677=_0x210677-0x9f;let _0x5c184d=_0x337c94[_0x210677];return _0x5c184d;},_0x2106(_0x30c6d0,_0x1ae4ee);}function _0x337c(){const _0x534bb6=['Saving...','API\x20key\x20is\x20required\x20to\x20connect','Retrying...','MCP\x20Client\x20Configuration','Enable\x20Authentication','8132145zFhsDb','Configuration\x20saved\x20successfully','Session\x20ID','1526400RVqCie','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','14PFRpNu','MCP\x20Connection\x20Failed','MCP\x20Connected','363489TxlHCJ','667502dwMDfI','2547640fPmezc','MCP\x20Connecting...','648Nmdlnf','Univer\x20AI\x20Console','MCP:\x20Session\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Invalid\x20API\x20Key','Invalid\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','Connected','Max\x20Retries','API\x20Key','10UqnMGU','Failed\x20to\x20save\x20configuration','3JYfJkA','5589774nftkfy','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','66KbHZeK','237328mJxDzW','Disconnected'];_0x337c=function(){return _0x534bb6;};return _0x337c();}(function(_0xda81ea,_0x4d4a57){const _0x1a1507=_0x2106,_0x482cd5=_0xda81ea();while(!![]){try{const _0x1daea6=-parseInt(_0x1a1507(0xc3))/0x1*(parseInt(_0x1a1507(0xb7))/0x2)+-parseInt(_0x1a1507(0xae))/0x3*(-parseInt(_0x1a1507(0xc8))/0x4)+-parseInt(_0x1a1507(0xbe))/0x5+parseInt(_0x1a1507(0xb6))/0x6*(-parseInt(_0x1a1507(0xc6))/0x7)+parseInt(_0x1a1507(0xc1))/0x8+-parseInt(_0x1a1507(0xaf))/0x9*(-parseInt(_0x1a1507(0xac))/0xa)+parseInt(_0x1a1507(0xc7))/0xb*(parseInt(_0x1a1507(0xca))/0xc);if(_0x1daea6===_0x4d4a57)break;else _0x482cd5['push'](_0x482cd5['shift']());}catch(_0x55158b){_0x482cd5['push'](_0x482cd5['shift']());}}}(_0x337c,0xd398e));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x322c2e(0xc9),'connected':_0x322c2e(0xc5),'failed':_0x322c2e(0xc4),'retrying':'MCP\x20Retrying...','unknown':_0x322c2e(0xb4),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x322c2e(0xa1),'sessionOccupied':_0x322c2e(0xcc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x322c2e(0xb0),'clickToConnect':_0x322c2e(0xa4),'clickToConfigure':_0x322c2e(0xa8)},'mcpConfig':{'title':_0x322c2e(0xce),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x322c2e(0xab),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x322c2e(0xbd),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x322c2e(0xbc),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x322c2e(0x9f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x322c2e(0xb5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x322c2e(0xc0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x322c2e(0xa7),'configParameters':_0x322c2e(0xb2),'maxRetries':_0x322c2e(0xaa),'save':'Save\x20Configuration','saving':_0x322c2e(0xb9),'note1':_0x322c2e(0xc2),'note2':_0x322c2e(0xcf),'configSaved':_0x322c2e(0xbf),'configError':_0x322c2e(0xad),'apiApplyInfo':{'title':_0x322c2e(0xb3),'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':_0x322c2e(0xcb),'getStarted':_0x322c2e(0xa6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x322c2e(0xcd),'invalidConfig':_0x322c2e(0xa2),'invalidApiKey':_0x322c2e(0xa5)},'connectionStatus':{'disconnected':_0x322c2e(0xb8),'connecting':'Connecting...','connected':_0x322c2e(0xa9),'failed':_0x322c2e(0xb1),'retrying':_0x322c2e(0xbb)},'connectionError':{'missingApiKey':_0x322c2e(0xba),'invalidApiKey':_0x322c2e(0xa3),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x322c2e(0xa0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x17ebcd=_0x555b;function _0x555b(_0x44f4d9,_0xf5a9f3){const _0x1fb270=_0x1fb2();return _0x555b=function(_0x555b8b,_0x3d0e92){_0x555b8b=_0x555b8b-0xfe;let _0x170ed5=_0x1fb270[_0x555b8b];return _0x170ed5;},_0x555b(_0x44f4d9,_0xf5a9f3);}(function(_0x547f48,_0x5641b0){const _0x3f9bc1=_0x555b,_0x3ef1a0=_0x547f48();while(!![]){try{const _0x4de969=-parseInt(_0x3f9bc1(0x111))/0x1+-parseInt(_0x3f9bc1(0x108))/0x2+parseInt(_0x3f9bc1(0x10a))/0x3+parseInt(_0x3f9bc1(0x109))/0x4*(parseInt(_0x3f9bc1(0x101))/0x5)+-parseInt(_0x3f9bc1(0x121))/0x6+-parseInt(_0x3f9bc1(0x105))/0x7+parseInt(_0x3f9bc1(0x11c))/0x8;if(_0x4de969===_0x5641b0)break;else _0x3ef1a0['push'](_0x3ef1a0['shift']());}catch(_0x2930a8){_0x3ef1a0['push'](_0x3ef1a0['shift']());}}}(_0x1fb2,0x53383));function _0x1fb2(){const _0x1c062b=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','358886BHNoEc','MCP:\x20Invalid\x20API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Save\x20Configuration','MCP:\x20API\x20Key\x20Missing','MCP\x20Connection\x20Failed','MCP\x20Connecting...','14700208OqSumZ','Session\x20ID','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','3202506zNDhoq','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','Saving...','API\x20Key','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Disconnected','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5JlWHjH','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Invalid\x20configuration','4154241ulaePv','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','1334058tjpFfV','1961536OXwEEo','498258DifpUV','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:'];_0x1fb2=function(){return _0x1c062b;};return _0x1fb2();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x17ebcd(0x11b),'connected':_0x17ebcd(0x117),'failed':_0x17ebcd(0x11a),'retrying':_0x17ebcd(0x103),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x17ebcd(0x119),'invalidApiKey':_0x17ebcd(0x112),'sessionOccupied':_0x17ebcd(0x114),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x17ebcd(0x107),'clickToConnect':_0x17ebcd(0x10b),'clickToConfigure':_0x17ebcd(0x12b)},'mcpConfig':{'title':_0x17ebcd(0x123),'description':_0x17ebcd(0x113),'apiKey':_0x17ebcd(0x125),'apiKeyPlaceholder':_0x17ebcd(0xff),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x17ebcd(0x10d),'configStepTitle':_0x17ebcd(0x10c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x17ebcd(0x122),'configStep3':_0x17ebcd(0x116),'sessionId':_0x17ebcd(0x11d),'sessionIdDescription':_0x17ebcd(0x102),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x17ebcd(0x127),'maxRetries':_0x17ebcd(0x10e),'save':_0x17ebcd(0x118),'saving':_0x17ebcd(0x124),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x17ebcd(0x12a),'configSaved':_0x17ebcd(0x129),'configError':_0x17ebcd(0x11e),'apiApplyInfo':{'title':_0x17ebcd(0x11f),'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':'Univer\x20AI\x20Console','getStarted':_0x17ebcd(0x110)},'validation':{'apiKeyRequired':_0x17ebcd(0x120),'apiKeyTooShort':_0x17ebcd(0x106),'invalidConfig':_0x17ebcd(0x104),'invalidApiKey':_0x17ebcd(0x115)},'connectionStatus':{'disconnected':_0x17ebcd(0x128),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x17ebcd(0xfe),'sessionOccupied':_0x17ebcd(0x126),'networkError':_0x17ebcd(0x100),'maxRetriesExceeded':_0x17ebcd(0x10f)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2566b9=_0x3f9a;(function(_0x59d53e,_0x194195){const _0x328fbd=_0x3f9a,_0x4a7565=_0x59d53e();while(!![]){try{const _0xce0a1f=parseInt(_0x328fbd(0xc9))/0x1*(parseInt(_0x328fbd(0xd3))/0x2)+-parseInt(_0x328fbd(0xc7))/0x3+-parseInt(_0x328fbd(0xbf))/0x4*(parseInt(_0x328fbd(0xcf))/0x5)+-parseInt(_0x328fbd(0xc5))/0x6+-parseInt(_0x328fbd(0xc8))/0x7+parseInt(_0x328fbd(0xc0))/0x8+parseInt(_0x328fbd(0xcc))/0x9;if(_0xce0a1f===_0x194195)break;else _0x4a7565['push'](_0x4a7565['shift']());}catch(_0x412182){_0x4a7565['push'](_0x4a7565['shift']());}}}(_0x176e,0xe3f1f));const e={'mcpStatus':{'disconnected':_0x2566b9(0xd5),'connecting':_0x2566b9(0xec),'connected':_0x2566b9(0xe6),'failed':_0x2566b9(0xe4),'retrying':'MCP\x20Retrying...','unknown':_0x2566b9(0xc6),'missingApiKey':_0x2566b9(0xdf),'invalidApiKey':_0x2566b9(0xc2),'sessionOccupied':_0x2566b9(0xbb),'networkError':_0x2566b9(0xde),'maxRetriesExceeded':_0x2566b9(0xdd),'clickToConnect':_0x2566b9(0xbd),'clickToConfigure':_0x2566b9(0xce)},'mcpConfig':{'title':_0x2566b9(0xe2),'description':_0x2566b9(0xcd),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2566b9(0xcb),'apiKeyHint':_0x2566b9(0xe9),'enableAuth':_0x2566b9(0xda),'enableAuthHint':_0x2566b9(0xe7),'connectionInfo':_0x2566b9(0xdc),'mcpClientConfig':_0x2566b9(0xdc),'configInstructions':_0x2566b9(0xbe),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2566b9(0xc4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2566b9(0xe3),'sessionId':'Session\x20ID','sessionIdDescription':_0x2566b9(0xbc),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2566b9(0xd7),'maxRetries':_0x2566b9(0xe8),'save':_0x2566b9(0xc1),'saving':_0x2566b9(0xca),'note1':_0x2566b9(0xdb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2566b9(0xba),'description':_0x2566b9(0xd9),'univerAiLabel':_0x2566b9(0xd4),'getStarted':_0x2566b9(0xee)},'validation':{'apiKeyRequired':_0x2566b9(0xd0),'apiKeyTooShort':_0x2566b9(0xd2),'invalidConfig':_0x2566b9(0xe1),'invalidApiKey':_0x2566b9(0xd6)},'connectionStatus':{'disconnected':_0x2566b9(0xc3),'connecting':'Connecting...','connected':_0x2566b9(0xd1),'failed':'Connection\x20Failed','retrying':_0x2566b9(0xed)},'connectionError':{'missingApiKey':_0x2566b9(0xeb),'invalidApiKey':_0x2566b9(0xd8),'sessionOccupied':_0x2566b9(0xe0),'networkError':_0x2566b9(0xea),'maxRetriesExceeded':_0x2566b9(0xe5)}}},n=e;module['exports']=n;function _0x3f9a(_0x2f8f59,_0x14cf05){const _0x176eeb=_0x176e();return _0x3f9a=function(_0x3f9a1b,_0xe53ffd){_0x3f9a1b=_0x3f9a1b-0xba;let _0x245e04=_0x176eeb[_0x3f9a1b];return _0x245e04;},_0x3f9a(_0x2f8f59,_0x14cf05);}function _0x176e(){const _0x1ac252=['Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','MCP:\x20API\x20Key\x20Missing','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','MCP\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Connecting...','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','MCP:\x20Session\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','29908uVFmNe','4400152OWVBHA','Save\x20Configuration','MCP:\x20Invalid\x20API\x20Key','Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','5397120BZtTKR','MCP\x20Unknown\x20Status','265608LHdQAk','9113937EHDyze','100277xJQJwu','Saving...','Enter\x20your\x20API\x20key','34074117XrtvBj','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','945IZZmqL','API\x20key\x20is\x20required','Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','6UcfxLB','Univer\x20AI\x20Console','MCP\x20Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x176e=function(){return _0x1ac252;};return _0x176e();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x28a9(){const _0x21aa81=['168688IGybcA','未连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置参数:','超出最大重试次数,请稍后再试','MCP\x20连接失败','需要\x20API\x20密钥才能连接','MCP:\x20无效的\x20API\x20密钥','MCP\x20连接中...','2877357BuHGuC','启用身份验证','2CzVdEx','点击配置\x20MCP','请输入您的\x20API\x20密钥','启用身份验证以获得安全连接','配置保存失败','20QOlUwg','464137FpCRwA','MCP\x20已连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','API\x20密钥','66MWfCCd','配置步骤:','配置无效','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20客户端配置','您的\x20API\x20密钥将在此浏览器中本地存储','重连中...','API\x20密钥无效,请检查密钥是否正确','4wzucwE','API\x20密钥不能为空','连接失败','205130IHDEqq','点击连接\x20MCP','MCP:\x20会话被占用','63069hviPNY','API\x20密钥无效,请检查您的密钥后重试','已连接','什么是\x20API\x20密钥?','将配置添加到您的\x20MCP\x20客户端设置文件中','您的\x20API\x20密钥安全存储在本地存储中','1442485gJwqMm','MCP\x20已断开','3665871XftMLx','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20缺少\x20API\x20密钥','保存配置'];_0x28a9=function(){return _0x21aa81;};return _0x28a9();}const _0x2da605=_0x45af;(function(_0x14c36f,_0x3d13c5){const _0x16d571=_0x45af,_0x1e525a=_0x14c36f();while(!![]){try{const _0x2e8ea5=-parseInt(_0x16d571(0x193))/0x1*(-parseInt(_0x16d571(0x18d))/0x2)+parseInt(_0x16d571(0x1a6))/0x3*(parseInt(_0x16d571(0x1a0))/0x4)+-parseInt(_0x16d571(0x1a3))/0x5*(-parseInt(_0x16d571(0x198))/0x6)+-parseInt(_0x16d571(0x18b))/0x7+-parseInt(_0x16d571(0x182))/0x8+-parseInt(_0x16d571(0x17e))/0x9+-parseInt(_0x16d571(0x192))/0xa*(-parseInt(_0x16d571(0x1ac))/0xb);if(_0x2e8ea5===_0x3d13c5)break;else _0x1e525a['push'](_0x1e525a['shift']());}catch(_0x3e2a9d){_0x1e525a['push'](_0x1e525a['shift']());}}}(_0x28a9,0x57b5c));function _0x45af(_0x21de11,_0xa22c4d){const _0x28a916=_0x28a9();return _0x45af=function(_0x45afab,_0x2d4873){_0x45afab=_0x45afab-0x17d;let _0x3cae26=_0x28a916[_0x45afab];return _0x3cae26;},_0x45af(_0x21de11,_0xa22c4d);}const e={'mcpStatus':{'disconnected':_0x2da605(0x17d),'connecting':_0x2da605(0x18a),'connected':_0x2da605(0x194),'failed':_0x2da605(0x187),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','missingApiKey':_0x2da605(0x180),'invalidApiKey':_0x2da605(0x189),'sessionOccupied':_0x2da605(0x1a5),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2da605(0x1a4),'clickToConfigure':_0x2da605(0x18e)},'mcpConfig':{'title':_0x2da605(0x196),'description':_0x2da605(0x17f),'apiKey':_0x2da605(0x197),'apiKeyPlaceholder':_0x2da605(0x18f),'apiKeyHint':_0x2da605(0x19d),'enableAuth':_0x2da605(0x18c),'enableAuthHint':_0x2da605(0x190),'connectionInfo':_0x2da605(0x19c),'mcpClientConfig':_0x2da605(0x19c),'configInstructions':_0x2da605(0x184),'configStepTitle':_0x2da605(0x199),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2da605(0x1aa),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x2da605(0x195),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x2da605(0x185),'maxRetries':'最大重试次数','save':_0x2da605(0x181),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x2da605(0x1ab),'configSaved':'配置保存成功','configError':_0x2da605(0x191),'apiApplyInfo':{'title':_0x2da605(0x1a9),'description':_0x2da605(0x19b),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2da605(0x1a1),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x2da605(0x19a),'invalidApiKey':_0x2da605(0x19f)},'connectionStatus':{'disconnected':_0x2da605(0x183),'connecting':'连接中...','connected':_0x2da605(0x1a8),'failed':_0x2da605(0x1a2),'retrying':_0x2da605(0x19e)},'connectionError':{'missingApiKey':_0x2da605(0x188),'invalidApiKey':_0x2da605(0x1a7),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x2da605(0x186)}}};module['exports']=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2e9de=_0x350c;function _0x350c(_0x19384f,_0x27a616){const _0x282817=_0x2828();return _0x350c=function(_0x350c90,_0x329257){_0x350c90=_0x350c90-0xba;let _0x3c49a7=_0x282817[_0x350c90];return _0x3c49a7;},_0x350c(_0x19384f,_0x27a616);}(function(_0x3f941c,_0x253351){const _0x4b061c=_0x350c,_0x27e15c=_0x3f941c();while(!![]){try{const _0x354ccb=-parseInt(_0x4b061c(0xc3))/0x1*(parseInt(_0x4b061c(0xf0))/0x2)+parseInt(_0x4b061c(0xe8))/0x3+parseInt(_0x4b061c(0xdc))/0x4+parseInt(_0x4b061c(0xbf))/0x5*(-parseInt(_0x4b061c(0xea))/0x6)+parseInt(_0x4b061c(0xe1))/0x7*(-parseInt(_0x4b061c(0xe2))/0x8)+parseInt(_0x4b061c(0xe6))/0x9+parseInt(_0x4b061c(0xbd))/0xa*(parseInt(_0x4b061c(0xde))/0xb);if(_0x354ccb===_0x253351)break;else _0x27e15c['push'](_0x27e15c['shift']());}catch(_0x44b1c6){_0x27e15c['push'](_0x27e15c['shift']());}}}(_0x2828,0x3dc8e));const e={'mcpStatus':{'disconnected':_0x2e9de(0xc4),'connecting':_0x2e9de(0xe0),'connected':'MCP\x20Connected','failed':_0x2e9de(0xd1),'retrying':_0x2e9de(0xe7),'unknown':_0x2e9de(0xe9),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x2e9de(0xc1),'sessionOccupied':_0x2e9de(0xc8),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2e9de(0xd8),'clickToConfigure':_0x2e9de(0xda)},'mcpConfig':{'title':_0x2e9de(0xf1),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2e9de(0xdb),'apiKeyPlaceholder':_0x2e9de(0xf3),'apiKeyHint':_0x2e9de(0xca),'enableAuth':_0x2e9de(0xcb),'enableAuthHint':_0x2e9de(0xe3),'connectionInfo':_0x2e9de(0xc6),'mcpClientConfig':_0x2e9de(0xc6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2e9de(0xd0),'configStep1':_0x2e9de(0xbb),'configStep2':_0x2e9de(0xe4),'configStep3':_0x2e9de(0xce),'sessionId':'Session\x20ID','sessionIdDescription':_0x2e9de(0xd2),'authorizationDescription':_0x2e9de(0xed),'configParameters':_0x2e9de(0xe5),'maxRetries':_0x2e9de(0xec),'save':_0x2e9de(0xc0),'saving':_0x2e9de(0xd3),'note1':_0x2e9de(0xc2),'note2':_0x2e9de(0xf2),'configSaved':_0x2e9de(0xd9),'configError':_0x2e9de(0xc7),'apiApplyInfo':{'title':_0x2e9de(0xd5),'description':_0x2e9de(0xcf),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2e9de(0xcd)},'validation':{'apiKeyRequired':_0x2e9de(0xbe),'apiKeyTooShort':_0x2e9de(0xba),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2e9de(0xeb)},'connectionStatus':{'disconnected':_0x2e9de(0xdd),'connecting':_0x2e9de(0xc9),'connected':_0x2e9de(0xc5),'failed':_0x2e9de(0xdf),'retrying':_0x2e9de(0xd4)},'connectionError':{'missingApiKey':_0x2e9de(0xbc),'invalidApiKey':_0x2e9de(0xd7),'sessionOccupied':_0x2e9de(0xef),'networkError':_0x2e9de(0xd6),'maxRetriesExceeded':_0x2e9de(0xcc)}}},n=e;function _0x2828(){const _0x45f06b=['MCP\x20Disconnected','Connected','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20Occupied','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\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.','Configuration\x20Steps:','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','Retrying...','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','API\x20Key','640196GKdwsn','Disconnected','11bPeigm','Connection\x20Failed','MCP\x20Connecting...','308371GBRUQf','48nKZrVs','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','1166922ZZGreS','MCP\x20Retrying...','167589VgrNSf','MCP\x20Unknown\x20Status','87756JAvQzx','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','exports','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','2FjFPuq','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required\x20to\x20connect','6937330ldrtOp','API\x20key\x20is\x20required','95RCSNEP','Save\x20Configuration','MCP:\x20Invalid\x20API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','244021NtBrZM'];_0x2828=function(){return _0x45f06b;};return _0x2828();}module[_0x2e9de(0xee)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x219a03=_0x3cee;(function(_0x3b00cb,_0x483d01){var _0x4b6d48=_0x3cee,_0x2137f1=_0x3b00cb();while(!![]){try{var _0x4bf52a=parseInt(_0x4b6d48(0x192))/0x1*(parseInt(_0x4b6d48(0x13f))/0x2)+-parseInt(_0x4b6d48(0x1c3))/0x3*(-parseInt(_0x4b6d48(0x21c))/0x4)+-parseInt(_0x4b6d48(0x13e))/0x5*(parseInt(_0x4b6d48(0x153))/0x6)+parseInt(_0x4b6d48(0x205))/0x7*(parseInt(_0x4b6d48(0x198))/0x8)+-parseInt(_0x4b6d48(0x19e))/0x9*(-parseInt(_0x4b6d48(0x184))/0xa)+parseInt(_0x4b6d48(0x17f))/0xb+-parseInt(_0x4b6d48(0x1e2))/0xc*(parseInt(_0x4b6d48(0x1ca))/0xd);if(_0x4bf52a===_0x483d01)break;else _0x2137f1['push'](_0x2137f1['shift']());}catch(_0x3f287e){_0x2137f1['push'](_0x2137f1['shift']());}}}(_0x56a1,0x70b00));var Ee=Object[_0x219a03(0x131)],we=(_0xb66f6a,_0x103e87,_0x2c5921)=>_0x103e87 in _0xb66f6a?Ee(_0xb66f6a,_0x103e87,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c5921}):_0xb66f6a[_0x103e87]=_0x2c5921,x=(_0xca48e3,_0x27252f,_0x1a2895)=>we(_0xca48e3,typeof _0x27252f!=_0x219a03(0x265)?_0x27252f+'':_0x27252f,_0x1a2895);import{LocaleService as _0xc33df3,Inject as _0x42ebfc,Injector as _0x5ede34,IConfigService as _0x29ba2c,ILocalStorageService as _0x316f47,ILogService as _0x4d889b,Disposable as _0x1f0c2f,CommandType as _0x4168e3,ICommandService as _0x5da6fe,DependentOn as _0xdb2fad,Plugin as _0x856cee,merge as _0x152593}from'@univerjs/core';import{jsxs as _0xb22d85,jsx as _0x288285}from'react/jsx-runtime';function _0x3cee(_0x4fe46b,_0x48d92f){var _0x56a18a=_0x56a1();return _0x3cee=function(_0x3cee31,_0x4ee039){_0x3cee31=_0x3cee31-0x10f;var _0x5c8af8=_0x56a18a[_0x3cee31];return _0x5c8af8;},_0x3cee(_0x4fe46b,_0x48d92f);}import{MCPConnectionStatus as _0x38d350,MCPConnectionError as _0x109ccb,MCPConnectionController as _0x595033,MCP_PLUGIN_CONFIG_KEY as _0x41f305,UniverMCPPlugin as _0x3412ea}from'@univerjs-pro/mcp';import{Input as _0x35eb2b,Button as _0xf8f352,MessageType as _0x4b0dc2,Tooltip as _0x6b526f,clsx as _0xdad1b}from'@univerjs/design';import{useDependency as _0x43a656,useObservable as _0x58c5e8,IUIPartsService as _0x5a2bd3,IDialogService as _0x42dd90,IMessageService as _0x350eed,ComponentManager as _0xd402ee,connectInjector as _0x2400a6,BuiltInUIPart as _0x5be334,MenuItemType as _0x14d87f,RibbonStartGroup as _0x2d020d,IMenuManagerService as _0x3064d0}from'@univerjs/ui';import{BehaviorSubject as _0x249cb6}from'rxjs';import{forwardRef as _0x11578c,useRef as _0x3b634f,createElement as _0x1d8db8,useState as _0x2f1866,useCallback as _0x2db746}from'react';import{ISocketService as _0x140f0d,WebSocketService as _0x324d21}from'@univerjs/network';var g=function(){var _0x45ecbb=_0x219a03;return g=Object[_0x45ecbb(0x1f3)]||function(_0x526bae){var _0x45bfef=_0x45ecbb;for(var _0x3fc882,_0x32197b=0x1,_0x109742=arguments[_0x45bfef(0x23e)];_0x32197b<_0x109742;_0x32197b++){_0x3fc882=arguments[_0x32197b];for(var _0x1626da in _0x3fc882)Object[_0x45bfef(0x1d0)][_0x45bfef(0x222)]['call'](_0x3fc882,_0x1626da)&&(_0x526bae[_0x1626da]=_0x3fc882[_0x1626da]);}return _0x526bae;},g[_0x45ecbb(0x22e)](this,arguments);},We=function(_0x5d7b69,_0x44b425){var _0xb85d29=_0x219a03,_0x5bf8c1={};for(var _0x4645bc in _0x5d7b69)Object[_0xb85d29(0x1d0)][_0xb85d29(0x222)][_0xb85d29(0x22f)](_0x5d7b69,_0x4645bc)&&_0x44b425[_0xb85d29(0x1f1)](_0x4645bc)<0x0&&(_0x5bf8c1[_0x4645bc]=_0x5d7b69[_0x4645bc]);if(_0x5d7b69!=null&&typeof Object[_0xb85d29(0x144)]==_0xb85d29(0x1b9)){for(var _0x2127fb=0x0,_0x4645bc=Object['getOwnPropertySymbols'](_0x5d7b69);_0x2127fb<_0x4645bc['length'];_0x2127fb++)_0x44b425[_0xb85d29(0x1f1)](_0x4645bc[_0x2127fb])<0x0&&Object['prototype']['propertyIsEnumerable'][_0xb85d29(0x22f)](_0x5d7b69,_0x4645bc[_0x2127fb])&&(_0x5bf8c1[_0x4645bc[_0x2127fb]]=_0x5d7b69[_0x4645bc[_0x2127fb]]);}return _0x5bf8c1;},b=_0x11578c(function(_0x1511d3,_0x2817fa){var _0x2b2374=_0x219a03,_0x3615c0=_0x1511d3[_0x2b2374(0x230)],_0xafcc09=_0x1511d3['id'],_0x868e9b=_0x1511d3[_0x2b2374(0x138)],_0x5b1b5e=_0x1511d3['extend'],_0x37f581=We(_0x1511d3,[_0x2b2374(0x230),'id',_0x2b2374(0x138),'extend']),_0x1db721=_0x2b2374(0x24c)[_0x2b2374(0x1d9)](_0xafcc09,'\x20')[_0x2b2374(0x1d9)](_0x868e9b||'')[_0x2b2374(0x248)](),_0x57e64d=_0x3b634f('_'[_0x2b2374(0x1d9)](Xe()));return le(_0x3615c0,''['concat'](_0xafcc09),{'defIds':_0x3615c0['defIds'],'idSuffix':_0x57e64d['current']},g({'ref':_0x2817fa,'className':_0x1db721},_0x37f581),_0x5b1b5e);});function le(_0x481a5a,_0x150a6b,_0x307d42,_0x1cc29e,_0x18d67a){var _0x3825c7=_0x219a03;return _0x1d8db8(_0x481a5a[_0x3825c7(0x146)],g(g({'key':_0x150a6b},qe(_0x481a5a,_0x307d42,_0x18d67a)),_0x1cc29e),(Ze(_0x481a5a,_0x307d42)['children']||[])[_0x3825c7(0x134)](function(_0x561fdb,_0x32059a){var _0x40fa49=_0x3825c7;return le(_0x561fdb,''['concat'](_0x150a6b,'-')[_0x40fa49(0x1d9)](_0x481a5a[_0x40fa49(0x146)],'-')[_0x40fa49(0x1d9)](_0x32059a),_0x307d42,void 0x0,_0x18d67a);}));}function qe(_0x1ce141,_0x3f4732,_0x2f3372){var _0x4391fb=_0x219a03,_0x5afae7=g({},_0x1ce141[_0x4391fb(0x1ad)]);_0x2f3372!=null&&_0x2f3372[_0x4391fb(0x20b)]&&_0x5afae7['fill']===_0x4391fb(0x20b)&&(_0x5afae7[_0x4391fb(0x164)]=_0x2f3372[_0x4391fb(0x20b)]),_0x1ce141[_0x4391fb(0x146)]==='mask'&&_0x5afae7['id']&&(_0x5afae7['id']=_0x5afae7['id']+_0x3f4732[_0x4391fb(0x243)]),Object[_0x4391fb(0x239)](_0x5afae7)[_0x4391fb(0x257)](function(_0x201dfb){var _0x25ee45=_0x4391fb,_0x51c742=_0x201dfb[0x0],_0xaa8ed6=_0x201dfb[0x1];_0x51c742===_0x25ee45(0x19c)&&typeof _0xaa8ed6==_0x25ee45(0x1d1)&&(_0x5afae7[_0x51c742]=_0xaa8ed6[_0x25ee45(0x1e5)](/url\(#(.*)\)/,_0x25ee45(0x1d4)['concat'](_0x3f4732[_0x25ee45(0x243)],')')));});var _0x4b70c3=_0x3f4732['defIds'];return!_0x4b70c3||_0x4b70c3[_0x4391fb(0x23e)]===0x0||(_0x1ce141[_0x4391fb(0x146)]==='use'&&_0x5afae7[_0x4391fb(0x22a)]&&(_0x5afae7[_0x4391fb(0x22a)]=_0x5afae7[_0x4391fb(0x22a)]+_0x3f4732[_0x4391fb(0x243)]),Object[_0x4391fb(0x239)](_0x5afae7)[_0x4391fb(0x257)](function(_0x15ba98){var _0x5e81ab=_0x4391fb,_0x5ce99d=_0x15ba98[0x0],_0xa62253=_0x15ba98[0x1];typeof _0xa62253==_0x5e81ab(0x1d1)&&(_0x5afae7[_0x5ce99d]=_0xa62253[_0x5e81ab(0x1e5)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3f4732[_0x5e81ab(0x243)],')')));})),_0x5afae7;}function Ze(_0x348f86,_0x2c77f0){var _0x3817d0=_0x219a03,_0x5dde1a,_0x35bfd2=_0x2c77f0['defIds'];return!_0x35bfd2||_0x35bfd2[_0x3817d0(0x23e)]===0x0?_0x348f86:_0x348f86[_0x3817d0(0x146)]===_0x3817d0(0x17a)&&(!((_0x5dde1a=_0x348f86[_0x3817d0(0x1bf)])===null||_0x5dde1a===void 0x0)&&_0x5dde1a[_0x3817d0(0x23e)])?g(g({},_0x348f86),{'children':_0x348f86['children'][_0x3817d0(0x134)](function(_0x1a186f){var _0x2a36a5=_0x3817d0;return typeof _0x1a186f[_0x2a36a5(0x1ad)]['id']==_0x2a36a5(0x1d1)&&_0x35bfd2&&_0x35bfd2[_0x2a36a5(0x1ab)](_0x1a186f[_0x2a36a5(0x1ad)]['id'])?g(g({},_0x1a186f),{'attrs':g(g({},_0x1a186f[_0x2a36a5(0x1ad)]),{'id':_0x1a186f[_0x2a36a5(0x1ad)]['id']+_0x2c77f0['idSuffix']})}):_0x1a186f;})}):_0x348f86;}function Xe(){var _0x13739a=_0x219a03;return Math['random']()[_0x13739a(0x1d3)](0x24)[_0x13739a(0x25a)](0x2,0x8);}b['displayName']='UniverIcon';var Je={'tag':'svg','attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x252),'width':'1em','height':_0x219a03(0x23f)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':'currentColor','d':_0x219a03(0x152),'fillRule':_0x219a03(0x1da),'clipRule':_0x219a03(0x1da)}}]},ue=_0x11578c(function(_0x5c9695,_0x13bee0){return _0x1d8db8(b,Object['assign']({},_0x5c9695,{'id':'check-mark-icon','ref':_0x13bee0,'icon':Je}));});ue[_0x219a03(0x195)]=_0x219a03(0x1cf);var Qe={'tag':_0x219a03(0x188),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x244),'width':'1em','height':'1em'},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':_0x219a03(0x206),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x219a03(0x167),'strokeLinejoin':_0x219a03(0x167),'strokeWidth':1.33}}]},ve=_0x11578c(function(_0x1876e2,_0x42619c){var _0x4fa98e=_0x219a03;return _0x1d8db8(b,Object[_0x4fa98e(0x1f3)]({},_0x1876e2,{'id':_0x4fa98e(0x1dd),'ref':_0x42619c,'icon':Qe}));});ve[_0x219a03(0x195)]=_0x219a03(0x10f);var en={'tag':'svg','attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x252),'width':_0x219a03(0x23f),'height':_0x219a03(0x23f)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x213),'d':_0x219a03(0x16b)}},{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x213),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':_0x219a03(0x213),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x219a03(0x1da),'clipRule':_0x219a03(0x1da)}}]},de=_0x11578c(function(_0x17fa05,_0x275cf2){var _0x155cbc=_0x219a03;return _0x1d8db8(b,Object[_0x155cbc(0x1f3)]({},_0x17fa05,{'id':_0x155cbc(0x18a),'ref':_0x275cf2,'icon':en}));});de[_0x219a03(0x195)]=_0x219a03(0x132);var nn={'tag':_0x219a03(0x188),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x219a03(0x252),'width':_0x219a03(0x23f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x219a03(0x18e)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':_0x219a03(0x213),'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':_0x219a03(0x167),'strokeLinejoin':_0x219a03(0x167),'strokeWidth':1.2}}]},{'tag':_0x219a03(0x17a),'attrs':{},'children':[{'tag':_0x219a03(0x145),'attrs':{'id':_0x219a03(0x1d6)},'children':[{'tag':'path','attrs':{'fill':_0x219a03(0x14b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x219a03(0x1d6)]},ge=_0x11578c(function(_0x44e5a0,_0x901688){return _0x1d8db8(b,Object['assign']({},_0x44e5a0,{'id':'off-line-icon','ref':_0x901688,'icon':nn}));});ge['displayName']=_0x219a03(0x1e4);var rn={'tag':_0x219a03(0x188),'attrs':{'xmlns':_0x219a03(0x229),'fill':_0x219a03(0x1a8),'viewBox':_0x219a03(0x20d),'width':'1em','height':_0x219a03(0x23f)},'children':[{'tag':'g','attrs':{'clipPath':_0x219a03(0x253)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'stroke':'currentColor','d':_0x219a03(0x25e),'strokeLinecap':_0x219a03(0x167),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x219a03(0x17a),'attrs':{},'children':[{'tag':_0x219a03(0x145),'attrs':{'id':_0x219a03(0x118)},'children':[{'tag':_0x219a03(0x13c),'attrs':{'fill':_0x219a03(0x14b),'d':_0x219a03(0x20a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x219a03(0x118)]},fe=_0x11578c(function(_0x3d872d,_0x234080){var _0x52cd9c=_0x219a03;return _0x1d8db8(b,Object[_0x52cd9c(0x1f3)]({},_0x3d872d,{'id':_0x52cd9c(0x23d),'ref':_0x234080,'icon':rn}));});fe[_0x219a03(0x195)]=_0x219a03(0x235);function _0x56a1(){var _0x5dbb67=['CloseSmallSingle','mcpStatus.clickToConnect','validateApiKey','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Max\x20Retries','getItem','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_connectionController','mcpConfig.connectionError.sessionOccupied','on-line-icon_clip0_910_349','_componentManager','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyTooShort','univer-flex-1','errorMessage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.sessionIdDescription','univer-space-y-5','span','mcpConfig.validation.invalidApiKey','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','setItem','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-flex\x20univer-gap-3','value','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.note1','CONNECTED','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcp-config-dialog','connectionError$','univer-flex\x20univer-items-start\x20univer-gap-3','Configuration\x20Parameters:','defineProperty','HelpSingle','_localStorageService','map','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpStatus.invalidApiKey','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','className','mcpStatus.clickToConfigure','\x20-\x20','配置保存失败','path','_initConfigSync','1215845TkcURy','55400oCzwoB','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP_UI_PLUGIN','onStarting','Invalid\x20configuration','getOwnPropertySymbols','clipPath','tag','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','div','复制以下\x20JSON\x20配置','white','subscribe','showDeveloperTools','mcpConfig.apiApplyInfo.getStarted','_validateConfig','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','6pMlMgL','配置无效','_menuManagerService','univer-text-xs\x20univer-text-gray-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-space-y-2','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Client\x20Configuration','MCP\x20Connecting...','univer-bg-green-500','mcpServerUrl','mcpConfig.connectionError.invalidApiKey','MCP\x20客户端配置','univer-min-w-0\x20univer-flex-1','配置参数:','Enter\x20your\x20API\x20key','univer-flex\x20univer-cursor-pointer\x20univer-items-center','fill','MCP:\x20超出最大重试次数','Authorization:','round','_injector','OTHERS','_apiKey$','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','DISCONNECTED','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.apiKeyHint','Configuration\x20Notes:','connectionStatus$','mcpStatus.connected','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','_uiPartsService','_config$','MCP:\x20Max\x20Retries\x20Exceeded','_dialogService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','defs','univer-text-green-500','mcpConfig.connectionStatus.connecting','apiKey','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','1744413fTHiXB','Enable\x20authentication\x20for\x20secure\x20connections','BUTTON','mcpConfig.description','MCP:\x20会话被占用','10SqShRM','Save\x20Configuration','mcpConfig.saving','会话当前被占用,请稍后再试','svg','isValid','help-single','mcpStatus.sessionOccupied','Copy\x20the\x20JSON\x20configuration\x20below','getConfig','url(#off-line-icon_clip0_910_343)','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-400','10gQDtAQ','请输入您的\x20API\x20密钥','mcpConfig.connectionStatus.connected','displayName','保存中...','bottom','8AUqjvr','showConfigPanel','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer.ai','mask','getOwnPropertyDescriptor','5611176bCudIU','show','mcpConfig.configStep2','univer-bg-gray-500','mcpConfig.note2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','MCP\x20状态未知','MCP\x20Configuration','MCP\x20连接中...','none','_registerComponent','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','includes','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','attrs','Close','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','off','最大重试次数','Success','MCP\x20Retrying...','mcp-ui.command.openConfigPanel','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','function','Error','Connected','mcpConfig.connectionStatus.retrying','_createConfigPanelComponent','MCP\x20Unknown\x20Status','children','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Univer\x20AI\x20控制台','Connection\x20Failed','105897WKWuEX','INVALID_API_KEY','CONNECTING','重连中...','univer_session_id:','univer-space-y-3','mcpConfig.title','403ZsCtMw','register','mcpConfig.apiKey','API\x20key\x20is\x20required\x20to\x20connect','Bearer\x20','CheckMarkIcon','prototype','string','保存配置','toString','url(#$1','Saving...','off-line-icon_clip0_910_343','mcpConfig.validation.invalidConfig','mcpStatus.unknown','concat','evenodd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','配置保存成功','close-small-single','_commandService','text','univer-space-y-4','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','639264izOZIi','mcpConfig.save','OffLineIcon','replace','Disconnected','has','MCP\x20已断开','univer-text-gray-500','SESSION_ID_OCCUPIED','mcpConfig.connectionError.maxRetriesExceeded','error','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','close','registerComponent','indexOf','univer-text-sm\x20univer-text-gray-500','assign','getCurrentConfig','超出最大重试次数,请稍后再试','univer-text-red-500','_initStatusComponent','_loading$','FAILED','setConfig','univer-flex\x20univer-items-center\x20univer-gap-3','univer.plus','univer-text-white','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20重连中...','MCP:\x20无效的\x20API\x20密钥','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_configService','mcpConfig.configSaved','4385087tIPHSm','M5.21243\x205.62036L11.8791\x2012.287','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','您的\x20API\x20密钥将在此浏览器中本地存储','push','M0\x200H16V16H0z','colorChannel1','univer-flex-shrink-0\x20univer-text-blue-500','0\x200\x2017\x2016','removeItem','univer-text-xs\x20univer-text-gray-600','未连接','COMMAND','univer-font-medium','currentColor','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_blank','mcpStatus.connecting','MCP:\x20缺少\x20API\x20密钥','univer-bg-blue-500','mcp.apiKey','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','76VGMaba','next','API\x20Key','需要\x20API\x20密钥才能连接','MCP:\x20Session\x20Occupied','API\x20密钥长度至少需要\x2010\x20位','hasOwnProperty','add','mcpConfig.connectionError.networkError','mcpConfig.configStep1','MCPConfigPanel','启用身份验证以获得安全连接','_handleConfigure','http://www.w3.org/2000/svg','xlink:href','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','disposeWithMe','apply','call','icon','_logService','_messageService','您的\x20API\x20密钥安全存储在本地存储中','MAX_RETRIES_EXCEEDED','OnLineIcon','_initializeCommands','已连接','get','entries','javascript:void(0)','MCP:\x20Network\x20Error','_mcpCoreConfig$','on-line-icon','length','1em','mcpStatus.maxRetriesExceeded','NETWORK_ERROR','MCP:\x20API\x20Key\x20Missing','idSuffix','0\x200\x2017\x2017','mcpConfig.apiApplyInfo.title','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','trim','MCP\x20连接失败','pre','几秒钟内获取您的\x20API\x20密钥','univerjs-icon\x20univerjs-icon-','mcpConfig.configStepTitle','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','_localeService','warn','0\x200\x2016\x2016','url(#on-line-icon_clip0_910_349)','subscribeConfigValue$','univer-flex\x20univer-items-start\x20univer-gap-2','Session\x20ID','forEach','NONE','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','substring','RETRYING','配置更改将立即生效','univer-mr-2\x20univer-flex\x20univer-text-xl','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_loadStoredApiKey','mcpConfig.validation.apiKeyRequired','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_mcpConnectionController','MCP\x20Connection\x20Failed','symbol','连接中...','_config','API\x20密钥','MenuIcon','Configuration\x20Steps:','MCP\x20Connected','open'];_0x56a1=function(){return _0x5dbb67;};return _0x56a1();}function tn(_0x4329c7){var _0x263507=_0x219a03,_0x334b25,_0xdf0f40;const {mcpCoreConfig:_0x1d0d5c,onSave:_0x486d16,loading:_0x3a1eae=!0x1,config:_0x258df9,connectionStatus$:_0x109b62,connectionError$:_0x306f0c,currentApiKey$:_0x1c3053,currentSessionId$:_0x136a90}=_0x4329c7,_0x10e766=_0x43a656(_0xc33df3),_0x39c68e=_0x58c5e8(_0x109b62,_0x38d350[_0x263507(0x16c)]),_0x1f3cb2=_0x58c5e8(_0x306f0c,_0x109ccb[_0x263507(0x258)]),_0x2832f3=_0x58c5e8(_0x136a90,''),_0x14b9e3=_0x58c5e8(_0x1c3053,''),[_0x277f9c,_0x13104b]=_0x2f1866(_0x14b9e3||''),_0x5ba8c7=!0x0,_0x56b99=_0x258df9[_0x263507(0x14d)]&&_0x1d0d5c[_0x263507(0x15d)]&&(_0x1d0d5c[_0x263507(0x15d)][_0x263507(0x1ab)]('univer.plus')||_0x1d0d5c[_0x263507(0x15d)][_0x263507(0x1ab)](_0x263507(0x19b))),_0x1d800d=(_0x334b25=_0x1d0d5c['mcpServerUrl'])==null?void 0x0:_0x334b25[_0x263507(0x1ab)](_0x263507(0x1fc)),_0x5a7ad0=(_0xdf0f40=_0x1d0d5c['mcpServerUrl'])==null?void 0x0:_0xdf0f40[_0x263507(0x1ab)](_0x263507(0x19b)),_0x267418=_0x1d800d?'https://console.univer.plus':'https://console.univer.ai',_0x279c72=_0x258df9['showDeveloperTools']&&(_0x1d800d||_0x5a7ad0),[_0x1c11e0,_0x33a683]=_0x2f1866(!_0x277f9c[_0x263507(0x248)]()),_0x302bde=(_0x5f1975,_0x268d7c)=>{var _0x589895=_0x263507;if(_0x268d7c===_0x109ccb[_0x589895(0x1c4)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5f1975){case _0x38d350['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x38d350[_0x589895(0x1c5)]:case _0x38d350[_0x589895(0x25b)]:return _0x589895(0x259);case _0x38d350[_0x589895(0x1f9)]:return _0x589895(0x140);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1c4481=(_0x4c2a8c,_0x338a03)=>{var _0x45e94a=_0x263507;if(_0x338a03===_0x109ccb[_0x45e94a(0x1c4)])return'univer-bg-red-500';switch(_0x4c2a8c){case _0x38d350[_0x45e94a(0x12a)]:return _0x45e94a(0x15c);case _0x38d350[_0x45e94a(0x1c5)]:case _0x38d350[_0x45e94a(0x25b)]:return _0x45e94a(0x219);case _0x38d350[_0x45e94a(0x1f9)]:return'univer-bg-red-500';default:return _0x45e94a(0x1a1);}},_0x253655=_0x47dda8=>{var _0x2e1f5a=_0x263507;switch(_0x47dda8){case _0x38d350[_0x2e1f5a(0x12a)]:return _0x10e766['t'](_0x2e1f5a(0x194));case _0x38d350[_0x2e1f5a(0x1c5)]:return _0x10e766['t'](_0x2e1f5a(0x17c));case _0x38d350[_0x2e1f5a(0x1f9)]:return _0x10e766['t']('mcpConfig.connectionStatus.failed');case _0x38d350[_0x2e1f5a(0x25b)]:return _0x10e766['t'](_0x2e1f5a(0x1bc));default:return _0x10e766['t']('mcpConfig.connectionStatus.disconnected');}},_0x3b32b4=_0x44768f=>{var _0x5b8d3d=_0x263507;switch(_0x44768f){case _0x109ccb[_0x5b8d3d(0x1c4)]:return _0x10e766['t'](_0x5b8d3d(0x15e));case _0x109ccb[_0x5b8d3d(0x1ea)]:return _0x10e766['t'](_0x5b8d3d(0x117));case _0x109ccb[_0x5b8d3d(0x241)]:return _0x10e766['t'](_0x5b8d3d(0x224));case _0x109ccb[_0x5b8d3d(0x234)]:return _0x10e766['t'](_0x5b8d3d(0x1eb));default:return'';}},_0x458da4=_0x2db746(()=>{var _0x7af514=_0x263507;const _0x53dee0={..._0x1d0d5c,'apiKey':_0x277f9c[_0x7af514(0x248)](),'enableAuth':_0x5ba8c7};_0x486d16(_0x53dee0);},[_0x1d0d5c,_0x277f9c,_0x5ba8c7,_0x486d16]),_0x258b7a=_0x277f9c[_0x263507(0x248)]()[_0x263507(0x23e)]>0x0;return _0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x288285('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0xb22d85('div',{'className':_0x263507(0x1fb),'children':[_0x288285(_0x263507(0x149),{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x288285(_0x263507(0x121),{'className':_0x263507(0x1fd),'children':'⚙'})}),_0x288285('div',{'children':_0x288285('p',{'className':_0x263507(0x1f2),'children':_0x10e766['t'](_0x263507(0x182))})})]})}),_0xb22d85(_0x263507(0x149),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x288285('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x302bde(_0x39c68e,_0x1f3cb2)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x1ed)+_0x1c4481(_0x39c68e,_0x1f3cb2)+_0x263507(0x1e1)}),_0x288285('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x253655(_0x39c68e)})]})}),_0x1f3cb2!==_0x109ccb[_0x263507(0x258)]&&(_0x39c68e===_0x38d350[_0x263507(0x1f9)]||_0x1f3cb2===_0x109ccb[_0x263507(0x1c4)])&&_0x288285(_0x263507(0x149),{'className':_0x263507(0x262),'children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x255),'children':[_0x288285(_0x263507(0x121),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x288285('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x3b32b4(_0x1f3cb2)})]})})]}),_0x288285('div',{'className':_0x263507(0x17e),'children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x120),'children':[_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x158),'children':[_0xb22d85(_0x263507(0x1ee),{'className':_0x263507(0x172),'children':[_0x288285(_0x263507(0x121),{'children':'🔑'}),'\x20',_0x10e766['t'](_0x263507(0x1cc)),_0x288285(_0x263507(0x121),{'className':'univer-text-red-500','children':'*'}),_0x56b99&&_0x288285('a',{'href':_0x263507(0x23a),'onClick':()=>_0x33a683(!0x0),'className':_0x263507(0x1b8),'title':_0x10e766['t'](_0x263507(0x245)),'children':_0x288285(de,{})})]}),_0x288285(_0x35eb2b,{'type':_0x263507(0x1df),'placeholder':_0x10e766['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x277f9c,'onChange':_0x13104b,'disabled':_0x3a1eae,'autoComplete':_0x263507(0x1b0)}),_0x288285('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10e766['t'](_0x263507(0x16e))})]}),_0x56b99&&_0x1c11e0&&_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x125),'children':[_0x288285('a',{'href':_0x263507(0x23a),'onClick':()=>_0x33a683(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','title':_0x263507(0x1ae),'children':_0x288285(ve,{})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1fe),'children':[_0x288285('div',{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x288285(_0x263507(0x121),{'className':'univer-text-blue-600','children':'🚀'})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x11c),'children':[_0x288285('h4',{'className':_0x263507(0x1ff),'children':_0x10e766['t']('mcpConfig.apiApplyInfo.title')}),_0x288285('p',{'className':_0x263507(0x178),'children':_0x10e766['t']('mcpConfig.apiApplyInfo.description')}),_0x288285(_0x263507(0x149),{'className':_0x263507(0x159),'children':_0x279c72&&_0xb22d85('a',{'href':_0x267418,'target':_0x263507(0x216),'rel':'noopener\x20noreferrer','className':_0x263507(0x19a),'children':[_0x288285(_0x263507(0x121),{'children':'🤖'}),_0x10e766['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x288285('span',{'className':_0x263507(0x191),'children':'↗'})]})}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x135),'children':['✨','\x20',_0x10e766['t'](_0x263507(0x14e))]})]})]})]}),_0x258df9[_0x263507(0x14d)]&&_0xb22d85('div',{'className':_0x263507(0x115),'children':[_0xb22d85('h4',{'className':_0x263507(0x11a),'children':[_0x288285('span',{'children':'🔗'}),'\x20',_0x10e766['t']('mcpConfig.connectionInfo')]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1e0),'children':[_0xb22d85(_0x263507(0x149),{'className':'univer-space-y-3','children':[_0x288285('p',{'className':_0x263507(0x20f),'children':_0x10e766['t']('mcpConfig.configInstructions')}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x158),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x128),'children':_0x10e766['t'](_0x263507(0x24d))}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1a3),'children':[_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x190),'children':[_0x288285('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x10e766['t'](_0x263507(0x225))]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x10e766['t'](_0x263507(0x1a0))]}),_0xb22d85('div',{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x10e766['t']('mcpConfig.configStep3')]})]})]})]}),_0xb22d85('div',{'className':_0x263507(0x158),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x128),'children':_0x263507(0x1a6)}),_0x288285(_0x263507(0x149),{'className':_0x263507(0x179),'children':_0x288285(_0x263507(0x24a),{'className':_0x263507(0x1c0),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x2832f3+_0x263507(0x207)+(_0x277f9c||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1c8),'children':[_0x288285('div',{'className':_0x263507(0x128),'children':_0x10e766['t']('mcpConfig.configParameters')}),_0xb22d85(_0x263507(0x149),{'className':'univer-space-y-2','children':[_0xb22d85(_0x263507(0x149),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x150)}),_0xb22d85('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x288285('div',{'className':_0x263507(0x25f),'children':_0x263507(0x1c7)}),_0x288285('div',{'className':_0x263507(0x156),'children':_0x10e766['t'](_0x263507(0x11f))})]})]}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x12f),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x150)}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x160),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x25f),'children':_0x263507(0x166)}),_0x288285('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10e766['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x288285(_0xf8f352,{'onClick':_0x458da4,'disabled':!_0x258b7a||_0x3a1eae,'className':_0x263507(0x137),'children':_0x3a1eae?_0xb22d85(_0x263507(0x121),{'className':_0x263507(0x190),'children':[_0x288285(_0x263507(0x121),{'children':'⟲'}),_0x10e766['t'](_0x263507(0x186))]}):_0xb22d85(_0x263507(0x121),{'className':_0x263507(0x190),'children':[_0x288285(ue,{}),_0x10e766['t'](_0x263507(0x1e3))]})}),_0x288285(_0x263507(0x149),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x126),'children':[_0x288285(_0x263507(0x121),{'className':_0x263507(0x20c),'children':'💡'}),_0xb22d85(_0x263507(0x149),{'className':_0x263507(0x1aa),'children':[_0x288285(_0x263507(0x149),{'className':_0x263507(0x212),'children':_0x263507(0x16f)}),_0xb22d85(_0x263507(0x149),{'children':['•',_0x10e766['t'](_0x263507(0x129))]}),_0xb22d85(_0x263507(0x149),{'children':['•',_0x10e766['t'](_0x263507(0x1a2))]})]})]})})]})})]});}const L='mcp-ui.config',ie={'showDeveloperTools':!0x1};var on=Object['getOwnPropertyDescriptor'],sn=(_0x229f52,_0x3632e2,_0x19c524,_0x15fd0c)=>{var _0x16ccc3=_0x219a03;for(var _0x447e2d=_0x15fd0c>0x1?void 0x0:_0x15fd0c?on(_0x3632e2,_0x19c524):_0x3632e2,_0x1f194a=_0x229f52[_0x16ccc3(0x23e)]-0x1,_0xa7b7e3;_0x1f194a>=0x0;_0x1f194a--)(_0xa7b7e3=_0x229f52[_0x1f194a])&&(_0x447e2d=_0xa7b7e3(_0x447e2d)||_0x447e2d);return _0x447e2d;},f=(_0x1c41e2,_0x194e13)=>(_0xcda950,_0x2c3d0b)=>_0x194e13(_0xcda950,_0x2c3d0b,_0x1c41e2);const T=_0x219a03(0x21a),R=_0x219a03(0x12d);let I=class extends _0x1f0c2f{constructor(_0x51151b,_0x4c71d5,_0x29eea0,_0x5736de,_0x2cbf96,_0x3b70f0,_0x1be05f,_0x550d38,_0x43e168,_0x4a3c84){var _0x13be67=_0x219a03;super(),x(this,'_loading$',new _0x249cb6(!0x1)),x(this,_0x13be67(0x23c),new _0x249cb6({})),x(this,_0x13be67(0x175),new _0x249cb6({})),x(this,_0x13be67(0x16a),new _0x249cb6('')),x(this,'_handleConfigSave',async _0x3e92af=>{var _0x2a5f40=_0x13be67,_0x1fbac0,_0x35ebf2;this['_loading$'][_0x2a5f40(0x21d)](!0x0);try{const _0xcfde55=await this[_0x2a5f40(0x14f)](_0x3e92af);if(!_0xcfde55[_0x2a5f40(0x189)]){this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1ba)],'content':_0xcfde55[_0x2a5f40(0x11d)]||this[_0x2a5f40(0x250)]['t'](_0x2a5f40(0x1d7))});return;}_0x3e92af[_0x2a5f40(0x17d)]?await this[_0x2a5f40(0x133)][_0x2a5f40(0x124)](T,_0x3e92af[_0x2a5f40(0x17d)][_0x2a5f40(0x248)]()):await this[_0x2a5f40(0x133)][_0x2a5f40(0x20e)](T),this['_apiKey$'][_0x2a5f40(0x21d)](((_0x1fbac0=_0x3e92af[_0x2a5f40(0x17d)])==null?void 0x0:_0x1fbac0[_0x2a5f40(0x248)]())||''),this[_0x2a5f40(0x263)]['__setCustomHeaders']({'Authorization':_0x2a5f40(0x1ce)+((_0x35ebf2=_0x3e92af['apiKey'])==null?void 0x0:_0x35ebf2[_0x2a5f40(0x248)]())}),this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1b2)],'content':this[_0x2a5f40(0x250)]['t'](_0x2a5f40(0x204))}),setTimeout(()=>{var _0x44ea7d=_0x2a5f40;this[_0x44ea7d(0x177)][_0x44ea7d(0x1ef)](R);},0x320);}catch(_0x12021a){this[_0x2a5f40(0x231)][_0x2a5f40(0x1ec)](_0x2a5f40(0x21b),_0x12021a),this[_0x2a5f40(0x232)][_0x2a5f40(0x19f)]({'type':_0x4b0dc2[_0x2a5f40(0x1ba)],'content':this[_0x2a5f40(0x250)]['t']('mcpConfig.configError')});}finally{this[_0x2a5f40(0x1f8)][_0x2a5f40(0x21d)](!0x1);}}),(this[_0x13be67(0x168)]=_0x51151b,this['_uiPartsService']=_0x4c71d5,this[_0x13be67(0x203)]=_0x29eea0,this['_localStorageService']=_0x5736de,this['_dialogService']=_0x2cbf96,this['_messageService']=_0x3b70f0,this['_componentManager']=_0x1be05f,this[_0x13be67(0x250)]=_0x550d38,this[_0x13be67(0x231)]=_0x43e168,this[_0x13be67(0x263)]=_0x4a3c84,this[_0x13be67(0x13d)](),this[_0x13be67(0x260)](),this[_0x13be67(0x1a9)]());}[_0x219a03(0x199)](){var _0x3f713d=_0x219a03;this[_0x3f713d(0x177)][_0x3f713d(0x26c)]({'id':R,'title':{'title':this[_0x3f713d(0x250)]['t'](_0x3f713d(0x1c9))},'children':{'label':_0x3f713d(0x226)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x276037=_0x3f713d;this[_0x276037(0x177)][_0x276037(0x1ef)](R);}});}[_0x219a03(0x1f4)](){var _0x25d7fa=_0x219a03;return this[_0x25d7fa(0x23c)][_0x25d7fa(0x127)];}[_0x219a03(0x1a9)](){var _0x566934=_0x219a03;this[_0x566934(0x22d)](this[_0x566934(0x119)][_0x566934(0x1cb)](_0x566934(0x226),this[_0x566934(0x1bd)]()));}['_createConfigPanelComponent'](){var _0x24cd74=_0x219a03;return _0x2400a6(()=>{var _0x642b94=_0x3cee,_0x1c13db,_0x25e497,_0x3348b5;return _0x288285(tn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x642b94(0x23c)][_0x642b94(0x127)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x642b94(0x1f8)][_0x642b94(0x127)],'connectionStatus$':(_0x1c13db=this[_0x642b94(0x263)])==null?void 0x0:_0x1c13db[_0x642b94(0x170)],'connectionError$':(_0x25e497=this[_0x642b94(0x263)])==null?void 0x0:_0x25e497['connectionError$'],'currentSessionId$':(_0x3348b5=this[_0x642b94(0x263)])==null?void 0x0:_0x3348b5['sessionId$']});},this[_0x24cd74(0x168)]);}['_initConfigSync'](){var _0x289d3e=_0x219a03;this[_0x289d3e(0x22d)](this[_0x289d3e(0x203)][_0x289d3e(0x254)](_0x41f305)[_0x289d3e(0x14c)](_0x3b8426=>{var _0x5b5866=_0x289d3e;this['_mcpCoreConfig$'][_0x5b5866(0x21d)](_0x3b8426||{});}));const _0x841626=this[_0x289d3e(0x203)][_0x289d3e(0x18d)](_0x41f305);this[_0x289d3e(0x23c)][_0x289d3e(0x21d)](_0x841626||{}),this['disposeWithMe'](this['_configService']['subscribeConfigValue$'](L)[_0x289d3e(0x14c)](_0xbb363f=>{var _0x239b1c=_0x289d3e;this[_0x239b1c(0x175)][_0x239b1c(0x21d)](_0xbb363f||{});}));const _0x4a5705=this[_0x289d3e(0x203)][_0x289d3e(0x18d)](L);this[_0x289d3e(0x175)][_0x289d3e(0x21d)](_0x4a5705||{});}async[_0x219a03(0x260)](){var _0x280060=_0x219a03;const _0x40c990=await this['_localStorageService'][_0x280060(0x114)](T);_0x40c990&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x280060(0x1ce)+_0x40c990}),this[_0x280060(0x16a)][_0x280060(0x21d)](_0x40c990));}async['_validateConfig'](_0x1c47e9){var _0x4651d2=_0x219a03;if(!_0x1c47e9[_0x4651d2(0x17d)]||_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]()[_0x4651d2(0x23e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4651d2(0x250)]['t'](_0x4651d2(0x261))};if(_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]()[_0x4651d2(0x23e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4651d2(0x250)]['t'](_0x4651d2(0x11b))};try{const _0x2c63cd=await this[_0x4651d2(0x168)][_0x4651d2(0x238)](_0x595033)[_0x4651d2(0x111)](_0x1c47e9[_0x4651d2(0x17d)][_0x4651d2(0x248)]());return _0x2c63cd[_0x4651d2(0x189)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c63cd[_0x4651d2(0x1ec)]||this[_0x4651d2(0x250)]['t'](_0x4651d2(0x122))};}catch(_0x48efd8){return console[_0x4651d2(0x251)](_0x4651d2(0x18f),_0x48efd8),{'isValid':!0x0};}}};I=sn([f(0x0,_0x42ebfc(_0x5ede34)),f(0x1,_0x5a2bd3),f(0x2,_0x29ba2c),f(0x3,_0x316f47),f(0x4,_0x42dd90),f(0x5,_0x350eed),f(0x6,_0x42ebfc(_0xd402ee)),f(0x7,_0x42ebfc(_0xc33df3)),f(0x8,_0x4d889b),f(0x9,_0x42ebfc(_0x595033))],I);const B={'id':_0x219a03(0x1b4),'type':_0x4168e3[_0x219a03(0x211)],'handler':async(_0x492d1b,_0xe2e8fc)=>(_0x492d1b[_0x219a03(0x238)](I)[_0x219a03(0x199)](),!0x0)};function pe(_0x2e170c,_0x1870c7){var _0xf6db90=_0x219a03;switch(_0x2e170c){case _0x38d350['DISCONNECTED']:return'mcpStatus.disconnected';case _0x38d350['CONNECTING']:return _0xf6db90(0x217);case _0x38d350[_0xf6db90(0x12a)]:return _0xf6db90(0x171);case _0x38d350[_0xf6db90(0x1f9)]:switch(_0x1870c7){case _0x109ccb[_0xf6db90(0x1c4)]:return _0xf6db90(0x136);case _0x109ccb[_0xf6db90(0x1ea)]:return _0xf6db90(0x18b);case _0x109ccb[_0xf6db90(0x241)]:return'mcpStatus.networkError';case _0x109ccb[_0xf6db90(0x234)]:return _0xf6db90(0x240);default:return'mcpStatus.failed';}case _0x38d350['RETRYING']:return'mcpStatus.retrying';default:return _0xf6db90(0x1d8);}}function cn(_0x1ef045,_0x5596eb,_0x18e136){var _0x5bc731=_0x219a03;const _0x49f8af=pe(_0x1ef045,_0x5596eb),_0x88f177=_0x18e136['t'](_0x49f8af);return _0x1ef045===_0x38d350[_0x5bc731(0x16c)]&&_0x5596eb===_0x109ccb[_0x5bc731(0x1c4)]?_0x88f177+'\x20-\x20'+_0x18e136['t'](_0x5bc731(0x139)):_0x1ef045===_0x38d350[_0x5bc731(0x12a)]?''+_0x88f177:_0x1ef045===_0x38d350['DISCONNECTED']||_0x1ef045===_0x38d350[_0x5bc731(0x1f9)]?_0x88f177+_0x5bc731(0x13a)+_0x18e136['t'](_0x5bc731(0x110)):_0x88f177;}function an(_0x1f3125){var _0x2cee46=_0x219a03;switch(_0x1f3125){case _0x38d350[_0x2cee46(0x12a)]:return _0x2cee46(0x17b);case _0x38d350[_0x2cee46(0x1c5)]:case _0x38d350['RETRYING']:return'univer-text-yellow-500';case _0x38d350[_0x2cee46(0x1f9)]:case _0x38d350[_0x2cee46(0x16c)]:return _0x2cee46(0x1f6);default:return _0x2cee46(0x1e9);}}function ln(_0x1fa30f){var _0x58dc06=_0x219a03;const {status$:_0x4af226,error$:_0xe0d99e,onConfigure:_0x2104b0}=_0x1fa30f,_0x12eef4=_0x58c5e8(_0x4af226,_0x38d350[_0x58dc06(0x16c)]),_0x8005a=_0x58c5e8(_0xe0d99e,_0x109ccb[_0x58dc06(0x258)]),_0x1a77a0=_0x43a656(_0xc33df3),_0x313e10=_0x12eef4===_0x38d350[_0x58dc06(0x12a)],_0x2feea5=_0x12eef4===_0x38d350[_0x58dc06(0x1c5)]||_0x12eef4===_0x38d350[_0x58dc06(0x25b)],_0x3c5434=_0x1a77a0['t'](pe(_0x12eef4,_0x8005a)),_0x510b56=cn(_0x12eef4,_0x8005a,_0x1a77a0),_0x530fa6=an(_0x12eef4),_0x4041d7=_0x313e10?_0x288285(fe,{}):_0x288285(ge,{}),_0x2741a2=_0x2db746(()=>{_0x2104b0&&_0x2104b0();},[_0x313e10,_0x2feea5,_0x2104b0]);function _0x40d11b(){var _0x2118cf=_0x58dc06;return _0xb22d85('div',{'className':_0xdad1b(_0x2118cf(0x163),_0x2104b0&&'hover:univer-opacity-80'),'onClick':_0x2104b0?_0x2741a2:void 0x0,'children':[_0x288285(_0x2118cf(0x149),{'className':_0xdad1b(_0x2118cf(0x25d),_0x530fa6),'children':_0x4041d7}),_0x288285('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3c5434})]});}return _0x288285(_0x6b526f,{'title':_0x510b56,'placement':_0x58dc06(0x197),'children':_0x40d11b()});}var un=Object['getOwnPropertyDescriptor'],vn=(_0x216e90,_0x3b0e6c,_0x43ae22,_0x2bc3ad)=>{var _0x490a8f=_0x219a03;for(var _0x2a38cf=_0x2bc3ad>0x1?void 0x0:_0x2bc3ad?un(_0x3b0e6c,_0x43ae22):_0x3b0e6c,_0x2d3d6=_0x216e90[_0x490a8f(0x23e)]-0x1,_0x591d85;_0x2d3d6>=0x0;_0x2d3d6--)(_0x591d85=_0x216e90[_0x2d3d6])&&(_0x2a38cf=_0x591d85(_0x2a38cf)||_0x2a38cf);return _0x2a38cf;},j=(_0x3ccbb7,_0x358d22)=>(_0x3e5371,_0x539854)=>_0x358d22(_0x3e5371,_0x539854,_0x3ccbb7);let A=class extends _0x1f0c2f{constructor(_0xf7dd82,_0x520408,_0x5e196a){var _0x4168c4=_0x219a03;super(),this[_0x4168c4(0x168)]=_0xf7dd82,this[_0x4168c4(0x116)]=_0x520408,this[_0x4168c4(0x174)]=_0x5e196a,this[_0x4168c4(0x116)]['enableAutoConnect']=!0x1,this[_0x4168c4(0x1f7)]();}[_0x219a03(0x1f7)](){var _0xffdc88=_0x219a03;this[_0xffdc88(0x22d)](this[_0xffdc88(0x174)][_0xffdc88(0x1f0)](_0x5be334['HEADER_MENU'],()=>_0x2400a6(dn({'status$':this[_0xffdc88(0x116)][_0xffdc88(0x170)],'error$':this[_0xffdc88(0x116)][_0xffdc88(0x12e)],'onConfigure':()=>this[_0xffdc88(0x228)]()}),this['_injector'])));}[_0x219a03(0x228)](){var _0x375745=_0x219a03;this[_0x375745(0x168)]['get'](I)[_0x375745(0x199)]();}};A=vn([j(0x0,_0x42ebfc(_0x5ede34)),j(0x1,_0x42ebfc(_0x595033)),j(0x2,_0x5a2bd3)],A);function dn(_0x1aabd5){const {status$:_0x23844a,error$:_0x300985,onConfigure:_0x4fc8f3}=_0x1aabd5;return function(){return _0x288285(ln,{'status$':_0x23844a,'error$':_0x300985,'onConfigure':_0x4fc8f3});};}function gn(_0x4289ef){var _0x30848f=_0x219a03;return{'id':B['id'],'type':_0x14d87f[_0x30848f(0x181)],'icon':_0x30848f(0x269),'title':_0x30848f(0x1c9),'tooltip':_0x30848f(0x1c9)};}const fn={[_0x2d020d[_0x219a03(0x169)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x219a03(0x19d)],mn=(_0xac7890,_0x29c52e,_0xfe7af6,_0x5e5abc)=>{for(var _0x43d036=_0x5e5abc>0x1?void 0x0:_0x5e5abc?pn(_0x29c52e,_0xfe7af6):_0x29c52e,_0x34d4ab=_0xac7890['length']-0x1,_0x658918;_0x34d4ab>=0x0;_0x34d4ab--)(_0x658918=_0xac7890[_0x34d4ab])&&(_0x43d036=_0x658918(_0x43d036)||_0x43d036);return _0x43d036;},re=(_0x38bbf2,_0x2ddaf1)=>(_0x2da600,_0x3bdc0b)=>_0x2ddaf1(_0x2da600,_0x3bdc0b,_0x38bbf2);let M=class extends _0x1f0c2f{constructor(_0x3a9d57,_0x339ec2){var _0xcc9d52=_0x219a03;super(),this[_0xcc9d52(0x1de)]=_0x3a9d57,this[_0xcc9d52(0x155)]=_0x339ec2,this[_0xcc9d52(0x236)](),this[_0xcc9d52(0x173)]();}[_0x219a03(0x236)](){var _0x9231cf=_0x219a03;[B][_0x9231cf(0x257)](_0x3ceb22=>{var _0x1addf9=_0x9231cf;this[_0x1addf9(0x22d)](this['_commandService']['registerCommand'](_0x3ceb22));});}['_initializeMenus'](){var _0x916449=_0x219a03;this[_0x916449(0x155)]['mergeMenu'](fn);}};M=mn([re(0x0,_0x5da6fe),re(0x1,_0x3064d0)],M);const On={'mcpStatus':{'disconnected':_0x219a03(0x24f),'connecting':_0x219a03(0x15b),'connected':_0x219a03(0x26b),'failed':_0x219a03(0x264),'retrying':_0x219a03(0x1b3),'unknown':_0x219a03(0x1be),'missingApiKey':_0x219a03(0x242),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x219a03(0x220),'networkError':_0x219a03(0x23b),'maxRetriesExceeded':_0x219a03(0x176),'clickToConnect':_0x219a03(0x247),'clickToConfigure':_0x219a03(0x22c)},'mcpConfig':{'title':_0x219a03(0x1a6),'description':_0x219a03(0x1af),'apiKey':_0x219a03(0x21e),'apiKeyPlaceholder':_0x219a03(0x162),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x219a03(0x180),'connectionInfo':_0x219a03(0x15a),'mcpClientConfig':_0x219a03(0x15a),'configInstructions':_0x219a03(0x24e),'configStepTitle':_0x219a03(0x26a),'configStep1':_0x219a03(0x18c),'configStep2':_0x219a03(0x202),'configStep3':_0x219a03(0x147),'sessionId':_0x219a03(0x256),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x219a03(0x130),'maxRetries':_0x219a03(0x113),'save':_0x219a03(0x185),'saving':_0x219a03(0x1d5),'note1':_0x219a03(0x16d),'note2':_0x219a03(0x1db),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x219a03(0x246),'description':_0x219a03(0x1b5),'univerAiLabel':_0x219a03(0x214),'getStarted':_0x219a03(0x22b)},'validation':{'apiKeyRequired':_0x219a03(0x148),'apiKeyTooShort':_0x219a03(0x1ac),'invalidConfig':_0x219a03(0x143),'invalidApiKey':_0x219a03(0x12c)},'connectionStatus':{'disconnected':_0x219a03(0x1e6),'connecting':'Connecting...','connected':_0x219a03(0x1bb),'failed':_0x219a03(0x1c2),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x219a03(0x1cd),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x219a03(0x12b),'networkError':_0x219a03(0x11e),'maxRetriesExceeded':_0x219a03(0x215)}}},kn={'mcpStatus':{'disconnected':_0x219a03(0x1e8),'connecting':_0x219a03(0x1a7),'connected':'MCP\x20已连接','failed':_0x219a03(0x249),'retrying':_0x219a03(0x200),'unknown':_0x219a03(0x1a5),'missingApiKey':_0x219a03(0x218),'invalidApiKey':_0x219a03(0x201),'sessionOccupied':_0x219a03(0x183),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x219a03(0x165),'clickToConnect':_0x219a03(0x1b6),'clickToConfigure':_0x219a03(0x1a4)},'mcpConfig':{'title':'MCP\x20配置','description':_0x219a03(0x157),'apiKey':_0x219a03(0x268),'apiKeyPlaceholder':_0x219a03(0x193),'apiKeyHint':_0x219a03(0x208),'enableAuth':'启用身份验证','enableAuthHint':_0x219a03(0x227),'connectionInfo':_0x219a03(0x15f),'mcpClientConfig':_0x219a03(0x15f),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x219a03(0x14a),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x219a03(0x1b7),'sessionId':'会话ID','sessionIdDescription':_0x219a03(0x123),'authorizationDescription':_0x219a03(0x112),'configParameters':_0x219a03(0x161),'maxRetries':_0x219a03(0x1b1),'save':_0x219a03(0x1d2),'saving':_0x219a03(0x196),'note1':_0x219a03(0x25c),'note2':_0x219a03(0x233),'configSaved':_0x219a03(0x1dc),'configError':_0x219a03(0x13b),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x219a03(0x151),'univerAiLabel':_0x219a03(0x1c1),'getStarted':_0x219a03(0x24b)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x219a03(0x221),'invalidConfig':_0x219a03(0x154),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x219a03(0x210),'connecting':_0x219a03(0x266),'connected':_0x219a03(0x237),'failed':'连接失败','retrying':_0x219a03(0x1c6)},'connectionError':{'missingApiKey':_0x219a03(0x21f),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x219a03(0x187),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x219a03(0x1f5)}}};var hn=Object['defineProperty'],Cn=Object[_0x219a03(0x19d)],yn=(_0x539eb6,_0x409929,_0x448e49)=>_0x409929 in _0x539eb6?hn(_0x539eb6,_0x409929,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x448e49}):_0x539eb6[_0x409929]=_0x448e49,_n=(_0x3bc8b4,_0x498907,_0x43cda7,_0x30cbe2)=>{var _0x452381=_0x219a03;for(var _0x16436c=_0x30cbe2>0x1?void 0x0:_0x30cbe2?Cn(_0x498907,_0x43cda7):_0x498907,_0x31edf1=_0x3bc8b4[_0x452381(0x23e)]-0x1,_0x8818e1;_0x31edf1>=0x0;_0x31edf1--)(_0x8818e1=_0x3bc8b4[_0x31edf1])&&(_0x16436c=_0x8818e1(_0x16436c)||_0x16436c);return _0x16436c;},E=(_0x2b7fd2,_0x11cb67)=>(_0xa03167,_0x45e94c)=>_0x11cb67(_0xa03167,_0x45e94c,_0x2b7fd2),xn=(_0x19ce36,_0x2259a9,_0x381b77)=>yn(_0x19ce36,_0x2259a9+'',_0x381b77);let U=class extends _0x856cee{constructor(_0x2f7aa6=ie,_0x5c2575,_0x3b8431,_0x2d0f8d,_0x58f617,_0x42d3c7){var _0x54583e=_0x219a03;super(),this[_0x54583e(0x267)]=_0x2f7aa6,this['_injector']=_0x5c2575,this[_0x54583e(0x203)]=_0x3b8431,this[_0x54583e(0x174)]=_0x2d0f8d,this[_0x54583e(0x133)]=_0x58f617,this[_0x54583e(0x250)]=_0x42d3c7;const {..._0x35e02a}=_0x152593({},ie,this[_0x54583e(0x267)]);this[_0x54583e(0x203)][_0x54583e(0x1fa)](L,_0x35e02a);}async[_0x219a03(0x142)](){var _0x8a310a=_0x219a03;const _0x50b303=[[A],[I],[M]];this[_0x8a310a(0x168)][_0x8a310a(0x1e7)](_0x140f0d)||_0x50b303[_0x8a310a(0x209)]([_0x140f0d,{'useClass':_0x324d21}]),_0x50b303[_0x8a310a(0x257)](_0x89b750=>this[_0x8a310a(0x168)][_0x8a310a(0x223)](_0x89b750)),this[_0x8a310a(0x168)][_0x8a310a(0x238)](A),this['_injector'][_0x8a310a(0x238)](I),this[_0x8a310a(0x168)][_0x8a310a(0x238)](M);}};xn(U,'pluginName',_0x219a03(0x141)),U=_n([_0xdb2fad(_0x3412ea),E(0x1,_0x42ebfc(_0x5ede34)),E(0x2,_0x29ba2c),E(0x3,_0x5a2bd3),E(0x4,_0x316f47),E(0x5,_0x42ebfc(_0xc33df3))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
|
1
|
+
var _0x22d713=_0x4df3;(function(_0x3245d5,_0x2332ac){var _0x50ed07=_0x4df3,_0x4c5688=_0x3245d5();while(!![]){try{var _0x220600=parseInt(_0x50ed07(0x1f1))/0x1+parseInt(_0x50ed07(0x1a0))/0x2+-parseInt(_0x50ed07(0x11b))/0x3*(-parseInt(_0x50ed07(0x1d4))/0x4)+parseInt(_0x50ed07(0x23e))/0x5*(-parseInt(_0x50ed07(0x116))/0x6)+-parseInt(_0x50ed07(0x185))/0x7*(parseInt(_0x50ed07(0x13a))/0x8)+parseInt(_0x50ed07(0x167))/0x9*(-parseInt(_0x50ed07(0x218))/0xa)+-parseInt(_0x50ed07(0x1ac))/0xb*(-parseInt(_0x50ed07(0x231))/0xc);if(_0x220600===_0x2332ac)break;else _0x4c5688['push'](_0x4c5688['shift']());}catch(_0x200ebd){_0x4c5688['push'](_0x4c5688['shift']());}}}(_0x5382,0xad607));var Ee=Object[_0x22d713(0x102)],we=(_0x405915,_0x402560,_0x5b3ebf)=>_0x402560 in _0x405915?Ee(_0x405915,_0x402560,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3ebf}):_0x405915[_0x402560]=_0x5b3ebf,x=(_0x352cd1,_0x58258f,_0x6f86fd)=>we(_0x352cd1,typeof _0x58258f!='symbol'?_0x58258f+'':_0x58258f,_0x6f86fd);import{LocaleService as _0x309e63,Inject as _0x5486a6,Injector as _0x5d75c5,IConfigService as _0x16026c,ILocalStorageService as _0x258048,ILogService as _0xce7fb5,Disposable as _0x17e4fc,CommandType as _0xdb8b8d,ICommandService as _0xf27dd3,DependentOn as _0x390f57,Plugin as _0x108c6d,merge as _0x283cca}from'@univerjs/core';import{jsxs as _0x2f1d56,jsx as _0x332e26}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16277f,MCPConnectionError as _0x440842,MCPConnectionController as _0x2ef2f2,MCP_PLUGIN_CONFIG_KEY as _0x1b4990,UniverMCPPlugin as _0x980bdf}from'@univerjs-pro/mcp';import{Input as _0x224388,Button as _0x30e2ec,MessageType as _0x56cfda,Tooltip as _0x635f0f,clsx as _0x488d88}from'@univerjs/design';import{useDependency as _0x1f62a6,useObservable as _0x2d20be,IUIPartsService as _0x54649f,IDialogService as _0x15efba,IMessageService as _0x88141c,ComponentManager as _0x5a35e1,connectInjector as _0x3bce22,BuiltInUIPart as _0x4a1c81,MenuItemType as _0x552e1b,RibbonStartGroup as _0x107585,IMenuManagerService as _0x2d5339}from'@univerjs/ui';import{BehaviorSubject as _0x563fed}from'rxjs';import{forwardRef as _0x58156b,useRef as _0x22370a,createElement as _0x2cf232,useState as _0x524203,useCallback as _0x5f29f0}from'react';import{ISocketService as _0x36dc6d,WebSocketService as _0x3278f7}from'@univerjs/network';var g=function(){var _0x1d463e=_0x22d713;return g=Object[_0x1d463e(0x153)]||function(_0x42a601){var _0x25dd6f=_0x1d463e;for(var _0x1881e1,_0x524530=0x1,_0x402842=arguments[_0x25dd6f(0x149)];_0x524530<_0x402842;_0x524530++){_0x1881e1=arguments[_0x524530];for(var _0x2d9b02 in _0x1881e1)Object[_0x25dd6f(0x1b1)][_0x25dd6f(0x11d)][_0x25dd6f(0x186)](_0x1881e1,_0x2d9b02)&&(_0x42a601[_0x2d9b02]=_0x1881e1[_0x2d9b02]);}return _0x42a601;},g[_0x1d463e(0x20a)](this,arguments);},We=function(_0x189567,_0x2a6332){var _0x3f08a6=_0x22d713,_0x21750a={};for(var _0x355b4c in _0x189567)Object[_0x3f08a6(0x1b1)][_0x3f08a6(0x11d)][_0x3f08a6(0x186)](_0x189567,_0x355b4c)&&_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c)<0x0&&(_0x21750a[_0x355b4c]=_0x189567[_0x355b4c]);if(_0x189567!=null&&typeof Object[_0x3f08a6(0x20b)]==_0x3f08a6(0x20e)){for(var _0x264f0e=0x0,_0x355b4c=Object[_0x3f08a6(0x20b)](_0x189567);_0x264f0e<_0x355b4c[_0x3f08a6(0x149)];_0x264f0e++)_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c[_0x264f0e])<0x0&&Object[_0x3f08a6(0x1b1)]['propertyIsEnumerable']['call'](_0x189567,_0x355b4c[_0x264f0e])&&(_0x21750a[_0x355b4c[_0x264f0e]]=_0x189567[_0x355b4c[_0x264f0e]]);}return _0x21750a;},b=_0x58156b(function(_0xa1ac29,_0x512c09){var _0x46652f=_0x22d713,_0xbe043d=_0xa1ac29[_0x46652f(0x141)],_0x3aeb1b=_0xa1ac29['id'],_0x3a1c8a=_0xa1ac29[_0x46652f(0x19c)],_0x3f8950=_0xa1ac29['extend'],_0x3871df=We(_0xa1ac29,[_0x46652f(0x141),'id','className',_0x46652f(0x16c)]),_0x8672ea='univerjs-icon\x20univerjs-icon-'[_0x46652f(0x166)](_0x3aeb1b,'\x20')[_0x46652f(0x166)](_0x3a1c8a||'')[_0x46652f(0x1c7)](),_0x1e1352=_0x22370a('_'[_0x46652f(0x166)](Xe()));return le(_0xbe043d,''[_0x46652f(0x166)](_0x3aeb1b),{'defIds':_0xbe043d['defIds'],'idSuffix':_0x1e1352[_0x46652f(0x1b7)]},g({'ref':_0x512c09,'className':_0x8672ea},_0x3871df),_0x3f8950);});function le(_0x23908a,_0x4cc0c3,_0x133965,_0x37a1b0,_0x8133ad){var _0x1b9f0c=_0x22d713;return _0x2cf232(_0x23908a[_0x1b9f0c(0x1ec)],g(g({'key':_0x4cc0c3},qe(_0x23908a,_0x133965,_0x8133ad)),_0x37a1b0),(Ze(_0x23908a,_0x133965)[_0x1b9f0c(0x188)]||[])[_0x1b9f0c(0xfc)](function(_0x5e8a05,_0x39a2c3){var _0x42f551=_0x1b9f0c;return le(_0x5e8a05,''[_0x42f551(0x166)](_0x4cc0c3,'-')['concat'](_0x23908a['tag'],'-')['concat'](_0x39a2c3),_0x133965,void 0x0,_0x8133ad);}));}function qe(_0x8800bf,_0x481c54,_0x5cd0ea){var _0x238d76=_0x22d713,_0x2f0053=g({},_0x8800bf[_0x238d76(0x1c6)]);_0x5cd0ea!=null&&_0x5cd0ea[_0x238d76(0x1d3)]&&_0x2f0053[_0x238d76(0x244)]===_0x238d76(0x1d3)&&(_0x2f0053[_0x238d76(0x244)]=_0x5cd0ea['colorChannel1']),_0x8800bf[_0x238d76(0x1ec)]===_0x238d76(0xeb)&&_0x2f0053['id']&&(_0x2f0053['id']=_0x2f0053['id']+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x279452){var _0x3b54bb=_0x238d76,_0x89ae66=_0x279452[0x0],_0x50aeea=_0x279452[0x1];_0x89ae66===_0x3b54bb(0xeb)&&typeof _0x50aeea=='string'&&(_0x2f0053[_0x89ae66]=_0x50aeea[_0x3b54bb(0x22c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x481c54[_0x3b54bb(0x12a)],')')));});var _0x3b546a=_0x481c54[_0x238d76(0x1f9)];return!_0x3b546a||_0x3b546a[_0x238d76(0x149)]===0x0||(_0x8800bf[_0x238d76(0x1ec)]==='use'&&_0x2f0053[_0x238d76(0x139)]&&(_0x2f0053[_0x238d76(0x139)]=_0x2f0053[_0x238d76(0x139)]+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x1df039){var _0x243aa3=_0x238d76,_0x5e2904=_0x1df039[0x0],_0x5698f6=_0x1df039[0x1];typeof _0x5698f6==_0x243aa3(0x1a5)&&(_0x2f0053[_0x5e2904]=_0x5698f6[_0x243aa3(0x22c)](/url\(#(.*)\)/,_0x243aa3(0x23c)[_0x243aa3(0x166)](_0x481c54[_0x243aa3(0x12a)],')')));})),_0x2f0053;}function Ze(_0x419e51,_0x302359){var _0x2049b2=_0x22d713,_0x38fe0a,_0x307a10=_0x302359[_0x2049b2(0x1f9)];return!_0x307a10||_0x307a10[_0x2049b2(0x149)]===0x0?_0x419e51:_0x419e51[_0x2049b2(0x1ec)]===_0x2049b2(0xf9)&&(!((_0x38fe0a=_0x419e51[_0x2049b2(0x188)])===null||_0x38fe0a===void 0x0)&&_0x38fe0a[_0x2049b2(0x149)])?g(g({},_0x419e51),{'children':_0x419e51['children'][_0x2049b2(0xfc)](function(_0x4199a6){var _0x21dd4d=_0x2049b2;return typeof _0x4199a6['attrs']['id']=='string'&&_0x307a10&&_0x307a10['includes'](_0x4199a6[_0x21dd4d(0x1c6)]['id'])?g(g({},_0x4199a6),{'attrs':g(g({},_0x4199a6[_0x21dd4d(0x1c6)]),{'id':_0x4199a6['attrs']['id']+_0x302359['idSuffix']})}):_0x4199a6;})}):_0x419e51;}function Xe(){var _0x2c7cc7=_0x22d713;return Math[_0x2c7cc7(0x1f6)]()[_0x2c7cc7(0x14a)](0x24)[_0x2c7cc7(0x1ba)](0x2,0x8);}b[_0x22d713(0x108)]=_0x22d713(0x10f);var Je={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1fb),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},ue=_0x58156b(function(_0x2b2eef,_0x4dc8a7){var _0x467b2c=_0x22d713;return _0x2cf232(b,Object[_0x467b2c(0x153)]({},_0x2b2eef,{'id':'check-mark-icon','ref':_0x4dc8a7,'icon':Je}));});ue[_0x22d713(0x108)]=_0x22d713(0x1d8);var Qe={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2017\x2017','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':'currentColor','d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}},{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x1a9),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}}]},ve=_0x58156b(function(_0x1470d7,_0x44ad26){var _0x35c06e=_0x22d713;return _0x2cf232(b,Object['assign']({},_0x1470d7,{'id':_0x35c06e(0x1c9),'ref':_0x44ad26,'icon':Qe}));});ve[_0x22d713(0x108)]=_0x22d713(0x115);var en={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x243)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1be)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x10d),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},de=_0x58156b(function(_0xe2a75c,_0x22b5de){var _0x53032b=_0x22d713;return _0x2cf232(b,Object[_0x53032b(0x153)]({},_0xe2a75c,{'id':'help-single','ref':_0x22b5de,'icon':en}));});de['displayName']=_0x22d713(0x225);var nn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0xfa),'width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x17a),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x170)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200)}}]}]}],'defIds':[_0x22d713(0x170)]},ge=_0x58156b(function(_0x34aef9,_0x283c8c){var _0x15d0fa=_0x22d713;return _0x2cf232(b,Object[_0x15d0fa(0x153)]({},_0x34aef9,{'id':_0x15d0fa(0x18e),'ref':_0x283c8c,'icon':nn}));});ge[_0x22d713(0x108)]=_0x22d713(0x183);var rn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0x1b2),'width':_0x22d713(0x229),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x22d713(0x18f)},'children':[{'tag':'path','attrs':{'stroke':_0x22d713(0xe8),'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':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.2}}]},{'tag':_0x22d713(0xf9),'attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x1f7)},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200),'transform':'translate(.97)'}}]}]}],'defIds':[_0x22d713(0x1f7)]},fe=_0x58156b(function(_0x227222,_0x273b1f){var _0x350817=_0x22d713;return _0x2cf232(b,Object[_0x350817(0x153)]({},_0x227222,{'id':_0x350817(0x1db),'ref':_0x273b1f,'icon':rn}));});fe[_0x22d713(0x108)]=_0x22d713(0x22f);function tn(_0x20b2e3){var _0x17e552=_0x22d713,_0x45fa22,_0x51d8e0;const {mcpCoreConfig:_0x4d3756,onSave:_0x5f05bb,loading:_0x15ddec=!0x1,config:_0x12dfd5,connectionStatus$:_0x42f94,connectionError$:_0x3d0540,currentApiKey$:_0x29972b,currentSessionId$:_0x393b0a}=_0x20b2e3,_0x4d8272=_0x1f62a6(_0x309e63),_0x6df636=_0x2d20be(_0x42f94,_0x16277f[_0x17e552(0x187)]),_0x4addeb=_0x2d20be(_0x3d0540,_0x440842[_0x17e552(0x165)]),_0x2bc93f=_0x2d20be(_0x393b0a,''),_0x1eb878=_0x2d20be(_0x29972b,''),[_0x39ec65,_0x339237]=_0x524203(_0x1eb878||''),_0x3a4a28=!0x0,_0x1b65dd=_0x12dfd5['showDeveloperTools']&&_0x4d3756[_0x17e552(0xf8)]&&(_0x4d3756[_0x17e552(0xf8)][_0x17e552(0x1bb)](_0x17e552(0x1d2))||_0x4d3756[_0x17e552(0xf8)]['includes'](_0x17e552(0x1b0))),_0x18fe80=(_0x45fa22=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x45fa22[_0x17e552(0x1bb)](_0x17e552(0x1d2)),_0x19edde=(_0x51d8e0=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x51d8e0[_0x17e552(0x1bb)](_0x17e552(0x1b0)),_0x23a544=_0x18fe80?_0x17e552(0x1af):_0x17e552(0x100),_0x389166=_0x12dfd5[_0x17e552(0x195)]&&(_0x18fe80||_0x19edde),[_0x1871fe,_0x3a255d]=_0x524203(!_0x39ec65[_0x17e552(0x1c7)]()),_0x28f88a=(_0x24c682,_0x13bbf0)=>{var _0x15c90b=_0x17e552;if(_0x13bbf0===_0x440842[_0x15c90b(0x21b)])return _0x15c90b(0x101);switch(_0x24c682){case _0x16277f['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x16277f['CONNECTING']:case _0x16277f[_0x15c90b(0x146)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x16277f[_0x15c90b(0xff)]:return _0x15c90b(0x101);default:return _0x15c90b(0x105);}},_0x193fef=(_0x42ff3f,_0x1aac06)=>{var _0x1d94e2=_0x17e552;if(_0x1aac06===_0x440842[_0x1d94e2(0x21b)])return _0x1d94e2(0x1e8);switch(_0x42ff3f){case _0x16277f[_0x1d94e2(0x10a)]:return'univer-bg-green-500';case _0x16277f['CONNECTING']:case _0x16277f[_0x1d94e2(0x146)]:return'univer-bg-blue-500';case _0x16277f[_0x1d94e2(0xff)]:return _0x1d94e2(0x1e8);default:return'univer-bg-gray-500';}},_0x184f62=_0x2c7ed5=>{var _0x318870=_0x17e552;switch(_0x2c7ed5){case _0x16277f['CONNECTED']:return _0x4d8272['t'](_0x318870(0x21c));case _0x16277f[_0x318870(0x104)]:return _0x4d8272['t']('mcpConfig.connectionStatus.connecting');case _0x16277f[_0x318870(0xff)]:return _0x4d8272['t']('mcpConfig.connectionStatus.failed');case _0x16277f[_0x318870(0x146)]:return _0x4d8272['t'](_0x318870(0x107));default:return _0x4d8272['t'](_0x318870(0x199));}},_0x30fd3d=_0x10f5c4=>{var _0x169214=_0x17e552;switch(_0x10f5c4){case _0x440842[_0x169214(0x21b)]:return _0x4d8272['t']('mcpConfig.connectionError.invalidApiKey');case _0x440842['SESSION_ID_OCCUPIED']:return _0x4d8272['t'](_0x169214(0x19e));case _0x440842[_0x169214(0xfb)]:return _0x4d8272['t'](_0x169214(0x1b9));case _0x440842[_0x169214(0xe3)]:return _0x4d8272['t'](_0x169214(0x137));default:return'';}},_0x2faea4=_0x5f29f0(()=>{const _0x4d5f87={..._0x4d3756,'apiKey':_0x39ec65['trim'](),'enableAuth':_0x3a4a28};_0x5f05bb(_0x4d5f87);},[_0x4d3756,_0x39ec65,_0x3a4a28,_0x5f05bb]),_0x31623a=_0x39ec65[_0x17e552(0x1c7)]()['length']>0x0;return _0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x131),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x20f),'children':_0x2f1d56('div',{'className':_0x17e552(0x1fc),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x143),'children':_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0xe7),'children':'⚙'})}),_0x332e26(_0x17e552(0x18d),{'children':_0x332e26('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1c1))})})]})}),_0x2f1d56('div',{'className':_0x17e552(0x1eb),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x234)+_0x28f88a(_0x6df636,_0x4addeb)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26('div',{'className':_0x17e552(0x1b5)+_0x193fef(_0x6df636,_0x4addeb)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x332e26(_0x17e552(0x232),{'className':'univer-text-sm\x20univer-font-medium','children':_0x184f62(_0x6df636)})]})}),_0x4addeb!==_0x440842['NONE']&&(_0x6df636===_0x16277f[_0x17e552(0xff)]||_0x4addeb===_0x440842[_0x17e552(0x21b)])&&_0x332e26(_0x17e552(0x18d),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x224),'children':[_0x332e26(_0x17e552(0x232),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x332e26('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x30fd3d(_0x4addeb)})]})})]}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x230),'children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x22d),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x18b),'children':[_0x2f1d56(_0x17e552(0x174),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x332e26(_0x17e552(0x232),{'children':'🔑'}),'\x20',_0x4d8272['t'](_0x17e552(0x12e)),_0x332e26('span',{'className':_0x17e552(0x1c3),'children':'*'}),_0x1b65dd&&_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x0),'className':_0x17e552(0x1a8),'title':_0x4d8272['t'](_0x17e552(0xe4)),'children':_0x332e26(de,{})})]}),_0x332e26(_0x224388,{'type':_0x17e552(0x15b),'placeholder':_0x4d8272['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x39ec65,'onChange':_0x339237,'disabled':_0x15ddec,'autoComplete':_0x17e552(0x156)}),_0x332e26('p',{'className':_0x17e552(0x164),'children':_0x4d8272['t'](_0x17e552(0x10c))})]}),_0x1b65dd&&_0x1871fe&&_0x2f1d56('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x1),'className':_0x17e552(0x1e1),'title':'Close','children':_0x332e26(ve,{})}),_0x2f1d56('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x15f),'children':_0x332e26(_0x17e552(0x232),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1c2),'children':[_0x332e26('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4d8272['t']('mcpConfig.apiApplyInfo.title')}),_0x332e26('p',{'className':_0x17e552(0x1e6),'children':_0x4d8272['t'](_0x17e552(0x127))}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x12d),'children':_0x389166&&_0x2f1d56('a',{'href':_0x23a544,'target':_0x17e552(0x222),'rel':_0x17e552(0x1cf),'className':_0x17e552(0x238),'children':[_0x332e26(_0x17e552(0x232),{'children':'🤖'}),_0x4d8272['t'](_0x17e552(0x1ad)),_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x226),'children':'↗'})]})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f2),'children':['✨','\x20',_0x4d8272['t'](_0x17e552(0x211))]})]})]})]}),_0x12dfd5[_0x17e552(0x195)]&&_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x189),'children':[_0x2f1d56('h4',{'className':_0x17e552(0xe9),'children':[_0x332e26(_0x17e552(0x232),{'children':'🔗'}),'\x20',_0x4d8272['t']('mcpConfig.connectionInfo')]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1cd),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26('p',{'className':_0x17e552(0x20c),'children':_0x4d8272['t'](_0x17e552(0x124))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x147))}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x240),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x4d8272['t'](_0x17e552(0x155))]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'2'}),_0x4d8272['t'](_0x17e552(0xf2))]}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'3'}),_0x4d8272['t'](_0x17e552(0x210))]})]})]})]}),_0x2f1d56('div',{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':'MCP\x20Configuration'}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x19d),'children':_0x332e26(_0x17e552(0x209),{'className':_0x17e552(0x1d7),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x2bc93f+_0x17e552(0x11e)+(_0x39ec65||'<API_KEY>')+_0x17e552(0x184)})})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x23b))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x332e26('div',{'className':_0x17e552(0x21d)}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26('div',{'className':_0x17e552(0x1c5),'children':_0x17e552(0x110)}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x198))})]})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f8),'children':[_0x332e26('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1e9))})]})]})]})]})]})]}),_0x332e26(_0x30e2ec,{'onClick':_0x2faea4,'disabled':!_0x31623a||_0x15ddec,'className':_0x17e552(0x241),'children':_0x15ddec?_0x2f1d56(_0x17e552(0x232),{'className':_0x17e552(0x214),'children':[_0x332e26('span',{'children':'⟲'}),_0x4d8272['t'](_0x17e552(0x190))]}):_0x2f1d56('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(ue,{}),_0x4d8272['t'](_0x17e552(0x13e))]})}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x106),'children':_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-gap-3','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x160),'children':'💡'}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x332e26('div',{'className':_0x17e552(0x1f0),'children':_0x17e552(0x18a)}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x180))]}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x237))]})]})]})})]})})]});}const L=_0x22d713(0xf3),ie={'showDeveloperTools':!0x1};var on=Object[_0x22d713(0x15c)],sn=(_0x466788,_0x346e98,_0x2d39fb,_0x1f9b09)=>{for(var _0x32e9b6=_0x1f9b09>0x1?void 0x0:_0x1f9b09?on(_0x346e98,_0x2d39fb):_0x346e98,_0x5e0ee1=_0x466788['length']-0x1,_0x36293f;_0x5e0ee1>=0x0;_0x5e0ee1--)(_0x36293f=_0x466788[_0x5e0ee1])&&(_0x32e9b6=_0x36293f(_0x32e9b6)||_0x32e9b6);return _0x32e9b6;},f=(_0x4e5c07,_0x97789c)=>(_0x278dbd,_0x391df4)=>_0x97789c(_0x278dbd,_0x391df4,_0x4e5c07);const T=_0x22d713(0xe5),R=_0x22d713(0x1b4);let I=class extends _0x17e4fc{constructor(_0x445c3a,_0x4d3dba,_0x59d59b,_0x1e7d25,_0x36968f,_0x33c462,_0x403ccc,_0x4f6a2f,_0x6da05,_0x1faf22){var _0x1eb58a=_0x22d713;super(),x(this,_0x1eb58a(0x1ff),new _0x563fed(!0x1)),x(this,_0x1eb58a(0x20d),new _0x563fed({})),x(this,_0x1eb58a(0x123),new _0x563fed({})),x(this,'_apiKey$',new _0x563fed('')),x(this,'_handleConfigSave',async _0x237cf2=>{var _0x1760e2=_0x1eb58a,_0xa5febd,_0x354fb6;this[_0x1760e2(0x1ff)][_0x1760e2(0x239)](!0x0);try{const _0x5e0362=await this[_0x1760e2(0x1e7)](_0x237cf2);if(!_0x5e0362[_0x1760e2(0x122)]){this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':_0x5e0362[_0x1760e2(0x11c)]||this['_localeService']['t'](_0x1760e2(0x204))});return;}_0x237cf2[_0x1760e2(0x193)]?await this[_0x1760e2(0x235)]['setItem'](T,_0x237cf2['apiKey'][_0x1760e2(0x1c7)]()):await this[_0x1760e2(0x235)][_0x1760e2(0x12f)](T),this[_0x1760e2(0x14f)][_0x1760e2(0x239)](((_0xa5febd=_0x237cf2[_0x1760e2(0x193)])==null?void 0x0:_0xa5febd['trim']())||''),this['_mcpConnectionController'][_0x1760e2(0x1d6)]({'Authorization':_0x1760e2(0x14d)+((_0x354fb6=_0x237cf2['apiKey'])==null?void 0x0:_0x354fb6[_0x1760e2(0x1c7)]())}),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1a6)],'content':this[_0x1760e2(0x227)]['t'](_0x1760e2(0x1f5))}),setTimeout(()=>{var _0x111272=_0x1760e2;this[_0x111272(0x15e)][_0x111272(0x15a)](R);},0x320);}catch(_0x747cab){this[_0x1760e2(0x144)]['error'](_0x1760e2(0x16b),_0x747cab),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':this[_0x1760e2(0x227)]['t']('mcpConfig.configError')});}finally{this[_0x1760e2(0x1ff)]['next'](!0x1);}}),(this[_0x1eb58a(0x1ef)]=_0x445c3a,this['_uiPartsService']=_0x4d3dba,this['_configService']=_0x59d59b,this[_0x1eb58a(0x235)]=_0x1e7d25,this['_dialogService']=_0x36968f,this[_0x1eb58a(0x17d)]=_0x33c462,this[_0x1eb58a(0x221)]=_0x403ccc,this['_localeService']=_0x4f6a2f,this[_0x1eb58a(0x144)]=_0x6da05,this[_0x1eb58a(0xfe)]=_0x1faf22,this['_initConfigSync'](),this[_0x1eb58a(0x135)](),this[_0x1eb58a(0x1ed)]());}['showConfigPanel'](){var _0x12459d=_0x22d713;this[_0x12459d(0x15e)][_0x12459d(0x148)]({'id':R,'title':{'title':this[_0x12459d(0x227)]['t'](_0x12459d(0x23f))},'children':{'label':_0x12459d(0x14e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x3a1b61=_0x12459d;this[_0x3a1b61(0x15e)][_0x3a1b61(0x15a)](R);}});}['getCurrentConfig'](){var _0x2cbeaa=_0x22d713;return this[_0x2cbeaa(0x20d)][_0x2cbeaa(0x130)];}[_0x22d713(0x1ed)](){var _0x4e1fae=_0x22d713;this[_0x4e1fae(0x12b)](this[_0x4e1fae(0x221)]['register'](_0x4e1fae(0x14e),this[_0x4e1fae(0x1aa)]()));}['_createConfigPanelComponent'](){var _0x5eb771=_0x22d713;return _0x3bce22(()=>{var _0x35a205=_0x4df3,_0x2e9520,_0x5e090f,_0x263a4b;return _0x332e26(tn,{'config':this['_config$'][_0x35a205(0x130)],'mcpCoreConfig':this[_0x35a205(0x20d)][_0x35a205(0x130)],'currentApiKey$':this[_0x35a205(0x14f)],'onSave':this[_0x35a205(0x216)],'loading':this[_0x35a205(0x1ff)][_0x35a205(0x130)],'connectionStatus$':(_0x2e9520=this['_mcpConnectionController'])==null?void 0x0:_0x2e9520[_0x35a205(0x19b)],'connectionError$':(_0x5e090f=this['_mcpConnectionController'])==null?void 0x0:_0x5e090f['connectionError$'],'currentSessionId$':(_0x263a4b=this[_0x35a205(0xfe)])==null?void 0x0:_0x263a4b[_0x35a205(0x1b6)]});},this[_0x5eb771(0x1ef)]);}['_initConfigSync'](){var _0x24699a=_0x22d713;this[_0x24699a(0x12b)](this[_0x24699a(0x10b)]['subscribeConfigValue$'](_0x1b4990)['subscribe'](_0x578cde=>{var _0x40f0a9=_0x24699a;this['_mcpCoreConfig$'][_0x40f0a9(0x239)](_0x578cde||{});}));const _0x4b2f96=this[_0x24699a(0x10b)]['getConfig'](_0x1b4990);this['_mcpCoreConfig$'][_0x24699a(0x239)](_0x4b2f96||{}),this[_0x24699a(0x12b)](this[_0x24699a(0x10b)][_0x24699a(0x205)](L)['subscribe'](_0x49315c=>{var _0x2c6a4c=_0x24699a;this[_0x2c6a4c(0x123)][_0x2c6a4c(0x239)](_0x49315c||{});}));const _0x5ecd29=this['_configService']['getConfig'](L);this[_0x24699a(0x123)]['next'](_0x5ecd29||{});}async[_0x22d713(0x135)](){var _0x849283=_0x22d713;const _0x533eb6=await this[_0x849283(0x235)][_0x849283(0x173)](T);_0x533eb6&&(this[_0x849283(0xfe)][_0x849283(0x1d6)]({'Authorization':_0x849283(0x14d)+_0x533eb6}),this['_apiKey$'][_0x849283(0x239)](_0x533eb6));}async['_validateConfig'](_0x3fb86a){var _0x51ab7d=_0x22d713;if(!_0x3fb86a[_0x51ab7d(0x193)]||_0x3fb86a[_0x51ab7d(0x193)]['trim']()[_0x51ab7d(0x149)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x1de))};if(_0x3fb86a[_0x51ab7d(0x193)][_0x51ab7d(0x1c7)]()[_0x51ab7d(0x149)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x17f))};try{const _0x426b18=await this[_0x51ab7d(0x1ef)][_0x51ab7d(0x1f4)](_0x2ef2f2)['validateApiKey'](_0x3fb86a['apiKey'][_0x51ab7d(0x1c7)]());return _0x426b18[_0x51ab7d(0x122)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x426b18[_0x51ab7d(0x168)]||this[_0x51ab7d(0x227)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x1c92b1){return console[_0x51ab7d(0x132)](_0x51ab7d(0x133),_0x1c92b1),{'isValid':!0x0};}}};I=sn([f(0x0,_0x5486a6(_0x5d75c5)),f(0x1,_0x54649f),f(0x2,_0x16026c),f(0x3,_0x258048),f(0x4,_0x15efba),f(0x5,_0x88141c),f(0x6,_0x5486a6(_0x5a35e1)),f(0x7,_0x5486a6(_0x309e63)),f(0x8,_0xce7fb5),f(0x9,_0x5486a6(_0x2ef2f2))],I);const B={'id':_0x22d713(0x13c),'type':_0xdb8b8d[_0x22d713(0x138)],'handler':async(_0x2da2ba,_0x8a0e7e)=>(_0x2da2ba[_0x22d713(0x1f4)](I)[_0x22d713(0x118)](),!0x0)};function pe(_0x6496a1,_0x9e76e3){var _0x56a48a=_0x22d713;switch(_0x6496a1){case _0x16277f[_0x56a48a(0x187)]:return _0x56a48a(0x201);case _0x16277f[_0x56a48a(0x104)]:return'mcpStatus.connecting';case _0x16277f[_0x56a48a(0x10a)]:return'mcpStatus.connected';case _0x16277f[_0x56a48a(0xff)]:switch(_0x9e76e3){case _0x440842[_0x56a48a(0x21b)]:return _0x56a48a(0x162);case _0x440842[_0x56a48a(0x1b3)]:return _0x56a48a(0x12c);case _0x440842[_0x56a48a(0xfb)]:return _0x56a48a(0xe6);case _0x440842[_0x56a48a(0xe3)]:return _0x56a48a(0x219);default:return _0x56a48a(0x1da);}case _0x16277f[_0x56a48a(0x146)]:return _0x56a48a(0x16f);default:return _0x56a48a(0x22e);}}function cn(_0x15c599,_0x49e3de,_0x39a6f5){var _0x62e1d2=_0x22d713;const _0x3a327c=pe(_0x15c599,_0x49e3de),_0x5644d3=_0x39a6f5['t'](_0x3a327c);return _0x15c599===_0x16277f[_0x62e1d2(0x187)]&&_0x49e3de===_0x440842[_0x62e1d2(0x21b)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x1c8)):_0x15c599===_0x16277f[_0x62e1d2(0x10a)]?''+_0x5644d3:_0x15c599===_0x16277f[_0x62e1d2(0x187)]||_0x15c599===_0x16277f[_0x62e1d2(0xff)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x202)):_0x5644d3;}function an(_0x17a50c){var _0x32480a=_0x22d713;switch(_0x17a50c){case _0x16277f['CONNECTED']:return _0x32480a(0xec);case _0x16277f[_0x32480a(0x104)]:case _0x16277f[_0x32480a(0x146)]:return'univer-text-yellow-500';case _0x16277f[_0x32480a(0xff)]:case _0x16277f[_0x32480a(0x187)]:return _0x32480a(0x1c3);default:return _0x32480a(0xf7);}}function ln(_0x49b12a){var _0x455299=_0x22d713;const {status$:_0x67d4d5,error$:_0x173bed,onConfigure:_0x14d638}=_0x49b12a,_0x67294a=_0x2d20be(_0x67d4d5,_0x16277f['DISCONNECTED']),_0x145d80=_0x2d20be(_0x173bed,_0x440842['NONE']),_0x47527d=_0x1f62a6(_0x309e63),_0xc0a0b3=_0x67294a===_0x16277f[_0x455299(0x10a)],_0x2777bf=_0x67294a===_0x16277f[_0x455299(0x104)]||_0x67294a===_0x16277f[_0x455299(0x146)],_0x2341ac=_0x47527d['t'](pe(_0x67294a,_0x145d80)),_0x35cc16=cn(_0x67294a,_0x145d80,_0x47527d),_0x5684fb=an(_0x67294a),_0x1b68c6=_0xc0a0b3?_0x332e26(fe,{}):_0x332e26(ge,{}),_0x514bb0=_0x5f29f0(()=>{_0x14d638&&_0x14d638();},[_0xc0a0b3,_0x2777bf,_0x14d638]);function _0x4c772a(){var _0x5cd743=_0x455299;return _0x2f1d56('div',{'className':_0x488d88(_0x5cd743(0x150),_0x14d638&&_0x5cd743(0x154)),'onClick':_0x14d638?_0x514bb0:void 0x0,'children':[_0x332e26(_0x5cd743(0x18d),{'className':_0x488d88(_0x5cd743(0xef),_0x5684fb),'children':_0x1b68c6}),_0x332e26('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2341ac})]});}return _0x332e26(_0x635f0f,{'title':_0x35cc16,'placement':_0x455299(0x19a),'children':_0x4c772a()});}var un=Object[_0x22d713(0x15c)],vn=(_0x22fd26,_0x5bb04e,_0xd6753a,_0x2f7629)=>{var _0x1b5023=_0x22d713;for(var _0x48974a=_0x2f7629>0x1?void 0x0:_0x2f7629?un(_0x5bb04e,_0xd6753a):_0x5bb04e,_0x3f9001=_0x22fd26[_0x1b5023(0x149)]-0x1,_0x4485a0;_0x3f9001>=0x0;_0x3f9001--)(_0x4485a0=_0x22fd26[_0x3f9001])&&(_0x48974a=_0x4485a0(_0x48974a)||_0x48974a);return _0x48974a;},j=(_0x4ffacf,_0x3523aa)=>(_0x3c322f,_0x4afe74)=>_0x3523aa(_0x3c322f,_0x4afe74,_0x4ffacf);let A=class extends _0x17e4fc{constructor(_0x140485,_0x141d6d,_0x575020){var _0x4432b6=_0x22d713;super(),this[_0x4432b6(0x1ef)]=_0x140485,this[_0x4432b6(0x1ee)]=_0x141d6d,this[_0x4432b6(0x157)]=_0x575020,this[_0x4432b6(0x1ee)]['enableAutoConnect']=!0x1,this[_0x4432b6(0x175)]();}[_0x22d713(0x175)](){var _0x21dedc=_0x22d713;this['disposeWithMe'](this[_0x21dedc(0x157)]['registerComponent'](_0x4a1c81[_0x21dedc(0x16a)],()=>_0x3bce22(dn({'status$':this[_0x21dedc(0x1ee)]['connectionStatus$'],'error$':this[_0x21dedc(0x1ee)]['connectionError$'],'onConfigure':()=>this[_0x21dedc(0x1b8)]()}),this[_0x21dedc(0x1ef)])));}[_0x22d713(0x1b8)](){var _0x1a8485=_0x22d713;this['_injector'][_0x1a8485(0x1f4)](I)[_0x1a8485(0x118)]();}};A=vn([j(0x0,_0x5486a6(_0x5d75c5)),j(0x1,_0x5486a6(_0x2ef2f2)),j(0x2,_0x54649f)],A);function dn(_0x3a8f2c){const {status$:_0x5241ac,error$:_0x5d9999,onConfigure:_0x5f03cd}=_0x3a8f2c;return function(){return _0x332e26(ln,{'status$':_0x5241ac,'error$':_0x5d9999,'onConfigure':_0x5f03cd});};}function gn(_0x230136){var _0x172fc6=_0x22d713;return{'id':B['id'],'type':_0x552e1b[_0x172fc6(0x1ea)],'icon':_0x172fc6(0x121),'title':'mcpConfig.title','tooltip':_0x172fc6(0x23f)};}const fn={[_0x107585[_0x22d713(0xf0)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x22d713(0x15c)],mn=(_0x253fd6,_0x4268c5,_0x4e9227,_0x54f4e2)=>{var _0x1a781b=_0x22d713;for(var _0x13871f=_0x54f4e2>0x1?void 0x0:_0x54f4e2?pn(_0x4268c5,_0x4e9227):_0x4268c5,_0x22d216=_0x253fd6[_0x1a781b(0x149)]-0x1,_0x3ddf3f;_0x22d216>=0x0;_0x22d216--)(_0x3ddf3f=_0x253fd6[_0x22d216])&&(_0x13871f=_0x3ddf3f(_0x13871f)||_0x13871f);return _0x13871f;},re=(_0x2a7fef,_0x20586a)=>(_0x204ced,_0x5bd5b1)=>_0x20586a(_0x204ced,_0x5bd5b1,_0x2a7fef);let M=class extends _0x17e4fc{constructor(_0x29e3d3,_0x445ec8){var _0x29a40a=_0x22d713;super(),this[_0x29a40a(0x212)]=_0x29e3d3,this['_menuManagerService']=_0x445ec8,this[_0x29a40a(0x159)](),this[_0x29a40a(0x16e)]();}[_0x22d713(0x159)](){var _0x10bfb1=_0x22d713;[B][_0x10bfb1(0x1bf)](_0x311375=>{var _0x4975b8=_0x10bfb1;this[_0x4975b8(0x12b)](this[_0x4975b8(0x212)][_0x4975b8(0x1fd)](_0x311375));});}['_initializeMenus'](){var _0x56aa3f=_0x22d713;this[_0x56aa3f(0x15d)][_0x56aa3f(0x21f)](fn);}};function _0x4df3(_0x43acb0,_0x157c3d){var _0x538290=_0x5382();return _0x4df3=function(_0x4df3cc,_0x26cc37){_0x4df3cc=_0x4df3cc-0xe2;var _0x464b9b=_0x538290[_0x4df3cc];return _0x464b9b;},_0x4df3(_0x43acb0,_0x157c3d);}M=mn([re(0x0,_0xf27dd3),re(0x1,_0x2d5339)],M);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x22d713(0x10e),'connected':_0x22d713(0x215),'failed':_0x22d713(0x208),'retrying':_0x22d713(0x1cc),'unknown':_0x22d713(0x22b),'missingApiKey':_0x22d713(0x1e3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x22d713(0x163),'networkError':_0x22d713(0x1bc),'maxRetriesExceeded':_0x22d713(0x1d5),'clickToConnect':_0x22d713(0x213),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x22d713(0x181),'description':_0x22d713(0x1dd),'apiKey':_0x22d713(0x17e),'apiKeyPlaceholder':_0x22d713(0x145),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x22d713(0x169),'connectionInfo':_0x22d713(0x128),'mcpClientConfig':_0x22d713(0x128),'configInstructions':_0x22d713(0x17c),'configStepTitle':_0x22d713(0x22a),'configStep1':_0x22d713(0x178),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22d713(0x126),'sessionId':_0x22d713(0x197),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x22d713(0x191),'configParameters':_0x22d713(0x206),'maxRetries':_0x22d713(0x194),'save':_0x22d713(0x176),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x22d713(0x11a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x22d713(0x207),'apiApplyInfo':{'title':_0x22d713(0x18c),'description':_0x22d713(0x220),'univerAiLabel':_0x22d713(0xf4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x22d713(0xf6),'apiKeyTooShort':_0x22d713(0x1a2),'invalidConfig':_0x22d713(0x161),'invalidApiKey':_0x22d713(0x23d)},'connectionStatus':{'disconnected':_0x22d713(0x112),'connecting':_0x22d713(0xe2),'connected':_0x22d713(0x177),'failed':_0x22d713(0x1a1),'retrying':_0x22d713(0x242)},'connectionError':{'missingApiKey':_0x22d713(0x223),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x22d713(0xea),'networkError':_0x22d713(0x136),'maxRetriesExceeded':_0x22d713(0x152)}}},kn={'mcpStatus':{'disconnected':_0x22d713(0x179),'connecting':'MCP\x20连接中...','connected':_0x22d713(0x1a3),'failed':_0x22d713(0x1ce),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','missingApiKey':_0x22d713(0x134),'invalidApiKey':_0x22d713(0xf1),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x22d713(0x13d),'maxRetriesExceeded':_0x22d713(0x203),'clickToConnect':_0x22d713(0x1d0),'clickToConfigure':_0x22d713(0x171)},'mcpConfig':{'title':_0x22d713(0x17b),'description':_0x22d713(0x1ca),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x22d713(0xfd),'enableAuth':_0x22d713(0x113),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x22d713(0x119),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x22d713(0x196),'configStepTitle':_0x22d713(0x109),'configStep1':_0x22d713(0x1d9),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x22d713(0x16d),'sessionId':_0x22d713(0x19f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x22d713(0x236),'configParameters':_0x22d713(0x125),'maxRetries':_0x22d713(0x140),'save':_0x22d713(0x14b),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x22d713(0x151),'configError':_0x22d713(0x1e2),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x22d713(0xf5),'univerAiLabel':_0x22d713(0x1ab),'getStarted':_0x22d713(0x111)},'validation':{'apiKeyRequired':_0x22d713(0x129),'apiKeyTooShort':_0x22d713(0x182),'invalidConfig':'配置无效','invalidApiKey':_0x22d713(0x1c4)},'connectionStatus':{'disconnected':_0x22d713(0x233),'connecting':_0x22d713(0x1e4),'connected':_0x22d713(0x1c0),'failed':_0x22d713(0x192),'retrying':_0x22d713(0x1cb)},'connectionError':{'missingApiKey':_0x22d713(0x23a),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x22d713(0x14c),'networkError':_0x22d713(0x103),'maxRetriesExceeded':_0x22d713(0x120)}}};function _0x5382(){var _0x4a6909=['_configService','mcpConfig.apiKeyHint','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','MCP\x20Connecting...','UniverIcon','univer_session_id:','几秒钟内获取您的\x20API\x20密钥','Disconnected','启用身份验证','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','CloseSmallSingle','12UvdIBn','has','showConfigPanel','MCP\x20客户端配置','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6tXrWhe','errorMessage','hasOwnProperty','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','pluginName','超出最大重试次数,请稍后再试','MenuIcon','isValid','_config$','mcpConfig.configInstructions','配置参数:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.apiApplyInfo.description','MCP\x20Client\x20Configuration','API\x20密钥不能为空','idSuffix','disposeWithMe','mcpStatus.sessionOccupied','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.apiKey','removeItem','value','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','warn','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP:\x20缺少\x20API\x20密钥','_loadStoredApiKey','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.connectionError.maxRetriesExceeded','COMMAND','xlink:href','8JbXTKk','univer-min-w-0\x20univer-flex-1','mcp-ui.command.openConfigPanel','MCP:\x20网络错误','mcpConfig.save','onStarting','最大重试次数','icon','show','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_logService','Enter\x20your\x20API\x20key','RETRYING','mcpConfig.configStepTitle','open','length','toString','保存配置','会话当前被占用,请稍后再试','Bearer\x20','MCPConfigPanel','_apiKey$','univer-flex\x20univer-cursor-pointer\x20univer-items-center','配置保存成功','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','assign','hover:univer-opacity-80','mcpConfig.configStep1','off','_uiPartsService','svg','_initializeCommands','close','text','getOwnPropertyDescriptor','_menuManagerService','_dialogService','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex-shrink-0\x20univer-text-blue-500','Invalid\x20configuration','mcpStatus.invalidApiKey','MCP:\x20Session\x20Occupied','univer-text-xs\x20univer-text-gray-500','NONE','concat','18puXCEW','error','Enable\x20authentication\x20for\x20secure\x20connections','HEADER_MENU','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','extend','重启您的\x20MCP\x20客户端以使配置生效','_initializeMenus','mcpStatus.retrying','off-line-icon_clip0_910_343','点击配置\x20MCP','white','getItem','label','_initStatusComponent','Save\x20Configuration','Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20已断开','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','MCP\x20配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_messageService','API\x20Key','mcpConfig.validation.apiKeyTooShort','mcpConfig.note1','MCP\x20Configuration','API\x20密钥长度至少需要\x2010\x20位','OffLineIcon','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','2281013FUtAFJ','call','DISCONNECTED','children','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Configuration\x20Notes:','univer-space-y-2','What\x20is\x20API\x20Key?','div','off-line-icon','url(#on-line-icon_clip0_910_349)','mcpConfig.saving','API\x20key\x20with\x20Bearer\x20prefix.','连接失败','apiKey','Max\x20Retries','showDeveloperTools','将以下配置添加到您的\x20MCP\x20客户端设置中:','Session\x20ID','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.disconnected','bottom','connectionStatus$','className','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.sessionOccupied','会话ID','668200rELFFs','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20已连接','indexOf','string','Success','none','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','M5.21243\x2012.287L11.8791\x205.62036','_createConfigPanelComponent','Univer\x20AI\x20控制台','11lmeUPi','mcpConfig.apiApplyInfo.univerAiLabel','_config','https://console.univer.plus','univer.ai','prototype','0\x200\x2017\x2016','SESSION_ID_OCCUPIED','mcp-config-dialog','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sessionId$','current','_handleConfigure','mcpConfig.connectionError.networkError','substring','includes','MCP:\x20Network\x20Error','push','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','forEach','已连接','mcpConfig.description','univer-flex-1','univer-text-red-500','API\x20密钥无效,请检查密钥是否正确','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','attrs','trim','mcpStatus.clickToConfigure','close-small-single','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重连中...','MCP\x20Retrying...','univer-space-y-4','MCP\x20连接失败','noopener\x20noreferrer','点击连接\x20MCP','univer-space-y-3','univer.plus','colorChannel1','478012tHZqDS','MCP:\x20Max\x20Retries\x20Exceeded','__setCustomHeaders','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','CheckMarkIcon','复制以下\x20JSON\x20配置','mcpStatus.failed','on-line-icon','add','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.validation.apiKeyRequired','entries','\x20-\x20','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','配置保存失败','MCP:\x20API\x20Key\x20Missing','连接中...','clipPath','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_validateConfig','univer-bg-red-500','mcpConfig.authorizationDescription','BUTTON','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','tag','_registerComponent','_connectionController','_injector','univer-font-medium','323766cFrVeZ','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Error','get','mcpConfig.configSaved','random','on-line-icon_clip0_910_349','univer-flex\x20univer-items-start\x20univer-gap-3','defIds','path','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','univer-flex\x20univer-items-center\x20univer-gap-3','registerCommand','round','_loading$','M0\x200H16V16H0z','mcpStatus.disconnected','mcpStatus.clickToConnect','MCP:\x20超出最大重试次数','mcpConfig.validation.invalidConfig','subscribeConfigValue$','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','pre','apply','getOwnPropertySymbols','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','function','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.configStep3','mcpConfig.apiApplyInfo.getStarted','_commandService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20Connected','_handleConfigSave','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','723610SihMyY','mcpStatus.maxRetriesExceeded','http://www.w3.org/2000/svg','INVALID_API_KEY','mcpConfig.connectionStatus.connected','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP_UI_PLUGIN','mergeMenu','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_componentManager','_blank','API\x20key\x20is\x20required\x20to\x20connect','univer-flex\x20univer-items-start\x20univer-gap-2','HelpSingle','univer-text-gray-400','_localeService','javascript:void(0)','1em','Configuration\x20Steps:','MCP\x20Unknown\x20Status','replace','univer-space-y-5','mcpStatus.unknown','OnLineIcon','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','15728856vJjeuZ','span','未连接','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_localStorageService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.note2','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','next','需要\x20API\x20密钥才能连接','mcpConfig.configParameters','url(#$1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2567195YGJNAe','mcpConfig.title','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','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','Retrying...','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','fill','Connecting...','MAX_RETRIES_EXCEEDED','mcpConfig.apiApplyInfo.title','mcp.apiKey','mcpStatus.networkError','univer-text-white','currentColor','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','mask','univer-text-green-500','evenodd','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','OTHERS','MCP:\x20无效的\x20API\x20密钥','mcpConfig.configStep2','mcp-ui.config','Univer\x20AI\x20Console','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20key\x20is\x20required','univer-text-gray-500','mcpServerUrl','defs','0\x200\x2016\x2016','NETWORK_ERROR','map','您的\x20API\x20密钥将在此浏览器中本地存储','_mcpConnectionController','FAILED','https://console.univer.ai','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','网络连接错误,请检查您的网络连接','CONNECTING','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.connectionStatus.retrying','displayName','配置步骤:','CONNECTED'];_0x5382=function(){return _0x4a6909;};return _0x5382();}var hn=Object[_0x22d713(0x102)],Cn=Object[_0x22d713(0x15c)],yn=(_0x8f05dd,_0x308ada,_0x294263)=>_0x308ada in _0x8f05dd?hn(_0x8f05dd,_0x308ada,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294263}):_0x8f05dd[_0x308ada]=_0x294263,_n=(_0xe96f78,_0x3a9aa3,_0x3f8b3c,_0x4eb6ad)=>{for(var _0x7fe21f=_0x4eb6ad>0x1?void 0x0:_0x4eb6ad?Cn(_0x3a9aa3,_0x3f8b3c):_0x3a9aa3,_0x4070f7=_0xe96f78['length']-0x1,_0x36912a;_0x4070f7>=0x0;_0x4070f7--)(_0x36912a=_0xe96f78[_0x4070f7])&&(_0x7fe21f=_0x36912a(_0x7fe21f)||_0x7fe21f);return _0x7fe21f;},E=(_0x3e786f,_0x28b3c7)=>(_0x4f4191,_0x1145a7)=>_0x28b3c7(_0x4f4191,_0x1145a7,_0x3e786f),xn=(_0xc71a0b,_0x3fc73c,_0x25656d)=>yn(_0xc71a0b,_0x3fc73c+'',_0x25656d);let U=class extends _0x108c6d{constructor(_0x1da913=ie,_0x567774,_0x1ac645,_0xae5cbd,_0x43ed19,_0xef53c0){var _0x17284b=_0x22d713;super(),this[_0x17284b(0x1ae)]=_0x1da913,this[_0x17284b(0x1ef)]=_0x567774,this[_0x17284b(0x10b)]=_0x1ac645,this[_0x17284b(0x157)]=_0xae5cbd,this[_0x17284b(0x235)]=_0x43ed19,this[_0x17284b(0x227)]=_0xef53c0;const {..._0x13a141}=_0x283cca({},ie,this[_0x17284b(0x1ae)]);this[_0x17284b(0x10b)][_0x17284b(0xee)](L,_0x13a141);}async[_0x22d713(0x13f)](){var _0x14c3e1=_0x22d713;const _0x593bca=[[A],[I],[M]];this[_0x14c3e1(0x1ef)][_0x14c3e1(0x117)](_0x36dc6d)||_0x593bca[_0x14c3e1(0x1bd)]([_0x36dc6d,{'useClass':_0x3278f7}]),_0x593bca['forEach'](_0x47d18e=>this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1dc)](_0x47d18e)),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](A),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](I),this[_0x14c3e1(0x1ef)]['get'](M);}};xn(U,_0x22d713(0x11f),_0x22d713(0x21e)),U=_n([_0x390f57(_0x980bdf),E(0x1,_0x5486a6(_0x5d75c5)),E(0x2,_0x16026c),E(0x3,_0x54649f),E(0x4,_0x258048),E(0x5,_0x5486a6(_0x309e63))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3bd1(_0x2ec5d9,_0x38524e){const _0x1e9824=_0x1e98();return _0x3bd1=function(_0x3bd1fa,_0x43eb96){_0x3bd1fa=_0x3bd1fa-0x1e4;let _0x15f480=_0x1e9824[_0x3bd1fa];return _0x15f480;},_0x3bd1(_0x2ec5d9,_0x38524e);}const _0x38ea03=_0x3bd1;(function(_0x341a06,_0x4dcdfe){const _0x4b812f=_0x3bd1,_0x163078=_0x341a06();while(!![]){try{const _0x1ca35c=-parseInt(_0x4b812f(0x1f5))/0x1+-parseInt(_0x4b812f(0x213))/0x2*(-parseInt(_0x4b812f(0x1fb))/0x3)+parseInt(_0x4b812f(0x1ea))/0x4*(-parseInt(_0x4b812f(0x1e7))/0x5)+parseInt(_0x4b812f(0x202))/0x6*(-parseInt(_0x4b812f(0x1f4))/0x7)+parseInt(_0x4b812f(0x1ee))/0x8+parseInt(_0x4b812f(0x20a))/0x9+-parseInt(_0x4b812f(0x20d))/0xa*(-parseInt(_0x4b812f(0x1ed))/0xb);if(_0x1ca35c===_0x4dcdfe)break;else _0x163078['push'](_0x163078['shift']());}catch(_0x456faf){_0x163078['push'](_0x163078['shift']());}}}(_0x1e98,0x67969));function _0x1e98(){const _0x2a218d=['Invalid\x20configuration','211189wstuiE','4319440sgzcmk','Configuration\x20saved\x20successfully','Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enter\x20your\x20API\x20key','MCP:\x20API\x20Key\x20Missing','28PGpJyA','654708YzWkpD','Session\x20ID','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Connection\x20Failed','11037srMmcs','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\x20Connecting...','Saving...','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','106584VEDGDO','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','6591051wFtCUZ','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','70pRopsZ','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Enable\x20Authentication','Click\x20to\x20connect\x20MCP','118xHhBPo','Disconnected','MCP\x20Connection\x20Failed','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','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','7355bzcvcL','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1288OrwERJ','MCP:\x20Invalid\x20API\x20Key'];_0x1e98=function(){return _0x2a218d;};return _0x1e98();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x38ea03(0x1fd),'connected':'MCP\x20Connected','failed':_0x38ea03(0x215),'retrying':'MCP\x20Retrying...','unknown':_0x38ea03(0x210),'missingApiKey':_0x38ea03(0x1f3),'invalidApiKey':_0x38ea03(0x1eb),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x38ea03(0x1f7),'maxRetriesExceeded':_0x38ea03(0x1e8),'clickToConnect':_0x38ea03(0x212),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x38ea03(0x208),'apiKey':_0x38ea03(0x203),'apiKeyPlaceholder':_0x38ea03(0x1f2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x38ea03(0x211),'enableAuthHint':_0x38ea03(0x20c),'connectionInfo':_0x38ea03(0x1f9),'mcpClientConfig':_0x38ea03(0x1f9),'configInstructions':_0x38ea03(0x20f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x38ea03(0x1e5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x38ea03(0x204),'sessionId':_0x38ea03(0x1f6),'sessionIdDescription':_0x38ea03(0x1e4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x38ea03(0x1ff),'maxRetries':_0x38ea03(0x20e),'save':'Save\x20Configuration','saving':_0x38ea03(0x1fe),'note1':_0x38ea03(0x206),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x38ea03(0x1ef),'configError':_0x38ea03(0x209),'apiApplyInfo':{'title':_0x38ea03(0x200),'description':_0x38ea03(0x1fc),'univerAiLabel':_0x38ea03(0x1f8),'getStarted':_0x38ea03(0x207)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x38ea03(0x1f1),'invalidConfig':_0x38ea03(0x1ec),'invalidApiKey':_0x38ea03(0x201)},'connectionStatus':{'disconnected':_0x38ea03(0x214),'connecting':'Connecting...','connected':_0x38ea03(0x1f0),'failed':_0x38ea03(0x1fa),'retrying':_0x38ea03(0x20b)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x38ea03(0x205),'sessionOccupied':_0x38ea03(0x1e6),'networkError':_0x38ea03(0x1e9),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|