@univerjs-pro/mcp-ui 0.10.12-nightly.202510251119 → 0.10.13

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 +7 -7
@@ -1 +1 @@
1
- 'use strict';const _0x321bf8=_0x3680;function _0x4cd2(){const _0x4c7211=['MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','784483cpKUWU','1146990WrdFgS','16fWtCLa','MCP\x20Unknown\x20Status','Session\x20ID','176228KxNTaP','25jcVVNJ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Connecting...','618639AyPJhl','Invalid\x20configuration','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','60689HFwlPz','Retrying...','Enable\x20Authentication','1877139ikLIZO','Save\x20Configuration','MCP\x20Connection\x20Failed','Connection\x20Failed','MCP:\x20Unauthorized','9kfNyCN','Saving...','Configuration\x20saved\x20successfully','1473816yKZOEy','MCP\x20Connected','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','2nhztSz','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Configuration\x20Steps:','Connected'];_0x4cd2=function(){return _0x4c7211;};return _0x4cd2();}function _0x3680(_0x9bc03,_0x3ceaf9){const _0x4cd28f=_0x4cd2();return _0x3680=function(_0x368066,_0x4c7b72){_0x368066=_0x368066-0xb5;let _0x494da1=_0x4cd28f[_0x368066];return _0x494da1;},_0x3680(_0x9bc03,_0x3ceaf9);}(function(_0x5538df,_0xe9b2f9){const _0x5da068=_0x3680,_0x7c4788=_0x5538df();while(!![]){try{const _0x4fe41a=parseInt(_0x5da068(0xc8))/0x1*(parseInt(_0x5da068(0xda))/0x2)+parseInt(_0x5da068(0xc1))/0x3+parseInt(_0x5da068(0xe6))/0x4*(-parseInt(_0x5da068(0xe7))/0x5)+parseInt(_0x5da068(0xd3))/0x6+-parseInt(_0x5da068(0xe1))/0x7*(parseInt(_0x5da068(0xe3))/0x8)+-parseInt(_0x5da068(0xd0))/0x9*(parseInt(_0x5da068(0xe2))/0xa)+parseInt(_0x5da068(0xcb))/0xb;if(_0x4fe41a===_0xe9b2f9)break;else _0x7c4788['push'](_0x7c4788['shift']());}catch(_0xace8e8){_0x7c4788['push'](_0x7c4788['shift']());}}}(_0x4cd2,0x1e4a1));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x321bf8(0xd4),'failed':_0x321bf8(0xcd),'retrying':'MCP\x20Retrying...','unknown':_0x321bf8(0xe4),'unauthorized':_0x321bf8(0xcf),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x321bf8(0xdc),'maxRetriesExceeded':_0x321bf8(0xc4),'clickToConnect':_0x321bf8(0xd5),'clickToConfigure':_0x321bf8(0xb8)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x321bf8(0xdb),'apiKey':_0x321bf8(0xc5),'apiKeyPlaceholder':_0x321bf8(0xc3),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x321bf8(0xca),'enableAuthHint':_0x321bf8(0xbe),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x321bf8(0xdf),'configInstructions':_0x321bf8(0xb7),'configStepTitle':_0x321bf8(0xdd),'configStep1':_0x321bf8(0xc6),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x321bf8(0xe5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x321bf8(0xd7),'configParameters':_0x321bf8(0xbf),'maxRetries':'Max\x20Retries','save':_0x321bf8(0xcc),'saving':_0x321bf8(0xd1),'note1':_0x321bf8(0xb6),'note2':_0x321bf8(0xbc),'configSaved':_0x321bf8(0xd2),'configError':_0x321bf8(0xd8),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x321bf8(0xd6),'univerAiLabel':_0x321bf8(0xbd),'getStarted':_0x321bf8(0xba)},'validation':{'apiKeyRequired':_0x321bf8(0xd9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x321bf8(0xc2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x321bf8(0xc7),'connecting':_0x321bf8(0xc0),'connected':_0x321bf8(0xde),'failed':_0x321bf8(0xce),'retrying':_0x321bf8(0xc9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x321bf8(0xb5),'networkError':_0x321bf8(0xb9),'maxRetriesExceeded':_0x321bf8(0xe0)}}},n=e;module[_0x321bf8(0xbb)]=n;
1
+ 'use strict';function _0x18ef(_0x55e9d7,_0x27d7cb){const _0x424fde=_0x424f();return _0x18ef=function(_0x18ef67,_0x161c79){_0x18ef67=_0x18ef67-0xd7;let _0x11a0b2=_0x424fde[_0x18ef67];return _0x11a0b2;},_0x18ef(_0x55e9d7,_0x27d7cb);}const _0x2d760d=_0x18ef;(function(_0x3850fc,_0x2047da){const _0x37add3=_0x18ef,_0x31fdb7=_0x3850fc();while(!![]){try{const _0x3ffe98=parseInt(_0x37add3(0xef))/0x1*(-parseInt(_0x37add3(0xfd))/0x2)+parseInt(_0x37add3(0xeb))/0x3+parseInt(_0x37add3(0xfc))/0x4+parseInt(_0x37add3(0xf3))/0x5+-parseInt(_0x37add3(0xdb))/0x6*(-parseInt(_0x37add3(0xe8))/0x7)+-parseInt(_0x37add3(0xe9))/0x8+-parseInt(_0x37add3(0xf4))/0x9;if(_0x3ffe98===_0x2047da)break;else _0x31fdb7['push'](_0x31fdb7['shift']());}catch(_0x26ca72){_0x31fdb7['push'](_0x31fdb7['shift']());}}}(_0x424f,0x45921));function _0x424f(){const _0x5a9634=['Max\x20Retries','Retrying...','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','14iskCLZ','2695680VooKuY','Click\x20to\x20connect\x20MCP','576690unPBHI','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','300323JUMoir','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Connection\x20Failed','1791395HpYmfb','1905165LBqsYT','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Connecting...','Save\x20Configuration','Session\x20ID','MCP\x20Connection\x20Failed','514888PKMPpI','2dnCgpG','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','exports','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','Invalid\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','1364094dxLnLZ','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x424f=function(){return _0x5a9634;};return _0x424f();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2d760d(0xee),'connected':'MCP\x20Connected','failed':_0x2d760d(0xfb),'retrying':'MCP\x20Retrying...','unknown':_0x2d760d(0xe6),'unauthorized':_0x2d760d(0x101),'sessionOccupied':_0x2d760d(0xf7),'networkError':_0x2d760d(0x106),'maxRetriesExceeded':_0x2d760d(0xf0),'clickToConnect':_0x2d760d(0xea),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2d760d(0xe1),'description':_0x2d760d(0xd9),'apiKey':_0x2d760d(0xda),'apiKeyPlaceholder':_0x2d760d(0xe7),'apiKeyHint':_0x2d760d(0xe2),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2d760d(0x105),'connectionInfo':_0x2d760d(0xf5),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x2d760d(0xde),'configStep2':_0x2d760d(0xd8),'configStep3':_0x2d760d(0x100),'sessionId':_0x2d760d(0xfa),'sessionIdDescription':_0x2d760d(0x103),'authorizationDescription':_0x2d760d(0xf6),'configParameters':_0x2d760d(0xe0),'maxRetries':_0x2d760d(0xe4),'save':_0x2d760d(0xf9),'saving':'Saving...','note1':_0x2d760d(0xed),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2d760d(0xdd),'configError':_0x2d760d(0x107),'apiApplyInfo':{'title':_0x2d760d(0x108),'description':_0x2d760d(0xec),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2d760d(0xd7)},'validation':{'apiKeyRequired':_0x2d760d(0xdc),'apiKeyTooShort':_0x2d760d(0xe3),'invalidConfig':_0x2d760d(0x102),'invalidApiKey':_0x2d760d(0xdf)},'connectionStatus':{'disconnected':_0x2d760d(0xf1),'connecting':_0x2d760d(0xf8),'connected':'Connected','failed':_0x2d760d(0xf2),'retrying':_0x2d760d(0xe5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2d760d(0xfe),'maxRetriesExceeded':_0x2d760d(0x104)}}},n=e;module[_0x2d760d(0xff)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x1cc0dd=_0x33b5;(function(_0x314f3d,_0x406e64){const _0x392fe5=_0x33b5,_0x44bdd8=_0x314f3d();while(!![]){try{const _0x55e0af=parseInt(_0x392fe5(0x119))/0x1*(-parseInt(_0x392fe5(0x127))/0x2)+-parseInt(_0x392fe5(0x13b))/0x3*(-parseInt(_0x392fe5(0x141))/0x4)+parseInt(_0x392fe5(0x143))/0x5*(-parseInt(_0x392fe5(0x145))/0x6)+parseInt(_0x392fe5(0x132))/0x7+-parseInt(_0x392fe5(0x126))/0x8+parseInt(_0x392fe5(0x139))/0x9*(-parseInt(_0x392fe5(0x140))/0xa)+parseInt(_0x392fe5(0x147))/0xb*(parseInt(_0x392fe5(0x11b))/0xc);if(_0x55e0af===_0x406e64)break;else _0x44bdd8['push'](_0x44bdd8['shift']());}catch(_0x54aa17){_0x44bdd8['push'](_0x44bdd8['shift']());}}}(_0x54cc,0x6de83));function _0x33b5(_0x140931,_0x213640){const _0x54cc2c=_0x54cc();return _0x33b5=function(_0x33b5b9,_0x1e9013){_0x33b5b9=_0x33b5b9-0x117;let _0x2f78cd=_0x54cc2c[_0x33b5b9];return _0x2f78cd;},_0x33b5(_0x140931,_0x213640);}function _0x54cc(){const _0xd70e47=['144108FlBSUr','Max\x20Retries','Session\x20ID','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','3510368KknOTh','2976KTgupc','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','Enter\x20your\x20API\x20key','MCP\x20Configuration','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1640212lUqNyR','MCP\x20Connected','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','405KDprnD','MCP:\x20Session\x20ID\x20Occupied','3UGMHWf','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','MCP\x20Client\x20Configuration','Connection\x20Failed','176690onSzkV','1771484PLdVcc','Disconnected','5HBviwb','Enable\x20Authentication','372600CQJwvu','What\x20is\x20API\x20Key?','1155SvAFRR','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','129omdqMi','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x54cc=function(){return _0xd70e47;};return _0x54cc();}const e={'mcpStatus':{'disconnected':_0x1cc0dd(0x136),'connecting':_0x1cc0dd(0x134),'connected':_0x1cc0dd(0x133),'failed':_0x1cc0dd(0x12e),'retrying':'MCP\x20Retrying...','unknown':_0x1cc0dd(0x148),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1cc0dd(0x13a),'networkError':_0x1cc0dd(0x130),'maxRetriesExceeded':_0x1cc0dd(0x123),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1cc0dd(0x121)},'mcpConfig':{'title':_0x1cc0dd(0x12b),'description':_0x1cc0dd(0x117),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x1cc0dd(0x12a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1cc0dd(0x144),'enableAuthHint':_0x1cc0dd(0x118),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1cc0dd(0x13e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1cc0dd(0x129),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1cc0dd(0x11a),'configStep3':_0x1cc0dd(0x12d),'sessionId':_0x1cc0dd(0x11d),'sessionIdDescription':_0x1cc0dd(0x128),'authorizationDescription':_0x1cc0dd(0x12f),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1cc0dd(0x11c),'save':'Save\x20Configuration','saving':_0x1cc0dd(0x138),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1cc0dd(0x131),'configSaved':_0x1cc0dd(0x12c),'configError':_0x1cc0dd(0x122),'apiApplyInfo':{'title':_0x1cc0dd(0x146),'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':_0x1cc0dd(0x125)},'validation':{'apiKeyRequired':_0x1cc0dd(0x120),'apiKeyTooShort':_0x1cc0dd(0x137),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1cc0dd(0x142),'connecting':_0x1cc0dd(0x13d),'connected':_0x1cc0dd(0x124),'failed':_0x1cc0dd(0x13f),'retrying':_0x1cc0dd(0x11e)},'connectionError':{'unauthorized':_0x1cc0dd(0x13c),'sessionOccupied':_0x1cc0dd(0x11f),'networkError':_0x1cc0dd(0x135),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x216d23=_0x7ca1;(function(_0x4dd779,_0x13c536){const _0x4acf87=_0x7ca1,_0x204802=_0x4dd779();while(!![]){try{const _0x27554f=parseInt(_0x4acf87(0x196))/0x1+-parseInt(_0x4acf87(0x18f))/0x2*(-parseInt(_0x4acf87(0x1a9))/0x3)+-parseInt(_0x4acf87(0x1a5))/0x4+parseInt(_0x4acf87(0x17d))/0x5*(parseInt(_0x4acf87(0x1a4))/0x6)+parseInt(_0x4acf87(0x1a2))/0x7+-parseInt(_0x4acf87(0x189))/0x8*(parseInt(_0x4acf87(0x1aa))/0x9)+parseInt(_0x4acf87(0x1a1))/0xa;if(_0x27554f===_0x13c536)break;else _0x204802['push'](_0x204802['shift']());}catch(_0x1c0b05){_0x204802['push'](_0x204802['shift']());}}}(_0x33ec,0x80935));function _0x7ca1(_0x25a9f9,_0x47fd0b){const _0x33ec26=_0x33ec();return _0x7ca1=function(_0x7ca170,_0x2e0240){_0x7ca170=_0x7ca170-0x17d;let _0x143789=_0x33ec26[_0x7ca170];return _0x143789;},_0x7ca1(_0x25a9f9,_0x47fd0b);}const e={'mcpStatus':{'disconnected':_0x216d23(0x18e),'connecting':'MCP\x20Connecting...','connected':_0x216d23(0x19d),'failed':_0x216d23(0x190),'retrying':_0x216d23(0x1a0),'unknown':_0x216d23(0x18a),'unauthorized':_0x216d23(0x18c),'sessionOccupied':_0x216d23(0x1a3),'networkError':_0x216d23(0x182),'maxRetriesExceeded':_0x216d23(0x17f),'clickToConnect':_0x216d23(0x19b),'clickToConfigure':_0x216d23(0x19f)},'mcpConfig':{'title':_0x216d23(0x183),'description':_0x216d23(0x18d),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x216d23(0x198),'enableAuth':_0x216d23(0x1a7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x216d23(0x1a6),'mcpClientConfig':_0x216d23(0x1a6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x216d23(0x199),'configStep1':_0x216d23(0x19e),'configStep2':_0x216d23(0x17e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x216d23(0x1ac),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x216d23(0x195),'configParameters':_0x216d23(0x194),'maxRetries':_0x216d23(0x191),'save':_0x216d23(0x197),'saving':'Saving...','note1':_0x216d23(0x184),'note2':_0x216d23(0x180),'configSaved':_0x216d23(0x185),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x216d23(0x188),'univerAiLabel':_0x216d23(0x187),'getStarted':_0x216d23(0x186)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x216d23(0x192),'invalidConfig':_0x216d23(0x19c),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x216d23(0x1ab),'failed':_0x216d23(0x1a8),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x216d23(0x18b),'sessionOccupied':_0x216d23(0x181),'networkError':_0x216d23(0x193),'maxRetriesExceeded':_0x216d23(0x19a)}}},n=e;function _0x33ec(){const _0x340481=['36WFMXxM','Connected','Session\x20ID','174560WptDWw','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','577304rMIYYs','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','8078FtrrMh','MCP\x20Connection\x20Failed','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','74114UHcpaE','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','2066940cClzHl','2718219kSbOOH','MCP:\x20Session\x20ID\x20Occupied','162yfFQnU','3589708ZhCDVZ','MCP\x20Client\x20Configuration','Enable\x20Authentication','Connection\x20Failed','75ukcVOy'];_0x33ec=function(){return _0x340481;};return _0x33ec();}module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x34d372=_0xf987;(function(_0x1df404,_0x54f0c9){const _0x1d6bb3=_0xf987,_0x4a69b3=_0x1df404();while(!![]){try{const _0xd6a140=-parseInt(_0x1d6bb3(0x210))/0x1+parseInt(_0x1d6bb3(0x217))/0x2*(-parseInt(_0x1d6bb3(0x1ea))/0x3)+parseInt(_0x1d6bb3(0x1fe))/0x4*(-parseInt(_0x1d6bb3(0x1e6))/0x5)+-parseInt(_0x1d6bb3(0x215))/0x6+-parseInt(_0x1d6bb3(0x1f9))/0x7*(-parseInt(_0x1d6bb3(0x204))/0x8)+-parseInt(_0x1d6bb3(0x1fa))/0x9+parseInt(_0x1d6bb3(0x1ed))/0xa*(parseInt(_0x1d6bb3(0x20d))/0xb);if(_0xd6a140===_0x54f0c9)break;else _0x4a69b3['push'](_0x4a69b3['shift']());}catch(_0x36f631){_0x4a69b3['push'](_0x4a69b3['shift']());}}}(_0x5f17,0xbf378));const e={'mcpStatus':{'disconnected':_0x34d372(0x203),'connecting':_0x34d372(0x200),'connected':_0x34d372(0x20b),'failed':_0x34d372(0x20c),'retrying':_0x34d372(0x20f),'unknown':_0x34d372(0x1fb),'unauthorized':_0x34d372(0x205),'sessionOccupied':_0x34d372(0x1ef),'networkError':_0x34d372(0x1ec),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x34d372(0x214)},'mcpConfig':{'title':'MCP\x20配置','description':_0x34d372(0x1f1),'apiKey':_0x34d372(0x202),'apiKeyPlaceholder':_0x34d372(0x1e9),'apiKeyHint':_0x34d372(0x1f4),'enableAuth':_0x34d372(0x209),'enableAuthHint':_0x34d372(0x206),'connectionInfo':_0x34d372(0x208),'mcpClientConfig':_0x34d372(0x208),'configInstructions':_0x34d372(0x211),'configStepTitle':'配置步骤:','configStep1':_0x34d372(0x1ee),'configStep2':_0x34d372(0x1fd),'configStep3':_0x34d372(0x1f6),'sessionId':_0x34d372(0x1f0),'sessionIdDescription':_0x34d372(0x1f7),'authorizationDescription':_0x34d372(0x1f2),'configParameters':'配置参数:','maxRetries':_0x34d372(0x1e7),'save':'保存配置','saving':_0x34d372(0x201),'note1':_0x34d372(0x207),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x34d372(0x1f8),'configError':_0x34d372(0x1fc),'apiApplyInfo':{'title':_0x34d372(0x20e),'description':_0x34d372(0x1f5),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x34d372(0x216),'apiKeyTooShort':_0x34d372(0x1e8),'invalidConfig':_0x34d372(0x1eb),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x34d372(0x1ff),'failed':_0x34d372(0x212),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x34d372(0x20a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x34d372(0x1f3)}}};module[_0x34d372(0x213)]=e;function _0xf987(_0x50cfc0,_0x5a1088){const _0x5f17fc=_0x5f17();return _0xf987=function(_0xf98760,_0x53585f){_0xf98760=_0xf98760-0x1e6;let _0x3f1c2d=_0x5f17fc[_0xf98760];return _0x3f1c2d;},_0xf987(_0x50cfc0,_0x5a1088);}function _0x5f17(){const _0x35e569=['MCP\x20客户端配置','启用身份验证','会话\x20ID\x20已被占用,请稍后再试','MCP\x20已连接','MCP\x20连接失败','12045wmNLZR','什么是\x20API\x20密钥?','MCP\x20重连中...','866741DULfOi','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接失败','exports','点击配置\x20MCP','1941516CuVRNd','API\x20密钥不能为空','8PadUEx','1795135vfKUtq','最大重试次数','API\x20密钥长度至少需要\x2010\x20位','请输入您的\x20API\x20密钥','756393JlCrMh','配置无效','MCP:\x20网络错误','27010gzTxul','复制以下\x20JSON\x20配置','MCP:\x20会话\x20ID\x20已被占用','会话ID','配置\x20MCP\x20使用\x20AI\x20操作电子表格','带有\x20Bearer\x20前缀的\x20API\x20密钥。','超出最大重试次数,请稍后再试','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置保存成功','49lkIYOW','1612431tHYpQT','MCP\x20状态未知','配置保存失败','将配置添加到您的\x20MCP\x20客户端设置文件中','12hWnKOU','已连接','MCP\x20连接中...','保存中...','API\x20密钥','MCP\x20已断开','1463680UpIapo','MCP:\x20未授权','启用身份验证以获得安全连接','配置更改将立即生效'];_0x5f17=function(){return _0x35e569;};return _0x5f17();}
1
+ 'use strict';function _0xe500(_0x82fc00,_0x440ae3){const _0x5ed745=_0x5ed7();return _0xe500=function(_0xe500c2,_0x57401f){_0xe500c2=_0xe500c2-0xdb;let _0x3191e6=_0x5ed745[_0xe500c2];return _0x3191e6;},_0xe500(_0x82fc00,_0x440ae3);}const _0x52c4a6=_0xe500;(function(_0x1f3809,_0x9a339b){const _0x2854a2=_0xe500,_0x555546=_0x1f3809();while(!![]){try{const _0x174ed5=-parseInt(_0x2854a2(0xed))/0x1*(-parseInt(_0x2854a2(0xf3))/0x2)+-parseInt(_0x2854a2(0xe8))/0x3+parseInt(_0x2854a2(0xe7))/0x4+parseInt(_0x2854a2(0xf2))/0x5*(-parseInt(_0x2854a2(0xdd))/0x6)+parseInt(_0x2854a2(0x102))/0x7+parseInt(_0x2854a2(0xf6))/0x8*(parseInt(_0x2854a2(0xf0))/0x9)+-parseInt(_0x2854a2(0xf8))/0xa;if(_0x174ed5===_0x9a339b)break;else _0x555546['push'](_0x555546['shift']());}catch(_0x50b919){_0x555546['push'](_0x555546['shift']());}}}(_0x5ed7,0xc086d));function _0x5ed7(){const _0x580df0=['MCP:\x20网络错误','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接中...','MCP:\x20未授权','2996958UKiikA','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥无效,请检查密钥是否正确','会话\x20ID\x20已被占用,请稍后再试','超出最大重试次数,请稍后再试','会话ID','连接中...','MCP\x20已连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置参数:','3069984DdCrWF','2270919OIPFun','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20已断开','MCP\x20客户端配置','您的\x20API\x20密钥安全存储在本地存储中','14849elnQKi','MCP\x20连接失败','MCP:\x20超出最大重试次数','10971iwuyej','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','10KjJyRY','164rmEKfZ','Univer\x20AI\x20控制台','保存中...','7376wFjKEG','点击配置\x20MCP','10409320FPEFHW','API\x20密钥','未连接','MCP\x20状态未知','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置更改将立即生效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','复制以下\x20JSON\x20配置','几秒钟内获取您的\x20API\x20密钥','什么是\x20API\x20密钥?','3335136oaxfik','点击连接\x20MCP','网络连接错误,请检查您的网络连接','重连中...','配置保存失败','将配置添加到您的\x20MCP\x20客户端设置文件中','最大重试次数','MCP\x20重连中...','连接失败','保存配置','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥不能为空'];_0x5ed7=function(){return _0x580df0;};return _0x5ed7();}const e={'mcpStatus':{'disconnected':_0x52c4a6(0xea),'connecting':_0x52c4a6(0xdb),'connected':_0x52c4a6(0xe4),'failed':_0x52c4a6(0xee),'retrying':_0x52c4a6(0x109),'unknown':_0x52c4a6(0xfb),'unauthorized':_0x52c4a6(0xdc),'sessionOccupied':_0x52c4a6(0xde),'networkError':_0x52c4a6(0x10e),'maxRetriesExceeded':_0x52c4a6(0xef),'clickToConnect':_0x52c4a6(0x103),'clickToConfigure':_0x52c4a6(0xf7)},'mcpConfig':{'title':'MCP\x20配置','description':_0x52c4a6(0xfe),'apiKey':_0x52c4a6(0xf9),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x52c4a6(0x10f),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x52c4a6(0xeb),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x52c4a6(0xff),'configStep2':_0x52c4a6(0x107),'configStep3':_0x52c4a6(0x10c),'sessionId':_0x52c4a6(0xe2),'sessionIdDescription':_0x52c4a6(0xf1),'authorizationDescription':_0x52c4a6(0xe5),'configParameters':_0x52c4a6(0xe6),'maxRetries':_0x52c4a6(0x108),'save':_0x52c4a6(0x10b),'saving':_0x52c4a6(0xf5),'note1':_0x52c4a6(0xfd),'note2':_0x52c4a6(0xec),'configSaved':'配置保存成功','configError':_0x52c4a6(0x106),'apiApplyInfo':{'title':_0x52c4a6(0x101),'description':_0x52c4a6(0xfc),'univerAiLabel':_0x52c4a6(0xf4),'getStarted':_0x52c4a6(0x100)},'validation':{'apiKeyRequired':_0x52c4a6(0x10d),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20','invalidConfig':'配置无效','invalidApiKey':_0x52c4a6(0xdf)},'connectionStatus':{'disconnected':_0x52c4a6(0xfa),'connecting':_0x52c4a6(0xe3),'connected':'已连接','failed':_0x52c4a6(0x10a),'retrying':_0x52c4a6(0x105)},'connectionError':{'unauthorized':_0x52c4a6(0xe9),'sessionOccupied':_0x52c4a6(0xe0),'networkError':_0x52c4a6(0x104),'maxRetriesExceeded':_0x52c4a6(0xe1)}}};module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';const _0x4d8531=_0x5e59;(function(_0x24d224,_0x555ad5){const _0x42b831=_0x5e59,_0x34dde2=_0x24d224();while(!![]){try{const _0x4b0302=parseInt(_0x42b831(0x1b9))/0x1*(parseInt(_0x42b831(0x1d7))/0x2)+parseInt(_0x42b831(0x1bf))/0x3+parseInt(_0x42b831(0x1c4))/0x4+parseInt(_0x42b831(0x1bc))/0x5+-parseInt(_0x42b831(0x1dd))/0x6*(-parseInt(_0x42b831(0x1d4))/0x7)+parseInt(_0x42b831(0x1db))/0x8+-parseInt(_0x42b831(0x1bd))/0x9;if(_0x4b0302===_0x555ad5)break;else _0x34dde2['push'](_0x34dde2['shift']());}catch(_0x54527a){_0x34dde2['push'](_0x34dde2['shift']());}}}(_0x10cd,0x602d5));function _0x5e59(_0x2e28e0,_0x4b2ab6){const _0x10cde8=_0x10cd();return _0x5e59=function(_0x5e59c7,_0x38b0d7){_0x5e59c7=_0x5e59c7-0x1ae;let _0x2dfbc7=_0x10cde8[_0x5e59c7];return _0x2dfbc7;},_0x5e59(_0x2e28e0,_0x4b2ab6);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4d8531(0x1c5),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4d8531(0x1ba),'maxRetriesExceeded':_0x4d8531(0x1b1),'clickToConnect':_0x4d8531(0x1dc),'clickToConfigure':_0x4d8531(0x1d6)},'mcpConfig':{'title':_0x4d8531(0x1b3),'description':_0x4d8531(0x1d5),'apiKey':_0x4d8531(0x1b8),'apiKeyPlaceholder':_0x4d8531(0x1cb),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4d8531(0x1c9),'enableAuthHint':_0x4d8531(0x1d9),'connectionInfo':_0x4d8531(0x1c0),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4d8531(0x1af),'configStepTitle':_0x4d8531(0x1b2),'configStep1':_0x4d8531(0x1be),'configStep2':_0x4d8531(0x1c3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4d8531(0x1bb),'sessionIdDescription':_0x4d8531(0x1cd),'authorizationDescription':_0x4d8531(0x1d2),'configParameters':_0x4d8531(0x1c1),'maxRetries':_0x4d8531(0x1e0),'save':_0x4d8531(0x1d3),'saving':_0x4d8531(0x1b4),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4d8531(0x1ce),'configSaved':_0x4d8531(0x1da),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4d8531(0x1df),'description':_0x4d8531(0x1d8),'univerAiLabel':_0x4d8531(0x1b6),'getStarted':_0x4d8531(0x1c2)},'validation':{'apiKeyRequired':_0x4d8531(0x1b5),'apiKeyTooShort':_0x4d8531(0x1c7),'invalidConfig':_0x4d8531(0x1d0),'invalidApiKey':_0x4d8531(0x1c8)},'connectionStatus':{'disconnected':_0x4d8531(0x1b7),'connecting':_0x4d8531(0x1cc),'connected':_0x4d8531(0x1d1),'failed':'Connection\x20Failed','retrying':_0x4d8531(0x1de)},'connectionError':{'unauthorized':_0x4d8531(0x1ae),'sessionOccupied':_0x4d8531(0x1ca),'networkError':_0x4d8531(0x1c6),'maxRetriesExceeded':_0x4d8531(0x1cf)}}},n=e;function _0x10cd(){const _0x330579=['MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','MCP\x20Configuration','Saving...','API\x20key\x20is\x20required','Univer\x20AI\x20Console','Disconnected','API\x20Key','6ZQnqbR','MCP:\x20Network\x20Error','Session\x20ID','1722675pQIdmE','6178815WoTBvt','Copy\x20the\x20JSON\x20configuration\x20below','5289HdDBNY','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','167772HAqLYb','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','Connected','API\x20key\x20with\x20Bearer\x20prefix.','Save\x20Configuration','159509KJCPiy','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','171718wUyQlx','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','869760edusGa','Click\x20to\x20connect\x20MCP','18dTdzKN','Retrying...','What\x20is\x20API\x20Key?','Max\x20Retries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports'];_0x10cd=function(){return _0x330579;};return _0x10cd();}module[_0x4d8531(0x1b0)]=n;
1
+ 'use strict';const _0x3a00ec=_0x7f80;(function(_0x1e82de,_0x24f766){const _0x1bd5cc=_0x7f80,_0x57c32c=_0x1e82de();while(!![]){try{const _0x13e6a5=parseInt(_0x1bd5cc(0x1cb))/0x1+parseInt(_0x1bd5cc(0x1de))/0x2*(parseInt(_0x1bd5cc(0x1ca))/0x3)+parseInt(_0x1bd5cc(0x1b6))/0x4+-parseInt(_0x1bd5cc(0x1e2))/0x5*(parseInt(_0x1bd5cc(0x1bf))/0x6)+parseInt(_0x1bd5cc(0x1e4))/0x7+-parseInt(_0x1bd5cc(0x1c5))/0x8+-parseInt(_0x1bd5cc(0x1d0))/0x9;if(_0x13e6a5===_0x24f766)break;else _0x57c32c['push'](_0x57c32c['shift']());}catch(_0x5b842d){_0x57c32c['push'](_0x57c32c['shift']());}}}(_0x1540,0xafca0));function _0x1540(){const _0x2c3aa3=['Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','246998YYvArr','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','15GJuKSV','exports','8821330ghaufD','Saving...','2126652zDkccN','Session\x20ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','2198562RjPslL','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connecting...','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.','MCP\x20Connected','2931912wIKpQB','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','MCP\x20Connecting...','27WxrIiI','720626AIHMLs','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','12943512yeAcHZ','Max\x20Retries','Enter\x20your\x20API\x20key'];_0x1540=function(){return _0x2c3aa3;};return _0x1540();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3a00ec(0x1c9),'connected':_0x3a00ec(0x1c4),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3a00ec(0x1e1),'unauthorized':_0x3a00ec(0x1da),'sessionOccupied':_0x3a00ec(0x1c2),'networkError':_0x3a00ec(0x1cd),'maxRetriesExceeded':_0x3a00ec(0x1be),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3a00ec(0x1d8),'apiKey':_0x3a00ec(0x1d7),'apiKeyPlaceholder':_0x3a00ec(0x1d2),'apiKeyHint':_0x3a00ec(0x1b8),'enableAuth':_0x3a00ec(0x1c8),'enableAuthHint':_0x3a00ec(0x1bd),'connectionInfo':_0x3a00ec(0x1cc),'mcpClientConfig':_0x3a00ec(0x1cc),'configInstructions':_0x3a00ec(0x1d4),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3a00ec(0x1d5),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3a00ec(0x1b7),'sessionIdDescription':_0x3a00ec(0x1c3),'authorizationDescription':_0x3a00ec(0x1db),'configParameters':_0x3a00ec(0x1d6),'maxRetries':_0x3a00ec(0x1d1),'save':_0x3a00ec(0x1df),'saving':_0x3a00ec(0x1e5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3a00ec(0x1cf),'configSaved':_0x3a00ec(0x1d3),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3a00ec(0x1bc),'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':_0x3a00ec(0x1ce),'getStarted':_0x3a00ec(0x1e0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3a00ec(0x1ba),'invalidConfig':_0x3a00ec(0x1d9),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3a00ec(0x1c1),'connected':_0x3a00ec(0x1c6),'failed':_0x3a00ec(0x1b9),'retrying':_0x3a00ec(0x1dd)},'connectionError':{'unauthorized':_0x3a00ec(0x1bb),'sessionOccupied':_0x3a00ec(0x1c0),'networkError':_0x3a00ec(0x1c7),'maxRetriesExceeded':_0x3a00ec(0x1dc)}}},n=e;function _0x7f80(_0x47b221,_0xf35ce8){const _0x1540b8=_0x1540();return _0x7f80=function(_0x7f80b7,_0x38a4ce){_0x7f80b7=_0x7f80b7-0x1b6;let _0x2a60ae=_0x1540b8[_0x7f80b7];return _0x2a60ae;},_0x7f80(_0x47b221,_0xf35ce8);}module[_0x3a00ec(0x1e3)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4721d=_0x226a;(function(_0x2d4d8d,_0x192329){const _0x2a1d77=_0x226a,_0x5680bd=_0x2d4d8d();while(!![]){try{const _0x12fbeb=parseInt(_0x2a1d77(0x2b9))/0x1*(-parseInt(_0x2a1d77(0x30b))/0x2)+-parseInt(_0x2a1d77(0x281))/0x3*(-parseInt(_0x2a1d77(0x1e7))/0x4)+parseInt(_0x2a1d77(0x26d))/0x5*(-parseInt(_0x2a1d77(0x24e))/0x6)+parseInt(_0x2a1d77(0x200))/0x7+parseInt(_0x2a1d77(0x243))/0x8*(parseInt(_0x2a1d77(0x2ff))/0x9)+parseInt(_0x2a1d77(0x2fc))/0xa*(-parseInt(_0x2a1d77(0x286))/0xb)+parseInt(_0x2a1d77(0x1da))/0xc;if(_0x12fbeb===_0x192329)break;else _0x5680bd['push'](_0x5680bd['shift']());}catch(_0x2d0193){_0x5680bd['push'](_0x5680bd['shift']());}}}(_0x4b37,0x3da33));var Pe=Object[_0x4721d(0x221)],Ee=(_0x2f1c98,_0x18a7cb,_0xe12123)=>_0x18a7cb in _0x2f1c98?Pe(_0x2f1c98,_0x18a7cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe12123}):_0x2f1c98[_0x18a7cb]=_0xe12123,x=(_0x2c71d8,_0x2ad183,_0x319ccd)=>Ee(_0x2c71d8,typeof _0x2ad183!='symbol'?_0x2ad183+'':_0x2ad183,_0x319ccd);import{LocaleService as _0x449b31,Inject as _0xa6816e,Injector as _0x541a5c,IConfigService as _0x322e87,ILocalStorageService as _0x51e914,ILogService as _0x466f9d,Disposable as _0x1dd7fd,CommandType as _0x82f273,ICommandService as _0x4372fc,DependentOn as _0x2960b3,Plugin as _0x1b86ad,merge as _0x4710af}from'@univerjs/core';import{jsxs as _0x1bd020,jsx as _0x71d551}from'react/jsx-runtime';import{MCPConnectionStatus as _0x26985a,MCPConnectionError as _0x4f6500,MCPConnectionController as _0xf9b0c1,MCP_PLUGIN_CONFIG_KEY as _0x11f737,UniverMCPPlugin as _0xa3b208}from'@univerjs-pro/mcp';import{clsx as _0x4f2249,Input as _0x1c1bd9,Button as _0x56bcc2,MessageType as _0x2e8040,Tooltip as _0xaee0b3}from'@univerjs/design';import{useDependency as _0x357040,useObservable as _0x3580f4,IUIPartsService as _0x1e1885,IDialogService as _0x6baade,IMessageService as _0x671585,ComponentManager as _0x38f699,connectInjector as _0x16d407,BuiltInUIPart as _0x442c44,MenuItemType as _0x1fb06e,RibbonStartGroup as _0xe3f608,IMenuManagerService as _0x23bcea}from'@univerjs/ui';import{BehaviorSubject as _0x37c39b}from'rxjs';import{useRef as _0x5e523d,createElement as _0x56d3b5,forwardRef as _0x2399dd,useState as _0x69cec1,useCallback as _0x23973d}from'react';import{ISocketService as _0x494737,WebSocketService as _0x321007}from'@univerjs/network';function b({ref:_0x5be806,..._0x436b33}){const _0x5bafda=_0x4721d,{icon:_0x320466,id:_0x3244f5,className:_0x1ca1b4,extend:_0x2fa13b,..._0x179c24}=_0x436b33,_0x3ea295=(_0x5bafda(0x202)+_0x3244f5+'\x20'+(_0x1ca1b4||''))[_0x5bafda(0x233)](),_0x25ad42=_0x5e523d('_'+We());return ae(_0x320466,''+_0x3244f5,{'defIds':_0x320466['defIds'],'idSuffix':_0x25ad42['current']},{'ref':_0x5be806,'className':_0x3ea295,..._0x179c24},_0x2fa13b);}function ae(_0x2baa90,_0x4f7f07,_0x26078c,_0x16bcc0,_0x1d0556){const _0x3e6610=_0x4721d;return _0x56d3b5(_0x2baa90[_0x3e6610(0x234)],{'key':_0x4f7f07,...Ye(_0x2baa90,_0x26078c,_0x1d0556),..._0x16bcc0},(Ze(_0x2baa90,_0x26078c)[_0x3e6610(0x236)]||[])[_0x3e6610(0x32a)]((_0x264629,_0x373dac)=>ae(_0x264629,_0x4f7f07+'-'+_0x2baa90[_0x3e6610(0x234)]+'-'+_0x373dac,_0x26078c,void 0x0,_0x1d0556)));}function Ye(_0x555613,_0x365dc2,_0x335db7){const _0x46c65a=_0x4721d,_0x349b04={..._0x555613[_0x46c65a(0x283)]};_0x335db7!=null&&_0x335db7[_0x46c65a(0x237)]&&_0x349b04[_0x46c65a(0x22a)]===_0x46c65a(0x237)&&(_0x349b04['fill']=_0x335db7[_0x46c65a(0x237)]),_0x555613[_0x46c65a(0x234)]===_0x46c65a(0x2ad)&&_0x349b04['id']&&(_0x349b04['id']=_0x349b04['id']+_0x365dc2[_0x46c65a(0x311)]),Object['entries'](_0x349b04)[_0x46c65a(0x296)](([_0x381ddd,_0x50f20f])=>{const _0x3dbba2=_0x46c65a;_0x381ddd===_0x3dbba2(0x2ad)&&typeof _0x50f20f==_0x3dbba2(0x2e7)&&(_0x349b04[_0x381ddd]=_0x50f20f[_0x3dbba2(0x2f7)](/url\(#(.*)\)/,'url(#$1'+_0x365dc2[_0x3dbba2(0x311)]+')'));});const {defIds:_0x466ea7}=_0x365dc2;return!_0x466ea7||_0x466ea7['length']===0x0||(_0x555613[_0x46c65a(0x234)]===_0x46c65a(0x255)&&_0x349b04[_0x46c65a(0x2bb)]&&(_0x349b04[_0x46c65a(0x2bb)]=_0x349b04[_0x46c65a(0x2bb)]+_0x365dc2[_0x46c65a(0x311)]),Object[_0x46c65a(0x250)](_0x349b04)[_0x46c65a(0x296)](([_0x140630,_0x472b9d])=>{const _0x3e9683=_0x46c65a;typeof _0x472b9d==_0x3e9683(0x2e7)&&(_0x349b04[_0x140630]=_0x472b9d['replace'](/url\(#(.*)\)/,_0x3e9683(0x228)+_0x365dc2[_0x3e9683(0x311)]+')'));})),_0x349b04;}function _0x4b37(){const _0x5eb5df=['mcpConfig.title','_createConfigPanelComponent','mcp-ui.config','univer-flex-1','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','您的\x20API\x20密钥安全存储在本地存储中','保存中...','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','evenodd','defineProperty','substring','translate(.97)','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','subscribeConfigValue$','MCP\x20Unknown\x20Status','url(#$1','open','fill','Authorization:','mcpConfig.apiApplyInfo.title','MCP\x20Connected','配置参数:','Saving...','Connection\x20Failed','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','close-icon','trim','tag','HEADER_MENU','children','colorChannel1','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','0\x200\x2016\x2016','mcpConfig.connectionStatus.failed','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20Notes:','COMMAND','univer-flex\x20univer-gap-3','url(#off-line-icon_clip0_910_343)','getOwnPropertyDescriptor','HelpIcon','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','13496uLVUMR','univer-text-green-500','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.unauthorized','NONE','未连接','registerComponent','includes','on-line-icon_clip0_910_349','MCP:\x20Unauthorized','sessionId$','12846NxbltT','showConfigPanel','entries','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center\x20univer-gap-2','CheckMarkIcon','use','_commandService','Success','univer-space-y-3','assign','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-bg-blue-500','mcpConfig.saving','div','网络连接错误,请检查您的网络连接','univer-shrink-0\x20univer-text-red-500','mcpConfig.sessionIdDescription','mcpConfig.connectionError.unauthorized','mcpConfig.connectionStatus.retrying','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','enableAutoConnect','mcpConfig.apiApplyInfo.univerAiLabel','currentColor','MCP\x20Disconnected','warn','mcpConfig.connectionStatus.connected','1020NtJKFd','_handleConfigSave','add','您的\x20API\x20密钥将在此浏览器中本地存储','重启您的\x20MCP\x20客户端以使配置生效','Invalid\x20configuration','_initConfigSync','_loadStoredApiKey','mcpConfig.configStep1','validateApiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','CloseIcon','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','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','showDeveloperTools','off-line-icon_clip0_910_343','什么是\x20API\x20密钥?','disposeWithMe','最大重试次数','mcpConfig.configStep3','3gWUOtK','univer-flex\x20univer-items-start\x20univer-gap-2','attrs','MCP\x20Connection\x20Failed','on-line-icon','2123EAngrS','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','showStatus','mcp.apiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','\x20-\x20','_registerComponent','univer.plus','mcpConfig.note2','univer-min-w-0\x20univer-flex-1','univer-text-xs\x20univer-text-gray-500','mcpConfig.description','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.note1','MCP\x20客户端配置','forEach','MenuIcon','show','_mcpCoreConfig$','MCP\x20连接中...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','removeItem','会话\x20ID\x20已被占用,请稍后再试','Connecting...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.apiKeyRequired','权限验证失败,请检查您的\x20API\x20密钥','_localeService','MCPConfigPanel','white','span','univer-bg-red-500','mcpStatus.unknown','https://console.univer.plus','mcpStatus.clickToConfigure','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP:\x20超出最大重试次数','mask','univer.ai','API\x20Key','push','connectionError$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-green-500','CONNECTED','SESSION_ID_OCCUPIED','配置步骤:','noopener\x20noreferrer','UNAUTHORIZED','5AZQiaC','_apiKey$','xlink:href','mcpStatus.maxRetriesExceeded','MCP:\x20Network\x20Error','close','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.save','请输入您的\x20API\x20密钥','url(#on-line-icon_clip0_910_349)','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_validateConfig','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-yellow-500','univer-font-medium','Failed\x20to\x20save\x20configuration','next','M0\x200H16V16H0z','setItem','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpStatus.sessionOccupied','Retrying...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.validation.apiKeyTooShort','mcpConfig.configStepTitle','button','mcpStatus.connecting','_config','0\x200\x2017\x2016','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-gray-400','univer-text-gray-500','registerCommand','mcpConfig.connectionStatus.connecting','1em','defs','https://mcp.univer.ai/mcp/?univer_session_id=','BUTTON','_localStorageService','has','Enter\x20your\x20API\x20key','_dialogService','_initStatusComponent','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','string','_componentManager','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','将配置添加到您的\x20MCP\x20客户端设置文件中','API\x20密钥','none','MCP\x20状态未知','_blank','Bearer\x20','univer-size-4','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','clipPath','path','DISCONNECTED','_initAutoConnect','mcpStatus.disconnected','replace','univer-flex\x20univer-items-center','univer-text-sm\x20univer-font-medium','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Univer\x20AI\x20控制台','23410rDyfxy','isValid','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','2502xLxngK','MCP\x20配置','保存配置','off-line-icon','mcpConfig.apiApplyInfo.getStarted','API\x20密钥不能为空','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_logService','connectionStatus$','length','_connectionController','152002tGoKxQ','_menuManagerService','univer-bg-gray-500','What\x20is\x20API\x20Key?','displayName','http://www.w3.org/2000/svg','idSuffix','Configuration\x20Parameters:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20key\x20with\x20Bearer\x20prefix.','带有\x20Bearer\x20前缀的\x20API\x20密钥。','http','mcpStatus.failed','mcpConfig.connectionInfo','mcpConfig.validation.invalidConfig','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_loading$','配置保存成功','MCP:\x20会话\x20ID\x20已被占用','Click\x20to\x20connect\x20MCP','已连接','UniverIcon','round','Disconnected','get','启用身份验证','NETWORK_ERROR','_config$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-text-white','mcpConfig.apiApplyInfo.description','map','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','8671056wVOnlc','mcpConfig.apiKeyPlaceholder','Univer\x20AI\x20Console','OnLineIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpServerUrl','_initializeMenus','MCP\x20Connecting...','mcpStatus.clickToConnect','MCP\x20Configuration','mcpStatus.connected','MCP\x20重连中...','subscribe','116264hjtPIw','mcpStatus.retrying','连接中...','getConfig','error','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','配置\x20MCP\x20使用\x20AI\x20操作电子表格','errorMessage','univer-text-red-500','value','复制以下\x20JSON\x20配置','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20密钥长度至少需要\x2010\x20位','_handleConfigure','svg','MCP:\x20Max\x20Retries\x20Exceeded','MCP_UI_PLUGIN','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_uiPartsService','会话ID','bottom','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','Error','超出最大重试次数,请稍后再试','2102863nEtZjv','getCurrentConfig','univerjs-icon\x20univerjs-icon-','MCP:\x20网络错误','mcpConfig.configError','MCP\x20连接失败','FAILED','MAX_RETRIES_EXCEEDED','_configService','mcpConfig.apiKeyHint','Copy\x20the\x20JSON\x20configuration\x20below','<API_KEY>','__setCustomHeaders','_injector','CONNECTING','点击配置\x20MCP','apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','onStarting','univer-size-2\x20univer-rounded-full','_messageService','Get\x20your\x20API\x20key\x20in\x20seconds','mergeMenu','_mcpConnectionController'];_0x4b37=function(){return _0x5eb5df;};return _0x4b37();}function Ze(_0x19bb9e,_0x504924){const _0x4ac9c4=_0x4721d;var _0x4f07b0;const {defIds:_0x2779ff}=_0x504924;return!_0x2779ff||_0x2779ff[_0x4ac9c4(0x309)]===0x0?_0x19bb9e:_0x19bb9e['tag']===_0x4ac9c4(0x2dd)&&((_0x4f07b0=_0x19bb9e[_0x4ac9c4(0x236)])!=null&&_0x4f07b0[_0x4ac9c4(0x309)])?{..._0x19bb9e,'children':_0x19bb9e[_0x4ac9c4(0x236)][_0x4ac9c4(0x32a)](_0x1a35a8=>typeof _0x1a35a8[_0x4ac9c4(0x283)]['id']=='string'&&_0x2779ff&&_0x2779ff[_0x4ac9c4(0x24a)](_0x1a35a8[_0x4ac9c4(0x283)]['id'])?{..._0x1a35a8,'attrs':{..._0x1a35a8['attrs'],'id':_0x1a35a8[_0x4ac9c4(0x283)]['id']+_0x504924[_0x4ac9c4(0x311)]}}:_0x1a35a8)}:_0x19bb9e;}function We(){const _0x2cd63b=_0x4721d;return Math['random']()['toString'](0x24)[_0x2cd63b(0x222)](0x2,0x8);}function _0x226a(_0xbb43bb,_0x427b4c){const _0x4b3704=_0x4b37();return _0x226a=function(_0x226ab8,_0x494262){_0x226ab8=_0x226ab8-0x1d8;let _0x2f0cf1=_0x4b3704[_0x226ab8];return _0x2f0cf1;},_0x226a(_0xbb43bb,_0x427b4c);}b['displayName']=_0x4721d(0x320);const qe={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':'0\x200\x2016\x2016','width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x279),'fillRule':'evenodd','clipRule':_0x4721d(0x220)}}]},le=_0x2399dd(function(_0x42a9ef,_0x2b0c2d){const _0x5543b9=_0x4721d;return _0x56d3b5(b,Object[_0x5543b9(0x259)]({},_0x42a9ef,{'id':'check-mark-icon','ref':_0x2b0c2d,'icon':qe}));});le[_0x4721d(0x30f)]=_0x4721d(0x254);const Xe={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':'0\x200\x2016\x2016','width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x2399dd(function(_0x4c30c4,_0x2f752c){const _0x3cad94=_0x4721d;return _0x56d3b5(b,Object[_0x3cad94(0x259)]({},_0x4c30c4,{'id':_0x3cad94(0x232),'ref':_0x2f752c,'icon':Xe}));});ue['displayName']=_0x4721d(0x278);const Je={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x239),'width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x2f1)}},{'tag':'path','attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x27a)}},{'tag':_0x4721d(0x2f3),'attrs':{'fill':'currentColor','d':_0x4721d(0x21c),'fillRule':_0x4721d(0x220),'clipRule':'evenodd'}}]},ve=_0x2399dd(function(_0x58cb01,_0x2ec15c){const _0x48fdb4=_0x4721d;return _0x56d3b5(b,Object[_0x48fdb4(0x259)]({},_0x58cb01,{'id':'help-icon','ref':_0x2ec15c,'icon':Je}));});ve[_0x4721d(0x30f)]=_0x4721d(0x241);const Qe={'tag':'svg','attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x239),'width':'1em','height':_0x4721d(0x2dc)},'children':[{'tag':'g','attrs':{'clipPath':_0x4721d(0x23f)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'stroke':_0x4721d(0x269),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4721d(0x321),'strokeLinejoin':_0x4721d(0x321),'strokeWidth':1.2}}]},{'tag':_0x4721d(0x2dd),'attrs':{},'children':[{'tag':_0x4721d(0x2f2),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x4721d(0x2a5),'d':_0x4721d(0x2ca)}}]}]}],'defIds':[_0x4721d(0x27c)]},de=_0x2399dd(function(_0x5b1d6a,_0xe4750b){const _0x1944db=_0x4721d;return _0x56d3b5(b,Object[_0x1944db(0x259)]({},_0x5b1d6a,{'id':_0x1944db(0x302),'ref':_0xe4750b,'icon':Qe}));});de[_0x4721d(0x30f)]='OffLineIcon';const en={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x2d5),'width':'1em','height':_0x4721d(0x2dc)},'children':[{'tag':'g','attrs':{'clipPath':_0x4721d(0x2c2)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x4721d(0x321),'strokeLinejoin':_0x4721d(0x321),'strokeWidth':1.2}}]},{'tag':_0x4721d(0x2dd),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x2a5),'d':_0x4721d(0x2ca),'transform':_0x4721d(0x223)}}]}]}],'defIds':[_0x4721d(0x24b)]},ge=_0x2399dd(function(_0x344dfe,_0x1810ce){const _0x2f3ec4=_0x4721d;return _0x56d3b5(b,Object[_0x2f3ec4(0x259)]({},_0x344dfe,{'id':_0x2f3ec4(0x285),'ref':_0x1810ce,'icon':en}));});ge[_0x4721d(0x30f)]=_0x4721d(0x1dd);function nn(_0xf81769){const _0x21587f=_0x4721d;var _0x1d6849,_0x11dbb9;const {mcpCoreConfig:_0x44e111,onSave:_0x4b94e0,loading:_0x201804=!0x1,config:_0x1b68e6,connectionStatus$:_0x3978b9,connectionError$:_0x3ef7b0,currentApiKey$:_0x59df57,currentSessionId$:_0x3cebfe}=_0xf81769,_0x129a37=_0x357040(_0x449b31),_0x4653e0=_0x3580f4(_0x3978b9,_0x26985a[_0x21587f(0x2f4)]),_0x4ea5db=_0x3580f4(_0x3ef7b0,_0x4f6500[_0x21587f(0x247)]),_0x48678d=_0x3580f4(_0x3cebfe,''),_0xfdfb1f=_0x3580f4(_0x59df57,''),[_0x32ebcd,_0x57d456]=_0x69cec1(_0xfdfb1f||''),_0x2e4d2e=!0x0,_0x4fb7f7=_0x1b68e6[_0x21587f(0x27b)]&&_0x44e111[_0x21587f(0x1df)]&&(_0x44e111[_0x21587f(0x1df)][_0x21587f(0x24a)]('univer.plus')||_0x44e111[_0x21587f(0x1df)]['includes'](_0x21587f(0x2ae))),_0x31da56=(_0x1d6849=_0x44e111['mcpServerUrl'])==null?void 0x0:_0x1d6849[_0x21587f(0x24a)](_0x21587f(0x28e)),_0x2d3c99=(_0x11dbb9=_0x44e111[_0x21587f(0x1df)])==null?void 0x0:_0x11dbb9[_0x21587f(0x24a)](_0x21587f(0x2ae)),_0x3b0cfa=_0x31da56?_0x21587f(0x2a9):'https://console.univer.ai',_0x482255=_0x1b68e6[_0x21587f(0x27b)]&&(_0x31da56||_0x2d3c99),[_0x588224,_0x10d97d]=_0x69cec1(!_0x32ebcd[_0x21587f(0x233)]()),_0x5ed70c=(_0x1543f1,_0x36ee8f)=>{const _0x17df80=_0x21587f;if(_0x36ee8f===_0x4f6500['UNAUTHORIZED'])return _0x17df80(0x224);switch(_0x1543f1){case _0x26985a[_0x17df80(0x2b4)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x26985a[_0x17df80(0x20e)]:case _0x26985a['RETRYING']:return _0x17df80(0x2fe);case _0x26985a['FAILED']:return _0x17df80(0x224);default:return _0x17df80(0x2cc);}},_0x1e64ce=(_0x57159d,_0x1ec520)=>{const _0x3e8516=_0x21587f;if(_0x1ec520===_0x4f6500[_0x3e8516(0x2b8)])return _0x3e8516(0x2a7);switch(_0x57159d){case _0x26985a['CONNECTED']:return _0x3e8516(0x2b3);case _0x26985a[_0x3e8516(0x20e)]:case _0x26985a[_0x3e8516(0x1fc)]:return _0x3e8516(0x25d);case _0x26985a[_0x3e8516(0x206)]:return _0x3e8516(0x2a7);default:return _0x3e8516(0x30d);}},_0x445ffe=_0x18eb4e=>{const _0x203afb=_0x21587f;switch(_0x18eb4e){case _0x26985a[_0x203afb(0x2b4)]:return _0x129a37['t'](_0x203afb(0x26c));case _0x26985a[_0x203afb(0x20e)]:return _0x129a37['t'](_0x203afb(0x2db));case _0x26985a[_0x203afb(0x206)]:return _0x129a37['t'](_0x203afb(0x23a));case _0x26985a[_0x203afb(0x1fc)]:return _0x129a37['t'](_0x203afb(0x264));default:return _0x129a37['t']('mcpConfig.connectionStatus.disconnected');}},_0x1b7212=_0xf6815b=>{const _0xf137a2=_0x21587f;switch(_0xf6815b){case _0x4f6500[_0xf137a2(0x2b8)]:return _0x129a37['t'](_0xf137a2(0x263));case _0x4f6500[_0xf137a2(0x2b5)]:return _0x129a37['t']('mcpConfig.connectionError.sessionOccupied');case _0x4f6500[_0xf137a2(0x325)]:return _0x129a37['t']('mcpConfig.connectionError.networkError');case _0x4f6500[_0xf137a2(0x207)]:return _0x129a37['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4815fc=_0x23973d(()=>{const _0x45a86d=_0x21587f,_0x1c8aaf={..._0x44e111,'apiKey':_0x32ebcd[_0x45a86d(0x233)](),'enableAuth':_0x2e4d2e};_0x4b94e0(_0x1c8aaf);},[_0x44e111,_0x32ebcd,_0x2e4d2e,_0x4b94e0]),_0x456c61=_0x32ebcd[_0x21587f(0x233)]()[_0x21587f(0x309)]>0x0;return _0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x251),'children':[_0x71d551('div',{'className':_0x21587f(0x1f8),'children':_0x1bd020(_0x21587f(0x25f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x28b),'children':_0x71d551('span',{'className':_0x21587f(0x328),'children':'⚙'})}),_0x71d551('div',{'children':_0x71d551('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x129a37['t'](_0x21587f(0x292))})})]})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x2c5),'children':[_0x71d551('div',{'className':_0x4f2249(_0x21587f(0x327),_0x5ed70c(_0x4653e0,_0x4ea5db)),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x4f2249(_0x21587f(0x213),_0x1e64ce(_0x4653e0,_0x4ea5db))}),_0x71d551('span',{'className':_0x21587f(0x2f9),'children':_0x445ffe(_0x4653e0)})]})}),_0x4ea5db!==_0x4f6500[_0x21587f(0x247)]&&(_0x4653e0===_0x26985a[_0x21587f(0x206)]||_0x4ea5db===_0x4f6500['UNAUTHORIZED'])&&_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2ab),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x282),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x261),'children':'⚠️'}),_0x71d551('p',{'className':_0x21587f(0x231),'children':_0x1b7212(_0x4ea5db)})]})})]}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x1ec),'children':_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-5','children':[_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x1bd020('label',{'className':_0x21587f(0x245),'children':[_0x71d551(_0x21587f(0x2a6),{'children':'🔑'}),'\x20',_0x129a37['t']('mcpConfig.apiKey'),_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x1ef),'children':'*'}),_0x4fb7f7&&_0x71d551('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x129a37['t'](_0x21587f(0x22c)),'role':_0x21587f(0x2d2),'onClick':()=>_0x10d97d(!0x0),'children':_0x71d551(ve,{})})]}),_0x71d551(_0x1c1bd9,{'type':'text','placeholder':_0x129a37['t'](_0x21587f(0x1db)),'value':_0x32ebcd,'disabled':_0x201804,'autoComplete':'off','onChange':_0x57d456}),_0x71d551('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x129a37['t'](_0x21587f(0x209))})]}),_0x4fb7f7&&_0x588224&&_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x21f),'children':[_0x71d551('a',{'className':_0x21587f(0x2e9),'role':_0x21587f(0x2d2),'onClick':()=>_0x10d97d(!0x1),'children':_0x71d551(ue,{'className':_0x21587f(0x2f0)})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x31a),'children':[_0x71d551('div',{'className':_0x21587f(0x225),'children':_0x71d551('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x21b),'children':[_0x71d551('h4',{'className':_0x21587f(0x2b2),'children':_0x129a37['t'](_0x21587f(0x22c))}),_0x71d551('p',{'className':_0x21587f(0x265),'children':_0x129a37['t'](_0x21587f(0x329))}),_0x71d551('div',{'className':_0x21587f(0x29f),'children':_0x482255&&_0x1bd020('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x3b0cfa,'target':_0x21587f(0x2ee),'rel':_0x21587f(0x2b7),'children':[_0x71d551(_0x21587f(0x2a6),{'children':'🤖'}),_0x129a37['t'](_0x21587f(0x268)),_0x71d551('span',{'className':_0x21587f(0x2d8),'children':'↗'})]})}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x129a37['t'](_0x21587f(0x303))]})]})]})]}),_0x1b68e6['showDeveloperTools']&&_0x1bd020(_0x21587f(0x25f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1bd020('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x71d551(_0x21587f(0x2a6),{'children':'🔗'}),'\x20',_0x129a37['t'](_0x21587f(0x318))]}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-4','children':[_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x258),'children':[_0x71d551('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x129a37['t']('mcpConfig.configInstructions')}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x129a37['t'](_0x21587f(0x2d1))}),_0x1bd020('div',{'className':_0x21587f(0x266),'children':[_0x1bd020('div',{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x129a37['t'](_0x21587f(0x275))]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x238),'children':'2'}),_0x129a37['t']('mcpConfig.configStep2')]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x238),'children':'3'}),_0x129a37['t'](_0x21587f(0x280))]})]})]})]}),_0x1bd020('div',{'className':_0x21587f(0x305),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x21587f(0x1e3)}),_0x71d551(_0x21587f(0x25f),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x71d551('pre',{'className':_0x21587f(0x1de),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x21587f(0x2de)+(_0x48678d||'<SESSION_ID>'),'type':_0x21587f(0x316),'headers':{'Authorization':_0x21587f(0x2ef)+(_0x32ebcd||_0x21587f(0x20b))}}}},null,0x2)})})]}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x129a37['t']('mcpConfig.configParameters')}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x1bd020(_0x21587f(0x25f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2cf)}),_0x1bd020('div',{'className':_0x21587f(0x290),'children':[_0x71d551('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x291),'children':_0x129a37['t'](_0x21587f(0x262))})]})]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x1d9),'children':[_0x71d551('div',{'className':_0x21587f(0x2cf)}),_0x1bd020('div',{'className':_0x21587f(0x290),'children':[_0x71d551('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x21587f(0x22b)}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x291),'children':_0x129a37['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x71d551(_0x56bcc2,{'onClick':_0x4815fc,'disabled':!_0x456c61||_0x201804,'className':'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','children':_0x201804?_0x1bd020(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x71d551(_0x21587f(0x2a6),{'children':'⟲'}),_0x129a37['t'](_0x21587f(0x25e))]}):_0x1bd020(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x71d551(le,{}),_0x129a37['t'](_0x21587f(0x2c0))]})}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x313),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x23e),'children':[_0x71d551(_0x21587f(0x2a6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x2d6),'children':[_0x71d551('div',{'className':_0x21587f(0x2c7),'children':_0x21587f(0x23c)}),_0x1bd020(_0x21587f(0x25f),{'children':['•',_0x129a37['t'](_0x21587f(0x294))]}),_0x1bd020(_0x21587f(0x25f),{'children':['•',_0x129a37['t'](_0x21587f(0x28f))]})]})]})})]})})]});}const y=_0x4721d(0x21a),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4721d(0x240)],tn=(_0x595c29,_0x48b406,_0x11caf2,_0x12e215)=>{const _0x2b5980=_0x4721d;for(var _0x55e337=_0x12e215>0x1?void 0x0:_0x12e215?rn(_0x48b406,_0x11caf2):_0x48b406,_0x2eda07=_0x595c29[_0x2b5980(0x309)]-0x1,_0x5dd52b;_0x2eda07>=0x0;_0x2eda07--)(_0x5dd52b=_0x595c29[_0x2eda07])&&(_0x55e337=_0x5dd52b(_0x55e337)||_0x55e337);return _0x55e337;},d=(_0x1e1de3,_0x4364e0)=>(_0x2cfabe,_0x321f2b)=>_0x4364e0(_0x2cfabe,_0x321f2b,_0x1e1de3);const U=_0x4721d(0x28a),L='mcp-config-dialog';let I=class extends _0x1dd7fd{constructor(_0x16d903,_0x3e1c64,_0x2d8424,_0x1d8d8d,_0x1cc57,_0x479fb8,_0x1aa09f,_0x1408e3,_0x44c49e,_0x1eb98a){const _0x125b9a=_0x4721d;super(),x(this,'_loading$',new _0x37c39b(!0x1)),x(this,'_mcpCoreConfig$',new _0x37c39b({})),x(this,_0x125b9a(0x326),new _0x37c39b({})),x(this,_0x125b9a(0x2ba),new _0x37c39b('')),x(this,_0x125b9a(0x26e),async _0x4667c9=>{const _0x1b5dcb=_0x125b9a;var _0x2579ca,_0x271d17;this['_loading$'][_0x1b5dcb(0x2c9)](!0x0);try{const _0x4941d8=await this[_0x1b5dcb(0x2c4)](_0x4667c9);if(!_0x4941d8[_0x1b5dcb(0x2fd)]){this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x1fe)],'content':_0x4941d8[_0x1b5dcb(0x1ee)]||this[_0x1b5dcb(0x2a3)]['t'](_0x1b5dcb(0x319))});return;}_0x4667c9[_0x1b5dcb(0x210)]?await this[_0x1b5dcb(0x2e0)][_0x1b5dcb(0x2cb)](U,_0x4667c9[_0x1b5dcb(0x210)][_0x1b5dcb(0x233)]()):await this[_0x1b5dcb(0x2e0)][_0x1b5dcb(0x29c)](U),this['_apiKey$'][_0x1b5dcb(0x2c9)](((_0x2579ca=_0x4667c9[_0x1b5dcb(0x210)])==null?void 0x0:_0x2579ca[_0x1b5dcb(0x233)]())||''),this[_0x1b5dcb(0x217)][_0x1b5dcb(0x20c)]({'Authorization':_0x1b5dcb(0x2ef)+((_0x271d17=_0x4667c9[_0x1b5dcb(0x210)])==null?void 0x0:_0x271d17['trim']())}),this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x257)],'content':this[_0x1b5dcb(0x2a3)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x302464=_0x1b5dcb;this[_0x302464(0x2e3)][_0x302464(0x2be)](L);},0x320);}catch(_0x10b989){this[_0x1b5dcb(0x307)][_0x1b5dcb(0x1eb)](_0x1b5dcb(0x306),_0x10b989),this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x1fe)],'content':this['_localeService']['t'](_0x1b5dcb(0x204))});}finally{this['_loading$'][_0x1b5dcb(0x2c9)](!0x1);}}),(this[_0x125b9a(0x20d)]=_0x16d903,this['_uiPartsService']=_0x3e1c64,this['_configService']=_0x2d8424,this[_0x125b9a(0x2e0)]=_0x1d8d8d,this[_0x125b9a(0x2e3)]=_0x1cc57,this[_0x125b9a(0x214)]=_0x479fb8,this[_0x125b9a(0x2e8)]=_0x1aa09f,this[_0x125b9a(0x2a3)]=_0x1408e3,this['_logService']=_0x44c49e,this[_0x125b9a(0x217)]=_0x1eb98a,this[_0x125b9a(0x273)](),this[_0x125b9a(0x274)](),this['_registerComponent']());}['showConfigPanel'](){const _0x465a18=_0x4721d,_0x28b3f3=this['_configService']['getConfig'](y);_0x28b3f3!=null&&_0x28b3f3[_0x465a18(0x27b)]&&this['_dialogService'][_0x465a18(0x229)]({'id':L,'title':{'title':this[_0x465a18(0x2a3)]['t'](_0x465a18(0x218))},'children':{'label':_0x465a18(0x2a4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5867d7=_0x465a18;this[_0x5867d7(0x2e3)][_0x5867d7(0x2be)](L);}});}[_0x4721d(0x201)](){const _0x224960=_0x4721d;return this[_0x224960(0x299)]['value'];}[_0x4721d(0x28d)](){const _0x4b9048=_0x4721d;this[_0x4b9048(0x27e)](this[_0x4b9048(0x2e8)]['register'](_0x4b9048(0x2a4),this[_0x4b9048(0x219)]()));}[_0x4721d(0x219)](){const _0x39fdf1=_0x4721d;return _0x16d407(()=>{const _0x2e320d=_0x226a;var _0x1741ca,_0x5b2c2a,_0x20a57a;return _0x71d551(nn,{'config':this[_0x2e320d(0x326)][_0x2e320d(0x1f0)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x2e320d(0x2ba)],'onSave':this[_0x2e320d(0x26e)],'loading':this[_0x2e320d(0x31b)][_0x2e320d(0x1f0)],'connectionStatus$':(_0x1741ca=this[_0x2e320d(0x217)])==null?void 0x0:_0x1741ca['connectionStatus$'],'connectionError$':(_0x5b2c2a=this[_0x2e320d(0x217)])==null?void 0x0:_0x5b2c2a[_0x2e320d(0x2b1)],'currentSessionId$':(_0x20a57a=this[_0x2e320d(0x217)])==null?void 0x0:_0x20a57a[_0x2e320d(0x24d)]});},this[_0x39fdf1(0x20d)]);}['_initConfigSync'](){const _0x3c65a0=_0x4721d;this['disposeWithMe'](this['_configService'][_0x3c65a0(0x226)](_0x11f737)[_0x3c65a0(0x1e6)](_0x4d5855=>{const _0x3dac05=_0x3c65a0;this['_mcpCoreConfig$'][_0x3dac05(0x2c9)](_0x4d5855||{});}));const _0x3e7b48=this[_0x3c65a0(0x208)]['getConfig'](_0x11f737);this[_0x3c65a0(0x299)][_0x3c65a0(0x2c9)](_0x3e7b48||{}),this['disposeWithMe'](this[_0x3c65a0(0x208)][_0x3c65a0(0x226)](y)['subscribe'](_0x2d9760=>{const _0x574149=_0x3c65a0;this[_0x574149(0x326)]['next'](_0x2d9760||{});}));const _0x2e1ce9=this[_0x3c65a0(0x208)]['getConfig'](y);this[_0x3c65a0(0x326)][_0x3c65a0(0x2c9)](_0x2e1ce9||{});}async['_loadStoredApiKey'](){const _0x4788a6=_0x4721d,_0x19644f=this['_configService'][_0x4788a6(0x1ea)](y);if(!(_0x19644f!=null&&_0x19644f[_0x4788a6(0x27b)]))return;const _0x7fa114=await this[_0x4788a6(0x2e0)]['getItem'](U);_0x7fa114&&(this[_0x4788a6(0x217)][_0x4788a6(0x20c)]({'Authorization':'Bearer\x20'+_0x7fa114}),this[_0x4788a6(0x2ba)][_0x4788a6(0x2c9)](_0x7fa114));}async[_0x4721d(0x2c4)](_0xe50baa){const _0x12a275=_0x4721d;if(!_0xe50baa[_0x12a275(0x210)]||_0xe50baa['apiKey'][_0x12a275(0x233)]()[_0x12a275(0x309)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x12a275(0x2a3)]['t'](_0x12a275(0x2a1))};if(_0xe50baa[_0x12a275(0x210)]['trim']()[_0x12a275(0x309)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x12a275(0x2a3)]['t'](_0x12a275(0x2d0))};try{const _0x3bde53=await this[_0x12a275(0x20d)][_0x12a275(0x323)](_0xf9b0c1)[_0x12a275(0x276)](_0xe50baa[_0x12a275(0x210)][_0x12a275(0x233)]());return _0x3bde53['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3bde53[_0x12a275(0x1eb)]||this[_0x12a275(0x2a3)]['t'](_0x12a275(0x252))};}catch(_0x108648){return console[_0x12a275(0x26b)](_0x12a275(0x277),_0x108648),{'isValid':!0x0};}}};I=tn([d(0x0,_0xa6816e(_0x541a5c)),d(0x1,_0x1e1885),d(0x2,_0x322e87),d(0x3,_0x51e914),d(0x4,_0x6baade),d(0x5,_0x671585),d(0x6,_0xa6816e(_0x38f699)),d(0x7,_0xa6816e(_0x449b31)),d(0x8,_0x466f9d),d(0x9,_0xa6816e(_0xf9b0c1))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x82f273[_0x4721d(0x23d)],'handler':async(_0x37133a,_0x10fb80)=>(_0x37133a['get'](I)[_0x4721d(0x24f)](),!0x0)};function pe(_0x1d190c,_0x211fac){const _0x3f5c5b=_0x4721d;switch(_0x1d190c){case _0x26985a[_0x3f5c5b(0x2f4)]:return _0x3f5c5b(0x2f6);case _0x26985a[_0x3f5c5b(0x20e)]:return _0x3f5c5b(0x2d3);case _0x26985a['CONNECTED']:return _0x3f5c5b(0x1e4);case _0x26985a[_0x3f5c5b(0x206)]:switch(_0x211fac){case _0x4f6500[_0x3f5c5b(0x2b8)]:return _0x3f5c5b(0x246);case _0x4f6500[_0x3f5c5b(0x2b5)]:return _0x3f5c5b(0x2cd);case _0x4f6500[_0x3f5c5b(0x325)]:return'mcpStatus.networkError';case _0x4f6500['MAX_RETRIES_EXCEEDED']:return _0x3f5c5b(0x2bc);default:return _0x3f5c5b(0x317);}case _0x26985a[_0x3f5c5b(0x1fc)]:return _0x3f5c5b(0x1e8);default:return _0x3f5c5b(0x2a8);}}function on(_0x3c680c,_0x43af9a,_0xa4f91b,_0x2fff05=!0x0){const _0x1e9725=_0x4721d,_0x4a5bda=pe(_0x3c680c,_0x43af9a),_0x433dee=_0xa4f91b['t'](_0x4a5bda);return _0x2fff05?_0x3c680c===_0x26985a[_0x1e9725(0x2f4)]&&_0x43af9a===_0x4f6500['UNAUTHORIZED']?_0x433dee+_0x1e9725(0x28c)+_0xa4f91b['t'](_0x1e9725(0x2aa)):_0x3c680c===_0x26985a[_0x1e9725(0x2b4)]?''+_0x433dee:_0x3c680c===_0x26985a[_0x1e9725(0x2f4)]||_0x3c680c===_0x26985a['FAILED']?_0x433dee+'\x20-\x20'+_0xa4f91b['t'](_0x1e9725(0x1e2)):_0x433dee:_0x433dee;}function sn(_0x3fb69a){const _0x2e2323=_0x4721d;switch(_0x3fb69a){case _0x26985a[_0x2e2323(0x2b4)]:return _0x2e2323(0x244);case _0x26985a[_0x2e2323(0x20e)]:case _0x26985a[_0x2e2323(0x1fc)]:return _0x2e2323(0x2c6);case _0x26985a[_0x2e2323(0x206)]:case _0x26985a[_0x2e2323(0x2f4)]:return _0x2e2323(0x1ef);default:return _0x2e2323(0x2d9);}}function cn(_0xa8d883){const _0x332273=_0x4721d,{status$:_0x4f279e,error$:_0x55911e,onConfigure:_0x154414,showClickable:_0x270ed9=!0x0}=_0xa8d883,_0x11455c=_0x3580f4(_0x4f279e,_0x26985a[_0x332273(0x2f4)]),_0x3340e5=_0x3580f4(_0x55911e,_0x4f6500['NONE']),_0x5f427d=_0x357040(_0x449b31),_0x1388ba=_0x11455c===_0x26985a[_0x332273(0x2b4)];_0x11455c===_0x26985a[_0x332273(0x20e)]||_0x26985a[_0x332273(0x1fc)];const _0x2d85a7=_0x5f427d['t'](pe(_0x11455c,_0x3340e5)),_0x21cf5b=on(_0x11455c,_0x3340e5,_0x5f427d,_0x270ed9),_0x184c37=sn(_0x11455c),_0x47c03e=_0x1388ba?_0x71d551(ge,{}):_0x71d551(de,{}),_0x439398=_0x23973d(()=>{_0x270ed9&&_0x154414&&_0x154414();},[_0x270ed9,_0x154414]);function _0xbd4c02(){const _0x47453b=_0x332273;return _0x1bd020(_0x47453b(0x25f),{'className':_0x4f2249(_0x47453b(0x2f8),_0x270ed9&&_0x154414&&_0x47453b(0x1fd)),'role':_0x47453b(0x2d2),'onClick':_0x270ed9&&_0x154414?_0x439398:void 0x0,'children':[_0x71d551(_0x47453b(0x25f),{'className':_0x4f2249('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x184c37),'children':_0x47c03e}),_0x71d551(_0x47453b(0x25f),{'className':_0x47453b(0x293),'children':_0x2d85a7})]});}return _0x71d551(_0xaee0b3,{'title':_0x21cf5b,'placement':_0x332273(0x1fb),'children':_0xbd4c02()});}var an=Object[_0x4721d(0x240)],ln=(_0x4248e4,_0x22ec22,_0x59e402,_0x3d041f)=>{for(var _0xf31110=_0x3d041f>0x1?void 0x0:_0x3d041f?an(_0x22ec22,_0x59e402):_0x22ec22,_0x207e68=_0x4248e4['length']-0x1,_0x243011;_0x207e68>=0x0;_0x207e68--)(_0x243011=_0x4248e4[_0x207e68])&&(_0xf31110=_0x243011(_0xf31110)||_0xf31110);return _0xf31110;},M=(_0x92dec7,_0x4a3409)=>(_0x2dd1d8,_0x40d28d)=>_0x4a3409(_0x2dd1d8,_0x40d28d,_0x92dec7);let O=class extends _0x1dd7fd{constructor(_0x244ad3,_0x36175d,_0x16ffe4,_0x1ce00f){const _0x5c5833=_0x4721d;super(),this[_0x5c5833(0x20d)]=_0x244ad3,this[_0x5c5833(0x30a)]=_0x36175d,this[_0x5c5833(0x1f9)]=_0x16ffe4,this[_0x5c5833(0x208)]=_0x1ce00f,this[_0x5c5833(0x2f5)](),this[_0x5c5833(0x2e4)]();}[_0x4721d(0x2f5)](){const _0x12b0af=_0x4721d,_0x5bbc18=this['_configService'][_0x12b0af(0x1ea)](y);_0x5bbc18!=null&&_0x5bbc18[_0x12b0af(0x27b)]&&(this[_0x12b0af(0x30a)][_0x12b0af(0x267)]=!0x1);}[_0x4721d(0x2e4)](){const _0x3db15f=_0x4721d,_0x3111dd=this['_configService']['getConfig'](y);(_0x3111dd==null?void 0x0:_0x3111dd[_0x3db15f(0x289)])!==!0x1&&this[_0x3db15f(0x27e)](this['_uiPartsService'][_0x3db15f(0x249)](_0x442c44[_0x3db15f(0x235)],()=>{const _0x15950f=_0x3db15f;var _0xb18613;return _0x16d407(un({'status$':this[_0x15950f(0x30a)][_0x15950f(0x308)],'error$':this[_0x15950f(0x30a)][_0x15950f(0x2b1)],'onConfigure':()=>this[_0x15950f(0x1f4)](),'showClickable':(_0xb18613=_0x3111dd==null?void 0x0:_0x3111dd['showDeveloperTools'])!=null?_0xb18613:!0x1}),this[_0x15950f(0x20d)]);}));}[_0x4721d(0x1f4)](){const _0x456f89=_0x4721d;this['_injector'][_0x456f89(0x323)](I)[_0x456f89(0x24f)]();}};O=ln([M(0x0,_0xa6816e(_0x541a5c)),M(0x1,_0xa6816e(_0xf9b0c1)),M(0x2,_0x1e1885),M(0x3,_0x322e87)],O);function un(_0x289b0c){const {status$:_0x1289b8,error$:_0x383a5a,onConfigure:_0x38440c,showClickable:_0x102656}=_0x289b0c;return function(){return _0x71d551(cn,{'status$':_0x1289b8,'error$':_0x383a5a,'onConfigure':_0x38440c,'showClickable':_0x102656});};}function vn(_0xac9985){const _0x4f72bd=_0x4721d;return{'id':V['id'],'type':_0x1fb06e[_0x4f72bd(0x2df)],'icon':_0x4f72bd(0x297),'title':_0x4f72bd(0x218),'tooltip':_0x4f72bd(0x218)};}const dn={[_0xe3f608['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4721d(0x240)],pn=(_0x11567d,_0x55aa07,_0x36d55b,_0x477947)=>{for(var _0x1b2fc3=_0x477947>0x1?void 0x0:_0x477947?gn(_0x55aa07,_0x36d55b):_0x55aa07,_0x4b9bd1=_0x11567d['length']-0x1,_0xd4a987;_0x4b9bd1>=0x0;_0x4b9bd1--)(_0xd4a987=_0x11567d[_0x4b9bd1])&&(_0x1b2fc3=_0xd4a987(_0x1b2fc3)||_0x1b2fc3);return _0x1b2fc3;},re=(_0x4fe74a,_0x182d98)=>(_0x48a573,_0xea88a6)=>_0x182d98(_0x48a573,_0xea88a6,_0x4fe74a);let D=class extends _0x1dd7fd{constructor(_0xf714ce,_0x444e02){const _0x4e2f71=_0x4721d;super(),this[_0x4e2f71(0x256)]=_0xf714ce,this['_menuManagerService']=_0x444e02,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x53b77f=_0x4721d;[V][_0x53b77f(0x296)](_0x38abb3=>{const _0x4a7845=_0x53b77f;this['disposeWithMe'](this[_0x4a7845(0x256)][_0x4a7845(0x2da)](_0x38abb3));});}[_0x4721d(0x1e0)](){const _0x2f7edf=_0x4721d;this[_0x2f7edf(0x30c)][_0x2f7edf(0x216)](dn);}};D=pn([re(0x0,_0x4372fc),re(0x1,_0x23bcea)],D);const Mn={'mcpStatus':{'disconnected':_0x4721d(0x26a),'connecting':_0x4721d(0x1e1),'connected':_0x4721d(0x22d),'failed':_0x4721d(0x284),'retrying':'MCP\x20Retrying...','unknown':_0x4721d(0x227),'unauthorized':_0x4721d(0x24c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4721d(0x2bd),'maxRetriesExceeded':_0x4721d(0x1f6),'clickToConnect':_0x4721d(0x31e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4721d(0x1e3),'description':_0x4721d(0x287),'apiKey':_0x4721d(0x2af),'apiKeyPlaceholder':_0x4721d(0x2e2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4721d(0x2a0),'connectionInfo':_0x4721d(0x2e6),'mcpClientConfig':_0x4721d(0x2e6),'configInstructions':_0x4721d(0x2d7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4721d(0x20a),'configStep2':_0x4721d(0x242),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x4721d(0x25c),'authorizationDescription':_0x4721d(0x314),'configParameters':_0x4721d(0x312),'maxRetries':'Max\x20Retries','save':_0x4721d(0x1d8),'saving':_0x4721d(0x22f),'note1':_0x4721d(0x1f2),'note2':_0x4721d(0x25a),'configSaved':_0x4721d(0x2e5),'configError':_0x4721d(0x2c8),'apiApplyInfo':{'title':_0x4721d(0x30e),'description':_0x4721d(0x29b),'univerAiLabel':_0x4721d(0x1dc),'getStarted':_0x4721d(0x215)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4721d(0x211),'invalidConfig':_0x4721d(0x272),'invalidApiKey':_0x4721d(0x2bf)},'connectionStatus':{'disconnected':_0x4721d(0x322),'connecting':_0x4721d(0x29e),'connected':_0x4721d(0x288),'failed':_0x4721d(0x230),'retrying':_0x4721d(0x2ce)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4721d(0x32b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4721d(0x2c3)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x4721d(0x29a),'connected':'MCP\x20已连接','failed':_0x4721d(0x205),'retrying':_0x4721d(0x1e5),'unknown':_0x4721d(0x2ed),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4721d(0x31d),'networkError':_0x4721d(0x203),'maxRetriesExceeded':_0x4721d(0x2ac),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4721d(0x20f)},'mcpConfig':{'title':_0x4721d(0x300),'description':_0x4721d(0x1ed),'apiKey':_0x4721d(0x2eb),'apiKeyPlaceholder':_0x4721d(0x2c1),'apiKeyHint':_0x4721d(0x270),'enableAuth':_0x4721d(0x324),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4721d(0x295),'mcpClientConfig':_0x4721d(0x295),'configInstructions':_0x4721d(0x23b),'configStepTitle':_0x4721d(0x2b6),'configStep1':_0x4721d(0x1f1),'configStep2':_0x4721d(0x2ea),'configStep3':_0x4721d(0x271),'sessionId':_0x4721d(0x1fa),'sessionIdDescription':_0x4721d(0x25b),'authorizationDescription':_0x4721d(0x315),'configParameters':_0x4721d(0x22e),'maxRetries':_0x4721d(0x27f),'save':_0x4721d(0x301),'saving':_0x4721d(0x21e),'note1':'配置更改将立即生效','note2':_0x4721d(0x21d),'configSaved':_0x4721d(0x31c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x4721d(0x27d),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4721d(0x2fb),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x4721d(0x304),'apiKeyTooShort':_0x4721d(0x1f3),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x4721d(0x248),'connecting':_0x4721d(0x1e9),'connected':_0x4721d(0x31f),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x4721d(0x2a2),'sessionOccupied':_0x4721d(0x29d),'networkError':_0x4721d(0x260),'maxRetriesExceeded':_0x4721d(0x1ff)}}};var fn=Object[_0x4721d(0x221)],hn=Object[_0x4721d(0x240)],Cn=(_0x4b75bf,_0x17bf8a,_0xba7c34)=>_0x17bf8a in _0x4b75bf?fn(_0x4b75bf,_0x17bf8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba7c34}):_0x4b75bf[_0x17bf8a]=_0xba7c34,mn=(_0x299d05,_0x5c3cfa,_0xed7b1,_0x4f9056)=>{const _0x79a637=_0x4721d;for(var _0x32484e=_0x4f9056>0x1?void 0x0:_0x4f9056?hn(_0x5c3cfa,_0xed7b1):_0x5c3cfa,_0x40602c=_0x299d05[_0x79a637(0x309)]-0x1,_0x16e8cc;_0x40602c>=0x0;_0x40602c--)(_0x16e8cc=_0x299d05[_0x40602c])&&(_0x32484e=_0x16e8cc(_0x32484e)||_0x32484e);return _0x32484e;},P=(_0x7868c,_0x49ce84)=>(_0x496d62,_0x5cdeb4)=>_0x49ce84(_0x496d62,_0x5cdeb4,_0x7868c),_n=(_0x272f1d,_0x8ddee0,_0x4c22c0)=>Cn(_0x272f1d,_0x8ddee0+'',_0x4c22c0);let j=class extends _0x1b86ad{constructor(_0x272f39=ie,_0x4f08a8,_0x135bcd,_0x1b76c4,_0x1fc1e5,_0x1800aa){const _0x5a054a=_0x4721d;super(),this[_0x5a054a(0x2d4)]=_0x272f39,this[_0x5a054a(0x20d)]=_0x4f08a8,this[_0x5a054a(0x208)]=_0x135bcd,this[_0x5a054a(0x1f9)]=_0x1b76c4,this[_0x5a054a(0x2e0)]=_0x1fc1e5,this[_0x5a054a(0x2a3)]=_0x1800aa;const {..._0x119ed0}=_0x4710af({},ie,this['_config']);this['_configService']['setConfig'](y,_0x119ed0);}async[_0x4721d(0x212)](){const _0x706e23=_0x4721d,_0xf35f54=[[O],[I],[D]];this['_injector'][_0x706e23(0x2e1)](_0x494737)||_0xf35f54[_0x706e23(0x2b0)]([_0x494737,{'useClass':_0x321007}]),_0xf35f54[_0x706e23(0x296)](_0xd38f72=>this[_0x706e23(0x20d)][_0x706e23(0x26f)](_0xd38f72)),this[_0x706e23(0x20d)]['get'](O),this['_injector'][_0x706e23(0x323)](I),this[_0x706e23(0x20d)][_0x706e23(0x323)](D);}};_n(j,'pluginName',_0x4721d(0x1f7)),j=mn([_0x2960b3(_0xa3b208),P(0x1,_0xa6816e(_0x541a5c)),P(0x2,_0x322e87),P(0x3,_0x1e1885),P(0x4,_0x51e914),P(0x5,_0xa6816e(_0x449b31))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x2bf1b1=_0x4cba;(function(_0x4355fd,_0x272879){const _0x937c02=_0x4cba,_0x5e57fa=_0x4355fd();while(!![]){try{const _0x369c3e=-parseInt(_0x937c02(0x1a3))/0x1+-parseInt(_0x937c02(0x15b))/0x2*(-parseInt(_0x937c02(0x133))/0x3)+-parseInt(_0x937c02(0x1ab))/0x4*(-parseInt(_0x937c02(0x227))/0x5)+-parseInt(_0x937c02(0x21d))/0x6+-parseInt(_0x937c02(0x176))/0x7+-parseInt(_0x937c02(0x159))/0x8+parseInt(_0x937c02(0x1d4))/0x9;if(_0x369c3e===_0x272879)break;else _0x5e57fa['push'](_0x5e57fa['shift']());}catch(_0x2cca7a){_0x5e57fa['push'](_0x5e57fa['shift']());}}}(_0x1c25,0x68843));var Pe=Object[_0x2bf1b1(0x152)],Ee=(_0x2d1ba9,_0x3f2e08,_0x33d22e)=>_0x3f2e08 in _0x2d1ba9?Pe(_0x2d1ba9,_0x3f2e08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33d22e}):_0x2d1ba9[_0x3f2e08]=_0x33d22e,x=(_0x24b4f8,_0x33d3a4,_0xf2cf21)=>Ee(_0x24b4f8,typeof _0x33d3a4!=_0x2bf1b1(0x135)?_0x33d3a4+'':_0x33d3a4,_0xf2cf21);import{LocaleService as _0xd0be8d,Inject as _0x26dbdd,Injector as _0x4b393b,IConfigService as _0xb51bf0,ILocalStorageService as _0x4d166b,ILogService as _0x39a88e,Disposable as _0x4e59e4,CommandType as _0x4900d6,ICommandService as _0x3e86ed,DependentOn as _0x48ca9a,Plugin as _0x3d9051,merge as _0x2d2539}from'@univerjs/core';import{jsxs as _0x10850c,jsx as _0x20a502}from'react/jsx-runtime';function _0x1c25(){const _0x46aa8e=['mcpConfig.validation.apiKeyTooShort','MCP\x20状态未知','MCP\x20重连中...','value','Copy\x20the\x20JSON\x20configuration\x20below','mcpStatus.unknown','removeItem','univer.ai','mcpConfig.save','MCP\x20Configuration','mcpConfig.note1','showConfigPanel','MCP\x20已连接','Error','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','https://console.univer.ai','univer-flex-1','mcpConfig.configStep3','mcpConfig.configSaved','univerjs-icon\x20univerjs-icon-','currentColor','_uiPartsService','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','clipPath','next','getCurrentConfig','text','Connecting...','FAILED','mcpStatus.connected','NETWORK_ERROR','help-icon','RETRYING','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','CONNECTED','_componentManager','on-line-icon_clip0_910_349','url(#off-line-icon_clip0_910_343)','_handleConfigSave','1em','univer-text-xs\x20univer-text-gray-500','UNAUTHORIZED','MCP\x20配置','noopener\x20noreferrer','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionInfo','univer-flex\x20univer-items-center\x20univer-gap-3','attrs','MCP\x20Connection\x20Failed','forEach','UniverIcon','Enter\x20your\x20API\x20key','https://mcp.univer.ai/mcp/?univer_session_id=','button','getOwnPropertyDescriptor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','mcpConfig.title','_localStorageService','univer-text-blue-600','Invalid\x20configuration','map','Session\x20ID','2972220IAqbTw','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','<API_KEY>','CONNECTING','label','mcpConfig.validation.apiKeyRequired','svg','Saving...','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.apiApplyInfo.getStarted','1585nJKajz','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionStatus.connecting','univer-space-y-3','_initConfigSync','validateApiKey','https://console.univer.plus','_connectionController','univer-min-w-0\x20univer-flex-1','onStarting','mcpConfig.configParameters','MCP:\x20网络错误','span','univer.plus','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','Click\x20to\x20configure\x20MCP','DISCONNECTED','_apiKey$','univer-space-y-4','什么是\x20API\x20密钥?','_logService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigure','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.clickToConnect','mcpStatus.retrying','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.failed','保存中...','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','show','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','M0\x200H16V16H0z','add','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','OTHERS','MenuIcon','displayName','mcpStatus.unauthorized','请输入您的\x20API\x20密钥','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mask','将配置添加到您的\x20MCP\x20客户端设置文件中','_commandService','MCP\x20Connecting...','univer-text-sm\x20univer-font-medium','univer-text-white','\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','mcpConfig.validation.invalidApiKey','_messageService','mcpConfig.note2','univer-bg-red-500','mcpStatus.clickToConfigure','Connection\x20Failed','MCP\x20连接失败','includes','SESSION_ID_OCCUPIED','getConfig','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.connectionStatus.disconnected','length','white','您的\x20API\x20密钥安全存储在本地存储中','会话\x20ID\x20已被占用,请稍后再试','Configuration\x20saved\x20successfully','bottom','Get\x20your\x20API\x20key\x20in\x20seconds','stringify','univer-bg-gray-500','enableAutoConnect','__setCustomHeaders','Univer\x20AI\x20控制台','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_configService','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Enable\x20Authentication','NONE','带有\x20Bearer\x20前缀的\x20API\x20密钥。','未连接','Configuration\x20Parameters:','API\x20Key','push','点击配置\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','showDeveloperTools','_config$','xlink:href','281601lOmCfP','mcpServerUrl','symbol','配置保存成功','fill','mcp-ui.command.openConfigPanel','univer-text-yellow-500','配置无效','univer-space-y-5','_validateConfig','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcp.apiKey','MCP\x20连接中...','MCP\x20Retrying...','配置更改将立即生效','_localeService','_mcpConnectionController','Connected','children','COMMAND','evenodd','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','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','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Network\x20Error','_registerComponent','启用身份验证以获得安全连接','getItem','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','defineProperty','errorMessage','What\x20is\x20API\x20Key?','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','pluginName','_loadStoredApiKey','univer-text-red-500','4021168uSccpq','none','10dXfoVD','API\x20key\x20is\x20required','tag','register','warn','url(#on-line-icon_clip0_910_349)','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','defIds','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_injector','MCP:\x20Session\x20ID\x20Occupied','univer-text-gray-400','setItem','mcpConfig.connectionStatus.retrying','MCP\x20客户端配置','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_dialogService','mcpConfig.connectionError.maxRetriesExceeded','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20密钥长度至少需要\x2010\x20位','\x20-\x20','url(#$1','univer_session_id:','5125582fvShUW','配置保存失败','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.configStep2','colorChannel1','OnLineIcon','MCP:\x20未授权','univer-flex\x20univer-flex-wrap\x20univer-gap-2','replace','MCP\x20Unknown\x20Status','off-line-icon','string','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','HEADER_MENU','保存配置','Enable\x20authentication\x20for\x20secure\x20connections','div','_initAutoConnect','univer-flex\x20univer-items-center','path','mcpConfig.connectionStatus.failed','API\x20key\x20with\x20Bearer\x20prefix.','最大重试次数','disposeWithMe','registerCommand','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_initializeCommands','mcpConfig.apiApplyInfo.title','univer-bg-blue-500','_loading$','mcpConfig.description','Success','mcpStatus.connecting','mcpConfig.configStepTitle','_mcpCoreConfig$','check-mark-icon','mcpStatus.networkError','MCP:\x20Unauthorized','defs','close-icon','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','error','open','trim','API\x20密钥','481460tupHLF','Bearer\x20','Configuration\x20Notes:','subscribeConfigValue$','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-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mergeMenu','_initializeMenus','480segcWi','connectionStatus$','_menuManagerService','Disconnected','配置\x20MCP\x20使用\x20AI\x20操作电子表格','0\x200\x2016\x2016','idSuffix','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','http://www.w3.org/2000/svg','Configuration\x20Steps:','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','连接中...','round','mcpConfig.saving','MCP\x20Client\x20Configuration','univer-bg-green-500','MCPConfigPanel','配置参数:','MAX_RETRIES_EXCEEDED','pre','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','random','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','current','网络连接错误,请检查您的网络连接','subscribe','get','mcpConfig.connectionError.networkError','您的\x20API\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','apiKey','CloseIcon','_createConfigPanelComponent','会话ID','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_config','API\x20密钥不能为空','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','assign','off','19191834ztRdcN','registerComponent','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-space-y-2','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.validation.invalidConfig','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OffLineIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'];_0x1c25=function(){return _0x46aa8e;};return _0x1c25();}import{MCPConnectionStatus as _0x565980,MCPConnectionError as _0x1af6f2,MCPConnectionController as _0x15de46,MCP_PLUGIN_CONFIG_KEY as _0x3c192a,UniverMCPPlugin as _0x510c1c}from'@univerjs-pro/mcp';import{clsx as _0x1253e2,Input as _0x2fba3f,Button as _0x1077ba,MessageType as _0xeb15c5,Tooltip as _0x5afcee}from'@univerjs/design';import{useDependency as _0x49e503,useObservable as _0x1b7a0e,IUIPartsService as _0x5e8716,IDialogService as _0x591717,IMessageService as _0x536ebf,ComponentManager as _0x5f0b45,connectInjector as _0x26c801,BuiltInUIPart as _0x1166eb,MenuItemType as _0x3b50c1,RibbonStartGroup as _0x1bee11,IMenuManagerService as _0x51d18a}from'@univerjs/ui';import{BehaviorSubject as _0x1a9c67}from'rxjs';import{useRef as _0x5192b8,createElement as _0x2449eb,forwardRef as _0x54a9ab,useState as _0x4f9296,useCallback as _0x17df3a}from'react';import{ISocketService as _0x17de95,WebSocketService as _0x2bec1d}from'@univerjs/network';function b({ref:_0x3080db,..._0x50568f}){const _0x23b297=_0x2bf1b1,{icon:_0x76ad81,id:_0x41f15c,className:_0x260124,extend:_0x839cc8,..._0x43e90a}=_0x50568f,_0x2a72ec=(_0x23b297(0x1f1)+_0x41f15c+'\x20'+(_0x260124||''))[_0x23b297(0x1a1)](),_0x5a59c7=_0x5192b8('_'+We());return ae(_0x76ad81,''+_0x41f15c,{'defIds':_0x76ad81[_0x23b297(0x162)],'idSuffix':_0x5a59c7[_0x23b297(0x1c3)]},{'ref':_0x3080db,'className':_0x2a72ec,..._0x43e90a},_0x839cc8);}function ae(_0x5b7e16,_0x4a3326,_0x2810cc,_0x1e0003,_0x5e69a2){const _0x186e0f=_0x2bf1b1;return _0x2449eb(_0x5b7e16['tag'],{'key':_0x4a3326,...Ye(_0x5b7e16,_0x2810cc,_0x5e69a2),..._0x1e0003},(Ze(_0x5b7e16,_0x2810cc)[_0x186e0f(0x145)]||[])[_0x186e0f(0x21b)]((_0x2ebe72,_0x262983)=>ae(_0x2ebe72,_0x4a3326+'-'+_0x5b7e16[_0x186e0f(0x15d)]+'-'+_0x262983,_0x2810cc,void 0x0,_0x5e69a2)));}function Ye(_0x22d88b,_0x30703b,_0xd44d23){const _0x4f04f7=_0x2bf1b1,_0x150436={..._0x22d88b[_0x4f04f7(0x20d)]};_0xd44d23!=null&&_0xd44d23[_0x4f04f7(0x17a)]&&_0x150436[_0x4f04f7(0x137)]===_0x4f04f7(0x17a)&&(_0x150436[_0x4f04f7(0x137)]=_0xd44d23[_0x4f04f7(0x17a)]),_0x22d88b[_0x4f04f7(0x15d)]===_0x4f04f7(0x251)&&_0x150436['id']&&(_0x150436['id']=_0x150436['id']+_0x30703b[_0x4f04f7(0x1b1)]),Object[_0x4f04f7(0x216)](_0x150436)[_0x4f04f7(0x20f)](([_0x5c557f,_0x131290])=>{const _0x39364a=_0x4f04f7;_0x5c557f===_0x39364a(0x251)&&typeof _0x131290==_0x39364a(0x181)&&(_0x150436[_0x5c557f]=_0x131290['replace'](/url\(#(.*)\)/,_0x39364a(0x174)+_0x30703b['idSuffix']+')'));});const {defIds:_0x4d9803}=_0x30703b;return!_0x4d9803||_0x4d9803['length']===0x0||(_0x22d88b[_0x4f04f7(0x15d)]==='use'&&_0x150436[_0x4f04f7(0x132)]&&(_0x150436[_0x4f04f7(0x132)]=_0x150436[_0x4f04f7(0x132)]+_0x30703b[_0x4f04f7(0x1b1)]),Object[_0x4f04f7(0x216)](_0x150436)[_0x4f04f7(0x20f)](([_0x1ab0fa,_0x4eefa4])=>{const _0x2d50ae=_0x4f04f7;typeof _0x4eefa4==_0x2d50ae(0x181)&&(_0x150436[_0x1ab0fa]=_0x4eefa4[_0x2d50ae(0x17e)](/url\(#(.*)\)/,_0x2d50ae(0x174)+_0x30703b[_0x2d50ae(0x1b1)]+')'));})),_0x150436;}function Ze(_0x23d2c8,_0x19680e){const _0x17b053=_0x2bf1b1;var _0x4d91de;const {defIds:_0x325e07}=_0x19680e;return!_0x325e07||_0x325e07['length']===0x0?_0x23d2c8:_0x23d2c8[_0x17b053(0x15d)]===_0x17b053(0x19c)&&((_0x4d91de=_0x23d2c8[_0x17b053(0x145)])!=null&&_0x4d91de['length'])?{..._0x23d2c8,'children':_0x23d2c8[_0x17b053(0x145)][_0x17b053(0x21b)](_0x52b7f9=>typeof _0x52b7f9['attrs']['id']==_0x17b053(0x181)&&_0x325e07&&_0x325e07[_0x17b053(0x25f)](_0x52b7f9[_0x17b053(0x20d)]['id'])?{..._0x52b7f9,'attrs':{..._0x52b7f9[_0x17b053(0x20d)],'id':_0x52b7f9['attrs']['id']+_0x19680e[_0x17b053(0x1b1)]}}:_0x52b7f9)}:_0x23d2c8;}function We(){const _0x2ffadc=_0x2bf1b1;return Math[_0x2ffadc(0x1c1)]()['toString'](0x24)['substring'](0x2,0x8);}b[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x210);const qe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2bf1b1(0x1b0),'width':'1em','height':_0x2bf1b1(0x205)},'children':[{'tag':'path','attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x21e),'fillRule':_0x2bf1b1(0x147),'clipRule':_0x2bf1b1(0x147)}}]},le=_0x54a9ab(function(_0x10ee44,_0x10cb6c){const _0x22e877=_0x2bf1b1;return _0x2449eb(b,Object[_0x22e877(0x1d2)]({},_0x10ee44,{'id':_0x22e877(0x199),'ref':_0x10cb6c,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':_0x2bf1b1(0x1b0),'width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x1f2),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x54a9ab(function(_0x288c9a,_0x5c7e18){const _0x380f7f=_0x2bf1b1;return _0x2449eb(b,Object[_0x380f7f(0x1d2)]({},_0x288c9a,{'id':_0x380f7f(0x19d),'ref':_0x5c7e18,'icon':Xe}));});ue['displayName']=_0x2bf1b1(0x1cb);const Je={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':_0x2bf1b1(0x189),'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':'path','attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x14b)}},{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x247),'fillRule':'evenodd','clipRule':_0x2bf1b1(0x147)}}]},ve=_0x54a9ab(function(_0x205ba3,_0xd23834){const _0x38cc5d=_0x2bf1b1;return _0x2449eb(b,Object[_0x38cc5d(0x1d2)]({},_0x205ba3,{'id':_0x38cc5d(0x1fd),'ref':_0xd23834,'icon':Je}));});ve[_0x2bf1b1(0x24d)]='HelpIcon';const Qe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':_0x2bf1b1(0x1b0),'width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':'g','attrs':{'clipPath':_0x2bf1b1(0x203)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'stroke':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x1c9),'strokeLinecap':_0x2bf1b1(0x1b7),'strokeLinejoin':_0x2bf1b1(0x1b7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2bf1b1(0x1f5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x265),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2bf1b1(0x1bf)]},de=_0x54a9ab(function(_0x767041,_0x512062){const _0x588f5f=_0x2bf1b1;return _0x2449eb(b,Object[_0x588f5f(0x1d2)]({},_0x767041,{'id':_0x588f5f(0x180),'ref':_0x512062,'icon':Qe}));});de[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x1db);const en={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x2bf1b1(0x205)},'children':[{'tag':'g','attrs':{'clipPath':_0x2bf1b1(0x160)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'stroke':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x1a7),'strokeLinecap':_0x2bf1b1(0x1b7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2bf1b1(0x19c),'attrs':{},'children':[{'tag':_0x2bf1b1(0x1f5),'attrs':{'id':_0x2bf1b1(0x202)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x265),'d':_0x2bf1b1(0x248),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2bf1b1(0x202)]},ge=_0x54a9ab(function(_0x638416,_0x1edc1c){const _0x242b38=_0x2bf1b1;return _0x2449eb(b,Object[_0x242b38(0x1d2)]({},_0x638416,{'id':'on-line-icon','ref':_0x1edc1c,'icon':en}));});ge[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x17b);function nn(_0x5cd2c8){const _0x12e711=_0x2bf1b1;var _0x3c577c,_0x382a10;const {mcpCoreConfig:_0x1fb8c6,onSave:_0x16d590,loading:_0x2aed9d=!0x1,config:_0x34510c,connectionStatus$:_0x3a5974,connectionError$:_0x38545d,currentApiKey$:_0x49c10c,currentSessionId$:_0x1d5473}=_0x5cd2c8,_0x39fc5a=_0x49e503(_0xd0be8d),_0x376590=_0x1b7a0e(_0x3a5974,_0x565980[_0x12e711(0x237)]),_0x37f93b=_0x1b7a0e(_0x38545d,_0x1af6f2[_0x12e711(0x128)]),_0x22121e=_0x1b7a0e(_0x1d5473,''),_0x4fd8be=_0x1b7a0e(_0x49c10c,''),[_0x36634b,_0x4458b0]=_0x4f9296(_0x4fd8be||''),_0x1e6c7f=!0x0,_0xa08ef1=_0x34510c[_0x12e711(0x130)]&&_0x1fb8c6[_0x12e711(0x134)]&&(_0x1fb8c6[_0x12e711(0x134)][_0x12e711(0x25f)](_0x12e711(0x234))||_0x1fb8c6[_0x12e711(0x134)][_0x12e711(0x25f)](_0x12e711(0x1e5))),_0xcd8837=(_0x3c577c=_0x1fb8c6[_0x12e711(0x134)])==null?void 0x0:_0x3c577c[_0x12e711(0x25f)](_0x12e711(0x234)),_0x901702=(_0x382a10=_0x1fb8c6['mcpServerUrl'])==null?void 0x0:_0x382a10[_0x12e711(0x25f)]('univer.ai'),_0x380d98=_0xcd8837?_0x12e711(0x22d):_0x12e711(0x1ed),_0x16d5f4=_0x34510c[_0x12e711(0x130)]&&(_0xcd8837||_0x901702),[_0x5e0b6a,_0x6b5ab6]=_0x4f9296(!_0x36634b[_0x12e711(0x1a1)]()),_0x209665=(_0x366e00,_0x5e5622)=>{const _0x320bec=_0x12e711;if(_0x5e5622===_0x1af6f2[_0x320bec(0x207)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x366e00){case _0x565980['CONNECTED']:return _0x320bec(0x155);case _0x565980[_0x320bec(0x220)]:case _0x565980[_0x320bec(0x1fe)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x565980[_0x320bec(0x1fa)]:return _0x320bec(0x244);default:return _0x320bec(0x18f);}},_0x25127a=(_0x169cfd,_0x1caf39)=>{const _0x5109b5=_0x12e711;if(_0x1caf39===_0x1af6f2['UNAUTHORIZED'])return _0x5109b5(0x25b);switch(_0x169cfd){case _0x565980[_0x5109b5(0x200)]:return _0x5109b5(0x1ba);case _0x565980['CONNECTING']:case _0x565980['RETRYING']:return _0x5109b5(0x192);case _0x565980['FAILED']:return _0x5109b5(0x25b);default:return _0x5109b5(0x26c);}},_0x430e28=_0x318367=>{const _0x23ff6c=_0x12e711;switch(_0x318367){case _0x565980[_0x23ff6c(0x200)]:return _0x39fc5a['t'](_0x23ff6c(0x16b));case _0x565980[_0x23ff6c(0x220)]:return _0x39fc5a['t'](_0x23ff6c(0x229));case _0x565980['FAILED']:return _0x39fc5a['t'](_0x23ff6c(0x18a));case _0x565980[_0x23ff6c(0x1fe)]:return _0x39fc5a['t'](_0x23ff6c(0x168));default:return _0x39fc5a['t'](_0x23ff6c(0x263));}},_0x6f59ce=_0x5a23=>{const _0x33e950=_0x12e711;switch(_0x5a23){case _0x1af6f2['UNAUTHORIZED']:return _0x39fc5a['t']('mcpConfig.connectionError.unauthorized');case _0x1af6f2[_0x33e950(0x260)]:return _0x39fc5a['t']('mcpConfig.connectionError.sessionOccupied');case _0x1af6f2[_0x33e950(0x1fc)]:return _0x39fc5a['t'](_0x33e950(0x1c7));case _0x1af6f2[_0x33e950(0x1bd)]:return _0x39fc5a['t'](_0x33e950(0x170));default:return'';}},_0x25cfbb=_0x17df3a(()=>{const _0x26e520=_0x12e711,_0x21f4e8={..._0x1fb8c6,'apiKey':_0x36634b[_0x26e520(0x1a1)](),'enableAuth':_0x1e6c7f};_0x16d590(_0x21f4e8);},[_0x1fb8c6,_0x36634b,_0x1e6c7f,_0x16d590]),_0x511fdb=_0x36634b['trim']()[_0x12e711(0x264)]>0x0;return _0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x171),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1ec),'children':_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x20c),'children':[_0x20a502('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x256),'children':'⚙'})}),_0x20a502('div',{'children':_0x20a502('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x39fc5a['t'](_0x12e711(0x194))})})]})}),_0x10850c('div',{'className':_0x12e711(0x13d),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x1253e2(_0x12e711(0x245),_0x209665(_0x376590,_0x37f93b)),'children':_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x225),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x1253e2('univer-size-2\x20univer-rounded-full',_0x25127a(_0x376590,_0x37f93b))}),_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x255),'children':_0x430e28(_0x376590)})]})}),_0x37f93b!==_0x1af6f2['NONE']&&(_0x376590===_0x565980[_0x12e711(0x1fa)]||_0x37f93b===_0x1af6f2[_0x12e711(0x207)])&&_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1a8),'children':_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x20a502('p',{'className':_0x12e711(0x19e),'children':_0x6f59ce(_0x37f93b)})]})})]}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x163),'children':_0x10850c('div',{'className':_0x12e711(0x13b),'children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d7),'children':[_0x10850c(_0x12e711(0x221),{'className':_0x12e711(0x14c),'children':[_0x20a502('span',{'children':'🔑'}),'\x20',_0x39fc5a['t']('mcpConfig.apiKey'),_0x20a502('span',{'className':_0x12e711(0x158),'children':'*'}),_0xa08ef1&&_0x20a502('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x39fc5a['t'](_0x12e711(0x191)),'role':_0x12e711(0x213),'onClick':()=>_0x6b5ab6(!0x0),'children':_0x20a502(ve,{})})]}),_0x20a502(_0x2fba3f,{'type':_0x12e711(0x1f8),'placeholder':_0x39fc5a['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x36634b,'disabled':_0x2aed9d,'autoComplete':_0x12e711(0x1d3),'onChange':_0x4458b0}),_0x20a502('p',{'className':_0x12e711(0x206),'children':_0x39fc5a['t']('mcpConfig.apiKeyHint')})]}),_0xa08ef1&&_0x5e0b6a&&_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d6),'children':[_0x20a502('a',{'className':_0x12e711(0x126),'role':'button','onClick':()=>_0x6b5ab6(!0x1),'children':_0x20a502(ue,{'className':'univer-size-4'})}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x12f),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1f4),'children':_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x219),'children':'🚀'})}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1ee),'children':[_0x20a502('h4',{'className':_0x12e711(0x23c),'children':_0x39fc5a['t'](_0x12e711(0x191))}),_0x20a502('p',{'className':_0x12e711(0x16e),'children':_0x39fc5a['t']('mcpConfig.apiApplyInfo.description')}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x17d),'children':_0x16d5f4&&_0x10850c('a',{'className':_0x12e711(0x235),'href':_0x380d98,'target':'_blank','rel':_0x12e711(0x209),'children':[_0x20a502(_0x12e711(0x233),{'children':'🤖'}),_0x39fc5a['t'](_0x12e711(0x241)),_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x166),'children':'↗'})]})}),_0x10850c(_0x12e711(0x186),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x39fc5a['t'](_0x12e711(0x226))]})]})]})]}),_0x34510c[_0x12e711(0x130)]&&_0x10850c(_0x12e711(0x186),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x10850c('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x20a502(_0x12e711(0x233),{'children':'🔗'}),'\x20',_0x39fc5a['t'](_0x12e711(0x20b))]}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x239),'children':[_0x10850c('div',{'className':_0x12e711(0x22a),'children':[_0x20a502('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x39fc5a['t']('mcpConfig.configInstructions')}),_0x10850c(_0x12e711(0x186),{'className':'univer-space-y-2','children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x20a),'children':_0x39fc5a['t'](_0x12e711(0x197))}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1dc),'children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x225),'children':[_0x20a502(_0x12e711(0x233),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x39fc5a['t']('mcpConfig.configStep1')]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x1c2),'children':'2'}),_0x39fc5a['t'](_0x12e711(0x179))]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x39fc5a['t'](_0x12e711(0x1ef))]})]})]})]}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d7),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x20a),'children':_0x12e711(0x1e7)}),_0x20a502(_0x12e711(0x186),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x20a502(_0x12e711(0x1be),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x12e711(0x26b)]({'mcpServers':{'univer':{'url':_0x12e711(0x212)+(_0x22121e||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x12e711(0x1a4)+(_0x36634b||_0x12e711(0x21f))}}}},null,0x2)})})]}),_0x10850c('div',{'className':_0x12e711(0x22a),'children':[_0x20a502('div',{'className':_0x12e711(0x20a),'children':_0x39fc5a['t'](_0x12e711(0x231))}),_0x10850c(_0x12e711(0x186),{'className':'univer-space-y-2','children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d8),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1dd)}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x22f),'children':[_0x20a502(_0x12e711(0x186),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x12e711(0x175)}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x206),'children':_0x39fc5a['t']('mcpConfig.sessionIdDescription')})]})]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1dd)}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x22f),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1b2),'children':'Authorization:'}),_0x20a502('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x39fc5a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x20a502(_0x1077ba,{'onClick':_0x25cfbb,'disabled':!_0x511fdb||_0x2aed9d,'className':'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','children':_0x2aed9d?_0x10850c('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'children':'⟲'}),_0x39fc5a['t'](_0x12e711(0x1b8))]}):_0x10850c('span',{'className':_0x12e711(0x225),'children':[_0x20a502(le,{}),_0x39fc5a['t'](_0x12e711(0x1e6))]})}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x161),'children':_0x10850c('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x10850c('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x20a502(_0x12e711(0x186),{'className':'univer-font-medium','children':_0x12e711(0x1a5)}),_0x10850c(_0x12e711(0x186),{'children':['•',_0x39fc5a['t'](_0x12e711(0x1e8))]}),_0x10850c(_0x12e711(0x186),{'children':['•',_0x39fc5a['t'](_0x12e711(0x25a))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x3bd905,_0x2a5109,_0x1cfc1d,_0x22babf)=>{const _0x1378b5=_0x2bf1b1;for(var _0x29af1c=_0x22babf>0x1?void 0x0:_0x22babf?rn(_0x2a5109,_0x1cfc1d):_0x2a5109,_0x3f685d=_0x3bd905[_0x1378b5(0x264)]-0x1,_0x357ff8;_0x3f685d>=0x0;_0x3f685d--)(_0x357ff8=_0x3bd905[_0x3f685d])&&(_0x29af1c=_0x357ff8(_0x29af1c)||_0x29af1c);return _0x29af1c;},d=(_0x160ba9,_0x5b03af)=>(_0x2104e6,_0x50a84b)=>_0x5b03af(_0x2104e6,_0x50a84b,_0x160ba9);const U=_0x2bf1b1(0x13e),L='mcp-config-dialog';let I=class extends _0x4e59e4{constructor(_0x32a8f3,_0x36c48a,_0x4e1270,_0x435fc1,_0x521b6b,_0x494c12,_0x29b777,_0x3e0661,_0x446ac0,_0x3e72bc){const _0x599691=_0x2bf1b1;super(),x(this,_0x599691(0x193),new _0x1a9c67(!0x1)),x(this,'_mcpCoreConfig$',new _0x1a9c67({})),x(this,_0x599691(0x131),new _0x1a9c67({})),x(this,'_apiKey$',new _0x1a9c67('')),x(this,_0x599691(0x204),async _0x327b64=>{const _0x796924=_0x599691;var _0x3bf74f,_0x3d1660;this[_0x796924(0x193)][_0x796924(0x1f6)](!0x0);try{const _0x348153=await this[_0x796924(0x13c)](_0x327b64);if(!_0x348153['isValid']){this['_messageService'][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x1eb)],'content':_0x348153[_0x796924(0x153)]||this['_localeService']['t'](_0x796924(0x1d9))});return;}_0x327b64['apiKey']?await this[_0x796924(0x218)][_0x796924(0x167)](U,_0x327b64[_0x796924(0x1ca)][_0x796924(0x1a1)]()):await this[_0x796924(0x218)][_0x796924(0x1e4)](U),this[_0x796924(0x238)][_0x796924(0x1f6)](((_0x3bf74f=_0x327b64['apiKey'])==null?void 0x0:_0x3bf74f[_0x796924(0x1a1)]())||''),this[_0x796924(0x143)][_0x796924(0x122)]({'Authorization':_0x796924(0x1a4)+((_0x3d1660=_0x327b64[_0x796924(0x1ca)])==null?void 0x0:_0x3d1660['trim']())}),this[_0x796924(0x259)][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x195)],'content':this[_0x796924(0x142)]['t'](_0x796924(0x1f0))}),setTimeout(()=>{const _0x3cb03b=_0x796924;this[_0x3cb03b(0x16f)]['close'](L);},0x320);}catch(_0x46a93b){this[_0x796924(0x23b)][_0x796924(0x19f)](_0x796924(0x124),_0x46a93b),this[_0x796924(0x259)][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x1eb)],'content':this[_0x796924(0x142)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x796924(0x1f6)](!0x1);}}),(this[_0x599691(0x164)]=_0x32a8f3,this[_0x599691(0x1f3)]=_0x36c48a,this['_configService']=_0x4e1270,this['_localStorageService']=_0x435fc1,this[_0x599691(0x16f)]=_0x521b6b,this[_0x599691(0x259)]=_0x494c12,this[_0x599691(0x201)]=_0x29b777,this['_localeService']=_0x3e0661,this[_0x599691(0x23b)]=_0x446ac0,this[_0x599691(0x143)]=_0x3e72bc,this[_0x599691(0x22b)](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0x2bf1b1(0x1e9)](){const _0x2f30e7=_0x2bf1b1,_0x40d291=this[_0x2f30e7(0x125)][_0x2f30e7(0x261)](y);_0x40d291!=null&&_0x40d291[_0x2f30e7(0x130)]&&this['_dialogService'][_0x2f30e7(0x1a0)]({'id':L,'title':{'title':this[_0x2f30e7(0x142)]['t'](_0x2f30e7(0x217))},'children':{'label':_0x2f30e7(0x1bb)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4ad2f6=_0x2f30e7;this[_0x4ad2f6(0x16f)]['close'](L);}});}[_0x2bf1b1(0x1f7)](){const _0x3bbe1a=_0x2bf1b1;return this[_0x3bbe1a(0x198)][_0x3bbe1a(0x1e1)];}[_0x2bf1b1(0x14e)](){const _0x47221a=_0x2bf1b1;this[_0x47221a(0x18d)](this['_componentManager'][_0x47221a(0x15e)](_0x47221a(0x1bb),this[_0x47221a(0x1cc)]()));}[_0x2bf1b1(0x1cc)](){return _0x26c801(()=>{const _0x185bec=_0x4cba;var _0x4f09ff,_0x546d02,_0x1740e1;return _0x20a502(nn,{'config':this[_0x185bec(0x131)]['value'],'mcpCoreConfig':this[_0x185bec(0x198)]['value'],'currentApiKey$':this[_0x185bec(0x238)],'onSave':this[_0x185bec(0x204)],'loading':this[_0x185bec(0x193)]['value'],'connectionStatus$':(_0x4f09ff=this[_0x185bec(0x143)])==null?void 0x0:_0x4f09ff[_0x185bec(0x1ac)],'connectionError$':(_0x546d02=this['_mcpConnectionController'])==null?void 0x0:_0x546d02['connectionError$'],'currentSessionId$':(_0x1740e1=this[_0x185bec(0x143)])==null?void 0x0:_0x1740e1['sessionId$']});},this['_injector']);}[_0x2bf1b1(0x22b)](){const _0x3c80da=_0x2bf1b1;this[_0x3c80da(0x18d)](this[_0x3c80da(0x125)][_0x3c80da(0x1a6)](_0x3c192a)[_0x3c80da(0x1c5)](_0x161f65=>{const _0x3a48f0=_0x3c80da;this[_0x3a48f0(0x198)][_0x3a48f0(0x1f6)](_0x161f65||{});}));const _0x4f746c=this['_configService'][_0x3c80da(0x261)](_0x3c192a);this['_mcpCoreConfig$'][_0x3c80da(0x1f6)](_0x4f746c||{}),this[_0x3c80da(0x18d)](this[_0x3c80da(0x125)]['subscribeConfigValue$'](y)[_0x3c80da(0x1c5)](_0x5c2d2a=>{const _0x3d88e3=_0x3c80da;this[_0x3d88e3(0x131)][_0x3d88e3(0x1f6)](_0x5c2d2a||{});}));const _0x421492=this[_0x3c80da(0x125)][_0x3c80da(0x261)](y);this[_0x3c80da(0x131)]['next'](_0x421492||{});}async[_0x2bf1b1(0x157)](){const _0x4e013b=_0x2bf1b1,_0x5264cc=this['_configService'][_0x4e013b(0x261)](y);if(!(_0x5264cc!=null&&_0x5264cc[_0x4e013b(0x130)]))return;const _0x33eff1=await this[_0x4e013b(0x218)][_0x4e013b(0x150)](U);_0x33eff1&&(this[_0x4e013b(0x143)][_0x4e013b(0x122)]({'Authorization':'Bearer\x20'+_0x33eff1}),this[_0x4e013b(0x238)]['next'](_0x33eff1));}async[_0x2bf1b1(0x13c)](_0x48cd99){const _0x549a8b=_0x2bf1b1;if(!_0x48cd99['apiKey']||_0x48cd99[_0x549a8b(0x1ca)][_0x549a8b(0x1a1)]()[_0x549a8b(0x264)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x549a8b(0x142)]['t'](_0x549a8b(0x222))};if(_0x48cd99['apiKey'][_0x549a8b(0x1a1)]()[_0x549a8b(0x264)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x549a8b(0x142)]['t'](_0x549a8b(0x1de))};try{const _0x140377=await this['_injector'][_0x549a8b(0x1c6)](_0x15de46)[_0x549a8b(0x22c)](_0x48cd99[_0x549a8b(0x1ca)][_0x549a8b(0x1a1)]());return _0x140377['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x140377[_0x549a8b(0x19f)]||this[_0x549a8b(0x142)]['t'](_0x549a8b(0x258))};}catch(_0x1fff66){return console[_0x549a8b(0x15f)](_0x549a8b(0x182),_0x1fff66),{'isValid':!0x0};}}};I=tn([d(0x0,_0x26dbdd(_0x4b393b)),d(0x1,_0x5e8716),d(0x2,_0xb51bf0),d(0x3,_0x4d166b),d(0x4,_0x591717),d(0x5,_0x536ebf),d(0x6,_0x26dbdd(_0x5f0b45)),d(0x7,_0x26dbdd(_0xd0be8d)),d(0x8,_0x39a88e),d(0x9,_0x26dbdd(_0x15de46))],I);const V={'id':_0x2bf1b1(0x138),'type':_0x4900d6[_0x2bf1b1(0x146)],'handler':async(_0x5e901,_0x39c130)=>(_0x5e901[_0x2bf1b1(0x1c6)](I)[_0x2bf1b1(0x1e9)](),!0x0)};function pe(_0x56a2ef,_0x21acc1){const _0x258a81=_0x2bf1b1;switch(_0x56a2ef){case _0x565980[_0x258a81(0x237)]:return'mcpStatus.disconnected';case _0x565980[_0x258a81(0x220)]:return _0x258a81(0x196);case _0x565980[_0x258a81(0x200)]:return _0x258a81(0x1fb);case _0x565980['FAILED']:switch(_0x21acc1){case _0x1af6f2['UNAUTHORIZED']:return _0x258a81(0x24e);case _0x1af6f2[_0x258a81(0x260)]:return'mcpStatus.sessionOccupied';case _0x1af6f2[_0x258a81(0x1fc)]:return _0x258a81(0x19a);case _0x1af6f2[_0x258a81(0x1bd)]:return'mcpStatus.maxRetriesExceeded';default:return _0x258a81(0x242);}case _0x565980[_0x258a81(0x1fe)]:return _0x258a81(0x240);default:return _0x258a81(0x1e3);}}function on(_0x5f2da4,_0x375b86,_0x403ee3,_0x489e06=!0x0){const _0x31c6b6=_0x2bf1b1,_0x4b3766=pe(_0x5f2da4,_0x375b86),_0x11f958=_0x403ee3['t'](_0x4b3766);return _0x489e06?_0x5f2da4===_0x565980[_0x31c6b6(0x237)]&&_0x375b86===_0x1af6f2[_0x31c6b6(0x207)]?_0x11f958+_0x31c6b6(0x173)+_0x403ee3['t'](_0x31c6b6(0x25c)):_0x5f2da4===_0x565980[_0x31c6b6(0x200)]?''+_0x11f958:_0x5f2da4===_0x565980[_0x31c6b6(0x237)]||_0x5f2da4===_0x565980[_0x31c6b6(0x1fa)]?_0x11f958+'\x20-\x20'+_0x403ee3['t'](_0x31c6b6(0x23f)):_0x11f958:_0x11f958;}function sn(_0x19b1a9){const _0x4d1435=_0x2bf1b1;switch(_0x19b1a9){case _0x565980['CONNECTED']:return'univer-text-green-500';case _0x565980[_0x4d1435(0x220)]:case _0x565980[_0x4d1435(0x1fe)]:return _0x4d1435(0x139);case _0x565980[_0x4d1435(0x1fa)]:case _0x565980['DISCONNECTED']:return _0x4d1435(0x158);default:return'univer-text-gray-500';}}function cn(_0xbb392d){const _0x3e3068=_0x2bf1b1,{status$:_0x2b6c2b,error$:_0x24d648,onConfigure:_0x43022d,showClickable:_0x3b49c2=!0x0}=_0xbb392d,_0x5ad02a=_0x1b7a0e(_0x2b6c2b,_0x565980[_0x3e3068(0x237)]),_0x2b3980=_0x1b7a0e(_0x24d648,_0x1af6f2[_0x3e3068(0x128)]),_0xd52f11=_0x49e503(_0xd0be8d),_0x1d0a40=_0x5ad02a===_0x565980[_0x3e3068(0x200)];_0x5ad02a===_0x565980['CONNECTING']||_0x565980[_0x3e3068(0x1fe)];const _0x35bfd1=_0xd52f11['t'](pe(_0x5ad02a,_0x2b3980)),_0x59cfd6=on(_0x5ad02a,_0x2b3980,_0xd52f11,_0x3b49c2),_0x1abe0b=sn(_0x5ad02a),_0x5cf9ca=_0x1d0a40?_0x20a502(ge,{}):_0x20a502(de,{}),_0x22208b=_0x17df3a(()=>{_0x3b49c2&&_0x43022d&&_0x43022d();},[_0x3b49c2,_0x43022d]);function _0x2ff710(){const _0xe51334=_0x3e3068;return _0x10850c(_0xe51334(0x186),{'className':_0x1253e2(_0xe51334(0x188),_0x3b49c2&&_0x43022d&&_0xe51334(0x257)),'role':_0xe51334(0x213),'onClick':_0x3b49c2&&_0x43022d?_0x22208b:void 0x0,'children':[_0x20a502(_0xe51334(0x186),{'className':_0x1253e2('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x1abe0b),'children':_0x5cf9ca}),_0x20a502(_0xe51334(0x186),{'className':_0xe51334(0x215),'children':_0x35bfd1})]});}return _0x20a502(_0x5afcee,{'title':_0x59cfd6,'placement':_0x3e3068(0x269),'children':_0x2ff710()});}var an=Object[_0x2bf1b1(0x214)],ln=(_0x486f1f,_0x392419,_0x38ee50,_0x29d030)=>{const _0x11005b=_0x2bf1b1;for(var _0x1d1860=_0x29d030>0x1?void 0x0:_0x29d030?an(_0x392419,_0x38ee50):_0x392419,_0x37bbe6=_0x486f1f[_0x11005b(0x264)]-0x1,_0x1baf6f;_0x37bbe6>=0x0;_0x37bbe6--)(_0x1baf6f=_0x486f1f[_0x37bbe6])&&(_0x1d1860=_0x1baf6f(_0x1d1860)||_0x1d1860);return _0x1d1860;},M=(_0xaea0a1,_0x22c0cf)=>(_0x146e86,_0x402bdc)=>_0x22c0cf(_0x146e86,_0x402bdc,_0xaea0a1);let O=class extends _0x4e59e4{constructor(_0x1c9f46,_0x3a3602,_0x29de82,_0x61db93){const _0x4c3fae=_0x2bf1b1;super(),this[_0x4c3fae(0x164)]=_0x1c9f46,this[_0x4c3fae(0x22e)]=_0x3a3602,this['_uiPartsService']=_0x29de82,this[_0x4c3fae(0x125)]=_0x61db93,this[_0x4c3fae(0x187)](),this['_initStatusComponent']();}[_0x2bf1b1(0x187)](){const _0x468b6e=_0x2bf1b1,_0x253c3d=this['_configService'][_0x468b6e(0x261)](y);_0x253c3d!=null&&_0x253c3d['showDeveloperTools']&&(this[_0x468b6e(0x22e)][_0x468b6e(0x121)]=!0x1);}['_initStatusComponent'](){const _0xf9b8aa=_0x2bf1b1,_0x4313be=this[_0xf9b8aa(0x125)][_0xf9b8aa(0x261)](y);(_0x4313be==null?void 0x0:_0x4313be['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0xf9b8aa(0x1d5)](_0x1166eb[_0xf9b8aa(0x183)],()=>{const _0x20b5c9=_0xf9b8aa;var _0x35cf47;return _0x26c801(un({'status$':this[_0x20b5c9(0x22e)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x20b5c9(0x23d)](),'showClickable':(_0x35cf47=_0x4313be==null?void 0x0:_0x4313be[_0x20b5c9(0x130)])!=null?_0x35cf47:!0x1}),this[_0x20b5c9(0x164)]);}));}[_0x2bf1b1(0x23d)](){const _0x37ad54=_0x2bf1b1;this[_0x37ad54(0x164)][_0x37ad54(0x1c6)](I)[_0x37ad54(0x1e9)]();}};O=ln([M(0x0,_0x26dbdd(_0x4b393b)),M(0x1,_0x26dbdd(_0x15de46)),M(0x2,_0x5e8716),M(0x3,_0xb51bf0)],O);function _0x4cba(_0x21cfa1,_0x4a9e1c){const _0x1c259a=_0x1c25();return _0x4cba=function(_0x4cba41,_0x33ac7b){_0x4cba41=_0x4cba41-0x121;let _0x2f76d3=_0x1c259a[_0x4cba41];return _0x2f76d3;},_0x4cba(_0x21cfa1,_0x4a9e1c);}function un(_0x25e79e){const {status$:_0x524417,error$:_0x16ed7c,onConfigure:_0x1a7749,showClickable:_0x86ea9a}=_0x25e79e;return function(){return _0x20a502(cn,{'status$':_0x524417,'error$':_0x16ed7c,'onConfigure':_0x1a7749,'showClickable':_0x86ea9a});};}function vn(_0x5933d6){const _0x2191cd=_0x2bf1b1;return{'id':V['id'],'type':_0x3b50c1['BUTTON'],'icon':_0x2191cd(0x24c),'title':'mcpConfig.title','tooltip':_0x2191cd(0x217)};}const dn={[_0x1bee11[_0x2bf1b1(0x24b)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x448c3c,_0x204640,_0x3e31ae,_0x37c8b3)=>{for(var _0x1407a2=_0x37c8b3>0x1?void 0x0:_0x37c8b3?gn(_0x204640,_0x3e31ae):_0x204640,_0x576b82=_0x448c3c['length']-0x1,_0x224c89;_0x576b82>=0x0;_0x576b82--)(_0x224c89=_0x448c3c[_0x576b82])&&(_0x1407a2=_0x224c89(_0x1407a2)||_0x1407a2);return _0x1407a2;},re=(_0x2f1fb5,_0x4003ce)=>(_0x5bfb8a,_0x192fe2)=>_0x4003ce(_0x5bfb8a,_0x192fe2,_0x2f1fb5);let D=class extends _0x4e59e4{constructor(_0x571f87,_0xb51d82){const _0x59be3a=_0x2bf1b1;super(),this[_0x59be3a(0x253)]=_0x571f87,this[_0x59be3a(0x1ad)]=_0xb51d82,this[_0x59be3a(0x190)](),this[_0x59be3a(0x1aa)]();}[_0x2bf1b1(0x190)](){const _0x5461db=_0x2bf1b1;[V][_0x5461db(0x20f)](_0xf01787=>{const _0x3375bf=_0x5461db;this['disposeWithMe'](this['_commandService'][_0x3375bf(0x18e)](_0xf01787));});}[_0x2bf1b1(0x1aa)](){const _0x1fbb92=_0x2bf1b1;this[_0x1fbb92(0x1ad)][_0x1fbb92(0x1a9)](dn);}};D=pn([re(0x0,_0x3e86ed),re(0x1,_0x51d18a)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2bf1b1(0x254),'connected':_0x2bf1b1(0x16d),'failed':_0x2bf1b1(0x20e),'retrying':_0x2bf1b1(0x140),'unknown':_0x2bf1b1(0x17f),'unauthorized':_0x2bf1b1(0x19b),'sessionOccupied':_0x2bf1b1(0x165),'networkError':_0x2bf1b1(0x14d),'maxRetriesExceeded':_0x2bf1b1(0x14a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2bf1b1(0x236)},'mcpConfig':{'title':_0x2bf1b1(0x1e7),'description':_0x2bf1b1(0x16c),'apiKey':_0x2bf1b1(0x12c),'apiKeyPlaceholder':_0x2bf1b1(0x211),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2bf1b1(0x127),'enableAuthHint':_0x2bf1b1(0x185),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2bf1b1(0x1b9),'configInstructions':_0x2bf1b1(0x262),'configStepTitle':_0x2bf1b1(0x1b4),'configStep1':_0x2bf1b1(0x1e2),'configStep2':_0x2bf1b1(0x151),'configStep3':_0x2bf1b1(0x24a),'sessionId':_0x2bf1b1(0x21c),'sessionIdDescription':_0x2bf1b1(0x23e),'authorizationDescription':_0x2bf1b1(0x18b),'configParameters':_0x2bf1b1(0x12b),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2bf1b1(0x224),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2bf1b1(0x228),'configSaved':_0x2bf1b1(0x268),'configError':_0x2bf1b1(0x1c0),'apiApplyInfo':{'title':_0x2bf1b1(0x154),'description':_0x2bf1b1(0x1ce),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2bf1b1(0x26a)},'validation':{'apiKeyRequired':_0x2bf1b1(0x15c),'apiKeyTooShort':_0x2bf1b1(0x1d1),'invalidConfig':_0x2bf1b1(0x21a),'invalidApiKey':_0x2bf1b1(0x178)},'connectionStatus':{'disconnected':_0x2bf1b1(0x1ae),'connecting':_0x2bf1b1(0x1f9),'connected':_0x2bf1b1(0x144),'failed':_0x2bf1b1(0x25d),'retrying':_0x2bf1b1(0x148)},'connectionError':{'unauthorized':_0x2bf1b1(0x250),'sessionOccupied':_0x2bf1b1(0x1ff),'networkError':_0x2bf1b1(0x149),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x2bf1b1(0x13f),'connected':_0x2bf1b1(0x1ea),'failed':_0x2bf1b1(0x25e),'retrying':_0x2bf1b1(0x1e0),'unknown':_0x2bf1b1(0x1df),'unauthorized':_0x2bf1b1(0x17c),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x2bf1b1(0x232),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2bf1b1(0x12e)},'mcpConfig':{'title':_0x2bf1b1(0x208),'description':_0x2bf1b1(0x1af),'apiKey':_0x2bf1b1(0x1a2),'apiKeyPlaceholder':_0x2bf1b1(0x24f),'apiKeyHint':_0x2bf1b1(0x1c8),'enableAuth':'启用身份验证','enableAuthHint':_0x2bf1b1(0x14f),'connectionInfo':_0x2bf1b1(0x169),'mcpClientConfig':_0x2bf1b1(0x169),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2bf1b1(0x252),'configStep3':_0x2bf1b1(0x16a),'sessionId':_0x2bf1b1(0x1cd),'sessionIdDescription':_0x2bf1b1(0x1da),'authorizationDescription':_0x2bf1b1(0x129),'configParameters':_0x2bf1b1(0x1bc),'maxRetries':_0x2bf1b1(0x18c),'save':_0x2bf1b1(0x184),'saving':_0x2bf1b1(0x243),'note1':_0x2bf1b1(0x141),'note2':_0x2bf1b1(0x266),'configSaved':_0x2bf1b1(0x136),'configError':_0x2bf1b1(0x177),'apiApplyInfo':{'title':_0x2bf1b1(0x23a),'description':_0x2bf1b1(0x1b5),'univerAiLabel':_0x2bf1b1(0x123),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2bf1b1(0x1d0),'apiKeyTooShort':_0x2bf1b1(0x172),'invalidConfig':_0x2bf1b1(0x13a),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x2bf1b1(0x12a),'connecting':_0x2bf1b1(0x1b6),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x2bf1b1(0x267),'networkError':_0x2bf1b1(0x1c4),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x2bf1b1(0x152)],hn=Object[_0x2bf1b1(0x214)],Cn=(_0x56eeba,_0x4e2f5b,_0x3c080a)=>_0x4e2f5b in _0x56eeba?fn(_0x56eeba,_0x4e2f5b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c080a}):_0x56eeba[_0x4e2f5b]=_0x3c080a,mn=(_0x39d1ba,_0xc6c08b,_0x11d0aa,_0x2e4c62)=>{for(var _0x102582=_0x2e4c62>0x1?void 0x0:_0x2e4c62?hn(_0xc6c08b,_0x11d0aa):_0xc6c08b,_0x4d16d4=_0x39d1ba['length']-0x1,_0x33e509;_0x4d16d4>=0x0;_0x4d16d4--)(_0x33e509=_0x39d1ba[_0x4d16d4])&&(_0x102582=_0x33e509(_0x102582)||_0x102582);return _0x102582;},P=(_0x386295,_0x270f74)=>(_0x378e77,_0x27ba56)=>_0x270f74(_0x378e77,_0x27ba56,_0x386295),_n=(_0x1b4305,_0x3f0724,_0x918b44)=>Cn(_0x1b4305,_0x3f0724+'',_0x918b44);let j=class extends _0x3d9051{constructor(_0x3fe424=ie,_0x14e0b8,_0x544704,_0x366753,_0xdc8424,_0x391448){const _0x87477b=_0x2bf1b1;super(),this[_0x87477b(0x1cf)]=_0x3fe424,this[_0x87477b(0x164)]=_0x14e0b8,this[_0x87477b(0x125)]=_0x544704,this[_0x87477b(0x1f3)]=_0x366753,this[_0x87477b(0x218)]=_0xdc8424,this['_localeService']=_0x391448;const {..._0x5b7fc4}=_0x2d2539({},ie,this[_0x87477b(0x1cf)]);this[_0x87477b(0x125)]['setConfig'](y,_0x5b7fc4);}async[_0x2bf1b1(0x230)](){const _0x4f9850=_0x2bf1b1,_0x50cab8=[[O],[I],[D]];this[_0x4f9850(0x164)]['has'](_0x17de95)||_0x50cab8[_0x4f9850(0x12d)]([_0x17de95,{'useClass':_0x2bec1d}]),_0x50cab8[_0x4f9850(0x20f)](_0x2cbd8e=>this[_0x4f9850(0x164)][_0x4f9850(0x249)](_0x2cbd8e)),this[_0x4f9850(0x164)][_0x4f9850(0x1c6)](O),this[_0x4f9850(0x164)][_0x4f9850(0x1c6)](I),this['_injector'][_0x4f9850(0x1c6)](D);}};_n(j,_0x2bf1b1(0x156),'MCP_UI_PLUGIN'),j=mn([_0x48ca9a(_0x510c1c),P(0x1,_0x26dbdd(_0x4b393b)),P(0x2,_0xb51bf0),P(0x3,_0x5e8716),P(0x4,_0x4d166b),P(0x5,_0x26dbdd(_0xd0be8d))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x5e8644=_0x55eb;function _0xb04a(){const _0x21c1af=['MCP\x20Connected','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','1493764fXRbtS','5206728bDdiEb','Enable\x20Authentication','Max\x20Retries','8919810xIWpRQ','44tXdtQU','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9345285kmZEmM','48tWFTpI','Click\x20to\x20configure\x20MCP','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','5wcSFhc','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','6uuaVuU','Enter\x20your\x20API\x20key','API\x20Key','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','618548vtoLfk','MCP:\x20Session\x20ID\x20Occupied','4947552yjHlKb','Invalid\x20configuration','Connecting...','Retrying...','MCP\x20Disconnected','MCP\x20Connecting...','544848yfFFea','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console'];_0xb04a=function(){return _0x21c1af;};return _0xb04a();}function _0x55eb(_0xd4a071,_0x3eb9d9){const _0xb04ae1=_0xb04a();return _0x55eb=function(_0x55eb64,_0x1733f4){_0x55eb64=_0x55eb64-0xaa;let _0x269d55=_0xb04ae1[_0x55eb64];return _0x269d55;},_0x55eb(_0xd4a071,_0x3eb9d9);}(function(_0x3c9f16,_0x45dd07){const _0x128aea=_0x55eb,_0x1d8396=_0x3c9f16();while(!![]){try{const _0x5626e4=-parseInt(_0x128aea(0xba))/0x1*(parseInt(_0x128aea(0xac))/0x2)+-parseInt(_0x128aea(0xcb))/0x3+-parseInt(_0x128aea(0xca))/0x4*(parseInt(_0x128aea(0xdb))/0x5)+-parseInt(_0x128aea(0xd6))/0x6*(-parseInt(_0x128aea(0xb2))/0x7)+-parseInt(_0x128aea(0xb4))/0x8+parseInt(_0x128aea(0xd5))/0x9+parseInt(_0x128aea(0xce))/0xa*(parseInt(_0x128aea(0xcf))/0xb);if(_0x5626e4===_0x45dd07)break;else _0x1d8396['push'](_0x1d8396['shift']());}catch(_0x3133c6){_0x1d8396['push'](_0x1d8396['shift']());}}}(_0xb04a,0xe839c));const e={'mcpStatus':{'disconnected':_0x5e8644(0xb8),'connecting':_0x5e8644(0xb9),'connected':_0x5e8644(0xc4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5e8644(0xda),'unknown':_0x5e8644(0xc7),'unauthorized':_0x5e8644(0xbd),'sessionOccupied':_0x5e8644(0xb3),'networkError':_0x5e8644(0xc6),'maxRetriesExceeded':_0x5e8644(0xb1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5e8644(0xd7)},'mcpConfig':{'title':_0x5e8644(0xbb),'description':_0x5e8644(0xc0),'apiKey':_0x5e8644(0xae),'apiKeyPlaceholder':_0x5e8644(0xad),'apiKeyHint':_0x5e8644(0xd4),'enableAuth':_0x5e8644(0xcc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5e8644(0xc5),'mcpClientConfig':_0x5e8644(0xc5),'configInstructions':_0x5e8644(0xdc),'configStepTitle':_0x5e8644(0xd3),'configStep1':_0x5e8644(0xd1),'configStep2':_0x5e8644(0xc2),'configStep3':_0x5e8644(0xd9),'sessionId':_0x5e8644(0xab),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5e8644(0xbc),'configParameters':_0x5e8644(0xc8),'maxRetries':_0x5e8644(0xcd),'save':_0x5e8644(0xd2),'saving':'Saving...','note1':_0x5e8644(0xaa),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5e8644(0xc9),'configError':_0x5e8644(0xaf),'apiApplyInfo':{'title':_0x5e8644(0xd0),'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':_0x5e8644(0xc3),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5e8644(0xc1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5e8644(0xb5),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5e8644(0xbe),'connecting':_0x5e8644(0xb6),'connected':_0x5e8644(0xd8),'failed':'Connection\x20Failed','retrying':_0x5e8644(0xb7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5e8644(0xdd),'networkError':_0x5e8644(0xb0),'maxRetriesExceeded':_0x5e8644(0xbf)}}},n=e;export{n as default};
1
+ const _0x346677=_0x251e;(function(_0x5bf380,_0x30eb50){const _0x24944b=_0x251e,_0x454090=_0x5bf380();while(!![]){try{const _0x26cfd7=-parseInt(_0x24944b(0x72))/0x1*(-parseInt(_0x24944b(0x90))/0x2)+-parseInt(_0x24944b(0x9e))/0x3*(parseInt(_0x24944b(0x85))/0x4)+parseInt(_0x24944b(0x7e))/0x5+parseInt(_0x24944b(0x86))/0x6*(parseInt(_0x24944b(0x7a))/0x7)+-parseInt(_0x24944b(0x9a))/0x8*(-parseInt(_0x24944b(0x9b))/0x9)+parseInt(_0x24944b(0x89))/0xa+-parseInt(_0x24944b(0x6f))/0xb*(parseInt(_0x24944b(0x8b))/0xc);if(_0x26cfd7===_0x30eb50)break;else _0x454090['push'](_0x454090['shift']());}catch(_0x4875b4){_0x454090['push'](_0x454090['shift']());}}}(_0x1dfb,0x379eb));const e={'mcpStatus':{'disconnected':_0x346677(0x88),'connecting':_0x346677(0x78),'connected':_0x346677(0x70),'failed':_0x346677(0x80),'retrying':_0x346677(0x9d),'unknown':_0x346677(0xa1),'unauthorized':_0x346677(0x8f),'sessionOccupied':_0x346677(0xa3),'networkError':_0x346677(0x93),'maxRetriesExceeded':_0x346677(0x76),'clickToConnect':_0x346677(0x8d),'clickToConfigure':_0x346677(0x8a)},'mcpConfig':{'title':_0x346677(0x98),'description':_0x346677(0x97),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x346677(0xa2),'apiKeyHint':_0x346677(0x99),'enableAuth':_0x346677(0x7b),'enableAuthHint':_0x346677(0xa5),'connectionInfo':_0x346677(0x7c),'mcpClientConfig':_0x346677(0x7c),'configInstructions':_0x346677(0x83),'configStepTitle':_0x346677(0x73),'configStep1':_0x346677(0x79),'configStep2':_0x346677(0x7d),'configStep3':_0x346677(0x95),'sessionId':_0x346677(0x96),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x346677(0x8c),'note1':_0x346677(0x94),'note2':_0x346677(0x8e),'configSaved':_0x346677(0xa0),'configError':_0x346677(0x9c),'apiApplyInfo':{'title':_0x346677(0x9f),'description':_0x346677(0x74),'univerAiLabel':_0x346677(0x6d),'getStarted':_0x346677(0x87)},'validation':{'apiKeyRequired':_0x346677(0x7f),'apiKeyTooShort':_0x346677(0x92),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x346677(0x82)},'connectionStatus':{'disconnected':_0x346677(0x71),'connecting':_0x346677(0x84),'connected':_0x346677(0x77),'failed':_0x346677(0x75),'retrying':_0x346677(0x6e)},'connectionError':{'unauthorized':_0x346677(0x91),'sessionOccupied':_0x346677(0x81),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x346677(0xa4)}}},n=e;function _0x251e(_0xbf1821,_0x335a58){const _0x1dfbaf=_0x1dfb();return _0x251e=function(_0x251e3b,_0x10323d){_0x251e3b=_0x251e3b-0x6d;let _0x4075a6=_0x1dfbaf[_0x251e3b];return _0x4075a6;},_0x251e(_0xbf1821,_0x335a58);}function _0x1dfb(){const _0x2918f6=['Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Retrying...','9949786LhkaAX','MCP\x20Connected','Disconnected','91426tYeuoq','Configuration\x20Steps:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','Connected','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','63EfFEnB','Enable\x20Authentication','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1620085AHsxPd','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','133108afNJRq','174054cOuYCK','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','2583910XBaIiq','Click\x20to\x20configure\x20MCP','12OqswVH','Saving...','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','8wiUHct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8UsecGk','3201777VsmHfG','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','39CzzJnL','What\x20is\x20API\x20Key?','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x1dfb=function(){return _0x2918f6;};return _0x1dfb();}export{n as default};
@@ -1 +1 @@
1
- const _0x24af1f=_0x44ed;(function(_0x377f6d,_0x18dc64){const _0x2c00e1=_0x44ed,_0x559995=_0x377f6d();while(!![]){try{const _0x59c6c0=-parseInt(_0x2c00e1(0x104))/0x1+-parseInt(_0x2c00e1(0xed))/0x2*(-parseInt(_0x2c00e1(0x10c))/0x3)+-parseInt(_0x2c00e1(0xf4))/0x4+parseInt(_0x2c00e1(0xf2))/0x5+-parseInt(_0x2c00e1(0x109))/0x6*(-parseInt(_0x2c00e1(0x115))/0x7)+parseInt(_0x2c00e1(0x108))/0x8*(-parseInt(_0x2c00e1(0xfe))/0x9)+-parseInt(_0x2c00e1(0x116))/0xa;if(_0x59c6c0===_0x18dc64)break;else _0x559995['push'](_0x559995['shift']());}catch(_0x2acd90){_0x559995['push'](_0x559995['shift']());}}}(_0x1afe,0x431f2));function _0x1afe(){const _0x4fc668=['272124DawYAh','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','14vxMBrO','834690VsMJyL','Connecting...','Univer\x20AI\x20Console','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Connected','MCP\x20Connected','12zlzLgd','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','Configuration\x20saved\x20successfully','286800HrZgqw','Session\x20ID','1362264nnIlAH','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connection\x20Failed','18QKnZQL','Configuration\x20Parameters:','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','30185AeDkeD','MCP\x20Client\x20Configuration','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1000096GKRrij','1132698ggZUap','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x1afe=function(){return _0x4fc668;};return _0x1afe();}function _0x44ed(_0x3e6a2d,_0x23ce76){const _0x1afed5=_0x1afe();return _0x44ed=function(_0x44ede4,_0x4dad23){_0x44ede4=_0x44ede4-0xed;let _0x15bcf6=_0x1afed5[_0x44ede4];return _0x15bcf6;},_0x44ed(_0x3e6a2d,_0x23ce76);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x24af1f(0x11c),'failed':_0x24af1f(0xfd),'retrying':_0x24af1f(0x10e),'unknown':_0x24af1f(0x114),'unauthorized':_0x24af1f(0x100),'sessionOccupied':_0x24af1f(0xfa),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x24af1f(0x102),'clickToConnect':_0x24af1f(0x111),'clickToConfigure':_0x24af1f(0x101)},'mcpConfig':{'title':_0x24af1f(0x103),'description':_0x24af1f(0xf5),'apiKey':_0x24af1f(0xfb),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x24af1f(0x112),'enableAuth':_0x24af1f(0x119),'enableAuthHint':_0x24af1f(0x110),'connectionInfo':_0x24af1f(0x105),'mcpClientConfig':_0x24af1f(0x105),'configInstructions':_0x24af1f(0xef),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x24af1f(0x10b),'sessionId':_0x24af1f(0xf3),'sessionIdDescription':_0x24af1f(0x113),'authorizationDescription':_0x24af1f(0x10a),'configParameters':_0x24af1f(0xff),'maxRetries':_0x24af1f(0xf6),'save':_0x24af1f(0xf0),'saving':_0x24af1f(0xee),'note1':_0x24af1f(0x10f),'note2':_0x24af1f(0x107),'configSaved':_0x24af1f(0xf1),'configError':_0x24af1f(0x11a),'apiApplyInfo':{'title':_0x24af1f(0xf8),'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':_0x24af1f(0x118),'getStarted':_0x24af1f(0xfc)},'validation':{'apiKeyRequired':_0x24af1f(0xf9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x24af1f(0x106),'invalidApiKey':_0x24af1f(0x10d)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x24af1f(0x117),'connected':_0x24af1f(0x11b),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x24af1f(0xf7),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
1
+ function _0x4a48(_0x1ea6e0,_0x2979c2){const _0x1cd8f8=_0x1cd8();return _0x4a48=function(_0x4a4846,_0x4a95c8){_0x4a4846=_0x4a4846-0x1c2;let _0x551f19=_0x1cd8f8[_0x4a4846];return _0x551f19;},_0x4a48(_0x1ea6e0,_0x2979c2);}const _0x248146=_0x4a48;(function(_0x50aa34,_0x1e919c){const _0x2ba868=_0x4a48,_0x500507=_0x50aa34();while(!![]){try{const _0x4a606b=parseInt(_0x2ba868(0x1d3))/0x1*(parseInt(_0x2ba868(0x1e9))/0x2)+parseInt(_0x2ba868(0x1f2))/0x3*(parseInt(_0x2ba868(0x1e8))/0x4)+-parseInt(_0x2ba868(0x1f6))/0x5+parseInt(_0x2ba868(0x1db))/0x6+-parseInt(_0x2ba868(0x1d4))/0x7*(parseInt(_0x2ba868(0x1e4))/0x8)+parseInt(_0x2ba868(0x1c5))/0x9+-parseInt(_0x2ba868(0x1ef))/0xa*(parseInt(_0x2ba868(0x1ca))/0xb);if(_0x4a606b===_0x1e919c)break;else _0x500507['push'](_0x500507['shift']());}catch(_0x4ff686){_0x500507['push'](_0x500507['shift']());}}}(_0x1cd8,0x69536));function _0x1cd8(){const _0x422d63=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','1334184nlZjFz','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8UsaqCR','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','24GsiBhU','566QrepIX','Enter\x20your\x20API\x20key','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','7653560NxAbts','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','410871sksGaJ','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','1495045IBUcku','Configuration\x20Parameters:','Connection\x20Failed','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','5522706cLTswN','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Retrying...','MCP\x20Connection\x20Failed','11viCSxm','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','214iLvpyD','1557661wqxbZV','Configuration\x20Steps:','Save\x20Configuration','Invalid\x20configuration','API\x20key\x20is\x20required'];_0x1cd8=function(){return _0x422d63;};return _0x1cd8();}const e={'mcpStatus':{'disconnected':_0x248146(0x1ed),'connecting':'MCP\x20Connecting...','connected':_0x248146(0x1cd),'failed':_0x248146(0x1c9),'retrying':_0x248146(0x1df),'unknown':_0x248146(0x1de),'unauthorized':_0x248146(0x1c6),'sessionOccupied':_0x248146(0x1f4),'networkError':_0x248146(0x1f3),'maxRetriesExceeded':_0x248146(0x1e0),'clickToConnect':_0x248146(0x1f5),'clickToConfigure':_0x248146(0x1cb)},'mcpConfig':{'title':_0x248146(0x1eb),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x248146(0x1cf),'apiKeyPlaceholder':_0x248146(0x1ea),'apiKeyHint':_0x248146(0x1d0),'enableAuth':_0x248146(0x1cc),'enableAuthHint':_0x248146(0x1ec),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x248146(0x1e3),'configStepTitle':_0x248146(0x1d5),'configStep1':_0x248146(0x1c4),'configStep2':_0x248146(0x1ce),'configStep3':_0x248146(0x1dd),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x248146(0x1d1),'configParameters':_0x248146(0x1f7),'maxRetries':'Max\x20Retries','save':_0x248146(0x1d6),'saving':_0x248146(0x1e7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x248146(0x1d2),'configSaved':_0x248146(0x1c7),'configError':_0x248146(0x1e1),'apiApplyInfo':{'title':_0x248146(0x1e2),'description':_0x248146(0x1ee),'univerAiLabel':_0x248146(0x1f1),'getStarted':_0x248146(0x1da)},'validation':{'apiKeyRequired':_0x248146(0x1d8),'apiKeyTooShort':_0x248146(0x1e5),'invalidConfig':_0x248146(0x1d7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x248146(0x1dc),'connecting':_0x248146(0x1c3),'connected':'Connected','failed':_0x248146(0x1c2),'retrying':_0x248146(0x1c8)},'connectionError':{'unauthorized':_0x248146(0x1d9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x248146(0x1f0),'maxRetriesExceeded':_0x248146(0x1e6)}}};export{e as default};