@univerjs-pro/mcp-ui 0.10.13 → 0.10.14-nightly.202511070628

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 +8 -8
@@ -1 +1 @@
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
+ 'use strict';function _0xba85(){const _0x168461=['Configuration\x20Steps:','4pideJr','API\x20Key','Configuration\x20Parameters:','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','3577200qUYFAw','Session\x20ID','180337phkYua','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','45sdKceQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','4062AuCbiA','MCP\x20Unknown\x20Status','Enable\x20Authentication','1205148NSpNrg','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','889850RPeMXZ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3169782hgjWuk','Max\x20Retries','4145ugZbPI','exports','1406700OLDFxX','Copy\x20the\x20JSON\x20configuration\x20below'];_0xba85=function(){return _0x168461;};return _0xba85();}const _0x2ec736=_0x2981;(function(_0x1d88fe,_0x18624a){const _0x1f504e=_0x2981,_0x4f7d08=_0x1d88fe();while(!![]){try{const _0x237b6d=parseInt(_0x1f504e(0x1b8))/0x1*(-parseInt(_0x1f504e(0x1ab))/0x2)+parseInt(_0x1f504e(0x19e))/0x3+parseInt(_0x1f504e(0x1a8))/0x4+parseInt(_0x1f504e(0x1a6))/0x5*(-parseInt(_0x1f504e(0x19b))/0x6)+parseInt(_0x1f504e(0x1a4))/0x7+parseInt(_0x1f504e(0x1b6))/0x8+parseInt(_0x1f504e(0x1be))/0x9*(-parseInt(_0x1f504e(0x1a1))/0xa);if(_0x237b6d===_0x18624a)break;else _0x4f7d08['push'](_0x4f7d08['shift']());}catch(_0x49ca75){_0x4f7d08['push'](_0x4f7d08['shift']());}}}(_0xba85,0x45f47));function _0x2981(_0xe127fd,_0x34c1b5){const _0xba8541=_0xba85();return _0x2981=function(_0x2981bc,_0x13c01f){_0x2981bc=_0x2981bc-0x197;let _0xbf30d5=_0xba8541[_0x2981bc];return _0xbf30d5;},_0x2981(_0xe127fd,_0x34c1b5);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2ec736(0x1a0),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2ec736(0x19c),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2ec736(0x19a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2ec736(0x1af),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2ec736(0x1b0),'description':_0x2ec736(0x1a3),'apiKey':_0x2ec736(0x1ac),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2ec736(0x1bd),'enableAuth':_0x2ec736(0x19d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2ec736(0x1ba),'mcpClientConfig':_0x2ec736(0x1ba),'configInstructions':_0x2ec736(0x1bf),'configStepTitle':_0x2ec736(0x1aa),'configStep1':_0x2ec736(0x1a9),'configStep2':_0x2ec736(0x1b1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2ec736(0x1b7),'sessionIdDescription':_0x2ec736(0x1b9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2ec736(0x1ad),'maxRetries':_0x2ec736(0x1a5),'save':_0x2ec736(0x1b2),'saving':_0x2ec736(0x198),'note1':_0x2ec736(0x1bb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x2ec736(0x1b4),'apiApplyInfo':{'title':_0x2ec736(0x1b5),'description':_0x2ec736(0x1bc),'univerAiLabel':_0x2ec736(0x1ae),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2ec736(0x197),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2ec736(0x1b3),'sessionOccupied':_0x2ec736(0x1a2),'networkError':_0x2ec736(0x19f),'maxRetriesExceeded':_0x2ec736(0x199)}}},n=e;module[_0x2ec736(0x1a7)]=n;
@@ -1 +1 @@
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
+ 'use strict';function _0x290e(){const _0x45b793=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','64743RxfVgG','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','615984qqWUSC','Save\x20Configuration','450439vfkbdO','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','306115DlpOFm','Copy\x20the\x20JSON\x20configuration\x20below','680316aqnIbe','MCP:\x20Network\x20Error','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','API\x20key\x20is\x20required','MCP\x20Disconnected','984inUUET','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','684086MLRHRD','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1449936buBckJ','Configuration\x20Parameters:','Enable\x20Authentication'];_0x290e=function(){return _0x45b793;};return _0x290e();}const _0x5816ba=_0x397d;(function(_0x2c647e,_0x14d6b4){const _0x371ad8=_0x397d,_0xb078a6=_0x2c647e();while(!![]){try{const _0x5a8552=parseInt(_0x371ad8(0x112))/0x1+parseInt(_0x371ad8(0xfc))/0x2+parseInt(_0x371ad8(0x117))/0x3+parseInt(_0x371ad8(0x110))/0x4+parseInt(_0x371ad8(0x115))/0x5+parseInt(_0x371ad8(0xfe))/0x6+-parseInt(_0x371ad8(0x104))/0x7*(parseInt(_0x371ad8(0xf2))/0x8);if(_0x5a8552===_0x14d6b4)break;else _0xb078a6['push'](_0xb078a6['shift']());}catch(_0x142c53){_0xb078a6['push'](_0xb078a6['shift']());}}}(_0x290e,0x52a46));const e={'mcpStatus':{'disconnected':_0x5816ba(0xf1),'connecting':_0x5816ba(0xec),'connected':_0x5816ba(0x102),'failed':_0x5816ba(0x10c),'retrying':_0x5816ba(0x106),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5816ba(0x103),'networkError':_0x5816ba(0x118),'maxRetriesExceeded':_0x5816ba(0x107),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5816ba(0x105)},'mcpConfig':{'title':_0x5816ba(0xe7),'description':_0x5816ba(0x101),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5816ba(0xf5),'apiKeyHint':_0x5816ba(0xf6),'enableAuth':_0x5816ba(0x100),'enableAuthHint':_0x5816ba(0xed),'connectionInfo':_0x5816ba(0xfb),'mcpClientConfig':_0x5816ba(0xfb),'configInstructions':_0x5816ba(0x10b),'configStepTitle':_0x5816ba(0xf9),'configStep1':_0x5816ba(0x116),'configStep2':_0x5816ba(0x113),'configStep3':_0x5816ba(0xe6),'sessionId':'Session\x20ID','sessionIdDescription':_0x5816ba(0x114),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5816ba(0xff),'maxRetries':'Max\x20Retries','save':_0x5816ba(0x111),'saving':_0x5816ba(0x109),'note1':_0x5816ba(0xfa),'note2':_0x5816ba(0xea),'configSaved':_0x5816ba(0xe8),'configError':_0x5816ba(0xeb),'apiApplyInfo':{'title':_0x5816ba(0xe9),'description':_0x5816ba(0xf8),'univerAiLabel':_0x5816ba(0xf4),'getStarted':_0x5816ba(0x11a)},'validation':{'apiKeyRequired':_0x5816ba(0xf0),'apiKeyTooShort':_0x5816ba(0x10f),'invalidConfig':_0x5816ba(0x10a),'invalidApiKey':_0x5816ba(0xee)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5816ba(0xef),'connected':_0x5816ba(0x119),'failed':'Connection\x20Failed','retrying':_0x5816ba(0xf7)},'connectionError':{'unauthorized':_0x5816ba(0x108),'sessionOccupied':_0x5816ba(0xf3),'networkError':_0x5816ba(0x10e),'maxRetriesExceeded':_0x5816ba(0xfd)}}},n=e;function _0x397d(_0x292e9c,_0x3bc378){const _0x290e9d=_0x290e();return _0x397d=function(_0x397dc5,_0x5dd3ed){_0x397dc5=_0x397dc5-0xe6;let _0x440437=_0x290e9d[_0x397dc5];return _0x440437;},_0x397d(_0x292e9c,_0x3bc378);}module[_0x5816ba(0x10d)]=n;
@@ -1 +1 @@
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
+ 'use strict';const _0x220fb3=_0x16ff;(function(_0x52a8b4,_0x33d0e4){const _0x4b063c=_0x16ff,_0x1b7b81=_0x52a8b4();while(!![]){try{const _0x6bb20a=-parseInt(_0x4b063c(0x1a7))/0x1*(parseInt(_0x4b063c(0x1c4))/0x2)+-parseInt(_0x4b063c(0x1bb))/0x3+parseInt(_0x4b063c(0x1aa))/0x4+parseInt(_0x4b063c(0x1b3))/0x5*(-parseInt(_0x4b063c(0x1a6))/0x6)+parseInt(_0x4b063c(0x1b5))/0x7+parseInt(_0x4b063c(0x1bf))/0x8+-parseInt(_0x4b063c(0x1a3))/0x9;if(_0x6bb20a===_0x33d0e4)break;else _0x1b7b81['push'](_0x1b7b81['shift']());}catch(_0x17401c){_0x1b7b81['push'](_0x1b7b81['shift']());}}}(_0x44a3,0x856c8));function _0x16ff(_0x508cd6,_0x5f555d){const _0x44a3b3=_0x44a3();return _0x16ff=function(_0x16ff09,_0x2cda35){_0x16ff09=_0x16ff09-0x19d;let _0x615d7d=_0x44a3b3[_0x16ff09];return _0x615d7d;},_0x16ff(_0x508cd6,_0x5f555d);}const e={'mcpStatus':{'disconnected':_0x220fb3(0x1ae),'connecting':'MCP\x20连接中...','connected':_0x220fb3(0x1bd),'failed':_0x220fb3(0x1c6),'retrying':_0x220fb3(0x1c9),'unknown':'MCP\x20状态未知','unauthorized':_0x220fb3(0x1a4),'sessionOccupied':_0x220fb3(0x1ad),'networkError':_0x220fb3(0x1b2),'maxRetriesExceeded':_0x220fb3(0x1ca),'clickToConnect':_0x220fb3(0x1cc),'clickToConfigure':_0x220fb3(0x1a8)},'mcpConfig':{'title':_0x220fb3(0x19f),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x220fb3(0x1a0),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x220fb3(0x1cd),'mcpClientConfig':_0x220fb3(0x1cd),'configInstructions':_0x220fb3(0x1be),'configStepTitle':'配置步骤:','configStep1':_0x220fb3(0x1ba),'configStep2':_0x220fb3(0x1c2),'configStep3':_0x220fb3(0x1a9),'sessionId':'会话ID','sessionIdDescription':_0x220fb3(0x19d),'authorizationDescription':_0x220fb3(0x1bc),'configParameters':_0x220fb3(0x1c5),'maxRetries':_0x220fb3(0x1b6),'save':_0x220fb3(0x1b4),'saving':_0x220fb3(0x1a5),'note1':_0x220fb3(0x1b1),'note2':_0x220fb3(0x1c8),'configSaved':_0x220fb3(0x1b0),'configError':_0x220fb3(0x1cb),'apiApplyInfo':{'title':_0x220fb3(0x1b8),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x220fb3(0x1c1),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x220fb3(0x1a1),'invalidApiKey':_0x220fb3(0x1a2)},'connectionStatus':{'disconnected':_0x220fb3(0x1af),'connecting':_0x220fb3(0x1c3),'connected':_0x220fb3(0x1b7),'failed':_0x220fb3(0x1c0),'retrying':_0x220fb3(0x1ce)},'connectionError':{'unauthorized':_0x220fb3(0x19e),'sessionOccupied':_0x220fb3(0x1ab),'networkError':_0x220fb3(0x1c7),'maxRetriesExceeded':_0x220fb3(0x1b9)}}};function _0x44a3(){const _0x105f5f=['连接失败','Univer\x20AI\x20控制台','将配置添加到您的\x20MCP\x20客户端设置文件中','连接中...','10DqIQjE','配置参数:','MCP\x20连接失败','网络连接错误,请检查您的网络连接','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20重连中...','MCP:\x20超出最大重试次数','配置保存失败','点击连接\x20MCP','MCP\x20客户端配置','重连中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20配置','请输入您的\x20API\x20密钥','配置无效','API\x20密钥无效,请检查密钥是否正确','12655827MrBjeh','MCP:\x20未授权','保存中...','24vsGTyg','75351wGKuEb','点击配置\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','4310752JwpGsD','会话\x20ID\x20已被占用,请稍后再试','exports','MCP:\x20会话\x20ID\x20已被占用','MCP\x20已断开','未连接','配置保存成功','配置更改将立即生效','MCP:\x20网络错误','186395dnLtaV','保存配置','6670433WtQAiF','最大重试次数','已连接','什么是\x20API\x20密钥?','超出最大重试次数,请稍后再试','复制以下\x20JSON\x20配置','481497cLlQQz','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20已连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','4867760mLRzBa'];_0x44a3=function(){return _0x105f5f;};return _0x44a3();}module[_0x220fb3(0x1ac)]=e;
@@ -1 +1 @@
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;
1
+ 'use strict';function _0x4e07(){const _0x40027a=['MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','750450Bcnqbe','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4545DceZDj','4233944blSgyc','MCP\x20Connecting...','Invalid\x20configuration','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','735796VGfsBq','Session\x20ID','15DEWQmI','14TlBKCa','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Parameters:','API\x20Key','Save\x20Configuration','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4841040wKiNdm','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Steps:','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','1899906ONSAVv','1801458JiDWRu','exports','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication'];_0x4e07=function(){return _0x40027a;};return _0x4e07();}const _0x2cc06a=_0xa0ad;function _0xa0ad(_0x423e72,_0x49498c){const _0x4e0702=_0x4e07();return _0xa0ad=function(_0xa0ad9a,_0xd5b30d){_0xa0ad9a=_0xa0ad9a-0x1ad;let _0x5ab8cc=_0x4e0702[_0xa0ad9a];return _0x5ab8cc;},_0xa0ad(_0x423e72,_0x49498c);}(function(_0x4f3ccf,_0x577923){const _0x202995=_0xa0ad,_0x582719=_0x4f3ccf();while(!![]){try{const _0x605abc=parseInt(_0x202995(0x1d9))/0x1+parseInt(_0x202995(0x1b9))/0x2+-parseInt(_0x202995(0x1ba))/0x3+parseInt(_0x202995(0x1b3))/0x4+parseInt(_0x202995(0x1db))/0x5*(-parseInt(_0x202995(0x1c2))/0x6)+-parseInt(_0x202995(0x1dc))/0x7*(parseInt(_0x202995(0x1cd))/0x8)+-parseInt(_0x202995(0x1cc))/0x9;if(_0x605abc===_0x577923)break;else _0x582719['push'](_0x582719['shift']());}catch(_0x370005){_0x582719['push'](_0x582719['shift']());}}}(_0x4e07,0xd247b));const e={'mcpStatus':{'disconnected':_0x2cc06a(0x1b0),'connecting':_0x2cc06a(0x1ce),'connected':_0x2cc06a(0x1b6),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2cc06a(0x1d3),'unknown':_0x2cc06a(0x1c5),'unauthorized':_0x2cc06a(0x1bf),'sessionOccupied':_0x2cc06a(0x1af),'networkError':_0x2cc06a(0x1d6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2cc06a(0x1d4),'clickToConfigure':_0x2cc06a(0x1e1)},'mcpConfig':{'title':_0x2cc06a(0x1b8),'description':_0x2cc06a(0x1b2),'apiKey':_0x2cc06a(0x1df),'apiKeyPlaceholder':_0x2cc06a(0x1d2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2cc06a(0x1be),'enableAuthHint':_0x2cc06a(0x1bc),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2cc06a(0x1b1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2cc06a(0x1b5),'configStep1':_0x2cc06a(0x1b4),'configStep2':_0x2cc06a(0x1c7),'configStep3':_0x2cc06a(0x1c3),'sessionId':_0x2cc06a(0x1da),'sessionIdDescription':_0x2cc06a(0x1c4),'authorizationDescription':_0x2cc06a(0x1c6),'configParameters':_0x2cc06a(0x1de),'maxRetries':'Max\x20Retries','save':_0x2cc06a(0x1e0),'saving':_0x2cc06a(0x1d7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2cc06a(0x1c8),'configSaved':_0x2cc06a(0x1ad),'configError':_0x2cc06a(0x1c1),'apiApplyInfo':{'title':_0x2cc06a(0x1c0),'description':_0x2cc06a(0x1cb),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2cc06a(0x1b7)},'validation':{'apiKeyRequired':_0x2cc06a(0x1d5),'apiKeyTooShort':_0x2cc06a(0x1dd),'invalidConfig':_0x2cc06a(0x1cf),'invalidApiKey':_0x2cc06a(0x1d1)},'connectionStatus':{'disconnected':_0x2cc06a(0x1d0),'connecting':'Connecting...','connected':'Connected','failed':_0x2cc06a(0x1ae),'retrying':_0x2cc06a(0x1c9)},'connectionError':{'unauthorized':_0x2cc06a(0x1d8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2cc06a(0x1ca),'maxRetriesExceeded':_0x2cc06a(0x1bd)}}},n=e;module[_0x2cc06a(0x1bb)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
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
+ const _0x3c9208=_0x2f9c;(function(_0xa6e3c1,_0x14df49){const _0x1d84f2=_0x2f9c,_0x31d45b=_0xa6e3c1();while(!![]){try{const _0x1fcbe4=parseInt(_0x1d84f2(0x198))/0x1*(-parseInt(_0x1d84f2(0x1f8))/0x2)+parseInt(_0x1d84f2(0x2b8))/0x3*(-parseInt(_0x1d84f2(0x26c))/0x4)+parseInt(_0x1d84f2(0x1a9))/0x5+-parseInt(_0x1d84f2(0x26e))/0x6+parseInt(_0x1d84f2(0x1ca))/0x7+parseInt(_0x1d84f2(0x1f0))/0x8+parseInt(_0x1d84f2(0x260))/0x9;if(_0x1fcbe4===_0x14df49)break;else _0x31d45b['push'](_0x31d45b['shift']());}catch(_0x861f11){_0x31d45b['push'](_0x31d45b['shift']());}}}(_0x160a,0x731da));var Pe=Object['defineProperty'],Ee=(_0x49049c,_0x5e78c3,_0x131c0a)=>_0x5e78c3 in _0x49049c?Pe(_0x49049c,_0x5e78c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131c0a}):_0x49049c[_0x5e78c3]=_0x131c0a,x=(_0x4a6a8d,_0xf699f6,_0x47b963)=>Ee(_0x4a6a8d,typeof _0xf699f6!=_0x3c9208(0x2be)?_0xf699f6+'':_0xf699f6,_0x47b963);import{LocaleService as _0x53bf0c,Inject as _0x4bcb75,Injector as _0x57274b,IConfigService as _0x575615,ILocalStorageService as _0x9e998,ILogService as _0xf54f67,Disposable as _0x5cea02,CommandType as _0x1f1a15,ICommandService as _0x3900c0,DependentOn as _0x5862b0,Plugin as _0x5d41e1,merge as _0x211ca7}from'@univerjs/core';import{jsxs as _0x18c759,jsx as _0x462323}from'react/jsx-runtime';function _0x160a(){const _0x492995=['启用身份验证','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','_initializeMenus','mcpConfig.configStep3','mcpStatus.clickToConfigure','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','univer-mr-2\x20univer-flex\x20univer-text-xl','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.disconnected','error','_initStatusComponent','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','mcpConfig.configStep2','API\x20密钥无效,请检查密钥是否正确','mcp-ui.command.openConfigPanel','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','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','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','_localeService','univer-text-green-500','1087792KcLYau','url(#$1','_createConfigPanelComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Connecting...','removeItem','MCP:\x20网络错误','univer-flex-1','82KMibzc','univer-space-y-3','univer-space-y-2','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.sessionOccupied','MCP\x20配置','CheckMarkIcon','defs','mcpConfig.saving','Failed\x20to\x20save\x20configuration','svg','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpStatus.connecting','mcpStatus.unauthorized','API\x20key\x20is\x20required','div','Univer\x20AI\x20控制台','BUTTON','subscribe','MCP\x20Configuration','DISCONNECTED','What\x20is\x20API\x20Key?','MCP:\x20超出最大重试次数','mcpStatus.networkError','API\x20密钥不能为空','Univer\x20AI\x20Console','push','OTHERS','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Disconnected','univer-bg-blue-500','toString','currentColor','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-size-2\x20univer-rounded-full','mcpConfig.note1','mcpConfig.configStep1','mcpConfig.configParameters','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','show','_commandService','mcpConfig.validation.invalidApiKey','NONE','tag','displayName','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_logService','HelpIcon','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_validateConfig','MenuIcon','MAX_RETRIES_EXCEEDED','translate(.97)','string','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','white','includes','Invalid\x20configuration','mcp.apiKey','mcpConfig.connectionError.sessionOccupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#on-line-icon_clip0_910_349)','none','HEADER_MENU','trim','MCP:\x20会话\x20ID\x20已被占用','UNAUTHORIZED','_handleConfigure','请输入您的\x20API\x20密钥','off-line-icon_clip0_910_343','mcpConfig.note2','_localStorageService','0\x200\x2017\x2016','mcpConfig.connectionError.networkError','保存配置','univer-text-xs\x20univer-text-gray-600','use','mcpConfig.description','univer-min-w-0\x20univer-flex-1','univer-space-y-4','errorMessage','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','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','0\x200\x2016\x2016','_handleConfigSave','on-line-icon_clip0_910_349','http://www.w3.org/2000/svg','univer-bg-gray-500','univer-text-blue-600','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.disconnected','Configuration\x20Parameters:','check-mark-icon','https://console.univer.plus','path','NETWORK_ERROR','connectionStatus$','idSuffix','mcpConfig.connectionStatus.connected','replace','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','7747677FWhiBo','http','entries','defIds','round','mcpConfig.apiKeyPlaceholder','最大重试次数','_apiKey$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','colorChannel1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','COMMAND','276OsrEre','mcpConfig.apiApplyInfo.getStarted','3483312IwZSpo','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','getOwnPropertyDescriptor','fill','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20Key','getConfig','Configuration\x20saved\x20successfully','univer-shrink-0\x20univer-text-red-500','mcpStatus.maxRetriesExceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','SESSION_ID_OCCUPIED','Enter\x20your\x20API\x20key','univer-text-xs\x20univer-text-gray-500','Success','children','保存中...','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20Unknown\x20Status','CONNECTED','univer-flex\x20univer-items-center','_loadStoredApiKey','点击连接\x20MCP','disposeWithMe','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-red-500','Connected','mcpConfig.connectionInfo','mcp-config-dialog','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','text','mcpConfig.title','__setCustomHeaders','label','mcpConfig.apiKeyHint','配置\x20MCP\x20使用\x20AI\x20操作电子表格','超出最大重试次数,请稍后再试','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP:\x20Session\x20ID\x20Occupied','MCP\x20连接中...','Error','univer-flex\x20univer-items-start\x20univer-gap-3','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpServerUrl','get','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20Connection\x20Failed','mcpConfig.apiApplyInfo.description','mcpStatus.unknown','univer-flex\x20univer-items-start\x20univer-gap-2','RETRYING','setConfig','univer-flex\x20univer-items-center\x20univer-gap-3','https://console.univer.ai','Saving...','_uiPartsService','univer-bg-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','API\x20密钥','配置保存成功','showConfigPanel','univer-bg-green-500','value','_configService','mcpConfig.configStepTitle','subscribeConfigValue$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_menuManagerService','registerComponent','substring','Authorization:','MCP\x20已连接','38673HTAPxn','mcpConfig.sessionIdDescription','on-line-icon','CONNECTING','Save\x20Configuration','_messageService','symbol','xlink:href','配置更改将立即生效','univer-text-yellow-500','Click\x20to\x20connect\x20MCP','apiKey','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','_injector','univer-text-sm\x20univer-font-medium','MCPConfigPanel','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','您的\x20API\x20密钥安全存储在本地存储中','univer-font-medium','_componentManager','off-line-icon','MCP:\x20Network\x20Error','mcpStatus.retrying','_config','univer.ai','button','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univerjs-icon\x20univerjs-icon-','网络连接错误,请检查您的网络连接','mcpConfig.validation.invalidConfig','evenodd','M0\x200H16V16H0z','sessionId$','mcpConfig.connectionError.unauthorized','MCP\x20客户端配置','mask','带有\x20Bearer\x20前缀的\x20API\x20密钥。','showStatus','连接中...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','assign','mcpStatus.failed','MCP\x20Connecting...','什么是\x20API\x20密钥?','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','pre','UniverIcon','CloseIcon','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','enableAutoConnect','权限验证失败,请检查您的\x20API\x20密钥','3424CPCvol','MCP:\x20Unauthorized','_initializeCommands','_initConfigSync','mcpStatus.connected','mcpConfig.save','_loading$','forEach','getCurrentConfig','_initAutoConnect','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','https://mcp.univer.ai/mcp/?univer_session_id=','_mcpCoreConfig$','Enable\x20Authentication','span','Retrying...','Configuration\x20Notes:','1784600JPdusK','random','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','FAILED','MCP\x20Client\x20Configuration','_config$','attrs','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-gray-500','has','clipPath','close-icon','next','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','isValid','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','\x20-\x20','_mcpConnectionController','MCP_UI_PLUGIN','showDeveloperTools','mcpConfig.configError','length','url(#off-line-icon_clip0_910_343)','_connectionController','会话ID','MCP\x20Connected','getItem','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','map','pluginName','connectionError$','5097274gGAKWd','_dialogService','<SESSION_ID>','registerCommand','1em','MCP\x20已断开','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer.plus','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Bearer\x20','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20连接失败','close','OnLineIcon','defineProperty'];_0x160a=function(){return _0x492995;};return _0x160a();}import{MCPConnectionStatus as _0xff81e2,MCPConnectionError as _0x23ba44,MCPConnectionController as _0x14f893,MCP_PLUGIN_CONFIG_KEY as _0x1c72e8,UniverMCPPlugin as _0x245195}from'@univerjs-pro/mcp';import{clsx as _0x5b246f,Input as _0x2186ab,Button as _0x3af2d5,MessageType as _0x6e385b,Tooltip as _0x39918b}from'@univerjs/design';import{useDependency as _0x150436,useObservable as _0x3a8338,IUIPartsService as _0x549fee,IDialogService as _0x4ac42f,IMessageService as _0x419c17,ComponentManager as _0x135d71,connectInjector as _0x5dfb6b,BuiltInUIPart as _0x538232,MenuItemType as _0x247193,RibbonStartGroup as _0xa097e0,IMenuManagerService as _0x54a9fe}from'@univerjs/ui';import{BehaviorSubject as _0x314270}from'rxjs';import{useRef as _0x5d9ae4,createElement as _0x47a95e,forwardRef as _0x192872,useState as _0x2aa459,useCallback as _0x3c10b4}from'react';import{ISocketService as _0x10fe15,WebSocketService as _0x451010}from'@univerjs/network';function b({ref:_0x318aa4,..._0x1361ac}){const _0x447de0=_0x3c9208,{icon:_0x28b8f8,id:_0x1acf63,className:_0x1928f8,extend:_0x9f014c,..._0x53e03d}=_0x1361ac,_0x2e4540=(_0x447de0(0x17f)+_0x1acf63+'\x20'+(_0x1928f8||''))['trim'](),_0x2bfc94=_0x5d9ae4('_'+We());return ae(_0x28b8f8,''+_0x1acf63,{'defIds':_0x28b8f8[_0x447de0(0x263)],'idSuffix':_0x2bfc94['current']},{'ref':_0x318aa4,'className':_0x2e4540,..._0x53e03d},_0x9f014c);}function ae(_0x2b3cb7,_0x424f09,_0x239ba3,_0x48c03e,_0x41fed3){const _0x1bf7e6=_0x3c9208;return _0x47a95e(_0x2b3cb7[_0x1bf7e6(0x223)],{'key':_0x424f09,...Ye(_0x2b3cb7,_0x239ba3,_0x41fed3),..._0x48c03e},(Ze(_0x2b3cb7,_0x239ba3)[_0x1bf7e6(0x27d)]||[])['map']((_0x173c73,_0x3a7d50)=>ae(_0x173c73,_0x424f09+'-'+_0x2b3cb7[_0x1bf7e6(0x223)]+'-'+_0x3a7d50,_0x239ba3,void 0x0,_0x41fed3)));}function Ye(_0x5c2b21,_0x499a2b,_0x21ee4b){const _0x2b6256=_0x3c9208,_0xee4155={..._0x5c2b21['attrs']};_0x21ee4b!=null&&_0x21ee4b[_0x2b6256(0x269)]&&_0xee4155[_0x2b6256(0x271)]===_0x2b6256(0x269)&&(_0xee4155['fill']=_0x21ee4b[_0x2b6256(0x269)]),_0x5c2b21[_0x2b6256(0x223)]===_0x2b6256(0x187)&&_0xee4155['id']&&(_0xee4155['id']=_0xee4155['id']+_0x499a2b[_0x2b6256(0x25b)]),Object['entries'](_0xee4155)[_0x2b6256(0x19f)](([_0x4086a4,_0x5ef665])=>{const _0x4651ba=_0x2b6256;_0x4086a4===_0x4651ba(0x187)&&typeof _0x5ef665=='string'&&(_0xee4155[_0x4086a4]=_0x5ef665[_0x4651ba(0x25d)](/url\(#(.*)\)/,_0x4651ba(0x1f1)+_0x499a2b[_0x4651ba(0x25b)]+')'));});const {defIds:_0x20f9ce}=_0x499a2b;return!_0x20f9ce||_0x20f9ce[_0x2b6256(0x1be)]===0x0||(_0x5c2b21['tag']===_0x2b6256(0x246)&&_0xee4155['xlink:href']&&(_0xee4155[_0x2b6256(0x2bf)]=_0xee4155[_0x2b6256(0x2bf)]+_0x499a2b[_0x2b6256(0x25b)]),Object[_0x2b6256(0x262)](_0xee4155)[_0x2b6256(0x19f)](([_0x149639,_0x38a4fc])=>{const _0x5ee67c=_0x2b6256;typeof _0x38a4fc==_0x5ee67c(0x22e)&&(_0xee4155[_0x149639]=_0x38a4fc['replace'](/url\(#(.*)\)/,'url(#$1'+_0x499a2b['idSuffix']+')'));})),_0xee4155;}function Ze(_0x415b63,_0x71377){const _0x4254d4=_0x3c9208;var _0x27fc12;const {defIds:_0x37344e}=_0x71377;return!_0x37344e||_0x37344e[_0x4254d4(0x1be)]===0x0?_0x415b63:_0x415b63['tag']===_0x4254d4(0x1ff)&&((_0x27fc12=_0x415b63['children'])!=null&&_0x27fc12[_0x4254d4(0x1be)])?{..._0x415b63,'children':_0x415b63[_0x4254d4(0x27d)][_0x4254d4(0x1c7)](_0x16892f=>typeof _0x16892f[_0x4254d4(0x1af)]['id']==_0x4254d4(0x22e)&&_0x37344e&&_0x37344e[_0x4254d4(0x232)](_0x16892f[_0x4254d4(0x1af)]['id'])?{..._0x16892f,'attrs':{..._0x16892f[_0x4254d4(0x1af)],'id':_0x16892f['attrs']['id']+_0x71377[_0x4254d4(0x25b)]}}:_0x16892f)}:_0x415b63;}function We(){const _0x35e869=_0x3c9208;return Math[_0x35e869(0x1aa)]()[_0x35e869(0x217)](0x24)[_0x35e869(0x2b5)](0x2,0x8);}b[_0x3c9208(0x224)]=_0x3c9208(0x193);const qe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':_0x3c9208(0x24d),'width':_0x3c9208(0x1ce),'height':'1em'},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x218),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x3c9208(0x182),'clipRule':'evenodd'}}]},le=_0x192872(function(_0x26e006,_0x22b598){const _0x34e4bc=_0x3c9208;return _0x47a95e(b,Object[_0x34e4bc(0x18c)]({},_0x26e006,{'id':_0x34e4bc(0x256),'ref':_0x22b598,'icon':qe}));});le['displayName']=_0x3c9208(0x1fe);const Xe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3c9208(0x1ce),'height':_0x3c9208(0x1ce)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x218),'d':_0x3c9208(0x1b6)}}]},ue=_0x192872(function(_0x253d73,_0x4878e0){const _0x2d22d9=_0x3c9208;return _0x47a95e(b,Object[_0x2d22d9(0x18c)]({},_0x253d73,{'id':_0x2d22d9(0x1b4),'ref':_0x4878e0,'icon':Xe}));});ue[_0x3c9208(0x224)]=_0x3c9208(0x194);const Je={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':_0x3c9208(0x24d),'width':_0x3c9208(0x1ce),'height':_0x3c9208(0x1ce)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':'currentColor','d':_0x3c9208(0x1a2)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x3c9208(0x1eb)}},{'tag':_0x3c9208(0x258),'attrs':{'fill':'currentColor','d':_0x3c9208(0x24b),'fillRule':_0x3c9208(0x182),'clipRule':_0x3c9208(0x182)}}]},ve=_0x192872(function(_0x4b53e2,_0x522c22){return _0x47a95e(b,Object['assign']({},_0x4b53e2,{'id':'help-icon','ref':_0x522c22,'icon':Je}));});ve[_0x3c9208(0x224)]=_0x3c9208(0x227);const Qe={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':_0x3c9208(0x238),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3c9208(0x1ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c9208(0x1bf)},'children':[{'tag':'path','attrs':{'stroke':_0x3c9208(0x218),'d':_0x3c9208(0x1ab),'strokeLinecap':_0x3c9208(0x264),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3c9208(0x1ff),'attrs':{},'children':[{'tag':_0x3c9208(0x1b3),'attrs':{'id':_0x3c9208(0x23f)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x231),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3c9208(0x23f)]},de=_0x192872(function(_0x1ff062,_0x3df4a6){const _0xe660ae=_0x3c9208;return _0x47a95e(b,Object['assign']({},_0x1ff062,{'id':_0xe660ae(0x178),'ref':_0x3df4a6,'icon':Qe}));});de[_0x3c9208(0x224)]='OffLineIcon';const en={'tag':_0x3c9208(0x202),'attrs':{'xmlns':_0x3c9208(0x250),'fill':'none','viewBox':_0x3c9208(0x242),'width':'1em','height':_0x3c9208(0x1ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c9208(0x237)},'children':[{'tag':_0x3c9208(0x258),'attrs':{'stroke':'currentColor','d':_0x3c9208(0x22f),'strokeLinecap':_0x3c9208(0x264),'strokeLinejoin':_0x3c9208(0x264),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3c9208(0x1b3),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3c9208(0x258),'attrs':{'fill':_0x3c9208(0x231),'d':_0x3c9208(0x183),'transform':_0x3c9208(0x22d)}}]}]}],'defIds':[_0x3c9208(0x24f)]},ge=_0x192872(function(_0x123242,_0xaf2b26){const _0x550cd1=_0x3c9208;return _0x47a95e(b,Object['assign']({},_0x123242,{'id':_0x550cd1(0x2ba),'ref':_0xaf2b26,'icon':en}));});ge[_0x3c9208(0x224)]=_0x3c9208(0x1d7);function nn(_0x4104e8){const _0x34f9f9=_0x3c9208;var _0x1462e4,_0x33d4f8;const {mcpCoreConfig:_0x4cab80,onSave:_0x273255,loading:_0x347ad0=!0x1,config:_0x2ebe3f,connectionStatus$:_0x2edf61,connectionError$:_0x4f07dc,currentApiKey$:_0x2711fb,currentSessionId$:_0x48f859}=_0x4104e8,_0x46c3f1=_0x150436(_0x53bf0c),_0x57012e=_0x3a8338(_0x2edf61,_0xff81e2[_0x34f9f9(0x20c)]),_0x478594=_0x3a8338(_0x4f07dc,_0x23ba44[_0x34f9f9(0x222)]),_0x43c5c6=_0x3a8338(_0x48f859,''),_0x452b15=_0x3a8338(_0x2711fb,''),[_0x32d163,_0x467e6d]=_0x2aa459(_0x452b15||''),_0x5bbad0=!0x0,_0x549b25=_0x2ebe3f['showDeveloperTools']&&_0x4cab80[_0x34f9f9(0x29a)]&&(_0x4cab80['mcpServerUrl'][_0x34f9f9(0x232)](_0x34f9f9(0x1d1))||_0x4cab80[_0x34f9f9(0x29a)][_0x34f9f9(0x232)](_0x34f9f9(0x17c))),_0x21b88d=(_0x1462e4=_0x4cab80[_0x34f9f9(0x29a)])==null?void 0x0:_0x1462e4[_0x34f9f9(0x232)]('univer.plus'),_0x2cfdf5=(_0x33d4f8=_0x4cab80[_0x34f9f9(0x29a)])==null?void 0x0:_0x33d4f8[_0x34f9f9(0x232)](_0x34f9f9(0x17c)),_0x3bba40=_0x21b88d?_0x34f9f9(0x257):_0x34f9f9(0x2a4),_0x19bf87=_0x2ebe3f[_0x34f9f9(0x1bc)]&&(_0x21b88d||_0x2cfdf5),[_0x532342,_0x532437]=_0x2aa459(!_0x32d163['trim']()),_0x33febd=(_0x5b4f35,_0x2163d7)=>{const _0x1fefa3=_0x34f9f9;if(_0x2163d7===_0x23ba44['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5b4f35){case _0xff81e2['CONNECTED']:return _0x1fefa3(0x225);case _0xff81e2[_0x1fefa3(0x2bb)]:case _0xff81e2[_0x1fefa3(0x2a1)]:return _0x1fefa3(0x27f);case _0xff81e2[_0x1fefa3(0x1ac)]:return _0x1fefa3(0x214);default:return _0x1fefa3(0x2a8);}},_0x5eed14=(_0x5aa91a,_0x15e727)=>{const _0x393245=_0x34f9f9;if(_0x15e727===_0x23ba44[_0x393245(0x23c)])return _0x393245(0x2a7);switch(_0x5aa91a){case _0xff81e2[_0x393245(0x281)]:return _0x393245(0x2ad);case _0xff81e2[_0x393245(0x2bb)]:case _0xff81e2['RETRYING']:return _0x393245(0x216);case _0xff81e2[_0x393245(0x1ac)]:return'univer-bg-red-500';default:return _0x393245(0x251);}},_0x507aca=_0x18f379=>{const _0x127201=_0x34f9f9;switch(_0x18f379){case _0xff81e2[_0x127201(0x281)]:return _0x46c3f1['t'](_0x127201(0x25c));case _0xff81e2[_0x127201(0x2bb)]:return _0x46c3f1['t']('mcpConfig.connectionStatus.connecting');case _0xff81e2['FAILED']:return _0x46c3f1['t'](_0x127201(0x1db));case _0xff81e2[_0x127201(0x2a1)]:return _0x46c3f1['t']('mcpConfig.connectionStatus.retrying');default:return _0x46c3f1['t'](_0x127201(0x254));}},_0x4a7515=_0x37df40=>{const _0x1ac2cb=_0x34f9f9;switch(_0x37df40){case _0x23ba44[_0x1ac2cb(0x23c)]:return _0x46c3f1['t'](_0x1ac2cb(0x185));case _0x23ba44[_0x1ac2cb(0x279)]:return _0x46c3f1['t'](_0x1ac2cb(0x235));case _0x23ba44[_0x1ac2cb(0x259)]:return _0x46c3f1['t'](_0x1ac2cb(0x243));case _0x23ba44[_0x1ac2cb(0x22c)]:return _0x46c3f1['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x473305=_0x3c10b4(()=>{const _0x38131b=_0x34f9f9,_0x5f10db={..._0x4cab80,'apiKey':_0x32d163[_0x38131b(0x23a)](),'enableAuth':_0x5bbad0};_0x273255(_0x5f10db);},[_0x4cab80,_0x32d163,_0x5bbad0,_0x273255]),_0x4534e6=_0x32d163[_0x34f9f9(0x23a)]()[_0x34f9f9(0x1be)]>0x0;return _0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1c6),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x203),'children':_0x18c759('div',{'className':_0x34f9f9(0x2a3),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x219),'children':_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-white','children':'⚙'})}),_0x462323(_0x34f9f9(0x207),{'children':_0x462323('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x46c3f1['t'](_0x34f9f9(0x247))})})]})}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1f3),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x5b246f(_0x34f9f9(0x26f),_0x33febd(_0x57012e,_0x478594)),'children':_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x272),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x5b246f(_0x34f9f9(0x21a),_0x5eed14(_0x57012e,_0x478594))}),_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x172),'children':_0x507aca(_0x57012e)})]})}),_0x478594!==_0x23ba44[_0x34f9f9(0x222)]&&(_0x57012e===_0xff81e2[_0x34f9f9(0x1ac)]||_0x478594===_0x23ba44[_0x34f9f9(0x23c)])&&_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x228),'children':_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2a0),'children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x276),'children':'⚠️'}),_0x462323('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4a7515(_0x478594)})]})})]}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x21e),'children':_0x18c759(_0x34f9f9(0x207),{'className':'univer-space-y-5','children':[_0x18c759(_0x34f9f9(0x207),{'className':'univer-space-y-2','children':[_0x18c759(_0x34f9f9(0x290),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🔑'}),'\x20',_0x46c3f1['t']('mcpConfig.apiKey'),_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-red-500','children':'*'}),_0x549b25&&_0x462323('a',{'className':_0x34f9f9(0x170),'title':_0x46c3f1['t'](_0x34f9f9(0x1c5)),'role':_0x34f9f9(0x17d),'onClick':()=>_0x532437(!0x0),'children':_0x462323(ve,{})})]}),_0x462323(_0x2186ab,{'type':_0x34f9f9(0x28d),'placeholder':_0x46c3f1['t'](_0x34f9f9(0x265)),'value':_0x32d163,'disabled':_0x347ad0,'autoComplete':'off','onChange':_0x467e6d}),_0x462323('p',{'className':_0x34f9f9(0x27b),'children':_0x46c3f1['t'](_0x34f9f9(0x291))})]}),_0x549b25&&_0x532342&&_0x18c759('div',{'className':_0x34f9f9(0x24c),'children':[_0x462323('a',{'className':_0x34f9f9(0x1e0),'role':_0x34f9f9(0x17d),'onClick':()=>_0x532437(!0x1),'children':_0x462323(ue,{'className':'univer-size-4'})}),_0x18c759('div',{'className':_0x34f9f9(0x268),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x28c),'children':_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x252),'children':'🚀'})}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1f7),'children':[_0x462323('h4',{'className':_0x34f9f9(0x253),'children':_0x46c3f1['t'](_0x34f9f9(0x1c5))}),_0x462323('p',{'className':_0x34f9f9(0x17e),'children':_0x46c3f1['t'](_0x34f9f9(0x29e))}),_0x462323(_0x34f9f9(0x207),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x19bf87&&_0x18c759('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':_0x3bba40,'target':'_blank','rel':'noopener\x20noreferrer','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🤖'}),_0x46c3f1['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x462323(_0x34f9f9(0x1a6),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x18c759(_0x34f9f9(0x207),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x46c3f1['t'](_0x34f9f9(0x26d))]})]})]})]}),_0x2ebe3f[_0x34f9f9(0x1bc)]&&_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x286),'children':[_0x18c759('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'🔗'}),'\x20',_0x46c3f1['t'](_0x34f9f9(0x28a))]}),_0x18c759('div',{'className':_0x34f9f9(0x249),'children':[_0x18c759('div',{'className':_0x34f9f9(0x1f9),'children':[_0x462323('p',{'className':_0x34f9f9(0x245),'children':_0x46c3f1['t']('mcpConfig.configInstructions')}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1fa),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x46c3f1['t'](_0x34f9f9(0x2b0))}),_0x18c759('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x18c759('div',{'className':_0x34f9f9(0x272),'children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x1e6),'children':'1'}),_0x46c3f1['t'](_0x34f9f9(0x21c))]}),_0x18c759('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323('span',{'className':_0x34f9f9(0x1e6),'children':'2'}),_0x46c3f1['t'](_0x34f9f9(0x1e7))]}),_0x18c759(_0x34f9f9(0x207),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323(_0x34f9f9(0x1a6),{'className':_0x34f9f9(0x1e6),'children':'3'}),_0x46c3f1['t'](_0x34f9f9(0x1de))]})]})]})]}),_0x18c759('div',{'className':_0x34f9f9(0x1fa),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x34f9f9(0x20b)}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1b8),'children':_0x462323(_0x34f9f9(0x192),{'className':_0x34f9f9(0x1ea),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x34f9f9(0x1a3)+(_0x43c5c6||_0x34f9f9(0x1cc)),'type':_0x34f9f9(0x261),'headers':{'Authorization':_0x34f9f9(0x1d3)+(_0x32d163||'<API_KEY>')}}}},null,0x2)})})]}),_0x18c759('div',{'className':_0x34f9f9(0x1f9),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x2b2),'children':_0x46c3f1['t'](_0x34f9f9(0x21d))}),_0x18c759('div',{'className':_0x34f9f9(0x1fa),'children':[_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x298),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x25f)}),_0x18c759('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x462323('div',{'className':_0x34f9f9(0x229),'children':'univer_session_id:'}),_0x462323('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x46c3f1['t'](_0x34f9f9(0x2b9))})]})]}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x298),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x25f)}),_0x18c759('div',{'className':_0x34f9f9(0x248),'children':[_0x462323(_0x34f9f9(0x207),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x34f9f9(0x2b6)}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x27b),'children':_0x46c3f1['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x462323(_0x3af2d5,{'onClick':_0x473305,'disabled':!_0x4534e6||_0x347ad0,'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':_0x347ad0?_0x18c759(_0x34f9f9(0x1a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x462323(_0x34f9f9(0x1a6),{'children':'⟲'}),_0x46c3f1['t'](_0x34f9f9(0x200))]}):_0x18c759('span',{'className':_0x34f9f9(0x272),'children':[_0x462323(le,{}),_0x46c3f1['t'](_0x34f9f9(0x19d))]})}),_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x294),'children':_0x18c759('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x462323(_0x34f9f9(0x1a6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x18c759(_0x34f9f9(0x207),{'className':_0x34f9f9(0x1d2),'children':[_0x462323(_0x34f9f9(0x207),{'className':_0x34f9f9(0x176),'children':_0x34f9f9(0x1a8)}),_0x18c759(_0x34f9f9(0x207),{'children':['•',_0x46c3f1['t'](_0x34f9f9(0x21b))]}),_0x18c759('div',{'children':['•',_0x46c3f1['t'](_0x34f9f9(0x240))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3c9208(0x270)],tn=(_0x21ec20,_0x4c4a53,_0x52230c,_0x1795c1)=>{const _0x597bb3=_0x3c9208;for(var _0x587d30=_0x1795c1>0x1?void 0x0:_0x1795c1?rn(_0x4c4a53,_0x52230c):_0x4c4a53,_0x55e87a=_0x21ec20[_0x597bb3(0x1be)]-0x1,_0x247656;_0x55e87a>=0x0;_0x55e87a--)(_0x247656=_0x21ec20[_0x55e87a])&&(_0x587d30=_0x247656(_0x587d30)||_0x587d30);return _0x587d30;},d=(_0x4102ae,_0xce7d00)=>(_0x555a80,_0x2c8fd1)=>_0xce7d00(_0x555a80,_0x2c8fd1,_0x4102ae);const U=_0x3c9208(0x234),L=_0x3c9208(0x28b);let I=class extends _0x5cea02{constructor(_0x1fd1ee,_0x435ed2,_0x10f658,_0x521257,_0x5cad00,_0x327fc2,_0x3b4d3e,_0x322acd,_0x192a16,_0x177abe){const _0x705b77=_0x3c9208;super(),x(this,_0x705b77(0x19e),new _0x314270(!0x1)),x(this,_0x705b77(0x1a4),new _0x314270({})),x(this,_0x705b77(0x1ae),new _0x314270({})),x(this,_0x705b77(0x267),new _0x314270('')),x(this,_0x705b77(0x24e),async _0x2ee118=>{const _0x22a8f2=_0x705b77;var _0x4a72d4,_0x26f79a;this[_0x22a8f2(0x19e)]['next'](!0x0);try{const _0x3e1656=await this[_0x22a8f2(0x22a)](_0x2ee118);if(!_0x3e1656[_0x22a8f2(0x1b7)]){this['_messageService'][_0x22a8f2(0x21f)]({'type':_0x6e385b[_0x22a8f2(0x297)],'content':_0x3e1656[_0x22a8f2(0x24a)]||this[_0x22a8f2(0x1ee)]['t'](_0x22a8f2(0x181))});return;}_0x2ee118[_0x22a8f2(0x16f)]?await this['_localStorageService']['setItem'](U,_0x2ee118[_0x22a8f2(0x16f)]['trim']()):await this['_localStorageService'][_0x22a8f2(0x1f5)](U),this[_0x22a8f2(0x267)][_0x22a8f2(0x1b5)](((_0x4a72d4=_0x2ee118[_0x22a8f2(0x16f)])==null?void 0x0:_0x4a72d4[_0x22a8f2(0x23a)]())||''),this[_0x22a8f2(0x1ba)][_0x22a8f2(0x28f)]({'Authorization':_0x22a8f2(0x1d3)+((_0x26f79a=_0x2ee118[_0x22a8f2(0x16f)])==null?void 0x0:_0x26f79a[_0x22a8f2(0x23a)]())}),this[_0x22a8f2(0x2bd)][_0x22a8f2(0x21f)]({'type':_0x6e385b[_0x22a8f2(0x27c)],'content':this[_0x22a8f2(0x1ee)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x529248=_0x22a8f2;this[_0x529248(0x1cb)][_0x529248(0x1d6)](L);},0x320);}catch(_0x1123c3){this[_0x22a8f2(0x226)][_0x22a8f2(0x1e4)](_0x22a8f2(0x2a9),_0x1123c3),this[_0x22a8f2(0x2bd)]['show']({'type':_0x6e385b[_0x22a8f2(0x297)],'content':this[_0x22a8f2(0x1ee)]['t'](_0x22a8f2(0x1bd))});}finally{this[_0x22a8f2(0x19e)][_0x22a8f2(0x1b5)](!0x1);}}),(this[_0x705b77(0x171)]=_0x1fd1ee,this['_uiPartsService']=_0x435ed2,this[_0x705b77(0x2af)]=_0x10f658,this[_0x705b77(0x241)]=_0x521257,this[_0x705b77(0x1cb)]=_0x5cad00,this[_0x705b77(0x2bd)]=_0x327fc2,this[_0x705b77(0x177)]=_0x3b4d3e,this[_0x705b77(0x1ee)]=_0x322acd,this['_logService']=_0x192a16,this[_0x705b77(0x1ba)]=_0x177abe,this[_0x705b77(0x19b)](),this[_0x705b77(0x283)](),this['_registerComponent']());}[_0x3c9208(0x2ac)](){const _0x442d97=_0x3c9208,_0xc0b624=this['_configService']['getConfig'](y);_0xc0b624!=null&&_0xc0b624['showDeveloperTools']&&this[_0x442d97(0x1cb)]['open']({'id':L,'title':{'title':this[_0x442d97(0x1ee)]['t'](_0x442d97(0x28e))},'children':{'label':_0x442d97(0x173)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3c4907=_0x442d97;this[_0x3c4907(0x1cb)][_0x3c4907(0x1d6)](L);}});}[_0x3c9208(0x1a0)](){const _0x1e2422=_0x3c9208;return this[_0x1e2422(0x1a4)][_0x1e2422(0x2ae)];}['_registerComponent'](){const _0x4a5bc0=_0x3c9208;this[_0x4a5bc0(0x285)](this[_0x4a5bc0(0x177)]['register'](_0x4a5bc0(0x173),this['_createConfigPanelComponent']()));}[_0x3c9208(0x1f2)](){const _0x94de7d=_0x3c9208;return _0x5dfb6b(()=>{const _0x4b6688=_0x2f9c;var _0x2ac3a4,_0x509bcb,_0x57bcf7;return _0x462323(nn,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x4b6688(0x1a4)][_0x4b6688(0x2ae)],'currentApiKey$':this[_0x4b6688(0x267)],'onSave':this[_0x4b6688(0x24e)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x2ac3a4=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x2ac3a4[_0x4b6688(0x25a)],'connectionError$':(_0x509bcb=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x509bcb[_0x4b6688(0x1c9)],'currentSessionId$':(_0x57bcf7=this[_0x4b6688(0x1ba)])==null?void 0x0:_0x57bcf7[_0x4b6688(0x184)]});},this[_0x94de7d(0x171)]);}[_0x3c9208(0x19b)](){const _0x43945a=_0x3c9208;this[_0x43945a(0x285)](this[_0x43945a(0x2af)][_0x43945a(0x2b1)](_0x1c72e8)[_0x43945a(0x20a)](_0x3a678c=>{const _0x26f858=_0x43945a;this[_0x26f858(0x1a4)][_0x26f858(0x1b5)](_0x3a678c||{});}));const _0x3c475c=this[_0x43945a(0x2af)][_0x43945a(0x274)](_0x1c72e8);this[_0x43945a(0x1a4)][_0x43945a(0x1b5)](_0x3c475c||{}),this[_0x43945a(0x285)](this[_0x43945a(0x2af)][_0x43945a(0x2b1)](y)[_0x43945a(0x20a)](_0x4caffc=>{const _0x23ca5a=_0x43945a;this[_0x23ca5a(0x1ae)]['next'](_0x4caffc||{});}));const _0x501f07=this[_0x43945a(0x2af)]['getConfig'](y);this['_config$'][_0x43945a(0x1b5)](_0x501f07||{});}async[_0x3c9208(0x283)](){const _0x240f03=_0x3c9208,_0x569c35=this[_0x240f03(0x2af)]['getConfig'](y);if(!(_0x569c35!=null&&_0x569c35[_0x240f03(0x1bc)]))return;const _0x6fefb2=await this[_0x240f03(0x241)][_0x240f03(0x1c3)](U);_0x6fefb2&&(this[_0x240f03(0x1ba)][_0x240f03(0x28f)]({'Authorization':_0x240f03(0x1d3)+_0x6fefb2}),this[_0x240f03(0x267)]['next'](_0x6fefb2));}async[_0x3c9208(0x22a)](_0x40f6f1){const _0x42e328=_0x3c9208;if(!_0x40f6f1[_0x42e328(0x16f)]||_0x40f6f1[_0x42e328(0x16f)]['trim']()[_0x42e328(0x1be)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x42e328(0x1ee)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x40f6f1['apiKey'][_0x42e328(0x23a)]()[_0x42e328(0x1be)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x42e328(0x1ee)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x1bc997=await this[_0x42e328(0x171)][_0x42e328(0x29b)](_0x14f893)['validateApiKey'](_0x40f6f1[_0x42e328(0x16f)][_0x42e328(0x23a)]());return _0x1bc997[_0x42e328(0x1b7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1bc997[_0x42e328(0x1e4)]||this[_0x42e328(0x1ee)]['t'](_0x42e328(0x221))};}catch(_0x172eab){return console['warn'](_0x42e328(0x287),_0x172eab),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4bcb75(_0x57274b)),d(0x1,_0x549fee),d(0x2,_0x575615),d(0x3,_0x9e998),d(0x4,_0x4ac42f),d(0x5,_0x419c17),d(0x6,_0x4bcb75(_0x135d71)),d(0x7,_0x4bcb75(_0x53bf0c)),d(0x8,_0xf54f67),d(0x9,_0x4bcb75(_0x14f893))],I);const V={'id':_0x3c9208(0x1e9),'type':_0x1f1a15[_0x3c9208(0x26b)],'handler':async(_0x237251,_0x35b3d3)=>(_0x237251[_0x3c9208(0x29b)](I)[_0x3c9208(0x2ac)](),!0x0)};function pe(_0x32d73b,_0x3ad4ee){const _0x201f49=_0x3c9208;switch(_0x32d73b){case _0xff81e2[_0x201f49(0x20c)]:return _0x201f49(0x1e3);case _0xff81e2['CONNECTING']:return _0x201f49(0x204);case _0xff81e2['CONNECTED']:return _0x201f49(0x19c);case _0xff81e2[_0x201f49(0x1ac)]:switch(_0x3ad4ee){case _0x23ba44[_0x201f49(0x23c)]:return _0x201f49(0x205);case _0x23ba44[_0x201f49(0x279)]:return _0x201f49(0x1fc);case _0x23ba44[_0x201f49(0x259)]:return _0x201f49(0x20f);case _0x23ba44[_0x201f49(0x22c)]:return _0x201f49(0x277);default:return _0x201f49(0x18d);}case _0xff81e2['RETRYING']:return _0x201f49(0x17a);default:return _0x201f49(0x29f);}}function on(_0x20410b,_0x126301,_0x4f1d92,_0x38f18f=!0x0){const _0x30db2c=_0x3c9208,_0x4c4324=pe(_0x20410b,_0x126301),_0xb4c857=_0x4f1d92['t'](_0x4c4324);return _0x38f18f?_0x20410b===_0xff81e2[_0x30db2c(0x20c)]&&_0x126301===_0x23ba44[_0x30db2c(0x23c)]?_0xb4c857+'\x20-\x20'+_0x4f1d92['t'](_0x30db2c(0x1df)):_0x20410b===_0xff81e2[_0x30db2c(0x281)]?''+_0xb4c857:_0x20410b===_0xff81e2['DISCONNECTED']||_0x20410b===_0xff81e2[_0x30db2c(0x1ac)]?_0xb4c857+_0x30db2c(0x1b9)+_0x4f1d92['t']('mcpStatus.clickToConnect'):_0xb4c857:_0xb4c857;}function sn(_0xa2d2c){const _0x2378cd=_0x3c9208;switch(_0xa2d2c){case _0xff81e2['CONNECTED']:return _0x2378cd(0x1ef);case _0xff81e2['CONNECTING']:case _0xff81e2[_0x2378cd(0x2a1)]:return _0x2378cd(0x2c1);case _0xff81e2[_0x2378cd(0x1ac)]:case _0xff81e2[_0x2378cd(0x20c)]:return _0x2378cd(0x288);default:return _0x2378cd(0x1b1);}}function _0x2f9c(_0x22124f,_0x135566){const _0x160a21=_0x160a();return _0x2f9c=function(_0x2f9cd8,_0x10278d){_0x2f9cd8=_0x2f9cd8-0x16f;let _0x558cbd=_0x160a21[_0x2f9cd8];return _0x558cbd;},_0x2f9c(_0x22124f,_0x135566);}function cn(_0x1671b7){const _0x326fc9=_0x3c9208,{status$:_0x4784a8,error$:_0x277b43,onConfigure:_0x44bc9d,showClickable:_0x528c65=!0x0}=_0x1671b7,_0x2b2426=_0x3a8338(_0x4784a8,_0xff81e2['DISCONNECTED']),_0x1ec468=_0x3a8338(_0x277b43,_0x23ba44[_0x326fc9(0x222)]),_0x5304e7=_0x150436(_0x53bf0c),_0x3fdaca=_0x2b2426===_0xff81e2[_0x326fc9(0x281)];_0x2b2426===_0xff81e2[_0x326fc9(0x2bb)]||_0xff81e2[_0x326fc9(0x2a1)];const _0x1b90c6=_0x5304e7['t'](pe(_0x2b2426,_0x1ec468)),_0x3cb573=on(_0x2b2426,_0x1ec468,_0x5304e7,_0x528c65),_0x2302ae=sn(_0x2b2426),_0x1b69f7=_0x3fdaca?_0x462323(ge,{}):_0x462323(de,{}),_0x1076bd=_0x3c10b4(()=>{_0x528c65&&_0x44bc9d&&_0x44bc9d();},[_0x528c65,_0x44bc9d]);function _0x532de6(){const _0x35234b=_0x326fc9;return _0x18c759('div',{'className':_0x5b246f(_0x35234b(0x282),_0x528c65&&_0x44bc9d&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x35234b(0x17d),'onClick':_0x528c65&&_0x44bc9d?_0x1076bd:void 0x0,'children':[_0x462323(_0x35234b(0x207),{'className':_0x5b246f(_0x35234b(0x1e1),_0x2302ae),'children':_0x1b69f7}),_0x462323(_0x35234b(0x207),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1b90c6})]});}return _0x462323(_0x39918b,{'title':_0x3cb573,'placement':'bottom','children':_0x532de6()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x2d8921,_0xb30912,_0x5c761d,_0x24d9ed)=>{const _0x55719e=_0x3c9208;for(var _0x11a47d=_0x24d9ed>0x1?void 0x0:_0x24d9ed?an(_0xb30912,_0x5c761d):_0xb30912,_0x52ebb4=_0x2d8921[_0x55719e(0x1be)]-0x1,_0x5c5bcf;_0x52ebb4>=0x0;_0x52ebb4--)(_0x5c5bcf=_0x2d8921[_0x52ebb4])&&(_0x11a47d=_0x5c5bcf(_0x11a47d)||_0x11a47d);return _0x11a47d;},M=(_0x5a1196,_0x5353dc)=>(_0x5ed73d,_0x551887)=>_0x5353dc(_0x5ed73d,_0x551887,_0x5a1196);let O=class extends _0x5cea02{constructor(_0x15dd1d,_0x3f0f2a,_0x3a622b,_0x43e862){const _0x5089c8=_0x3c9208;super(),this['_injector']=_0x15dd1d,this[_0x5089c8(0x1c0)]=_0x3f0f2a,this['_uiPartsService']=_0x3a622b,this[_0x5089c8(0x2af)]=_0x43e862,this[_0x5089c8(0x1a1)](),this[_0x5089c8(0x1e5)]();}['_initAutoConnect'](){const _0x3c24e3=_0x3c9208,_0x3dd84c=this[_0x3c24e3(0x2af)][_0x3c24e3(0x274)](y);_0x3dd84c!=null&&_0x3dd84c[_0x3c24e3(0x1bc)]&&(this[_0x3c24e3(0x1c0)][_0x3c24e3(0x196)]=!0x1);}[_0x3c9208(0x1e5)](){const _0x3ff391=_0x3c9208,_0x99b1c0=this[_0x3ff391(0x2af)][_0x3ff391(0x274)](y);(_0x99b1c0==null?void 0x0:_0x99b1c0[_0x3ff391(0x189)])!==!0x1&&this[_0x3ff391(0x285)](this[_0x3ff391(0x2a6)][_0x3ff391(0x2b4)](_0x538232[_0x3ff391(0x239)],()=>{const _0x38ec52=_0x3ff391;var _0x372b29;return _0x5dfb6b(un({'status$':this[_0x38ec52(0x1c0)][_0x38ec52(0x25a)],'error$':this[_0x38ec52(0x1c0)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x372b29=_0x99b1c0==null?void 0x0:_0x99b1c0[_0x38ec52(0x1bc)])!=null?_0x372b29:!0x1}),this[_0x38ec52(0x171)]);}));}[_0x3c9208(0x23d)](){const _0x537cb8=_0x3c9208;this[_0x537cb8(0x171)][_0x537cb8(0x29b)](I)[_0x537cb8(0x2ac)]();}};O=ln([M(0x0,_0x4bcb75(_0x57274b)),M(0x1,_0x4bcb75(_0x14f893)),M(0x2,_0x549fee),M(0x3,_0x575615)],O);function un(_0x2ebe8e){const {status$:_0x3508fa,error$:_0xf0ada5,onConfigure:_0x4d0690,showClickable:_0x1a9616}=_0x2ebe8e;return function(){return _0x462323(cn,{'status$':_0x3508fa,'error$':_0xf0ada5,'onConfigure':_0x4d0690,'showClickable':_0x1a9616});};}function vn(_0x525a53){const _0x22518d=_0x3c9208;return{'id':V['id'],'type':_0x247193[_0x22518d(0x209)],'icon':_0x22518d(0x22b),'title':'mcpConfig.title','tooltip':_0x22518d(0x28e)};}const dn={[_0xa097e0[_0x3c9208(0x213)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3c9208(0x270)],pn=(_0x1912fc,_0x311426,_0x53c4f3,_0x4b8a14)=>{const _0x4b2993=_0x3c9208;for(var _0x4864d6=_0x4b8a14>0x1?void 0x0:_0x4b8a14?gn(_0x311426,_0x53c4f3):_0x311426,_0x24440a=_0x1912fc[_0x4b2993(0x1be)]-0x1,_0x4a1236;_0x24440a>=0x0;_0x24440a--)(_0x4a1236=_0x1912fc[_0x24440a])&&(_0x4864d6=_0x4a1236(_0x4864d6)||_0x4864d6);return _0x4864d6;},re=(_0xed6746,_0x55753b)=>(_0x43ad41,_0x47fb35)=>_0x55753b(_0x43ad41,_0x47fb35,_0xed6746);let D=class extends _0x5cea02{constructor(_0x448b86,_0x22854b){const _0x56e1da=_0x3c9208;super(),this[_0x56e1da(0x220)]=_0x448b86,this[_0x56e1da(0x2b3)]=_0x22854b,this['_initializeCommands'](),this['_initializeMenus']();}[_0x3c9208(0x19a)](){[V]['forEach'](_0x2cf4a0=>{const _0x30a38e=_0x2f9c;this[_0x30a38e(0x285)](this[_0x30a38e(0x220)][_0x30a38e(0x1cd)](_0x2cf4a0));});}[_0x3c9208(0x1dd)](){const _0x593422=_0x3c9208;this[_0x593422(0x2b3)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x3900c0),re(0x1,_0x54a9fe)],D);const Mn={'mcpStatus':{'disconnected':_0x3c9208(0x215),'connecting':_0x3c9208(0x18e),'connected':_0x3c9208(0x1c2),'failed':_0x3c9208(0x29d),'retrying':'MCP\x20Retrying...','unknown':_0x3c9208(0x280),'unauthorized':_0x3c9208(0x199),'sessionOccupied':_0x3c9208(0x295),'networkError':_0x3c9208(0x179),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3c9208(0x2c2),'clickToConfigure':_0x3c9208(0x191)},'mcpConfig':{'title':_0x3c9208(0x20b),'description':_0x3c9208(0x25e),'apiKey':_0x3c9208(0x273),'apiKeyPlaceholder':_0x3c9208(0x27a),'apiKeyHint':_0x3c9208(0x278),'enableAuth':_0x3c9208(0x1a5),'enableAuthHint':_0x3c9208(0x1e2),'connectionInfo':_0x3c9208(0x1ad),'mcpClientConfig':_0x3c9208(0x1ad),'configInstructions':_0x3c9208(0x174),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3c9208(0x1dc),'configStep2':_0x3c9208(0x18b),'configStep3':_0x3c9208(0x1c4),'sessionId':'Session\x20ID','sessionIdDescription':_0x3c9208(0x1ec),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3c9208(0x255),'maxRetries':'Max\x20Retries','save':_0x3c9208(0x2bc),'saving':_0x3c9208(0x2a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3c9208(0x1d0),'configSaved':_0x3c9208(0x275),'configError':_0x3c9208(0x201),'apiApplyInfo':{'title':_0x3c9208(0x20d),'description':_0x3c9208(0x195),'univerAiLabel':_0x3c9208(0x211),'getStarted':_0x3c9208(0x190)},'validation':{'apiKeyRequired':_0x3c9208(0x206),'apiKeyTooShort':_0x3c9208(0x1fb),'invalidConfig':_0x3c9208(0x233),'invalidApiKey':_0x3c9208(0x26a)},'connectionStatus':{'disconnected':_0x3c9208(0x1ed),'connecting':_0x3c9208(0x1f4),'connected':_0x3c9208(0x289),'failed':'Connection\x20Failed','retrying':_0x3c9208(0x1a7)},'connectionError':{'unauthorized':_0x3c9208(0x1d4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3c9208(0x230),'maxRetriesExceeded':_0x3c9208(0x236)}}},An={'mcpStatus':{'disconnected':_0x3c9208(0x1cf),'connecting':_0x3c9208(0x296),'connected':_0x3c9208(0x2b7),'failed':_0x3c9208(0x1d5),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3c9208(0x23b),'networkError':_0x3c9208(0x1f6),'maxRetriesExceeded':_0x3c9208(0x20e),'clickToConnect':_0x3c9208(0x284),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3c9208(0x1fd),'description':_0x3c9208(0x292),'apiKey':_0x3c9208(0x2aa),'apiKeyPlaceholder':_0x3c9208(0x23e),'apiKeyHint':_0x3c9208(0x1b0),'enableAuth':_0x3c9208(0x1d9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3c9208(0x186),'configInstructions':_0x3c9208(0x299),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3c9208(0x1da),'sessionId':_0x3c9208(0x1c1),'sessionIdDescription':_0x3c9208(0x29c),'authorizationDescription':_0x3c9208(0x188),'configParameters':'配置参数:','maxRetries':_0x3c9208(0x266),'save':_0x3c9208(0x244),'saving':_0x3c9208(0x27e),'note1':_0x3c9208(0x2c0),'note2':_0x3c9208(0x175),'configSaved':_0x3c9208(0x2ab),'configError':'配置保存失败','apiApplyInfo':{'title':_0x3c9208(0x18f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x3c9208(0x208),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3c9208(0x210),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x3c9208(0x1e8)},'connectionStatus':{'disconnected':'未连接','connecting':_0x3c9208(0x18a),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x3c9208(0x197),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x3c9208(0x180),'maxRetriesExceeded':_0x3c9208(0x293)}}};var fn=Object[_0x3c9208(0x1d8)],hn=Object[_0x3c9208(0x270)],Cn=(_0x5a7e84,_0x502643,_0x302ada)=>_0x502643 in _0x5a7e84?fn(_0x5a7e84,_0x502643,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x302ada}):_0x5a7e84[_0x502643]=_0x302ada,mn=(_0x160f23,_0x46c321,_0x3887f5,_0x3350e1)=>{const _0x328c8c=_0x3c9208;for(var _0x259baf=_0x3350e1>0x1?void 0x0:_0x3350e1?hn(_0x46c321,_0x3887f5):_0x46c321,_0x5175a4=_0x160f23[_0x328c8c(0x1be)]-0x1,_0x3a704c;_0x5175a4>=0x0;_0x5175a4--)(_0x3a704c=_0x160f23[_0x5175a4])&&(_0x259baf=_0x3a704c(_0x259baf)||_0x259baf);return _0x259baf;},P=(_0x36549e,_0x1c1c03)=>(_0x18a79e,_0x5e5759)=>_0x1c1c03(_0x18a79e,_0x5e5759,_0x36549e),_n=(_0x286019,_0x3cbb2d,_0x36433b)=>Cn(_0x286019,_0x3cbb2d+'',_0x36433b);let j=class extends _0x5d41e1{constructor(_0x4c0625=ie,_0x3fa566,_0x54117d,_0x40c441,_0x5c3ad7,_0x2e0d5b){const _0x2e5772=_0x3c9208;super(),this[_0x2e5772(0x17b)]=_0x4c0625,this[_0x2e5772(0x171)]=_0x3fa566,this[_0x2e5772(0x2af)]=_0x54117d,this['_uiPartsService']=_0x40c441,this['_localStorageService']=_0x5c3ad7,this['_localeService']=_0x2e0d5b;const {..._0x4472e4}=_0x211ca7({},ie,this[_0x2e5772(0x17b)]);this[_0x2e5772(0x2af)][_0x2e5772(0x2a2)](y,_0x4472e4);}async['onStarting'](){const _0x165134=_0x3c9208,_0x361d84=[[O],[I],[D]];this[_0x165134(0x171)][_0x165134(0x1b2)](_0x10fe15)||_0x361d84[_0x165134(0x212)]([_0x10fe15,{'useClass':_0x451010}]),_0x361d84['forEach'](_0x8ee386=>this[_0x165134(0x171)]['add'](_0x8ee386)),this['_injector'][_0x165134(0x29b)](O),this[_0x165134(0x171)][_0x165134(0x29b)](I),this['_injector'][_0x165134(0x29b)](D);}};_n(j,_0x3c9208(0x1c8),_0x3c9208(0x1bb)),j=mn([_0x5862b0(_0x245195),P(0x1,_0x4bcb75(_0x57274b)),P(0x2,_0x575615),P(0x3,_0x549fee),P(0x4,_0x9e998),P(0x5,_0x4bcb75(_0x53bf0c))],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 _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
+ const _0x2bf633=_0xd5aa;(function(_0x306395,_0x3bf970){const _0x15f091=_0xd5aa,_0xc61bb3=_0x306395();while(!![]){try{const _0x42dbdb=parseInt(_0x15f091(0x128))/0x1+parseInt(_0x15f091(0x124))/0x2*(-parseInt(_0x15f091(0x121))/0x3)+-parseInt(_0x15f091(0x11b))/0x4*(-parseInt(_0x15f091(0x11a))/0x5)+-parseInt(_0x15f091(0x12e))/0x6*(-parseInt(_0x15f091(0x12c))/0x7)+parseInt(_0x15f091(0x12f))/0x8+parseInt(_0x15f091(0x138))/0x9*(-parseInt(_0x15f091(0x126))/0xa)+parseInt(_0x15f091(0x129))/0xb*(-parseInt(_0x15f091(0x11c))/0xc);if(_0x42dbdb===_0x3bf970)break;else _0xc61bb3['push'](_0xc61bb3['shift']());}catch(_0x577238){_0xc61bb3['push'](_0xc61bb3['shift']());}}}(_0x559b,0x584cd));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2bf633(0x13c),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2bf633(0x115),'unauthorized':_0x2bf633(0x133),'sessionOccupied':_0x2bf633(0x112),'networkError':_0x2bf633(0x12d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2bf633(0x134)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2bf633(0x113),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2bf633(0x12b),'apiKeyHint':_0x2bf633(0x110),'enableAuth':_0x2bf633(0x130),'enableAuthHint':_0x2bf633(0x117),'connectionInfo':_0x2bf633(0x13d),'mcpClientConfig':_0x2bf633(0x13d),'configInstructions':_0x2bf633(0x114),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2bf633(0x13e),'configStep2':_0x2bf633(0x137),'configStep3':_0x2bf633(0x120),'sessionId':_0x2bf633(0x127),'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':_0x2bf633(0x12a),'maxRetries':_0x2bf633(0x11d),'save':_0x2bf633(0x13b),'saving':'Saving...','note1':_0x2bf633(0x135),'note2':_0x2bf633(0x136),'configSaved':_0x2bf633(0x11f),'configError':_0x2bf633(0x11e),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2bf633(0x123),'univerAiLabel':_0x2bf633(0x111),'getStarted':_0x2bf633(0x119)},'validation':{'apiKeyRequired':_0x2bf633(0x122),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2bf633(0x118)},'connectionStatus':{'disconnected':_0x2bf633(0x132),'connecting':_0x2bf633(0x131),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x2bf633(0x116)},'connectionError':{'unauthorized':_0x2bf633(0x13a),'sessionOccupied':_0x2bf633(0x125),'networkError':_0x2bf633(0x139),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};function _0xd5aa(_0xd8d418,_0x434ddf){const _0x559b4e=_0x559b();return _0xd5aa=function(_0xd5aa8c,_0x5d231b){_0xd5aa8c=_0xd5aa8c-0x110;let _0x217017=_0x559b4e[_0xd5aa8c];return _0x217017;},_0xd5aa(_0xd8d418,_0x434ddf);}function _0x559b(){const _0xda356f=['Configuration\x20Parameters:','Enter\x20your\x20API\x20key','93366hMlqye','MCP:\x20Network\x20Error','180XkvrIC','5477016kDPEVf','Enable\x20Authentication','Connecting...','Disconnected','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','563814BqhkVM','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','5eXJFuI','759336fCZLBT','4445304FVMyeX','Max\x20Retries','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','592761WsPeCP','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4AKldaZ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','40CXDtEE','Session\x20ID','103276iSXSBF','11Mqtwvd'];_0x559b=function(){return _0xda356f;};return _0x559b();}
@@ -1 +1 @@
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};
1
+ function _0x220d(_0x1222dc,_0x514e04){const _0x3ec510=_0x3ec5();return _0x220d=function(_0x220d9f,_0xeebdf2){_0x220d9f=_0x220d9f-0x7b;let _0x582075=_0x3ec510[_0x220d9f];return _0x582075;},_0x220d(_0x1222dc,_0x514e04);}const _0x158e05=_0x220d;function _0x3ec5(){const _0x1dedef=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Session\x20ID','2719641zIflWX','3045EsDVZU','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','708tKIkwI','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','1143612shqZvJ','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','Invalid\x20configuration','Max\x20Retries','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','4392032IQlDEl','API\x20key\x20is\x20required','Enable\x20Authentication','11343960chNNKN','10748HOMeNO','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','67iQKsCH','Saving...','Configuration\x20Parameters:','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5895456eoSaax','Copy\x20the\x20JSON\x20configuration\x20below'];_0x3ec5=function(){return _0x1dedef;};return _0x3ec5();}(function(_0x1821e1,_0x4089ed){const _0x45b61b=_0x220d,_0x4d0bae=_0x1821e1();while(!![]){try{const _0x123b72=parseInt(_0x45b61b(0x96))/0x1*(-parseInt(_0x45b61b(0x94))/0x2)+-parseInt(_0x45b61b(0xa1))/0x3+parseInt(_0x45b61b(0x87))/0x4+-parseInt(_0x45b61b(0xa2))/0x5*(parseInt(_0x45b61b(0x84))/0x6)+parseInt(_0x45b61b(0x9b))/0x7+-parseInt(_0x45b61b(0x90))/0x8+parseInt(_0x45b61b(0x93))/0x9;if(_0x123b72===_0x4089ed)break;else _0x4d0bae['push'](_0x4d0bae['shift']());}catch(_0x3dce9c){_0x4d0bae['push'](_0x4d0bae['shift']());}}}(_0x3ec5,0x7a558));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x158e05(0x7e),'unauthorized':_0x158e05(0x7c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x158e05(0x99),'maxRetriesExceeded':_0x158e05(0x86),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x158e05(0x8a),'description':_0x158e05(0x83),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x158e05(0x88),'apiKeyHint':_0x158e05(0x85),'enableAuth':_0x158e05(0x92),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x158e05(0x82),'mcpClientConfig':_0x158e05(0x82),'configInstructions':_0x158e05(0x8e),'configStepTitle':_0x158e05(0x7f),'configStep1':_0x158e05(0x9c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x158e05(0x95),'sessionId':_0x158e05(0xa0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x158e05(0x9e),'configParameters':_0x158e05(0x98),'maxRetries':_0x158e05(0x8c),'save':_0x158e05(0x8d),'saving':_0x158e05(0x97),'note1':_0x158e05(0x80),'note2':_0x158e05(0x7d),'configSaved':_0x158e05(0x8f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x158e05(0x7b),'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':_0x158e05(0x9f),'getStarted':_0x158e05(0x81)},'validation':{'apiKeyRequired':_0x158e05(0x91),'apiKeyTooShort':_0x158e05(0x89),'invalidConfig':_0x158e05(0x8b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x158e05(0x9a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x158e05(0x9d),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};