@univerjs-pro/mcp-ui 0.10.14 → 0.11.0-nightly.202511151013
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -0
- 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/types/locale/ja-JP.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x533b(_0x3ff913,_0x3d8119){const _0x579153=_0x5791();return _0x533b=function(_0x533ba6,_0x34afc9){_0x533ba6=_0x533ba6-0xa8;let _0x2ad40d=_0x579153[_0x533ba6];return _0x2ad40d;},_0x533b(_0x3ff913,_0x3d8119);}const _0x24f66d=_0x533b;(function(_0x5b1995,_0x4eab71){const _0x33aa47=_0x533b,_0x52b9be=_0x5b1995();while(!![]){try{const _0x3c9ace=-parseInt(_0x33aa47(0xcb))/0x1+-parseInt(_0x33aa47(0xcc))/0x2*(parseInt(_0x33aa47(0xb1))/0x3)+parseInt(_0x33aa47(0xc7))/0x4+-parseInt(_0x33aa47(0xab))/0x5+parseInt(_0x33aa47(0xc9))/0x6+-parseInt(_0x33aa47(0xad))/0x7*(-parseInt(_0x33aa47(0xae))/0x8)+-parseInt(_0x33aa47(0xb0))/0x9*(parseInt(_0x33aa47(0xb6))/0xa);if(_0x3c9ace===_0x4eab71)break;else _0x52b9be['push'](_0x52b9be['shift']());}catch(_0x422771){_0x52b9be['push'](_0x52b9be['shift']());}}}(_0x5791,0x1d3da));function _0x5791(){const _0x5dfdce=['What\x20is\x20API\x20Key?','2148930LfnfjV','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','632940rlGewy','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1339782dRLazS','MCP\x20Connection\x20Failed','33767qSTPNW','35948kKhUbm','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Connected','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','Retrying...','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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\x20Connected','409815wGYKzo','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','607845zhUnWA','8zyTIsq','Copy\x20the\x20JSON\x20configuration\x20below','9vcnZCr','3gHvbpM','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','Enable\x20Authentication'];_0x5791=function(){return _0x5dfdce;};return _0x5791();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x24f66d(0xc2),'connected':_0x24f66d(0xaa),'failed':_0x24f66d(0xca),'retrying':'MCP\x20Retrying...','unknown':_0x24f66d(0xb2),'unauthorized':_0x24f66d(0xd0),'sessionOccupied':_0x24f66d(0xc3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x24f66d(0xbc),'clickToConnect':_0x24f66d(0xd4),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x24f66d(0xd3),'description':_0x24f66d(0xac),'apiKey':_0x24f66d(0xce),'apiKeyPlaceholder':_0x24f66d(0xb3),'apiKeyHint':_0x24f66d(0xc8),'enableAuth':_0x24f66d(0xb4),'enableAuthHint':_0x24f66d(0xd1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x24f66d(0xc6),'configInstructions':_0x24f66d(0xd7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x24f66d(0xaf),'configStep2':_0x24f66d(0xcd),'configStep3':_0x24f66d(0xc1),'sessionId':_0x24f66d(0xbb),'sessionIdDescription':_0x24f66d(0xba),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x24f66d(0xc0),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x24f66d(0xd2),'note2':_0x24f66d(0xa8),'configSaved':_0x24f66d(0xc5),'configError':_0x24f66d(0xbd),'apiApplyInfo':{'title':_0x24f66d(0xb5),'description':_0x24f66d(0xa9),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x24f66d(0xb8)},'validation':{'apiKeyRequired':_0x24f66d(0xd8),'apiKeyTooShort':_0x24f66d(0xb7),'invalidConfig':_0x24f66d(0xbe),'invalidApiKey':_0x24f66d(0xc4)},'connectionStatus':{'disconnected':_0x24f66d(0xd6),'connecting':_0x24f66d(0xb9),'connected':_0x24f66d(0xcf),'failed':'Connection\x20Failed','retrying':_0x24f66d(0xd5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x24f66d(0xbf),'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';const
|
|
1
|
+
'use strict';function _0x17fa(_0x1cf38a,_0x1027cf){const _0x2a2325=_0x2a23();return _0x17fa=function(_0x17fabf,_0x4bc08f){_0x17fabf=_0x17fabf-0x1ad;let _0x562cb0=_0x2a2325[_0x17fabf];return _0x562cb0;},_0x17fa(_0x1cf38a,_0x1027cf);}const _0x3d4ddc=_0x17fa;(function(_0x36f438,_0x2defbc){const _0x28cf02=_0x17fa,_0x1c412=_0x36f438();while(!![]){try{const _0x330da8=parseInt(_0x28cf02(0x1c4))/0x1*(parseInt(_0x28cf02(0x1cf))/0x2)+-parseInt(_0x28cf02(0x1d2))/0x3*(-parseInt(_0x28cf02(0x1b9))/0x4)+-parseInt(_0x28cf02(0x1d8))/0x5+parseInt(_0x28cf02(0x1ba))/0x6*(-parseInt(_0x28cf02(0x1b3))/0x7)+-parseInt(_0x28cf02(0x1da))/0x8+-parseInt(_0x28cf02(0x1ce))/0x9+-parseInt(_0x28cf02(0x1d6))/0xa*(-parseInt(_0x28cf02(0x1bc))/0xb);if(_0x330da8===_0x2defbc)break;else _0x1c412['push'](_0x1c412['shift']());}catch(_0x1be038){_0x1c412['push'](_0x1c412['shift']());}}}(_0x2a23,0xee615));function _0x2a23(){const _0x17dbcb=['Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Save\x20Configuration','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','6186744sbrsGg','2HLSGWs','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','7314rIoryl','Configuration\x20Steps:','Retrying...','What\x20is\x20API\x20Key?','1422640qlKeOJ','API\x20Key','7872070tFKDik','Get\x20your\x20API\x20key\x20in\x20seconds','15377880uhviKJ','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','Enable\x20Authentication','MCP\x20Client\x20Configuration','3199dxHMii','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Connection\x20Failed','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1948ptXhVV','11262NEduOt','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','308hrvuFt','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','847561zQtkGK','Connecting...'];_0x2a23=function(){return _0x17dbcb;};return _0x2a23();}const e={'mcpStatus':{'disconnected':_0x3d4ddc(0x1b0),'connecting':'MCP\x20Connecting...','connected':_0x3d4ddc(0x1b7),'failed':_0x3d4ddc(0x1c2),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3d4ddc(0x1c0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3d4ddc(0x1c8),'maxRetriesExceeded':_0x3d4ddc(0x1c7),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d4ddc(0x1dc),'description':_0x3d4ddc(0x1c1),'apiKey':_0x3d4ddc(0x1d7),'apiKeyPlaceholder':_0x3d4ddc(0x1b5),'apiKeyHint':_0x3d4ddc(0x1ca),'enableAuth':_0x3d4ddc(0x1b1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3d4ddc(0x1b2),'mcpClientConfig':_0x3d4ddc(0x1b2),'configInstructions':_0x3d4ddc(0x1b8),'configStepTitle':_0x3d4ddc(0x1d3),'configStep1':_0x3d4ddc(0x1d0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3d4ddc(0x1dd),'sessionIdDescription':_0x3d4ddc(0x1bd),'authorizationDescription':_0x3d4ddc(0x1db),'configParameters':_0x3d4ddc(0x1ae),'maxRetries':'Max\x20Retries','save':_0x3d4ddc(0x1cb),'saving':_0x3d4ddc(0x1cc),'note1':_0x3d4ddc(0x1be),'note2':_0x3d4ddc(0x1c9),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3d4ddc(0x1d5),'description':_0x3d4ddc(0x1bf),'univerAiLabel':_0x3d4ddc(0x1b4),'getStarted':_0x3d4ddc(0x1d9)},'validation':{'apiKeyRequired':_0x3d4ddc(0x1d1),'apiKeyTooShort':_0x3d4ddc(0x1bb),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3d4ddc(0x1cd)},'connectionStatus':{'disconnected':_0x3d4ddc(0x1c6),'connecting':_0x3d4ddc(0x1c5),'connected':'Connected','failed':_0x3d4ddc(0x1b6),'retrying':_0x3d4ddc(0x1d4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3d4ddc(0x1af),'networkError':_0x3d4ddc(0x1ad),'maxRetriesExceeded':_0x3d4ddc(0x1c3)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x39ad4b=_0x8310;function _0x8310(_0x302701,_0x36c828){const _0xba132d=_0xba13();return _0x8310=function(_0x8310cc,_0x459686){_0x8310cc=_0x8310cc-0x1db;let _0x3188d1=_0xba132d[_0x8310cc];return _0x3188d1;},_0x8310(_0x302701,_0x36c828);}(function(_0x3b2b71,_0x293657){const _0x1b1f00=_0x8310,_0x214d5c=_0x3b2b71();while(!![]){try{const _0x1afdbe=parseInt(_0x1b1f00(0x1e6))/0x1*(-parseInt(_0x1b1f00(0x1ec))/0x2)+-parseInt(_0x1b1f00(0x206))/0x3+-parseInt(_0x1b1f00(0x1f1))/0x4+-parseInt(_0x1b1f00(0x1f3))/0x5*(-parseInt(_0x1b1f00(0x1f5))/0x6)+-parseInt(_0x1b1f00(0x1e4))/0x7*(-parseInt(_0x1b1f00(0x1ea))/0x8)+-parseInt(_0x1b1f00(0x1fa))/0x9+parseInt(_0x1b1f00(0x1e0))/0xa;if(_0x1afdbe===_0x293657)break;else _0x214d5c['push'](_0x214d5c['shift']());}catch(_0x3e8ac8){_0x214d5c['push'](_0x214d5c['shift']());}}}(_0xba13,0x3cd32));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x39ad4b(0x1ed),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x39ad4b(0x1ff),'unauthorized':_0x39ad4b(0x201),'sessionOccupied':_0x39ad4b(0x200),'networkError':_0x39ad4b(0x203),'maxRetriesExceeded':_0x39ad4b(0x1de),'clickToConnect':_0x39ad4b(0x1e3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x39ad4b(0x1f8),'description':_0x39ad4b(0x1e9),'apiKey':_0x39ad4b(0x1e5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x39ad4b(0x1e2),'enableAuth':_0x39ad4b(0x1ef),'enableAuthHint':_0x39ad4b(0x1e7),'connectionInfo':_0x39ad4b(0x1db),'mcpClientConfig':_0x39ad4b(0x1db),'configInstructions':_0x39ad4b(0x1f4),'configStepTitle':_0x39ad4b(0x1ee),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x39ad4b(0x204),'sessionId':_0x39ad4b(0x1f2),'sessionIdDescription':_0x39ad4b(0x1e1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x39ad4b(0x205),'save':_0x39ad4b(0x1f7),'saving':_0x39ad4b(0x1dc),'note1':_0x39ad4b(0x1df),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x39ad4b(0x207),'configError':_0x39ad4b(0x1fb),'apiApplyInfo':{'title':_0x39ad4b(0x1f9),'description':_0x39ad4b(0x1fe),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x39ad4b(0x202)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x39ad4b(0x1f6),'invalidApiKey':_0x39ad4b(0x1eb)},'connectionStatus':{'disconnected':_0x39ad4b(0x1f0),'connecting':_0x39ad4b(0x1fc),'connected':'Connected','failed':_0x39ad4b(0x1e8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x39ad4b(0x1fd),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x39ad4b(0x1dd)}}},n=e;module['exports']=n;function _0xba13(){const _0x1bfeda=['MCP\x20Unknown\x20Status','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','335694OkdZMg','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1486780nRACBs','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','7XZiVnX','API\x20Key','355gYBfat','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2012088tGWRXE','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1436NzBLUk','MCP\x20Connecting...','Configuration\x20Steps:','Enable\x20Authentication','Disconnected','498028oZYaxK','Session\x20ID','8425RrCkWt','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1764iLJHSN','Invalid\x20configuration','Save\x20Configuration','MCP\x20Configuration','What\x20is\x20API\x20Key?','1396314VZBoxq','Failed\x20to\x20save\x20configuration','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0xba13=function(){return _0x1bfeda;};return _0xba13();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x26b6ae=_0x9cf5;(function(_0x15e3af,_0x101903){const _0x3fb058=_0x9cf5,_0x468526=_0x15e3af();while(!![]){try{const _0x2dc2ad=parseInt(_0x3fb058(0x1e4))/0x1+parseInt(_0x3fb058(0x1c9))/0x2+parseInt(_0x3fb058(0x1d6))/0x3*(parseInt(_0x3fb058(0x1b9))/0x4)+parseInt(_0x3fb058(0x1e0))/0x5+-parseInt(_0x3fb058(0x1c3))/0x6+parseInt(_0x3fb058(0x1df))/0x7+parseInt(_0x3fb058(0x1b3))/0x8*(-parseInt(_0x3fb058(0x1c8))/0x9);if(_0x2dc2ad===_0x101903)break;else _0x468526['push'](_0x468526['shift']());}catch(_0x22bcaa){_0x468526['push'](_0x468526['shift']());}}}(_0x2ce9,0x4b6b4));function _0x9cf5(_0x17bbfb,_0x5ee752){const _0x2ce9fc=_0x2ce9();return _0x9cf5=function(_0x9cf5d8,_0x2740d9){_0x9cf5d8=_0x9cf5d8-0x1b0;let _0x365351=_0x2ce9fc[_0x9cf5d8];return _0x365351;},_0x9cf5(_0x17bbfb,_0x5ee752);}const e={'mcpStatus':{'disconnected':_0x26b6ae(0x1c2),'connecting':_0x26b6ae(0x1dd),'connected':_0x26b6ae(0x1e3),'failed':_0x26b6ae(0x1d7),'retrying':_0x26b6ae(0x1be),'unknown':'MCP\x20状态未知','unauthorized':_0x26b6ae(0x1d9),'sessionOccupied':_0x26b6ae(0x1d0),'networkError':_0x26b6ae(0x1b6),'maxRetriesExceeded':_0x26b6ae(0x1d1),'clickToConnect':_0x26b6ae(0x1dc),'clickToConfigure':_0x26b6ae(0x1c1)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x26b6ae(0x1c7),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x26b6ae(0x1ba),'enableAuth':_0x26b6ae(0x1de),'enableAuthHint':_0x26b6ae(0x1d5),'connectionInfo':_0x26b6ae(0x1d8),'mcpClientConfig':_0x26b6ae(0x1d8),'configInstructions':_0x26b6ae(0x1bc),'configStepTitle':_0x26b6ae(0x1c6),'configStep1':_0x26b6ae(0x1e1),'configStep2':_0x26b6ae(0x1db),'configStep3':_0x26b6ae(0x1e2),'sessionId':_0x26b6ae(0x1bd),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x26b6ae(0x1d3),'configParameters':_0x26b6ae(0x1b8),'maxRetries':'最大重试次数','save':_0x26b6ae(0x1d4),'saving':_0x26b6ae(0x1c5),'note1':_0x26b6ae(0x1ce),'note2':_0x26b6ae(0x1bf),'configSaved':_0x26b6ae(0x1b0),'configError':_0x26b6ae(0x1bb),'apiApplyInfo':{'title':_0x26b6ae(0x1c0),'description':_0x26b6ae(0x1b7),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x26b6ae(0x1c4),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x26b6ae(0x1cd),'invalidApiKey':_0x26b6ae(0x1b5)},'connectionStatus':{'disconnected':_0x26b6ae(0x1b4),'connecting':_0x26b6ae(0x1cf),'connected':_0x26b6ae(0x1cc),'failed':'连接失败','retrying':_0x26b6ae(0x1cb)},'connectionError':{'unauthorized':_0x26b6ae(0x1ca),'sessionOccupied':_0x26b6ae(0x1d2),'networkError':_0x26b6ae(0x1b1),'maxRetriesExceeded':_0x26b6ae(0x1b2)}}};function _0x2ce9(){const _0x1c4b77=['启用身份验证以获得安全连接','26913LRTgUQ','MCP\x20连接失败','MCP\x20客户端配置','MCP:\x20未授权','exports','将配置添加到您的\x20MCP\x20客户端设置文件中','点击连接\x20MCP','MCP\x20连接中...','启用身份验证','4099732FmMBCd','463270MFRvaU','复制以下\x20JSON\x20配置','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20已连接','523490ONGlTy','配置保存成功','网络连接错误,请检查您的网络连接','超出最大重试次数,请稍后再试','11228080Jgwvet','未连接','API\x20密钥无效,请检查密钥是否正确','MCP:\x20网络错误','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置参数:','184vvDdux','您的\x20API\x20密钥将在此浏览器中本地存储','配置保存失败','将以下配置添加到您的\x20MCP\x20客户端设置中:','会话ID','MCP\x20重连中...','您的\x20API\x20密钥安全存储在本地存储中','什么是\x20API\x20密钥?','点击配置\x20MCP','MCP\x20已断开','744708WGwALU','API\x20密钥不能为空','保存中...','配置步骤:','API\x20密钥','9PFZYAF','444116wyKOvM','权限验证失败,请检查您的\x20API\x20密钥','重连中...','已连接','配置无效','配置更改将立即生效','连接中...','MCP:\x20会话\x20ID\x20已被占用','MCP:\x20超出最大重试次数','会话\x20ID\x20已被占用,请稍后再试','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置'];_0x2ce9=function(){return _0x1c4b77;};return _0x2ce9();}module[_0x26b6ae(0x1da)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2774(){const _0x4ad8a8=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connected','1lmmBqz','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','2398377JitcXn','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','3367147vrQKQG','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','Session\x20ID','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','2154842JDnBPD','exports','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','12jbkROY','267888lgzuKN','Retrying...','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Disconnected','2582200vXdcfr','1438875CFoxNw','Connecting...','2327896BENJcO'];_0x2774=function(){return _0x4ad8a8;};return _0x2774();}function _0xa59c(_0x588061,_0x2389e4){const _0x2774e1=_0x2774();return _0xa59c=function(_0xa59c6d,_0x51b7ae){_0xa59c6d=_0xa59c6d-0x106;let _0x1fe5fe=_0x2774e1[_0xa59c6d];return _0x1fe5fe;},_0xa59c(_0x588061,_0x2389e4);}const _0xcaa728=_0xa59c;(function(_0x21e797,_0x42d774){const _0x482b4a=_0xa59c,_0x31f6a3=_0x21e797();while(!![]){try{const _0x1c5824=parseInt(_0x482b4a(0x109))/0x1*(parseInt(_0x482b4a(0x12c))/0x2)+-parseInt(_0x482b4a(0x10c))/0x3+parseInt(_0x482b4a(0x106))/0x4+parseInt(_0x482b4a(0x138))/0x5+-parseInt(_0x482b4a(0x132))/0x6*(parseInt(_0x482b4a(0x115))/0x7)+parseInt(_0x482b4a(0x133))/0x8+parseInt(_0x482b4a(0x139))/0x9;if(_0x1c5824===_0x42d774)break;else _0x31f6a3['push'](_0x31f6a3['shift']());}catch(_0x427ff3){_0x31f6a3['push'](_0x31f6a3['shift']());}}}(_0x2774,0x945cf));const e={'mcpStatus':{'disconnected':_0xcaa728(0x120),'connecting':_0xcaa728(0x117),'connected':_0xcaa728(0x108),'failed':_0xcaa728(0x114),'retrying':'MCP\x20Retrying...','unknown':_0xcaa728(0x11c),'unauthorized':_0xcaa728(0x10f),'sessionOccupied':_0xcaa728(0x10d),'networkError':_0xcaa728(0x11a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xcaa728(0x12b),'clickToConfigure':_0xcaa728(0x119)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xcaa728(0x116),'apiKey':_0xcaa728(0x135),'apiKeyPlaceholder':_0xcaa728(0x131),'apiKeyHint':_0xcaa728(0x12a),'enableAuth':_0xcaa728(0x125),'enableAuthHint':_0xcaa728(0x10b),'connectionInfo':_0xcaa728(0x123),'mcpClientConfig':_0xcaa728(0x123),'configInstructions':_0xcaa728(0x130),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xcaa728(0x127),'configStep3':_0xcaa728(0x129),'sessionId':_0xcaa728(0x11b),'sessionIdDescription':_0xcaa728(0x107),'authorizationDescription':_0xcaa728(0x12f),'configParameters':_0xcaa728(0x126),'maxRetries':_0xcaa728(0x111),'save':'Save\x20Configuration','saving':'Saving...','note1':_0xcaa728(0x11e),'note2':_0xcaa728(0x124),'configSaved':_0xcaa728(0x10e),'configError':_0xcaa728(0x113),'apiApplyInfo':{'title':_0xcaa728(0x121),'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':_0xcaa728(0x10a),'getStarted':_0xcaa728(0x12e)},'validation':{'apiKeyRequired':_0xcaa728(0x112),'apiKeyTooShort':_0xcaa728(0x136),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xcaa728(0x11d)},'connectionStatus':{'disconnected':_0xcaa728(0x137),'connecting':_0xcaa728(0x13a),'connected':_0xcaa728(0x11f),'failed':'Connection\x20Failed','retrying':_0xcaa728(0x134)},'connectionError':{'unauthorized':_0xcaa728(0x110),'sessionOccupied':_0xcaa728(0x122),'networkError':_0xcaa728(0x128),'maxRetriesExceeded':_0xcaa728(0x118)}}},n=e;module[_0xcaa728(0x12d)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4e584c=_0x3937;(function(_0x11c46f,_0x290947){const _0x38f36b=_0x3937,_0x30e465=_0x11c46f();while(!![]){try{const _0x41b602=-parseInt(_0x38f36b(0x29f))/0x1*(-parseInt(_0x38f36b(0x28e))/0x2)+parseInt(_0x38f36b(0x281))/0x3*(-parseInt(_0x38f36b(0x22d))/0x4)+-parseInt(_0x38f36b(0x211))/0x5+parseInt(_0x38f36b(0x16e))/0x6*(-parseInt(_0x38f36b(0x280))/0x7)+parseInt(_0x38f36b(0x24a))/0x8+parseInt(_0x38f36b(0x2cb))/0x9+-parseInt(_0x38f36b(0x1fb))/0xa*(-parseInt(_0x38f36b(0x247))/0xb);if(_0x41b602===_0x290947)break;else _0x30e465['push'](_0x30e465['shift']());}catch(_0x2cef5b){_0x30e465['push'](_0x30e465['shift']());}}}(_0x1214,0x400c7));var Pe=Object[_0x4e584c(0x1ca)],Ee=(_0xdeb26f,_0x5ead2a,_0x16cf74)=>_0x5ead2a in _0xdeb26f?Pe(_0xdeb26f,_0x5ead2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cf74}):_0xdeb26f[_0x5ead2a]=_0x16cf74,x=(_0x377f8d,_0x1510e0,_0x77d826)=>Ee(_0x377f8d,typeof _0x1510e0!=_0x4e584c(0x269)?_0x1510e0+'':_0x1510e0,_0x77d826);import{LocaleService as _0x10e845,Inject as _0xd554c6,Injector as _0x1c5d39,IConfigService as _0x5b4e7f,ILocalStorageService as _0x5101fd,ILogService as _0x5bde43,Disposable as _0x537b5b,CommandType as _0x4e50e3,ICommandService as _0x1ccefe,DependentOn as _0x341f82,Plugin as _0xef5738,merge as _0x144741}from'@univerjs/core';import{jsxs as _0x29a34b,jsx as _0x168241}from'react/jsx-runtime';import{MCPConnectionStatus as _0x51b3c4,MCPConnectionError as _0x467903,MCPConnectionController as _0x1f2569,MCP_PLUGIN_CONFIG_KEY as _0x28c8a7,UniverMCPPlugin as _0x1f72cd}from'@univerjs-pro/mcp';import{clsx as _0xb05ffb,Input as _0x39798a,Button as _0x1c4867,MessageType as _0x39471f,Tooltip as _0x3f7d60}from'@univerjs/design';function _0x1214(){const _0x55f805=['mcp.apiKey','mcpConfig.authorizationDescription','mcpStatus.sessionOccupied','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','setConfig','配置参数:','registerCommand','mcpConfig.configStep2','26470JXLybe','HEADER_MENU','mcpConfig.connectionStatus.connected','重启您的\x20MCP\x20客户端以使配置生效','url(#on-line-icon_clip0_910_349)','连接中...','univer-text-red-500','_validateConfig','button','attrs','stringify','保存配置','mcpConfig.connectionStatus.disconnected','mcpConfig.configStep1','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','string','MCP:\x20Unauthorized','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','https://console.univer.plus','path','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','2461665Fqtgsx','close-icon','setItem','univer.ai','map','univer-flex\x20univer-items-start\x20univer-gap-2','get','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','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','0\x200\x2016\x2016','mcpConfig.validation.invalidApiKey','univer-text-gray-400','FAILED','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Enable\x20authentication\x20for\x20secure\x20connections','registerComponent','_handleConfigure','SESSION_ID_OCCUPIED','univer-shrink-0\x20univer-text-blue-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MenuIcon','disposeWithMe','substring','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','entries','NONE','API\x20key\x20is\x20required','973996eWqnuO','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.validation.apiKeyRequired','_localStorageService','MCP\x20状态未知','warn','mcpConfig.connectionStatus.connecting','showDeveloperTools','univer-bg-green-500','MCP\x20已连接','errorMessage','什么是\x20API\x20密钥?','mcpServerUrl','点击配置\x20MCP','mcpStatus.unauthorized','mcpStatus.retrying','mcpStatus.clickToConfigure','<SESSION_ID>','mcpStatus.failed','univer-text-sm\x20univer-font-medium','mcp-ui.config','mcp-config-dialog','open','mask','MCP\x20连接中...','bottom','3707cbjTbN','_commandService','univer-font-medium','1972624fSWAuN','Disconnected','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','_initializeMenus','Configuration\x20Steps:','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','DISCONNECTED','mcpConfig.apiKeyHint','univer-space-y-5','trim','__setCustomHeaders','url(#off-line-icon_clip0_910_343)','defs','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-white','_config$','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','connectionError$','MCP\x20已断开','MCP\x20重连中...','配置更改将立即生效','mcpConfig.title','close','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP:\x20Network\x20Error','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','mcpConfig.connectionError.unauthorized','getCurrentConfig','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','symbol','_initConfigSync','mcpConfig.note2','univer_session_id:','mcpConfig.apiApplyInfo.title','已连接','getItem','value','BUTTON','1em','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','removeItem','M0\x200H16V16H0z','OffLineIcon','mcpStatus.connected','mcpConfig.configSaved','重连中...','tag','https://console.univer.ai','subscribe','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','启用身份验证以获得安全连接','56rkJOOy','6lFRlhY','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','next','mcpConfig.apiApplyInfo.getStarted','mcpConfig.sessionIdDescription','MCPConfigPanel','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','将配置添加到您的\x20MCP\x20客户端设置文件中','div','MCP\x20连接失败','none','_mcpConnectionController','toString','17968foZzjj','配置步骤:','MCP\x20客户端配置','最大重试次数','xlink:href','children','Configuration\x20Parameters:','current','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥不能为空','UNAUTHORIZED','mcpConfig.connectionError.networkError','clipPath','您的\x20API\x20密钥将在此浏览器中本地存储','univer-size-2\x20univer-rounded-full','mcpConfig.connectionError.sessionOccupied','replace','9CTbNhg','Session\x20ID','http://www.w3.org/2000/svg','配置无效','connectionStatus$','Error','mcpStatus.unknown','MCP:\x20会话\x20ID\x20已被占用','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','RETRYING','_mcpCoreConfig$','MCP:\x20Max\x20Retries\x20Exceeded','validateApiKey','includes','defIds','_loading$','add','What\x20is\x20API\x20Key?','univer-flex\x20univer-items-center\x20univer-gap-2','_initAutoConnect','univer-flex\x20univer-items-start\x20univer-gap-3','Bearer\x20','error','复制以下\x20JSON\x20配置','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','点击连接\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_dialogService','forEach','univer-flex\x20univer-flex-wrap\x20univer-gap-2','random','has','univer-text-blue-600','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-items-center','span','API\x20Key','currentColor','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','Connection\x20Failed','on-line-icon_clip0_910_349','univer-bg-gray-500','_blank','fill','4044681xNPjlT','COMMAND','CONNECTED','check-mark-icon','univer-mr-2\x20univer-flex\x20univer-text-xl','Invalid\x20configuration','_componentManager','pre','Click\x20to\x20configure\x20MCP','权限验证失败,请检查您的\x20API\x20密钥','Connecting...','pluginName','MCP\x20Configuration','CONNECTING','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','showConfigPanel','320406FVYVAs','mcpConfig.connectionInfo','Configuration\x20saved\x20successfully','MCP\x20配置','apiKey','_injector','HelpIcon','mcpConfig.apiKey','_configService','MCP:\x20超出最大重试次数','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.univerAiLabel','http','univer-min-w-0\x20univer-flex-1','round','displayName','mcpConfig.apiApplyInfo.description','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Configuration\x20Notes:','CloseIcon','univer-space-y-2','off','mcpStatus.disconnected','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_localeService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','https://mcp.univer.ai/mcp/?univer_session_id=','noopener\x20noreferrer','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','配置保存成功','use','启用身份验证','_loadStoredApiKey','UniverIcon','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','sessionId$','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_createConfigPanelComponent','Authorization:','API\x20密钥','off-line-icon','univer-text-xs\x20univer-text-gray-600','enableAutoConnect','Click\x20to\x20connect\x20MCP','配置保存失败','label','mcpConfig.saving','mcpConfig.connectionStatus.retrying','_connectionController','mcpConfig.validation.apiKeyTooShort','univer.plus','MCP\x20Disconnected','MCP:\x20网络错误','NETWORK_ERROR','onStarting','getOwnPropertyDescriptor','mcpStatus.connecting','univer-text-xs\x20univer-text-gray-500','网络连接错误,请检查您的网络连接','univerjs-icon\x20univerjs-icon-','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','push','subscribeConfigValue$','Enter\x20your\x20API\x20key','univer-bg-red-500','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','_messageService','show','_config','register','MCP\x20Connecting...','\x20-\x20','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','Univer\x20AI\x20控制台','CheckMarkIcon','length','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Success','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','svg','MAX_RETRIES_EXCEEDED','colorChannel1','mcpConfig.note1','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20Connection\x20Failed','defineProperty','univer-text-sm\x20univer-text-gray-500','text','assign','_registerComponent','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','0\x200\x2017\x2016','未连接','_uiPartsService','mcpConfig.configError','API\x20密钥长度至少需要\x2010\x20位','evenodd','idSuffix','isValid','url(#$1','Failed\x20to\x20save\x20configuration','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidConfig','on-line-icon','OnLineIcon','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','translate(.97)','mcp-ui.command.openConfigPanel','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_apiKey$','Save\x20Configuration','help-icon','mcpStatus.clickToConnect','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','会话ID','getConfig','_initStatusComponent','_handleConfigSave','mcpConfig.save','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-yellow-500','mcpConfig.configParameters','univer-text-gray-500','API\x20密钥无效,请检查密钥是否正确'];_0x1214=function(){return _0x55f805;};return _0x1214();}import{useDependency as _0x3f390e,useObservable as _0x5bb29a,IUIPartsService as _0x25baf3,IDialogService as _0x2c6c49,IMessageService as _0x5c9e0c,ComponentManager as _0x5d98d5,connectInjector as _0x3bc164,BuiltInUIPart as _0x3a82b7,MenuItemType as _0x4bdc4a,RibbonStartGroup as _0x52acc8,IMenuManagerService as _0x461dbe}from'@univerjs/ui';import{BehaviorSubject as _0x3e840f}from'rxjs';import{useRef as _0x169ea3,createElement as _0x5a92b3,forwardRef as _0x284398,useState as _0x310dff,useCallback as _0x1aa4ef}from'react';import{ISocketService as _0x13a839,WebSocketService as _0xafe199}from'@univerjs/network';function b({ref:_0x84c244,..._0x5026d2}){const _0x3518c2=_0x4e584c,{icon:_0x37296f,id:_0xd31f69,className:_0x2a2cd6,extend:_0x82b011,..._0x3a91aa}=_0x5026d2,_0x9e78dd=(_0x3518c2(0x1ad)+_0xd31f69+'\x20'+(_0x2a2cd6||''))[_0x3518c2(0x253)](),_0x962e68=_0x169ea3('_'+We());return ae(_0x37296f,''+_0xd31f69,{'defIds':_0x37296f[_0x3518c2(0x2ad)],'idSuffix':_0x962e68[_0x3518c2(0x295)]},{'ref':_0x84c244,'className':_0x9e78dd,..._0x3a91aa},_0x82b011);}function ae(_0x506683,_0x3c2c3f,_0x51fe3c,_0x46471b,_0x42cf7c){const _0xf47567=_0x4e584c;return _0x5a92b3(_0x506683[_0xf47567(0x27a)],{'key':_0x3c2c3f,...Ye(_0x506683,_0x51fe3c,_0x42cf7c),..._0x46471b},(Ze(_0x506683,_0x51fe3c)['children']||[])[_0xf47567(0x215)]((_0xa5de01,_0x41ef73)=>ae(_0xa5de01,_0x3c2c3f+'-'+_0x506683[_0xf47567(0x27a)]+'-'+_0x41ef73,_0x51fe3c,void 0x0,_0x42cf7c)));}function Ye(_0x2a5c78,_0x254c39,_0x45a5c6){const _0x48e1cb=_0x4e584c,_0x47ca0d={..._0x2a5c78[_0x48e1cb(0x204)]};_0x45a5c6!=null&&_0x45a5c6[_0x48e1cb(0x1c4)]&&_0x47ca0d[_0x48e1cb(0x2ca)]===_0x48e1cb(0x1c4)&&(_0x47ca0d['fill']=_0x45a5c6['colorChannel1']),_0x2a5c78[_0x48e1cb(0x27a)]===_0x48e1cb(0x244)&&_0x47ca0d['id']&&(_0x47ca0d['id']=_0x47ca0d['id']+_0x254c39['idSuffix']),Object[_0x48e1cb(0x22a)](_0x47ca0d)[_0x48e1cb(0x2bb)](([_0x2e5017,_0x11e2b7])=>{const _0x2cdb86=_0x48e1cb;_0x2e5017===_0x2cdb86(0x244)&&typeof _0x11e2b7==_0x2cdb86(0x20a)&&(_0x47ca0d[_0x2e5017]=_0x11e2b7[_0x2cdb86(0x29e)](/url\(#(.*)\)/,'url(#$1'+_0x254c39['idSuffix']+')'));});const {defIds:_0x3cbf39}=_0x254c39;return!_0x3cbf39||_0x3cbf39[_0x48e1cb(0x1be)]===0x0||(_0x2a5c78[_0x48e1cb(0x27a)]===_0x48e1cb(0x190)&&_0x47ca0d[_0x48e1cb(0x292)]&&(_0x47ca0d['xlink:href']=_0x47ca0d[_0x48e1cb(0x292)]+_0x254c39[_0x48e1cb(0x1d6)]),Object[_0x48e1cb(0x22a)](_0x47ca0d)[_0x48e1cb(0x2bb)](([_0xb38cbf,_0x503ae8])=>{const _0xe54fd2=_0x48e1cb;typeof _0x503ae8=='string'&&(_0x47ca0d[_0xb38cbf]=_0x503ae8[_0xe54fd2(0x29e)](/url\(#(.*)\)/,_0xe54fd2(0x1d8)+_0x254c39[_0xe54fd2(0x1d6)]+')'));})),_0x47ca0d;}function Ze(_0x4f1edd,_0x32ff32){const _0x43f0bf=_0x4e584c;var _0x40a79b;const {defIds:_0x2b2e25}=_0x32ff32;return!_0x2b2e25||_0x2b2e25[_0x43f0bf(0x1be)]===0x0?_0x4f1edd:_0x4f1edd[_0x43f0bf(0x27a)]===_0x43f0bf(0x256)&&((_0x40a79b=_0x4f1edd[_0x43f0bf(0x293)])!=null&&_0x40a79b[_0x43f0bf(0x1be)])?{..._0x4f1edd,'children':_0x4f1edd['children'][_0x43f0bf(0x215)](_0x2fec65=>typeof _0x2fec65['attrs']['id']=='string'&&_0x2b2e25&&_0x2b2e25['includes'](_0x2fec65[_0x43f0bf(0x204)]['id'])?{..._0x2fec65,'attrs':{..._0x2fec65[_0x43f0bf(0x204)],'id':_0x2fec65[_0x43f0bf(0x204)]['id']+_0x32ff32[_0x43f0bf(0x1d6)]}}:_0x2fec65)}:_0x4f1edd;}function _0x3937(_0x484937,_0x4d1a08){const _0x121459=_0x1214();return _0x3937=function(_0x393718,_0x45dd85){_0x393718=_0x393718-0x16e;let _0x2acd99=_0x121459[_0x393718];return _0x2acd99;},_0x3937(_0x484937,_0x4d1a08);}function We(){const _0x209497=_0x4e584c;return Math[_0x209497(0x2bd)]()[_0x209497(0x28d)](0x24)[_0x209497(0x228)](0x2,0x8);}b['displayName']=_0x4e584c(0x193);const qe={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e584c(0x28b),'viewBox':_0x4e584c(0x21a),'width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x2d9),'fillRule':_0x4e584c(0x1d5),'clipRule':'evenodd'}}]},le=_0x284398(function(_0x1b9a79,_0x41a9c0){const _0x192aa4=_0x4e584c;return _0x5a92b3(b,Object['assign']({},_0x1b9a79,{'id':_0x192aa4(0x2ce),'ref':_0x41a9c0,'icon':qe}));});le[_0x4e584c(0x17e)]=_0x4e584c(0x1bd);const Xe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e584c(0x28b),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x209)}}]},ue=_0x284398(function(_0x5c37c8,_0x462b08){const _0x482bdc=_0x4e584c;return _0x5a92b3(b,Object[_0x482bdc(0x1cd)]({},_0x5c37c8,{'id':_0x482bdc(0x212),'ref':_0x462b08,'icon':Xe}));});ue['displayName']=_0x4e584c(0x182);const Je={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':_0x4e584c(0x2a1),'fill':_0x4e584c(0x28b),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x219)}},{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x24c)}},{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x189),'fillRule':_0x4e584c(0x1d5),'clipRule':_0x4e584c(0x1d5)}}]},ve=_0x284398(function(_0x2a6d37,_0xe7b332){const _0xd3c65=_0x4e584c;return _0x5a92b3(b,Object[_0xd3c65(0x1cd)]({},_0x2a6d37,{'id':_0xd3c65(0x1e5),'ref':_0xe7b332,'icon':Je}));});ve['displayName']=_0x4e584c(0x174);const Qe={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':_0x4e584c(0x2a1),'fill':_0x4e584c(0x28b),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':'g','attrs':{'clipPath':_0x4e584c(0x255)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'stroke':_0x4e584c(0x2c4),'d':_0x4e584c(0x1cf),'strokeLinecap':_0x4e584c(0x17d),'strokeLinejoin':_0x4e584c(0x17d),'strokeWidth':1.2}}]},{'tag':_0x4e584c(0x256),'attrs':{},'children':[{'tag':_0x4e584c(0x29a),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':'white','d':_0x4e584c(0x275)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0x284398(function(_0x56d310,_0x5de4c3){const _0x46c08a=_0x4e584c;return _0x5a92b3(b,Object[_0x46c08a(0x1cd)]({},_0x56d310,{'id':_0x46c08a(0x19a),'ref':_0x5de4c3,'icon':Qe}));});de[_0x4e584c(0x17e)]=_0x4e584c(0x276);const en={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4e584c(0x1d0),'width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':'g','attrs':{'clipPath':_0x4e584c(0x1ff)},'children':[{'tag':'path','attrs':{'stroke':_0x4e584c(0x2c4),'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':'round','strokeLinejoin':_0x4e584c(0x17d),'strokeWidth':1.2}}]},{'tag':_0x4e584c(0x256),'attrs':{},'children':[{'tag':_0x4e584c(0x29a),'attrs':{'id':_0x4e584c(0x2c7)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':'white','d':_0x4e584c(0x275),'transform':_0x4e584c(0x1e0)}}]}]}],'defIds':[_0x4e584c(0x2c7)]},ge=_0x284398(function(_0x495438,_0x4b98df){const _0x422e98=_0x4e584c;return _0x5a92b3(b,Object['assign']({},_0x495438,{'id':_0x422e98(0x1dc),'ref':_0x4b98df,'icon':en}));});ge[_0x4e584c(0x17e)]=_0x4e584c(0x1dd);function nn(_0x163237){const _0x9b919f=_0x4e584c;var _0x5737cd,_0x158d28;const {mcpCoreConfig:_0x2f9894,onSave:_0x41774c,loading:_0xae2d4e=!0x1,config:_0x536596,connectionStatus$:_0xd10ddc,connectionError$:_0x168ac6,currentApiKey$:_0x3e3756,currentSessionId$:_0x22a118}=_0x163237,_0x3ea213=_0x3f390e(_0x10e845),_0xaa527b=_0x5bb29a(_0xd10ddc,_0x51b3c4[_0x9b919f(0x250)]),_0x219601=_0x5bb29a(_0x168ac6,_0x467903['NONE']),_0x57c0e2=_0x5bb29a(_0x22a118,''),_0x2e1069=_0x5bb29a(_0x3e3756,''),[_0x4c5c86,_0x9e5291]=_0x310dff(_0x2e1069||''),_0x5b74b2=!0x0,_0xc6ea0e=_0x536596[_0x9b919f(0x234)]&&_0x2f9894[_0x9b919f(0x239)]&&(_0x2f9894[_0x9b919f(0x239)][_0x9b919f(0x2ac)](_0x9b919f(0x1a4))||_0x2f9894[_0x9b919f(0x239)]['includes'](_0x9b919f(0x214))),_0x135540=(_0x5737cd=_0x2f9894[_0x9b919f(0x239)])==null?void 0x0:_0x5737cd[_0x9b919f(0x2ac)]('univer.plus'),_0x372e46=(_0x158d28=_0x2f9894[_0x9b919f(0x239)])==null?void 0x0:_0x158d28[_0x9b919f(0x2ac)](_0x9b919f(0x214)),_0x37ac3a=_0x135540?_0x9b919f(0x20e):_0x9b919f(0x27b),_0x51ed66=_0x536596[_0x9b919f(0x234)]&&(_0x135540||_0x372e46),[_0x1bbb3a,_0x425e64]=_0x310dff(!_0x4c5c86[_0x9b919f(0x253)]()),_0x34542a=(_0x3a26a4,_0x185250)=>{const _0x566b03=_0x9b919f;if(_0x185250===_0x467903['UNAUTHORIZED'])return _0x566b03(0x18e);switch(_0x3a26a4){case _0x51b3c4[_0x566b03(0x2cd)]:return _0x566b03(0x261);case _0x51b3c4[_0x566b03(0x2d8)]:case _0x51b3c4[_0x566b03(0x2a8)]:return _0x566b03(0x178);case _0x51b3c4[_0x566b03(0x21d)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x566b03(0x18d);}},_0x442a59=(_0x464dcb,_0x266772)=>{const _0x2ad074=_0x9b919f;if(_0x266772===_0x467903[_0x2ad074(0x298)])return _0x2ad074(0x1b2);switch(_0x464dcb){case _0x51b3c4[_0x2ad074(0x2cd)]:return _0x2ad074(0x235);case _0x51b3c4[_0x2ad074(0x2d8)]:case _0x51b3c4['RETRYING']:return'univer-bg-blue-500';case _0x51b3c4[_0x2ad074(0x21d)]:return _0x2ad074(0x1b2);default:return _0x2ad074(0x2c8);}},_0x6a6dcc=_0x17ee69=>{const _0x2e9dff=_0x9b919f;switch(_0x17ee69){case _0x51b3c4[_0x2e9dff(0x2cd)]:return _0x3ea213['t'](_0x2e9dff(0x1fd));case _0x51b3c4[_0x2e9dff(0x2d8)]:return _0x3ea213['t'](_0x2e9dff(0x233));case _0x51b3c4[_0x2e9dff(0x21d)]:return _0x3ea213['t']('mcpConfig.connectionStatus.failed');case _0x51b3c4[_0x2e9dff(0x2a8)]:return _0x3ea213['t'](_0x2e9dff(0x1a1));default:return _0x3ea213['t'](_0x2e9dff(0x207));}},_0x137d4e=_0x39ebbb=>{const _0x470660=_0x9b919f;switch(_0x39ebbb){case _0x467903[_0x470660(0x298)]:return _0x3ea213['t'](_0x470660(0x266));case _0x467903['SESSION_ID_OCCUPIED']:return _0x3ea213['t'](_0x470660(0x29d));case _0x467903['NETWORK_ERROR']:return _0x3ea213['t'](_0x470660(0x299));case _0x467903[_0x470660(0x1c3)]:return _0x3ea213['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2bd0cd=_0x1aa4ef(()=>{const _0x587525={..._0x2f9894,'apiKey':_0x4c5c86['trim'](),'enableAuth':_0x5b74b2};_0x41774c(_0x587525);},[_0x2f9894,_0x4c5c86,_0x5b74b2,_0x41774c]),_0x397c6d=_0x4c5c86[_0x9b919f(0x253)]()[_0x9b919f(0x1be)]>0x0;return _0x29a34b('div',{'className':_0x9b919f(0x287),'children':[_0x168241(_0x9b919f(0x289),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1c8),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x21e),'children':_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x258),'children':'⚙'})}),_0x168241(_0x9b919f(0x289),{'children':_0x168241('p',{'className':_0x9b919f(0x1cb),'children':_0x3ea213['t']('mcpConfig.description')})})]})}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x273),'children':[_0x168241(_0x9b919f(0x289),{'className':_0xb05ffb(_0x9b919f(0x1c1),_0x34542a(_0xaa527b,_0x219601)),'children':_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x168241(_0x9b919f(0x289),{'className':_0xb05ffb(_0x9b919f(0x29c),_0x442a59(_0xaa527b,_0x219601))}),_0x168241('span',{'className':_0x9b919f(0x240),'children':_0x6a6dcc(_0xaa527b)})]})}),_0x219601!==_0x467903[_0x9b919f(0x22b)]&&(_0xaa527b===_0x51b3c4[_0x9b919f(0x21d)]||_0x219601===_0x467903[_0x9b919f(0x298)])&&_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x296),'children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x216),'children':[_0x168241(_0x9b919f(0x2c2),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x168241('p',{'className':_0x9b919f(0x2a7),'children':_0x137d4e(_0x219601)})]})})]}),_0x168241('div',{'className':_0x9b919f(0x27d),'children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x252),'children':[_0x29a34b('div',{'className':_0x9b919f(0x183),'children':[_0x29a34b(_0x9b919f(0x19f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x168241('span',{'children':'🔑'}),'\x20',_0x3ea213['t'](_0x9b919f(0x175)),_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x201),'children':'*'}),_0xc6ea0e&&_0x168241('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3ea213['t'](_0x9b919f(0x26d)),'role':'button','onClick':()=>_0x425e64(!0x0),'children':_0x168241(ve,{})})]}),_0x168241(_0x39798a,{'type':_0x9b919f(0x1cc),'placeholder':_0x3ea213['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x4c5c86,'disabled':_0xae2d4e,'autoComplete':_0x9b919f(0x184),'onChange':_0x9e5291}),_0x168241('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3ea213['t'](_0x9b919f(0x251))})]}),_0xc6ea0e&&_0x1bbb3a&&_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1b3),'children':[_0x168241('a',{'className':_0x9b919f(0x218),'role':_0x9b919f(0x203),'onClick':()=>_0x425e64(!0x1),'children':_0x168241(ue,{'className':'univer-size-4'})}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1e7),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x194),'children':_0x168241('span',{'className':_0x9b919f(0x2bf),'children':'🚀'})}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex-1','children':[_0x168241('h4',{'className':_0x9b919f(0x188),'children':_0x3ea213['t'](_0x9b919f(0x26d))}),_0x168241('p',{'className':_0x9b919f(0x196),'children':_0x3ea213['t'](_0x9b919f(0x17f))}),_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x2bc),'children':_0x51ed66&&_0x29a34b('a',{'className':_0x9b919f(0x25a),'href':_0x37ac3a,'target':_0x9b919f(0x2c9),'rel':_0x9b919f(0x18b),'children':[_0x168241(_0x9b919f(0x2c2),{'children':'🤖'}),_0x3ea213['t'](_0x9b919f(0x17a)),_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x21c),'children':'↗'})]})}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1f6),'children':['✨','\x20',_0x3ea213['t'](_0x9b919f(0x284))]})]})]})]}),_0x536596['showDeveloperTools']&&_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1ed),'children':[_0x29a34b('h4',{'className':_0x9b919f(0x210),'children':[_0x168241(_0x9b919f(0x2c2),{'children':'🔗'}),'\x20',_0x3ea213['t'](_0x9b919f(0x16f))]}),_0x29a34b('div',{'className':'univer-space-y-4','children':[_0x29a34b(_0x9b919f(0x289),{'className':'univer-space-y-3','children':[_0x168241('p',{'className':_0x9b919f(0x19b),'children':_0x3ea213['t']('mcpConfig.configInstructions')}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x183),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1bf),'children':_0x3ea213['t']('mcpConfig.configStepTitle')}),_0x29a34b('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x29a34b('div',{'className':_0x9b919f(0x2b1),'children':[_0x168241('span',{'className':_0x9b919f(0x180),'children':'1'}),_0x3ea213['t'](_0x9b919f(0x208))]}),_0x29a34b('div',{'className':_0x9b919f(0x2b1),'children':[_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x180),'children':'2'}),_0x3ea213['t'](_0x9b919f(0x1fa))]}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x168241('span',{'className':_0x9b919f(0x180),'children':'3'}),_0x3ea213['t']('mcpConfig.configStep3')]})]})]})]}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x183),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1bf),'children':_0x9b919f(0x2d7)}),_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x24f),'children':_0x168241(_0x9b919f(0x2d2),{'className':_0x9b919f(0x20c),'children':JSON[_0x9b919f(0x205)]({'mcpServers':{'univer':{'url':_0x9b919f(0x18a)+(_0x57c0e2||_0x9b919f(0x23e)),'type':_0x9b919f(0x17b),'headers':{'Authorization':_0x9b919f(0x2b4)+(_0x4c5c86||'<API_KEY>')}}}},null,0x2)})})]}),_0x29a34b('div',{'className':'univer-space-y-3','children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1bf),'children':_0x3ea213['t'](_0x9b919f(0x1f0))}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-space-y-2','children':[_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x2b3),'children':[_0x168241(_0x9b919f(0x289),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1ee),'children':_0x9b919f(0x26c)}),_0x168241('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3ea213['t'](_0x9b919f(0x285))})]})]}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x168241('div',{'className':_0x9b919f(0x225)}),_0x29a34b('div',{'className':_0x9b919f(0x17c),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1ee),'children':_0x9b919f(0x198)}),_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1ab),'children':_0x3ea213['t'](_0x9b919f(0x1f4))})]})]})]})]})]})]}),_0x168241(_0x1c4867,{'onClick':_0x2bd0cd,'disabled':!_0x397c6d||_0xae2d4e,'className':_0x9b919f(0x2c5),'children':_0xae2d4e?_0x29a34b(_0x9b919f(0x2c2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x168241(_0x9b919f(0x2c2),{'children':'⟲'}),_0x3ea213['t'](_0x9b919f(0x1a0))]}):_0x29a34b(_0x9b919f(0x2c2),{'className':_0x9b919f(0x2b1),'children':[_0x168241(le,{}),_0x3ea213['t'](_0x9b919f(0x1ec))]})}),_0x168241('div',{'className':_0x9b919f(0x229),'children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1da),'children':[_0x168241('span',{'className':_0x9b919f(0x223),'children':'💡'}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x282),'children':[_0x168241('div',{'className':_0x9b919f(0x249),'children':_0x9b919f(0x181)}),_0x29a34b(_0x9b919f(0x289),{'children':['•',_0x3ea213['t'](_0x9b919f(0x1c5))]}),_0x29a34b(_0x9b919f(0x289),{'children':['•',_0x3ea213['t'](_0x9b919f(0x26b))]})]})]})})]})})]});}const y=_0x4e584c(0x241),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4e584c(0x1a9)],tn=(_0x46b916,_0x2b1d78,_0x3a461f,_0x2e361b)=>{const _0xf74b91=_0x4e584c;for(var _0x1df32b=_0x2e361b>0x1?void 0x0:_0x2e361b?rn(_0x2b1d78,_0x3a461f):_0x2b1d78,_0x294c80=_0x46b916[_0xf74b91(0x1be)]-0x1,_0x42bfaa;_0x294c80>=0x0;_0x294c80--)(_0x42bfaa=_0x46b916[_0x294c80])&&(_0x1df32b=_0x42bfaa(_0x1df32b)||_0x1df32b);return _0x1df32b;},d=(_0x1538ad,_0x498779)=>(_0x1fb90a,_0x54b02d)=>_0x498779(_0x1fb90a,_0x54b02d,_0x1538ad);const U=_0x4e584c(0x1f3),L=_0x4e584c(0x242);let I=class extends _0x537b5b{constructor(_0xd20304,_0x87cfd4,_0x387e54,_0xd0947b,_0x56b352,_0x279018,_0x5693ce,_0x29627b,_0x5a2524,_0x446de8){const _0x2fd4b5=_0x4e584c;super(),x(this,_0x2fd4b5(0x2ae),new _0x3e840f(!0x1)),x(this,_0x2fd4b5(0x2a9),new _0x3e840f({})),x(this,'_config$',new _0x3e840f({})),x(this,_0x2fd4b5(0x1e3),new _0x3e840f('')),x(this,_0x2fd4b5(0x1eb),async _0x5dff73=>{const _0x776792=_0x2fd4b5;var _0xe6f2d6,_0x21ee6f;this[_0x776792(0x2ae)][_0x776792(0x283)](!0x0);try{const _0xe662c5=await this[_0x776792(0x202)](_0x5dff73);if(!_0xe662c5[_0x776792(0x1d7)]){this[_0x776792(0x1b4)][_0x776792(0x1b5)]({'type':_0x39471f[_0x776792(0x2a4)],'content':_0xe662c5[_0x776792(0x237)]||this[_0x776792(0x187)]['t'](_0x776792(0x1db))});return;}_0x5dff73[_0x776792(0x172)]?await this['_localStorageService'][_0x776792(0x213)](U,_0x5dff73[_0x776792(0x172)]['trim']()):await this['_localStorageService'][_0x776792(0x274)](U),this[_0x776792(0x1e3)]['next'](((_0xe6f2d6=_0x5dff73[_0x776792(0x172)])==null?void 0x0:_0xe6f2d6[_0x776792(0x253)]())||''),this['_mcpConnectionController'][_0x776792(0x254)]({'Authorization':_0x776792(0x2b4)+((_0x21ee6f=_0x5dff73[_0x776792(0x172)])==null?void 0x0:_0x21ee6f[_0x776792(0x253)]())}),this[_0x776792(0x1b4)]['show']({'type':_0x39471f[_0x776792(0x1c0)],'content':this[_0x776792(0x187)]['t'](_0x776792(0x278))}),setTimeout(()=>{const _0x27d674=_0x776792;this['_dialogService'][_0x27d674(0x260)](L);},0x320);}catch(_0x40bacd){this['_logService'][_0x776792(0x2b5)](_0x776792(0x224),_0x40bacd),this['_messageService']['show']({'type':_0x39471f[_0x776792(0x2a4)],'content':this[_0x776792(0x187)]['t'](_0x776792(0x1d3))});}finally{this[_0x776792(0x2ae)]['next'](!0x1);}}),(this[_0x2fd4b5(0x173)]=_0xd20304,this[_0x2fd4b5(0x1d2)]=_0x87cfd4,this['_configService']=_0x387e54,this['_localStorageService']=_0xd0947b,this['_dialogService']=_0x56b352,this[_0x2fd4b5(0x1b4)]=_0x279018,this[_0x2fd4b5(0x2d1)]=_0x5693ce,this[_0x2fd4b5(0x187)]=_0x29627b,this['_logService']=_0x5a2524,this['_mcpConnectionController']=_0x446de8,this['_initConfigSync'](),this[_0x2fd4b5(0x192)](),this[_0x2fd4b5(0x1ce)]());}[_0x4e584c(0x2da)](){const _0xda0a66=_0x4e584c,_0x18e9c6=this[_0xda0a66(0x176)][_0xda0a66(0x1e9)](y);_0x18e9c6!=null&&_0x18e9c6[_0xda0a66(0x234)]&&this['_dialogService'][_0xda0a66(0x243)]({'id':L,'title':{'title':this[_0xda0a66(0x187)]['t']('mcpConfig.title')},'children':{'label':_0xda0a66(0x286)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x343b27=_0xda0a66;this[_0x343b27(0x2ba)][_0x343b27(0x260)](L);}});}[_0x4e584c(0x267)](){const _0x20b844=_0x4e584c;return this['_mcpCoreConfig$'][_0x20b844(0x270)];}[_0x4e584c(0x1ce)](){const _0x437a58=_0x4e584c;this[_0x437a58(0x227)](this[_0x437a58(0x2d1)][_0x437a58(0x1b7)](_0x437a58(0x286),this[_0x437a58(0x197)]()));}[_0x4e584c(0x197)](){const _0x8252aa=_0x4e584c;return _0x3bc164(()=>{const _0x14b81f=_0x3937;var _0x44e291,_0x20373f,_0x1ff89a;return _0x168241(nn,{'config':this[_0x14b81f(0x259)][_0x14b81f(0x270)],'mcpCoreConfig':this[_0x14b81f(0x2a9)][_0x14b81f(0x270)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x14b81f(0x1eb)],'loading':this[_0x14b81f(0x2ae)][_0x14b81f(0x270)],'connectionStatus$':(_0x44e291=this[_0x14b81f(0x28c)])==null?void 0x0:_0x44e291[_0x14b81f(0x2a3)],'connectionError$':(_0x20373f=this[_0x14b81f(0x28c)])==null?void 0x0:_0x20373f[_0x14b81f(0x25b)],'currentSessionId$':(_0x1ff89a=this[_0x14b81f(0x28c)])==null?void 0x0:_0x1ff89a[_0x14b81f(0x195)]});},this[_0x8252aa(0x173)]);}[_0x4e584c(0x26a)](){const _0x565809=_0x4e584c;this[_0x565809(0x227)](this[_0x565809(0x176)][_0x565809(0x1b0)](_0x28c8a7)[_0x565809(0x27c)](_0xd17e65=>{const _0x59d770=_0x565809;this[_0x59d770(0x2a9)][_0x59d770(0x283)](_0xd17e65||{});}));const _0xc5dac9=this[_0x565809(0x176)]['getConfig'](_0x28c8a7);this[_0x565809(0x2a9)][_0x565809(0x283)](_0xc5dac9||{}),this['disposeWithMe'](this[_0x565809(0x176)][_0x565809(0x1b0)](y)[_0x565809(0x27c)](_0x1aaa3c=>{const _0x2dbb0a=_0x565809;this[_0x2dbb0a(0x259)][_0x2dbb0a(0x283)](_0x1aaa3c||{});}));const _0x26e995=this[_0x565809(0x176)]['getConfig'](y);this[_0x565809(0x259)]['next'](_0x26e995||{});}async[_0x4e584c(0x192)](){const _0x1dfb4a=_0x4e584c,_0x44117a=this[_0x1dfb4a(0x176)]['getConfig'](y);if(!(_0x44117a!=null&&_0x44117a['showDeveloperTools']))return;const _0x10d749=await this['_localStorageService'][_0x1dfb4a(0x26f)](U);_0x10d749&&(this['_mcpConnectionController'][_0x1dfb4a(0x254)]({'Authorization':'Bearer\x20'+_0x10d749}),this['_apiKey$'][_0x1dfb4a(0x283)](_0x10d749));}async[_0x4e584c(0x202)](_0x3eb4ba){const _0x545d97=_0x4e584c;if(!_0x3eb4ba[_0x545d97(0x172)]||_0x3eb4ba[_0x545d97(0x172)][_0x545d97(0x253)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x545d97(0x187)]['t'](_0x545d97(0x22f))};if(_0x3eb4ba[_0x545d97(0x172)]['trim']()[_0x545d97(0x1be)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x545d97(0x187)]['t'](_0x545d97(0x1a3))};try{const _0x1f9dec=await this[_0x545d97(0x173)]['get'](_0x1f2569)[_0x545d97(0x2ab)](_0x3eb4ba[_0x545d97(0x172)][_0x545d97(0x253)]());return _0x1f9dec[_0x545d97(0x1d7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f9dec[_0x545d97(0x2b5)]||this[_0x545d97(0x187)]['t'](_0x545d97(0x21b))};}catch(_0x4f0e4b){return console[_0x545d97(0x232)](_0x545d97(0x1e2),_0x4f0e4b),{'isValid':!0x0};}}};I=tn([d(0x0,_0xd554c6(_0x1c5d39)),d(0x1,_0x25baf3),d(0x2,_0x5b4e7f),d(0x3,_0x5101fd),d(0x4,_0x2c6c49),d(0x5,_0x5c9e0c),d(0x6,_0xd554c6(_0x5d98d5)),d(0x7,_0xd554c6(_0x10e845)),d(0x8,_0x5bde43),d(0x9,_0xd554c6(_0x1f2569))],I);const V={'id':_0x4e584c(0x1e1),'type':_0x4e50e3[_0x4e584c(0x2cc)],'handler':async(_0x103708,_0x4ad6d9)=>(_0x103708[_0x4e584c(0x217)](I)[_0x4e584c(0x2da)](),!0x0)};function pe(_0x535302,_0x4bc96a){const _0x54315a=_0x4e584c;switch(_0x535302){case _0x51b3c4[_0x54315a(0x250)]:return _0x54315a(0x185);case _0x51b3c4[_0x54315a(0x2d8)]:return _0x54315a(0x1aa);case _0x51b3c4[_0x54315a(0x2cd)]:return _0x54315a(0x277);case _0x51b3c4[_0x54315a(0x21d)]:switch(_0x4bc96a){case _0x467903['UNAUTHORIZED']:return _0x54315a(0x23b);case _0x467903[_0x54315a(0x222)]:return _0x54315a(0x1f5);case _0x467903[_0x54315a(0x1a7)]:return'mcpStatus.networkError';case _0x467903[_0x54315a(0x1c3)]:return'mcpStatus.maxRetriesExceeded';default:return _0x54315a(0x23f);}case _0x51b3c4['RETRYING']:return _0x54315a(0x23c);default:return _0x54315a(0x2a5);}}function on(_0x85b51f,_0x4c94c0,_0x40911f,_0x44157e=!0x0){const _0x58e360=_0x4e584c,_0x258d96=pe(_0x85b51f,_0x4c94c0),_0x4dc7e1=_0x40911f['t'](_0x258d96);return _0x44157e?_0x85b51f===_0x51b3c4[_0x58e360(0x250)]&&_0x4c94c0===_0x467903[_0x58e360(0x298)]?_0x4dc7e1+_0x58e360(0x1b9)+_0x40911f['t'](_0x58e360(0x23d)):_0x85b51f===_0x51b3c4['CONNECTED']?''+_0x4dc7e1:_0x85b51f===_0x51b3c4[_0x58e360(0x250)]||_0x85b51f===_0x51b3c4[_0x58e360(0x21d)]?_0x4dc7e1+_0x58e360(0x1b9)+_0x40911f['t'](_0x58e360(0x1e6)):_0x4dc7e1:_0x4dc7e1;}function sn(_0x157ad0){const _0x1a2fba=_0x4e584c;switch(_0x157ad0){case _0x51b3c4[_0x1a2fba(0x2cd)]:return'univer-text-green-500';case _0x51b3c4[_0x1a2fba(0x2d8)]:case _0x51b3c4[_0x1a2fba(0x2a8)]:return _0x1a2fba(0x1ef);case _0x51b3c4[_0x1a2fba(0x21d)]:case _0x51b3c4['DISCONNECTED']:return _0x1a2fba(0x201);default:return _0x1a2fba(0x1f1);}}function cn(_0x38045c){const _0x17f3dc=_0x4e584c,{status$:_0x44e354,error$:_0x56271c,onConfigure:_0x243f55,showClickable:_0xf86242=!0x0}=_0x38045c,_0x5d221a=_0x5bb29a(_0x44e354,_0x51b3c4[_0x17f3dc(0x250)]),_0x2c8537=_0x5bb29a(_0x56271c,_0x467903['NONE']),_0x241c85=_0x3f390e(_0x10e845),_0x5be3ab=_0x5d221a===_0x51b3c4['CONNECTED'];_0x5d221a===_0x51b3c4['CONNECTING']||_0x51b3c4[_0x17f3dc(0x2a8)];const _0x37c74c=_0x241c85['t'](pe(_0x5d221a,_0x2c8537)),_0x2cbde8=on(_0x5d221a,_0x2c8537,_0x241c85,_0xf86242),_0x589107=sn(_0x5d221a),_0x4b775c=_0x5be3ab?_0x168241(ge,{}):_0x168241(de,{}),_0x1757f2=_0x1aa4ef(()=>{_0xf86242&&_0x243f55&&_0x243f55();},[_0xf86242,_0x243f55]);function _0x12587a(){const _0x489998=_0x17f3dc;return _0x29a34b(_0x489998(0x289),{'className':_0xb05ffb(_0x489998(0x2c1),_0xf86242&&_0x243f55&&_0x489998(0x1ae)),'role':_0x489998(0x203),'onClick':_0xf86242&&_0x243f55?_0x1757f2:void 0x0,'children':[_0x168241(_0x489998(0x289),{'className':_0xb05ffb(_0x489998(0x2cf),_0x589107),'children':_0x4b775c}),_0x168241('div',{'className':_0x489998(0x268),'children':_0x37c74c})]});}return _0x168241(_0x3f7d60,{'title':_0x2cbde8,'placement':_0x17f3dc(0x246),'children':_0x12587a()});}var an=Object[_0x4e584c(0x1a9)],ln=(_0x4cc39b,_0x2a9846,_0x1ae1f9,_0x1d0a25)=>{for(var _0x490143=_0x1d0a25>0x1?void 0x0:_0x1d0a25?an(_0x2a9846,_0x1ae1f9):_0x2a9846,_0x12ff55=_0x4cc39b['length']-0x1,_0xae6b8f;_0x12ff55>=0x0;_0x12ff55--)(_0xae6b8f=_0x4cc39b[_0x12ff55])&&(_0x490143=_0xae6b8f(_0x490143)||_0x490143);return _0x490143;},M=(_0x2c6730,_0x1e6ef9)=>(_0x5d7930,_0x2e9ee0)=>_0x1e6ef9(_0x5d7930,_0x2e9ee0,_0x2c6730);let O=class extends _0x537b5b{constructor(_0xad7f16,_0x5b72b4,_0x1db4d2,_0xc11353){const _0xc40f71=_0x4e584c;super(),this[_0xc40f71(0x173)]=_0xad7f16,this['_connectionController']=_0x5b72b4,this['_uiPartsService']=_0x1db4d2,this['_configService']=_0xc11353,this[_0xc40f71(0x2b2)](),this[_0xc40f71(0x1ea)]();}[_0x4e584c(0x2b2)](){const _0xc15040=_0x4e584c,_0x4d0a0f=this[_0xc15040(0x176)][_0xc15040(0x1e9)](y);_0x4d0a0f!=null&&_0x4d0a0f[_0xc15040(0x234)]&&(this[_0xc15040(0x1a2)][_0xc15040(0x19c)]=!0x1);}[_0x4e584c(0x1ea)](){const _0x54c78b=_0x4e584c,_0x1372f9=this['_configService'][_0x54c78b(0x1e9)](y);(_0x1372f9==null?void 0x0:_0x1372f9['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x54c78b(0x1d2)][_0x54c78b(0x220)](_0x3a82b7[_0x54c78b(0x1fc)],()=>{const _0x1d8eb9=_0x54c78b;var _0x45674a;return _0x3bc164(un({'status$':this['_connectionController'][_0x1d8eb9(0x2a3)],'error$':this['_connectionController'][_0x1d8eb9(0x25b)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x45674a=_0x1372f9==null?void 0x0:_0x1372f9[_0x1d8eb9(0x234)])!=null?_0x45674a:!0x1}),this[_0x1d8eb9(0x173)]);}));}[_0x4e584c(0x221)](){const _0x21a8eb=_0x4e584c;this[_0x21a8eb(0x173)][_0x21a8eb(0x217)](I)['showConfigPanel']();}};O=ln([M(0x0,_0xd554c6(_0x1c5d39)),M(0x1,_0xd554c6(_0x1f2569)),M(0x2,_0x25baf3),M(0x3,_0x5b4e7f)],O);function un(_0x4b2c98){const {status$:_0x27ffc5,error$:_0x31edc0,onConfigure:_0x22c9dd,showClickable:_0x54f4a9}=_0x4b2c98;return function(){return _0x168241(cn,{'status$':_0x27ffc5,'error$':_0x31edc0,'onConfigure':_0x22c9dd,'showClickable':_0x54f4a9});};}function vn(_0x5b00a1){const _0x40e828=_0x4e584c;return{'id':V['id'],'type':_0x4bdc4a[_0x40e828(0x271)],'icon':_0x40e828(0x226),'title':_0x40e828(0x25f),'tooltip':_0x40e828(0x25f)};}const dn={[_0x52acc8['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4e584c(0x1a9)],pn=(_0x5d225d,_0x551580,_0x562916,_0x5ae191)=>{const _0x4bd5ae=_0x4e584c;for(var _0x4fcb33=_0x5ae191>0x1?void 0x0:_0x5ae191?gn(_0x551580,_0x562916):_0x551580,_0x4c3a53=_0x5d225d[_0x4bd5ae(0x1be)]-0x1,_0x44f49d;_0x4c3a53>=0x0;_0x4c3a53--)(_0x44f49d=_0x5d225d[_0x4c3a53])&&(_0x4fcb33=_0x44f49d(_0x4fcb33)||_0x4fcb33);return _0x4fcb33;},re=(_0x820235,_0x47f0c8)=>(_0x5a7a87,_0x56afb3)=>_0x47f0c8(_0x5a7a87,_0x56afb3,_0x820235);let D=class extends _0x537b5b{constructor(_0x38bae2,_0x26e2d5){const _0x226d71=_0x4e584c;super(),this[_0x226d71(0x248)]=_0x38bae2,this['_menuManagerService']=_0x26e2d5,this['_initializeCommands'](),this[_0x226d71(0x24d)]();}['_initializeCommands'](){const _0x2ea94c=_0x4e584c;[V][_0x2ea94c(0x2bb)](_0x551426=>{const _0x1f2b47=_0x2ea94c;this['disposeWithMe'](this[_0x1f2b47(0x248)][_0x1f2b47(0x1f9)](_0x551426));});}[_0x4e584c(0x24d)](){this['_menuManagerService']['mergeMenu'](dn);}};D=pn([re(0x0,_0x1ccefe),re(0x1,_0x461dbe)],D);const Mn={'mcpStatus':{'disconnected':_0x4e584c(0x1a5),'connecting':_0x4e584c(0x1b8),'connected':_0x4e584c(0x265),'failed':_0x4e584c(0x1c9),'retrying':_0x4e584c(0x1bb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4e584c(0x20b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4e584c(0x262),'maxRetriesExceeded':_0x4e584c(0x2aa),'clickToConnect':_0x4e584c(0x19d),'clickToConfigure':_0x4e584c(0x2d3)},'mcpConfig':{'title':_0x4e584c(0x2d7),'description':_0x4e584c(0x2b7),'apiKey':_0x4e584c(0x2c3),'apiKeyPlaceholder':_0x4e584c(0x1b1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4e584c(0x21f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4e584c(0x18c),'configStepTitle':_0x4e584c(0x24e),'configStep1':_0x4e584c(0x1df),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4e584c(0x20d),'sessionId':_0x4e584c(0x2a0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4e584c(0x1ba),'configParameters':_0x4e584c(0x294),'maxRetries':'Max\x20Retries','save':_0x4e584c(0x1e4),'saving':_0x4e584c(0x1c7),'note1':_0x4e584c(0x2c0),'note2':_0x4e584c(0x1de),'configSaved':_0x4e584c(0x170),'configError':_0x4e584c(0x1d9),'apiApplyInfo':{'title':_0x4e584c(0x2b0),'description':_0x4e584c(0x2b9),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4e584c(0x22c),'apiKeyTooShort':_0x4e584c(0x1c6),'invalidConfig':_0x4e584c(0x2d0),'invalidApiKey':_0x4e584c(0x264)},'connectionStatus':{'disconnected':_0x4e584c(0x24b),'connecting':_0x4e584c(0x2d5),'connected':'Connected','failed':_0x4e584c(0x2c6),'retrying':_0x4e584c(0x263)},'connectionError':{'unauthorized':_0x4e584c(0x27e),'sessionOccupied':_0x4e584c(0x179),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x4e584c(0x25c),'connecting':_0x4e584c(0x245),'connected':_0x4e584c(0x236),'failed':_0x4e584c(0x28a),'retrying':_0x4e584c(0x25d),'unknown':_0x4e584c(0x231),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4e584c(0x2a6),'networkError':_0x4e584c(0x1a6),'maxRetriesExceeded':_0x4e584c(0x177),'clickToConnect':_0x4e584c(0x2b8),'clickToConfigure':_0x4e584c(0x23a)},'mcpConfig':{'title':_0x4e584c(0x171),'description':_0x4e584c(0x186),'apiKey':_0x4e584c(0x199),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x4e584c(0x29b),'enableAuth':_0x4e584c(0x191),'enableAuthHint':_0x4e584c(0x27f),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4e584c(0x290),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4e584c(0x28f),'configStep1':_0x4e584c(0x2b6),'configStep2':_0x4e584c(0x288),'configStep3':_0x4e584c(0x1fe),'sessionId':_0x4e584c(0x1e8),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4e584c(0x257),'configParameters':_0x4e584c(0x1f8),'maxRetries':_0x4e584c(0x291),'save':_0x4e584c(0x206),'saving':'保存中...','note1':_0x4e584c(0x25e),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x4e584c(0x18f),'configError':_0x4e584c(0x19e),'apiApplyInfo':{'title':_0x4e584c(0x238),'description':_0x4e584c(0x22e),'univerAiLabel':_0x4e584c(0x1bc),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x4e584c(0x297),'apiKeyTooShort':_0x4e584c(0x1d4),'invalidConfig':_0x4e584c(0x2a2),'invalidApiKey':_0x4e584c(0x1f2)},'connectionStatus':{'disconnected':_0x4e584c(0x1d1),'connecting':_0x4e584c(0x200),'connected':_0x4e584c(0x26e),'failed':'连接失败','retrying':_0x4e584c(0x279)},'connectionError':{'unauthorized':_0x4e584c(0x2d4),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4e584c(0x1ac),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x149f33,_0x9f9bef,_0x26a7c0)=>_0x9f9bef in _0x149f33?fn(_0x149f33,_0x9f9bef,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a7c0}):_0x149f33[_0x9f9bef]=_0x26a7c0,mn=(_0x55be7e,_0x200ce0,_0x408259,_0xe18c82)=>{for(var _0x13d73a=_0xe18c82>0x1?void 0x0:_0xe18c82?hn(_0x200ce0,_0x408259):_0x200ce0,_0x3a1ec5=_0x55be7e['length']-0x1,_0x3c91be;_0x3a1ec5>=0x0;_0x3a1ec5--)(_0x3c91be=_0x55be7e[_0x3a1ec5])&&(_0x13d73a=_0x3c91be(_0x13d73a)||_0x13d73a);return _0x13d73a;},P=(_0x29ed8c,_0x2942b9)=>(_0x1c8f72,_0x565da7)=>_0x2942b9(_0x1c8f72,_0x565da7,_0x29ed8c),_n=(_0x1c3bb3,_0x4fc393,_0x26d337)=>Cn(_0x1c3bb3,_0x4fc393+'',_0x26d337);let j=class extends _0xef5738{constructor(_0x587183=ie,_0x304f8c,_0x4b9170,_0x278b33,_0x495c0c,_0x57a2ef){const _0x33e566=_0x4e584c;super(),this[_0x33e566(0x1b6)]=_0x587183,this['_injector']=_0x304f8c,this[_0x33e566(0x176)]=_0x4b9170,this[_0x33e566(0x1d2)]=_0x278b33,this[_0x33e566(0x230)]=_0x495c0c,this[_0x33e566(0x187)]=_0x57a2ef;const {..._0x1b0121}=_0x144741({},ie,this[_0x33e566(0x1b6)]);this[_0x33e566(0x176)][_0x33e566(0x1f7)](y,_0x1b0121);}async[_0x4e584c(0x1a8)](){const _0x1aaefd=_0x4e584c,_0x39e489=[[O],[I],[D]];this[_0x1aaefd(0x173)][_0x1aaefd(0x2be)](_0x13a839)||_0x39e489[_0x1aaefd(0x1af)]([_0x13a839,{'useClass':_0xafe199}]),_0x39e489[_0x1aaefd(0x2bb)](_0x103bef=>this[_0x1aaefd(0x173)][_0x1aaefd(0x2af)](_0x103bef)),this[_0x1aaefd(0x173)]['get'](O),this[_0x1aaefd(0x173)][_0x1aaefd(0x217)](I),this[_0x1aaefd(0x173)][_0x1aaefd(0x217)](D);}};_n(j,_0x4e584c(0x2d6),'MCP_UI_PLUGIN'),j=mn([_0x341f82(_0x1f72cd),P(0x1,_0xd554c6(_0x1c5d39)),P(0x2,_0x5b4e7f),P(0x3,_0x25baf3),P(0x4,_0x5101fd),P(0x5,_0xd554c6(_0x10e845))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x5edd9b=_0x1501;(function(_0x454f11,_0x278ea6){const _0x580a2c=_0x1501,_0x415ea4=_0x454f11();while(!![]){try{const _0xee1e89=parseInt(_0x580a2c(0x17b))/0x1*(-parseInt(_0x580a2c(0x1c9))/0x2)+parseInt(_0x580a2c(0x1f0))/0x3*(-parseInt(_0x580a2c(0x15c))/0x4)+-parseInt(_0x580a2c(0x145))/0x5*(parseInt(_0x580a2c(0xb6))/0x6)+parseInt(_0x580a2c(0x1c2))/0x7*(parseInt(_0x580a2c(0x171))/0x8)+-parseInt(_0x580a2c(0x1a8))/0x9*(-parseInt(_0x580a2c(0x14d))/0xa)+-parseInt(_0x580a2c(0x140))/0xb+parseInt(_0x580a2c(0x151))/0xc;if(_0xee1e89===_0x278ea6)break;else _0x415ea4['push'](_0x415ea4['shift']());}catch(_0xeabf2e){_0x415ea4['push'](_0x415ea4['shift']());}}}(_0x3acf,0xa864f));var Pe=Object['defineProperty'],Ee=(_0x52d310,_0x4045cc,_0x595698)=>_0x4045cc in _0x52d310?Pe(_0x52d310,_0x4045cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x595698}):_0x52d310[_0x4045cc]=_0x595698,x=(_0xa43838,_0x11bc0d,_0x46e2bd)=>Ee(_0xa43838,typeof _0x11bc0d!=_0x5edd9b(0xd7)?_0x11bc0d+'':_0x11bc0d,_0x46e2bd);import{LocaleService as _0x4b3741,Inject as _0x27636e,Injector as _0x248068,IConfigService as _0x2e56c4,ILocalStorageService as _0x481b9e,ILogService as _0x34e266,Disposable as _0x4bc21d,CommandType as _0x139bb3,ICommandService as _0x45e9a8,DependentOn as _0x4fb3c4,Plugin as _0x229956,merge as _0x42b94c}from'@univerjs/core';import{jsxs as _0x36fb1f,jsx as _0x449463}from'react/jsx-runtime';import{MCPConnectionStatus as _0xf5737,MCPConnectionError as _0x351a46,MCPConnectionController as _0x374f0e,MCP_PLUGIN_CONFIG_KEY as _0x2e7f1d,UniverMCPPlugin as _0xc57c06}from'@univerjs-pro/mcp';import{clsx as _0xc038e9,Input as _0x31b3f6,Button as _0x2fd4ce,MessageType as _0xdfe3e1,Tooltip as _0x51906e}from'@univerjs/design';import{useDependency as _0x27cd98,useObservable as _0x185574,IUIPartsService as _0x58919c,IDialogService as _0x1b81d5,IMessageService as _0x45a496,ComponentManager as _0x42f7ab,connectInjector as _0x4e199a,BuiltInUIPart as _0xcafefa,MenuItemType as _0x5da2b4,RibbonStartGroup as _0x4e633f,IMenuManagerService as _0x41bafa}from'@univerjs/ui';import{BehaviorSubject as _0x3264e6}from'rxjs';import{useRef as _0x415b63,createElement as _0x3bac3c,forwardRef as _0xd19312,useState as _0x569ba0,useCallback as _0x3717ed}from'react';import{ISocketService as _0x214bc6,WebSocketService as _0x496cce}from'@univerjs/network';function b({ref:_0x5aa939,..._0x2ebd93}){const _0x3e934e=_0x5edd9b,{icon:_0x291480,id:_0x44a7c7,className:_0x361575,extend:_0xb69201,..._0xdae62}=_0x2ebd93,_0x2299e1=(_0x3e934e(0x12c)+_0x44a7c7+'\x20'+(_0x361575||''))['trim'](),_0x3a13fd=_0x415b63('_'+We());return ae(_0x291480,''+_0x44a7c7,{'defIds':_0x291480[_0x3e934e(0x1ef)],'idSuffix':_0x3a13fd[_0x3e934e(0x1a1)]},{'ref':_0x5aa939,'className':_0x2299e1,..._0xdae62},_0xb69201);}function ae(_0x4494ee,_0x326c8,_0x32ddc2,_0x472b1c,_0x4c7567){const _0x522e1d=_0x5edd9b;return _0x3bac3c(_0x4494ee[_0x522e1d(0xe0)],{'key':_0x326c8,...Ye(_0x4494ee,_0x32ddc2,_0x4c7567),..._0x472b1c},(Ze(_0x4494ee,_0x32ddc2)[_0x522e1d(0x1a7)]||[])[_0x522e1d(0x17d)]((_0x542a36,_0x437c79)=>ae(_0x542a36,_0x326c8+'-'+_0x4494ee[_0x522e1d(0xe0)]+'-'+_0x437c79,_0x32ddc2,void 0x0,_0x4c7567)));}function Ye(_0x25ac8b,_0x2209f0,_0x3e3a17){const _0x42fc09=_0x5edd9b,_0x22dbc4={..._0x25ac8b['attrs']};_0x3e3a17!=null&&_0x3e3a17[_0x42fc09(0x1d9)]&&_0x22dbc4[_0x42fc09(0x110)]==='colorChannel1'&&(_0x22dbc4[_0x42fc09(0x110)]=_0x3e3a17[_0x42fc09(0x1d9)]),_0x25ac8b[_0x42fc09(0xe0)]===_0x42fc09(0x18d)&&_0x22dbc4['id']&&(_0x22dbc4['id']=_0x22dbc4['id']+_0x2209f0[_0x42fc09(0xf6)]),Object[_0x42fc09(0x1e8)](_0x22dbc4)['forEach'](([_0x2d0928,_0x2c223c])=>{const _0x9d0ad9=_0x42fc09;_0x2d0928===_0x9d0ad9(0x18d)&&typeof _0x2c223c==_0x9d0ad9(0x132)&&(_0x22dbc4[_0x2d0928]=_0x2c223c[_0x9d0ad9(0x18b)](/url\(#(.*)\)/,_0x9d0ad9(0xc4)+_0x2209f0[_0x9d0ad9(0xf6)]+')'));});const {defIds:_0x521b84}=_0x2209f0;return!_0x521b84||_0x521b84['length']===0x0||(_0x25ac8b[_0x42fc09(0xe0)]===_0x42fc09(0x111)&&_0x22dbc4['xlink:href']&&(_0x22dbc4[_0x42fc09(0xcb)]=_0x22dbc4[_0x42fc09(0xcb)]+_0x2209f0[_0x42fc09(0xf6)]),Object[_0x42fc09(0x1e8)](_0x22dbc4)[_0x42fc09(0x10d)](([_0x48a4f4,_0xb67244])=>{const _0x37b2d2=_0x42fc09;typeof _0xb67244==_0x37b2d2(0x132)&&(_0x22dbc4[_0x48a4f4]=_0xb67244[_0x37b2d2(0x18b)](/url\(#(.*)\)/,_0x37b2d2(0xc4)+_0x2209f0[_0x37b2d2(0xf6)]+')'));})),_0x22dbc4;}function Ze(_0x583f17,_0x3bc0a6){const _0x47a5c3=_0x5edd9b;var _0x5ac422;const {defIds:_0x219569}=_0x3bc0a6;return!_0x219569||_0x219569['length']===0x0?_0x583f17:_0x583f17[_0x47a5c3(0xe0)]===_0x47a5c3(0x158)&&((_0x5ac422=_0x583f17['children'])!=null&&_0x5ac422[_0x47a5c3(0x14c)])?{..._0x583f17,'children':_0x583f17[_0x47a5c3(0x1a7)][_0x47a5c3(0x17d)](_0x4a6d13=>typeof _0x4a6d13[_0x47a5c3(0x11a)]['id']=='string'&&_0x219569&&_0x219569[_0x47a5c3(0x156)](_0x4a6d13[_0x47a5c3(0x11a)]['id'])?{..._0x4a6d13,'attrs':{..._0x4a6d13[_0x47a5c3(0x11a)],'id':_0x4a6d13['attrs']['id']+_0x3bc0a6[_0x47a5c3(0xf6)]}}:_0x4a6d13)}:_0x583f17;}function We(){const _0x10f467=_0x5edd9b;return Math[_0x10f467(0xea)]()[_0x10f467(0x184)](0x24)[_0x10f467(0xc3)](0x2,0x8);}b[_0x5edd9b(0x19a)]=_0x5edd9b(0x1f3);const qe={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':_0x5edd9b(0x181),'viewBox':_0x5edd9b(0x118),'width':'1em','height':_0x5edd9b(0x102)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x1f4),'d':'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','fillRule':_0x5edd9b(0x17c),'clipRule':_0x5edd9b(0x17c)}}]},le=_0xd19312(function(_0x1fa7bb,_0x55c5a8){const _0x1df142=_0x5edd9b;return _0x3bac3c(b,Object[_0x1df142(0x13a)]({},_0x1fa7bb,{'id':_0x1df142(0x1c0),'ref':_0x55c5a8,'icon':qe}));});le[_0x5edd9b(0x19a)]='CheckMarkIcon';const Xe={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5edd9b(0x181),'viewBox':_0x5edd9b(0x118),'width':'1em','height':_0x5edd9b(0x102)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0xd19312(function(_0x31fec9,_0x2c485c){const _0x54eb4c=_0x5edd9b;return _0x3bac3c(b,Object[_0x54eb4c(0x13a)]({},_0x31fec9,{'id':_0x54eb4c(0x1d1),'ref':_0x2c485c,'icon':Xe}));});function _0x1501(_0x4cb4f7,_0x4656cc){const _0x3acf60=_0x3acf();return _0x1501=function(_0x150148,_0x221415){_0x150148=_0x150148-0xa8;let _0x570cb6=_0x3acf60[_0x150148];return _0x570cb6;},_0x1501(_0x4cb4f7,_0x4656cc);}ue[_0x5edd9b(0x19a)]=_0x5edd9b(0x164);const Je={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':'none','viewBox':_0x5edd9b(0x118),'width':_0x5edd9b(0x102),'height':_0x5edd9b(0x102)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':'currentColor','d':_0x5edd9b(0x1b1)}},{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x1f4),'d':_0x5edd9b(0x105)}},{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x1f4),'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':_0x5edd9b(0x17c),'clipRule':_0x5edd9b(0x17c)}}]},ve=_0xd19312(function(_0xfac269,_0x288f26){const _0x25e5ff=_0x5edd9b;return _0x3bac3c(b,Object['assign']({},_0xfac269,{'id':_0x25e5ff(0xbc),'ref':_0x288f26,'icon':Je}));});ve[_0x5edd9b(0x19a)]=_0x5edd9b(0xb5);const Qe={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':_0x5edd9b(0x181),'viewBox':_0x5edd9b(0x118),'width':_0x5edd9b(0x102),'height':_0x5edd9b(0x102)},'children':[{'tag':'g','attrs':{'clipPath':_0x5edd9b(0x152)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'stroke':_0x5edd9b(0x1f4),'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':'round','strokeLinejoin':_0x5edd9b(0xde),'strokeWidth':1.2}}]},{'tag':_0x5edd9b(0x158),'attrs':{},'children':[{'tag':_0x5edd9b(0x1be),'attrs':{'id':_0x5edd9b(0x123)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'fill':_0x5edd9b(0x194),'d':_0x5edd9b(0x19b)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0xd19312(function(_0x542fc1,_0x1bea41){const _0x3643c7=_0x5edd9b;return _0x3bac3c(b,Object[_0x3643c7(0x13a)]({},_0x542fc1,{'id':_0x3643c7(0x166),'ref':_0x1bea41,'icon':Qe}));});function _0x3acf(){const _0xa086de=['replace','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mask','mcp-ui.config','mcpConfig.apiKey','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-bg-gray-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','white','registerComponent','mcpConfig.note2','univer-size-4','mcpStatus.networkError','__setCustomHeaders','displayName','M0\x200H16V16H0z','Error','mcpConfig.save','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','current','配置无效','Configuration\x20saved\x20successfully','_apiKey$','value','Get\x20your\x20API\x20key\x20in\x20seconds','children','6609969KDwYoT','mcpStatus.sessionOccupied','getConfig','_initializeMenus','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.retrying','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥长度至少需要\x2010\x20位','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','连接中...','next','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-text-gray-500','MCP\x20已断开','univer-text-green-500','_dialogService','超出最大重试次数,请稍后再试','mcpConfig.configParameters','MCP\x20Disconnected','_mcpConnectionController','close','clipPath','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','check-mark-icon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','1638847lIPviJ','配置\x20MCP\x20使用\x20AI\x20操作电子表格','DISCONNECTED','_blank','Connection\x20Failed','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Enter\x20your\x20API\x20key','2053822uoDaDl','_handleConfigSave','MCP\x20Connected','univer-space-y-5','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-min-w-0\x20univer-flex-1','noopener\x20noreferrer','close-icon','bottom','showStatus','MCP:\x20网络错误','univer-flex\x20univer-gap-3','univer-font-medium','mcpServerUrl','https://console.univer.ai','colorChannel1','Connected','Success','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP\x20连接失败','mcpStatus.failed','_registerComponent','add','subscribe','mcpStatus.clickToConnect','mcpConfig.connectionError.unauthorized','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_createConfigPanelComponent','on-line-icon','_validateConfig','entries','mcpStatus.retrying','off','点击连接\x20MCP','setItem','mcpStatus.connecting','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defIds','3638847ffpcvZ','mcpConfig.configStep1','disposeWithMe','UniverIcon','currentColor','label','mcpConfig.connectionError.sessionOccupied','_initStatusComponent','OTHERS','getCurrentConfig','Configuration\x20Parameters:','HEADER_MENU','mcpConfig.note1','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_initAutoConnect','path','Copy\x20the\x20JSON\x20configuration\x20below','onStarting','最大重试次数','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','权限验证失败,请检查您的\x20API\x20密钥','univer-flex-1','_uiPartsService','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Configuration\x20Steps:','mcpConfig.title','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','COMMAND','http://www.w3.org/2000/svg','CONNECTED','HelpIcon','5002014wOTvns','mergeMenu','启用身份验证以获得安全连接','Enable\x20Authentication','univer-mr-2\x20univer-flex\x20univer-text-xl','Saving...','help-icon','mcpConfig.validation.apiKeyTooShort','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MAX_RETRIES_EXCEEDED','mcpConfig.validation.invalidApiKey','_loading$','mcpStatus.disconnected','substring','url(#$1','univer-shrink-0\x20univer-text-red-500','univer-space-y-3','几秒钟内获取您的\x20API\x20密钥','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.connectionStatus.failed','xlink:href','univer-flex\x20univer-items-start\x20univer-gap-3','push','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.validation.apiKeyRequired','svg','Bearer\x20','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\x20-\x20','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','symbol','pluginName','配置保存失败','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','mcpConfig.configStep2','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','round','showConfigPanel','tag','MCP:\x20Max\x20Retries\x20Exceeded','univer-text-yellow-500','mcp.apiKey','Configuration\x20Notes:','SESSION_ID_OCCUPIED','MCP\x20Connection\x20Failed','mcpConfig.description','show','MCP\x20重连中...','random','_configService','pre','mcp-config-dialog','Univer\x20AI\x20Console','apiKey','get','API\x20key\x20with\x20Bearer\x20prefix.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','translate(.97)','https://mcp.univer.ai/mcp/?univer_session_id=','univer-bg-blue-500','idSuffix','getOwnPropertyDescriptor','_initConfigSync','subscribeConfigValue$','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','FAILED','MCP\x20状态未知','univer.ai','mcpConfig.connectionInfo','univer-text-gray-500','配置更改将立即生效','1em','API\x20密钥不能为空','_config$','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','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer.plus','warn','univer-text-blue-600','univer-space-y-2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','forEach','univer-flex\x20univer-items-center\x20univer-gap-2','Save\x20Configuration','fill','use','已连接','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_mcpCoreConfig$','MCP\x20Retrying...','MCP:\x20Network\x20Error','MCP\x20客户端配置','0\x200\x2016\x2016','mcpConfig.configSaved','attrs','isValid','registerCommand','What\x20is\x20API\x20Key?','_handleConfigure','MCP_UI_PLUGIN','univer-text-sm\x20univer-text-gray-500','enableAutoConnect','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','off-line-icon_clip0_910_343','点击配置\x20MCP','mcpConfig.connectionStatus.connected','MCP\x20Unknown\x20Status','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','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','_connectionController','MCPConfigPanel','univerjs-icon\x20univerjs-icon-','_config','API\x20key\x20is\x20required','https://console.univer.plus','on-line-icon_clip0_910_349','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','string','http','您的\x20API\x20密钥将在此浏览器中本地存储','MCP:\x20Unauthorized','_localeService','connectionStatus$','showDeveloperTools','sessionId$','assign','_menuManagerService','保存配置','_logService','univer-flex\x20univer-items-center\x20univer-gap-3','_componentManager','7083472gkzNHJ','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','连接失败','Failed\x20to\x20save\x20configuration','会话ID','5eJGbpu','复制以下\x20JSON\x20配置','MCP\x20Client\x20Configuration','mcpConfig.apiApplyInfo.getStarted','mcpConfig.sessionIdDescription','trim','mcpStatus.connected','length','10BukrIi','error','mcpConfig.authorizationDescription','url(#on-line-icon_clip0_910_349)','41263944WpEwmy','url(#off-line-icon_clip0_910_343)','mcpStatus.clickToConfigure','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','RETRYING','includes','配置保存成功','defs','MCP\x20Connecting...','mcpConfig.apiKeyPlaceholder','univer-text-red-500','4ldBsAz','univer-bg-green-500','mcp-ui.command.openConfigPanel','mcpConfig.apiApplyInfo.title','启用身份验证','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','open','span','CloseIcon','_commandService','off-line-icon','<API_KEY>','_localStorageService','API\x20密钥无效,请检查密钥是否正确','未连接','Retrying...','API\x20Key','重连中...','Univer\x20AI\x20控制台','_injector','CONNECTING','8xIpppu','mcpConfig.configStepTitle','button','div','univer-bg-red-500','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configError','MCP\x20Configuration','NETWORK_ERROR','_messageService','1IbgSAY','evenodd','map','MenuIcon','Click\x20to\x20connect\x20MCP','getItem','none','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','NONE','toString','mcpConfig.apiApplyInfo.description','connectionError$','mcpConfig.connectionError.maxRetriesExceeded','univer_session_id:','UNAUTHORIZED','_loadStoredApiKey'];_0x3acf=function(){return _0xa086de;};return _0x3acf();}de[_0x5edd9b(0x19a)]='OffLineIcon';const en={'tag':_0x5edd9b(0xd2),'attrs':{'xmlns':_0x5edd9b(0xb3),'fill':_0x5edd9b(0x181),'viewBox':'0\x200\x2017\x2016','width':_0x5edd9b(0x102),'height':_0x5edd9b(0x102)},'children':[{'tag':'g','attrs':{'clipPath':_0x5edd9b(0x150)},'children':[{'tag':_0x5edd9b(0x201),'attrs':{'stroke':_0x5edd9b(0x1f4),'d':_0x5edd9b(0xc8),'strokeLinecap':_0x5edd9b(0xde),'strokeLinejoin':_0x5edd9b(0xde),'strokeWidth':1.2}}]},{'tag':_0x5edd9b(0x158),'attrs':{},'children':[{'tag':_0x5edd9b(0x1be),'attrs':{'id':_0x5edd9b(0x130)},'children':[{'tag':'path','attrs':{'fill':_0x5edd9b(0x194),'d':_0x5edd9b(0x19b),'transform':_0x5edd9b(0xf3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0xd19312(function(_0x12e3c1,_0x355f44){const _0x3ad97c=_0x5edd9b;return _0x3bac3c(b,Object[_0x3ad97c(0x13a)]({},_0x12e3c1,{'id':_0x3ad97c(0x1e6),'ref':_0x355f44,'icon':en}));});ge[_0x5edd9b(0x19a)]='OnLineIcon';function nn(_0x34fc6e){const _0x47803d=_0x5edd9b;var _0x48b45a,_0x192db5;const {mcpCoreConfig:_0x132c66,onSave:_0x2200bb,loading:_0x467c0c=!0x1,config:_0x4a21bd,connectionStatus$:_0x43ad80,connectionError$:_0x5019a1,currentApiKey$:_0x55d84a,currentSessionId$:_0x48ad28}=_0x34fc6e,_0x4fef06=_0x27cd98(_0x4b3741),_0x20b135=_0x185574(_0x43ad80,_0xf5737[_0x47803d(0x1c4)]),_0x214b89=_0x185574(_0x5019a1,_0x351a46[_0x47803d(0x183)]),_0x11679c=_0x185574(_0x48ad28,''),_0x1ee932=_0x185574(_0x55d84a,''),[_0x3b5bd1,_0x18045e]=_0x569ba0(_0x1ee932||''),_0x267b4e=!0x0,_0x56ca8a=_0x4a21bd[_0x47803d(0x138)]&&_0x132c66[_0x47803d(0x1d7)]&&(_0x132c66['mcpServerUrl'][_0x47803d(0x156)](_0x47803d(0x108))||_0x132c66[_0x47803d(0x1d7)][_0x47803d(0x156)](_0x47803d(0xfe))),_0xafdcc9=(_0x48b45a=_0x132c66['mcpServerUrl'])==null?void 0x0:_0x48b45a[_0x47803d(0x156)](_0x47803d(0x108)),_0x56c79c=(_0x192db5=_0x132c66[_0x47803d(0x1d7)])==null?void 0x0:_0x192db5[_0x47803d(0x156)]('univer.ai'),_0x5187f9=_0xafdcc9?_0x47803d(0x12f):_0x47803d(0x1d8),_0x53826c=_0x4a21bd['showDeveloperTools']&&(_0xafdcc9||_0x56c79c),[_0x549210,_0x3dd273]=_0x569ba0(!_0x3b5bd1[_0x47803d(0x14a)]()),_0x3a97bc=(_0x521b35,_0x21430c)=>{const _0x2b5cc7=_0x47803d;if(_0x21430c===_0x351a46[_0x2b5cc7(0x189)])return _0x2b5cc7(0xcf);switch(_0x521b35){case _0xf5737[_0x2b5cc7(0xb4)]:return _0x2b5cc7(0x127);case _0xf5737[_0x2b5cc7(0x170)]:case _0xf5737[_0x2b5cc7(0x155)]:return _0x2b5cc7(0x1cd);case _0xf5737[_0x2b5cc7(0xfc)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x2b5cc7(0x18c);}},_0x26af36=(_0x4baa20,_0xd87225)=>{const _0x3c67be=_0x47803d;if(_0xd87225===_0x351a46[_0x3c67be(0x189)])return _0x3c67be(0x175);switch(_0x4baa20){case _0xf5737[_0x3c67be(0xb4)]:return _0x3c67be(0x15d);case _0xf5737[_0x3c67be(0x170)]:case _0xf5737['RETRYING']:return _0x3c67be(0xf5);case _0xf5737['FAILED']:return'univer-bg-red-500';default:return _0x3c67be(0x192);}},_0x14d28a=_0x2defd8=>{const _0x48c35d=_0x47803d;switch(_0x2defd8){case _0xf5737[_0x48c35d(0xb4)]:return _0x4fef06['t'](_0x48c35d(0x125));case _0xf5737['CONNECTING']:return _0x4fef06['t']('mcpConfig.connectionStatus.connecting');case _0xf5737[_0x48c35d(0xfc)]:return _0x4fef06['t'](_0x48c35d(0xca));case _0xf5737[_0x48c35d(0x155)]:return _0x4fef06['t'](_0x48c35d(0x1ae));default:return _0x4fef06['t'](_0x48c35d(0x1fe));}},_0x1cfcdb=_0x1c5bf5=>{const _0x58754c=_0x47803d;switch(_0x1c5bf5){case _0x351a46['UNAUTHORIZED']:return _0x4fef06['t'](_0x58754c(0x1e3));case _0x351a46['SESSION_ID_OCCUPIED']:return _0x4fef06['t'](_0x58754c(0x1f6));case _0x351a46[_0x58754c(0x179)]:return _0x4fef06['t'](_0x58754c(0x1b4));case _0x351a46[_0x58754c(0xbf)]:return _0x4fef06['t'](_0x58754c(0x187));default:return'';}},_0x481af5=_0x3717ed(()=>{const _0x119fe5=_0x47803d,_0x57e15d={..._0x132c66,'apiKey':_0x3b5bd1[_0x119fe5(0x14a)](),'enableAuth':_0x267b4e};_0x2200bb(_0x57e15d);},[_0x132c66,_0x3b5bd1,_0x267b4e,_0x2200bb]),_0x317043=_0x3b5bd1[_0x47803d(0x14a)]()[_0x47803d(0x14c)]>0x0;return _0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x154),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x131),'children':_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x13e),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xa9),'children':_0x449463(_0x47803d(0x163),{'className':'univer-text-white','children':'⚙'})}),_0x449463(_0x47803d(0x174),{'children':_0x449463('p',{'className':_0x47803d(0x120),'children':_0x4fef06['t'](_0x47803d(0xe7))})})]})}),_0x36fb1f(_0x47803d(0x174),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x449463('div',{'className':_0xc038e9(_0x47803d(0x191),_0x3a97bc(_0x20b135,_0x214b89)),'children':_0x36fb1f('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x449463(_0x47803d(0x174),{'className':_0xc038e9('univer-size-2\x20univer-rounded-full',_0x26af36(_0x20b135,_0x214b89))}),_0x449463('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x14d28a(_0x20b135)})]})}),_0x214b89!==_0x351a46[_0x47803d(0x183)]&&(_0x20b135===_0xf5737[_0x47803d(0xfc)]||_0x214b89===_0x351a46['UNAUTHORIZED'])&&_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x193),'children':_0x36fb1f(_0x47803d(0x174),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x449463('span',{'className':_0x47803d(0xc5),'children':'⚠️'}),_0x449463('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x1cfcdb(_0x214b89)})]})})]}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xb1),'children':_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x1cc),'children':[_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10b),'children':[_0x36fb1f(_0x47803d(0x1f5),{'className':_0x47803d(0xae),'children':[_0x449463('span',{'children':'🔑'}),'\x20',_0x4fef06['t'](_0x47803d(0x18f)),_0x449463(_0x47803d(0x163),{'className':_0x47803d(0x15b),'children':'*'}),_0x56ca8a&&_0x449463('a',{'className':_0x47803d(0x122),'title':_0x4fef06['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x3dd273(!0x0),'children':_0x449463(ve,{})})]}),_0x449463(_0x31b3f6,{'type':'text','placeholder':_0x4fef06['t'](_0x47803d(0x15a)),'value':_0x3b5bd1,'disabled':_0x467c0c,'autoComplete':_0x47803d(0x1ea),'onChange':_0x18045e}),_0x449463('p',{'className':_0x47803d(0x1b5),'children':_0x4fef06['t']('mcpConfig.apiKeyHint')})]}),_0x56ca8a&&_0x549210&&_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xdb),'children':[_0x449463('a',{'className':_0x47803d(0x1e4),'role':'button','onClick':()=>_0x3dd273(!0x1),'children':_0x449463(ue,{'className':_0x47803d(0x197)})}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x182),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x176),'children':_0x449463('span',{'className':_0x47803d(0x10a),'children':'🚀'})}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xab),'children':[_0x449463('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4fef06['t'](_0x47803d(0x15f))}),_0x449463('p',{'className':_0x47803d(0xf2),'children':_0x4fef06['t'](_0x47803d(0x185))}),_0x449463('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x53826c&&_0x36fb1f('a',{'className':_0x47803d(0x129),'href':_0x5187f9,'target':_0x47803d(0x1c5),'rel':_0x47803d(0x1d0),'children':[_0x449463('span',{'children':'🤖'}),_0x4fef06['t'](_0x47803d(0xc9)),_0x449463(_0x47803d(0x163),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xbe),'children':['✨','\x20',_0x4fef06['t'](_0x47803d(0x148))]})]})]})]}),_0x4a21bd[_0x47803d(0x138)]&&_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x107),'children':[_0x36fb1f('h4',{'className':_0x47803d(0x1ad),'children':[_0x449463(_0x47803d(0x163),{'children':'🔗'}),'\x20',_0x4fef06['t'](_0x47803d(0xff))]}),_0x36fb1f(_0x47803d(0x174),{'className':'univer-space-y-4','children':[_0x36fb1f(_0x47803d(0x174),{'className':'univer-space-y-3','children':[_0x449463('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x4fef06['t']('mcpConfig.configInstructions')}),_0x36fb1f(_0x47803d(0x174),{'className':'univer-space-y-2','children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1c7),'children':_0x4fef06['t'](_0x47803d(0x172))}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10c),'children':[_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10e),'children':[_0x449463(_0x47803d(0x163),{'className':_0x47803d(0xd6),'children':'1'}),_0x4fef06['t'](_0x47803d(0x1f1))]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10e),'children':[_0x449463(_0x47803d(0x163),{'className':_0x47803d(0xd6),'children':'2'}),_0x4fef06['t'](_0x47803d(0xdc))]}),_0x36fb1f('div',{'className':_0x47803d(0x10e),'children':[_0x449463('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x4fef06['t']('mcpConfig.configStep3')]})]})]})]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x10b),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1c7),'children':_0x47803d(0x178)}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1ce),'children':_0x449463(_0x47803d(0xec),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x47803d(0xf4)+(_0x11679c||'<SESSION_ID>'),'type':_0x47803d(0x133),'headers':{'Authorization':_0x47803d(0xd3)+(_0x3b5bd1||_0x47803d(0x167))}}}},null,0x2)})})]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xc6),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1c7),'children':_0x4fef06['t'](_0x47803d(0x1ba))}),_0x36fb1f('div',{'className':'univer-space-y-2','children':[_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xcc),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1dc)}),_0x36fb1f('div',{'className':_0x47803d(0x1cf),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xda),'children':_0x47803d(0x188)}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1b5),'children':_0x4fef06['t'](_0x47803d(0x149))})]})]}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0xcc),'children':[_0x449463('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x1cf),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0xda),'children':'Authorization:'}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1b5),'children':_0x4fef06['t'](_0x47803d(0x14f))})]})]})]})]})]})]}),_0x449463(_0x2fd4ce,{'onClick':_0x481af5,'disabled':!_0x317043||_0x467c0c,'className':_0x47803d(0xdd),'children':_0x467c0c?_0x36fb1f(_0x47803d(0x163),{'className':_0x47803d(0x10e),'children':[_0x449463(_0x47803d(0x163),{'children':'⟲'}),_0x4fef06['t']('mcpConfig.saving')]}):_0x36fb1f(_0x47803d(0x163),{'className':_0x47803d(0x10e),'children':[_0x449463(le,{}),_0x4fef06['t'](_0x47803d(0x19d))]})}),_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x141),'children':_0x36fb1f(_0x47803d(0x174),{'className':_0x47803d(0x1d5),'children':[_0x449463(_0x47803d(0x163),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x36fb1f('div',{'className':_0x47803d(0x1c1),'children':[_0x449463(_0x47803d(0x174),{'className':_0x47803d(0x1d6),'children':_0x47803d(0xe4)}),_0x36fb1f(_0x47803d(0x174),{'children':['•',_0x4fef06['t'](_0x47803d(0x1fc))]}),_0x36fb1f(_0x47803d(0x174),{'children':['•',_0x4fef06['t'](_0x47803d(0x196))]})]})]})})]})})]});}const y=_0x5edd9b(0x18e),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5edd9b(0xf7)],tn=(_0x37a108,_0x1a7e3e,_0x597c16,_0x7fd54c)=>{const _0x538905=_0x5edd9b;for(var _0x1d41db=_0x7fd54c>0x1?void 0x0:_0x7fd54c?rn(_0x1a7e3e,_0x597c16):_0x1a7e3e,_0x55bee5=_0x37a108[_0x538905(0x14c)]-0x1,_0x3dd9a2;_0x55bee5>=0x0;_0x55bee5--)(_0x3dd9a2=_0x37a108[_0x55bee5])&&(_0x1d41db=_0x3dd9a2(_0x1d41db)||_0x1d41db);return _0x1d41db;},d=(_0x1940bb,_0x5e302b)=>(_0x29d7e4,_0x4298b1)=>_0x5e302b(_0x29d7e4,_0x4298b1,_0x1940bb);const U=_0x5edd9b(0xe3),L=_0x5edd9b(0xed);let I=class extends _0x4bc21d{constructor(_0x4cc366,_0x148ea7,_0x2585f5,_0x3105c0,_0x39c1c2,_0x4526ee,_0x149592,_0x26214a,_0x11d9bd,_0x5629c5){const _0x193e3f=_0x5edd9b;super(),x(this,'_loading$',new _0x3264e6(!0x1)),x(this,'_mcpCoreConfig$',new _0x3264e6({})),x(this,'_config$',new _0x3264e6({})),x(this,_0x193e3f(0x1a4),new _0x3264e6('')),x(this,_0x193e3f(0x1ca),async _0x44b137=>{const _0xa5619a=_0x193e3f;var _0x1c9ec2,_0x74ed26;this['_loading$'][_0xa5619a(0x1b3)](!0x0);try{const _0x5d482a=await this[_0xa5619a(0x1e7)](_0x44b137);if(!_0x5d482a[_0xa5619a(0x11b)]){this[_0xa5619a(0x17a)]['show']({'type':_0xdfe3e1[_0xa5619a(0x19c)],'content':_0x5d482a['errorMessage']||this[_0xa5619a(0x136)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x44b137[_0xa5619a(0xef)]?await this['_localStorageService'][_0xa5619a(0x1ec)](U,_0x44b137[_0xa5619a(0xef)][_0xa5619a(0x14a)]()):await this[_0xa5619a(0x168)]['removeItem'](U),this[_0xa5619a(0x1a4)][_0xa5619a(0x1b3)](((_0x1c9ec2=_0x44b137['apiKey'])==null?void 0x0:_0x1c9ec2[_0xa5619a(0x14a)]())||''),this[_0xa5619a(0x1bc)][_0xa5619a(0x199)]({'Authorization':_0xa5619a(0xd3)+((_0x74ed26=_0x44b137['apiKey'])==null?void 0x0:_0x74ed26[_0xa5619a(0x14a)]())}),this[_0xa5619a(0x17a)][_0xa5619a(0xe8)]({'type':_0xdfe3e1[_0xa5619a(0x1db)],'content':this[_0xa5619a(0x136)]['t'](_0xa5619a(0x119))}),setTimeout(()=>{const _0x950d45=_0xa5619a;this[_0x950d45(0x1b8)][_0x950d45(0x1bd)](L);},0x320);}catch(_0x33277e){this[_0xa5619a(0x13d)]['error'](_0xa5619a(0x1bf),_0x33277e),this[_0xa5619a(0x17a)][_0xa5619a(0xe8)]({'type':_0xdfe3e1[_0xa5619a(0x19c)],'content':this[_0xa5619a(0x136)]['t'](_0xa5619a(0x177))});}finally{this[_0xa5619a(0xc1)]['next'](!0x1);}}),(this[_0x193e3f(0x16f)]=_0x4cc366,this['_uiPartsService']=_0x148ea7,this[_0x193e3f(0xeb)]=_0x2585f5,this['_localStorageService']=_0x3105c0,this[_0x193e3f(0x1b8)]=_0x39c1c2,this[_0x193e3f(0x17a)]=_0x4526ee,this['_componentManager']=_0x149592,this[_0x193e3f(0x136)]=_0x26214a,this[_0x193e3f(0x13d)]=_0x11d9bd,this[_0x193e3f(0x1bc)]=_0x5629c5,this[_0x193e3f(0xf8)](),this[_0x193e3f(0x18a)](),this[_0x193e3f(0x1df)]());}[_0x5edd9b(0xdf)](){const _0x360751=_0x5edd9b,_0x4cb012=this[_0x360751(0xeb)][_0x360751(0x1aa)](y);_0x4cb012!=null&&_0x4cb012[_0x360751(0x138)]&&this[_0x360751(0x1b8)][_0x360751(0x162)]({'id':L,'title':{'title':this[_0x360751(0x136)]['t'](_0x360751(0xb0))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xa353e=_0x360751;this[_0xa353e(0x1b8)][_0xa353e(0x1bd)](L);}});}[_0x5edd9b(0x1f9)](){const _0x5398c3=_0x5edd9b;return this[_0x5398c3(0x114)]['value'];}[_0x5edd9b(0x1df)](){const _0x593cc8=_0x5edd9b;this[_0x593cc8(0x1f2)](this[_0x593cc8(0x13f)]['register'](_0x593cc8(0x12b),this[_0x593cc8(0x1e5)]()));}['_createConfigPanelComponent'](){return _0x4e199a(()=>{const _0x17cde1=_0x1501;var _0x511581,_0x366300,_0x7b8bbc;return _0x449463(nn,{'config':this[_0x17cde1(0x104)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x17cde1(0x1a5)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x17cde1(0x1ca)],'loading':this[_0x17cde1(0xc1)][_0x17cde1(0x1a5)],'connectionStatus$':(_0x511581=this[_0x17cde1(0x1bc)])==null?void 0x0:_0x511581[_0x17cde1(0x137)],'connectionError$':(_0x366300=this[_0x17cde1(0x1bc)])==null?void 0x0:_0x366300[_0x17cde1(0x186)],'currentSessionId$':(_0x7b8bbc=this[_0x17cde1(0x1bc)])==null?void 0x0:_0x7b8bbc[_0x17cde1(0x139)]});},this['_injector']);}[_0x5edd9b(0xf8)](){const _0xb50a35=_0x5edd9b;this[_0xb50a35(0x1f2)](this[_0xb50a35(0xeb)]['subscribeConfigValue$'](_0x2e7f1d)[_0xb50a35(0x1e1)](_0x20728b=>{const _0x3dfdd4=_0xb50a35;this['_mcpCoreConfig$'][_0x3dfdd4(0x1b3)](_0x20728b||{});}));const _0x2a7524=this[_0xb50a35(0xeb)]['getConfig'](_0x2e7f1d);this[_0xb50a35(0x114)][_0xb50a35(0x1b3)](_0x2a7524||{}),this[_0xb50a35(0x1f2)](this[_0xb50a35(0xeb)][_0xb50a35(0xf9)](y)[_0xb50a35(0x1e1)](_0x2c9b48=>{const _0x469c47=_0xb50a35;this[_0x469c47(0x104)][_0x469c47(0x1b3)](_0x2c9b48||{});}));const _0x11a5c9=this[_0xb50a35(0xeb)]['getConfig'](y);this[_0xb50a35(0x104)][_0xb50a35(0x1b3)](_0x11a5c9||{});}async[_0x5edd9b(0x18a)](){const _0x446416=_0x5edd9b,_0x5044fb=this['_configService']['getConfig'](y);if(!(_0x5044fb!=null&&_0x5044fb[_0x446416(0x138)]))return;const _0x46e536=await this[_0x446416(0x168)][_0x446416(0x180)](U);_0x46e536&&(this[_0x446416(0x1bc)][_0x446416(0x199)]({'Authorization':_0x446416(0xd3)+_0x46e536}),this[_0x446416(0x1a4)][_0x446416(0x1b3)](_0x46e536));}async[_0x5edd9b(0x1e7)](_0x4d371f){const _0x49feb2=_0x5edd9b;if(!_0x4d371f[_0x49feb2(0xef)]||_0x4d371f[_0x49feb2(0xef)]['trim']()[_0x49feb2(0x14c)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x49feb2(0x136)]['t'](_0x49feb2(0xd1))};if(_0x4d371f[_0x49feb2(0xef)]['trim']()[_0x49feb2(0x14c)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x49feb2(0x136)]['t'](_0x49feb2(0xbd))};try{const _0x4d2f1a=await this[_0x49feb2(0x16f)]['get'](_0x374f0e)['validateApiKey'](_0x4d371f['apiKey'][_0x49feb2(0x14a)]());return _0x4d2f1a[_0x49feb2(0x11b)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4d2f1a[_0x49feb2(0x14e)]||this[_0x49feb2(0x136)]['t'](_0x49feb2(0xc0))};}catch(_0x4ebe7b){return console[_0x49feb2(0x109)](_0x49feb2(0x1a0),_0x4ebe7b),{'isValid':!0x0};}}};I=tn([d(0x0,_0x27636e(_0x248068)),d(0x1,_0x58919c),d(0x2,_0x2e56c4),d(0x3,_0x481b9e),d(0x4,_0x1b81d5),d(0x5,_0x45a496),d(0x6,_0x27636e(_0x42f7ab)),d(0x7,_0x27636e(_0x4b3741)),d(0x8,_0x34e266),d(0x9,_0x27636e(_0x374f0e))],I);const V={'id':_0x5edd9b(0x15e),'type':_0x139bb3[_0x5edd9b(0xb2)],'handler':async(_0x3a6b21,_0x3c2fd2)=>(_0x3a6b21[_0x5edd9b(0xf0)](I)[_0x5edd9b(0xdf)](),!0x0)};function pe(_0x57f475,_0x2b48d6){const _0x98f2fd=_0x5edd9b;switch(_0x57f475){case _0xf5737['DISCONNECTED']:return _0x98f2fd(0xc2);case _0xf5737[_0x98f2fd(0x170)]:return _0x98f2fd(0x1ed);case _0xf5737['CONNECTED']:return _0x98f2fd(0x14b);case _0xf5737[_0x98f2fd(0xfc)]:switch(_0x2b48d6){case _0x351a46[_0x98f2fd(0x189)]:return'mcpStatus.unauthorized';case _0x351a46[_0x98f2fd(0xe5)]:return _0x98f2fd(0x1a9);case _0x351a46[_0x98f2fd(0x179)]:return _0x98f2fd(0x198);case _0x351a46[_0x98f2fd(0xbf)]:return'mcpStatus.maxRetriesExceeded';default:return _0x98f2fd(0x1de);}case _0xf5737['RETRYING']:return _0x98f2fd(0x1e9);default:return'mcpStatus.unknown';}}function on(_0x3e0cfd,_0x4ccc9d,_0x12200c,_0x5c1132=!0x0){const _0x551fd3=_0x5edd9b,_0x54e409=pe(_0x3e0cfd,_0x4ccc9d),_0x41c3c9=_0x12200c['t'](_0x54e409);return _0x5c1132?_0x3e0cfd===_0xf5737['DISCONNECTED']&&_0x4ccc9d===_0x351a46['UNAUTHORIZED']?_0x41c3c9+_0x551fd3(0xd5)+_0x12200c['t'](_0x551fd3(0x153)):_0x3e0cfd===_0xf5737[_0x551fd3(0xb4)]?''+_0x41c3c9:_0x3e0cfd===_0xf5737['DISCONNECTED']||_0x3e0cfd===_0xf5737[_0x551fd3(0xfc)]?_0x41c3c9+_0x551fd3(0xd5)+_0x12200c['t'](_0x551fd3(0x1e2)):_0x41c3c9:_0x41c3c9;}function sn(_0x2cf246){const _0x20589d=_0x5edd9b;switch(_0x2cf246){case _0xf5737[_0x20589d(0xb4)]:return _0x20589d(0x1b7);case _0xf5737['CONNECTING']:case _0xf5737[_0x20589d(0x155)]:return _0x20589d(0xe2);case _0xf5737[_0x20589d(0xfc)]:case _0xf5737[_0x20589d(0x1c4)]:return _0x20589d(0x15b);default:return _0x20589d(0x100);}}function cn(_0x2f3191){const _0x4abdb2=_0x5edd9b,{status$:_0x5e3a27,error$:_0x14dd45,onConfigure:_0x393f0b,showClickable:_0x534508=!0x0}=_0x2f3191,_0x3b62e9=_0x185574(_0x5e3a27,_0xf5737['DISCONNECTED']),_0x2015fe=_0x185574(_0x14dd45,_0x351a46[_0x4abdb2(0x183)]),_0x1afa27=_0x27cd98(_0x4b3741),_0x178286=_0x3b62e9===_0xf5737[_0x4abdb2(0xb4)];_0x3b62e9===_0xf5737['CONNECTING']||_0xf5737[_0x4abdb2(0x155)];const _0x40eaf8=_0x1afa27['t'](pe(_0x3b62e9,_0x2015fe)),_0x585d20=on(_0x3b62e9,_0x2015fe,_0x1afa27,_0x534508),_0x2c71dd=sn(_0x3b62e9),_0x42cbb3=_0x178286?_0x449463(ge,{}):_0x449463(de,{}),_0x239203=_0x3717ed(()=>{_0x534508&&_0x393f0b&&_0x393f0b();},[_0x534508,_0x393f0b]);function _0x3a0060(){const _0x42108b=_0x4abdb2;return _0x36fb1f('div',{'className':_0xc038e9('univer-flex\x20univer-items-center',_0x534508&&_0x393f0b&&_0x42108b(0x128)),'role':_0x42108b(0x173),'onClick':_0x534508&&_0x393f0b?_0x239203:void 0x0,'children':[_0x449463('div',{'className':_0xc038e9(_0x42108b(0xba),_0x2c71dd),'children':_0x42cbb3}),_0x449463(_0x42108b(0x174),{'className':_0x42108b(0x113),'children':_0x40eaf8})]});}return _0x449463(_0x51906e,{'title':_0x585d20,'placement':_0x4abdb2(0x1d2),'children':_0x3a0060()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x29098f,_0x3e140b,_0x22e8a6,_0x581fe0)=>{for(var _0x2d46f2=_0x581fe0>0x1?void 0x0:_0x581fe0?an(_0x3e140b,_0x22e8a6):_0x3e140b,_0x40782c=_0x29098f['length']-0x1,_0x75a130;_0x40782c>=0x0;_0x40782c--)(_0x75a130=_0x29098f[_0x40782c])&&(_0x2d46f2=_0x75a130(_0x2d46f2)||_0x2d46f2);return _0x2d46f2;},M=(_0xb23f45,_0x54ec08)=>(_0x1f8bc8,_0x40351f)=>_0x54ec08(_0x1f8bc8,_0x40351f,_0xb23f45);let O=class extends _0x4bc21d{constructor(_0x54d45c,_0x4652ef,_0x2406ac,_0x3e7238){const _0x47a8f3=_0x5edd9b;super(),this[_0x47a8f3(0x16f)]=_0x54d45c,this[_0x47a8f3(0x12a)]=_0x4652ef,this[_0x47a8f3(0xac)]=_0x2406ac,this[_0x47a8f3(0xeb)]=_0x3e7238,this[_0x47a8f3(0x200)](),this[_0x47a8f3(0x1f7)]();}[_0x5edd9b(0x200)](){const _0x1ae81c=_0x5edd9b,_0x21042c=this[_0x1ae81c(0xeb)][_0x1ae81c(0x1aa)](y);_0x21042c!=null&&_0x21042c['showDeveloperTools']&&(this['_connectionController'][_0x1ae81c(0x121)]=!0x1);}[_0x5edd9b(0x1f7)](){const _0xfa3cf4=_0x5edd9b,_0x22113=this[_0xfa3cf4(0xeb)][_0xfa3cf4(0x1aa)](y);(_0x22113==null?void 0x0:_0x22113[_0xfa3cf4(0x1d3)])!==!0x1&&this[_0xfa3cf4(0x1f2)](this[_0xfa3cf4(0xac)][_0xfa3cf4(0x195)](_0xcafefa[_0xfa3cf4(0x1fb)],()=>{const _0x591862=_0xfa3cf4;var _0xe893bf;return _0x4e199a(un({'status$':this[_0x591862(0x12a)][_0x591862(0x137)],'error$':this['_connectionController'][_0x591862(0x186)],'onConfigure':()=>this[_0x591862(0x11e)](),'showClickable':(_0xe893bf=_0x22113==null?void 0x0:_0x22113[_0x591862(0x138)])!=null?_0xe893bf:!0x1}),this[_0x591862(0x16f)]);}));}[_0x5edd9b(0x11e)](){const _0x394c7a=_0x5edd9b;this[_0x394c7a(0x16f)][_0x394c7a(0xf0)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x27636e(_0x248068)),M(0x1,_0x27636e(_0x374f0e)),M(0x2,_0x58919c),M(0x3,_0x2e56c4)],O);function un(_0x16d1d1){const {status$:_0x456960,error$:_0x42a174,onConfigure:_0x7f3ada,showClickable:_0x325a96}=_0x16d1d1;return function(){return _0x449463(cn,{'status$':_0x456960,'error$':_0x42a174,'onConfigure':_0x7f3ada,'showClickable':_0x325a96});};}function vn(_0x3a575e){const _0x1a33a2=_0x5edd9b;return{'id':V['id'],'type':_0x5da2b4['BUTTON'],'icon':_0x1a33a2(0x17e),'title':_0x1a33a2(0xb0),'tooltip':'mcpConfig.title'};}const dn={[_0x4e633f[_0x5edd9b(0x1f8)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x5edd9b(0xf7)],pn=(_0x2a1d61,_0x3eca96,_0x388d1e,_0x53647a)=>{for(var _0x56d11f=_0x53647a>0x1?void 0x0:_0x53647a?gn(_0x3eca96,_0x388d1e):_0x3eca96,_0x36d456=_0x2a1d61['length']-0x1,_0x2d8f25;_0x36d456>=0x0;_0x36d456--)(_0x2d8f25=_0x2a1d61[_0x36d456])&&(_0x56d11f=_0x2d8f25(_0x56d11f)||_0x56d11f);return _0x56d11f;},re=(_0x4aa2eb,_0x32dd47)=>(_0x33eb61,_0x487eba)=>_0x32dd47(_0x33eb61,_0x487eba,_0x4aa2eb);let D=class extends _0x4bc21d{constructor(_0x412bb3,_0x3b08a0){const _0x49517d=_0x5edd9b;super(),this['_commandService']=_0x412bb3,this[_0x49517d(0x13b)]=_0x3b08a0,this['_initializeCommands'](),this[_0x49517d(0x1ab)]();}['_initializeCommands'](){const _0x4120bc=_0x5edd9b;[V][_0x4120bc(0x10d)](_0x2a4c1b=>{const _0x2b462d=_0x4120bc;this[_0x2b462d(0x1f2)](this[_0x2b462d(0x165)][_0x2b462d(0x11c)](_0x2a4c1b));});}[_0x5edd9b(0x1ab)](){const _0x19c3bf=_0x5edd9b;this['_menuManagerService'][_0x19c3bf(0xb7)](dn);}};D=pn([re(0x0,_0x45e9a8),re(0x1,_0x41bafa)],D);const Mn={'mcpStatus':{'disconnected':_0x5edd9b(0x1bb),'connecting':_0x5edd9b(0x159),'connected':_0x5edd9b(0x1cb),'failed':_0x5edd9b(0xe6),'retrying':_0x5edd9b(0x115),'unknown':_0x5edd9b(0x126),'unauthorized':_0x5edd9b(0x135),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5edd9b(0x116),'maxRetriesExceeded':_0x5edd9b(0xe1),'clickToConnect':_0x5edd9b(0x17f),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5edd9b(0x178),'description':_0x5edd9b(0x19e),'apiKey':_0x5edd9b(0x16c),'apiKeyPlaceholder':_0x5edd9b(0x1c8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5edd9b(0xb9),'enableAuthHint':_0x5edd9b(0xfa),'connectionInfo':_0x5edd9b(0x147),'mcpClientConfig':_0x5edd9b(0x147),'configInstructions':_0x5edd9b(0x1ac),'configStepTitle':_0x5edd9b(0xaf),'configStep1':_0x5edd9b(0x202),'configStep2':_0x5edd9b(0xfb),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5edd9b(0xf1),'configParameters':_0x5edd9b(0x1fa),'maxRetries':_0x5edd9b(0x19f),'save':_0x5edd9b(0x10f),'saving':_0x5edd9b(0xbb),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5edd9b(0x1ee),'configSaved':_0x5edd9b(0x1a3),'configError':_0x5edd9b(0x143),'apiApplyInfo':{'title':_0x5edd9b(0x11d),'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':_0x5edd9b(0xee),'getStarted':_0x5edd9b(0x1a6)},'validation':{'apiKeyRequired':_0x5edd9b(0x12e),'apiKeyTooShort':_0x5edd9b(0xd4),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5edd9b(0x161)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x5edd9b(0x1da),'failed':_0x5edd9b(0x1c6),'retrying':_0x5edd9b(0x16b)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5edd9b(0x1ff),'maxRetriesExceeded':_0x5edd9b(0x190)}}},An={'mcpStatus':{'disconnected':_0x5edd9b(0x1b6),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x5edd9b(0x1dd),'retrying':_0x5edd9b(0xe9),'unknown':_0x5edd9b(0xfd),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5edd9b(0xd0),'networkError':_0x5edd9b(0x1d4),'maxRetriesExceeded':_0x5edd9b(0x1fd),'clickToConnect':_0x5edd9b(0x1eb),'clickToConfigure':_0x5edd9b(0x124)},'mcpConfig':{'title':'MCP\x20配置','description':_0x5edd9b(0x1c3),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5edd9b(0x134),'enableAuth':_0x5edd9b(0x160),'enableAuthHint':_0x5edd9b(0xb8),'connectionInfo':_0x5edd9b(0x117),'mcpClientConfig':_0x5edd9b(0x117),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x5edd9b(0x146),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5edd9b(0x1af),'sessionId':_0x5edd9b(0x144),'sessionIdDescription':_0x5edd9b(0xad),'authorizationDescription':_0x5edd9b(0xce),'configParameters':'配置参数:','maxRetries':_0x5edd9b(0xa8),'save':_0x5edd9b(0x13c),'saving':'保存中...','note1':_0x5edd9b(0x101),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x5edd9b(0x157),'configError':_0x5edd9b(0xd9),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5edd9b(0x106),'univerAiLabel':_0x5edd9b(0x16e),'getStarted':_0x5edd9b(0xc7)},'validation':{'apiKeyRequired':_0x5edd9b(0x103),'apiKeyTooShort':_0x5edd9b(0x1b0),'invalidConfig':_0x5edd9b(0x1a2),'invalidApiKey':_0x5edd9b(0x169)},'connectionStatus':{'disconnected':_0x5edd9b(0x16a),'connecting':_0x5edd9b(0x1b2),'connected':_0x5edd9b(0x112),'failed':_0x5edd9b(0x142),'retrying':_0x5edd9b(0x16d)},'connectionError':{'unauthorized':_0x5edd9b(0xaa),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5edd9b(0x1b9)}}};var fn=Object['defineProperty'],hn=Object[_0x5edd9b(0xf7)],Cn=(_0x2a5233,_0x4447d2,_0x1b6c17)=>_0x4447d2 in _0x2a5233?fn(_0x2a5233,_0x4447d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b6c17}):_0x2a5233[_0x4447d2]=_0x1b6c17,mn=(_0x68bfa9,_0x5dd900,_0x41a0e1,_0x326dd2)=>{const _0x11be9e=_0x5edd9b;for(var _0x373f27=_0x326dd2>0x1?void 0x0:_0x326dd2?hn(_0x5dd900,_0x41a0e1):_0x5dd900,_0x3dd5dc=_0x68bfa9[_0x11be9e(0x14c)]-0x1,_0x40fa22;_0x3dd5dc>=0x0;_0x3dd5dc--)(_0x40fa22=_0x68bfa9[_0x3dd5dc])&&(_0x373f27=_0x40fa22(_0x373f27)||_0x373f27);return _0x373f27;},P=(_0x28fba7,_0x31261e)=>(_0x4cc831,_0x3cab9c)=>_0x31261e(_0x4cc831,_0x3cab9c,_0x28fba7),_n=(_0x4bd5a2,_0x2f80a1,_0x45e1c8)=>Cn(_0x4bd5a2,_0x2f80a1+'',_0x45e1c8);let j=class extends _0x229956{constructor(_0x36635c=ie,_0x3a8c93,_0x16a486,_0x47b156,_0x190f43,_0x37e267){const _0x11e507=_0x5edd9b;super(),this['_config']=_0x36635c,this[_0x11e507(0x16f)]=_0x3a8c93,this[_0x11e507(0xeb)]=_0x16a486,this[_0x11e507(0xac)]=_0x47b156,this[_0x11e507(0x168)]=_0x190f43,this[_0x11e507(0x136)]=_0x37e267;const {..._0x4e4e72}=_0x42b94c({},ie,this[_0x11e507(0x12d)]);this[_0x11e507(0xeb)]['setConfig'](y,_0x4e4e72);}async[_0x5edd9b(0x203)](){const _0x5b4a1d=_0x5edd9b,_0x2ea874=[[O],[I],[D]];this['_injector']['has'](_0x214bc6)||_0x2ea874[_0x5b4a1d(0xcd)]([_0x214bc6,{'useClass':_0x496cce}]),_0x2ea874['forEach'](_0x1321bf=>this[_0x5b4a1d(0x16f)][_0x5b4a1d(0x1e0)](_0x1321bf)),this[_0x5b4a1d(0x16f)][_0x5b4a1d(0xf0)](O),this['_injector'][_0x5b4a1d(0xf0)](I),this[_0x5b4a1d(0x16f)]['get'](D);}};_n(j,_0x5edd9b(0xd8),_0x5edd9b(0x11f)),j=mn([_0x4fb3c4(_0xc57c06),P(0x1,_0x27636e(_0x248068)),P(0x2,_0x2e56c4),P(0x3,_0x58919c),P(0x4,_0x481b9e),P(0x5,_0x27636e(_0x4b3741))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x71b7(){const _0x109550=['Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','59166KxRXtX','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','7059536WQIrfK','What\x20is\x20API\x20Key?','1368sfPJAY','1004271PFdofQ','MCP\x20Client\x20Configuration','567045DaXSFh','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','6uWtTkK','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4nSdLTN','41vbvzTa','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','MCP\x20Connecting...','12872CNCtbQ','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','620CPaeJA','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','Enable\x20Authentication','16058zDOlZT','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','6085776pDkdsa','Retrying...','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','Save\x20Configuration'];_0x71b7=function(){return _0x109550;};return _0x71b7();}function _0x1623(_0x574abb,_0x207232){const _0x71b723=_0x71b7();return _0x1623=function(_0x162371,_0x37d8d7){_0x162371=_0x162371-0x1e9;let _0x46bc82=_0x71b723[_0x162371];return _0x46bc82;},_0x1623(_0x574abb,_0x207232);}const _0x13924b=_0x1623;(function(_0x182576,_0x3de2d3){const _0x341e96=_0x1623,_0x1bfbd1=_0x182576();while(!![]){try{const _0x2ee17b=-parseInt(_0x341e96(0x210))/0x1*(parseInt(_0x341e96(0x216))/0x2)+parseInt(_0x341e96(0x205))/0x3*(parseInt(_0x341e96(0x20f))/0x4)+parseInt(_0x341e96(0x207))/0x5*(parseInt(_0x341e96(0x20d))/0x6)+-parseInt(_0x341e96(0x1eb))/0x7*(parseInt(_0x341e96(0x204))/0x8)+-parseInt(_0x341e96(0x1fe))/0x9*(-parseInt(_0x341e96(0x219))/0xa)+parseInt(_0x341e96(0x202))/0xb+-parseInt(_0x341e96(0x1ee))/0xc;if(_0x2ee17b===_0x3de2d3)break;else _0x1bfbd1['push'](_0x1bfbd1['shift']());}catch(_0x52b018){_0x1bfbd1['push'](_0x1bfbd1['shift']());}}}(_0x71b7,0x51998));const e={'mcpStatus':{'disconnected':_0x13924b(0x1fc),'connecting':_0x13924b(0x215),'connected':_0x13924b(0x20c),'failed':_0x13924b(0x20a),'retrying':_0x13924b(0x1fa),'unknown':_0x13924b(0x1f1),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x13924b(0x21b),'clickToConnect':_0x13924b(0x1f7),'clickToConfigure':_0x13924b(0x1f0)},'mcpConfig':{'title':_0x13924b(0x211),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x13924b(0x1f3),'enableAuth':_0x13924b(0x1ea),'enableAuthHint':_0x13924b(0x208),'connectionInfo':_0x13924b(0x206),'mcpClientConfig':_0x13924b(0x206),'configInstructions':_0x13924b(0x1f2),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x13924b(0x1fb),'configStep2':_0x13924b(0x21a),'configStep3':_0x13924b(0x218),'sessionId':'Session\x20ID','sessionIdDescription':_0x13924b(0x1fd),'authorizationDescription':_0x13924b(0x1f4),'configParameters':_0x13924b(0x214),'maxRetries':'Max\x20Retries','save':_0x13924b(0x1f6),'saving':_0x13924b(0x1f5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x13924b(0x213),'apiApplyInfo':{'title':_0x13924b(0x203),'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':_0x13924b(0x1e9),'getStarted':_0x13924b(0x20b)},'validation':{'apiKeyRequired':_0x13924b(0x1f8),'apiKeyTooShort':_0x13924b(0x1ff),'invalidConfig':_0x13924b(0x217),'invalidApiKey':_0x13924b(0x20e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x13924b(0x1ec),'connected':_0x13924b(0x200),'failed':_0x13924b(0x209),'retrying':_0x13924b(0x1ef)},'connectionError':{'unauthorized':_0x13924b(0x1f9),'sessionOccupied':_0x13924b(0x212),'networkError':_0x13924b(0x1ed),'maxRetriesExceeded':_0x13924b(0x201)}}},n=e;export{n as default};
|