@univerjs-pro/mcp-ui 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180327

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.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +6 -6
@@ -1 +1 @@
1
- 'use strict';const _0x4542bd=_0x5cd0;function _0x5cd0(_0x5563ff,_0x11e571){const _0x369742=_0x3697();return _0x5cd0=function(_0x5cd008,_0x309e61){_0x5cd008=_0x5cd008-0x111;let _0x4229ce=_0x369742[_0x5cd008];return _0x4229ce;},_0x5cd0(_0x5563ff,_0x11e571);}function _0x3697(){const _0x16efc5=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','exports','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','6157610HlMjKU','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','164442TDAOLS','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Session\x20ID','7011445kQrvMr','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','6dPFJLm','2833232AlSJeX','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20is\x20required','MCP\x20Retrying...','Saving...','Save\x20Configuration','1200330Ppgmrt','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','678kTNpbg','Retrying...','MCP\x20Connection\x20Failed','27nkvhMW','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2491720SyaaUV','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8152zzUCcr','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:'];_0x3697=function(){return _0x16efc5;};return _0x3697();}(function(_0x45e835,_0x381233){const _0x1f23d8=_0x5cd0,_0x193b80=_0x45e835();while(!![]){try{const _0x2eac73=-parseInt(_0x1f23d8(0x11f))/0x1+parseInt(_0x1f23d8(0x146))/0x2*(parseInt(_0x1f23d8(0x13c))/0x3)+parseInt(_0x1f23d8(0x143))/0x4+-parseInt(_0x1f23d8(0x138))/0x5+parseInt(_0x1f23d8(0x12b))/0x6*(-parseInt(_0x1f23d8(0x127))/0x7)+parseInt(_0x1f23d8(0x12c))/0x8*(parseInt(_0x1f23d8(0x13f))/0x9)+-parseInt(_0x1f23d8(0x11c))/0xa;if(_0x2eac73===_0x381233)break;else _0x193b80['push'](_0x193b80['shift']());}catch(_0x3b47d7){_0x193b80['push'](_0x193b80['shift']());}}}(_0x3697,0x8ebd8));const e={'mcpStatus':{'disconnected':_0x4542bd(0x12e),'connecting':_0x4542bd(0x11d),'connected':_0x4542bd(0x123),'failed':_0x4542bd(0x13e),'retrying':_0x4542bd(0x135),'unknown':_0x4542bd(0x116),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4542bd(0x13b),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4542bd(0x119),'clickToConnect':_0x4542bd(0x141),'clickToConfigure':_0x4542bd(0x132)},'mcpConfig':{'title':_0x4542bd(0x128),'description':_0x4542bd(0x129),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4542bd(0x140),'apiKeyHint':_0x4542bd(0x145),'enableAuth':_0x4542bd(0x130),'enableAuthHint':_0x4542bd(0x114),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4542bd(0x12d),'configInstructions':_0x4542bd(0x111),'configStepTitle':_0x4542bd(0x113),'configStep1':_0x4542bd(0x124),'configStep2':_0x4542bd(0x131),'configStep3':_0x4542bd(0x142),'sessionId':_0x4542bd(0x126),'sessionIdDescription':_0x4542bd(0x133),'authorizationDescription':_0x4542bd(0x11b),'configParameters':_0x4542bd(0x117),'maxRetries':'Max\x20Retries','save':_0x4542bd(0x137),'saving':_0x4542bd(0x136),'note1':_0x4542bd(0x112),'note2':_0x4542bd(0x121),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4542bd(0x11e),'apiApplyInfo':{'title':_0x4542bd(0x12a),'description':_0x4542bd(0x11a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4542bd(0x12f)},'validation':{'apiKeyRequired':_0x4542bd(0x134),'apiKeyTooShort':_0x4542bd(0x115),'invalidConfig':_0x4542bd(0x144),'invalidApiKey':_0x4542bd(0x122)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4542bd(0x120),'connected':_0x4542bd(0x139),'failed':_0x4542bd(0x125),'retrying':_0x4542bd(0x13d)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4542bd(0x147),'maxRetriesExceeded':_0x4542bd(0x13a)}}},n=e;module[_0x4542bd(0x118)]=n;
1
+ 'use strict';const _0x237d96=_0x496a;(function(_0x1610c8,_0x41382e){const _0x42b47d=_0x496a,_0x733b5c=_0x1610c8();while(!![]){try{const _0x4604d8=parseInt(_0x42b47d(0x1a5))/0x1+-parseInt(_0x42b47d(0x186))/0x2+parseInt(_0x42b47d(0x1a3))/0x3+parseInt(_0x42b47d(0x184))/0x4+-parseInt(_0x42b47d(0x17e))/0x5+-parseInt(_0x42b47d(0x196))/0x6*(-parseInt(_0x42b47d(0x188))/0x7)+-parseInt(_0x42b47d(0x18e))/0x8;if(_0x4604d8===_0x41382e)break;else _0x733b5c['push'](_0x733b5c['shift']());}catch(_0xdea75){_0x733b5c['push'](_0x733b5c['shift']());}}}(_0x2cf3,0xe24a7));function _0x496a(_0x9f0a4,_0x1f293b){const _0x2cf322=_0x2cf3();return _0x496a=function(_0x496a71,_0x5b55f6){_0x496a71=_0x496a71-0x17b;let _0x3ca00a=_0x2cf322[_0x496a71];return _0x3ca00a;},_0x496a(_0x9f0a4,_0x1f293b);}function _0x2cf3(){const _0x27b7aa=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','255925dbQjOf','MCP\x20Unknown\x20Status','MCP\x20Disconnected','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2045100iixuWD','Configuration\x20Parameters:','Configuration\x20Steps:','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','204980vVgrUW','Retrying...','2753872BKsVZs','Session\x20ID','824215seaXQy','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','1269928QdyeGn','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','60FizTTF','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','4160892ERWPez'];_0x2cf3=function(){return _0x27b7aa;};return _0x2cf3();}const e={'mcpStatus':{'disconnected':_0x237d96(0x1a7),'connecting':_0x237d96(0x193),'connected':_0x237d96(0x19b),'failed':_0x237d96(0x192),'retrying':_0x237d96(0x18d),'unknown':_0x237d96(0x1a6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x237d96(0x198),'networkError':_0x237d96(0x17b),'maxRetriesExceeded':_0x237d96(0x190),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x237d96(0x19d)},'mcpConfig':{'title':_0x237d96(0x19e),'description':_0x237d96(0x182),'apiKey':_0x237d96(0x181),'apiKeyPlaceholder':_0x237d96(0x1a0),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x237d96(0x183),'enableAuthHint':_0x237d96(0x18c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x237d96(0x18b),'configStepTitle':_0x237d96(0x180),'configStep1':_0x237d96(0x19c),'configStep2':_0x237d96(0x195),'configStep3':_0x237d96(0x197),'sessionId':_0x237d96(0x187),'sessionIdDescription':_0x237d96(0x1a4),'authorizationDescription':_0x237d96(0x17c),'configParameters':_0x237d96(0x17f),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x237d96(0x18f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x237d96(0x19f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x237d96(0x194),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x237d96(0x17d),'univerAiLabel':_0x237d96(0x191),'getStarted':_0x237d96(0x1a1)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x237d96(0x19a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x237d96(0x189),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x237d96(0x185)},'connectionError':{'unauthorized':_0x237d96(0x199),'sessionOccupied':_0x237d96(0x1a2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x237d96(0x18a)}}},n=e;module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x429ce7=_0x2701;function _0x1025(){const _0x2d37ae=['Enable\x20Authentication','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','705655rMtrsM','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','1561665DVvmnp','exports','MCP\x20Configuration','17ewVsLW','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','8805928avzAnS','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Save\x20Configuration','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','42EDZrxA','MCP\x20Retrying...','163706oqnYpS','Max\x20Retries','3376881OxLAuc','Connection\x20Failed','Connected','5090004TOzLvH','MCP\x20Connected','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','5274180aZoLFT'];_0x1025=function(){return _0x2d37ae;};return _0x1025();}(function(_0x4aedca,_0x2d6b04){const _0x5c25ed=_0x2701,_0x56c36a=_0x4aedca();while(!![]){try{const _0x1631dc=-parseInt(_0x5c25ed(0xce))/0x1*(-parseInt(_0x5c25ed(0xab))/0x2)+parseInt(_0x5c25ed(0xad))/0x3+-parseInt(_0x5c25ed(0xba))/0x4+-parseInt(_0x5c25ed(0xc3))/0x5*(-parseInt(_0x5c25ed(0xa9))/0x6)+parseInt(_0x5c25ed(0xcb))/0x7+-parseInt(_0x5c25ed(0xd1))/0x8+-parseInt(_0x5c25ed(0xb0))/0x9;if(_0x1631dc===_0x2d6b04)break;else _0x56c36a['push'](_0x56c36a['shift']());}catch(_0x350c58){_0x56c36a['push'](_0x56c36a['shift']());}}}(_0x1025,0xb5782));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x429ce7(0xa2),'connected':_0x429ce7(0xb1),'failed':_0x429ce7(0xa0),'retrying':_0x429ce7(0xaa),'unknown':_0x429ce7(0xb4),'unauthorized':_0x429ce7(0xb9),'sessionOccupied':_0x429ce7(0xc7),'networkError':_0x429ce7(0xd3),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x429ce7(0xb3),'clickToConfigure':_0x429ce7(0xa6)},'mcpConfig':{'title':_0x429ce7(0xcd),'description':_0x429ce7(0xb7),'apiKey':_0x429ce7(0xc6),'apiKeyPlaceholder':_0x429ce7(0xa4),'apiKeyHint':_0x429ce7(0xc2),'enableAuth':_0x429ce7(0xbb),'enableAuthHint':_0x429ce7(0xb8),'connectionInfo':_0x429ce7(0xb5),'mcpClientConfig':_0x429ce7(0xb5),'configInstructions':_0x429ce7(0xc9),'configStepTitle':_0x429ce7(0xbc),'configStep1':_0x429ce7(0xbe),'configStep2':_0x429ce7(0xa3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x429ce7(0xa7),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x429ce7(0xac),'save':_0x429ce7(0xa5),'saving':_0x429ce7(0xa8),'note1':_0x429ce7(0xcf),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x429ce7(0xd0),'configError':_0x429ce7(0xc0),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x429ce7(0xbf),'univerAiLabel':_0x429ce7(0xca),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x429ce7(0xc1),'apiKeyTooShort':_0x429ce7(0xc4),'invalidConfig':_0x429ce7(0xb2),'invalidApiKey':_0x429ce7(0xd4)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x429ce7(0xc8),'connected':_0x429ce7(0xaf),'failed':_0x429ce7(0xae),'retrying':_0x429ce7(0xb6)},'connectionError':{'unauthorized':_0x429ce7(0xbd),'sessionOccupied':_0x429ce7(0xd2),'networkError':_0x429ce7(0xc5),'maxRetriesExceeded':_0x429ce7(0xa1)}}},n=e;function _0x2701(_0x506a2d,_0x5e2f6e){const _0x102553=_0x1025();return _0x2701=function(_0x270102,_0x5f1c0d){_0x270102=_0x270102-0xa0;let _0x5d11e5=_0x102553[_0x270102];return _0x5d11e5;},_0x2701(_0x506a2d,_0x5e2f6e);}module[_0x429ce7(0xcc)]=n;
1
+ 'use strict';const _0x47b1fe=_0x9316;(function(_0x5930ac,_0x42338c){const _0x30809d=_0x9316,_0x2f8a47=_0x5930ac();while(!![]){try{const _0x358cd8=parseInt(_0x30809d(0x217))/0x1+parseInt(_0x30809d(0x1fc))/0x2*(parseInt(_0x30809d(0x1ff))/0x3)+-parseInt(_0x30809d(0x211))/0x4+-parseInt(_0x30809d(0x205))/0x5+-parseInt(_0x30809d(0x210))/0x6*(-parseInt(_0x30809d(0x1f8))/0x7)+-parseInt(_0x30809d(0x1f0))/0x8+-parseInt(_0x30809d(0x204))/0x9*(parseInt(_0x30809d(0x1f4))/0xa);if(_0x358cd8===_0x42338c)break;else _0x2f8a47['push'](_0x2f8a47['shift']());}catch(_0x445ae6){_0x2f8a47['push'](_0x2f8a47['shift']());}}}(_0x2972,0x1c018));const e={'mcpStatus':{'disconnected':_0x47b1fe(0x1f2),'connecting':_0x47b1fe(0x1e8),'connected':_0x47b1fe(0x209),'failed':_0x47b1fe(0x216),'retrying':_0x47b1fe(0x20f),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x47b1fe(0x203),'maxRetriesExceeded':_0x47b1fe(0x1f9),'clickToConnect':_0x47b1fe(0x1ec),'clickToConfigure':_0x47b1fe(0x200)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x47b1fe(0x214),'apiKeyPlaceholder':_0x47b1fe(0x207),'apiKeyHint':_0x47b1fe(0x1f5),'enableAuth':_0x47b1fe(0x1ea),'enableAuthHint':_0x47b1fe(0x202),'connectionInfo':_0x47b1fe(0x1ee),'mcpClientConfig':_0x47b1fe(0x1ee),'configInstructions':_0x47b1fe(0x1fb),'configStepTitle':_0x47b1fe(0x1f7),'configStep1':_0x47b1fe(0x20b),'configStep2':_0x47b1fe(0x1f6),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x47b1fe(0x1ef),'sessionIdDescription':_0x47b1fe(0x1fa),'authorizationDescription':_0x47b1fe(0x1e6),'configParameters':_0x47b1fe(0x1ed),'maxRetries':_0x47b1fe(0x1e5),'save':'Save\x20Configuration','saving':_0x47b1fe(0x20c),'note1':_0x47b1fe(0x212),'note2':_0x47b1fe(0x1f1),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x47b1fe(0x208),'apiApplyInfo':{'title':_0x47b1fe(0x20a),'description':_0x47b1fe(0x1fd),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x47b1fe(0x1e7)},'validation':{'apiKeyRequired':_0x47b1fe(0x1fe),'apiKeyTooShort':_0x47b1fe(0x20d),'invalidConfig':_0x47b1fe(0x215),'invalidApiKey':_0x47b1fe(0x1e9)},'connectionStatus':{'disconnected':_0x47b1fe(0x201),'connecting':'Connecting...','connected':_0x47b1fe(0x20e),'failed':_0x47b1fe(0x213),'retrying':_0x47b1fe(0x1eb)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x47b1fe(0x218),'networkError':_0x47b1fe(0x1f3),'maxRetriesExceeded':_0x47b1fe(0x206)}}},n=e;function _0x9316(_0x8b1432,_0x235cd1){const _0x29721c=_0x2972();return _0x9316=function(_0x93162a,_0x16fa87){_0x93162a=_0x93162a-0x1e5;let _0x32d190=_0x29721c[_0x93162a];return _0x32d190;},_0x9316(_0x8b1432,_0x235cd1);}module['exports']=n;function _0x2972(){const _0x3b388e=['9fyIIcL','971025XgRtIk','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','MCP\x20Connected','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','MCP\x20Retrying...','451002noTeBv','545288ddysej','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connection\x20Failed','API\x20Key','Invalid\x20configuration','MCP\x20Connection\x20Failed','212882WuzZEF','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Retrying...','Click\x20to\x20connect\x20MCP','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','Session\x20ID','93408BoufUa','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','542770yxGhgf','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','7WhKIkX','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','446286NJbRDn','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','3ToZWfw','Click\x20to\x20configure\x20MCP','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error'];_0x2972=function(){return _0x3b388e;};return _0x2972();}
@@ -1 +1 @@
1
- 'use strict';function _0x3fa6(_0x381f5f,_0x5bf4bc){const _0x142d93=_0x142d();return _0x3fa6=function(_0x3fa655,_0xaedd19){_0x3fa655=_0x3fa655-0x7c;let _0x18f597=_0x142d93[_0x3fa655];return _0x18f597;},_0x3fa6(_0x381f5f,_0x5bf4bc);}const _0x2ccacb=_0x3fa6;(function(_0x15ef74,_0x18ae7a){const _0x5da9d0=_0x3fa6,_0x46d4b7=_0x15ef74();while(!![]){try{const _0x1d13da=-parseInt(_0x5da9d0(0x8b))/0x1*(-parseInt(_0x5da9d0(0x81))/0x2)+-parseInt(_0x5da9d0(0x95))/0x3+parseInt(_0x5da9d0(0x92))/0x4*(parseInt(_0x5da9d0(0x8a))/0x5)+parseInt(_0x5da9d0(0xa8))/0x6+-parseInt(_0x5da9d0(0x9a))/0x7+parseInt(_0x5da9d0(0xab))/0x8+-parseInt(_0x5da9d0(0x98))/0x9*(parseInt(_0x5da9d0(0x8c))/0xa);if(_0x1d13da===_0x18ae7a)break;else _0x46d4b7['push'](_0x46d4b7['shift']());}catch(_0x315f27){_0x46d4b7['push'](_0x46d4b7['shift']());}}}(_0x142d,0x81ed5));const e={'mcpStatus':{'disconnected':_0x2ccacb(0x9c),'connecting':_0x2ccacb(0xa1),'connected':_0x2ccacb(0xa2),'failed':_0x2ccacb(0x90),'retrying':_0x2ccacb(0xa6),'unknown':_0x2ccacb(0xa4),'unauthorized':_0x2ccacb(0x99),'sessionOccupied':_0x2ccacb(0x8d),'networkError':_0x2ccacb(0x9f),'maxRetriesExceeded':_0x2ccacb(0xae),'clickToConnect':_0x2ccacb(0x97),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2ccacb(0x82),'apiKey':_0x2ccacb(0x83),'apiKeyPlaceholder':_0x2ccacb(0x9b),'apiKeyHint':_0x2ccacb(0x8f),'enableAuth':_0x2ccacb(0x96),'enableAuthHint':_0x2ccacb(0x8e),'connectionInfo':_0x2ccacb(0x87),'mcpClientConfig':_0x2ccacb(0x87),'configInstructions':_0x2ccacb(0xa3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2ccacb(0xa0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2ccacb(0x7d),'sessionIdDescription':_0x2ccacb(0x85),'authorizationDescription':_0x2ccacb(0x7e),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2ccacb(0x80),'save':_0x2ccacb(0xa5),'saving':'Saving...','note1':_0x2ccacb(0xad),'note2':_0x2ccacb(0x84),'configSaved':_0x2ccacb(0x86),'configError':_0x2ccacb(0xa9),'apiApplyInfo':{'title':_0x2ccacb(0x93),'description':_0x2ccacb(0x89),'univerAiLabel':_0x2ccacb(0x9d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2ccacb(0x7f),'apiKeyTooShort':_0x2ccacb(0x9e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2ccacb(0xaf)},'connectionStatus':{'disconnected':_0x2ccacb(0xac),'connecting':_0x2ccacb(0x91),'connected':_0x2ccacb(0x94),'failed':_0x2ccacb(0xaa),'retrying':_0x2ccacb(0x88)},'connectionError':{'unauthorized':_0x2ccacb(0xb0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2ccacb(0xa7),'maxRetriesExceeded':_0x2ccacb(0x7c)}}},n=e;module['exports']=n;function _0x142d(){const _0x2b1906=['MCP:\x20Unauthorized','5111533MwuXlx','Enter\x20your\x20API\x20key','MCP\x20Disconnected','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Save\x20Configuration','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2535138nnwAcz','Failed\x20to\x20save\x20configuration','Connection\x20Failed','6374920DcTrsK','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20is\x20required','Max\x20Retries','44eBgjqt','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3648475oHcQEm','4803xkbrfd','469850sUYaMA','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','Connecting...','4vcjEhL','What\x20is\x20API\x20Key?','Connected','2236092XyGeFV','Enable\x20Authentication','Click\x20to\x20connect\x20MCP','9EzxIwD'];_0x142d=function(){return _0x2b1906;};return _0x142d();}
1
+ 'use strict';const _0x4b981c=_0x113d;(function(_0x4f7151,_0x3bcde8){const _0x252bac=_0x113d,_0xa5411c=_0x4f7151();while(!![]){try{const _0x29f3ab=-parseInt(_0x252bac(0x1ae))/0x1*(-parseInt(_0x252bac(0x199))/0x2)+parseInt(_0x252bac(0x1b1))/0x3+parseInt(_0x252bac(0x1a4))/0x4+-parseInt(_0x252bac(0x1a6))/0x5+-parseInt(_0x252bac(0x19b))/0x6+parseInt(_0x252bac(0x194))/0x7+-parseInt(_0x252bac(0x1aa))/0x8;if(_0x29f3ab===_0x3bcde8)break;else _0xa5411c['push'](_0xa5411c['shift']());}catch(_0x8c7b45){_0xa5411c['push'](_0xa5411c['shift']());}}}(_0x4672,0xbfc24));function _0x113d(_0x4ff282,_0x4e31e3){const _0x467236=_0x4672();return _0x113d=function(_0x113d3e,_0x5e8a77){_0x113d3e=_0x113d3e-0x191;let _0x31c2ef=_0x467236[_0x113d3e];return _0x31c2ef;},_0x113d(_0x4ff282,_0x4e31e3);}function _0x4672(){const _0x2f83e8=['746075sdGLfp','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','13144208czBixK','MCP:\x20Unauthorized','MCP\x20Connecting...','exports','1GIMPTF','API\x20key\x20is\x20required','Retrying...','1699659NvjpKR','Enable\x20Authentication','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','API\x20Key','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Steps:','Connected','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','10578330TAQFZQ','Configuration\x20saved\x20successfully','Connecting...','MCP\x20Disconnected','MCP\x20Unknown\x20Status','1651956dWeZpp','MCP\x20Connected','6337434gwLMeX','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','2920812iDrclJ','MCP:\x20Network\x20Error'];_0x4672=function(){return _0x2f83e8;};return _0x4672();}const e={'mcpStatus':{'disconnected':_0x4b981c(0x197),'connecting':_0x4b981c(0x1ac),'connected':_0x4b981c(0x19a),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4b981c(0x1a8),'unknown':_0x4b981c(0x198),'unauthorized':_0x4b981c(0x1ab),'sessionOccupied':_0x4b981c(0x1a7),'networkError':_0x4b981c(0x1a5),'maxRetriesExceeded':_0x4b981c(0x1bb),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4b981c(0x19c)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4b981c(0x1a2),'apiKey':_0x4b981c(0x1b6),'apiKeyPlaceholder':_0x4b981c(0x191),'apiKeyHint':_0x4b981c(0x19d),'enableAuth':_0x4b981c(0x1b2),'enableAuthHint':_0x4b981c(0x1bd),'connectionInfo':_0x4b981c(0x19f),'mcpClientConfig':_0x4b981c(0x19f),'configInstructions':_0x4b981c(0x1b8),'configStepTitle':_0x4b981c(0x1b9),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4b981c(0x1bf),'sessionId':_0x4b981c(0x1a1),'sessionIdDescription':_0x4b981c(0x1a9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x4b981c(0x19e),'save':_0x4b981c(0x1b3),'saving':'Saving...','note1':_0x4b981c(0x1a0),'note2':_0x4b981c(0x193),'configSaved':_0x4b981c(0x195),'configError':_0x4b981c(0x1b5),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4b981c(0x1a3)},'validation':{'apiKeyRequired':_0x4b981c(0x1af),'apiKeyTooShort':_0x4b981c(0x1bc),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4b981c(0x1b4)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4b981c(0x196),'connected':_0x4b981c(0x1ba),'failed':_0x4b981c(0x1b7),'retrying':_0x4b981c(0x1b0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4b981c(0x192),'maxRetriesExceeded':_0x4b981c(0x1be)}}},n=e;module[_0x4b981c(0x1ad)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x508bdf=_0x309f;function _0x309f(_0x466b97,_0x296963){const _0x2ff151=_0x2ff1();return _0x309f=function(_0x309f27,_0x1a9a8f){_0x309f27=_0x309f27-0xdf;let _0x4df568=_0x2ff151[_0x309f27];return _0x4df568;},_0x309f(_0x466b97,_0x296963);}(function(_0x391446,_0x36ec85){const _0x4d2355=_0x309f,_0x168f9e=_0x391446();while(!![]){try{const _0x45a83a=-parseInt(_0x4d2355(0x104))/0x1+parseInt(_0x4d2355(0xf0))/0x2+parseInt(_0x4d2355(0x106))/0x3*(parseInt(_0x4d2355(0x10a))/0x4)+parseInt(_0x4d2355(0xf4))/0x5*(parseInt(_0x4d2355(0xe5))/0x6)+-parseInt(_0x4d2355(0xef))/0x7*(-parseInt(_0x4d2355(0xee))/0x8)+-parseInt(_0x4d2355(0xdf))/0x9+-parseInt(_0x4d2355(0xe4))/0xa*(parseInt(_0x4d2355(0xeb))/0xb);if(_0x45a83a===_0x36ec85)break;else _0x168f9e['push'](_0x168f9e['shift']());}catch(_0xf6a077){_0x168f9e['push'](_0x168f9e['shift']());}}}(_0x2ff1,0xdd716));function _0x2ff1(){const _0x1743a5=['MCP\x20连接失败','最大重试次数','点击连接\x20MCP','MCP\x20已连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20状态未知','MCP\x20重连中...','启用身份验证','什么是\x20API\x20密钥?','未连接','重启您的\x20MCP\x20客户端以使配置生效','配置步骤:','连接中...','273887PTnSmI','API\x20密钥','39rAKlDb','将以下配置添加到您的\x20MCP\x20客户端设置中:','您的\x20API\x20密钥安全存储在本地存储中','会话\x20ID\x20已被占用,请稍后再试','75560Ozobas','配置保存失败','权限验证失败,请检查您的\x20API\x20密钥','复制以下\x20JSON\x20配置','配置参数:','连接失败','MCP\x20配置','2032596AUSMRZ','保存配置','MCP\x20客户端配置','几秒钟内获取您的\x20API\x20密钥','配置保存成功','20bypeob','3217146nLRNDv','保存中...','exports','配置更改将立即生效','MCP:\x20超出最大重试次数','MCP\x20连接中...','12776434nbqYaG','API\x20密钥无效,请检查密钥是否正确','API\x20密钥长度至少需要\x2010\x20位','7068256JrPBBj','14MtIPTd','217084lUIKZZ','请输入您的\x20API\x20密钥','启用身份验证以获得安全连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','15MrcmLK','重连中...','Univer\x20AI\x20控制台'];_0x2ff1=function(){return _0x1743a5;};return _0x2ff1();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x508bdf(0xea),'connected':_0x508bdf(0xfa),'failed':_0x508bdf(0xf7),'retrying':_0x508bdf(0xfd),'unknown':_0x508bdf(0xfc),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x508bdf(0xe9),'clickToConnect':_0x508bdf(0xf9),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x508bdf(0x110),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x508bdf(0x105),'apiKeyPlaceholder':_0x508bdf(0xf1),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x508bdf(0xfe),'enableAuthHint':_0x508bdf(0xf2),'connectionInfo':_0x508bdf(0xe1),'mcpClientConfig':_0x508bdf(0xe1),'configInstructions':_0x508bdf(0x107),'configStepTitle':_0x508bdf(0x102),'configStep1':_0x508bdf(0x10d),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x508bdf(0x101),'sessionId':'会话ID','sessionIdDescription':_0x508bdf(0xfb),'authorizationDescription':_0x508bdf(0xf3),'configParameters':_0x508bdf(0x10e),'maxRetries':_0x508bdf(0xf8),'save':_0x508bdf(0xe0),'saving':_0x508bdf(0xe6),'note1':_0x508bdf(0xe8),'note2':_0x508bdf(0x108),'configSaved':_0x508bdf(0xe3),'configError':_0x508bdf(0x10b),'apiApplyInfo':{'title':_0x508bdf(0xff),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x508bdf(0xf6),'getStarted':_0x508bdf(0xe2)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x508bdf(0xed),'invalidConfig':'配置无效','invalidApiKey':_0x508bdf(0xec)},'connectionStatus':{'disconnected':_0x508bdf(0x100),'connecting':_0x508bdf(0x103),'connected':'已连接','failed':_0x508bdf(0x10f),'retrying':_0x508bdf(0xf5)},'connectionError':{'unauthorized':_0x508bdf(0x10c),'sessionOccupied':_0x508bdf(0x109),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x508bdf(0xe7)]=e;
1
+ 'use strict';const _0x3cc41a=_0x5855;function _0x5855(_0x3d6283,_0x1a7726){const _0x1c7001=_0x1c70();return _0x5855=function(_0x585558,_0x4e90e2){_0x585558=_0x585558-0xb2;let _0x30df11=_0x1c7001[_0x585558];return _0x30df11;},_0x5855(_0x3d6283,_0x1a7726);}(function(_0x5e1149,_0x1aab28){const _0x15fd55=_0x5855,_0x2dc079=_0x5e1149();while(!![]){try{const _0x28ddeb=parseInt(_0x15fd55(0xb6))/0x1*(-parseInt(_0x15fd55(0xe5))/0x2)+parseInt(_0x15fd55(0xd4))/0x3+parseInt(_0x15fd55(0xce))/0x4*(parseInt(_0x15fd55(0xde))/0x5)+parseInt(_0x15fd55(0xc1))/0x6*(-parseInt(_0x15fd55(0xc9))/0x7)+parseInt(_0x15fd55(0xd1))/0x8*(parseInt(_0x15fd55(0xbc))/0x9)+parseInt(_0x15fd55(0xdc))/0xa+parseInt(_0x15fd55(0xb3))/0xb*(-parseInt(_0x15fd55(0xc3))/0xc);if(_0x28ddeb===_0x1aab28)break;else _0x2dc079['push'](_0x2dc079['shift']());}catch(_0x2e27d0){_0x2dc079['push'](_0x2dc079['shift']());}}}(_0x1c70,0xe25c1));function _0x1c70(){const _0x3fad6a=['点击配置\x20MCP','配置步骤:','13077020VtsIZi','配置保存成功','5USKTmA','启用身份验证','MCP\x20已连接','会话\x20ID\x20已被占用,请稍后再试','API\x20密钥无效,请检查密钥是否正确','保存配置','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','8bFRfEk','超出最大重试次数,请稍后再试','重启您的\x20MCP\x20客户端以使配置生效','11iCqYab','几秒钟内获取您的\x20API\x20密钥','Univer\x20AI\x20控制台','314224QJwaZM','配置保存失败','什么是\x20API\x20密钥?','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥不能为空','配置无效','162cSNbkc','MCP:\x20超出最大重试次数','连接中...','复制以下\x20JSON\x20配置','将配置添加到您的\x20MCP\x20客户端设置文件中','1386414ZqqukR','已连接','2319996YQAaJG','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','未连接','MCP\x20已断开','点击连接\x20MCP','配置更改将立即生效','7uuAUzE','保存中...','会话ID','权限验证失败,请检查您的\x20API\x20密钥','请输入您的\x20API\x20密钥','1642820LJlQmy','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接失败','146360xPqOCk','MCP\x20客户端配置','MCP\x20配置','1682250dxYqsE','带有\x20Bearer\x20前缀的\x20API\x20密钥。','最大重试次数','MCP\x20重连中...','MCP\x20连接中...','exports'];_0x1c70=function(){return _0x3fad6a;};return _0x1c70();}const e={'mcpStatus':{'disconnected':_0x3cc41a(0xc6),'connecting':_0x3cc41a(0xd8),'connected':_0x3cc41a(0xe0),'failed':_0x3cc41a(0xd0),'retrying':_0x3cc41a(0xd7),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3cc41a(0xb9),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3cc41a(0xbd),'clickToConnect':_0x3cc41a(0xc7),'clickToConfigure':_0x3cc41a(0xda)},'mcpConfig':{'title':_0x3cc41a(0xd3),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x3cc41a(0xcd),'apiKeyHint':_0x3cc41a(0xcf),'enableAuth':_0x3cc41a(0xdf),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3cc41a(0xd2),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3cc41a(0xdb),'configStep1':_0x3cc41a(0xbf),'configStep2':_0x3cc41a(0xc0),'configStep3':_0x3cc41a(0xb2),'sessionId':_0x3cc41a(0xcb),'sessionIdDescription':_0x3cc41a(0xc4),'authorizationDescription':_0x3cc41a(0xd5),'configParameters':'配置参数:','maxRetries':_0x3cc41a(0xd6),'save':_0x3cc41a(0xe3),'saving':_0x3cc41a(0xca),'note1':_0x3cc41a(0xc8),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x3cc41a(0xdd),'configError':_0x3cc41a(0xb7),'apiApplyInfo':{'title':_0x3cc41a(0xb8),'description':_0x3cc41a(0xe4),'univerAiLabel':_0x3cc41a(0xb5),'getStarted':_0x3cc41a(0xb4)},'validation':{'apiKeyRequired':_0x3cc41a(0xba),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x3cc41a(0xbb),'invalidApiKey':_0x3cc41a(0xe2)},'connectionStatus':{'disconnected':_0x3cc41a(0xc5),'connecting':_0x3cc41a(0xbe),'connected':_0x3cc41a(0xc2),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x3cc41a(0xcc),'sessionOccupied':_0x3cc41a(0xe1),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3cc41a(0xe6)}}};module[_0x3cc41a(0xd9)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x4436(){const _0x136071=['API\x20Key','Session\x20ID','1218KVrOMM','Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','48008AwHwLT','MCP\x20Connection\x20Failed','Max\x20Retries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6444XBcgzt','1669707AJxCKa','153752eAuoTA','Enter\x20your\x20API\x20key','Invalid\x20configuration','Saving...','Failed\x20to\x20save\x20configuration','2lMkGSq','Configuration\x20saved\x20successfully','MCP\x20Disconnected','6290lCzaEs','1376232AlGUyB','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','4759015GUpKzT','6WyhMKm','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20ID\x20Occupied','Connected','Save\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','exports','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','300531ywdqRD','Configuration\x20Steps:','MCP\x20Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x4436=function(){return _0x136071;};return _0x4436();}function _0x4ada(_0x1b6823,_0x46bbc){const _0x443686=_0x4436();return _0x4ada=function(_0x4ada7f,_0x1cc9a1){_0x4ada7f=_0x4ada7f-0xeb;let _0x3e9702=_0x443686[_0x4ada7f];return _0x3e9702;},_0x4ada(_0x1b6823,_0x46bbc);}const _0x1754d4=_0x4ada;(function(_0x5d9bae,_0x1cd08b){const _0x3dd3da=_0x4ada,_0x3e802e=_0x5d9bae();while(!![]){try{const _0x498737=parseInt(_0x3dd3da(0x104))/0x1*(parseInt(_0x3dd3da(0xff))/0x2)+parseInt(_0x3dd3da(0xfe))/0x3+parseInt(_0x3dd3da(0x108))/0x4+-parseInt(_0x3dd3da(0x110))/0x5*(parseInt(_0x3dd3da(0x111))/0x6)+-parseInt(_0x3dd3da(0xf5))/0x7*(-parseInt(_0x3dd3da(0xf9))/0x8)+-parseInt(_0x3dd3da(0xfd))/0x9*(parseInt(_0x3dd3da(0x107))/0xa)+-parseInt(_0x3dd3da(0xec))/0xb;if(_0x498737===_0x1cd08b)break;else _0x3e802e['push'](_0x3e802e['shift']());}catch(_0x2f8180){_0x3e802e['push'](_0x3e802e['shift']());}}}(_0x4436,0xa3589));const e={'mcpStatus':{'disconnected':_0x1754d4(0x106),'connecting':_0x1754d4(0xee),'connected':'MCP\x20Connected','failed':_0x1754d4(0xfa),'retrying':'MCP\x20Retrying...','unknown':_0x1754d4(0x11b),'unauthorized':_0x1754d4(0x11a),'sessionOccupied':_0x1754d4(0x115),'networkError':_0x1754d4(0xf0),'maxRetriesExceeded':_0x1754d4(0xef),'clickToConnect':_0x1754d4(0x10f),'clickToConfigure':_0x1754d4(0xf1)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1754d4(0xf7),'apiKey':_0x1754d4(0xf3),'apiKeyPlaceholder':_0x1754d4(0x100),'apiKeyHint':_0x1754d4(0xf8),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1754d4(0x10b),'mcpClientConfig':_0x1754d4(0x10b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1754d4(0xed),'configStep1':_0x1754d4(0x10d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1754d4(0xf2),'sessionId':_0x1754d4(0xf4),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1754d4(0x11d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1754d4(0xfb),'save':_0x1754d4(0x117),'saving':_0x1754d4(0x102),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1754d4(0xfc),'configSaved':_0x1754d4(0x105),'configError':_0x1754d4(0x103),'apiApplyInfo':{'title':_0x1754d4(0x112),'description':_0x1754d4(0x11c),'univerAiLabel':_0x1754d4(0x113),'getStarted':_0x1754d4(0x10a)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1754d4(0x10c),'invalidConfig':_0x1754d4(0x101),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1754d4(0x109),'connecting':_0x1754d4(0x119),'connected':_0x1754d4(0x116),'failed':_0x1754d4(0xf6),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1754d4(0xeb),'sessionOccupied':_0x1754d4(0x10e),'networkError':_0x1754d4(0x114),'maxRetriesExceeded':_0x1754d4(0x118)}}},n=e;module[_0x1754d4(0x11e)]=n;
1
+ 'use strict';const _0x57aa55=_0x1168;(function(_0x367712,_0x36f41b){const _0x184f12=_0x1168,_0x2637cb=_0x367712();while(!![]){try{const _0x439171=parseInt(_0x184f12(0x147))/0x1+-parseInt(_0x184f12(0x15f))/0x2+-parseInt(_0x184f12(0x174))/0x3+parseInt(_0x184f12(0x14e))/0x4*(parseInt(_0x184f12(0x164))/0x5)+-parseInt(_0x184f12(0x16b))/0x6+-parseInt(_0x184f12(0x15a))/0x7+-parseInt(_0x184f12(0x162))/0x8*(-parseInt(_0x184f12(0x149))/0x9);if(_0x439171===_0x36f41b)break;else _0x2637cb['push'](_0x2637cb['shift']());}catch(_0x4a929f){_0x2637cb['push'](_0x2637cb['shift']());}}}(_0x2040,0x6d23e));function _0x2040(){const _0x14da0c=['Connected','Session\x20ID','Configuration\x20Parameters:','5115509sbGiTK','API\x20key\x20is\x20required','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','186154HqrrUa','Enable\x20Authentication','API\x20Key','8oCGHoL','MCP\x20Client\x20Configuration','5ndMYay','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','538440UuqimV','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Disconnected','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','317265xLGcPX','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','exports','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','155066hRAsyD','Click\x20to\x20configure\x20MCP','4681476OcssIu','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Univer\x20AI\x20Console','3164668aAjTrm','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','Invalid\x20configuration','Enter\x20your\x20API\x20key','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries'];_0x2040=function(){return _0x14da0c;};return _0x2040();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x57aa55(0x165),'connected':_0x57aa55(0x154),'failed':_0x57aa55(0x169),'retrying':'MCP\x20Retrying...','unknown':_0x57aa55(0x170),'unauthorized':_0x57aa55(0x176),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x57aa55(0x16f),'maxRetriesExceeded':_0x57aa55(0x150),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x57aa55(0x148)},'mcpConfig':{'title':_0x57aa55(0x145),'description':_0x57aa55(0x146),'apiKey':_0x57aa55(0x161),'apiKeyPlaceholder':_0x57aa55(0x153),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x57aa55(0x160),'enableAuthHint':_0x57aa55(0x166),'connectionInfo':_0x57aa55(0x163),'mcpClientConfig':_0x57aa55(0x163),'configInstructions':_0x57aa55(0x167),'configStepTitle':_0x57aa55(0x14c),'configStep1':_0x57aa55(0x16e),'configStep2':_0x57aa55(0x173),'configStep3':_0x57aa55(0x16c),'sessionId':_0x57aa55(0x158),'sessionIdDescription':_0x57aa55(0x15e),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x57aa55(0x159),'maxRetries':_0x57aa55(0x156),'save':_0x57aa55(0x143),'saving':_0x57aa55(0x15c),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x57aa55(0x14a),'configSaved':_0x57aa55(0x168),'configError':_0x57aa55(0x16a),'apiApplyInfo':{'title':_0x57aa55(0x172),'description':_0x57aa55(0x177),'univerAiLabel':_0x57aa55(0x14d),'getStarted':_0x57aa55(0x155)},'validation':{'apiKeyRequired':_0x57aa55(0x15b),'apiKeyTooShort':_0x57aa55(0x179),'invalidConfig':_0x57aa55(0x152),'invalidApiKey':_0x57aa55(0x175)},'connectionStatus':{'disconnected':_0x57aa55(0x171),'connecting':_0x57aa55(0x14f),'connected':_0x57aa55(0x157),'failed':_0x57aa55(0x16d),'retrying':_0x57aa55(0x151)},'connectionError':{'unauthorized':_0x57aa55(0x178),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x57aa55(0x15d),'maxRetriesExceeded':_0x57aa55(0x14b)}}},n=e;function _0x1168(_0x2c3ecd,_0x59f7d2){const _0x2040d4=_0x2040();return _0x1168=function(_0x1168d9,_0x7bb8df){_0x1168d9=_0x1168d9-0x143;let _0x4702c2=_0x2040d4[_0x1168d9];return _0x4702c2;},_0x1168(_0x2c3ecd,_0x59f7d2);}module[_0x57aa55(0x144)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x33a0d3=_0x1a94;(function(_0x6be5da,_0xa41bad){var _0x14f3bc=_0x1a94,_0x257bb4=_0x6be5da();while(!![]){try{var _0x3ca7b=-parseInt(_0x14f3bc(0xf6))/0x1+parseInt(_0x14f3bc(0x147))/0x2+parseInt(_0x14f3bc(0x1d1))/0x3+-parseInt(_0x14f3bc(0xd3))/0x4+-parseInt(_0x14f3bc(0x1e9))/0x5*(parseInt(_0x14f3bc(0x1d5))/0x6)+parseInt(_0x14f3bc(0x14c))/0x7*(-parseInt(_0x14f3bc(0x94))/0x8)+-parseInt(_0x14f3bc(0x1cb))/0x9*(-parseInt(_0x14f3bc(0x9c))/0xa);if(_0x3ca7b===_0xa41bad)break;else _0x257bb4['push'](_0x257bb4['shift']());}catch(_0x48ed6b){_0x257bb4['push'](_0x257bb4['shift']());}}}(_0x5d6f,0xacf4a));var we=Object['defineProperty'],Ee=(_0x5303c9,_0x539cc9,_0x2eb23b)=>_0x539cc9 in _0x5303c9?we(_0x5303c9,_0x539cc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2eb23b}):_0x5303c9[_0x539cc9]=_0x2eb23b,S=(_0x53bb51,_0x3b2d5f,_0x22751b)=>Ee(_0x53bb51,typeof _0x3b2d5f!=_0x33a0d3(0x183)?_0x3b2d5f+'':_0x3b2d5f,_0x22751b);import{LocaleService as _0x309248,Inject as _0x2ba808,Injector as _0x1d6cae,IConfigService as _0x24beb8,ILocalStorageService as _0x486b15,ILogService as _0x3f7abf,Disposable as _0xc31102,CommandType as _0x34a391,ICommandService as _0x1ebad4,DependentOn as _0x120479,Plugin as _0x128244,merge as _0x4b5942}from'@univerjs/core';import{jsxs as _0x553871,jsx as _0x4e65ca}from'react/jsx-runtime';import{MCPConnectionStatus as _0x39244f,MCPConnectionError as _0x46ad60,MCPConnectionController as _0x34c399,MCP_PLUGIN_CONFIG_KEY as _0x48170c,UniverMCPPlugin as _0x424896}from'@univerjs-pro/mcp';import{Input as _0xd4ea02,Button as _0x21a308,MessageType as _0x4edfa6,Tooltip as _0x3cc445,clsx as _0xc4f7d9}from'@univerjs/design';import{useDependency as _0x3bdb81,useObservable as _0x3ac885,IUIPartsService as _0x161f94,IDialogService as _0x3441a5,IMessageService as _0xfc5e8d,ComponentManager as _0x3f7fe0,connectInjector as _0x23b25d,BuiltInUIPart as _0x2b8d83,MenuItemType as _0x3f21c8,RibbonStartGroup as _0x34ec38,IMenuManagerService as _0x1f96a2}from'@univerjs/ui';import{BehaviorSubject as _0x59015f}from'rxjs';import{forwardRef as _0x2733cb,useRef as _0x40a09b,createElement as _0x1fa4a0,useState as _0x34eb99,useCallback as _0x47054b}from'react';import{ISocketService as _0x3466dc,WebSocketService as _0x1096bb}from'@univerjs/network';var f=function(){var _0x2cd7ab=_0x33a0d3;return f=Object[_0x2cd7ab(0xbb)]||function(_0x8dce5c){var _0x183e5b=_0x2cd7ab;for(var _0x458797,_0x1a9839=0x1,_0x391b1e=arguments[_0x183e5b(0x156)];_0x1a9839<_0x391b1e;_0x1a9839++){_0x458797=arguments[_0x1a9839];for(var _0x30b110 in _0x458797)Object['prototype'][_0x183e5b(0xf5)][_0x183e5b(0xde)](_0x458797,_0x30b110)&&(_0x8dce5c[_0x30b110]=_0x458797[_0x30b110]);}return _0x8dce5c;},f[_0x2cd7ab(0x99)](this,arguments);},Ye=function(_0x1599e7,_0x316906){var _0x5c9e2e=_0x33a0d3,_0x2a39c9={};for(var _0x17874d in _0x1599e7)Object['prototype'][_0x5c9e2e(0xf5)][_0x5c9e2e(0xde)](_0x1599e7,_0x17874d)&&_0x316906[_0x5c9e2e(0xb4)](_0x17874d)<0x0&&(_0x2a39c9[_0x17874d]=_0x1599e7[_0x17874d]);if(_0x1599e7!=null&&typeof Object['getOwnPropertySymbols']==_0x5c9e2e(0x1d6)){for(var _0x4301af=0x0,_0x17874d=Object['getOwnPropertySymbols'](_0x1599e7);_0x4301af<_0x17874d[_0x5c9e2e(0x156)];_0x4301af++)_0x316906[_0x5c9e2e(0xb4)](_0x17874d[_0x4301af])<0x0&&Object[_0x5c9e2e(0x10d)][_0x5c9e2e(0xf3)][_0x5c9e2e(0xde)](_0x1599e7,_0x17874d[_0x4301af])&&(_0x2a39c9[_0x17874d[_0x4301af]]=_0x1599e7[_0x17874d[_0x4301af]]);}return _0x2a39c9;},w=_0x2733cb(function(_0x147c14,_0x19b63c){var _0x53d56b=_0x33a0d3,_0x10590b=_0x147c14[_0x53d56b(0xf9)],_0x3f6587=_0x147c14['id'],_0x101725=_0x147c14[_0x53d56b(0x1ef)],_0x23d738=_0x147c14[_0x53d56b(0x122)],_0x2fa8f4=Ye(_0x147c14,[_0x53d56b(0xf9),'id',_0x53d56b(0x1ef),_0x53d56b(0x122)]),_0x4ab3bd=_0x53d56b(0x168)[_0x53d56b(0x136)](_0x3f6587,'\x20')['concat'](_0x101725||'')['trim'](),_0xf648ce=_0x40a09b('_'[_0x53d56b(0x136)](Xe()));return ue(_0x10590b,''[_0x53d56b(0x136)](_0x3f6587),{'defIds':_0x10590b['defIds'],'idSuffix':_0xf648ce[_0x53d56b(0x16f)]},f({'ref':_0x19b63c,'className':_0x4ab3bd},_0x2fa8f4),_0x23d738);});function ue(_0x5b9db7,_0x5aa451,_0x4655d6,_0x408789,_0xc3de1){var _0x58ffa2=_0x33a0d3;return _0x1fa4a0(_0x5b9db7['tag'],f(f({'key':_0x5aa451},Ze(_0x5b9db7,_0x4655d6,_0xc3de1)),_0x408789),(qe(_0x5b9db7,_0x4655d6)[_0x58ffa2(0xe9)]||[])[_0x58ffa2(0x18c)](function(_0x1ac09a,_0x2e4f10){var _0x10c784=_0x58ffa2;return ue(_0x1ac09a,''['concat'](_0x5aa451,'-')[_0x10c784(0x136)](_0x5b9db7[_0x10c784(0xa4)],'-')[_0x10c784(0x136)](_0x2e4f10),_0x4655d6,void 0x0,_0xc3de1);}));}function Ze(_0x292cb8,_0x467728,_0x3525a1){var _0x232b1e=_0x33a0d3,_0x50e008=f({},_0x292cb8[_0x232b1e(0x12b)]);_0x3525a1!=null&&_0x3525a1['colorChannel1']&&_0x50e008[_0x232b1e(0xb9)]===_0x232b1e(0x101)&&(_0x50e008[_0x232b1e(0xb9)]=_0x3525a1['colorChannel1']),_0x292cb8[_0x232b1e(0xa4)]===_0x232b1e(0xcf)&&_0x50e008['id']&&(_0x50e008['id']=_0x50e008['id']+_0x467728['idSuffix']),Object[_0x232b1e(0x92)](_0x50e008)[_0x232b1e(0x176)](function(_0x2d5a7e){var _0x2682f4=_0x232b1e,_0x39e8f1=_0x2d5a7e[0x0],_0x5b9926=_0x2d5a7e[0x1];_0x39e8f1===_0x2682f4(0xcf)&&typeof _0x5b9926==_0x2682f4(0x12f)&&(_0x50e008[_0x39e8f1]=_0x5b9926['replace'](/url\(#(.*)\)/,_0x2682f4(0xbc)[_0x2682f4(0x136)](_0x467728[_0x2682f4(0x1c4)],')')));});var _0x5098fa=_0x467728[_0x232b1e(0xce)];return!_0x5098fa||_0x5098fa[_0x232b1e(0x156)]===0x0||(_0x292cb8[_0x232b1e(0xa4)]===_0x232b1e(0x158)&&_0x50e008[_0x232b1e(0x187)]&&(_0x50e008[_0x232b1e(0x187)]=_0x50e008[_0x232b1e(0x187)]+_0x467728[_0x232b1e(0x1c4)]),Object[_0x232b1e(0x92)](_0x50e008)[_0x232b1e(0x176)](function(_0x5af3ad){var _0x13475b=_0x232b1e,_0x2a2163=_0x5af3ad[0x0],_0x331334=_0x5af3ad[0x1];typeof _0x331334=='string'&&(_0x50e008[_0x2a2163]=_0x331334['replace'](/url\(#(.*)\)/,_0x13475b(0xbc)[_0x13475b(0x136)](_0x467728[_0x13475b(0x1c4)],')')));})),_0x50e008;}function qe(_0x17fd1e,_0x33704f){var _0x1fde75=_0x33a0d3,_0x3b9463,_0xedf39b=_0x33704f[_0x1fde75(0xce)];return!_0xedf39b||_0xedf39b[_0x1fde75(0x156)]===0x0?_0x17fd1e:_0x17fd1e['tag']===_0x1fde75(0xe7)&&(!((_0x3b9463=_0x17fd1e[_0x1fde75(0xe9)])===null||_0x3b9463===void 0x0)&&_0x3b9463['length'])?f(f({},_0x17fd1e),{'children':_0x17fd1e['children'][_0x1fde75(0x18c)](function(_0x5447ed){var _0x269b5a=_0x1fde75;return typeof _0x5447ed[_0x269b5a(0x12b)]['id']=='string'&&_0xedf39b&&_0xedf39b[_0x269b5a(0x152)](_0x5447ed[_0x269b5a(0x12b)]['id'])?f(f({},_0x5447ed),{'attrs':f(f({},_0x5447ed[_0x269b5a(0x12b)]),{'id':_0x5447ed[_0x269b5a(0x12b)]['id']+_0x33704f[_0x269b5a(0x1c4)]})}):_0x5447ed;})}):_0x17fd1e;}function Xe(){var _0x4215fa=_0x33a0d3;return Math['random']()[_0x4215fa(0xf2)](0x24)[_0x4215fa(0xcd)](0x2,0x8);}w['displayName']='UniverIcon';var Je={'tag':'svg','attrs':{'xmlns':_0x33a0d3(0x14b),'fill':_0x33a0d3(0x1f0),'viewBox':_0x33a0d3(0x1c6),'width':'1em','height':'1em'},'children':[{'tag':_0x33a0d3(0x96),'attrs':{'fill':_0x33a0d3(0x9e),'d':_0x33a0d3(0x169),'fillRule':_0x33a0d3(0x1b5),'clipRule':'evenodd'}}]},le=_0x2733cb(function(_0x272729,_0x33d15b){var _0x553da3=_0x33a0d3;return _0x1fa4a0(w,Object['assign']({},_0x272729,{'id':_0x553da3(0xa9),'ref':_0x33d15b,'icon':Je}));});le[_0x33a0d3(0xa0)]=_0x33a0d3(0x167);var Qe={'tag':_0x33a0d3(0x186),'attrs':{'xmlns':_0x33a0d3(0x14b),'fill':_0x33a0d3(0x1f0),'viewBox':_0x33a0d3(0x1e3),'width':'1em','height':_0x33a0d3(0x1ea)},'children':[{'tag':_0x33a0d3(0x96),'attrs':{'stroke':_0x33a0d3(0x9e),'d':_0x33a0d3(0x18d),'strokeLinecap':'round','strokeLinejoin':_0x33a0d3(0x1a2),'strokeWidth':1.33}},{'tag':_0x33a0d3(0x96),'attrs':{'stroke':'currentColor','d':_0x33a0d3(0x10a),'strokeLinecap':_0x33a0d3(0x1a2),'strokeLinejoin':'round','strokeWidth':1.33}}]},ve=_0x2733cb(function(_0x3fbaa4,_0x3f2112){var _0x1bd63f=_0x33a0d3;return _0x1fa4a0(w,Object[_0x1bd63f(0xbb)]({},_0x3fbaa4,{'id':_0x1bd63f(0xc7),'ref':_0x3f2112,'icon':Qe}));});ve['displayName']=_0x33a0d3(0xff);var en={'tag':_0x33a0d3(0x186),'attrs':{'xmlns':_0x33a0d3(0x14b),'fill':_0x33a0d3(0x1f0),'viewBox':_0x33a0d3(0x1c6),'width':_0x33a0d3(0x1ea),'height':'1em'},'children':[{'tag':_0x33a0d3(0x96),'attrs':{'fill':_0x33a0d3(0x9e),'d':_0x33a0d3(0x1de)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x33a0d3(0x96),'attrs':{'fill':_0x33a0d3(0x9e),'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':'evenodd','clipRule':_0x33a0d3(0x1b5)}}]},de=_0x2733cb(function(_0x39829e,_0x3dbb9e){var _0x547cd6=_0x33a0d3;return _0x1fa4a0(w,Object[_0x547cd6(0xbb)]({},_0x39829e,{'id':_0x547cd6(0x1b0),'ref':_0x3dbb9e,'icon':en}));});de[_0x33a0d3(0xa0)]='HelpSingle';var nn={'tag':_0x33a0d3(0x186),'attrs':{'xmlns':_0x33a0d3(0x14b),'fill':_0x33a0d3(0x1f0),'viewBox':_0x33a0d3(0x1c6),'width':_0x33a0d3(0x1ea),'height':_0x33a0d3(0x1ea)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x33a0d3(0x96),'attrs':{'stroke':_0x33a0d3(0x9e),'d':_0x33a0d3(0x189),'strokeLinecap':_0x33a0d3(0x1a2),'strokeLinejoin':_0x33a0d3(0x1a2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x33a0d3(0xc2),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x33a0d3(0x185)}}]}]}],'defIds':[_0x33a0d3(0x1db)]},fe=_0x2733cb(function(_0x2a6148,_0x493f5f){return _0x1fa4a0(w,Object['assign']({},_0x2a6148,{'id':'off-line-icon','ref':_0x493f5f,'icon':nn}));});fe[_0x33a0d3(0xa0)]=_0x33a0d3(0xd5);var rn={'tag':_0x33a0d3(0x186),'attrs':{'xmlns':_0x33a0d3(0x14b),'fill':_0x33a0d3(0x1f0),'viewBox':'0\x200\x2017\x2016','width':_0x33a0d3(0x1ea),'height':_0x33a0d3(0x1ea)},'children':[{'tag':'g','attrs':{'clipPath':_0x33a0d3(0x1af)},'children':[{'tag':_0x33a0d3(0x96),'attrs':{'stroke':_0x33a0d3(0x9e),'d':_0x33a0d3(0xae),'strokeLinecap':_0x33a0d3(0x1a2),'strokeLinejoin':_0x33a0d3(0x1a2),'strokeWidth':1.2}}]},{'tag':_0x33a0d3(0xe7),'attrs':{},'children':[{'tag':_0x33a0d3(0xc2),'attrs':{'id':_0x33a0d3(0x118)},'children':[{'tag':_0x33a0d3(0x96),'attrs':{'fill':_0x33a0d3(0x1b3),'d':'M0\x200H16V16H0z','transform':_0x33a0d3(0xb2)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x2733cb(function(_0x3d93ee,_0xf90c79){var _0x2e5f1c=_0x33a0d3;return _0x1fa4a0(w,Object[_0x2e5f1c(0xbb)]({},_0x3d93ee,{'id':_0x2e5f1c(0x1dc),'ref':_0xf90c79,'icon':rn}));});ge[_0x33a0d3(0xa0)]=_0x33a0d3(0x1a7);function tn(_0xdd4093){var _0x1b0230=_0x33a0d3,_0x4f5701,_0x3cc1b7;const {mcpCoreConfig:_0x3fdfa5,onSave:_0x526684,loading:_0x19849e=!0x1,config:_0x39febd,connectionStatus$:_0x28f27e,connectionError$:_0x1d7ce9,currentApiKey$:_0x5c7aa1,currentSessionId$:_0x54fb75}=_0xdd4093,_0x408e04=_0x3bdb81(_0x309248),_0x5f2998=_0x3ac885(_0x28f27e,_0x39244f['DISCONNECTED']),_0xcb8371=_0x3ac885(_0x1d7ce9,_0x46ad60[_0x1b0230(0x12d)]),_0x2f56aa=_0x3ac885(_0x54fb75,''),_0x5b4dcd=_0x3ac885(_0x5c7aa1,''),[_0x2d72d3,_0x17fec5]=_0x34eb99(_0x5b4dcd||''),_0x2066f9=!0x0,_0xd54a81=_0x39febd[_0x1b0230(0x157)]&&_0x3fdfa5['mcpServerUrl']&&(_0x3fdfa5['mcpServerUrl']['includes'](_0x1b0230(0x1f3))||_0x3fdfa5[_0x1b0230(0x125)][_0x1b0230(0x152)](_0x1b0230(0x12a))),_0x310010=(_0x4f5701=_0x3fdfa5[_0x1b0230(0x125)])==null?void 0x0:_0x4f5701[_0x1b0230(0x152)](_0x1b0230(0x1f3)),_0x1e1683=(_0x3cc1b7=_0x3fdfa5[_0x1b0230(0x125)])==null?void 0x0:_0x3cc1b7['includes'](_0x1b0230(0x12a)),_0x21223d=_0x310010?_0x1b0230(0x115):_0x1b0230(0x16a),_0x1eb6a8=_0x39febd[_0x1b0230(0x157)]&&(_0x310010||_0x1e1683),[_0xc7084e,_0x4f3fbc]=_0x34eb99(!_0x2d72d3[_0x1b0230(0x1b8)]()),_0x400450=(_0x487dea,_0x3bd5fd)=>{var _0x3dcef4=_0x1b0230;if(_0x3bd5fd===_0x46ad60['UNAUTHORIZED'])return _0x3dcef4(0xeb);switch(_0x487dea){case _0x39244f[_0x3dcef4(0x161)]:return _0x3dcef4(0xb8);case _0x39244f[_0x3dcef4(0x18a)]:case _0x39244f[_0x3dcef4(0x166)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x39244f[_0x3dcef4(0x159)]:return _0x3dcef4(0xeb);default:return _0x3dcef4(0x127);}},_0x3a4963=(_0x3afaff,_0x33ab01)=>{var _0x58d908=_0x1b0230;if(_0x33ab01===_0x46ad60[_0x58d908(0xd6)])return _0x58d908(0x1b1);switch(_0x3afaff){case _0x39244f[_0x58d908(0x161)]:return _0x58d908(0x1ba);case _0x39244f[_0x58d908(0x18a)]:case _0x39244f[_0x58d908(0x166)]:return _0x58d908(0x1e7);case _0x39244f[_0x58d908(0x159)]:return _0x58d908(0x1b1);default:return _0x58d908(0x1ae);}},_0x3443b2=_0x45a917=>{var _0x511498=_0x1b0230;switch(_0x45a917){case _0x39244f['CONNECTED']:return _0x408e04['t'](_0x511498(0xc9));case _0x39244f[_0x511498(0x18a)]:return _0x408e04['t'](_0x511498(0x17e));case _0x39244f['FAILED']:return _0x408e04['t'](_0x511498(0x1b6));case _0x39244f[_0x511498(0x166)]:return _0x408e04['t'](_0x511498(0x100));default:return _0x408e04['t'](_0x511498(0x154));}},_0x57263b=_0x4b7381=>{var _0x4a0a70=_0x1b0230;switch(_0x4b7381){case _0x46ad60['UNAUTHORIZED']:return _0x408e04['t']('mcpConfig.connectionError.unauthorized');case _0x46ad60[_0x4a0a70(0x9f)]:return _0x408e04['t'](_0x4a0a70(0xab));case _0x46ad60[_0x4a0a70(0x1bf)]:return _0x408e04['t']('mcpConfig.connectionError.networkError');case _0x46ad60['MAX_RETRIES_EXCEEDED']:return _0x408e04['t'](_0x4a0a70(0xd1));default:return'';}},_0x45349d=_0x47054b(()=>{var _0x360dee=_0x1b0230;const _0x53cc0a={..._0x3fdfa5,'apiKey':_0x2d72d3[_0x360dee(0x1b8)](),'enableAuth':_0x2066f9};_0x526684(_0x53cc0a);},[_0x3fdfa5,_0x2d72d3,_0x2066f9,_0x526684]),_0xdbf037=_0x2d72d3[_0x1b0230(0x1b8)]()[_0x1b0230(0x156)]>0x0;return _0x553871('div',{'className':_0x1b0230(0x93),'children':[_0x4e65ca('div',{'className':_0x1b0230(0x19d),'children':_0x553871('div',{'className':_0x1b0230(0xaf),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x4e65ca('span',{'className':_0x1b0230(0x13e),'children':'⚙'})}),_0x4e65ca(_0x1b0230(0xee),{'children':_0x4e65ca('p',{'className':_0x1b0230(0x1ed),'children':_0x408e04['t']('mcpConfig.description')})})]})}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x1f1),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x109)+_0x400450(_0x5f2998,_0xcb8371)+_0x1b0230(0x173),'children':_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x11e),'children':[_0x4e65ca('div',{'className':_0x1b0230(0x1ee)+_0x3a4963(_0x5f2998,_0xcb8371)+_0x1b0230(0x121)}),_0x4e65ca(_0x1b0230(0x14f),{'className':_0x1b0230(0x148),'children':_0x3443b2(_0x5f2998)})]})}),_0xcb8371!==_0x46ad60[_0x1b0230(0x12d)]&&(_0x5f2998===_0x39244f['FAILED']||_0xcb8371===_0x46ad60[_0x1b0230(0xd6)])&&_0x4e65ca('div',{'className':_0x1b0230(0x112),'children':_0x553871('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x4e65ca(_0x1b0230(0x14f),{'className':_0x1b0230(0x17c),'children':'⚠️'}),_0x4e65ca('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x57263b(_0xcb8371)})]})})]}),_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x1ec),'children':_0x553871('div',{'className':_0x1b0230(0x9d),'children':[_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0xd7),'children':[_0x553871(_0x1b0230(0xf0),{'className':_0x1b0230(0x124),'children':[_0x4e65ca('span',{'children':'🔑'}),'\x20',_0x408e04['t'](_0x1b0230(0x1d3)),_0x4e65ca(_0x1b0230(0x14f),{'className':'univer-text-red-500','children':'*'}),_0xd54a81&&_0x4e65ca('a',{'href':_0x1b0230(0x19e),'onClick':()=>_0x4f3fbc(!0x0),'className':_0x1b0230(0x1e6),'title':_0x408e04['t'](_0x1b0230(0x146)),'children':_0x4e65ca(de,{})})]}),_0x4e65ca(_0xd4ea02,{'type':_0x1b0230(0x13f),'placeholder':_0x408e04['t'](_0x1b0230(0x1f2)),'value':_0x2d72d3,'onChange':_0x17fec5,'disabled':_0x19849e,'autoComplete':'off'}),_0x4e65ca('p',{'className':_0x1b0230(0x135),'children':_0x408e04['t'](_0x1b0230(0x11c))})]}),_0xd54a81&&_0xc7084e&&_0x553871('div',{'className':_0x1b0230(0x196),'children':[_0x4e65ca('a',{'href':_0x1b0230(0x19e),'onClick':()=>_0x4f3fbc(!0x1),'className':_0x1b0230(0xc4),'title':_0x1b0230(0x103),'children':_0x4e65ca(ve,{})}),_0x553871('div',{'className':_0x1b0230(0x12c),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x1dd),'children':_0x4e65ca(_0x1b0230(0x14f),{'className':'univer-text-blue-600','children':'🚀'})}),_0x553871('div',{'className':_0x1b0230(0x197),'children':[_0x4e65ca('h4',{'className':_0x1b0230(0x1b4),'children':_0x408e04['t'](_0x1b0230(0x146))}),_0x4e65ca('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x408e04['t']('mcpConfig.apiApplyInfo.description')}),_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x1da),'children':_0x1eb6a8&&_0x553871('a',{'href':_0x21223d,'target':_0x1b0230(0x1aa),'rel':_0x1b0230(0x1d0),'className':_0x1b0230(0x114),'children':[_0x4e65ca(_0x1b0230(0x14f),{'children':'🤖'}),_0x408e04['t'](_0x1b0230(0x1cc)),_0x4e65ca('span',{'className':_0x1b0230(0x15f),'children':'↗'})]})}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x126),'children':['✨','\x20',_0x408e04['t'](_0x1b0230(0x15c))]})]})]})]}),_0x39febd[_0x1b0230(0x157)]&&_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x179),'children':[_0x553871('h4',{'className':_0x1b0230(0x1b9),'children':[_0x4e65ca('span',{'children':'🔗'}),'\x20',_0x408e04['t']('mcpConfig.connectionInfo')]}),_0x553871('div',{'className':'univer-space-y-4','children':[_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0xfb),'children':[_0x4e65ca('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x408e04['t'](_0x1b0230(0xa6))}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0xd7),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x98),'children':_0x408e04['t'](_0x1b0230(0xa5))}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x163),'children':[_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x11e),'children':[_0x4e65ca(_0x1b0230(0x14f),{'className':_0x1b0230(0x19b),'children':'1'}),_0x408e04['t']('mcpConfig.configStep1')]}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x11e),'children':[_0x4e65ca(_0x1b0230(0x14f),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x408e04['t'](_0x1b0230(0xc5))]}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x11e),'children':[_0x4e65ca(_0x1b0230(0x14f),{'className':_0x1b0230(0x19b),'children':'3'}),_0x408e04['t'](_0x1b0230(0x11d))]})]})]})]}),_0x553871('div',{'className':_0x1b0230(0xd7),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x98),'children':'MCP\x20Configuration'}),_0x4e65ca('div',{'className':_0x1b0230(0x1a1),'children':_0x4e65ca(_0x1b0230(0x1df),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x1b0230(0xb7)+_0x2f56aa+'\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20'+(_0x2d72d3||_0x1b0230(0x171))+_0x1b0230(0x1e4)})})]}),_0x553871('div',{'className':_0x1b0230(0xfb),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x408e04['t'](_0x1b0230(0xa3))}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0xd7),'children':[_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0xd0),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x97)}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x164),'children':[_0x4e65ca('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1b0230(0x11a)}),_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x135),'children':_0x408e04['t']('mcpConfig.sessionIdDescription')})]})]}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0xd0),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x97)}),_0x553871(_0x1b0230(0xee),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x18e),'children':'Authorization:'}),_0x4e65ca(_0x1b0230(0xee),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x408e04['t'](_0x1b0230(0x95))})]})]})]})]})]})]}),_0x4e65ca(_0x21a308,{'onClick':_0x45349d,'disabled':!_0xdbf037||_0x19849e,'className':_0x1b0230(0x13d),'children':_0x19849e?_0x553871(_0x1b0230(0x14f),{'className':_0x1b0230(0x11e),'children':[_0x4e65ca('span',{'children':'⟲'}),_0x408e04['t'](_0x1b0230(0x133))]}):_0x553871(_0x1b0230(0x14f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4e65ca(le,{}),_0x408e04['t']('mcpConfig.save')]})}),_0x4e65ca(_0x1b0230(0xee),{'className':_0x1b0230(0x15a),'children':_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0xda),'children':[_0x4e65ca(_0x1b0230(0x14f),{'className':_0x1b0230(0x1f7),'children':'💡'}),_0x553871(_0x1b0230(0xee),{'className':_0x1b0230(0x1d2),'children':[_0x4e65ca(_0x1b0230(0xee),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x553871('div',{'children':['•',_0x408e04['t']('mcpConfig.note1')]}),_0x553871('div',{'children':['•',_0x408e04['t'](_0x1b0230(0xac))]})]})]})})]})})]});}const x=_0x33a0d3(0x145),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x5cb117,_0x262667,_0x1adf39,_0x364108)=>{var _0x2635a3=_0x33a0d3;for(var _0x2ade0f=_0x364108>0x1?void 0x0:_0x364108?on(_0x262667,_0x1adf39):_0x262667,_0x13195b=_0x5cb117[_0x2635a3(0x156)]-0x1,_0x417115;_0x13195b>=0x0;_0x13195b--)(_0x417115=_0x5cb117[_0x13195b])&&(_0x2ade0f=_0x417115(_0x2ade0f)||_0x2ade0f);return _0x2ade0f;},g=(_0x37d291,_0x43f15c)=>(_0x1399ca,_0x2e5cf7)=>_0x43f15c(_0x1399ca,_0x2e5cf7,_0x37d291);function _0x5d6f(){var _0x33a878=['pre','API\x20密钥无效,请检查密钥是否正确','mcpStatus.disconnected','_registerComponent','0\x200\x2017\x2017','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_localStorageService','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-bg-blue-500','next','12455yVQMtj','1em','_initializeMenus','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-text-sm\x20univer-text-gray-500','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','className','none','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.apiKeyPlaceholder','univer.plus','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.networkError','get','univer-flex-shrink-0\x20univer-text-blue-500','entries','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','41176SqZoHi','mcpConfig.authorizationDescription','path','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','apply','mcpStatus.maxRetriesExceeded','MenuIcon','812330sNPOwz','univer-space-y-5','currentColor','SESSION_ID_OCCUPIED','displayName','MCP\x20Connection\x20Failed','mcpStatus.sessionOccupied','mcpConfig.configParameters','tag','mcpConfig.configStepTitle','mcpConfig.configInstructions','MCP\x20配置','_handleConfigSave','check-mark-icon','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.sessionOccupied','mcpConfig.note2','connectionStatus$','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-flex\x20univer-items-center\x20univer-gap-3','Failed\x20to\x20save\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','translate(.97)','mcpConfig.validation.apiKeyTooShort','indexOf','MCP:\x20未授权','API\x20key\x20is\x20required','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','fill','univer-flex\x20univer-items-center','assign','url(#$1','Click\x20to\x20connect\x20MCP','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.retrying','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','clipPath','_config','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.configStep2','您的\x20API\x20密钥安全存储在本地存储中','close-small-single','MAX_RETRIES_EXCEEDED','mcpConfig.connectionStatus.connected','_initializeCommands','MCP\x20Configuration','MCP_UI_PLUGIN','substring','defIds','mask','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionError.maxRetriesExceeded','启用身份验证以获得安全连接','373884ytTbzw','配置参数:','OffLineIcon','UNAUTHORIZED','univer-space-y-2','apiKey','pluginName','univer-flex\x20univer-gap-3','_mcpCoreConfig$','配置保存失败','复制以下\x20JSON\x20配置','call','registerCommand','setConfig','Configuration\x20saved\x20successfully','MCP\x20已断开','已连接','API\x20密钥不能为空','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','COMMAND','defs','_validateConfig','children','warn','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','register','MCP\x20重连中...','div','\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','label','getOwnPropertyDescriptor','toString','propertyIsEnumerable','MCP\x20连接中...','hasOwnProperty','1360759ndtqcu','_configService','mcp-config-dialog','icon','_initAutoConnect','univer-space-y-3','_loadStoredApiKey','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','CloseSmallSingle','mcpConfig.connectionStatus.retrying','colorChannel1','MCP\x20已连接','Close','mcpStatus.failed','Bearer\x20','mcpConfig.validation.apiKeyRequired','setItem','errorMessage','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','M5.21243\x2012.287L11.8791\x205.62036','_componentManager','Configuration\x20Parameters:','prototype','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_apiKey$','removeItem','启用身份验证','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','未连接','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','https://console.univer.plus','isValid','MCP:\x20Max\x20Retries\x20Exceeded','on-line-icon_clip0_910_349','最大重试次数','univer_session_id:','showStatus','mcpConfig.apiKeyHint','mcpConfig.configStep3','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-red-500','MCP\x20Disconnected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','extend','点击配置\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpServerUrl','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','会话ID','MCP:\x20超出最大重试次数','univer.ai','attrs','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','NONE','MCP\x20Client\x20Configuration','string','_commandService','Connected','show','mcpConfig.saving','MCP\x20Unknown\x20Status','univer-text-xs\x20univer-text-gray-500','concat','mcpConfig.title','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','\x20-\x20','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_connectionController','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-white','text','open','mcpConfig.configSaved','OTHERS','API\x20Key','会话\x20ID\x20已被占用,请稍后再试','mcp-ui.config','mcpConfig.apiApplyInfo.title','1522942lVaPwu','univer-text-sm\x20univer-font-medium','Error','网络连接错误,请检查您的网络连接','http://www.w3.org/2000/svg','868sMezVj','配置保存成功','_createConfigPanelComponent','span','连接失败','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','includes','_config$','mcpConfig.connectionStatus.disconnected','enableAutoConnect','length','showDeveloperTools','use','FAILED','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','配置更改将立即生效','mcpConfig.apiApplyInfo.getStarted','subscribeConfigValue$','Connecting...','univer-text-gray-400','has','CONNECTED','MCP\x20Connected','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-min-w-0\x20univer-flex-1','_loading$','RETRYING','CheckMarkIcon','univerjs-icon\x20univerjs-icon-','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','https://console.univer.ai','mergeMenu','Enable\x20Authentication','配置\x20MCP\x20使用\x20AI\x20操作电子表格','sessionId$','current','__setCustomHeaders','<API_KEY>','mcpStatus.unauthorized','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','连接中...','forEach','registerComponent','mcp-ui.command.openConfigPanel','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','超出最大重试次数,请稍后再试','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex-shrink-0\x20univer-text-red-500','mcpStatus.clickToConfigure','mcpConfig.connectionStatus.connecting','subscribe','将配置添加到您的\x20MCP\x20客户端设置文件中','Saving...','mcpConfig.configError','symbol','add','M0\x200H16V16H0z','svg','xlink:href','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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','CONNECTING','重启您的\x20MCP\x20客户端以使配置生效','map','M5.21243\x205.62036L11.8791\x2012.287','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','close','_initConfigSync','Enable\x20authentication\x20for\x20secure\x20connections','_dialogService','Enter\x20your\x20API\x20key','value','_menuManagerService','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-flex-1','MCP:\x20会话\x20ID\x20已被占用','_injector','保存配置','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Univer\x20AI\x20Console','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','javascript:void(0)','将以下配置添加到您的\x20MCP\x20客户端设置中:','bottom','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','round','validateApiKey','error','push','defineProperty','OnLineIcon','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','DISCONNECTED','_blank','_uiPartsService','getConfig','几秒钟内获取您的\x20API\x20密钥','univer-bg-gray-500','url(#on-line-icon_clip0_910_349)','help-single','univer-bg-red-500','配置步骤:','white','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','evenodd','mcpConfig.connectionStatus.failed','_mcpConnectionController','trim','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-green-500','disposeWithMe','univer-text-yellow-500','connectionError$','mcp.apiKey','NETWORK_ERROR','Retrying...','点击连接\x20MCP','MCP\x20Retrying...','What\x20is\x20API\x20Key?','idSuffix','_logService','0\x200\x2016\x2016','_localeService','_messageService','mcpStatus.connecting','MCP:\x20网络错误','225PdJZuv','mcpConfig.apiApplyInfo.univerAiLabel','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','getItem','MCPConfigPanel','noopener\x20noreferrer','728226zHDfka','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.apiKey','API\x20密钥长度至少需要\x2010\x20位','564UGhEYq','function','showConfigPanel','MCP\x20客户端配置','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-flex-wrap\x20univer-gap-2','off-line-icon_clip0_910_343','on-line-icon','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','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'];_0x5d6f=function(){return _0x33a878;};return _0x5d6f();}const j=_0x33a0d3(0x1be),U=_0x33a0d3(0xf8);let I=class extends _0xc31102{constructor(_0x4d1fa8,_0x13f827,_0x530a21,_0x344ce6,_0x463e4d,_0x483209,_0x5b2129,_0x1c449d,_0x207528,_0x4bc61e){var _0x1d8c8c=_0x33a0d3;super(),S(this,_0x1d8c8c(0x165),new _0x59015f(!0x1)),S(this,_0x1d8c8c(0xdb),new _0x59015f({})),S(this,_0x1d8c8c(0x153),new _0x59015f({})),S(this,_0x1d8c8c(0x10f),new _0x59015f('')),S(this,_0x1d8c8c(0xa8),async _0x409ac7=>{var _0x15a052=_0x1d8c8c,_0x54c26a,_0x3ce9b3;this[_0x15a052(0x165)][_0x15a052(0x1e8)](!0x0);try{const _0x2d5906=await this[_0x15a052(0xe8)](_0x409ac7);if(!_0x2d5906[_0x15a052(0x116)]){this['_messageService'][_0x15a052(0x132)]({'type':_0x4edfa6[_0x15a052(0x149)],'content':_0x2d5906[_0x15a052(0x108)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x409ac7[_0x15a052(0xd8)]?await this[_0x15a052(0x1e5)][_0x15a052(0x107)](j,_0x409ac7['apiKey'][_0x15a052(0x1b8)]()):await this['_localStorageService'][_0x15a052(0x110)](j),this[_0x15a052(0x10f)]['next'](((_0x54c26a=_0x409ac7[_0x15a052(0xd8)])==null?void 0x0:_0x54c26a[_0x15a052(0x1b8)]())||''),this[_0x15a052(0x1b7)][_0x15a052(0x170)]({'Authorization':'Bearer\x20'+((_0x3ce9b3=_0x409ac7[_0x15a052(0xd8)])==null?void 0x0:_0x3ce9b3[_0x15a052(0x1b8)]())}),this[_0x15a052(0x1c8)][_0x15a052(0x132)]({'type':_0x4edfa6['Success'],'content':this[_0x15a052(0x1c7)]['t'](_0x15a052(0x141))}),setTimeout(()=>{var _0x130d65=_0x15a052;this[_0x130d65(0x192)][_0x130d65(0x18f)](U);},0x320);}catch(_0xe0f99f){this[_0x15a052(0x1c5)]['error'](_0x15a052(0xc1),_0xe0f99f),this[_0x15a052(0x1c8)]['show']({'type':_0x4edfa6[_0x15a052(0x149)],'content':this[_0x15a052(0x1c7)]['t'](_0x15a052(0x182))});}finally{this[_0x15a052(0x165)][_0x15a052(0x1e8)](!0x1);}}),(this[_0x1d8c8c(0x199)]=_0x4d1fa8,this[_0x1d8c8c(0x1ab)]=_0x13f827,this[_0x1d8c8c(0xf7)]=_0x530a21,this[_0x1d8c8c(0x1e5)]=_0x344ce6,this[_0x1d8c8c(0x192)]=_0x463e4d,this[_0x1d8c8c(0x1c8)]=_0x483209,this[_0x1d8c8c(0x10b)]=_0x5b2129,this['_localeService']=_0x1c449d,this[_0x1d8c8c(0x1c5)]=_0x207528,this[_0x1d8c8c(0x1b7)]=_0x4bc61e,this[_0x1d8c8c(0x190)](),this[_0x1d8c8c(0xfc)](),this[_0x1d8c8c(0x1e2)]());}['showConfigPanel'](){var _0xade073=_0x33a0d3;const _0x73234c=this[_0xade073(0xf7)][_0xade073(0x1ac)](x);_0x73234c!=null&&_0x73234c[_0xade073(0x157)]&&this['_dialogService'][_0xade073(0x140)]({'id':U,'title':{'title':this[_0xade073(0x1c7)]['t'](_0xade073(0x137))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x398cb7=_0xade073;this['_dialogService'][_0x398cb7(0x18f)](U);}});}['getCurrentConfig'](){var _0x2607ba=_0x33a0d3;return this['_mcpCoreConfig$'][_0x2607ba(0x194)];}[_0x33a0d3(0x1e2)](){var _0x2bbd67=_0x33a0d3;this[_0x2bbd67(0x1bb)](this[_0x2bbd67(0x10b)][_0x2bbd67(0xec)](_0x2bbd67(0x1cf),this[_0x2bbd67(0x14e)]()));}['_createConfigPanelComponent'](){var _0x455940=_0x33a0d3;return _0x23b25d(()=>{var _0x1b41cf=_0x1a94,_0x35887c,_0x2426b7,_0x4ef34c;return _0x4e65ca(tn,{'config':this[_0x1b41cf(0x153)][_0x1b41cf(0x194)],'mcpCoreConfig':this[_0x1b41cf(0xdb)]['value'],'currentApiKey$':this[_0x1b41cf(0x10f)],'onSave':this[_0x1b41cf(0xa8)],'loading':this[_0x1b41cf(0x165)]['value'],'connectionStatus$':(_0x35887c=this[_0x1b41cf(0x1b7)])==null?void 0x0:_0x35887c[_0x1b41cf(0xad)],'connectionError$':(_0x2426b7=this[_0x1b41cf(0x1b7)])==null?void 0x0:_0x2426b7[_0x1b41cf(0x1bd)],'currentSessionId$':(_0x4ef34c=this[_0x1b41cf(0x1b7)])==null?void 0x0:_0x4ef34c[_0x1b41cf(0x16e)]});},this[_0x455940(0x199)]);}[_0x33a0d3(0x190)](){var _0x570609=_0x33a0d3;this[_0x570609(0x1bb)](this[_0x570609(0xf7)][_0x570609(0x15d)](_0x48170c)['subscribe'](_0x254747=>{var _0x56d899=_0x570609;this[_0x56d899(0xdb)][_0x56d899(0x1e8)](_0x254747||{});}));const _0x1d543a=this[_0x570609(0xf7)][_0x570609(0x1ac)](_0x48170c);this[_0x570609(0xdb)][_0x570609(0x1e8)](_0x1d543a||{}),this[_0x570609(0x1bb)](this[_0x570609(0xf7)][_0x570609(0x15d)](x)[_0x570609(0x17f)](_0x7c6e0a=>{var _0x2c9710=_0x570609;this[_0x2c9710(0x153)]['next'](_0x7c6e0a||{});}));const _0x1592c7=this[_0x570609(0xf7)]['getConfig'](x);this[_0x570609(0x153)][_0x570609(0x1e8)](_0x1592c7||{});}async[_0x33a0d3(0xfc)](){var _0x4bb4e6=_0x33a0d3;const _0x240489=this[_0x4bb4e6(0xf7)][_0x4bb4e6(0x1ac)](x);if(!(_0x240489!=null&&_0x240489[_0x4bb4e6(0x157)]))return;const _0x18541b=await this[_0x4bb4e6(0x1e5)][_0x4bb4e6(0x1ce)](j);_0x18541b&&(this[_0x4bb4e6(0x1b7)][_0x4bb4e6(0x170)]({'Authorization':_0x4bb4e6(0x105)+_0x18541b}),this[_0x4bb4e6(0x10f)][_0x4bb4e6(0x1e8)](_0x18541b));}async['_validateConfig'](_0x2f93b0){var _0x314b91=_0x33a0d3;if(!_0x2f93b0[_0x314b91(0xd8)]||_0x2f93b0[_0x314b91(0xd8)][_0x314b91(0x1b8)]()[_0x314b91(0x156)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x314b91(0x106))};if(_0x2f93b0[_0x314b91(0xd8)]['trim']()[_0x314b91(0x156)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x314b91(0xb3))};try{const _0x382a2f=await this[_0x314b91(0x199)][_0x314b91(0x1f6)](_0x34c399)[_0x314b91(0x1a3)](_0x2f93b0[_0x314b91(0xd8)][_0x314b91(0x1b8)]());return _0x382a2f['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x382a2f[_0x314b91(0x1a4)]||this[_0x314b91(0x1c7)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x5b87b3){return console[_0x314b91(0xea)](_0x314b91(0x1cd),_0x5b87b3),{'isValid':!0x0};}}};I=sn([g(0x0,_0x2ba808(_0x1d6cae)),g(0x1,_0x161f94),g(0x2,_0x24beb8),g(0x3,_0x486b15),g(0x4,_0x3441a5),g(0x5,_0xfc5e8d),g(0x6,_0x2ba808(_0x3f7fe0)),g(0x7,_0x2ba808(_0x309248)),g(0x8,_0x3f7abf),g(0x9,_0x2ba808(_0x34c399))],I);const V={'id':_0x33a0d3(0x178),'type':_0x34a391[_0x33a0d3(0xe6)],'handler':async(_0x267f11,_0x139abc)=>(_0x267f11[_0x33a0d3(0x1f6)](I)['showConfigPanel'](),!0x0)};function _0x1a94(_0x5f51f9,_0xda556d){var _0x5d6fcf=_0x5d6f();return _0x1a94=function(_0x1a94a8,_0x3c23de){_0x1a94a8=_0x1a94a8-0x92;var _0x32de80=_0x5d6fcf[_0x1a94a8];return _0x32de80;},_0x1a94(_0x5f51f9,_0xda556d);}function pe(_0x56c263,_0x174cae){var _0x781b7a=_0x33a0d3;switch(_0x56c263){case _0x39244f[_0x781b7a(0x1a9)]:return _0x781b7a(0x1e1);case _0x39244f[_0x781b7a(0x18a)]:return _0x781b7a(0x1c9);case _0x39244f['CONNECTED']:return'mcpStatus.connected';case _0x39244f[_0x781b7a(0x159)]:switch(_0x174cae){case _0x46ad60[_0x781b7a(0xd6)]:return _0x781b7a(0x172);case _0x46ad60[_0x781b7a(0x9f)]:return _0x781b7a(0xa2);case _0x46ad60[_0x781b7a(0x1bf)]:return _0x781b7a(0x1f5);case _0x46ad60[_0x781b7a(0xc8)]:return _0x781b7a(0x9a);default:return _0x781b7a(0x104);}case _0x39244f[_0x781b7a(0x166)]:return _0x781b7a(0xc0);default:return'mcpStatus.unknown';}}function cn(_0x527705,_0x37f021,_0x345081,_0xd5b0f0=!0x0){var _0x4ea50d=_0x33a0d3;const _0x795f99=pe(_0x527705,_0x37f021),_0x465dff=_0x345081['t'](_0x795f99);return _0xd5b0f0?_0x527705===_0x39244f[_0x4ea50d(0x1a9)]&&_0x37f021===_0x46ad60[_0x4ea50d(0xd6)]?_0x465dff+'\x20-\x20'+_0x345081['t'](_0x4ea50d(0x17d)):_0x527705===_0x39244f[_0x4ea50d(0x161)]?''+_0x465dff:_0x527705===_0x39244f[_0x4ea50d(0x1a9)]||_0x527705===_0x39244f['FAILED']?_0x465dff+_0x4ea50d(0x139)+_0x345081['t']('mcpStatus.clickToConnect'):_0x465dff:_0x465dff;}function an(_0x34b6a2){var _0x5ea2f4=_0x33a0d3;switch(_0x34b6a2){case _0x39244f[_0x5ea2f4(0x161)]:return'univer-text-green-500';case _0x39244f[_0x5ea2f4(0x18a)]:case _0x39244f[_0x5ea2f4(0x166)]:return _0x5ea2f4(0x1bc);case _0x39244f[_0x5ea2f4(0x159)]:case _0x39244f[_0x5ea2f4(0x1a9)]:return _0x5ea2f4(0x11f);default:return'univer-text-gray-500';}}function un(_0x390f10){var _0x1cec8e=_0x33a0d3;const {status$:_0x41cb59,error$:_0x319db1,onConfigure:_0x3c521f,showClickable:_0x4e8b81=!0x0}=_0x390f10,_0x372d02=_0x3ac885(_0x41cb59,_0x39244f[_0x1cec8e(0x1a9)]),_0x168022=_0x3ac885(_0x319db1,_0x46ad60[_0x1cec8e(0x12d)]),_0x4959f4=_0x3bdb81(_0x309248),_0x346c3c=_0x372d02===_0x39244f['CONNECTED'];_0x372d02===_0x39244f[_0x1cec8e(0x18a)]||_0x39244f['RETRYING'];const _0xfa3359=_0x4959f4['t'](pe(_0x372d02,_0x168022)),_0xd5958a=cn(_0x372d02,_0x168022,_0x4959f4,_0x4e8b81),_0x3a063f=an(_0x372d02),_0x3a148f=_0x346c3c?_0x4e65ca(ge,{}):_0x4e65ca(fe,{}),_0x2132e1=_0x47054b(()=>{_0x4e8b81&&_0x3c521f&&_0x3c521f();},[_0x4e8b81,_0x3c521f]);function _0x4ef078(){var _0x3ec0c5=_0x1cec8e;return _0x553871(_0x3ec0c5(0xee),{'className':_0xc4f7d9(_0x3ec0c5(0xba),_0x4e8b81&&_0x3c521f&&_0x3ec0c5(0xef)),'onClick':_0x4e8b81&&_0x3c521f?_0x2132e1:void 0x0,'children':[_0x4e65ca(_0x3ec0c5(0xee),{'className':_0xc4f7d9(_0x3ec0c5(0x17b),_0x3a063f),'children':_0x3a148f}),_0x4e65ca(_0x3ec0c5(0xee),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xfa3359})]});}return _0x4e65ca(_0x3cc445,{'title':_0xd5958a,'placement':_0x1cec8e(0x1a0),'children':_0x4ef078()});}var ln=Object[_0x33a0d3(0xf1)],vn=(_0x40ee9f,_0x292f32,_0x322e29,_0x3b94ff)=>{var _0x9d5844=_0x33a0d3;for(var _0xc20c53=_0x3b94ff>0x1?void 0x0:_0x3b94ff?ln(_0x292f32,_0x322e29):_0x292f32,_0x2ad560=_0x40ee9f[_0x9d5844(0x156)]-0x1,_0x4082d8;_0x2ad560>=0x0;_0x2ad560--)(_0x4082d8=_0x40ee9f[_0x2ad560])&&(_0xc20c53=_0x4082d8(_0xc20c53)||_0xc20c53);return _0xc20c53;},A=(_0x2d7b77,_0x42973e)=>(_0x4f10b3,_0x42fd8f)=>_0x42973e(_0x4f10b3,_0x42fd8f,_0x2d7b77);let O=class extends _0xc31102{constructor(_0x481a93,_0x38841b,_0x31d943,_0x3dc29b){var _0x3ed804=_0x33a0d3;super(),this[_0x3ed804(0x199)]=_0x481a93,this[_0x3ed804(0x13c)]=_0x38841b,this[_0x3ed804(0x1ab)]=_0x31d943,this['_configService']=_0x3dc29b,this[_0x3ed804(0xfa)](),this['_initStatusComponent']();}[_0x33a0d3(0xfa)](){var _0x3432e9=_0x33a0d3;const _0x131f18=this[_0x3432e9(0xf7)]['getConfig'](x);_0x131f18!=null&&_0x131f18[_0x3432e9(0x157)]&&(this[_0x3432e9(0x13c)][_0x3432e9(0x155)]=!0x1);}['_initStatusComponent'](){var _0x159ba1=_0x33a0d3;const _0x1a17b8=this[_0x159ba1(0xf7)][_0x159ba1(0x1ac)](x);(_0x1a17b8==null?void 0x0:_0x1a17b8[_0x159ba1(0x11b)])!==!0x1&&this[_0x159ba1(0x1bb)](this[_0x159ba1(0x1ab)][_0x159ba1(0x177)](_0x2b8d83['HEADER_MENU'],()=>{var _0x463d1e=_0x159ba1,_0x283c98;return _0x23b25d(dn({'status$':this[_0x463d1e(0x13c)]['connectionStatus$'],'error$':this[_0x463d1e(0x13c)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x283c98=_0x1a17b8==null?void 0x0:_0x1a17b8[_0x463d1e(0x157)])!=null?_0x283c98:!0x1}),this['_injector']);}));}['_handleConfigure'](){var _0xfd1202=_0x33a0d3;this[_0xfd1202(0x199)]['get'](I)[_0xfd1202(0x1d7)]();}};O=vn([A(0x0,_0x2ba808(_0x1d6cae)),A(0x1,_0x2ba808(_0x34c399)),A(0x2,_0x161f94),A(0x3,_0x24beb8)],O);function dn(_0x421b9e){const {status$:_0x5bdb90,error$:_0x4a12ee,onConfigure:_0x32499c,showClickable:_0x30acd3}=_0x421b9e;return function(){return _0x4e65ca(un,{'status$':_0x5bdb90,'error$':_0x4a12ee,'onConfigure':_0x32499c,'showClickable':_0x30acd3});};}function fn(_0x1cfadc){var _0x1b3b69=_0x33a0d3;return{'id':V['id'],'type':_0x3f21c8['BUTTON'],'icon':_0x1b3b69(0x9b),'title':_0x1b3b69(0x137),'tooltip':_0x1b3b69(0x137)};}const gn={[_0x34ec38[_0x33a0d3(0x142)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object['getOwnPropertyDescriptor'],hn=(_0x4459ce,_0x6a07fe,_0x41ebfa,_0x1b2529)=>{var _0x52c2b2=_0x33a0d3;for(var _0x2439be=_0x1b2529>0x1?void 0x0:_0x1b2529?pn(_0x6a07fe,_0x41ebfa):_0x6a07fe,_0x239891=_0x4459ce[_0x52c2b2(0x156)]-0x1,_0x1c35b8;_0x239891>=0x0;_0x239891--)(_0x1c35b8=_0x4459ce[_0x239891])&&(_0x2439be=_0x1c35b8(_0x2439be)||_0x2439be);return _0x2439be;},te=(_0xd4932b,_0x3b061f)=>(_0x4f5a4a,_0x48b111)=>_0x3b061f(_0x4f5a4a,_0x48b111,_0xd4932b);let k=class extends _0xc31102{constructor(_0x50a705,_0x5503d9){var _0xab8a0d=_0x33a0d3;super(),this[_0xab8a0d(0x130)]=_0x50a705,this['_menuManagerService']=_0x5503d9,this[_0xab8a0d(0xca)](),this[_0xab8a0d(0x1eb)]();}[_0x33a0d3(0xca)](){var _0x3d2367=_0x33a0d3;[V][_0x3d2367(0x176)](_0x382778=>{var _0x2b4965=_0x3d2367;this[_0x2b4965(0x1bb)](this[_0x2b4965(0x130)][_0x2b4965(0xdf)](_0x382778));});}[_0x33a0d3(0x1eb)](){var _0x22605b=_0x33a0d3;this[_0x22605b(0x195)][_0x22605b(0x16b)](gn);}};k=hn([te(0x0,_0x1ebad4),te(0x1,_0x1f96a2)],k);const On={'mcpStatus':{'disconnected':_0x33a0d3(0x120),'connecting':_0x33a0d3(0xfd),'connected':_0x33a0d3(0x162),'failed':_0x33a0d3(0xa1),'retrying':_0x33a0d3(0x1c2),'unknown':_0x33a0d3(0x134),'unauthorized':_0x33a0d3(0xbe),'sessionOccupied':_0x33a0d3(0x13a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x33a0d3(0x117),'clickToConnect':_0x33a0d3(0xbd),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x33a0d3(0xcb),'description':_0x33a0d3(0x1f4),'apiKey':_0x33a0d3(0x143),'apiKeyPlaceholder':_0x33a0d3(0x193),'apiKeyHint':_0x33a0d3(0x188),'enableAuth':_0x33a0d3(0x16c),'enableAuthHint':_0x33a0d3(0x191),'connectionInfo':_0x33a0d3(0x12e),'mcpClientConfig':_0x33a0d3(0x12e),'configInstructions':_0x33a0d3(0x1a8),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x33a0d3(0x10e),'configStep3':_0x33a0d3(0xfe),'sessionId':'Session\x20ID','sessionIdDescription':_0x33a0d3(0x13b),'authorizationDescription':_0x33a0d3(0xb1),'configParameters':_0x33a0d3(0x10c),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x33a0d3(0x181),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x33a0d3(0xe5),'configSaved':_0x33a0d3(0xe1),'configError':_0x33a0d3(0xb0),'apiApplyInfo':{'title':_0x33a0d3(0x1c3),'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':_0x33a0d3(0x19c),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x33a0d3(0xb6),'apiKeyTooShort':_0x33a0d3(0xbf),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x33a0d3(0x151)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x33a0d3(0x15e),'connected':_0x33a0d3(0x131),'failed':'Connection\x20Failed','retrying':_0x33a0d3(0x1c0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x33a0d3(0x138),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},kn={'mcpStatus':{'disconnected':_0x33a0d3(0xe2),'connecting':_0x33a0d3(0xf4),'connected':_0x33a0d3(0x102),'failed':'MCP\x20连接失败','retrying':_0x33a0d3(0xed),'unknown':'MCP\x20状态未知','unauthorized':_0x33a0d3(0xb5),'sessionOccupied':_0x33a0d3(0x198),'networkError':_0x33a0d3(0x1ca),'maxRetriesExceeded':_0x33a0d3(0x129),'clickToConnect':_0x33a0d3(0x1c1),'clickToConfigure':_0x33a0d3(0x123)},'mcpConfig':{'title':_0x33a0d3(0xa7),'description':_0x33a0d3(0x16d),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x33a0d3(0x1d9),'enableAuth':_0x33a0d3(0x111),'enableAuthHint':_0x33a0d3(0xd2),'connectionInfo':_0x33a0d3(0x1d8),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x33a0d3(0x19f),'configStepTitle':_0x33a0d3(0x1b2),'configStep1':_0x33a0d3(0xdd),'configStep2':_0x33a0d3(0x180),'configStep3':_0x33a0d3(0x18b),'sessionId':_0x33a0d3(0x128),'sessionIdDescription':_0x33a0d3(0x174),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x33a0d3(0xd4),'maxRetries':_0x33a0d3(0x119),'save':_0x33a0d3(0x19a),'saving':'保存中...','note1':_0x33a0d3(0x15b),'note2':_0x33a0d3(0xc6),'configSaved':_0x33a0d3(0x14d),'configError':_0x33a0d3(0xdc),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x33a0d3(0xaa),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x33a0d3(0x1ad)},'validation':{'apiKeyRequired':_0x33a0d3(0xe4),'apiKeyTooShort':_0x33a0d3(0x1d4),'invalidConfig':'配置无效','invalidApiKey':_0x33a0d3(0x1e0)},'connectionStatus':{'disconnected':_0x33a0d3(0x113),'connecting':_0x33a0d3(0x175),'connected':_0x33a0d3(0xe3),'failed':_0x33a0d3(0x150),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x33a0d3(0x144),'networkError':_0x33a0d3(0x14a),'maxRetriesExceeded':_0x33a0d3(0x17a)}}};var mn=Object[_0x33a0d3(0x1a6)],Cn=Object[_0x33a0d3(0xf1)],yn=(_0x3df099,_0x3507d4,_0x11cb91)=>_0x3507d4 in _0x3df099?mn(_0x3df099,_0x3507d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11cb91}):_0x3df099[_0x3507d4]=_0x11cb91,_n=(_0x355aef,_0x15d1b5,_0x524b4f,_0x315325)=>{var _0x231128=_0x33a0d3;for(var _0x1710cf=_0x315325>0x1?void 0x0:_0x315325?Cn(_0x15d1b5,_0x524b4f):_0x15d1b5,_0x43008a=_0x355aef[_0x231128(0x156)]-0x1,_0x43ff91;_0x43008a>=0x0;_0x43008a--)(_0x43ff91=_0x355aef[_0x43008a])&&(_0x1710cf=_0x43ff91(_0x1710cf)||_0x1710cf);return _0x1710cf;},E=(_0x3b3aef,_0x2e99a6)=>(_0x32d397,_0x54503a)=>_0x2e99a6(_0x32d397,_0x54503a,_0x3b3aef),xn=(_0x5e9fc7,_0xe90388,_0x577e67)=>yn(_0x5e9fc7,_0xe90388+'',_0x577e67);let L=class extends _0x128244{constructor(_0x4fa23d=re,_0x2b4417,_0xff0e7d,_0x58c8b0,_0x3a4037,_0x312ec9){var _0x57ec1c=_0x33a0d3;super(),this[_0x57ec1c(0xc3)]=_0x4fa23d,this[_0x57ec1c(0x199)]=_0x2b4417,this[_0x57ec1c(0xf7)]=_0xff0e7d,this[_0x57ec1c(0x1ab)]=_0x58c8b0,this[_0x57ec1c(0x1e5)]=_0x3a4037,this[_0x57ec1c(0x1c7)]=_0x312ec9;const {..._0x4dab9b}=_0x4b5942({},re,this[_0x57ec1c(0xc3)]);this[_0x57ec1c(0xf7)][_0x57ec1c(0xe0)](x,_0x4dab9b);}async['onStarting'](){var _0x584f30=_0x33a0d3;const _0x831b8c=[[O],[I],[k]];this[_0x584f30(0x199)][_0x584f30(0x160)](_0x3466dc)||_0x831b8c[_0x584f30(0x1a5)]([_0x3466dc,{'useClass':_0x1096bb}]),_0x831b8c[_0x584f30(0x176)](_0x514455=>this[_0x584f30(0x199)][_0x584f30(0x184)](_0x514455)),this[_0x584f30(0x199)][_0x584f30(0x1f6)](O),this['_injector'][_0x584f30(0x1f6)](I),this[_0x584f30(0x199)][_0x584f30(0x1f6)](k);}};xn(L,_0x33a0d3(0xd9),_0x33a0d3(0xcc)),L=_n([_0x120479(_0x424896),E(0x1,_0x2ba808(_0x1d6cae)),E(0x2,_0x24beb8),E(0x3,_0x161f94),E(0x4,_0x486b15),E(0x5,_0x2ba808(_0x309248))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ var _0x6bbf25=_0x3ed9;(function(_0x1fb7a3,_0x528a27){var _0x1769bf=_0x3ed9,_0x524ff3=_0x1fb7a3();while(!![]){try{var _0x311e80=-parseInt(_0x1769bf(0x238))/0x1*(parseInt(_0x1769bf(0x266))/0x2)+-parseInt(_0x1769bf(0x2fe))/0x3*(-parseInt(_0x1769bf(0x1eb))/0x4)+-parseInt(_0x1769bf(0x1f8))/0x5+-parseInt(_0x1769bf(0x2f5))/0x6*(parseInt(_0x1769bf(0x2d6))/0x7)+parseInt(_0x1769bf(0x1ed))/0x8+-parseInt(_0x1769bf(0x200))/0x9+parseInt(_0x1769bf(0x29c))/0xa;if(_0x311e80===_0x528a27)break;else _0x524ff3['push'](_0x524ff3['shift']());}catch(_0x44cb8d){_0x524ff3['push'](_0x524ff3['shift']());}}}(_0x4830,0x8bc43));var we=Object['defineProperty'],Ee=(_0x487b68,_0x4f5d40,_0x4cbb43)=>_0x4f5d40 in _0x487b68?we(_0x487b68,_0x4f5d40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cbb43}):_0x487b68[_0x4f5d40]=_0x4cbb43,S=(_0x22dc66,_0x1fb0ff,_0x249ee9)=>Ee(_0x22dc66,typeof _0x1fb0ff!=_0x6bbf25(0x1f9)?_0x1fb0ff+'':_0x1fb0ff,_0x249ee9);import{LocaleService as _0x284497,Inject as _0x4d025e,Injector as _0x5a27ce,IConfigService as _0x4e1f02,ILocalStorageService as _0x433a37,ILogService as _0x5ca8a5,Disposable as _0x39aa33,CommandType as _0x4705af,ICommandService as _0x40f98b,DependentOn as _0x24faf9,Plugin as _0x5de8df,merge as _0x2f1dad}from'@univerjs/core';function _0x4830(){var _0x3fd6e0=['mcpConfig.configInstructions','indexOf','会话ID','点击配置\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','evenodd','mcpConfig.connectionError.sessionOccupied','mcpConfig.sessionIdDescription','7273jBwsmJ','mcpConfig.validation.invalidConfig','mcpConfig.configStep2','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-sm\x20univer-text-gray-500','tag','mcpStatus.failed','_uiPartsService','univer-space-y-3','Invalid\x20configuration','univer-bg-red-500','get','配置保存失败','Enter\x20your\x20API\x20key','icon','connectionStatus$','register','Connection\x20Failed','close-small-single','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-text-yellow-500','UniverIcon','univer-text-blue-600','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','M0\x200H16V16H0z','mcpStatus.sessionOccupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.connectionStatus.disconnected','_messageService','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','1818lpfEyO','What\x20is\x20API\x20Key?','mcpConfig.connectionStatus.retrying','defs','Failed\x20to\x20save\x20configuration','path','showDeveloperTools','MCP\x20Unknown\x20Status','_loadStoredApiKey','3gpDmZZ','配置步骤:','OTHERS','Univer\x20AI\x20控制台','round','validateApiKey','_initializeMenus','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.configSaved','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','MCP:\x20未授权','univer-flex\x20univer-items-start\x20univer-gap-3','setItem','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mask','colorChannel1','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_menuManagerService','_configService','mcpStatus.disconnected','Max\x20Retries','Close','mcp.apiKey','univer.plus','mcpConfig.configStep3','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','registerComponent','mcpConfig.configError','Click\x20to\x20configure\x20MCP','javascript:void(0)','univer-text-xs\x20univer-text-gray-500','mcp-ui.config','_mcpCoreConfig$','Configuration\x20saved\x20successfully','registerCommand','0\x200\x2017\x2017','MCP:\x20网络错误','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','保存配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20密钥无效,请检查密钥是否正确','启用身份验证','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP\x20客户端配置','MCP\x20连接中...','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','CloseSmallSingle','__setCustomHeaders','url(#off-line-icon_clip0_910_343)','MCP:\x20Max\x20Retries\x20Exceeded','bottom','on-line-icon_clip0_910_349','mcpConfig.connectionStatus.failed','help-single','MCP\x20Retrying...','MCP\x20重连中...','xlink:href','clipPath','mcpConfig.connectionError.maxRetriesExceeded','error','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-green-500','close','substring','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mr-2\x20univer-flex\x20univer-text-xl','配置保存成功','_componentManager','Error','1em','entries','http://www.w3.org/2000/svg','Disconnected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','showConfigPanel','value','1592148yDYXBL','API\x20密钥','3946912CoXLjU','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','call','NONE','连接中...','div','Session\x20ID','length','MenuIcon','Bearer\x20','RETRYING','695780DstDIw','symbol','displayName','Connecting...','mcpConfig.connectionInfo','_blank','https://console.univer.plus','fill','1874529PcwknV','mcpStatus.clickToConfigure','mergeMenu','SESSION_ID_OCCUPIED','mcpStatus.clickToConnect','mcpStatus.unknown','_logService','mcpStatus.maxRetriesExceeded','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_handleConfigSave','mcpConfig.connectionStatus.connected','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcp-ui.command.openConfigPanel','subscribeConfigValue$','权限验证失败,请检查您的\x20API\x20密钥','_createConfigPanelComponent','_apiKey$','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','Enable\x20Authentication','pluginName','MCP\x20Disconnected','OnLineIcon','translate(.97)','您的\x20API\x20密钥安全存储在本地存储中','univer.ai','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','启用身份验证以获得安全连接','mcpConfig.apiApplyInfo.univerAiLabel','Connected','has','isValid','currentColor','MCP\x20配置','_dialogService','univer-flex-1','Retrying...','\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','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-items-center\x20univer-gap-3','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Copy\x20the\x20JSON\x20configuration\x20below','MAX_RETRIES_EXCEEDED','mcpStatus.networkError','mcpConfig.title','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpStatus.connected','warn','MCPConfigPanel','setConfig','MCP\x20Connecting...','univer-text-sm\x20univer-font-medium','0\x200\x2016\x2016','API\x20key\x20is\x20required','已连接','25wnRsji','univer-flex\x20univer-items-center\x20univer-gap-2','_mcpConnectionController','MCP_UI_PLUGIN','hasOwnProperty','univer-text-white','CONNECTED','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','BUTTON','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','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20已断开','_localStorageService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_injector','propertyIsEnumerable','超出最大重试次数,请稍后再试','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','MCP:\x20Unauthorized','children','mcpConfig.apiKey','svg','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','extend','open','_connectionController','push','none','getItem','FAILED','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','onStarting','_initStatusComponent','trim','replace','_config','next','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-green-500','Success','mcpConfig.note1','assign','DISCONNECTED','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_initAutoConnect','60396pZefKP','use','prototype','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center','CONNECTING','mcpConfig.authorizationDescription','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','concat','https://console.univer.ai','span','univer-text-gray-500','_loading$','apiKey','apply','idSuffix','showStatus','url(#on-line-icon_clip0_910_349)','保存中...','配置参数:','includes','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP\x20连接失败','Configuration\x20Steps:','几秒钟内获取您的\x20API\x20密钥','MCP\x20Connected','_handleConfigure','MCP:\x20超出最大重试次数','mcpConfig.apiApplyInfo.description','Enable\x20authentication\x20for\x20secure\x20connections','mcp-config-dialog','_validateConfig','url(#$1','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiApplyInfo.title','removeItem','mcpServerUrl','_localeService','getConfig','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','map','mcpConfig.saving','Saving...','MCP:\x20会话\x20ID\x20已被占用','pre','univer-bg-gray-500','univer-space-y-4','defIds','univer-text-gray-400','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_commandService','mcpConfig.validation.apiKeyRequired','10982860jEKqtf','mcpConfig.configParameters','univer-space-y-2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','\x20-\x20','show','UNAUTHORIZED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','配置无效','mcpStatus.connecting','current','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20密钥不能为空','string','univer_session_id:','mcpConfig.configStep1','MCP\x20Configuration','mcpConfig.connectionError.networkError','univer-flex\x20univer-items-start\x20univer-gap-2','<API_KEY>','Click\x20to\x20connect\x20MCP','_initializeCommands','mcpConfig.configStepTitle','text','forEach','className','connectionError$','white','disposeWithMe','MCP\x20Client\x20Configuration','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','getOwnPropertySymbols','univerjs-icon\x20univerjs-icon-','enableAutoConnect','mcpConfig.connectionStatus.connecting','univer-text-red-500','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-min-w-0\x20univer-flex-1','getOwnPropertyDescriptor','noopener\x20noreferrer','最大重试次数','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','attrs','HelpSingle','label','_config$','function','连接失败'];_0x4830=function(){return _0x3fd6e0;};return _0x4830();}import{jsxs as _0x2d894b,jsx as _0x425d62}from'react/jsx-runtime';import{MCPConnectionStatus as _0x523148,MCPConnectionError as _0xc52ba5,MCPConnectionController as _0x2171de,MCP_PLUGIN_CONFIG_KEY as _0x309bb1,UniverMCPPlugin as _0x3ef5b4}from'@univerjs-pro/mcp';import{Input as _0x4de878,Button as _0x51105a,MessageType as _0x24fd02,Tooltip as _0x49cca2,clsx as _0x2a2431}from'@univerjs/design';import{useDependency as _0x25ed8b,useObservable as _0x4a9727,IUIPartsService as _0x3b888b,IDialogService as _0x597781,IMessageService as _0x3ed138,ComponentManager as _0x5c1940,connectInjector as _0x49fe7d,BuiltInUIPart as _0x277f90,MenuItemType as _0x5ed2a3,RibbonStartGroup as _0x1efcb9,IMenuManagerService as _0x185272}from'@univerjs/ui';import{BehaviorSubject as _0x50324c}from'rxjs';import{forwardRef as _0x11fd9a,useRef as _0x1b5b92,createElement as _0x165f6f,useState as _0x34fbfa,useCallback as _0x8c9d31}from'react';import{ISocketService as _0x26a59c,WebSocketService as _0x5d5f85}from'@univerjs/network';var f=function(){var _0x586cef=_0x6bbf25;return f=Object[_0x586cef(0x262)]||function(_0xc83ed5){var _0xfc460d=_0x586cef;for(var _0x407faa,_0x3317d4=0x1,_0x5cddf9=arguments['length'];_0x3317d4<_0x5cddf9;_0x3317d4++){_0x407faa=arguments[_0x3317d4];for(var _0xdb7aac in _0x407faa)Object[_0xfc460d(0x268)][_0xfc460d(0x23c)][_0xfc460d(0x1ef)](_0x407faa,_0xdb7aac)&&(_0xc83ed5[_0xdb7aac]=_0x407faa[_0xdb7aac]);}return _0xc83ed5;},f[_0x586cef(0x275)](this,arguments);},Ye=function(_0x4021f7,_0x26923c){var _0x3d2c04=_0x6bbf25,_0x4ab63c={};for(var _0x266485 in _0x4021f7)Object[_0x3d2c04(0x268)][_0x3d2c04(0x23c)]['call'](_0x4021f7,_0x266485)&&_0x26923c[_0x3d2c04(0x2cf)](_0x266485)<0x0&&(_0x4ab63c[_0x266485]=_0x4021f7[_0x266485]);if(_0x4021f7!=null&&typeof Object[_0x3d2c04(0x2bd)]==_0x3d2c04(0x2cc)){for(var _0x42ca37=0x0,_0x266485=Object[_0x3d2c04(0x2bd)](_0x4021f7);_0x42ca37<_0x266485['length'];_0x42ca37++)_0x26923c['indexOf'](_0x266485[_0x42ca37])<0x0&&Object[_0x3d2c04(0x268)][_0x3d2c04(0x248)]['call'](_0x4021f7,_0x266485[_0x42ca37])&&(_0x4ab63c[_0x266485[_0x42ca37]]=_0x4021f7[_0x266485[_0x42ca37]]);}return _0x4ab63c;},w=_0x11fd9a(function(_0x2745c1,_0x379e3c){var _0x218ec2=_0x6bbf25,_0x458daf=_0x2745c1[_0x218ec2(0x2e5)],_0x12f47d=_0x2745c1['id'],_0x4d91a9=_0x2745c1[_0x218ec2(0x2b5)],_0x4172ff=_0x2745c1[_0x218ec2(0x250)],_0x5ceaa2=Ye(_0x2745c1,[_0x218ec2(0x2e5),'id',_0x218ec2(0x2b5),_0x218ec2(0x250)]),_0x5a89d1=_0x218ec2(0x2be)[_0x218ec2(0x26f)](_0x12f47d,'\x20')[_0x218ec2(0x26f)](_0x4d91a9||'')[_0x218ec2(0x25a)](),_0x251af1=_0x1b5b92('_'[_0x218ec2(0x26f)](Xe()));return ue(_0x458daf,''[_0x218ec2(0x26f)](_0x12f47d),{'defIds':_0x458daf['defIds'],'idSuffix':_0x251af1[_0x218ec2(0x2a6)]},f({'ref':_0x379e3c,'className':_0x5a89d1},_0x5ceaa2),_0x4172ff);});function ue(_0x21cdcc,_0x49e3f6,_0x3db90e,_0x166ce8,_0x283020){var _0x1419e7=_0x6bbf25;return _0x165f6f(_0x21cdcc[_0x1419e7(0x2dc)],f(f({'key':_0x49e3f6},Ze(_0x21cdcc,_0x3db90e,_0x283020)),_0x166ce8),(qe(_0x21cdcc,_0x3db90e)[_0x1419e7(0x24c)]||[])[_0x1419e7(0x290)](function(_0x294a09,_0x5d6ab1){var _0x2dfbd4=_0x1419e7;return ue(_0x294a09,''[_0x2dfbd4(0x26f)](_0x49e3f6,'-')[_0x2dfbd4(0x26f)](_0x21cdcc[_0x2dfbd4(0x2dc)],'-')['concat'](_0x5d6ab1),_0x3db90e,void 0x0,_0x283020);}));}function Ze(_0x1cf54b,_0x1a3cbf,_0x4a0540){var _0x2b0a1e=_0x6bbf25,_0x34f3d7=f({},_0x1cf54b[_0x2b0a1e(0x2c8)]);_0x4a0540!=null&&_0x4a0540['colorChannel1']&&_0x34f3d7[_0x2b0a1e(0x1ff)]===_0x2b0a1e(0x30f)&&(_0x34f3d7[_0x2b0a1e(0x1ff)]=_0x4a0540['colorChannel1']),_0x1cf54b['tag']===_0x2b0a1e(0x30e)&&_0x34f3d7['id']&&(_0x34f3d7['id']=_0x34f3d7['id']+_0x1a3cbf[_0x2b0a1e(0x276)]),Object[_0x2b0a1e(0x1e4)](_0x34f3d7)[_0x2b0a1e(0x2b4)](function(_0x133338){var _0x52550d=_0x2b0a1e,_0xe96710=_0x133338[0x0],_0x17aab8=_0x133338[0x1];_0xe96710===_0x52550d(0x30e)&&typeof _0x17aab8==_0x52550d(0x2a9)&&(_0x34f3d7[_0xe96710]=_0x17aab8[_0x52550d(0x25b)](/url\(#(.*)\)/,_0x52550d(0x287)[_0x52550d(0x26f)](_0x1a3cbf[_0x52550d(0x276)],')')));});var _0x9e0c18=_0x1a3cbf[_0x2b0a1e(0x297)];return!_0x9e0c18||_0x9e0c18[_0x2b0a1e(0x1f4)]===0x0||(_0x1cf54b[_0x2b0a1e(0x2dc)]===_0x2b0a1e(0x267)&&_0x34f3d7[_0x2b0a1e(0x1d4)]&&(_0x34f3d7[_0x2b0a1e(0x1d4)]=_0x34f3d7[_0x2b0a1e(0x1d4)]+_0x1a3cbf[_0x2b0a1e(0x276)]),Object['entries'](_0x34f3d7)[_0x2b0a1e(0x2b4)](function(_0x41eb14){var _0x698253=_0x2b0a1e,_0x4c7074=_0x41eb14[0x0],_0x45cec2=_0x41eb14[0x1];typeof _0x45cec2==_0x698253(0x2a9)&&(_0x34f3d7[_0x4c7074]=_0x45cec2[_0x698253(0x25b)](/url\(#(.*)\)/,_0x698253(0x287)[_0x698253(0x26f)](_0x1a3cbf[_0x698253(0x276)],')')));})),_0x34f3d7;}function qe(_0x44b57a,_0x42ba3f){var _0x2b7dd3=_0x6bbf25,_0x245626,_0xde9812=_0x42ba3f[_0x2b7dd3(0x297)];return!_0xde9812||_0xde9812[_0x2b7dd3(0x1f4)]===0x0?_0x44b57a:_0x44b57a['tag']==='defs'&&(!((_0x245626=_0x44b57a['children'])===null||_0x245626===void 0x0)&&_0x245626['length'])?f(f({},_0x44b57a),{'children':_0x44b57a[_0x2b7dd3(0x24c)][_0x2b7dd3(0x290)](function(_0x1c0ac9){var _0x2945e7=_0x2b7dd3;return typeof _0x1c0ac9[_0x2945e7(0x2c8)]['id']==_0x2945e7(0x2a9)&&_0xde9812&&_0xde9812[_0x2945e7(0x27b)](_0x1c0ac9[_0x2945e7(0x2c8)]['id'])?f(f({},_0x1c0ac9),{'attrs':f(f({},_0x1c0ac9[_0x2945e7(0x2c8)]),{'id':_0x1c0ac9[_0x2945e7(0x2c8)]['id']+_0x42ba3f['idSuffix']})}):_0x1c0ac9;})}):_0x44b57a;}function Xe(){var _0x22c813=_0x6bbf25;return Math['random']()['toString'](0x24)[_0x22c813(0x1dc)](0x2,0x8);}w[_0x6bbf25(0x1fa)]=_0x6bbf25(0x2ec);var Je={'tag':_0x6bbf25(0x24e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x6bbf25(0x254),'viewBox':_0x6bbf25(0x235),'width':_0x6bbf25(0x1e3),'height':'1em'},'children':[{'tag':_0x6bbf25(0x2fa),'attrs':{'fill':_0x6bbf25(0x221),'d':_0x6bbf25(0x26e),'fillRule':_0x6bbf25(0x2d3),'clipRule':_0x6bbf25(0x2d3)}}]},le=_0x11fd9a(function(_0x284afb,_0x4ad26c){var _0x4ec4ed=_0x6bbf25;return _0x165f6f(w,Object[_0x4ec4ed(0x262)]({},_0x284afb,{'id':'check-mark-icon','ref':_0x4ad26c,'icon':Je}));});le[_0x6bbf25(0x1fa)]='CheckMarkIcon';var Qe={'tag':_0x6bbf25(0x24e),'attrs':{'xmlns':_0x6bbf25(0x1e5),'fill':'none','viewBox':_0x6bbf25(0x323),'width':_0x6bbf25(0x1e3),'height':'1em'},'children':[{'tag':_0x6bbf25(0x2fa),'attrs':{'stroke':_0x6bbf25(0x221),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x6bbf25(0x302),'strokeLinejoin':_0x6bbf25(0x302),'strokeWidth':1.33}},{'tag':_0x6bbf25(0x2fa),'attrs':{'stroke':_0x6bbf25(0x221),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x6bbf25(0x302),'strokeLinejoin':_0x6bbf25(0x302),'strokeWidth':1.33}}]},ve=_0x11fd9a(function(_0x54afcd,_0x499431){var _0x22cd72=_0x6bbf25;return _0x165f6f(w,Object[_0x22cd72(0x262)]({},_0x54afcd,{'id':_0x22cd72(0x2e9),'ref':_0x499431,'icon':Qe}));});ve['displayName']=_0x6bbf25(0x1ca);var en={'tag':'svg','attrs':{'xmlns':_0x6bbf25(0x1e5),'fill':_0x6bbf25(0x254),'viewBox':_0x6bbf25(0x235),'width':_0x6bbf25(0x1e3),'height':_0x6bbf25(0x1e3)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x6bbf25(0x2fa),'attrs':{'fill':_0x6bbf25(0x221),'d':_0x6bbf25(0x2c7)}},{'tag':'path','attrs':{'fill':_0x6bbf25(0x221),'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':'evenodd','clipRule':'evenodd'}}]},de=_0x11fd9a(function(_0x5eadb6,_0x59f899){var _0x1f2be4=_0x6bbf25;return _0x165f6f(w,Object[_0x1f2be4(0x262)]({},_0x5eadb6,{'id':_0x1f2be4(0x1d1),'ref':_0x59f899,'icon':en}));});de[_0x6bbf25(0x1fa)]=_0x6bbf25(0x2c9);var nn={'tag':_0x6bbf25(0x24e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x6bbf25(0x254),'viewBox':_0x6bbf25(0x235),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x6bbf25(0x1cc)},'children':[{'tag':_0x6bbf25(0x2fa),'attrs':{'stroke':'currentColor','d':_0x6bbf25(0x32e),'strokeLinecap':'round','strokeLinejoin':_0x6bbf25(0x302),'strokeWidth':1.2}}]},{'tag':_0x6bbf25(0x2f8),'attrs':{},'children':[{'tag':_0x6bbf25(0x1d5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x6bbf25(0x2fa),'attrs':{'fill':_0x6bbf25(0x2b7),'d':_0x6bbf25(0x2ef)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},fe=_0x11fd9a(function(_0x331307,_0x42c80c){var _0x308f31=_0x6bbf25;return _0x165f6f(w,Object[_0x308f31(0x262)]({},_0x331307,{'id':'off-line-icon','ref':_0x42c80c,'icon':nn}));});fe[_0x6bbf25(0x1fa)]='OffLineIcon';var rn={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x6bbf25(0x254),'viewBox':'0\x200\x2017\x2016','width':_0x6bbf25(0x1e3),'height':_0x6bbf25(0x1e3)},'children':[{'tag':'g','attrs':{'clipPath':_0x6bbf25(0x278)},'children':[{'tag':_0x6bbf25(0x2fa),'attrs':{'stroke':_0x6bbf25(0x221),'d':_0x6bbf25(0x241),'strokeLinecap':_0x6bbf25(0x302),'strokeLinejoin':_0x6bbf25(0x302),'strokeWidth':1.2}}]},{'tag':_0x6bbf25(0x2f8),'attrs':{},'children':[{'tag':_0x6bbf25(0x1d5),'attrs':{'id':_0x6bbf25(0x1cf)},'children':[{'tag':_0x6bbf25(0x2fa),'attrs':{'fill':'white','d':_0x6bbf25(0x2ef),'transform':_0x6bbf25(0x217)}}]}]}],'defIds':[_0x6bbf25(0x1cf)]},ge=_0x11fd9a(function(_0x5230bf,_0x81e353){var _0x20caa2=_0x6bbf25;return _0x165f6f(w,Object[_0x20caa2(0x262)]({},_0x5230bf,{'id':'on-line-icon','ref':_0x81e353,'icon':rn}));});ge['displayName']=_0x6bbf25(0x216);function tn(_0x1edf71){var _0x1fb3da=_0x6bbf25,_0x2cb908,_0x30f54c;const {mcpCoreConfig:_0x3a811d,onSave:_0x3d8673,loading:_0x11700b=!0x1,config:_0x1db39f,connectionStatus$:_0x2552e8,connectionError$:_0x3dd24b,currentApiKey$:_0x19594e,currentSessionId$:_0x8feabe}=_0x1edf71,_0x13ad23=_0x25ed8b(_0x284497),_0xa7bd19=_0x4a9727(_0x2552e8,_0x523148[_0x1fb3da(0x263)]),_0x4be85b=_0x4a9727(_0x3dd24b,_0xc52ba5[_0x1fb3da(0x1f0)]),_0x4b4bcc=_0x4a9727(_0x8feabe,''),_0xca997e=_0x4a9727(_0x19594e,''),[_0x36e437,_0x49073f]=_0x34fbfa(_0xca997e||''),_0x4ab868=!0x0,_0x5d1835=_0x1db39f[_0x1fb3da(0x2fb)]&&_0x3a811d['mcpServerUrl']&&(_0x3a811d[_0x1fb3da(0x28b)]['includes'](_0x1fb3da(0x317))||_0x3a811d['mcpServerUrl'][_0x1fb3da(0x27b)](_0x1fb3da(0x219))),_0x1ee7d8=(_0x2cb908=_0x3a811d[_0x1fb3da(0x28b)])==null?void 0x0:_0x2cb908[_0x1fb3da(0x27b)](_0x1fb3da(0x317)),_0x3c104d=(_0x30f54c=_0x3a811d[_0x1fb3da(0x28b)])==null?void 0x0:_0x30f54c[_0x1fb3da(0x27b)](_0x1fb3da(0x219)),_0x1b1489=_0x1ee7d8?_0x1fb3da(0x1fe):_0x1fb3da(0x270),_0x5a6064=_0x1db39f[_0x1fb3da(0x2fb)]&&(_0x1ee7d8||_0x3c104d),[_0x504ab2,_0x6fc2cd]=_0x34fbfa(!_0x36e437['trim']()),_0x3c43a2=(_0xafc2a,_0x3fd7d4)=>{var _0xd2088c=_0x1fb3da;if(_0x3fd7d4===_0xc52ba5['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0xafc2a){case _0x523148[_0xd2088c(0x23e)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x523148[_0xd2088c(0x26c)]:case _0x523148[_0xd2088c(0x1f7)]:return _0xd2088c(0x1e7);case _0x523148['FAILED']:return _0xd2088c(0x22e);default:return _0xd2088c(0x21b);}},_0x51b032=(_0xe61236,_0x18c1dc)=>{var _0x3eaaf1=_0x1fb3da;if(_0x18c1dc===_0xc52ba5[_0x3eaaf1(0x2a2)])return _0x3eaaf1(0x2e1);switch(_0xe61236){case _0x523148[_0x3eaaf1(0x23e)]:return _0x3eaaf1(0x1da);case _0x523148['CONNECTING']:case _0x523148['RETRYING']:return'univer-bg-blue-500';case _0x523148[_0x3eaaf1(0x256)]:return _0x3eaaf1(0x2e1);default:return _0x3eaaf1(0x295);}},_0x3a17b0=_0x1b62cd=>{var _0x4a9d08=_0x1fb3da;switch(_0x1b62cd){case _0x523148[_0x4a9d08(0x23e)]:return _0x13ad23['t'](_0x4a9d08(0x20a));case _0x523148[_0x4a9d08(0x26c)]:return _0x13ad23['t'](_0x4a9d08(0x2c0));case _0x523148['FAILED']:return _0x13ad23['t'](_0x4a9d08(0x1d0));case _0x523148[_0x4a9d08(0x1f7)]:return _0x13ad23['t'](_0x4a9d08(0x2f7));default:return _0x13ad23['t'](_0x4a9d08(0x2f2));}},_0x20e390=_0x41708b=>{var _0x54868b=_0x1fb3da;switch(_0x41708b){case _0xc52ba5[_0x54868b(0x2a2)]:return _0x13ad23['t']('mcpConfig.connectionError.unauthorized');case _0xc52ba5[_0x54868b(0x203)]:return _0x13ad23['t'](_0x54868b(0x2d4));case _0xc52ba5['NETWORK_ERROR']:return _0x13ad23['t'](_0x54868b(0x2ad));case _0xc52ba5[_0x54868b(0x22b)]:return _0x13ad23['t'](_0x54868b(0x1d6));default:return'';}},_0x245bd8=_0x8c9d31(()=>{var _0x30dc71=_0x1fb3da;const _0x1de47e={..._0x3a811d,'apiKey':_0x36e437[_0x30dc71(0x25a)](),'enableAuth':_0x4ab868};_0x3d8673(_0x1de47e);},[_0x3a811d,_0x36e437,_0x4ab868,_0x3d8673]),_0x1e4cfd=_0x36e437['trim']()['length']>0x0;return _0x2d894b('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x425d62('div',{'className':_0x1fb3da(0x28f),'children':_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x228),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x20b),'children':_0x425d62(_0x1fb3da(0x271),{'className':_0x1fb3da(0x23d),'children':'⚙'})}),_0x425d62('div',{'children':_0x425d62('p',{'className':_0x1fb3da(0x2db),'children':_0x13ad23['t']('mcpConfig.description')})})]})}),_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x27c),'children':[_0x425d62('div',{'className':_0x1fb3da(0x1e8)+_0x3c43a2(_0xa7bd19,_0x4be85b)+_0x1fb3da(0x227),'children':_0x2d894b(_0x1fb3da(0x1f2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x1dd)+_0x51b032(_0xa7bd19,_0x4be85b)+_0x1fb3da(0x229)}),_0x425d62(_0x1fb3da(0x271),{'className':_0x1fb3da(0x234),'children':_0x3a17b0(_0xa7bd19)})]})}),_0x4be85b!==_0xc52ba5[_0x1fb3da(0x1f0)]&&(_0xa7bd19===_0x523148[_0x1fb3da(0x256)]||_0x4be85b===_0xc52ba5[_0x1fb3da(0x2a2)])&&_0x425d62('div',{'className':_0x1fb3da(0x2f4),'children':_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x2ae),'children':[_0x425d62(_0x1fb3da(0x271),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x425d62('p',{'className':_0x1fb3da(0x24a),'children':_0x20e390(_0x4be85b)})]})})]}),_0x425d62(_0x1fb3da(0x1f2),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2d894b('div',{'className':'univer-space-y-5','children':[_0x2d894b('div',{'className':_0x1fb3da(0x29e),'children':[_0x2d894b(_0x1fb3da(0x2ca),{'className':_0x1fb3da(0x2ee),'children':[_0x425d62(_0x1fb3da(0x271),{'children':'🔑'}),'\x20',_0x13ad23['t'](_0x1fb3da(0x24d)),_0x425d62(_0x1fb3da(0x271),{'className':_0x1fb3da(0x2c1),'children':'*'}),_0x5d1835&&_0x425d62('a',{'href':_0x1fb3da(0x31d),'onClick':()=>_0x6fc2cd(!0x0),'className':'univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x13ad23['t']('mcpConfig.apiApplyInfo.title'),'children':_0x425d62(de,{})})]}),_0x425d62(_0x4de878,{'type':_0x1fb3da(0x2b3),'placeholder':_0x13ad23['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x36e437,'onChange':_0x49073f,'disabled':_0x11700b,'autoComplete':'off'}),_0x425d62('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x13ad23['t']('mcpConfig.apiKeyHint')})]}),_0x5d1835&&_0x504ab2&&_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x212),'children':[_0x425d62('a',{'href':_0x1fb3da(0x31d),'onClick':()=>_0x6fc2cd(!0x1),'className':_0x1fb3da(0x2c2),'title':_0x1fb3da(0x315),'children':_0x425d62(ve,{})}),_0x2d894b('div',{'className':_0x1fb3da(0x29f),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x425d62('span',{'className':_0x1fb3da(0x2ed),'children':'🚀'})}),_0x2d894b('div',{'className':_0x1fb3da(0x224),'children':[_0x425d62('h4',{'className':_0x1fb3da(0x288),'children':_0x13ad23['t'](_0x1fb3da(0x289))}),_0x425d62('p',{'className':_0x1fb3da(0x32a),'children':_0x13ad23['t'](_0x1fb3da(0x283))}),_0x425d62(_0x1fb3da(0x1f2),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5a6064&&_0x2d894b('a',{'href':_0x1b1489,'target':_0x1fb3da(0x1fd),'rel':_0x1fb3da(0x2c5),'className':_0x1fb3da(0x211),'children':[_0x425d62(_0x1fb3da(0x271),{'children':'🤖'}),_0x13ad23['t'](_0x1fb3da(0x21d)),_0x425d62('span',{'className':_0x1fb3da(0x298),'children':'↗'})]})}),_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x208),'children':['✨','\x20',_0x13ad23['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1db39f[_0x1fb3da(0x2fb)]&&_0x2d894b('div',{'className':_0x1fb3da(0x246),'children':[_0x2d894b('h4',{'className':_0x1fb3da(0x1d9),'children':[_0x425d62(_0x1fb3da(0x271),{'children':'🔗'}),'\x20',_0x13ad23['t'](_0x1fb3da(0x1fc))]}),_0x2d894b('div',{'className':_0x1fb3da(0x296),'children':[_0x2d894b(_0x1fb3da(0x1f2),{'className':'univer-space-y-3','children':[_0x425d62('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x13ad23['t'](_0x1fb3da(0x2ce))}),_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x29e),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x245),'children':_0x13ad23['t'](_0x1fb3da(0x2b2))}),_0x2d894b(_0x1fb3da(0x1f2),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x239),'children':[_0x425d62(_0x1fb3da(0x271),{'className':_0x1fb3da(0x325),'children':'1'}),_0x13ad23['t'](_0x1fb3da(0x2ab))]}),_0x2d894b(_0x1fb3da(0x1f2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x425d62(_0x1fb3da(0x271),{'className':_0x1fb3da(0x325),'children':'2'}),_0x13ad23['t'](_0x1fb3da(0x2d8))]}),_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x239),'children':[_0x425d62(_0x1fb3da(0x271),{'className':_0x1fb3da(0x325),'children':'3'}),_0x13ad23['t'](_0x1fb3da(0x318))]})]})]})]}),_0x2d894b('div',{'className':'univer-space-y-2','children':[_0x425d62(_0x1fb3da(0x1f2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1fb3da(0x2ac)}),_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x1d8),'children':_0x425d62(_0x1fb3da(0x294),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x4b4bcc+_0x1fb3da(0x2d9)+(_0x36e437||_0x1fb3da(0x2af))+_0x1fb3da(0x30c)})})]}),_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x2df),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x245),'children':_0x13ad23['t'](_0x1fb3da(0x29d))}),_0x2d894b('div',{'className':_0x1fb3da(0x29e),'children':[_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x30a),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x269)}),_0x2d894b('div',{'className':_0x1fb3da(0x2c3),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x299),'children':_0x1fb3da(0x2aa)}),_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x31e),'children':_0x13ad23['t'](_0x1fb3da(0x2d5))})]})]}),_0x2d894b('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x425d62('div',{'className':_0x1fb3da(0x269)}),_0x2d894b('div',{'className':_0x1fb3da(0x2c3),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x299),'children':'Authorization:'}),_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x31e),'children':_0x13ad23['t'](_0x1fb3da(0x26d))})]})]})]})]})]})]}),_0x425d62(_0x51105a,{'onClick':_0x245bd8,'disabled':!_0x1e4cfd||_0x11700b,'className':_0x1fb3da(0x24f),'children':_0x11700b?_0x2d894b(_0x1fb3da(0x271),{'className':_0x1fb3da(0x239),'children':[_0x425d62('span',{'children':'⟲'}),_0x13ad23['t'](_0x1fb3da(0x291))]}):_0x2d894b(_0x1fb3da(0x271),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x425d62(le,{}),_0x13ad23['t']('mcpConfig.save')]})}),_0x425d62(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x1de),'children':_0x2d894b(_0x1fb3da(0x1f2),{'className':'univer-flex\x20univer-gap-3','children':[_0x425d62(_0x1fb3da(0x271),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2d894b(_0x1fb3da(0x1f2),{'className':_0x1fb3da(0x257),'children':[_0x425d62(_0x1fb3da(0x1f2),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x2d894b(_0x1fb3da(0x1f2),{'children':['•',_0x13ad23['t'](_0x1fb3da(0x261))]}),_0x2d894b(_0x1fb3da(0x1f2),{'children':['•',_0x13ad23['t']('mcpConfig.note2')]})]})]})})]})})]});}const x=_0x6bbf25(0x31f),re={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x3ed9(_0x270720,_0x4eae4b){var _0x483056=_0x4830();return _0x3ed9=function(_0x3ed933,_0x17fff8){_0x3ed933=_0x3ed933-0x1ca;var _0xe6d62d=_0x483056[_0x3ed933];return _0xe6d62d;},_0x3ed9(_0x270720,_0x4eae4b);}var on=Object[_0x6bbf25(0x2c4)],sn=(_0x320ba4,_0x5774ca,_0x107237,_0x4c98bd)=>{for(var _0x400310=_0x4c98bd>0x1?void 0x0:_0x4c98bd?on(_0x5774ca,_0x107237):_0x5774ca,_0x2b0aa7=_0x320ba4['length']-0x1,_0x280eaa;_0x2b0aa7>=0x0;_0x2b0aa7--)(_0x280eaa=_0x320ba4[_0x2b0aa7])&&(_0x400310=_0x280eaa(_0x400310)||_0x400310);return _0x400310;},g=(_0x11b265,_0x514164)=>(_0x438627,_0x54b4e3)=>_0x514164(_0x438627,_0x54b4e3,_0x11b265);const j=_0x6bbf25(0x316),U=_0x6bbf25(0x285);let I=class extends _0x39aa33{constructor(_0x2956b6,_0x2bdbcf,_0x293c54,_0x26e75d,_0x3a5a8d,_0x505bd8,_0x3a72b5,_0x4d031e,_0x1fdce5,_0x46d998){var _0x2ec786=_0x6bbf25;super(),S(this,_0x2ec786(0x273),new _0x50324c(!0x1)),S(this,_0x2ec786(0x320),new _0x50324c({})),S(this,_0x2ec786(0x2cb),new _0x50324c({})),S(this,'_apiKey$',new _0x50324c('')),S(this,'_handleConfigSave',async _0x41fe38=>{var _0x56c3f4=_0x2ec786,_0xbe7dd5,_0x1a1da4;this[_0x56c3f4(0x273)][_0x56c3f4(0x25d)](!0x0);try{const _0x5c12ff=await this['_validateConfig'](_0x41fe38);if(!_0x5c12ff['isValid']){this[_0x56c3f4(0x2f3)][_0x56c3f4(0x2a1)]({'type':_0x24fd02[_0x56c3f4(0x1e2)],'content':_0x5c12ff['errorMessage']||this[_0x56c3f4(0x28c)]['t'](_0x56c3f4(0x2d7))});return;}_0x41fe38[_0x56c3f4(0x274)]?await this['_localStorageService'][_0x56c3f4(0x30b)](j,_0x41fe38[_0x56c3f4(0x274)]['trim']()):await this['_localStorageService'][_0x56c3f4(0x28a)](j),this[_0x56c3f4(0x210)][_0x56c3f4(0x25d)](((_0xbe7dd5=_0x41fe38['apiKey'])==null?void 0x0:_0xbe7dd5[_0x56c3f4(0x25a)]())||''),this[_0x56c3f4(0x23a)][_0x56c3f4(0x1cb)]({'Authorization':_0x56c3f4(0x1f6)+((_0x1a1da4=_0x41fe38[_0x56c3f4(0x274)])==null?void 0x0:_0x1a1da4[_0x56c3f4(0x25a)]())}),this[_0x56c3f4(0x2f3)][_0x56c3f4(0x2a1)]({'type':_0x24fd02[_0x56c3f4(0x260)],'content':this['_localeService']['t'](_0x56c3f4(0x306))}),setTimeout(()=>{var _0x1f77a3=_0x56c3f4;this[_0x1f77a3(0x223)][_0x1f77a3(0x1db)](U);},0x320);}catch(_0x3fd54a){this[_0x56c3f4(0x206)][_0x56c3f4(0x1d7)](_0x56c3f4(0x23f),_0x3fd54a),this[_0x56c3f4(0x2f3)][_0x56c3f4(0x2a1)]({'type':_0x24fd02[_0x56c3f4(0x1e2)],'content':this['_localeService']['t'](_0x56c3f4(0x31b))});}finally{this[_0x56c3f4(0x273)]['next'](!0x1);}}),(this[_0x2ec786(0x247)]=_0x2956b6,this[_0x2ec786(0x2de)]=_0x2bdbcf,this[_0x2ec786(0x312)]=_0x293c54,this[_0x2ec786(0x244)]=_0x26e75d,this['_dialogService']=_0x3a5a8d,this[_0x2ec786(0x2f3)]=_0x505bd8,this[_0x2ec786(0x1e1)]=_0x3a72b5,this['_localeService']=_0x4d031e,this[_0x2ec786(0x206)]=_0x1fdce5,this[_0x2ec786(0x23a)]=_0x46d998,this['_initConfigSync'](),this[_0x2ec786(0x2fd)](),this['_registerComponent']());}[_0x6bbf25(0x1e9)](){var _0x21bdb7=_0x6bbf25;const _0x22a529=this[_0x21bdb7(0x312)]['getConfig'](x);_0x22a529!=null&&_0x22a529[_0x21bdb7(0x2fb)]&&this[_0x21bdb7(0x223)][_0x21bdb7(0x251)]({'id':U,'title':{'title':this['_localeService']['t'](_0x21bdb7(0x22d))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5a17cc=_0x21bdb7;this['_dialogService'][_0x5a17cc(0x1db)](U);}});}['getCurrentConfig'](){var _0x1d0bf6=_0x6bbf25;return this[_0x1d0bf6(0x320)][_0x1d0bf6(0x1ea)];}['_registerComponent'](){var _0x12b7f0=_0x6bbf25;this[_0x12b7f0(0x2b8)](this['_componentManager'][_0x12b7f0(0x2e7)](_0x12b7f0(0x231),this['_createConfigPanelComponent']()));}[_0x6bbf25(0x20f)](){var _0x108cd3=_0x6bbf25;return _0x49fe7d(()=>{var _0x41af69=_0x3ed9,_0x3c5cbd,_0x3d66a8,_0x5f09c6;return _0x425d62(tn,{'config':this[_0x41af69(0x2cb)][_0x41af69(0x1ea)],'mcpCoreConfig':this[_0x41af69(0x320)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x41af69(0x209)],'loading':this['_loading$'][_0x41af69(0x1ea)],'connectionStatus$':(_0x3c5cbd=this[_0x41af69(0x23a)])==null?void 0x0:_0x3c5cbd[_0x41af69(0x2e6)],'connectionError$':(_0x3d66a8=this[_0x41af69(0x23a)])==null?void 0x0:_0x3d66a8['connectionError$'],'currentSessionId$':(_0x5f09c6=this[_0x41af69(0x23a)])==null?void 0x0:_0x5f09c6['sessionId$']});},this[_0x108cd3(0x247)]);}['_initConfigSync'](){var _0x4e0e36=_0x6bbf25;this[_0x4e0e36(0x2b8)](this[_0x4e0e36(0x312)][_0x4e0e36(0x20d)](_0x309bb1)['subscribe'](_0x310e94=>{var _0x3d74bc=_0x4e0e36;this[_0x3d74bc(0x320)][_0x3d74bc(0x25d)](_0x310e94||{});}));const _0x121f68=this['_configService']['getConfig'](_0x309bb1);this[_0x4e0e36(0x320)][_0x4e0e36(0x25d)](_0x121f68||{}),this['disposeWithMe'](this['_configService'][_0x4e0e36(0x20d)](x)['subscribe'](_0x19cd86=>{var _0x363894=_0x4e0e36;this[_0x363894(0x2cb)][_0x363894(0x25d)](_0x19cd86||{});}));const _0x33d676=this[_0x4e0e36(0x312)][_0x4e0e36(0x28d)](x);this[_0x4e0e36(0x2cb)]['next'](_0x33d676||{});}async[_0x6bbf25(0x2fd)](){var _0x233870=_0x6bbf25;const _0x23ee9b=this[_0x233870(0x312)]['getConfig'](x);if(!(_0x23ee9b!=null&&_0x23ee9b[_0x233870(0x2fb)]))return;const _0x53230b=await this[_0x233870(0x244)][_0x233870(0x255)](j);_0x53230b&&(this[_0x233870(0x23a)][_0x233870(0x1cb)]({'Authorization':_0x233870(0x1f6)+_0x53230b}),this[_0x233870(0x210)][_0x233870(0x25d)](_0x53230b));}async[_0x6bbf25(0x286)](_0x559cca){var _0x2019cc=_0x6bbf25;if(!_0x559cca[_0x2019cc(0x274)]||_0x559cca['apiKey'][_0x2019cc(0x25a)]()[_0x2019cc(0x1f4)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2019cc(0x28c)]['t'](_0x2019cc(0x29b))};if(_0x559cca['apiKey'][_0x2019cc(0x25a)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2019cc(0x28c)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x22a387=await this[_0x2019cc(0x247)][_0x2019cc(0x2e2)](_0x2171de)[_0x2019cc(0x303)](_0x559cca['apiKey'][_0x2019cc(0x25a)]());return _0x22a387[_0x2019cc(0x220)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x22a387[_0x2019cc(0x1d7)]||this[_0x2019cc(0x28c)]['t'](_0x2019cc(0x26a))};}catch(_0x42edec){return console[_0x2019cc(0x230)](_0x2019cc(0x264),_0x42edec),{'isValid':!0x0};}}};I=sn([g(0x0,_0x4d025e(_0x5a27ce)),g(0x1,_0x3b888b),g(0x2,_0x4e1f02),g(0x3,_0x433a37),g(0x4,_0x597781),g(0x5,_0x3ed138),g(0x6,_0x4d025e(_0x5c1940)),g(0x7,_0x4d025e(_0x284497)),g(0x8,_0x5ca8a5),g(0x9,_0x4d025e(_0x2171de))],I);const V={'id':_0x6bbf25(0x20c),'type':_0x4705af['COMMAND'],'handler':async(_0x1dd15c,_0x375988)=>(_0x1dd15c['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x393fac,_0x1cd73f){var _0x2b1a99=_0x6bbf25;switch(_0x393fac){case _0x523148[_0x2b1a99(0x263)]:return _0x2b1a99(0x313);case _0x523148[_0x2b1a99(0x26c)]:return _0x2b1a99(0x2a5);case _0x523148[_0x2b1a99(0x23e)]:return _0x2b1a99(0x22f);case _0x523148[_0x2b1a99(0x256)]:switch(_0x1cd73f){case _0xc52ba5[_0x2b1a99(0x2a2)]:return'mcpStatus.unauthorized';case _0xc52ba5[_0x2b1a99(0x203)]:return _0x2b1a99(0x2f0);case _0xc52ba5['NETWORK_ERROR']:return _0x2b1a99(0x22c);case _0xc52ba5[_0x2b1a99(0x22b)]:return _0x2b1a99(0x207);default:return _0x2b1a99(0x2dd);}case _0x523148[_0x2b1a99(0x1f7)]:return'mcpStatus.retrying';default:return _0x2b1a99(0x205);}}function cn(_0x5ed2a0,_0x1cf415,_0x3b8b5f,_0x536354=!0x0){var _0x2f4392=_0x6bbf25;const _0x3fb643=pe(_0x5ed2a0,_0x1cf415),_0x5db3d3=_0x3b8b5f['t'](_0x3fb643);return _0x536354?_0x5ed2a0===_0x523148[_0x2f4392(0x263)]&&_0x1cf415===_0xc52ba5[_0x2f4392(0x2a2)]?_0x5db3d3+'\x20-\x20'+_0x3b8b5f['t'](_0x2f4392(0x201)):_0x5ed2a0===_0x523148[_0x2f4392(0x23e)]?''+_0x5db3d3:_0x5ed2a0===_0x523148[_0x2f4392(0x263)]||_0x5ed2a0===_0x523148['FAILED']?_0x5db3d3+_0x2f4392(0x2a0)+_0x3b8b5f['t'](_0x2f4392(0x204)):_0x5db3d3:_0x5db3d3;}function an(_0x53bdee){var _0x19b167=_0x6bbf25;switch(_0x53bdee){case _0x523148[_0x19b167(0x23e)]:return _0x19b167(0x25f);case _0x523148[_0x19b167(0x26c)]:case _0x523148['RETRYING']:return _0x19b167(0x2eb);case _0x523148[_0x19b167(0x256)]:case _0x523148['DISCONNECTED']:return _0x19b167(0x2c1);default:return _0x19b167(0x272);}}function un(_0x1b979f){var _0x5edfbf=_0x6bbf25;const {status$:_0xa4c946,error$:_0x53b583,onConfigure:_0x2aff79,showClickable:_0x3b3102=!0x0}=_0x1b979f,_0x9336ec=_0x4a9727(_0xa4c946,_0x523148[_0x5edfbf(0x263)]),_0x33bf61=_0x4a9727(_0x53b583,_0xc52ba5[_0x5edfbf(0x1f0)]),_0x4c598b=_0x25ed8b(_0x284497),_0x32afbf=_0x9336ec===_0x523148['CONNECTED'];_0x9336ec===_0x523148[_0x5edfbf(0x26c)]||_0x523148['RETRYING'];const _0x563bb0=_0x4c598b['t'](pe(_0x9336ec,_0x33bf61)),_0x30f809=cn(_0x9336ec,_0x33bf61,_0x4c598b,_0x3b3102),_0x5a16ea=an(_0x9336ec),_0x45d8d4=_0x32afbf?_0x425d62(ge,{}):_0x425d62(fe,{}),_0x14c325=_0x8c9d31(()=>{_0x3b3102&&_0x2aff79&&_0x2aff79();},[_0x3b3102,_0x2aff79]);function _0x1fa57a(){var _0x4ce1ea=_0x5edfbf;return _0x2d894b(_0x4ce1ea(0x1f2),{'className':_0x2a2431(_0x4ce1ea(0x26b),_0x3b3102&&_0x2aff79&&_0x4ce1ea(0x226)),'onClick':_0x3b3102&&_0x2aff79?_0x14c325:void 0x0,'children':[_0x425d62(_0x4ce1ea(0x1f2),{'className':_0x2a2431(_0x4ce1ea(0x1df),_0x5a16ea),'children':_0x45d8d4}),_0x425d62(_0x4ce1ea(0x1f2),{'className':_0x4ce1ea(0x2a3),'children':_0x563bb0})]});}return _0x425d62(_0x49cca2,{'title':_0x30f809,'placement':_0x5edfbf(0x1ce),'children':_0x1fa57a()});}var ln=Object[_0x6bbf25(0x2c4)],vn=(_0x22e6b4,_0x4be2a7,_0x3c36cd,_0x365352)=>{var _0x392ed=_0x6bbf25;for(var _0xd69f8e=_0x365352>0x1?void 0x0:_0x365352?ln(_0x4be2a7,_0x3c36cd):_0x4be2a7,_0xec105=_0x22e6b4[_0x392ed(0x1f4)]-0x1,_0x213229;_0xec105>=0x0;_0xec105--)(_0x213229=_0x22e6b4[_0xec105])&&(_0xd69f8e=_0x213229(_0xd69f8e)||_0xd69f8e);return _0xd69f8e;},A=(_0x342df6,_0x1b9f38)=>(_0x5c3e6a,_0x3aaa55)=>_0x1b9f38(_0x5c3e6a,_0x3aaa55,_0x342df6);let O=class extends _0x39aa33{constructor(_0x2ef7f7,_0x47da94,_0x410c9f,_0x5dae80){var _0x28f970=_0x6bbf25;super(),this[_0x28f970(0x247)]=_0x2ef7f7,this[_0x28f970(0x252)]=_0x47da94,this['_uiPartsService']=_0x410c9f,this[_0x28f970(0x312)]=_0x5dae80,this[_0x28f970(0x265)](),this[_0x28f970(0x259)]();}['_initAutoConnect'](){var _0xb35571=_0x6bbf25;const _0x1ee4ee=this[_0xb35571(0x312)][_0xb35571(0x28d)](x);_0x1ee4ee!=null&&_0x1ee4ee['showDeveloperTools']&&(this[_0xb35571(0x252)][_0xb35571(0x2bf)]=!0x1);}[_0x6bbf25(0x259)](){var _0x2f07fa=_0x6bbf25;const _0x4c4b3c=this[_0x2f07fa(0x312)][_0x2f07fa(0x28d)](x);(_0x4c4b3c==null?void 0x0:_0x4c4b3c[_0x2f07fa(0x277)])!==!0x1&&this[_0x2f07fa(0x2b8)](this['_uiPartsService'][_0x2f07fa(0x31a)](_0x277f90['HEADER_MENU'],()=>{var _0x2be21d=_0x2f07fa,_0x8ded5d;return _0x49fe7d(dn({'status$':this[_0x2be21d(0x252)][_0x2be21d(0x2e6)],'error$':this['_connectionController'][_0x2be21d(0x2b6)],'onConfigure':()=>this[_0x2be21d(0x281)](),'showClickable':(_0x8ded5d=_0x4c4b3c==null?void 0x0:_0x4c4b3c['showDeveloperTools'])!=null?_0x8ded5d:!0x1}),this[_0x2be21d(0x247)]);}));}['_handleConfigure'](){var _0x15e0e2=_0x6bbf25;this[_0x15e0e2(0x247)]['get'](I)[_0x15e0e2(0x1e9)]();}};O=vn([A(0x0,_0x4d025e(_0x5a27ce)),A(0x1,_0x4d025e(_0x2171de)),A(0x2,_0x3b888b),A(0x3,_0x4e1f02)],O);function dn(_0x14c90a){const {status$:_0x296b54,error$:_0x80cb65,onConfigure:_0x1a1c17,showClickable:_0x29cdd8}=_0x14c90a;return function(){return _0x425d62(un,{'status$':_0x296b54,'error$':_0x80cb65,'onConfigure':_0x1a1c17,'showClickable':_0x29cdd8});};}function fn(_0x16eee1){var _0x5517fc=_0x6bbf25;return{'id':V['id'],'type':_0x5ed2a3[_0x5517fc(0x240)],'icon':_0x5517fc(0x1f5),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const gn={[_0x1efcb9[_0x6bbf25(0x300)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x6bbf25(0x2c4)],hn=(_0x348931,_0x561a8e,_0x375eba,_0x469b91)=>{for(var _0x2014e9=_0x469b91>0x1?void 0x0:_0x469b91?pn(_0x561a8e,_0x375eba):_0x561a8e,_0x36779c=_0x348931['length']-0x1,_0x26659e;_0x36779c>=0x0;_0x36779c--)(_0x26659e=_0x348931[_0x36779c])&&(_0x2014e9=_0x26659e(_0x2014e9)||_0x2014e9);return _0x2014e9;},te=(_0x1678a9,_0x4608ed)=>(_0x3170c6,_0x3fb1d2)=>_0x4608ed(_0x3170c6,_0x3fb1d2,_0x1678a9);let k=class extends _0x39aa33{constructor(_0x1c6878,_0x590519){var _0xbd5f31=_0x6bbf25;super(),this[_0xbd5f31(0x29a)]=_0x1c6878,this[_0xbd5f31(0x311)]=_0x590519,this[_0xbd5f31(0x2b1)](),this[_0xbd5f31(0x304)]();}['_initializeCommands'](){var _0x3cab8c=_0x6bbf25;[V][_0x3cab8c(0x2b4)](_0x166710=>{var _0x3e291e=_0x3cab8c;this[_0x3e291e(0x2b8)](this[_0x3e291e(0x29a)][_0x3e291e(0x322)](_0x166710));});}[_0x6bbf25(0x304)](){var _0x119ab1=_0x6bbf25;this[_0x119ab1(0x311)][_0x119ab1(0x202)](gn);}};k=hn([te(0x0,_0x40f98b),te(0x1,_0x185272)],k);const On={'mcpStatus':{'disconnected':_0x6bbf25(0x215),'connecting':_0x6bbf25(0x233),'connected':_0x6bbf25(0x280),'failed':'MCP\x20Connection\x20Failed','retrying':_0x6bbf25(0x1d2),'unknown':_0x6bbf25(0x2fc),'unauthorized':_0x6bbf25(0x24b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x6bbf25(0x1cd),'clickToConnect':_0x6bbf25(0x2b0),'clickToConfigure':_0x6bbf25(0x31c)},'mcpConfig':{'title':_0x6bbf25(0x2ac),'description':_0x6bbf25(0x2ea),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x6bbf25(0x2e4),'apiKeyHint':_0x6bbf25(0x21a),'enableAuth':_0x6bbf25(0x213),'enableAuthHint':_0x6bbf25(0x284),'connectionInfo':_0x6bbf25(0x2b9),'mcpClientConfig':_0x6bbf25(0x2b9),'configInstructions':_0x6bbf25(0x327),'configStepTitle':_0x6bbf25(0x27e),'configStep1':_0x6bbf25(0x22a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x6bbf25(0x30d),'sessionId':_0x6bbf25(0x1f3),'sessionIdDescription':_0x6bbf25(0x28e),'authorizationDescription':_0x6bbf25(0x25e),'configParameters':_0x6bbf25(0x2bc),'maxRetries':_0x6bbf25(0x314),'save':'Save\x20Configuration','saving':_0x6bbf25(0x292),'note1':_0x6bbf25(0x2bb),'note2':_0x6bbf25(0x2a7),'configSaved':_0x6bbf25(0x321),'configError':_0x6bbf25(0x2f9),'apiApplyInfo':{'title':_0x6bbf25(0x2f6),'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':_0x6bbf25(0x308),'getStarted':_0x6bbf25(0x242)},'validation':{'apiKeyRequired':_0x6bbf25(0x236),'apiKeyTooShort':_0x6bbf25(0x307),'invalidConfig':_0x6bbf25(0x2e0),'invalidApiKey':_0x6bbf25(0x2d2)},'connectionStatus':{'disconnected':_0x6bbf25(0x1e6),'connecting':_0x6bbf25(0x1fb),'connected':_0x6bbf25(0x21e),'failed':_0x6bbf25(0x2e8),'retrying':_0x6bbf25(0x225)},'connectionError':{'unauthorized':_0x6bbf25(0x2da),'sessionOccupied':_0x6bbf25(0x2f1),'networkError':_0x6bbf25(0x319),'maxRetriesExceeded':_0x6bbf25(0x1ee)}}},kn={'mcpStatus':{'disconnected':_0x6bbf25(0x243),'connecting':_0x6bbf25(0x32d),'connected':'MCP\x20已连接','failed':_0x6bbf25(0x27d),'retrying':_0x6bbf25(0x1d3),'unknown':'MCP\x20状态未知','unauthorized':_0x6bbf25(0x309),'sessionOccupied':_0x6bbf25(0x293),'networkError':_0x6bbf25(0x324),'maxRetriesExceeded':_0x6bbf25(0x282),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x6bbf25(0x2d1)},'mcpConfig':{'title':_0x6bbf25(0x222),'description':_0x6bbf25(0x305),'apiKey':_0x6bbf25(0x1ec),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x6bbf25(0x329),'enableAuthHint':_0x6bbf25(0x21c),'connectionInfo':_0x6bbf25(0x32c),'mcpClientConfig':_0x6bbf25(0x32c),'configInstructions':_0x6bbf25(0x32b),'configStepTitle':_0x6bbf25(0x2ff),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x6bbf25(0x2d0),'sessionIdDescription':_0x6bbf25(0x2ba),'authorizationDescription':_0x6bbf25(0x310),'configParameters':_0x6bbf25(0x27a),'maxRetries':_0x6bbf25(0x2c6),'save':_0x6bbf25(0x326),'saving':_0x6bbf25(0x279),'note1':'配置更改将立即生效','note2':_0x6bbf25(0x218),'configSaved':_0x6bbf25(0x1e0),'configError':_0x6bbf25(0x2e3),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x6bbf25(0x301),'getStarted':_0x6bbf25(0x27f)},'validation':{'apiKeyRequired':_0x6bbf25(0x2a8),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x6bbf25(0x2a4),'invalidApiKey':_0x6bbf25(0x328)},'connectionStatus':{'disconnected':'未连接','connecting':_0x6bbf25(0x1f1),'connected':_0x6bbf25(0x237),'failed':_0x6bbf25(0x2cd),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x6bbf25(0x20e),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x6bbf25(0x249)}}};var mn=Object['defineProperty'],Cn=Object[_0x6bbf25(0x2c4)],yn=(_0x4c85f1,_0x3e632e,_0x5d19c7)=>_0x3e632e in _0x4c85f1?mn(_0x4c85f1,_0x3e632e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d19c7}):_0x4c85f1[_0x3e632e]=_0x5d19c7,_n=(_0x3c7955,_0xe2748e,_0x2fa061,_0x1d487b)=>{for(var _0x2152d2=_0x1d487b>0x1?void 0x0:_0x1d487b?Cn(_0xe2748e,_0x2fa061):_0xe2748e,_0x58fe4d=_0x3c7955['length']-0x1,_0x3c747f;_0x58fe4d>=0x0;_0x58fe4d--)(_0x3c747f=_0x3c7955[_0x58fe4d])&&(_0x2152d2=_0x3c747f(_0x2152d2)||_0x2152d2);return _0x2152d2;},E=(_0x55df7c,_0x2e9c30)=>(_0x3c27b1,_0x5108a6)=>_0x2e9c30(_0x3c27b1,_0x5108a6,_0x55df7c),xn=(_0x5d7ab8,_0x1e11b8,_0x4209e7)=>yn(_0x5d7ab8,_0x1e11b8+'',_0x4209e7);let L=class extends _0x5de8df{constructor(_0x4a0983=re,_0x1176cf,_0x4b5efc,_0x5b29b2,_0x1dc0c3,_0x266bc8){var _0x283d09=_0x6bbf25;super(),this[_0x283d09(0x25c)]=_0x4a0983,this[_0x283d09(0x247)]=_0x1176cf,this[_0x283d09(0x312)]=_0x4b5efc,this['_uiPartsService']=_0x5b29b2,this['_localStorageService']=_0x1dc0c3,this[_0x283d09(0x28c)]=_0x266bc8;const {..._0xa84cbe}=_0x2f1dad({},re,this['_config']);this[_0x283d09(0x312)][_0x283d09(0x232)](x,_0xa84cbe);}async[_0x6bbf25(0x258)](){var _0x513dc5=_0x6bbf25;const _0x580af7=[[O],[I],[k]];this[_0x513dc5(0x247)][_0x513dc5(0x21f)](_0x26a59c)||_0x580af7[_0x513dc5(0x253)]([_0x26a59c,{'useClass':_0x5d5f85}]),_0x580af7[_0x513dc5(0x2b4)](_0x857dfe=>this[_0x513dc5(0x247)]['add'](_0x857dfe)),this[_0x513dc5(0x247)]['get'](O),this[_0x513dc5(0x247)][_0x513dc5(0x2e2)](I),this[_0x513dc5(0x247)]['get'](k);}};xn(L,_0x6bbf25(0x214),_0x6bbf25(0x23b)),L=_n([_0x24faf9(_0x3ef5b4),E(0x1,_0x4d025e(_0x5a27ce)),E(0x2,_0x4e1f02),E(0x3,_0x3b888b),E(0x4,_0x433a37),E(0x5,_0x4d025e(_0x284497))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- const _0xb86136=_0x4e73;(function(_0x119807,_0x987aa6){const _0x4a7d91=_0x4e73,_0x3c2628=_0x119807();while(!![]){try{const _0xb56396=-parseInt(_0x4a7d91(0x14a))/0x1*(parseInt(_0x4a7d91(0x14e))/0x2)+-parseInt(_0x4a7d91(0x151))/0x3+parseInt(_0x4a7d91(0x13d))/0x4+-parseInt(_0x4a7d91(0x150))/0x5+-parseInt(_0x4a7d91(0x13f))/0x6*(parseInt(_0x4a7d91(0x131))/0x7)+parseInt(_0x4a7d91(0x14c))/0x8*(parseInt(_0x4a7d91(0x12c))/0x9)+parseInt(_0x4a7d91(0x132))/0xa;if(_0xb56396===_0x987aa6)break;else _0x3c2628['push'](_0x3c2628['shift']());}catch(_0x282e48){_0x3c2628['push'](_0x3c2628['shift']());}}}(_0x2f64,0x82062));const e={'mcpStatus':{'disconnected':_0xb86136(0x135),'connecting':'MCP\x20Connecting...','connected':_0xb86136(0x12b),'failed':_0xb86136(0x12a),'retrying':_0xb86136(0x13c),'unknown':_0xb86136(0x155),'unauthorized':_0xb86136(0x153),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xb86136(0x14b),'maxRetriesExceeded':_0xb86136(0x142),'clickToConnect':_0xb86136(0x149),'clickToConfigure':_0xb86136(0x139)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xb86136(0x14f),'apiKey':_0xb86136(0x137),'apiKeyPlaceholder':_0xb86136(0x141),'apiKeyHint':_0xb86136(0x138),'enableAuth':_0xb86136(0x158),'enableAuthHint':_0xb86136(0x13b),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xb86136(0x134),'configStep1':_0xb86136(0x144),'configStep2':_0xb86136(0x157),'configStep3':_0xb86136(0x152),'sessionId':_0xb86136(0x143),'sessionIdDescription':_0xb86136(0x156),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0xb86136(0x13e),'save':_0xb86136(0x12d),'saving':'Saving...','note1':_0xb86136(0x145),'note2':_0xb86136(0x133),'configSaved':_0xb86136(0x12e),'configError':_0xb86136(0x14d),'apiApplyInfo':{'title':_0xb86136(0x147),'description':_0xb86136(0x140),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0xb86136(0x13a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xb86136(0x12f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xb86136(0x130),'connected':_0xb86136(0x148),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xb86136(0x154),'networkError':_0xb86136(0x146),'maxRetriesExceeded':_0xb86136(0x136)}}},n=e;function _0x2f64(){const _0xd2fcdc=['MCP:\x20Network\x20Error','8qicYlQ','Failed\x20to\x20save\x20configuration','2UKhMmX','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4926685MKDHhf','1684737dXgorV','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20Authentication','MCP\x20Connection\x20Failed','MCP\x20Connected','8109117JiIBQi','Save\x20Configuration','Configuration\x20saved\x20successfully','Invalid\x20configuration','Connecting...','4020604zAvbGJ','17487400KowDcy','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','1158932OtxbaU','Max\x20Retries','6MEtofx','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','What\x20is\x20API\x20Key?','Connected','Click\x20to\x20connect\x20MCP','285620shATHl'];_0x2f64=function(){return _0xd2fcdc;};return _0x2f64();}function _0x4e73(_0x278ecb,_0x1f194c){const _0x2f642f=_0x2f64();return _0x4e73=function(_0x4e73e8,_0x1fad4a){_0x4e73e8=_0x4e73e8-0x12a;let _0x512670=_0x2f642f[_0x4e73e8];return _0x512670;},_0x4e73(_0x278ecb,_0x1f194c);}export{n as default};
1
+ const _0x255f7b=_0xee89;function _0xee89(_0x1beac8,_0x45f19f){const _0x44a943=_0x44a9();return _0xee89=function(_0xee8935,_0x38cc0e){_0xee8935=_0xee8935-0xe5;let _0x488080=_0x44a943[_0xee8935];return _0x488080;},_0xee89(_0x1beac8,_0x45f19f);}(function(_0x2548ed,_0x58632c){const _0x377574=_0xee89,_0x48b8e6=_0x2548ed();while(!![]){try{const _0x4be706=-parseInt(_0x377574(0xfd))/0x1*(parseInt(_0x377574(0x10b))/0x2)+-parseInt(_0x377574(0xeb))/0x3+parseInt(_0x377574(0xf3))/0x4*(-parseInt(_0x377574(0xff))/0x5)+parseInt(_0x377574(0xfa))/0x6*(parseInt(_0x377574(0x110))/0x7)+-parseInt(_0x377574(0xf8))/0x8+parseInt(_0x377574(0xfb))/0x9*(parseInt(_0x377574(0xea))/0xa)+-parseInt(_0x377574(0x10a))/0xb*(-parseInt(_0x377574(0xf2))/0xc);if(_0x4be706===_0x58632c)break;else _0x48b8e6['push'](_0x48b8e6['shift']());}catch(_0x1cb008){_0x48b8e6['push'](_0x48b8e6['shift']());}}}(_0x44a9,0x8d218));const e={'mcpStatus':{'disconnected':_0x255f7b(0xf4),'connecting':_0x255f7b(0x107),'connected':_0x255f7b(0x10c),'failed':_0x255f7b(0x112),'retrying':_0x255f7b(0x103),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x255f7b(0xf1),'sessionOccupied':_0x255f7b(0xf6),'networkError':_0x255f7b(0x102),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x255f7b(0xfe),'clickToConfigure':_0x255f7b(0xed)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x255f7b(0xf9),'apiKey':_0x255f7b(0x106),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x255f7b(0x104),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x255f7b(0x115),'connectionInfo':_0x255f7b(0x101),'mcpClientConfig':_0x255f7b(0x101),'configInstructions':_0x255f7b(0xe8),'configStepTitle':_0x255f7b(0xec),'configStep1':_0x255f7b(0xe6),'configStep2':_0x255f7b(0xf0),'configStep3':_0x255f7b(0x114),'sessionId':_0x255f7b(0x100),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x255f7b(0x111),'configParameters':_0x255f7b(0xee),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x255f7b(0xe5),'configError':_0x255f7b(0x109),'apiApplyInfo':{'title':_0x255f7b(0xef),'description':_0x255f7b(0x108),'univerAiLabel':_0x255f7b(0xfc),'getStarted':_0x255f7b(0x113)},'validation':{'apiKeyRequired':_0x255f7b(0xe9),'apiKeyTooShort':_0x255f7b(0x10f),'invalidConfig':_0x255f7b(0x116),'invalidApiKey':_0x255f7b(0xe7)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x255f7b(0x10d),'connected':'Connected','failed':_0x255f7b(0x105),'retrying':_0x255f7b(0xf7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x255f7b(0x10e),'networkError':_0x255f7b(0xf5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};function _0x44a9(){const _0x175925=['API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','810020HHwSay','2121867kwiSRz','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Unauthorized','1932cHhFTD','532DZhEhl','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20ID\x20Occupied','Retrying...','5971784ysCUON','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2428650CCcJsh','117sfJmtB','Univer\x20AI\x20Console','56239nDhqBl','Click\x20to\x20connect\x20MCP','16595gCafJp','Session\x20ID','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','API\x20Key','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','103961MIKOrd','18TRBhqi','MCP\x20Connected','Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','7rPVeJO'];_0x44a9=function(){return _0x175925;};return _0x44a9();}