@univerjs-pro/mcp-ui 0.10.8 → 0.10.9-nightly.202509260614

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 (50) 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/types/controllers/config.schema.d.ts +7 -0
  35. package/lib/types/controllers/mcp-connection-ui.controller.d.ts +4 -2
  36. package/lib/types/locale/en-US.d.ts +2 -4
  37. package/lib/types/locale/zh-CN.d.ts +2 -4
  38. package/lib/types/views/components/mcp-status.d.ts +2 -0
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/ca-ES.js +1 -1
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +8 -8
@@ -1 +1 @@
1
- 'use strict';const _0x322c2e=_0x2106;function _0x2106(_0x30c6d0,_0x1ae4ee){const _0x337c94=_0x337c();return _0x2106=function(_0x210677,_0x4249d9){_0x210677=_0x210677-0x9f;let _0x5c184d=_0x337c94[_0x210677];return _0x5c184d;},_0x2106(_0x30c6d0,_0x1ae4ee);}function _0x337c(){const _0x534bb6=['Saving...','API\x20key\x20is\x20required\x20to\x20connect','Retrying...','MCP\x20Client\x20Configuration','Enable\x20Authentication','8132145zFhsDb','Configuration\x20saved\x20successfully','Session\x20ID','1526400RVqCie','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','14PFRpNu','MCP\x20Connection\x20Failed','MCP\x20Connected','363489TxlHCJ','667502dwMDfI','2547640fPmezc','MCP\x20Connecting...','648Nmdlnf','Univer\x20AI\x20Console','MCP:\x20Session\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Invalid\x20API\x20Key','Invalid\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','Connected','Max\x20Retries','API\x20Key','10UqnMGU','Failed\x20to\x20save\x20configuration','3JYfJkA','5589774nftkfy','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','66KbHZeK','237328mJxDzW','Disconnected'];_0x337c=function(){return _0x534bb6;};return _0x337c();}(function(_0xda81ea,_0x4d4a57){const _0x1a1507=_0x2106,_0x482cd5=_0xda81ea();while(!![]){try{const _0x1daea6=-parseInt(_0x1a1507(0xc3))/0x1*(parseInt(_0x1a1507(0xb7))/0x2)+-parseInt(_0x1a1507(0xae))/0x3*(-parseInt(_0x1a1507(0xc8))/0x4)+-parseInt(_0x1a1507(0xbe))/0x5+parseInt(_0x1a1507(0xb6))/0x6*(-parseInt(_0x1a1507(0xc6))/0x7)+parseInt(_0x1a1507(0xc1))/0x8+-parseInt(_0x1a1507(0xaf))/0x9*(-parseInt(_0x1a1507(0xac))/0xa)+parseInt(_0x1a1507(0xc7))/0xb*(parseInt(_0x1a1507(0xca))/0xc);if(_0x1daea6===_0x4d4a57)break;else _0x482cd5['push'](_0x482cd5['shift']());}catch(_0x55158b){_0x482cd5['push'](_0x482cd5['shift']());}}}(_0x337c,0xd398e));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x322c2e(0xc9),'connected':_0x322c2e(0xc5),'failed':_0x322c2e(0xc4),'retrying':'MCP\x20Retrying...','unknown':_0x322c2e(0xb4),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x322c2e(0xa1),'sessionOccupied':_0x322c2e(0xcc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x322c2e(0xb0),'clickToConnect':_0x322c2e(0xa4),'clickToConfigure':_0x322c2e(0xa8)},'mcpConfig':{'title':_0x322c2e(0xce),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x322c2e(0xab),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x322c2e(0xbd),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x322c2e(0xbc),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x322c2e(0x9f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x322c2e(0xb5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x322c2e(0xc0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x322c2e(0xa7),'configParameters':_0x322c2e(0xb2),'maxRetries':_0x322c2e(0xaa),'save':'Save\x20Configuration','saving':_0x322c2e(0xb9),'note1':_0x322c2e(0xc2),'note2':_0x322c2e(0xcf),'configSaved':_0x322c2e(0xbf),'configError':_0x322c2e(0xad),'apiApplyInfo':{'title':_0x322c2e(0xb3),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x322c2e(0xcb),'getStarted':_0x322c2e(0xa6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x322c2e(0xcd),'invalidConfig':_0x322c2e(0xa2),'invalidApiKey':_0x322c2e(0xa5)},'connectionStatus':{'disconnected':_0x322c2e(0xb8),'connecting':'Connecting...','connected':_0x322c2e(0xa9),'failed':_0x322c2e(0xb1),'retrying':_0x322c2e(0xbb)},'connectionError':{'missingApiKey':_0x322c2e(0xba),'invalidApiKey':_0x322c2e(0xa3),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x322c2e(0xa0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x314b87=_0x3ed9;(function(_0x4e1e8a,_0x2ddcda){const _0x11e217=_0x3ed9,_0x2b3a5f=_0x4e1e8a();while(!![]){try{const _0x264f00=parseInt(_0x11e217(0x20f))/0x1*(parseInt(_0x11e217(0x206))/0x2)+-parseInt(_0x11e217(0x20b))/0x3+parseInt(_0x11e217(0x1fa))/0x4+parseInt(_0x11e217(0x21f))/0x5+-parseInt(_0x11e217(0x21a))/0x6*(parseInt(_0x11e217(0x1f4))/0x7)+-parseInt(_0x11e217(0x209))/0x8+parseInt(_0x11e217(0x20c))/0x9;if(_0x264f00===_0x2ddcda)break;else _0x2b3a5f['push'](_0x2b3a5f['shift']());}catch(_0x9e91a){_0x2b3a5f['push'](_0x2b3a5f['shift']());}}}(_0x4db1,0xe3ee7));function _0x4db1(){const _0x17832e=['What\x20is\x20API\x20Key?','518RzXESv','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','API\x20key\x20is\x20required','1418496kWYxDy','Click\x20to\x20connect\x20MCP','exports','Connected','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1140086cRsCQT','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','5583600CrkUEB','MCP\x20Configuration','3152442yEizUw','28471518qqgYdG','API\x20Key','MCP:\x20Session\x20ID\x20Occupied','1laFSvy','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','147474igQxTF','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','Enable\x20Authentication','2065240TXBtNn','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration'];_0x4db1=function(){return _0x17832e;};return _0x4db1();}function _0x3ed9(_0x5530a7,_0x482335){const _0x4db1f7=_0x4db1();return _0x3ed9=function(_0x3ed907,_0x44ac2c){_0x3ed907=_0x3ed907-0x1f2;let _0x424550=_0x4db1f7[_0x3ed907];return _0x424550;},_0x3ed9(_0x5530a7,_0x482335);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x314b87(0x21d),'connected':_0x314b87(0x1f5),'failed':_0x314b87(0x208),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x314b87(0x214),'sessionOccupied':_0x314b87(0x20e),'networkError':_0x314b87(0x200),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x314b87(0x1fb),'clickToConfigure':_0x314b87(0x21b)},'mcpConfig':{'title':_0x314b87(0x20a),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x314b87(0x20d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x314b87(0x21e),'enableAuthHint':_0x314b87(0x213),'connectionInfo':_0x314b87(0x201),'mcpClientConfig':_0x314b87(0x201),'configInstructions':_0x314b87(0x211),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x314b87(0x219),'configStep2':_0x314b87(0x1ff),'configStep3':_0x314b87(0x1f7),'sessionId':_0x314b87(0x202),'sessionIdDescription':_0x314b87(0x212),'authorizationDescription':_0x314b87(0x203),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x314b87(0x210),'note1':_0x314b87(0x218),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x314b87(0x1f2),'apiApplyInfo':{'title':_0x314b87(0x1f3),'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':_0x314b87(0x215),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x314b87(0x1f9),'apiKeyTooShort':_0x314b87(0x1f6),'invalidConfig':_0x314b87(0x204),'invalidApiKey':_0x314b87(0x205)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x314b87(0x1f8),'connected':_0x314b87(0x1fd),'failed':_0x314b87(0x1fe),'retrying':_0x314b87(0x216)},'connectionError':{'unauthorized':_0x314b87(0x217),'sessionOccupied':_0x314b87(0x21c),'networkError':_0x314b87(0x220),'maxRetriesExceeded':_0x314b87(0x207)}}},n=e;module[_0x314b87(0x1fc)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x17ebcd=_0x555b;function _0x555b(_0x44f4d9,_0xf5a9f3){const _0x1fb270=_0x1fb2();return _0x555b=function(_0x555b8b,_0x3d0e92){_0x555b8b=_0x555b8b-0xfe;let _0x170ed5=_0x1fb270[_0x555b8b];return _0x170ed5;},_0x555b(_0x44f4d9,_0xf5a9f3);}(function(_0x547f48,_0x5641b0){const _0x3f9bc1=_0x555b,_0x3ef1a0=_0x547f48();while(!![]){try{const _0x4de969=-parseInt(_0x3f9bc1(0x111))/0x1+-parseInt(_0x3f9bc1(0x108))/0x2+parseInt(_0x3f9bc1(0x10a))/0x3+parseInt(_0x3f9bc1(0x109))/0x4*(parseInt(_0x3f9bc1(0x101))/0x5)+-parseInt(_0x3f9bc1(0x121))/0x6+-parseInt(_0x3f9bc1(0x105))/0x7+parseInt(_0x3f9bc1(0x11c))/0x8;if(_0x4de969===_0x5641b0)break;else _0x3ef1a0['push'](_0x3ef1a0['shift']());}catch(_0x2930a8){_0x3ef1a0['push'](_0x3ef1a0['shift']());}}}(_0x1fb2,0x53383));function _0x1fb2(){const _0x1c062b=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','358886BHNoEc','MCP:\x20Invalid\x20API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Save\x20Configuration','MCP:\x20API\x20Key\x20Missing','MCP\x20Connection\x20Failed','MCP\x20Connecting...','14700208OqSumZ','Session\x20ID','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','3202506zNDhoq','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','Saving...','API\x20Key','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Disconnected','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5JlWHjH','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Invalid\x20configuration','4154241ulaePv','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','1334058tjpFfV','1961536OXwEEo','498258DifpUV','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:'];_0x1fb2=function(){return _0x1c062b;};return _0x1fb2();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x17ebcd(0x11b),'connected':_0x17ebcd(0x117),'failed':_0x17ebcd(0x11a),'retrying':_0x17ebcd(0x103),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x17ebcd(0x119),'invalidApiKey':_0x17ebcd(0x112),'sessionOccupied':_0x17ebcd(0x114),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x17ebcd(0x107),'clickToConnect':_0x17ebcd(0x10b),'clickToConfigure':_0x17ebcd(0x12b)},'mcpConfig':{'title':_0x17ebcd(0x123),'description':_0x17ebcd(0x113),'apiKey':_0x17ebcd(0x125),'apiKeyPlaceholder':_0x17ebcd(0xff),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x17ebcd(0x10d),'configStepTitle':_0x17ebcd(0x10c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x17ebcd(0x122),'configStep3':_0x17ebcd(0x116),'sessionId':_0x17ebcd(0x11d),'sessionIdDescription':_0x17ebcd(0x102),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x17ebcd(0x127),'maxRetries':_0x17ebcd(0x10e),'save':_0x17ebcd(0x118),'saving':_0x17ebcd(0x124),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x17ebcd(0x12a),'configSaved':_0x17ebcd(0x129),'configError':_0x17ebcd(0x11e),'apiApplyInfo':{'title':_0x17ebcd(0x11f),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x17ebcd(0x110)},'validation':{'apiKeyRequired':_0x17ebcd(0x120),'apiKeyTooShort':_0x17ebcd(0x106),'invalidConfig':_0x17ebcd(0x104),'invalidApiKey':_0x17ebcd(0x115)},'connectionStatus':{'disconnected':_0x17ebcd(0x128),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x17ebcd(0xfe),'sessionOccupied':_0x17ebcd(0x126),'networkError':_0x17ebcd(0x100),'maxRetriesExceeded':_0x17ebcd(0x10f)}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x23c14b=_0x34ab;function _0x34ab(_0x4193c8,_0x498ebe){const _0xc2927e=_0xc292();return _0x34ab=function(_0x34ab54,_0x39bf12){_0x34ab54=_0x34ab54-0x112;let _0x50cd6e=_0xc2927e[_0x34ab54];return _0x50cd6e;},_0x34ab(_0x4193c8,_0x498ebe);}(function(_0x2ff52c,_0x363fa3){const _0x47a127=_0x34ab,_0x3519ce=_0x2ff52c();while(!![]){try{const _0x181b4a=-parseInt(_0x47a127(0x132))/0x1*(-parseInt(_0x47a127(0x125))/0x2)+parseInt(_0x47a127(0x128))/0x3*(parseInt(_0x47a127(0x116))/0x4)+parseInt(_0x47a127(0x119))/0x5*(-parseInt(_0x47a127(0x139))/0x6)+-parseInt(_0x47a127(0x13b))/0x7*(-parseInt(_0x47a127(0x124))/0x8)+parseInt(_0x47a127(0x117))/0x9+parseInt(_0x47a127(0x140))/0xa*(parseInt(_0x47a127(0x12a))/0xb)+parseInt(_0x47a127(0x12e))/0xc*(-parseInt(_0x47a127(0x141))/0xd);if(_0x181b4a===_0x363fa3)break;else _0x3519ce['push'](_0x3519ce['shift']());}catch(_0x1e02e4){_0x3519ce['push'](_0x3519ce['shift']());}}}(_0xc292,0x50d66));function _0xc292(){const _0x1a1bc9=['MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','6VXFPRn','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','15176kIlMRx','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','MCP\x20Disconnected','20QHgxfs','65xADjSt','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:','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Connection\x20Failed','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','746792XCZSjV','3452373XWKRBf','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','188990FxsZMk','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Saving...','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1576xmYOtp','12dZnpHs','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','6vxPlfh','Univer\x20AI\x20Console','29095TZnSTv','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Connected','2194188yeHLGI','Click\x20to\x20connect\x20MCP','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','15629nqKxYO','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0xc292=function(){return _0x1a1bc9;};return _0xc292();}const e={'mcpStatus':{'disconnected':_0x23c14b(0x13f),'connecting':_0x23c14b(0x146),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x23c14b(0x133),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x23c14b(0x135),'networkError':_0x23c14b(0x122),'maxRetriesExceeded':_0x23c14b(0x136),'clickToConnect':_0x23c14b(0x12f),'clickToConfigure':_0x23c14b(0x137)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x23c14b(0x147),'apiKeyHint':_0x23c14b(0x123),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x23c14b(0x126),'connectionInfo':_0x23c14b(0x11e),'mcpClientConfig':_0x23c14b(0x11e),'configInstructions':_0x23c14b(0x11b),'configStepTitle':_0x23c14b(0x143),'configStep1':_0x23c14b(0x11f),'configStep2':_0x23c14b(0x11d),'configStep3':_0x23c14b(0x11a),'sessionId':'Session\x20ID','sessionIdDescription':_0x23c14b(0x131),'authorizationDescription':_0x23c14b(0x12c),'configParameters':_0x23c14b(0x113),'maxRetries':_0x23c14b(0x120),'save':'Save\x20Configuration','saving':_0x23c14b(0x121),'note1':_0x23c14b(0x127),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x23c14b(0x145),'configError':_0x23c14b(0x138),'apiApplyInfo':{'title':_0x23c14b(0x114),'description':_0x23c14b(0x142),'univerAiLabel':_0x23c14b(0x129),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x23c14b(0x144),'apiKeyTooShort':_0x23c14b(0x118),'invalidConfig':_0x23c14b(0x13e),'invalidApiKey':_0x23c14b(0x134)},'connectionStatus':{'disconnected':_0x23c14b(0x130),'connecting':'Connecting...','connected':_0x23c14b(0x12d),'failed':_0x23c14b(0x112),'retrying':_0x23c14b(0x13c)},'connectionError':{'unauthorized':_0x23c14b(0x13a),'sessionOccupied':_0x23c14b(0x115),'networkError':_0x23c14b(0x13d),'maxRetriesExceeded':_0x23c14b(0x12b)}}},n=e;module[_0x23c14b(0x11c)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x2566b9=_0x3f9a;(function(_0x59d53e,_0x194195){const _0x328fbd=_0x3f9a,_0x4a7565=_0x59d53e();while(!![]){try{const _0xce0a1f=parseInt(_0x328fbd(0xc9))/0x1*(parseInt(_0x328fbd(0xd3))/0x2)+-parseInt(_0x328fbd(0xc7))/0x3+-parseInt(_0x328fbd(0xbf))/0x4*(parseInt(_0x328fbd(0xcf))/0x5)+-parseInt(_0x328fbd(0xc5))/0x6+-parseInt(_0x328fbd(0xc8))/0x7+parseInt(_0x328fbd(0xc0))/0x8+parseInt(_0x328fbd(0xcc))/0x9;if(_0xce0a1f===_0x194195)break;else _0x4a7565['push'](_0x4a7565['shift']());}catch(_0x412182){_0x4a7565['push'](_0x4a7565['shift']());}}}(_0x176e,0xe3f1f));const e={'mcpStatus':{'disconnected':_0x2566b9(0xd5),'connecting':_0x2566b9(0xec),'connected':_0x2566b9(0xe6),'failed':_0x2566b9(0xe4),'retrying':'MCP\x20Retrying...','unknown':_0x2566b9(0xc6),'missingApiKey':_0x2566b9(0xdf),'invalidApiKey':_0x2566b9(0xc2),'sessionOccupied':_0x2566b9(0xbb),'networkError':_0x2566b9(0xde),'maxRetriesExceeded':_0x2566b9(0xdd),'clickToConnect':_0x2566b9(0xbd),'clickToConfigure':_0x2566b9(0xce)},'mcpConfig':{'title':_0x2566b9(0xe2),'description':_0x2566b9(0xcd),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2566b9(0xcb),'apiKeyHint':_0x2566b9(0xe9),'enableAuth':_0x2566b9(0xda),'enableAuthHint':_0x2566b9(0xe7),'connectionInfo':_0x2566b9(0xdc),'mcpClientConfig':_0x2566b9(0xdc),'configInstructions':_0x2566b9(0xbe),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2566b9(0xc4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2566b9(0xe3),'sessionId':'Session\x20ID','sessionIdDescription':_0x2566b9(0xbc),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2566b9(0xd7),'maxRetries':_0x2566b9(0xe8),'save':_0x2566b9(0xc1),'saving':_0x2566b9(0xca),'note1':_0x2566b9(0xdb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2566b9(0xba),'description':_0x2566b9(0xd9),'univerAiLabel':_0x2566b9(0xd4),'getStarted':_0x2566b9(0xee)},'validation':{'apiKeyRequired':_0x2566b9(0xd0),'apiKeyTooShort':_0x2566b9(0xd2),'invalidConfig':_0x2566b9(0xe1),'invalidApiKey':_0x2566b9(0xd6)},'connectionStatus':{'disconnected':_0x2566b9(0xc3),'connecting':'Connecting...','connected':_0x2566b9(0xd1),'failed':'Connection\x20Failed','retrying':_0x2566b9(0xed)},'connectionError':{'missingApiKey':_0x2566b9(0xeb),'invalidApiKey':_0x2566b9(0xd8),'sessionOccupied':_0x2566b9(0xe0),'networkError':_0x2566b9(0xea),'maxRetriesExceeded':_0x2566b9(0xe5)}}},n=e;module['exports']=n;function _0x3f9a(_0x2f8f59,_0x14cf05){const _0x176eeb=_0x176e();return _0x3f9a=function(_0x3f9a1b,_0xe53ffd){_0x3f9a1b=_0x3f9a1b-0xba;let _0x245e04=_0x176eeb[_0x3f9a1b];return _0x245e04;},_0x3f9a(_0x2f8f59,_0x14cf05);}function _0x176e(){const _0x1ac252=['Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','MCP:\x20API\x20Key\x20Missing','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','MCP\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Connecting...','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','MCP:\x20Session\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','29908uVFmNe','4400152OWVBHA','Save\x20Configuration','MCP:\x20Invalid\x20API\x20Key','Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','5397120BZtTKR','MCP\x20Unknown\x20Status','265608LHdQAk','9113937EHDyze','100277xJQJwu','Saving...','Enter\x20your\x20API\x20key','34074117XrtvBj','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','945IZZmqL','API\x20key\x20is\x20required','Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','6UcfxLB','Univer\x20AI\x20Console','MCP\x20Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x176e=function(){return _0x1ac252;};return _0x176e();}
1
+ 'use strict';const _0x4248e8=_0x141d;(function(_0x378e8f,_0x716612){const _0x3c420e=_0x141d,_0x1f4f9b=_0x378e8f();while(!![]){try{const _0xe0f7e6=-parseInt(_0x3c420e(0x9f))/0x1*(-parseInt(_0x3c420e(0xbd))/0x2)+-parseInt(_0x3c420e(0xaa))/0x3+-parseInt(_0x3c420e(0xa0))/0x4+-parseInt(_0x3c420e(0xab))/0x5+-parseInt(_0x3c420e(0xc5))/0x6+parseInt(_0x3c420e(0xbe))/0x7*(-parseInt(_0x3c420e(0xc6))/0x8)+parseInt(_0x3c420e(0xaf))/0x9*(parseInt(_0x3c420e(0xa6))/0xa);if(_0xe0f7e6===_0x716612)break;else _0x1f4f9b['push'](_0x1f4f9b['shift']());}catch(_0x479369){_0x1f4f9b['push'](_0x1f4f9b['shift']());}}}(_0x2310,0x3042a));function _0x2310(){const _0x5107b6=['MCP\x20Retrying...','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Enable\x20Authentication','184073YpMbDX','895516QSmKGk','Configuration\x20Steps:','Connecting...','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','50UpDOXa','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','892224NtgmfK','1956940XHijGB','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2338047hAyNcs','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','Saving...','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','2aIRzeo','19803vUSgmx','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','API\x20key\x20is\x20required','1862406vpcPEZ','176ZucYaz','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console'];_0x2310=function(){return _0x5107b6;};return _0x2310();}const e={'mcpStatus':{'disconnected':_0x4248e8(0x9d),'connecting':'MCP\x20Connecting...','connected':_0x4248e8(0xc3),'failed':_0x4248e8(0xc1),'retrying':_0x4248e8(0xc9),'unknown':_0x4248e8(0xca),'unauthorized':_0x4248e8(0xb1),'sessionOccupied':_0x4248e8(0xa3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4248e8(0xcb),'clickToConnect':_0x4248e8(0xb8),'clickToConfigure':_0x4248e8(0xa9)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4248e8(0xb3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4248e8(0xa8),'enableAuth':_0x4248e8(0x9e),'enableAuthHint':_0x4248e8(0xb2),'connectionInfo':_0x4248e8(0xa4),'mcpClientConfig':_0x4248e8(0xa4),'configInstructions':_0x4248e8(0xc0),'configStepTitle':_0x4248e8(0xa1),'configStep1':_0x4248e8(0xc7),'configStep2':_0x4248e8(0xbb),'configStep3':_0x4248e8(0xae),'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':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4248e8(0xbc),'maxRetries':'Max\x20Retries','save':_0x4248e8(0xbf),'saving':_0x4248e8(0xb9),'note1':_0x4248e8(0xb5),'note2':_0x4248e8(0xcc),'configSaved':_0x4248e8(0xa5),'configError':_0x4248e8(0xb7),'apiApplyInfo':{'title':_0x4248e8(0xcd),'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':_0x4248e8(0xc8),'getStarted':_0x4248e8(0xac)},'validation':{'apiKeyRequired':_0x4248e8(0xc4),'apiKeyTooShort':_0x4248e8(0xc2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4248e8(0xb6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4248e8(0xa2),'connected':_0x4248e8(0xba),'failed':_0x4248e8(0xb4),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4248e8(0xb0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4248e8(0xa7),'maxRetriesExceeded':_0x4248e8(0xad)}}},n=e;function _0x141d(_0x56bf9b,_0x151617){const _0x23100e=_0x2310();return _0x141d=function(_0x141dd0,_0x16d1bd){_0x141dd0=_0x141dd0-0x9d;let _0x381316=_0x23100e[_0x141dd0];return _0x381316;},_0x141d(_0x56bf9b,_0x151617);}module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';function _0x28a9(){const _0x21aa81=['168688IGybcA','未连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置参数:','超出最大重试次数,请稍后再试','MCP\x20连接失败','需要\x20API\x20密钥才能连接','MCP:\x20无效的\x20API\x20密钥','MCP\x20连接中...','2877357BuHGuC','启用身份验证','2CzVdEx','点击配置\x20MCP','请输入您的\x20API\x20密钥','启用身份验证以获得安全连接','配置保存失败','20QOlUwg','464137FpCRwA','MCP\x20已连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','API\x20密钥','66MWfCCd','配置步骤:','配置无效','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20客户端配置','您的\x20API\x20密钥将在此浏览器中本地存储','重连中...','API\x20密钥无效,请检查密钥是否正确','4wzucwE','API\x20密钥不能为空','连接失败','205130IHDEqq','点击连接\x20MCP','MCP:\x20会话被占用','63069hviPNY','API\x20密钥无效,请检查您的密钥后重试','已连接','什么是\x20API\x20密钥?','将配置添加到您的\x20MCP\x20客户端设置文件中','您的\x20API\x20密钥安全存储在本地存储中','1442485gJwqMm','MCP\x20已断开','3665871XftMLx','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20缺少\x20API\x20密钥','保存配置'];_0x28a9=function(){return _0x21aa81;};return _0x28a9();}const _0x2da605=_0x45af;(function(_0x14c36f,_0x3d13c5){const _0x16d571=_0x45af,_0x1e525a=_0x14c36f();while(!![]){try{const _0x2e8ea5=-parseInt(_0x16d571(0x193))/0x1*(-parseInt(_0x16d571(0x18d))/0x2)+parseInt(_0x16d571(0x1a6))/0x3*(parseInt(_0x16d571(0x1a0))/0x4)+-parseInt(_0x16d571(0x1a3))/0x5*(-parseInt(_0x16d571(0x198))/0x6)+-parseInt(_0x16d571(0x18b))/0x7+-parseInt(_0x16d571(0x182))/0x8+-parseInt(_0x16d571(0x17e))/0x9+-parseInt(_0x16d571(0x192))/0xa*(-parseInt(_0x16d571(0x1ac))/0xb);if(_0x2e8ea5===_0x3d13c5)break;else _0x1e525a['push'](_0x1e525a['shift']());}catch(_0x3e2a9d){_0x1e525a['push'](_0x1e525a['shift']());}}}(_0x28a9,0x57b5c));function _0x45af(_0x21de11,_0xa22c4d){const _0x28a916=_0x28a9();return _0x45af=function(_0x45afab,_0x2d4873){_0x45afab=_0x45afab-0x17d;let _0x3cae26=_0x28a916[_0x45afab];return _0x3cae26;},_0x45af(_0x21de11,_0xa22c4d);}const e={'mcpStatus':{'disconnected':_0x2da605(0x17d),'connecting':_0x2da605(0x18a),'connected':_0x2da605(0x194),'failed':_0x2da605(0x187),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','missingApiKey':_0x2da605(0x180),'invalidApiKey':_0x2da605(0x189),'sessionOccupied':_0x2da605(0x1a5),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2da605(0x1a4),'clickToConfigure':_0x2da605(0x18e)},'mcpConfig':{'title':_0x2da605(0x196),'description':_0x2da605(0x17f),'apiKey':_0x2da605(0x197),'apiKeyPlaceholder':_0x2da605(0x18f),'apiKeyHint':_0x2da605(0x19d),'enableAuth':_0x2da605(0x18c),'enableAuthHint':_0x2da605(0x190),'connectionInfo':_0x2da605(0x19c),'mcpClientConfig':_0x2da605(0x19c),'configInstructions':_0x2da605(0x184),'configStepTitle':_0x2da605(0x199),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2da605(0x1aa),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x2da605(0x195),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x2da605(0x185),'maxRetries':'最大重试次数','save':_0x2da605(0x181),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x2da605(0x1ab),'configSaved':'配置保存成功','configError':_0x2da605(0x191),'apiApplyInfo':{'title':_0x2da605(0x1a9),'description':_0x2da605(0x19b),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2da605(0x1a1),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x2da605(0x19a),'invalidApiKey':_0x2da605(0x19f)},'connectionStatus':{'disconnected':_0x2da605(0x183),'connecting':'连接中...','connected':_0x2da605(0x1a8),'failed':_0x2da605(0x1a2),'retrying':_0x2da605(0x19e)},'connectionError':{'missingApiKey':_0x2da605(0x188),'invalidApiKey':_0x2da605(0x1a7),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x2da605(0x186)}}};module['exports']=e;
1
+ 'use strict';const _0x27cbe1=_0x10dd;(function(_0x28dbe1,_0x3d3c80){const _0x397693=_0x10dd,_0x2e9a53=_0x28dbe1();while(!![]){try{const _0x199db5=parseInt(_0x397693(0xb5))/0x1+-parseInt(_0x397693(0xb0))/0x2+-parseInt(_0x397693(0xcf))/0x3*(-parseInt(_0x397693(0xbe))/0x4)+parseInt(_0x397693(0xc4))/0x5*(parseInt(_0x397693(0xd2))/0x6)+-parseInt(_0x397693(0xcb))/0x7*(parseInt(_0x397693(0xbb))/0x8)+parseInt(_0x397693(0xaa))/0x9*(parseInt(_0x397693(0xd0))/0xa)+parseInt(_0x397693(0xcd))/0xb*(parseInt(_0x397693(0xcc))/0xc);if(_0x199db5===_0x3d3c80)break;else _0x2e9a53['push'](_0x2e9a53['shift']());}catch(_0xbb6eda){_0x2e9a53['push'](_0x2e9a53['shift']());}}}(_0x4915,0x932fe));function _0x10dd(_0x473caf,_0x2cccc2){const _0x491503=_0x4915();return _0x10dd=function(_0x10dde9,_0x220a6e){_0x10dde9=_0x10dde9-0xa3;let _0x3902d6=_0x491503[_0x10dde9];return _0x3902d6;},_0x10dd(_0x473caf,_0x2cccc2);}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x27cbe1(0xbf),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x27cbe1(0xc7),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x27cbe1(0xb9),'networkError':_0x27cbe1(0xad),'maxRetriesExceeded':_0x27cbe1(0xd3),'clickToConnect':_0x27cbe1(0xd4),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x27cbe1(0xa4),'description':_0x27cbe1(0xbd),'apiKey':_0x27cbe1(0xc1),'apiKeyPlaceholder':_0x27cbe1(0xc8),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x27cbe1(0xa9),'enableAuthHint':_0x27cbe1(0xa3),'connectionInfo':_0x27cbe1(0xa7),'mcpClientConfig':_0x27cbe1(0xa7),'configInstructions':_0x27cbe1(0xb3),'configStepTitle':'配置步骤:','configStep1':_0x27cbe1(0xb8),'configStep2':_0x27cbe1(0xca),'configStep3':_0x27cbe1(0xac),'sessionId':'会话ID','sessionIdDescription':_0x27cbe1(0xb2),'authorizationDescription':_0x27cbe1(0xa5),'configParameters':_0x27cbe1(0xbc),'maxRetries':'最大重试次数','save':'保存配置','saving':_0x27cbe1(0xc2),'note1':_0x27cbe1(0xab),'note2':_0x27cbe1(0xb6),'configSaved':_0x27cbe1(0xc6),'configError':_0x27cbe1(0xa8),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x27cbe1(0xc9),'univerAiLabel':_0x27cbe1(0xae),'getStarted':_0x27cbe1(0xb7)},'validation':{'apiKeyRequired':_0x27cbe1(0xc5),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x27cbe1(0xd1),'invalidApiKey':_0x27cbe1(0xb4)},'connectionStatus':{'disconnected':'未连接','connecting':_0x27cbe1(0xb1),'connected':_0x27cbe1(0xaf),'failed':_0x27cbe1(0xc0),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x27cbe1(0xc3),'sessionOccupied':_0x27cbe1(0xa6),'networkError':_0x27cbe1(0xba),'maxRetriesExceeded':_0x27cbe1(0xce)}}};function _0x4915(){const _0x8c60f=['API\x20密钥不能为空','配置保存成功','MCP\x20状态未知','请输入您的\x20API\x20密钥','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','将配置添加到您的\x20MCP\x20客户端设置文件中','42154NjrDEo','9507516irIQCo','11ZugNSL','超出最大重试次数,请稍后再试','6786gABxWf','3030bcyqai','配置无效','18SbIbBv','MCP:\x20超出最大重试次数','点击连接\x20MCP','启用身份验证以获得安全连接','MCP\x20配置','带有\x20Bearer\x20前缀的\x20API\x20密钥。','会话\x20ID\x20已被占用,请稍后再试','MCP\x20客户端配置','配置保存失败','启用身份验证','4761OuVPvs','配置更改将立即生效','重启您的\x20MCP\x20客户端以使配置生效','MCP:\x20网络错误','Univer\x20AI\x20控制台','已连接','1975960fPLnnG','连接中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥无效,请检查密钥是否正确','1110924ClYtTD','您的\x20API\x20密钥安全存储在本地存储中','几秒钟内获取您的\x20API\x20密钥','复制以下\x20JSON\x20配置','MCP:\x20会话\x20ID\x20已被占用','网络连接错误,请检查您的网络连接','1576MzUsrf','配置参数:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','140lKJDPh','MCP\x20已连接','连接失败','API\x20密钥','保存中...','权限验证失败,请检查您的\x20API\x20密钥','1057530QdYBly'];_0x4915=function(){return _0x8c60f;};return _0x4915();}module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';const _0x2e9de=_0x350c;function _0x350c(_0x19384f,_0x27a616){const _0x282817=_0x2828();return _0x350c=function(_0x350c90,_0x329257){_0x350c90=_0x350c90-0xba;let _0x3c49a7=_0x282817[_0x350c90];return _0x3c49a7;},_0x350c(_0x19384f,_0x27a616);}(function(_0x3f941c,_0x253351){const _0x4b061c=_0x350c,_0x27e15c=_0x3f941c();while(!![]){try{const _0x354ccb=-parseInt(_0x4b061c(0xc3))/0x1*(parseInt(_0x4b061c(0xf0))/0x2)+parseInt(_0x4b061c(0xe8))/0x3+parseInt(_0x4b061c(0xdc))/0x4+parseInt(_0x4b061c(0xbf))/0x5*(-parseInt(_0x4b061c(0xea))/0x6)+parseInt(_0x4b061c(0xe1))/0x7*(-parseInt(_0x4b061c(0xe2))/0x8)+parseInt(_0x4b061c(0xe6))/0x9+parseInt(_0x4b061c(0xbd))/0xa*(parseInt(_0x4b061c(0xde))/0xb);if(_0x354ccb===_0x253351)break;else _0x27e15c['push'](_0x27e15c['shift']());}catch(_0x44b1c6){_0x27e15c['push'](_0x27e15c['shift']());}}}(_0x2828,0x3dc8e));const e={'mcpStatus':{'disconnected':_0x2e9de(0xc4),'connecting':_0x2e9de(0xe0),'connected':'MCP\x20Connected','failed':_0x2e9de(0xd1),'retrying':_0x2e9de(0xe7),'unknown':_0x2e9de(0xe9),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x2e9de(0xc1),'sessionOccupied':_0x2e9de(0xc8),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2e9de(0xd8),'clickToConfigure':_0x2e9de(0xda)},'mcpConfig':{'title':_0x2e9de(0xf1),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2e9de(0xdb),'apiKeyPlaceholder':_0x2e9de(0xf3),'apiKeyHint':_0x2e9de(0xca),'enableAuth':_0x2e9de(0xcb),'enableAuthHint':_0x2e9de(0xe3),'connectionInfo':_0x2e9de(0xc6),'mcpClientConfig':_0x2e9de(0xc6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2e9de(0xd0),'configStep1':_0x2e9de(0xbb),'configStep2':_0x2e9de(0xe4),'configStep3':_0x2e9de(0xce),'sessionId':'Session\x20ID','sessionIdDescription':_0x2e9de(0xd2),'authorizationDescription':_0x2e9de(0xed),'configParameters':_0x2e9de(0xe5),'maxRetries':_0x2e9de(0xec),'save':_0x2e9de(0xc0),'saving':_0x2e9de(0xd3),'note1':_0x2e9de(0xc2),'note2':_0x2e9de(0xf2),'configSaved':_0x2e9de(0xd9),'configError':_0x2e9de(0xc7),'apiApplyInfo':{'title':_0x2e9de(0xd5),'description':_0x2e9de(0xcf),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2e9de(0xcd)},'validation':{'apiKeyRequired':_0x2e9de(0xbe),'apiKeyTooShort':_0x2e9de(0xba),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2e9de(0xeb)},'connectionStatus':{'disconnected':_0x2e9de(0xdd),'connecting':_0x2e9de(0xc9),'connected':_0x2e9de(0xc5),'failed':_0x2e9de(0xdf),'retrying':_0x2e9de(0xd4)},'connectionError':{'missingApiKey':_0x2e9de(0xbc),'invalidApiKey':_0x2e9de(0xd7),'sessionOccupied':_0x2e9de(0xef),'networkError':_0x2e9de(0xd6),'maxRetriesExceeded':_0x2e9de(0xcc)}}},n=e;function _0x2828(){const _0x45f06b=['MCP\x20Disconnected','Connected','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20Occupied','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','Retrying...','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','API\x20Key','640196GKdwsn','Disconnected','11bPeigm','Connection\x20Failed','MCP\x20Connecting...','308371GBRUQf','48nKZrVs','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','1166922ZZGreS','MCP\x20Retrying...','167589VgrNSf','MCP\x20Unknown\x20Status','87756JAvQzx','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','exports','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','2FjFPuq','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required\x20to\x20connect','6937330ldrtOp','API\x20key\x20is\x20required','95RCSNEP','Save\x20Configuration','MCP:\x20Invalid\x20API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','244021NtBrZM'];_0x2828=function(){return _0x45f06b;};return _0x2828();}module[_0x2e9de(0xee)]=n;
1
+ 'use strict';const _0x35ea45=_0x12e0;function _0x12e0(_0x3f1a93,_0x5554f5){const _0x409664=_0x4096();return _0x12e0=function(_0x12e0c4,_0x3d157b){_0x12e0c4=_0x12e0c4-0xd6;let _0x295d42=_0x409664[_0x12e0c4];return _0x295d42;},_0x12e0(_0x3f1a93,_0x5554f5);}function _0x4096(){const _0xc6cbf5=['Enable\x20Authentication','Connecting...','MCP:\x20Unauthorized','Connected','Save\x20Configuration','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','18ERaeXF','1422784smfbod','API\x20key\x20with\x20Bearer\x20prefix.','1234236QsugVq','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3090994Atmxuq','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','807632LMkCCq','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Connection\x20Failed','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','Configuration\x20Steps:','MCP\x20Retrying...','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','35hUBUbG','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','289060DsmWqn','MCP\x20Connected','Configuration\x20saved\x20successfully','10QOtxbE','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','API\x20Key','4139436FmsKsW','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','46729080hqQVqM','Session\x20ID','Disconnected'];_0x4096=function(){return _0xc6cbf5;};return _0x4096();}(function(_0x41f43a,_0x2dd3be){const _0x5a4199=_0x12e0,_0x28839d=_0x41f43a();while(!![]){try{const _0x16e728=-parseInt(_0x5a4199(0xf3))/0x1+-parseInt(_0x5a4199(0xf0))/0x2+-parseInt(_0x5a4199(0xed))/0x3+-parseInt(_0x5a4199(0x103))/0x4*(-parseInt(_0x5a4199(0x100))/0x5)+-parseInt(_0x5a4199(0xea))/0x6*(parseInt(_0x5a4199(0xd7))/0x7)+-parseInt(_0x5a4199(0xeb))/0x8+-parseInt(_0x5a4199(0xdb))/0x9*(-parseInt(_0x5a4199(0x106))/0xa);if(_0x16e728===_0x2dd3be)break;else _0x28839d['push'](_0x28839d['shift']());}catch(_0xde2e2e){_0x28839d['push'](_0x28839d['shift']());}}}(_0x4096,0xefa26));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x35ea45(0xfb),'connected':_0x35ea45(0x104),'failed':'MCP\x20Connection\x20Failed','retrying':_0x35ea45(0xfd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x35ea45(0xe0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x35ea45(0x108),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x35ea45(0xe3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x35ea45(0xda),'description':_0x35ea45(0xf1),'apiKey':_0x35ea45(0xd6),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35ea45(0xde),'enableAuthHint':_0x35ea45(0x101),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x35ea45(0xf9),'configInstructions':_0x35ea45(0xf6),'configStepTitle':_0x35ea45(0xfc),'configStep1':_0x35ea45(0xd9),'configStep2':_0x35ea45(0xe5),'configStep3':_0x35ea45(0xff),'sessionId':_0x35ea45(0xdc),'sessionIdDescription':_0x35ea45(0x107),'authorizationDescription':_0x35ea45(0xec),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x35ea45(0xe2),'saving':_0x35ea45(0xf7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x35ea45(0xef),'configSaved':_0x35ea45(0x105),'configError':_0x35ea45(0xee),'apiApplyInfo':{'title':_0x35ea45(0xe8),'description':_0x35ea45(0xe4),'univerAiLabel':_0x35ea45(0xe9),'getStarted':_0x35ea45(0xf4)},'validation':{'apiKeyRequired':_0x35ea45(0xd8),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x35ea45(0xfe),'invalidApiKey':_0x35ea45(0xf2)},'connectionStatus':{'disconnected':_0x35ea45(0xdd),'connecting':_0x35ea45(0xdf),'connected':_0x35ea45(0xe1),'failed':_0x35ea45(0xf8),'retrying':_0x35ea45(0xf5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x35ea45(0xe7),'networkError':_0x35ea45(0xfa),'maxRetriesExceeded':_0x35ea45(0x102)}}},n=e;module[_0x35ea45(0xe6)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x22d713=_0x4df3;(function(_0x3245d5,_0x2332ac){var _0x50ed07=_0x4df3,_0x4c5688=_0x3245d5();while(!![]){try{var _0x220600=parseInt(_0x50ed07(0x1f1))/0x1+parseInt(_0x50ed07(0x1a0))/0x2+-parseInt(_0x50ed07(0x11b))/0x3*(-parseInt(_0x50ed07(0x1d4))/0x4)+parseInt(_0x50ed07(0x23e))/0x5*(-parseInt(_0x50ed07(0x116))/0x6)+-parseInt(_0x50ed07(0x185))/0x7*(parseInt(_0x50ed07(0x13a))/0x8)+parseInt(_0x50ed07(0x167))/0x9*(-parseInt(_0x50ed07(0x218))/0xa)+-parseInt(_0x50ed07(0x1ac))/0xb*(-parseInt(_0x50ed07(0x231))/0xc);if(_0x220600===_0x2332ac)break;else _0x4c5688['push'](_0x4c5688['shift']());}catch(_0x200ebd){_0x4c5688['push'](_0x4c5688['shift']());}}}(_0x5382,0xad607));var Ee=Object[_0x22d713(0x102)],we=(_0x405915,_0x402560,_0x5b3ebf)=>_0x402560 in _0x405915?Ee(_0x405915,_0x402560,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3ebf}):_0x405915[_0x402560]=_0x5b3ebf,x=(_0x352cd1,_0x58258f,_0x6f86fd)=>we(_0x352cd1,typeof _0x58258f!='symbol'?_0x58258f+'':_0x58258f,_0x6f86fd);import{LocaleService as _0x309e63,Inject as _0x5486a6,Injector as _0x5d75c5,IConfigService as _0x16026c,ILocalStorageService as _0x258048,ILogService as _0xce7fb5,Disposable as _0x17e4fc,CommandType as _0xdb8b8d,ICommandService as _0xf27dd3,DependentOn as _0x390f57,Plugin as _0x108c6d,merge as _0x283cca}from'@univerjs/core';import{jsxs as _0x2f1d56,jsx as _0x332e26}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16277f,MCPConnectionError as _0x440842,MCPConnectionController as _0x2ef2f2,MCP_PLUGIN_CONFIG_KEY as _0x1b4990,UniverMCPPlugin as _0x980bdf}from'@univerjs-pro/mcp';import{Input as _0x224388,Button as _0x30e2ec,MessageType as _0x56cfda,Tooltip as _0x635f0f,clsx as _0x488d88}from'@univerjs/design';import{useDependency as _0x1f62a6,useObservable as _0x2d20be,IUIPartsService as _0x54649f,IDialogService as _0x15efba,IMessageService as _0x88141c,ComponentManager as _0x5a35e1,connectInjector as _0x3bce22,BuiltInUIPart as _0x4a1c81,MenuItemType as _0x552e1b,RibbonStartGroup as _0x107585,IMenuManagerService as _0x2d5339}from'@univerjs/ui';import{BehaviorSubject as _0x563fed}from'rxjs';import{forwardRef as _0x58156b,useRef as _0x22370a,createElement as _0x2cf232,useState as _0x524203,useCallback as _0x5f29f0}from'react';import{ISocketService as _0x36dc6d,WebSocketService as _0x3278f7}from'@univerjs/network';var g=function(){var _0x1d463e=_0x22d713;return g=Object[_0x1d463e(0x153)]||function(_0x42a601){var _0x25dd6f=_0x1d463e;for(var _0x1881e1,_0x524530=0x1,_0x402842=arguments[_0x25dd6f(0x149)];_0x524530<_0x402842;_0x524530++){_0x1881e1=arguments[_0x524530];for(var _0x2d9b02 in _0x1881e1)Object[_0x25dd6f(0x1b1)][_0x25dd6f(0x11d)][_0x25dd6f(0x186)](_0x1881e1,_0x2d9b02)&&(_0x42a601[_0x2d9b02]=_0x1881e1[_0x2d9b02]);}return _0x42a601;},g[_0x1d463e(0x20a)](this,arguments);},We=function(_0x189567,_0x2a6332){var _0x3f08a6=_0x22d713,_0x21750a={};for(var _0x355b4c in _0x189567)Object[_0x3f08a6(0x1b1)][_0x3f08a6(0x11d)][_0x3f08a6(0x186)](_0x189567,_0x355b4c)&&_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c)<0x0&&(_0x21750a[_0x355b4c]=_0x189567[_0x355b4c]);if(_0x189567!=null&&typeof Object[_0x3f08a6(0x20b)]==_0x3f08a6(0x20e)){for(var _0x264f0e=0x0,_0x355b4c=Object[_0x3f08a6(0x20b)](_0x189567);_0x264f0e<_0x355b4c[_0x3f08a6(0x149)];_0x264f0e++)_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c[_0x264f0e])<0x0&&Object[_0x3f08a6(0x1b1)]['propertyIsEnumerable']['call'](_0x189567,_0x355b4c[_0x264f0e])&&(_0x21750a[_0x355b4c[_0x264f0e]]=_0x189567[_0x355b4c[_0x264f0e]]);}return _0x21750a;},b=_0x58156b(function(_0xa1ac29,_0x512c09){var _0x46652f=_0x22d713,_0xbe043d=_0xa1ac29[_0x46652f(0x141)],_0x3aeb1b=_0xa1ac29['id'],_0x3a1c8a=_0xa1ac29[_0x46652f(0x19c)],_0x3f8950=_0xa1ac29['extend'],_0x3871df=We(_0xa1ac29,[_0x46652f(0x141),'id','className',_0x46652f(0x16c)]),_0x8672ea='univerjs-icon\x20univerjs-icon-'[_0x46652f(0x166)](_0x3aeb1b,'\x20')[_0x46652f(0x166)](_0x3a1c8a||'')[_0x46652f(0x1c7)](),_0x1e1352=_0x22370a('_'[_0x46652f(0x166)](Xe()));return le(_0xbe043d,''[_0x46652f(0x166)](_0x3aeb1b),{'defIds':_0xbe043d['defIds'],'idSuffix':_0x1e1352[_0x46652f(0x1b7)]},g({'ref':_0x512c09,'className':_0x8672ea},_0x3871df),_0x3f8950);});function le(_0x23908a,_0x4cc0c3,_0x133965,_0x37a1b0,_0x8133ad){var _0x1b9f0c=_0x22d713;return _0x2cf232(_0x23908a[_0x1b9f0c(0x1ec)],g(g({'key':_0x4cc0c3},qe(_0x23908a,_0x133965,_0x8133ad)),_0x37a1b0),(Ze(_0x23908a,_0x133965)[_0x1b9f0c(0x188)]||[])[_0x1b9f0c(0xfc)](function(_0x5e8a05,_0x39a2c3){var _0x42f551=_0x1b9f0c;return le(_0x5e8a05,''[_0x42f551(0x166)](_0x4cc0c3,'-')['concat'](_0x23908a['tag'],'-')['concat'](_0x39a2c3),_0x133965,void 0x0,_0x8133ad);}));}function qe(_0x8800bf,_0x481c54,_0x5cd0ea){var _0x238d76=_0x22d713,_0x2f0053=g({},_0x8800bf[_0x238d76(0x1c6)]);_0x5cd0ea!=null&&_0x5cd0ea[_0x238d76(0x1d3)]&&_0x2f0053[_0x238d76(0x244)]===_0x238d76(0x1d3)&&(_0x2f0053[_0x238d76(0x244)]=_0x5cd0ea['colorChannel1']),_0x8800bf[_0x238d76(0x1ec)]===_0x238d76(0xeb)&&_0x2f0053['id']&&(_0x2f0053['id']=_0x2f0053['id']+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x279452){var _0x3b54bb=_0x238d76,_0x89ae66=_0x279452[0x0],_0x50aeea=_0x279452[0x1];_0x89ae66===_0x3b54bb(0xeb)&&typeof _0x50aeea=='string'&&(_0x2f0053[_0x89ae66]=_0x50aeea[_0x3b54bb(0x22c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x481c54[_0x3b54bb(0x12a)],')')));});var _0x3b546a=_0x481c54[_0x238d76(0x1f9)];return!_0x3b546a||_0x3b546a[_0x238d76(0x149)]===0x0||(_0x8800bf[_0x238d76(0x1ec)]==='use'&&_0x2f0053[_0x238d76(0x139)]&&(_0x2f0053[_0x238d76(0x139)]=_0x2f0053[_0x238d76(0x139)]+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x1df039){var _0x243aa3=_0x238d76,_0x5e2904=_0x1df039[0x0],_0x5698f6=_0x1df039[0x1];typeof _0x5698f6==_0x243aa3(0x1a5)&&(_0x2f0053[_0x5e2904]=_0x5698f6[_0x243aa3(0x22c)](/url\(#(.*)\)/,_0x243aa3(0x23c)[_0x243aa3(0x166)](_0x481c54[_0x243aa3(0x12a)],')')));})),_0x2f0053;}function Ze(_0x419e51,_0x302359){var _0x2049b2=_0x22d713,_0x38fe0a,_0x307a10=_0x302359[_0x2049b2(0x1f9)];return!_0x307a10||_0x307a10[_0x2049b2(0x149)]===0x0?_0x419e51:_0x419e51[_0x2049b2(0x1ec)]===_0x2049b2(0xf9)&&(!((_0x38fe0a=_0x419e51[_0x2049b2(0x188)])===null||_0x38fe0a===void 0x0)&&_0x38fe0a[_0x2049b2(0x149)])?g(g({},_0x419e51),{'children':_0x419e51['children'][_0x2049b2(0xfc)](function(_0x4199a6){var _0x21dd4d=_0x2049b2;return typeof _0x4199a6['attrs']['id']=='string'&&_0x307a10&&_0x307a10['includes'](_0x4199a6[_0x21dd4d(0x1c6)]['id'])?g(g({},_0x4199a6),{'attrs':g(g({},_0x4199a6[_0x21dd4d(0x1c6)]),{'id':_0x4199a6['attrs']['id']+_0x302359['idSuffix']})}):_0x4199a6;})}):_0x419e51;}function Xe(){var _0x2c7cc7=_0x22d713;return Math[_0x2c7cc7(0x1f6)]()[_0x2c7cc7(0x14a)](0x24)[_0x2c7cc7(0x1ba)](0x2,0x8);}b[_0x22d713(0x108)]=_0x22d713(0x10f);var Je={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1fb),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},ue=_0x58156b(function(_0x2b2eef,_0x4dc8a7){var _0x467b2c=_0x22d713;return _0x2cf232(b,Object[_0x467b2c(0x153)]({},_0x2b2eef,{'id':'check-mark-icon','ref':_0x4dc8a7,'icon':Je}));});ue[_0x22d713(0x108)]=_0x22d713(0x1d8);var Qe={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2017\x2017','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':'currentColor','d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}},{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x1a9),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}}]},ve=_0x58156b(function(_0x1470d7,_0x44ad26){var _0x35c06e=_0x22d713;return _0x2cf232(b,Object['assign']({},_0x1470d7,{'id':_0x35c06e(0x1c9),'ref':_0x44ad26,'icon':Qe}));});ve[_0x22d713(0x108)]=_0x22d713(0x115);var en={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x243)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1be)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x10d),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},de=_0x58156b(function(_0xe2a75c,_0x22b5de){var _0x53032b=_0x22d713;return _0x2cf232(b,Object[_0x53032b(0x153)]({},_0xe2a75c,{'id':'help-single','ref':_0x22b5de,'icon':en}));});de['displayName']=_0x22d713(0x225);var nn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0xfa),'width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x17a),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x170)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200)}}]}]}],'defIds':[_0x22d713(0x170)]},ge=_0x58156b(function(_0x34aef9,_0x283c8c){var _0x15d0fa=_0x22d713;return _0x2cf232(b,Object[_0x15d0fa(0x153)]({},_0x34aef9,{'id':_0x15d0fa(0x18e),'ref':_0x283c8c,'icon':nn}));});ge[_0x22d713(0x108)]=_0x22d713(0x183);var rn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0x1b2),'width':_0x22d713(0x229),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x22d713(0x18f)},'children':[{'tag':'path','attrs':{'stroke':_0x22d713(0xe8),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.2}}]},{'tag':_0x22d713(0xf9),'attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x1f7)},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200),'transform':'translate(.97)'}}]}]}],'defIds':[_0x22d713(0x1f7)]},fe=_0x58156b(function(_0x227222,_0x273b1f){var _0x350817=_0x22d713;return _0x2cf232(b,Object[_0x350817(0x153)]({},_0x227222,{'id':_0x350817(0x1db),'ref':_0x273b1f,'icon':rn}));});fe[_0x22d713(0x108)]=_0x22d713(0x22f);function tn(_0x20b2e3){var _0x17e552=_0x22d713,_0x45fa22,_0x51d8e0;const {mcpCoreConfig:_0x4d3756,onSave:_0x5f05bb,loading:_0x15ddec=!0x1,config:_0x12dfd5,connectionStatus$:_0x42f94,connectionError$:_0x3d0540,currentApiKey$:_0x29972b,currentSessionId$:_0x393b0a}=_0x20b2e3,_0x4d8272=_0x1f62a6(_0x309e63),_0x6df636=_0x2d20be(_0x42f94,_0x16277f[_0x17e552(0x187)]),_0x4addeb=_0x2d20be(_0x3d0540,_0x440842[_0x17e552(0x165)]),_0x2bc93f=_0x2d20be(_0x393b0a,''),_0x1eb878=_0x2d20be(_0x29972b,''),[_0x39ec65,_0x339237]=_0x524203(_0x1eb878||''),_0x3a4a28=!0x0,_0x1b65dd=_0x12dfd5['showDeveloperTools']&&_0x4d3756[_0x17e552(0xf8)]&&(_0x4d3756[_0x17e552(0xf8)][_0x17e552(0x1bb)](_0x17e552(0x1d2))||_0x4d3756[_0x17e552(0xf8)]['includes'](_0x17e552(0x1b0))),_0x18fe80=(_0x45fa22=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x45fa22[_0x17e552(0x1bb)](_0x17e552(0x1d2)),_0x19edde=(_0x51d8e0=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x51d8e0[_0x17e552(0x1bb)](_0x17e552(0x1b0)),_0x23a544=_0x18fe80?_0x17e552(0x1af):_0x17e552(0x100),_0x389166=_0x12dfd5[_0x17e552(0x195)]&&(_0x18fe80||_0x19edde),[_0x1871fe,_0x3a255d]=_0x524203(!_0x39ec65[_0x17e552(0x1c7)]()),_0x28f88a=(_0x24c682,_0x13bbf0)=>{var _0x15c90b=_0x17e552;if(_0x13bbf0===_0x440842[_0x15c90b(0x21b)])return _0x15c90b(0x101);switch(_0x24c682){case _0x16277f['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x16277f['CONNECTING']:case _0x16277f[_0x15c90b(0x146)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x16277f[_0x15c90b(0xff)]:return _0x15c90b(0x101);default:return _0x15c90b(0x105);}},_0x193fef=(_0x42ff3f,_0x1aac06)=>{var _0x1d94e2=_0x17e552;if(_0x1aac06===_0x440842[_0x1d94e2(0x21b)])return _0x1d94e2(0x1e8);switch(_0x42ff3f){case _0x16277f[_0x1d94e2(0x10a)]:return'univer-bg-green-500';case _0x16277f['CONNECTING']:case _0x16277f[_0x1d94e2(0x146)]:return'univer-bg-blue-500';case _0x16277f[_0x1d94e2(0xff)]:return _0x1d94e2(0x1e8);default:return'univer-bg-gray-500';}},_0x184f62=_0x2c7ed5=>{var _0x318870=_0x17e552;switch(_0x2c7ed5){case _0x16277f['CONNECTED']:return _0x4d8272['t'](_0x318870(0x21c));case _0x16277f[_0x318870(0x104)]:return _0x4d8272['t']('mcpConfig.connectionStatus.connecting');case _0x16277f[_0x318870(0xff)]:return _0x4d8272['t']('mcpConfig.connectionStatus.failed');case _0x16277f[_0x318870(0x146)]:return _0x4d8272['t'](_0x318870(0x107));default:return _0x4d8272['t'](_0x318870(0x199));}},_0x30fd3d=_0x10f5c4=>{var _0x169214=_0x17e552;switch(_0x10f5c4){case _0x440842[_0x169214(0x21b)]:return _0x4d8272['t']('mcpConfig.connectionError.invalidApiKey');case _0x440842['SESSION_ID_OCCUPIED']:return _0x4d8272['t'](_0x169214(0x19e));case _0x440842[_0x169214(0xfb)]:return _0x4d8272['t'](_0x169214(0x1b9));case _0x440842[_0x169214(0xe3)]:return _0x4d8272['t'](_0x169214(0x137));default:return'';}},_0x2faea4=_0x5f29f0(()=>{const _0x4d5f87={..._0x4d3756,'apiKey':_0x39ec65['trim'](),'enableAuth':_0x3a4a28};_0x5f05bb(_0x4d5f87);},[_0x4d3756,_0x39ec65,_0x3a4a28,_0x5f05bb]),_0x31623a=_0x39ec65[_0x17e552(0x1c7)]()['length']>0x0;return _0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x131),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x20f),'children':_0x2f1d56('div',{'className':_0x17e552(0x1fc),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x143),'children':_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0xe7),'children':'⚙'})}),_0x332e26(_0x17e552(0x18d),{'children':_0x332e26('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1c1))})})]})}),_0x2f1d56('div',{'className':_0x17e552(0x1eb),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x234)+_0x28f88a(_0x6df636,_0x4addeb)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26('div',{'className':_0x17e552(0x1b5)+_0x193fef(_0x6df636,_0x4addeb)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x332e26(_0x17e552(0x232),{'className':'univer-text-sm\x20univer-font-medium','children':_0x184f62(_0x6df636)})]})}),_0x4addeb!==_0x440842['NONE']&&(_0x6df636===_0x16277f[_0x17e552(0xff)]||_0x4addeb===_0x440842[_0x17e552(0x21b)])&&_0x332e26(_0x17e552(0x18d),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x224),'children':[_0x332e26(_0x17e552(0x232),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x332e26('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x30fd3d(_0x4addeb)})]})})]}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x230),'children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x22d),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x18b),'children':[_0x2f1d56(_0x17e552(0x174),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x332e26(_0x17e552(0x232),{'children':'🔑'}),'\x20',_0x4d8272['t'](_0x17e552(0x12e)),_0x332e26('span',{'className':_0x17e552(0x1c3),'children':'*'}),_0x1b65dd&&_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x0),'className':_0x17e552(0x1a8),'title':_0x4d8272['t'](_0x17e552(0xe4)),'children':_0x332e26(de,{})})]}),_0x332e26(_0x224388,{'type':_0x17e552(0x15b),'placeholder':_0x4d8272['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x39ec65,'onChange':_0x339237,'disabled':_0x15ddec,'autoComplete':_0x17e552(0x156)}),_0x332e26('p',{'className':_0x17e552(0x164),'children':_0x4d8272['t'](_0x17e552(0x10c))})]}),_0x1b65dd&&_0x1871fe&&_0x2f1d56('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x1),'className':_0x17e552(0x1e1),'title':'Close','children':_0x332e26(ve,{})}),_0x2f1d56('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x15f),'children':_0x332e26(_0x17e552(0x232),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1c2),'children':[_0x332e26('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4d8272['t']('mcpConfig.apiApplyInfo.title')}),_0x332e26('p',{'className':_0x17e552(0x1e6),'children':_0x4d8272['t'](_0x17e552(0x127))}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x12d),'children':_0x389166&&_0x2f1d56('a',{'href':_0x23a544,'target':_0x17e552(0x222),'rel':_0x17e552(0x1cf),'className':_0x17e552(0x238),'children':[_0x332e26(_0x17e552(0x232),{'children':'🤖'}),_0x4d8272['t'](_0x17e552(0x1ad)),_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x226),'children':'↗'})]})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f2),'children':['✨','\x20',_0x4d8272['t'](_0x17e552(0x211))]})]})]})]}),_0x12dfd5[_0x17e552(0x195)]&&_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x189),'children':[_0x2f1d56('h4',{'className':_0x17e552(0xe9),'children':[_0x332e26(_0x17e552(0x232),{'children':'🔗'}),'\x20',_0x4d8272['t']('mcpConfig.connectionInfo')]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1cd),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26('p',{'className':_0x17e552(0x20c),'children':_0x4d8272['t'](_0x17e552(0x124))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x147))}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x240),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x4d8272['t'](_0x17e552(0x155))]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'2'}),_0x4d8272['t'](_0x17e552(0xf2))]}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'3'}),_0x4d8272['t'](_0x17e552(0x210))]})]})]})]}),_0x2f1d56('div',{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':'MCP\x20Configuration'}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x19d),'children':_0x332e26(_0x17e552(0x209),{'className':_0x17e552(0x1d7),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x2bc93f+_0x17e552(0x11e)+(_0x39ec65||'<API_KEY>')+_0x17e552(0x184)})})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x23b))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x332e26('div',{'className':_0x17e552(0x21d)}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26('div',{'className':_0x17e552(0x1c5),'children':_0x17e552(0x110)}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x198))})]})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f8),'children':[_0x332e26('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1e9))})]})]})]})]})]})]}),_0x332e26(_0x30e2ec,{'onClick':_0x2faea4,'disabled':!_0x31623a||_0x15ddec,'className':_0x17e552(0x241),'children':_0x15ddec?_0x2f1d56(_0x17e552(0x232),{'className':_0x17e552(0x214),'children':[_0x332e26('span',{'children':'⟲'}),_0x4d8272['t'](_0x17e552(0x190))]}):_0x2f1d56('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(ue,{}),_0x4d8272['t'](_0x17e552(0x13e))]})}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x106),'children':_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-gap-3','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x160),'children':'💡'}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x332e26('div',{'className':_0x17e552(0x1f0),'children':_0x17e552(0x18a)}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x180))]}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x237))]})]})]})})]})})]});}const L=_0x22d713(0xf3),ie={'showDeveloperTools':!0x1};var on=Object[_0x22d713(0x15c)],sn=(_0x466788,_0x346e98,_0x2d39fb,_0x1f9b09)=>{for(var _0x32e9b6=_0x1f9b09>0x1?void 0x0:_0x1f9b09?on(_0x346e98,_0x2d39fb):_0x346e98,_0x5e0ee1=_0x466788['length']-0x1,_0x36293f;_0x5e0ee1>=0x0;_0x5e0ee1--)(_0x36293f=_0x466788[_0x5e0ee1])&&(_0x32e9b6=_0x36293f(_0x32e9b6)||_0x32e9b6);return _0x32e9b6;},f=(_0x4e5c07,_0x97789c)=>(_0x278dbd,_0x391df4)=>_0x97789c(_0x278dbd,_0x391df4,_0x4e5c07);const T=_0x22d713(0xe5),R=_0x22d713(0x1b4);let I=class extends _0x17e4fc{constructor(_0x445c3a,_0x4d3dba,_0x59d59b,_0x1e7d25,_0x36968f,_0x33c462,_0x403ccc,_0x4f6a2f,_0x6da05,_0x1faf22){var _0x1eb58a=_0x22d713;super(),x(this,_0x1eb58a(0x1ff),new _0x563fed(!0x1)),x(this,_0x1eb58a(0x20d),new _0x563fed({})),x(this,_0x1eb58a(0x123),new _0x563fed({})),x(this,'_apiKey$',new _0x563fed('')),x(this,'_handleConfigSave',async _0x237cf2=>{var _0x1760e2=_0x1eb58a,_0xa5febd,_0x354fb6;this[_0x1760e2(0x1ff)][_0x1760e2(0x239)](!0x0);try{const _0x5e0362=await this[_0x1760e2(0x1e7)](_0x237cf2);if(!_0x5e0362[_0x1760e2(0x122)]){this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':_0x5e0362[_0x1760e2(0x11c)]||this['_localeService']['t'](_0x1760e2(0x204))});return;}_0x237cf2[_0x1760e2(0x193)]?await this[_0x1760e2(0x235)]['setItem'](T,_0x237cf2['apiKey'][_0x1760e2(0x1c7)]()):await this[_0x1760e2(0x235)][_0x1760e2(0x12f)](T),this[_0x1760e2(0x14f)][_0x1760e2(0x239)](((_0xa5febd=_0x237cf2[_0x1760e2(0x193)])==null?void 0x0:_0xa5febd['trim']())||''),this['_mcpConnectionController'][_0x1760e2(0x1d6)]({'Authorization':_0x1760e2(0x14d)+((_0x354fb6=_0x237cf2['apiKey'])==null?void 0x0:_0x354fb6[_0x1760e2(0x1c7)]())}),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1a6)],'content':this[_0x1760e2(0x227)]['t'](_0x1760e2(0x1f5))}),setTimeout(()=>{var _0x111272=_0x1760e2;this[_0x111272(0x15e)][_0x111272(0x15a)](R);},0x320);}catch(_0x747cab){this[_0x1760e2(0x144)]['error'](_0x1760e2(0x16b),_0x747cab),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':this[_0x1760e2(0x227)]['t']('mcpConfig.configError')});}finally{this[_0x1760e2(0x1ff)]['next'](!0x1);}}),(this[_0x1eb58a(0x1ef)]=_0x445c3a,this['_uiPartsService']=_0x4d3dba,this['_configService']=_0x59d59b,this[_0x1eb58a(0x235)]=_0x1e7d25,this['_dialogService']=_0x36968f,this[_0x1eb58a(0x17d)]=_0x33c462,this[_0x1eb58a(0x221)]=_0x403ccc,this['_localeService']=_0x4f6a2f,this[_0x1eb58a(0x144)]=_0x6da05,this[_0x1eb58a(0xfe)]=_0x1faf22,this['_initConfigSync'](),this[_0x1eb58a(0x135)](),this[_0x1eb58a(0x1ed)]());}['showConfigPanel'](){var _0x12459d=_0x22d713;this[_0x12459d(0x15e)][_0x12459d(0x148)]({'id':R,'title':{'title':this[_0x12459d(0x227)]['t'](_0x12459d(0x23f))},'children':{'label':_0x12459d(0x14e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x3a1b61=_0x12459d;this[_0x3a1b61(0x15e)][_0x3a1b61(0x15a)](R);}});}['getCurrentConfig'](){var _0x2cbeaa=_0x22d713;return this[_0x2cbeaa(0x20d)][_0x2cbeaa(0x130)];}[_0x22d713(0x1ed)](){var _0x4e1fae=_0x22d713;this[_0x4e1fae(0x12b)](this[_0x4e1fae(0x221)]['register'](_0x4e1fae(0x14e),this[_0x4e1fae(0x1aa)]()));}['_createConfigPanelComponent'](){var _0x5eb771=_0x22d713;return _0x3bce22(()=>{var _0x35a205=_0x4df3,_0x2e9520,_0x5e090f,_0x263a4b;return _0x332e26(tn,{'config':this['_config$'][_0x35a205(0x130)],'mcpCoreConfig':this[_0x35a205(0x20d)][_0x35a205(0x130)],'currentApiKey$':this[_0x35a205(0x14f)],'onSave':this[_0x35a205(0x216)],'loading':this[_0x35a205(0x1ff)][_0x35a205(0x130)],'connectionStatus$':(_0x2e9520=this['_mcpConnectionController'])==null?void 0x0:_0x2e9520[_0x35a205(0x19b)],'connectionError$':(_0x5e090f=this['_mcpConnectionController'])==null?void 0x0:_0x5e090f['connectionError$'],'currentSessionId$':(_0x263a4b=this[_0x35a205(0xfe)])==null?void 0x0:_0x263a4b[_0x35a205(0x1b6)]});},this[_0x5eb771(0x1ef)]);}['_initConfigSync'](){var _0x24699a=_0x22d713;this[_0x24699a(0x12b)](this[_0x24699a(0x10b)]['subscribeConfigValue$'](_0x1b4990)['subscribe'](_0x578cde=>{var _0x40f0a9=_0x24699a;this['_mcpCoreConfig$'][_0x40f0a9(0x239)](_0x578cde||{});}));const _0x4b2f96=this[_0x24699a(0x10b)]['getConfig'](_0x1b4990);this['_mcpCoreConfig$'][_0x24699a(0x239)](_0x4b2f96||{}),this[_0x24699a(0x12b)](this[_0x24699a(0x10b)][_0x24699a(0x205)](L)['subscribe'](_0x49315c=>{var _0x2c6a4c=_0x24699a;this[_0x2c6a4c(0x123)][_0x2c6a4c(0x239)](_0x49315c||{});}));const _0x5ecd29=this['_configService']['getConfig'](L);this[_0x24699a(0x123)]['next'](_0x5ecd29||{});}async[_0x22d713(0x135)](){var _0x849283=_0x22d713;const _0x533eb6=await this[_0x849283(0x235)][_0x849283(0x173)](T);_0x533eb6&&(this[_0x849283(0xfe)][_0x849283(0x1d6)]({'Authorization':_0x849283(0x14d)+_0x533eb6}),this['_apiKey$'][_0x849283(0x239)](_0x533eb6));}async['_validateConfig'](_0x3fb86a){var _0x51ab7d=_0x22d713;if(!_0x3fb86a[_0x51ab7d(0x193)]||_0x3fb86a[_0x51ab7d(0x193)]['trim']()[_0x51ab7d(0x149)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x1de))};if(_0x3fb86a[_0x51ab7d(0x193)][_0x51ab7d(0x1c7)]()[_0x51ab7d(0x149)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x17f))};try{const _0x426b18=await this[_0x51ab7d(0x1ef)][_0x51ab7d(0x1f4)](_0x2ef2f2)['validateApiKey'](_0x3fb86a['apiKey'][_0x51ab7d(0x1c7)]());return _0x426b18[_0x51ab7d(0x122)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x426b18[_0x51ab7d(0x168)]||this[_0x51ab7d(0x227)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x1c92b1){return console[_0x51ab7d(0x132)](_0x51ab7d(0x133),_0x1c92b1),{'isValid':!0x0};}}};I=sn([f(0x0,_0x5486a6(_0x5d75c5)),f(0x1,_0x54649f),f(0x2,_0x16026c),f(0x3,_0x258048),f(0x4,_0x15efba),f(0x5,_0x88141c),f(0x6,_0x5486a6(_0x5a35e1)),f(0x7,_0x5486a6(_0x309e63)),f(0x8,_0xce7fb5),f(0x9,_0x5486a6(_0x2ef2f2))],I);const B={'id':_0x22d713(0x13c),'type':_0xdb8b8d[_0x22d713(0x138)],'handler':async(_0x2da2ba,_0x8a0e7e)=>(_0x2da2ba[_0x22d713(0x1f4)](I)[_0x22d713(0x118)](),!0x0)};function pe(_0x6496a1,_0x9e76e3){var _0x56a48a=_0x22d713;switch(_0x6496a1){case _0x16277f[_0x56a48a(0x187)]:return _0x56a48a(0x201);case _0x16277f[_0x56a48a(0x104)]:return'mcpStatus.connecting';case _0x16277f[_0x56a48a(0x10a)]:return'mcpStatus.connected';case _0x16277f[_0x56a48a(0xff)]:switch(_0x9e76e3){case _0x440842[_0x56a48a(0x21b)]:return _0x56a48a(0x162);case _0x440842[_0x56a48a(0x1b3)]:return _0x56a48a(0x12c);case _0x440842[_0x56a48a(0xfb)]:return _0x56a48a(0xe6);case _0x440842[_0x56a48a(0xe3)]:return _0x56a48a(0x219);default:return _0x56a48a(0x1da);}case _0x16277f[_0x56a48a(0x146)]:return _0x56a48a(0x16f);default:return _0x56a48a(0x22e);}}function cn(_0x15c599,_0x49e3de,_0x39a6f5){var _0x62e1d2=_0x22d713;const _0x3a327c=pe(_0x15c599,_0x49e3de),_0x5644d3=_0x39a6f5['t'](_0x3a327c);return _0x15c599===_0x16277f[_0x62e1d2(0x187)]&&_0x49e3de===_0x440842[_0x62e1d2(0x21b)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x1c8)):_0x15c599===_0x16277f[_0x62e1d2(0x10a)]?''+_0x5644d3:_0x15c599===_0x16277f[_0x62e1d2(0x187)]||_0x15c599===_0x16277f[_0x62e1d2(0xff)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x202)):_0x5644d3;}function an(_0x17a50c){var _0x32480a=_0x22d713;switch(_0x17a50c){case _0x16277f['CONNECTED']:return _0x32480a(0xec);case _0x16277f[_0x32480a(0x104)]:case _0x16277f[_0x32480a(0x146)]:return'univer-text-yellow-500';case _0x16277f[_0x32480a(0xff)]:case _0x16277f[_0x32480a(0x187)]:return _0x32480a(0x1c3);default:return _0x32480a(0xf7);}}function ln(_0x49b12a){var _0x455299=_0x22d713;const {status$:_0x67d4d5,error$:_0x173bed,onConfigure:_0x14d638}=_0x49b12a,_0x67294a=_0x2d20be(_0x67d4d5,_0x16277f['DISCONNECTED']),_0x145d80=_0x2d20be(_0x173bed,_0x440842['NONE']),_0x47527d=_0x1f62a6(_0x309e63),_0xc0a0b3=_0x67294a===_0x16277f[_0x455299(0x10a)],_0x2777bf=_0x67294a===_0x16277f[_0x455299(0x104)]||_0x67294a===_0x16277f[_0x455299(0x146)],_0x2341ac=_0x47527d['t'](pe(_0x67294a,_0x145d80)),_0x35cc16=cn(_0x67294a,_0x145d80,_0x47527d),_0x5684fb=an(_0x67294a),_0x1b68c6=_0xc0a0b3?_0x332e26(fe,{}):_0x332e26(ge,{}),_0x514bb0=_0x5f29f0(()=>{_0x14d638&&_0x14d638();},[_0xc0a0b3,_0x2777bf,_0x14d638]);function _0x4c772a(){var _0x5cd743=_0x455299;return _0x2f1d56('div',{'className':_0x488d88(_0x5cd743(0x150),_0x14d638&&_0x5cd743(0x154)),'onClick':_0x14d638?_0x514bb0:void 0x0,'children':[_0x332e26(_0x5cd743(0x18d),{'className':_0x488d88(_0x5cd743(0xef),_0x5684fb),'children':_0x1b68c6}),_0x332e26('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2341ac})]});}return _0x332e26(_0x635f0f,{'title':_0x35cc16,'placement':_0x455299(0x19a),'children':_0x4c772a()});}var un=Object[_0x22d713(0x15c)],vn=(_0x22fd26,_0x5bb04e,_0xd6753a,_0x2f7629)=>{var _0x1b5023=_0x22d713;for(var _0x48974a=_0x2f7629>0x1?void 0x0:_0x2f7629?un(_0x5bb04e,_0xd6753a):_0x5bb04e,_0x3f9001=_0x22fd26[_0x1b5023(0x149)]-0x1,_0x4485a0;_0x3f9001>=0x0;_0x3f9001--)(_0x4485a0=_0x22fd26[_0x3f9001])&&(_0x48974a=_0x4485a0(_0x48974a)||_0x48974a);return _0x48974a;},j=(_0x4ffacf,_0x3523aa)=>(_0x3c322f,_0x4afe74)=>_0x3523aa(_0x3c322f,_0x4afe74,_0x4ffacf);let A=class extends _0x17e4fc{constructor(_0x140485,_0x141d6d,_0x575020){var _0x4432b6=_0x22d713;super(),this[_0x4432b6(0x1ef)]=_0x140485,this[_0x4432b6(0x1ee)]=_0x141d6d,this[_0x4432b6(0x157)]=_0x575020,this[_0x4432b6(0x1ee)]['enableAutoConnect']=!0x1,this[_0x4432b6(0x175)]();}[_0x22d713(0x175)](){var _0x21dedc=_0x22d713;this['disposeWithMe'](this[_0x21dedc(0x157)]['registerComponent'](_0x4a1c81[_0x21dedc(0x16a)],()=>_0x3bce22(dn({'status$':this[_0x21dedc(0x1ee)]['connectionStatus$'],'error$':this[_0x21dedc(0x1ee)]['connectionError$'],'onConfigure':()=>this[_0x21dedc(0x1b8)]()}),this[_0x21dedc(0x1ef)])));}[_0x22d713(0x1b8)](){var _0x1a8485=_0x22d713;this['_injector'][_0x1a8485(0x1f4)](I)[_0x1a8485(0x118)]();}};A=vn([j(0x0,_0x5486a6(_0x5d75c5)),j(0x1,_0x5486a6(_0x2ef2f2)),j(0x2,_0x54649f)],A);function dn(_0x3a8f2c){const {status$:_0x5241ac,error$:_0x5d9999,onConfigure:_0x5f03cd}=_0x3a8f2c;return function(){return _0x332e26(ln,{'status$':_0x5241ac,'error$':_0x5d9999,'onConfigure':_0x5f03cd});};}function gn(_0x230136){var _0x172fc6=_0x22d713;return{'id':B['id'],'type':_0x552e1b[_0x172fc6(0x1ea)],'icon':_0x172fc6(0x121),'title':'mcpConfig.title','tooltip':_0x172fc6(0x23f)};}const fn={[_0x107585[_0x22d713(0xf0)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x22d713(0x15c)],mn=(_0x253fd6,_0x4268c5,_0x4e9227,_0x54f4e2)=>{var _0x1a781b=_0x22d713;for(var _0x13871f=_0x54f4e2>0x1?void 0x0:_0x54f4e2?pn(_0x4268c5,_0x4e9227):_0x4268c5,_0x22d216=_0x253fd6[_0x1a781b(0x149)]-0x1,_0x3ddf3f;_0x22d216>=0x0;_0x22d216--)(_0x3ddf3f=_0x253fd6[_0x22d216])&&(_0x13871f=_0x3ddf3f(_0x13871f)||_0x13871f);return _0x13871f;},re=(_0x2a7fef,_0x20586a)=>(_0x204ced,_0x5bd5b1)=>_0x20586a(_0x204ced,_0x5bd5b1,_0x2a7fef);let M=class extends _0x17e4fc{constructor(_0x29e3d3,_0x445ec8){var _0x29a40a=_0x22d713;super(),this[_0x29a40a(0x212)]=_0x29e3d3,this['_menuManagerService']=_0x445ec8,this[_0x29a40a(0x159)](),this[_0x29a40a(0x16e)]();}[_0x22d713(0x159)](){var _0x10bfb1=_0x22d713;[B][_0x10bfb1(0x1bf)](_0x311375=>{var _0x4975b8=_0x10bfb1;this[_0x4975b8(0x12b)](this[_0x4975b8(0x212)][_0x4975b8(0x1fd)](_0x311375));});}['_initializeMenus'](){var _0x56aa3f=_0x22d713;this[_0x56aa3f(0x15d)][_0x56aa3f(0x21f)](fn);}};function _0x4df3(_0x43acb0,_0x157c3d){var _0x538290=_0x5382();return _0x4df3=function(_0x4df3cc,_0x26cc37){_0x4df3cc=_0x4df3cc-0xe2;var _0x464b9b=_0x538290[_0x4df3cc];return _0x464b9b;},_0x4df3(_0x43acb0,_0x157c3d);}M=mn([re(0x0,_0xf27dd3),re(0x1,_0x2d5339)],M);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x22d713(0x10e),'connected':_0x22d713(0x215),'failed':_0x22d713(0x208),'retrying':_0x22d713(0x1cc),'unknown':_0x22d713(0x22b),'missingApiKey':_0x22d713(0x1e3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x22d713(0x163),'networkError':_0x22d713(0x1bc),'maxRetriesExceeded':_0x22d713(0x1d5),'clickToConnect':_0x22d713(0x213),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x22d713(0x181),'description':_0x22d713(0x1dd),'apiKey':_0x22d713(0x17e),'apiKeyPlaceholder':_0x22d713(0x145),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x22d713(0x169),'connectionInfo':_0x22d713(0x128),'mcpClientConfig':_0x22d713(0x128),'configInstructions':_0x22d713(0x17c),'configStepTitle':_0x22d713(0x22a),'configStep1':_0x22d713(0x178),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22d713(0x126),'sessionId':_0x22d713(0x197),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x22d713(0x191),'configParameters':_0x22d713(0x206),'maxRetries':_0x22d713(0x194),'save':_0x22d713(0x176),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x22d713(0x11a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x22d713(0x207),'apiApplyInfo':{'title':_0x22d713(0x18c),'description':_0x22d713(0x220),'univerAiLabel':_0x22d713(0xf4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x22d713(0xf6),'apiKeyTooShort':_0x22d713(0x1a2),'invalidConfig':_0x22d713(0x161),'invalidApiKey':_0x22d713(0x23d)},'connectionStatus':{'disconnected':_0x22d713(0x112),'connecting':_0x22d713(0xe2),'connected':_0x22d713(0x177),'failed':_0x22d713(0x1a1),'retrying':_0x22d713(0x242)},'connectionError':{'missingApiKey':_0x22d713(0x223),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x22d713(0xea),'networkError':_0x22d713(0x136),'maxRetriesExceeded':_0x22d713(0x152)}}},kn={'mcpStatus':{'disconnected':_0x22d713(0x179),'connecting':'MCP\x20连接中...','connected':_0x22d713(0x1a3),'failed':_0x22d713(0x1ce),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','missingApiKey':_0x22d713(0x134),'invalidApiKey':_0x22d713(0xf1),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x22d713(0x13d),'maxRetriesExceeded':_0x22d713(0x203),'clickToConnect':_0x22d713(0x1d0),'clickToConfigure':_0x22d713(0x171)},'mcpConfig':{'title':_0x22d713(0x17b),'description':_0x22d713(0x1ca),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x22d713(0xfd),'enableAuth':_0x22d713(0x113),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x22d713(0x119),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x22d713(0x196),'configStepTitle':_0x22d713(0x109),'configStep1':_0x22d713(0x1d9),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x22d713(0x16d),'sessionId':_0x22d713(0x19f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x22d713(0x236),'configParameters':_0x22d713(0x125),'maxRetries':_0x22d713(0x140),'save':_0x22d713(0x14b),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x22d713(0x151),'configError':_0x22d713(0x1e2),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x22d713(0xf5),'univerAiLabel':_0x22d713(0x1ab),'getStarted':_0x22d713(0x111)},'validation':{'apiKeyRequired':_0x22d713(0x129),'apiKeyTooShort':_0x22d713(0x182),'invalidConfig':'配置无效','invalidApiKey':_0x22d713(0x1c4)},'connectionStatus':{'disconnected':_0x22d713(0x233),'connecting':_0x22d713(0x1e4),'connected':_0x22d713(0x1c0),'failed':_0x22d713(0x192),'retrying':_0x22d713(0x1cb)},'connectionError':{'missingApiKey':_0x22d713(0x23a),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x22d713(0x14c),'networkError':_0x22d713(0x103),'maxRetriesExceeded':_0x22d713(0x120)}}};function _0x5382(){var _0x4a6909=['_configService','mcpConfig.apiKeyHint','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','MCP\x20Connecting...','UniverIcon','univer_session_id:','几秒钟内获取您的\x20API\x20密钥','Disconnected','启用身份验证','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','CloseSmallSingle','12UvdIBn','has','showConfigPanel','MCP\x20客户端配置','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6tXrWhe','errorMessage','hasOwnProperty','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','pluginName','超出最大重试次数,请稍后再试','MenuIcon','isValid','_config$','mcpConfig.configInstructions','配置参数:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.apiApplyInfo.description','MCP\x20Client\x20Configuration','API\x20密钥不能为空','idSuffix','disposeWithMe','mcpStatus.sessionOccupied','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.apiKey','removeItem','value','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','warn','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP:\x20缺少\x20API\x20密钥','_loadStoredApiKey','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.connectionError.maxRetriesExceeded','COMMAND','xlink:href','8JbXTKk','univer-min-w-0\x20univer-flex-1','mcp-ui.command.openConfigPanel','MCP:\x20网络错误','mcpConfig.save','onStarting','最大重试次数','icon','show','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_logService','Enter\x20your\x20API\x20key','RETRYING','mcpConfig.configStepTitle','open','length','toString','保存配置','会话当前被占用,请稍后再试','Bearer\x20','MCPConfigPanel','_apiKey$','univer-flex\x20univer-cursor-pointer\x20univer-items-center','配置保存成功','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','assign','hover:univer-opacity-80','mcpConfig.configStep1','off','_uiPartsService','svg','_initializeCommands','close','text','getOwnPropertyDescriptor','_menuManagerService','_dialogService','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex-shrink-0\x20univer-text-blue-500','Invalid\x20configuration','mcpStatus.invalidApiKey','MCP:\x20Session\x20Occupied','univer-text-xs\x20univer-text-gray-500','NONE','concat','18puXCEW','error','Enable\x20authentication\x20for\x20secure\x20connections','HEADER_MENU','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','extend','重启您的\x20MCP\x20客户端以使配置生效','_initializeMenus','mcpStatus.retrying','off-line-icon_clip0_910_343','点击配置\x20MCP','white','getItem','label','_initStatusComponent','Save\x20Configuration','Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20已断开','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','MCP\x20配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_messageService','API\x20Key','mcpConfig.validation.apiKeyTooShort','mcpConfig.note1','MCP\x20Configuration','API\x20密钥长度至少需要\x2010\x20位','OffLineIcon','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','2281013FUtAFJ','call','DISCONNECTED','children','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Configuration\x20Notes:','univer-space-y-2','What\x20is\x20API\x20Key?','div','off-line-icon','url(#on-line-icon_clip0_910_349)','mcpConfig.saving','API\x20key\x20with\x20Bearer\x20prefix.','连接失败','apiKey','Max\x20Retries','showDeveloperTools','将以下配置添加到您的\x20MCP\x20客户端设置中:','Session\x20ID','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.disconnected','bottom','connectionStatus$','className','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.sessionOccupied','会话ID','668200rELFFs','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20已连接','indexOf','string','Success','none','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','M5.21243\x2012.287L11.8791\x205.62036','_createConfigPanelComponent','Univer\x20AI\x20控制台','11lmeUPi','mcpConfig.apiApplyInfo.univerAiLabel','_config','https://console.univer.plus','univer.ai','prototype','0\x200\x2017\x2016','SESSION_ID_OCCUPIED','mcp-config-dialog','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sessionId$','current','_handleConfigure','mcpConfig.connectionError.networkError','substring','includes','MCP:\x20Network\x20Error','push','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','forEach','已连接','mcpConfig.description','univer-flex-1','univer-text-red-500','API\x20密钥无效,请检查密钥是否正确','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','attrs','trim','mcpStatus.clickToConfigure','close-small-single','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重连中...','MCP\x20Retrying...','univer-space-y-4','MCP\x20连接失败','noopener\x20noreferrer','点击连接\x20MCP','univer-space-y-3','univer.plus','colorChannel1','478012tHZqDS','MCP:\x20Max\x20Retries\x20Exceeded','__setCustomHeaders','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','CheckMarkIcon','复制以下\x20JSON\x20配置','mcpStatus.failed','on-line-icon','add','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.validation.apiKeyRequired','entries','\x20-\x20','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','配置保存失败','MCP:\x20API\x20Key\x20Missing','连接中...','clipPath','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_validateConfig','univer-bg-red-500','mcpConfig.authorizationDescription','BUTTON','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','tag','_registerComponent','_connectionController','_injector','univer-font-medium','323766cFrVeZ','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Error','get','mcpConfig.configSaved','random','on-line-icon_clip0_910_349','univer-flex\x20univer-items-start\x20univer-gap-3','defIds','path','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex\x20univer-items-center\x20univer-gap-3','registerCommand','round','_loading$','M0\x200H16V16H0z','mcpStatus.disconnected','mcpStatus.clickToConnect','MCP:\x20超出最大重试次数','mcpConfig.validation.invalidConfig','subscribeConfigValue$','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','pre','apply','getOwnPropertySymbols','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','function','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.configStep3','mcpConfig.apiApplyInfo.getStarted','_commandService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20Connected','_handleConfigSave','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','723610SihMyY','mcpStatus.maxRetriesExceeded','http://www.w3.org/2000/svg','INVALID_API_KEY','mcpConfig.connectionStatus.connected','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP_UI_PLUGIN','mergeMenu','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_componentManager','_blank','API\x20key\x20is\x20required\x20to\x20connect','univer-flex\x20univer-items-start\x20univer-gap-2','HelpSingle','univer-text-gray-400','_localeService','javascript:void(0)','1em','Configuration\x20Steps:','MCP\x20Unknown\x20Status','replace','univer-space-y-5','mcpStatus.unknown','OnLineIcon','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','15728856vJjeuZ','span','未连接','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_localStorageService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.note2','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','next','需要\x20API\x20密钥才能连接','mcpConfig.configParameters','url(#$1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2567195YGJNAe','mcpConfig.title','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','Retrying...','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','fill','Connecting...','MAX_RETRIES_EXCEEDED','mcpConfig.apiApplyInfo.title','mcp.apiKey','mcpStatus.networkError','univer-text-white','currentColor','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','mask','univer-text-green-500','evenodd','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','OTHERS','MCP:\x20无效的\x20API\x20密钥','mcpConfig.configStep2','mcp-ui.config','Univer\x20AI\x20Console','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20key\x20is\x20required','univer-text-gray-500','mcpServerUrl','defs','0\x200\x2016\x2016','NETWORK_ERROR','map','您的\x20API\x20密钥将在此浏览器中本地存储','_mcpConnectionController','FAILED','https://console.univer.ai','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','网络连接错误,请检查您的网络连接','CONNECTING','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.connectionStatus.retrying','displayName','配置步骤:','CONNECTED'];_0x5382=function(){return _0x4a6909;};return _0x5382();}var hn=Object[_0x22d713(0x102)],Cn=Object[_0x22d713(0x15c)],yn=(_0x8f05dd,_0x308ada,_0x294263)=>_0x308ada in _0x8f05dd?hn(_0x8f05dd,_0x308ada,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294263}):_0x8f05dd[_0x308ada]=_0x294263,_n=(_0xe96f78,_0x3a9aa3,_0x3f8b3c,_0x4eb6ad)=>{for(var _0x7fe21f=_0x4eb6ad>0x1?void 0x0:_0x4eb6ad?Cn(_0x3a9aa3,_0x3f8b3c):_0x3a9aa3,_0x4070f7=_0xe96f78['length']-0x1,_0x36912a;_0x4070f7>=0x0;_0x4070f7--)(_0x36912a=_0xe96f78[_0x4070f7])&&(_0x7fe21f=_0x36912a(_0x7fe21f)||_0x7fe21f);return _0x7fe21f;},E=(_0x3e786f,_0x28b3c7)=>(_0x4f4191,_0x1145a7)=>_0x28b3c7(_0x4f4191,_0x1145a7,_0x3e786f),xn=(_0xc71a0b,_0x3fc73c,_0x25656d)=>yn(_0xc71a0b,_0x3fc73c+'',_0x25656d);let U=class extends _0x108c6d{constructor(_0x1da913=ie,_0x567774,_0x1ac645,_0xae5cbd,_0x43ed19,_0xef53c0){var _0x17284b=_0x22d713;super(),this[_0x17284b(0x1ae)]=_0x1da913,this[_0x17284b(0x1ef)]=_0x567774,this[_0x17284b(0x10b)]=_0x1ac645,this[_0x17284b(0x157)]=_0xae5cbd,this[_0x17284b(0x235)]=_0x43ed19,this[_0x17284b(0x227)]=_0xef53c0;const {..._0x13a141}=_0x283cca({},ie,this[_0x17284b(0x1ae)]);this[_0x17284b(0x10b)][_0x17284b(0xee)](L,_0x13a141);}async[_0x22d713(0x13f)](){var _0x14c3e1=_0x22d713;const _0x593bca=[[A],[I],[M]];this[_0x14c3e1(0x1ef)][_0x14c3e1(0x117)](_0x36dc6d)||_0x593bca[_0x14c3e1(0x1bd)]([_0x36dc6d,{'useClass':_0x3278f7}]),_0x593bca['forEach'](_0x47d18e=>this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1dc)](_0x47d18e)),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](A),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](I),this[_0x14c3e1(0x1ef)]['get'](M);}};xn(U,_0x22d713(0x11f),_0x22d713(0x21e)),U=_n([_0x390f57(_0x980bdf),E(0x1,_0x5486a6(_0x5d75c5)),E(0x2,_0x16026c),E(0x3,_0x54649f),E(0x4,_0x258048),E(0x5,_0x5486a6(_0x309e63))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ var _0x5169db=_0x5e17;(function(_0x28029c,_0x1edf80){var _0x3624cf=_0x5e17,_0x30f76f=_0x28029c();while(!![]){try{var _0x291700=parseInt(_0x3624cf(0x1ac))/0x1+-parseInt(_0x3624cf(0x2b4))/0x2*(parseInt(_0x3624cf(0x28c))/0x3)+parseInt(_0x3624cf(0x2a5))/0x4*(parseInt(_0x3624cf(0x1e5))/0x5)+parseInt(_0x3624cf(0x264))/0x6+-parseInt(_0x3624cf(0x1fc))/0x7*(parseInt(_0x3624cf(0x23c))/0x8)+parseInt(_0x3624cf(0x2ee))/0x9*(-parseInt(_0x3624cf(0x289))/0xa)+parseInt(_0x3624cf(0x2db))/0xb*(parseInt(_0x3624cf(0x2d8))/0xc);if(_0x291700===_0x1edf80)break;else _0x30f76f['push'](_0x30f76f['shift']());}catch(_0x5a704d){_0x30f76f['push'](_0x30f76f['shift']());}}}(_0x23e6,0xb8601));var we=Object[_0x5169db(0x27f)],Ee=(_0x53bb6d,_0x454c8a,_0x473325)=>_0x454c8a in _0x53bb6d?we(_0x53bb6d,_0x454c8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x473325}):_0x53bb6d[_0x454c8a]=_0x473325,S=(_0x462e81,_0x49b06a,_0x5289f3)=>Ee(_0x462e81,typeof _0x49b06a!=_0x5169db(0x1bf)?_0x49b06a+'':_0x49b06a,_0x5289f3);import{LocaleService as _0x4f4718,Inject as _0x236043,Injector as _0x582310,IConfigService as _0x3a4bae,ILocalStorageService as _0x51515e,ILogService as _0x36ee80,Disposable as _0x3dde06,CommandType as _0x42ca93,ICommandService as _0x39e99e,DependentOn as _0x37ecd6,Plugin as _0x304d6d,merge as _0x1ce813}from'@univerjs/core';import{jsxs as _0x5710b0,jsx as _0x575de2}from'react/jsx-runtime';import{MCPConnectionStatus as _0x386ed5,MCPConnectionError as _0x4e873e,MCPConnectionController as _0x27fb1b,MCP_PLUGIN_CONFIG_KEY as _0x457454,UniverMCPPlugin as _0x20d2ba}from'@univerjs-pro/mcp';import{Input as _0x430dc6,Button as _0x3b7201,MessageType as _0x2465ca,Tooltip as _0x7daf80,clsx as _0x3a7b1a}from'@univerjs/design';import{useDependency as _0x3f5854,useObservable as _0x15ca67,IUIPartsService as _0x1711f6,IDialogService as _0x499b1d,IMessageService as _0xdc7f2d,ComponentManager as _0x43e4c3,connectInjector as _0x23400d,BuiltInUIPart as _0x906c3b,MenuItemType as _0x515621,RibbonStartGroup as _0x173307,IMenuManagerService as _0x5a4a7b}from'@univerjs/ui';import{BehaviorSubject as _0x1434d3}from'rxjs';import{forwardRef as _0x4f8dfb,useRef as _0x4d3693,createElement as _0x47720d,useState as _0x5d7e5e,useCallback as _0x30b2c7}from'react';import{ISocketService as _0x4a4ff2,WebSocketService as _0x1f9c88}from'@univerjs/network';var f=function(){var _0x4a2e58=_0x5169db;return f=Object[_0x4a2e58(0x2e0)]||function(_0x2bc047){var _0x531672=_0x4a2e58;for(var _0x4d98c1,_0xc25bbe=0x1,_0x1a747a=arguments['length'];_0xc25bbe<_0x1a747a;_0xc25bbe++){_0x4d98c1=arguments[_0xc25bbe];for(var _0xd2304b in _0x4d98c1)Object[_0x531672(0x248)]['hasOwnProperty']['call'](_0x4d98c1,_0xd2304b)&&(_0x2bc047[_0xd2304b]=_0x4d98c1[_0xd2304b]);}return _0x2bc047;},f[_0x4a2e58(0x21d)](this,arguments);},Ye=function(_0x50d375,_0x12ef52){var _0x5d64e1=_0x5169db,_0x395278={};for(var _0x151344 in _0x50d375)Object[_0x5d64e1(0x248)][_0x5d64e1(0x281)][_0x5d64e1(0x20a)](_0x50d375,_0x151344)&&_0x12ef52['indexOf'](_0x151344)<0x0&&(_0x395278[_0x151344]=_0x50d375[_0x151344]);if(_0x50d375!=null&&typeof Object[_0x5d64e1(0x21f)]==_0x5d64e1(0x2d4)){for(var _0x15a023=0x0,_0x151344=Object[_0x5d64e1(0x21f)](_0x50d375);_0x15a023<_0x151344[_0x5d64e1(0x23e)];_0x15a023++)_0x12ef52[_0x5d64e1(0x1ad)](_0x151344[_0x15a023])<0x0&&Object[_0x5d64e1(0x248)]['propertyIsEnumerable'][_0x5d64e1(0x20a)](_0x50d375,_0x151344[_0x15a023])&&(_0x395278[_0x151344[_0x15a023]]=_0x50d375[_0x151344[_0x15a023]]);}return _0x395278;},w=_0x4f8dfb(function(_0x142ff7,_0x2338cd){var _0x518de0=_0x5169db,_0x32c3d8=_0x142ff7[_0x518de0(0x292)],_0x22a112=_0x142ff7['id'],_0x5bef58=_0x142ff7[_0x518de0(0x270)],_0x36d73b=_0x142ff7[_0x518de0(0x2e6)],_0x49d5fc=Ye(_0x142ff7,['icon','id',_0x518de0(0x270),_0x518de0(0x2e6)]),_0x5722dc='univerjs-icon\x20univerjs-icon-'['concat'](_0x22a112,'\x20')[_0x518de0(0x20c)](_0x5bef58||'')[_0x518de0(0x249)](),_0x13b076=_0x4d3693('_'[_0x518de0(0x20c)](Xe()));return ue(_0x32c3d8,''[_0x518de0(0x20c)](_0x22a112),{'defIds':_0x32c3d8[_0x518de0(0x229)],'idSuffix':_0x13b076[_0x518de0(0x22a)]},f({'ref':_0x2338cd,'className':_0x5722dc},_0x49d5fc),_0x36d73b);});function ue(_0x51b111,_0x448771,_0x95fbc6,_0x25df26,_0x48de69){var _0x57ad7b=_0x5169db;return _0x47720d(_0x51b111['tag'],f(f({'key':_0x448771},Ze(_0x51b111,_0x95fbc6,_0x48de69)),_0x25df26),(qe(_0x51b111,_0x95fbc6)[_0x57ad7b(0x2ec)]||[])[_0x57ad7b(0x251)](function(_0x58f912,_0x1844da){var _0x343e5b=_0x57ad7b;return ue(_0x58f912,''['concat'](_0x448771,'-')[_0x343e5b(0x20c)](_0x51b111['tag'],'-')['concat'](_0x1844da),_0x95fbc6,void 0x0,_0x48de69);}));}function Ze(_0x1afebe,_0x5b366,_0x33e2b5){var _0x1557fe=_0x5169db,_0x1285b7=f({},_0x1afebe[_0x1557fe(0x2fd)]);_0x33e2b5!=null&&_0x33e2b5[_0x1557fe(0x2b3)]&&_0x1285b7[_0x1557fe(0x28f)]===_0x1557fe(0x2b3)&&(_0x1285b7['fill']=_0x33e2b5[_0x1557fe(0x2b3)]),_0x1afebe[_0x1557fe(0x2cc)]===_0x1557fe(0x1e2)&&_0x1285b7['id']&&(_0x1285b7['id']=_0x1285b7['id']+_0x5b366[_0x1557fe(0x2bf)]),Object[_0x1557fe(0x2bb)](_0x1285b7)['forEach'](function(_0x5b047d){var _0x42665e=_0x1557fe,_0x4c04ac=_0x5b047d[0x0],_0x25229b=_0x5b047d[0x1];_0x4c04ac===_0x42665e(0x1e2)&&typeof _0x25229b==_0x42665e(0x269)&&(_0x1285b7[_0x4c04ac]=_0x25229b[_0x42665e(0x24b)](/url\(#(.*)\)/,_0x42665e(0x2ca)['concat'](_0x5b366['idSuffix'],')')));});var _0x7e2c8c=_0x5b366['defIds'];return!_0x7e2c8c||_0x7e2c8c[_0x1557fe(0x23e)]===0x0||(_0x1afebe[_0x1557fe(0x2cc)]===_0x1557fe(0x204)&&_0x1285b7[_0x1557fe(0x2cf)]&&(_0x1285b7[_0x1557fe(0x2cf)]=_0x1285b7[_0x1557fe(0x2cf)]+_0x5b366[_0x1557fe(0x2bf)]),Object[_0x1557fe(0x2bb)](_0x1285b7)['forEach'](function(_0x537559){var _0x2a965b=_0x1557fe,_0x43a491=_0x537559[0x0],_0x3e5714=_0x537559[0x1];typeof _0x3e5714=='string'&&(_0x1285b7[_0x43a491]=_0x3e5714[_0x2a965b(0x24b)](/url\(#(.*)\)/,_0x2a965b(0x2ca)[_0x2a965b(0x20c)](_0x5b366[_0x2a965b(0x2bf)],')')));})),_0x1285b7;}function qe(_0x4d137b,_0x47b910){var _0x47c494=_0x5169db,_0x44eb22,_0xc4d6cb=_0x47b910['defIds'];return!_0xc4d6cb||_0xc4d6cb[_0x47c494(0x23e)]===0x0?_0x4d137b:_0x4d137b[_0x47c494(0x2cc)]===_0x47c494(0x2b0)&&(!((_0x44eb22=_0x4d137b['children'])===null||_0x44eb22===void 0x0)&&_0x44eb22[_0x47c494(0x23e)])?f(f({},_0x4d137b),{'children':_0x4d137b[_0x47c494(0x2ec)]['map'](function(_0x450663){var _0x103320=_0x47c494;return typeof _0x450663[_0x103320(0x2fd)]['id']==_0x103320(0x269)&&_0xc4d6cb&&_0xc4d6cb[_0x103320(0x2f8)](_0x450663[_0x103320(0x2fd)]['id'])?f(f({},_0x450663),{'attrs':f(f({},_0x450663[_0x103320(0x2fd)]),{'id':_0x450663[_0x103320(0x2fd)]['id']+_0x47b910[_0x103320(0x2bf)]})}):_0x450663;})}):_0x4d137b;}function Xe(){var _0x5c1ebe=_0x5169db;return Math['random']()[_0x5c1ebe(0x26d)](0x24)[_0x5c1ebe(0x282)](0x2,0x8);}w[_0x5169db(0x1ce)]=_0x5169db(0x288);function _0x23e6(){var _0x463fe3=['DISCONNECTED','mcpConfig.connectionError.networkError','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.clickToConnect','Configuration\x20saved\x20successfully','MCP\x20客户端配置','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.connectionStatus.connecting','FAILED','_initStatusComponent','RETRYING','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','113604iQuIfP','mcpConfig.note2','_apiKey$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.configInstructions','path','univer-text-gray-400','Invalid\x20configuration','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','mcpConfig.configStep3','defs','mcpConfig.apiKeyPlaceholder','Close','colorChannel1','54zrzTWM','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.retrying','M5.21243\x2012.287L11.8791\x205.62036','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_handleConfigSave','entries','Get\x20your\x20API\x20key\x20in\x20seconds','HEADER_MENU','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','idSuffix','get','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','close-small-single','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','OTHERS','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Disconnected','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.configStep1','error','url(#$1','mcpServerUrl','tag','UNAUTHORIZED','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','xlink:href','mcpConfig.save','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcp-ui.config','Click\x20to\x20connect\x20MCP','function','Connected','https://console.univer.plus','NETWORK_ERROR','12IGpdQA','removeItem','MAX_RETRIES_EXCEEDED','3842311dJbbQc','MCP\x20连接失败','0\x200\x2016\x2016','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','mcpConfig.apiKey','assign','registerCommand','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-start\x20univer-gap-3','会话\x20ID\x20已被占用,请稍后再试','extend','_localStorageService','Enable\x20Authentication','round','_registerComponent','_config$','children','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','1141416prpFei','_config','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-items-center\x20univer-gap-3','_initializeCommands','check-mark-icon','subscribe','配置保存失败','配置参数:','includes','MenuIcon','几秒钟内获取您的\x20API\x20密钥','_componentManager','univer-min-w-0\x20univer-flex-1','attrs','svg','_mcpConnectionController','mcpStatus.clickToConfigure','连接失败','配置步骤:','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-sm\x20univer-font-medium','重启您的\x20MCP\x20客户端以使配置生效','https://console.univer.ai','univer-flex-1','mcpConfig.connectionStatus.disconnected','getItem','value','840600cTtROz','indexOf','Configuration\x20Parameters:','MCP\x20Retrying...','_mcpCoreConfig$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.title','API\x20密钥不能为空','mcpConfig.apiApplyInfo.description','getConfig','mcp-config-dialog','url(#on-line-icon_clip0_910_349)','disposeWithMe','__setCustomHeaders','getOwnPropertyDescriptor','univer-space-y-2','url(#off-line-icon_clip0_910_343)','_injector','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','symbol','_dialogService','_validateConfig','_blank','_loadStoredApiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configStep2','<API_KEY>','会话ID','MCP\x20重连中...','MCP:\x20Max\x20Retries\x20Exceeded','none','请输入您的\x20API\x20密钥','SESSION_ID_OCCUPIED','displayName','配置更改将立即生效','Error','white','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-red-500','univer-bg-green-500','API\x20密钥无效,请检查密钥是否正确','MCPConfigPanel','COMMAND','subscribeConfigValue$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','clipPath','点击配置\x20MCP','univer-text-xs\x20univer-text-gray-600','MCP\x20连接中...','univer-mr-2\x20univer-flex\x20univer-text-xl','M5.21243\x205.62036L11.8791\x2012.287','mask','isValid','NONE','95bknvBi','_uiPartsService','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','CheckMarkIcon','getCurrentConfig','CONNECTING','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','warn','mcpConfig.connectionError.sessionOccupied','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.connecting','mcp.apiKey','MCP\x20已断开','mcpConfig.validation.apiKeyRequired','showConfigPanel','mcpStatus.failed','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','未连接','mcpConfig.sessionIdDescription','_initializeMenus','_initAutoConnect','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','77sbRXTD','off-line-icon','has','connectionError$','mcpConfig.apiApplyInfo.getStarted','网络连接错误,请检查您的网络连接','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','use','mcpConfig.validation.invalidConfig','off-line-icon_clip0_910_343','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','setItem','call','权限验证失败,请检查您的\x20API\x20密钥','concat','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','点击连接\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-yellow-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_connectionController','univer-text-xs\x20univer-text-gray-500','close','http://www.w3.org/2000/svg','univer-text-sm\x20univer-text-gray-500','next','带有\x20Bearer\x20前缀的\x20API\x20密钥。','help-single','univer.plus','MCP:\x20Network\x20Error','_menuManagerService','apply','_commandService','getOwnPropertySymbols','univer-bg-red-500','mcp-ui.command.openConfigPanel','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_loading$','OnLineIcon','univer-space-y-5','Configuration\x20Steps:','Authorization:','defIds','current','Max\x20Retries','启用身份验证','MCP\x20Configuration','mcpConfig.connectionStatus.failed','mcpConfig.validation.invalidApiKey','span','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','currentColor','mcpConfig.description','\x20-\x20','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Bearer\x20','onStarting','univer-bg-blue-500','connectionStatus$','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-green-500','8168xczAFr','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','length','MCP_UI_PLUGIN','MCP\x20Connected','univer-flex-shrink-0\x20univer-text-red-500','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','mcpConfig.apiApplyInfo.title','on-line-icon','Saving...','BUTTON','_handleConfigure','prototype','trim','enableAutoConnect','replace','mcpConfig.connectionStatus.connected','MCP\x20Client\x20Configuration','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','1em','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','map','mcpConfig.connectionStatus.retrying','连接中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.validation.apiKeyTooShort','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20配置','API\x20密钥','evenodd','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','apiKey','CONNECTED','sessionId$','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_createConfigPanelComponent','_configService','0\x200\x2017\x2016','show','univer-space-y-3','2283594NgjZjF','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20未授权','univer-flex-shrink-0\x20univer-text-blue-500','javascript:void(0)','string','_initConfigSync','API\x20Key','MCP\x20Disconnected','toString','registerComponent','univer-text-white','className','showDeveloperTools','mergeMenu','配置保存成功','mcpConfig.configParameters','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','超出最大重试次数,请稍后再试','_logService','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20状态未知','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Univer\x20AI\x20控制台','univer.ai','defineProperty','配置\x20MCP\x20使用\x20AI\x20操作电子表格','hasOwnProperty','substring','text','_localeService','mcpStatus.unauthorized','MCP\x20Connecting...','Retrying...','UniverIcon','10HTjHPP','univer-text-gray-500','div','135207jJnCap','MCP:\x20会话\x20ID\x20已被占用','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','fill','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','icon','MCP:\x20Session\x20ID\x20Occupied','_messageService','push','setConfig','mcpConfig.note1','pluginName'];_0x23e6=function(){return _0x463fe3;};return _0x23e6();}var Je={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5169db(0x1cb),'viewBox':_0x5169db(0x2dd),'width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5169db(0x1fa),'fillRule':'evenodd','clipRule':_0x5169db(0x259)}}]},le=_0x4f8dfb(function(_0x5676c5,_0x50499a){var _0x360398=_0x5169db;return _0x47720d(w,Object['assign']({},_0x5676c5,{'id':_0x360398(0x2f4),'ref':_0x50499a,'icon':Je}));});le[_0x5169db(0x1ce)]=_0x5169db(0x1e8);var Qe={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x1e1),'strokeLinecap':'round','strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x2b8),'strokeLinecap':'round','strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.33}}]},ve=_0x4f8dfb(function(_0x15fbdb,_0x11818e){var _0xc218c2=_0x5169db;return _0x47720d(w,Object[_0xc218c2(0x2e0)]({},_0x15fbdb,{'id':_0xc218c2(0x2c2),'ref':_0x11818e,'icon':Qe}));});ve['displayName']='CloseSmallSingle';var en={'tag':'svg','attrs':{'xmlns':_0x5169db(0x215),'fill':_0x5169db(0x1cb),'viewBox':'0\x200\x2016\x2016','width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'path','attrs':{'fill':_0x5169db(0x232),'d':_0x5169db(0x2ed)}},{'tag':_0x5169db(0x2aa),'attrs':{'fill':_0x5169db(0x232),'d':_0x5169db(0x242)}},{'tag':_0x5169db(0x2aa),'attrs':{'fill':'currentColor','d':_0x5169db(0x28e),'fillRule':_0x5169db(0x259),'clipRule':_0x5169db(0x259)}}]},de=_0x4f8dfb(function(_0x2443f9,_0x420de4){var _0x335466=_0x5169db;return _0x47720d(w,Object[_0x335466(0x2e0)]({},_0x2443f9,{'id':_0x335466(0x219),'ref':_0x420de4,'icon':en}));});de[_0x5169db(0x1ce)]='HelpSingle';var nn={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':_0x5169db(0x1cb),'viewBox':'0\x200\x2016\x2016','width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5169db(0x1bc)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x1e7),'strokeLinecap':_0x5169db(0x2e9),'strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5169db(0x1dc),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5169db(0x206)]},fe=_0x4f8dfb(function(_0x1adc2e,_0x250974){var _0x28f6d5=_0x5169db;return _0x47720d(w,Object[_0x28f6d5(0x2e0)]({},_0x1adc2e,{'id':_0x28f6d5(0x1fd),'ref':_0x250974,'icon':nn}));});fe[_0x5169db(0x1ce)]='OffLineIcon';var rn={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':'none','viewBox':_0x5169db(0x261),'width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5169db(0x1b7)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x2be),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5169db(0x1dc),'attrs':{'id':_0x5169db(0x2ad)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'fill':_0x5169db(0x1d1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x4f8dfb(function(_0x4e44f6,_0x525871){var _0x5cac0d=_0x5169db;return _0x47720d(w,Object[_0x5cac0d(0x2e0)]({},_0x4e44f6,{'id':_0x5cac0d(0x244),'ref':_0x525871,'icon':rn}));});ge[_0x5169db(0x1ce)]=_0x5169db(0x225);function tn(_0x2034bb){var _0x5e53c7=_0x5169db,_0x55e754,_0x2cdb05;const {mcpCoreConfig:_0x4872d6,onSave:_0x1fc41a,loading:_0xa5d1ad=!0x1,config:_0x31f1d9,connectionStatus$:_0x37da74,connectionError$:_0x2ddc6a,currentApiKey$:_0x439f7a,currentSessionId$:_0x2cbc6f}=_0x2034bb,_0x19093a=_0x3f5854(_0x4f4718),_0x380a6d=_0x15ca67(_0x37da74,_0x386ed5['DISCONNECTED']),_0x4f10ac=_0x15ca67(_0x2ddc6a,_0x4e873e[_0x5e53c7(0x1e4)]),_0x4a8b09=_0x15ca67(_0x2cbc6f,''),_0x5da30c=_0x15ca67(_0x439f7a,''),[_0x5da614,_0x163e9b]=_0x5d7e5e(_0x5da30c||''),_0x580caf=!0x0,_0x53ba76=_0x31f1d9['showDeveloperTools']&&_0x4872d6['mcpServerUrl']&&(_0x4872d6[_0x5e53c7(0x2cb)][_0x5e53c7(0x2f8)](_0x5e53c7(0x21a))||_0x4872d6['mcpServerUrl'][_0x5e53c7(0x2f8)](_0x5e53c7(0x27e))),_0x595013=(_0x55e754=_0x4872d6[_0x5e53c7(0x2cb)])==null?void 0x0:_0x55e754['includes']('univer.plus'),_0x28776c=(_0x2cdb05=_0x4872d6['mcpServerUrl'])==null?void 0x0:_0x2cdb05['includes'](_0x5e53c7(0x27e)),_0x48a33a=_0x595013?_0x5e53c7(0x2d6):_0x5e53c7(0x1a7),_0x5bc6d3=_0x31f1d9[_0x5e53c7(0x271)]&&(_0x595013||_0x28776c),[_0x233c60,_0x440314]=_0x5d7e5e(!_0x5da614[_0x5e53c7(0x249)]()),_0x82dbaa=(_0x220179,_0x5a3054)=>{var _0x1f64cc=_0x5e53c7;if(_0x5a3054===_0x4e873e['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x220179){case _0x386ed5[_0x1f64cc(0x25c)]:return _0x1f64cc(0x2b5);case _0x386ed5[_0x1f64cc(0x1ea)]:case _0x386ed5[_0x1f64cc(0x2a3)]:return _0x1f64cc(0x291);case _0x386ed5[_0x1f64cc(0x2a1)]:return _0x1f64cc(0x2d1);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x30ea24=(_0x59a506,_0x4a0853)=>{var _0x23bff9=_0x5e53c7;if(_0x4a0853===_0x4e873e[_0x23bff9(0x2cd)])return _0x23bff9(0x220);switch(_0x59a506){case _0x386ed5[_0x23bff9(0x25c)]:return _0x23bff9(0x1d4);case _0x386ed5['CONNECTING']:case _0x386ed5[_0x23bff9(0x2a3)]:return _0x23bff9(0x238);case _0x386ed5['FAILED']:return _0x23bff9(0x220);default:return'univer-bg-gray-500';}},_0x5689eb=_0x2a5368=>{var _0x4b0726=_0x5e53c7;switch(_0x2a5368){case _0x386ed5[_0x4b0726(0x25c)]:return _0x19093a['t'](_0x4b0726(0x24c));case _0x386ed5[_0x4b0726(0x1ea)]:return _0x19093a['t'](_0x4b0726(0x2a0));case _0x386ed5[_0x4b0726(0x2a1)]:return _0x19093a['t'](_0x4b0726(0x22e));case _0x386ed5[_0x4b0726(0x2a3)]:return _0x19093a['t'](_0x4b0726(0x252));default:return _0x19093a['t'](_0x4b0726(0x1a9));}},_0x3c835c=_0x359c01=>{var _0x41f159=_0x5e53c7;switch(_0x359c01){case _0x4e873e['UNAUTHORIZED']:return _0x19093a['t']('mcpConfig.connectionError.unauthorized');case _0x4e873e['SESSION_ID_OCCUPIED']:return _0x19093a['t'](_0x41f159(0x1ed));case _0x4e873e['NETWORK_ERROR']:return _0x19093a['t'](_0x41f159(0x29a));case _0x4e873e[_0x41f159(0x2da)]:return _0x19093a['t'](_0x41f159(0x2c7));default:return'';}},_0x53c8a8=_0x30b2c7(()=>{var _0x4ac83c=_0x5e53c7;const _0x18f307={..._0x4872d6,'apiKey':_0x5da614[_0x4ac83c(0x249)](),'enableAuth':_0x580caf};_0x1fc41a(_0x18f307);},[_0x4872d6,_0x5da614,_0x580caf,_0x1fc41a]),_0x580c31=_0x5da614[_0x5e53c7(0x249)]()['length']>0x0;return _0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2b9),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x5710b0('div',{'className':_0x5e53c7(0x2f2),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x25e),'children':_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x26f),'children':'⚙'})}),_0x575de2(_0x5e53c7(0x28b),{'children':_0x575de2('p',{'className':_0x5e53c7(0x216),'children':_0x19093a['t'](_0x5e53c7(0x233))})})]})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x20d),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x82dbaa(_0x380a6d,_0x4f10ac)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1f5)+_0x30ea24(_0x380a6d,_0x4f10ac)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x1a5),'children':_0x5689eb(_0x380a6d)})]})}),_0x4f10ac!==_0x4e873e[_0x5e53c7(0x1e4)]&&(_0x380a6d===_0x386ed5[_0x5e53c7(0x2a1)]||_0x4f10ac===_0x4e873e[_0x5e53c7(0x2cd)])&&_0x575de2(_0x5e53c7(0x28b),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x23a),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x241),'children':'⚠️'}),_0x575de2('p',{'className':_0x5e53c7(0x1d9),'children':_0x3c835c(_0x4f10ac)})]})})]}),_0x575de2('div',{'className':_0x5e53c7(0x203),'children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x226),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x5710b0('label',{'className':_0x5e53c7(0x25a),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'🔑'}),'\x20',_0x19093a['t'](_0x5e53c7(0x2df)),_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x1d3),'children':'*'}),_0x53ba76&&_0x575de2('a',{'href':'javascript:void(0)','onClick':()=>_0x440314(!0x0),'className':_0x5e53c7(0x2de),'title':_0x19093a['t'](_0x5e53c7(0x243)),'children':_0x575de2(de,{})})]}),_0x575de2(_0x430dc6,{'type':_0x5e53c7(0x283),'placeholder':_0x19093a['t'](_0x5e53c7(0x2b1)),'value':_0x5da614,'onChange':_0x163e9b,'disabled':_0xa5d1ad,'autoComplete':'off'}),_0x575de2('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x19093a['t']('mcpConfig.apiKeyHint')})]}),_0x53ba76&&_0x233c60&&_0x5710b0('div',{'className':_0x5e53c7(0x2ce),'children':[_0x575de2('a',{'href':_0x5e53c7(0x268),'onClick':()=>_0x440314(!0x1),'className':_0x5e53c7(0x207),'title':_0x5e53c7(0x2b2),'children':_0x575de2(ve,{})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2a8),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c3),'children':_0x575de2(_0x5e53c7(0x230),{'className':'univer-text-blue-600','children':'🚀'})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1a8),'children':[_0x575de2('h4',{'className':_0x5e53c7(0x2f0),'children':_0x19093a['t']('mcpConfig.apiApplyInfo.title')}),_0x575de2('p',{'className':_0x5e53c7(0x2e3),'children':_0x19093a['t'](_0x5e53c7(0x1b4))}),_0x575de2(_0x5e53c7(0x28b),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5bc6d3&&_0x5710b0('a',{'href':_0x48a33a,'target':_0x5e53c7(0x1c2),'rel':'noopener\x20noreferrer','className':_0x5e53c7(0x27b),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'🤖'}),_0x19093a['t'](_0x5e53c7(0x2b6)),_0x575de2('span',{'className':_0x5e53c7(0x2ab),'children':'↗'})]})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1b1),'children':['✨','\x20',_0x19093a['t'](_0x5e53c7(0x200))]})]})]})]}),_0x31f1d9[_0x5e53c7(0x271)]&&_0x5710b0('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5710b0('h4',{'className':_0x5e53c7(0x211),'children':[_0x575de2('span',{'children':'🔗'}),'\x20',_0x19093a['t']('mcpConfig.connectionInfo')]}),_0x5710b0(_0x5e53c7(0x28b),{'className':'univer-space-y-4','children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x263),'children':[_0x575de2('p',{'className':_0x5e53c7(0x1de),'children':_0x19093a['t'](_0x5e53c7(0x2a9))}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x254),'children':_0x19093a['t']('mcpConfig.configStepTitle')}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x235),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x202),'children':'1'}),_0x19093a['t'](_0x5e53c7(0x2c8))]}),_0x5710b0('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x575de2(_0x5e53c7(0x230),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x19093a['t'](_0x5e53c7(0x1c6))]}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x202),'children':'3'}),_0x19093a['t'](_0x5e53c7(0x2af))]})]})]})]}),_0x5710b0('div',{'className':_0x5e53c7(0x1bb),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x254),'children':_0x5e53c7(0x22d)}),_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x24e),'children':_0x575de2('pre',{'className':_0x5e53c7(0x29b),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x4a8b09+_0x5e53c7(0x2a4)+(_0x5da614||_0x5e53c7(0x1c7))+_0x5e53c7(0x23d)})})]}),_0x5710b0('div',{'className':'univer-space-y-3','children':[_0x575de2('div',{'className':_0x5e53c7(0x254),'children':_0x19093a['t'](_0x5e53c7(0x274))}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5710b0('div',{'className':_0x5e53c7(0x2fc),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c1),'children':'univer_session_id:'}),_0x575de2('div',{'className':_0x5e53c7(0x213),'children':_0x19093a['t'](_0x5e53c7(0x1f7))})]})]}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2e4),'children':[_0x575de2('div',{'className':_0x5e53c7(0x1c5)}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2fc),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c1),'children':_0x5e53c7(0x228)}),_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x213),'children':_0x19093a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x575de2(_0x3b7201,{'onClick':_0x53c8a8,'disabled':!_0x580c31||_0xa5d1ad,'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':_0xa5d1ad?_0x5710b0(_0x5e53c7(0x230),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'⟲'}),_0x19093a['t']('mcpConfig.saving')]}):_0x5710b0(_0x5e53c7(0x230),{'className':_0x5e53c7(0x265),'children':[_0x575de2(le,{}),_0x19093a['t'](_0x5e53c7(0x2d0))]})}),_0x575de2('div',{'className':_0x5e53c7(0x1eb),'children':_0x5710b0('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x267),'children':'💡'}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x27c),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x5710b0(_0x5e53c7(0x28b),{'children':['•',_0x19093a['t'](_0x5e53c7(0x297))]}),_0x5710b0(_0x5e53c7(0x28b),{'children':['•',_0x19093a['t'](_0x5e53c7(0x2a6))]})]})]})})]})})]});}const x=_0x5169db(0x2d2),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x5169db(0x1ba)],sn=(_0x435d58,_0x25a78c,_0x3cd284,_0x291c37)=>{var _0x48c785=_0x5169db;for(var _0x255b72=_0x291c37>0x1?void 0x0:_0x291c37?on(_0x25a78c,_0x3cd284):_0x25a78c,_0x4d01ae=_0x435d58[_0x48c785(0x23e)]-0x1,_0x5c6ee7;_0x4d01ae>=0x0;_0x4d01ae--)(_0x5c6ee7=_0x435d58[_0x4d01ae])&&(_0x255b72=_0x5c6ee7(_0x255b72)||_0x255b72);return _0x255b72;},g=(_0x3aa3be,_0x3660f7)=>(_0x1ef2d5,_0x421301)=>_0x3660f7(_0x1ef2d5,_0x421301,_0x3aa3be);const j=_0x5169db(0x1f0),U=_0x5169db(0x1b6);let I=class extends _0x3dde06{constructor(_0x59c8b7,_0x3f1158,_0x58e0a6,_0x354a3a,_0x41ef37,_0x65d30c,_0x4c82a0,_0x4c300e,_0x1e20fc,_0x636d79){var _0x40bfa3=_0x5169db;super(),S(this,_0x40bfa3(0x224),new _0x1434d3(!0x1)),S(this,_0x40bfa3(0x1b0),new _0x1434d3({})),S(this,_0x40bfa3(0x2eb),new _0x1434d3({})),S(this,_0x40bfa3(0x2a7),new _0x1434d3('')),S(this,'_handleConfigSave',async _0x43544b=>{var _0x24713f=_0x40bfa3,_0xb57237,_0x20833b;this[_0x24713f(0x224)][_0x24713f(0x217)](!0x0);try{const _0x51465a=await this[_0x24713f(0x1c1)](_0x43544b);if(!_0x51465a[_0x24713f(0x1e3)]){this[_0x24713f(0x294)][_0x24713f(0x262)]({'type':_0x2465ca['Error'],'content':_0x51465a['errorMessage']||this[_0x24713f(0x284)]['t'](_0x24713f(0x205))});return;}_0x43544b[_0x24713f(0x25b)]?await this[_0x24713f(0x2e7)][_0x24713f(0x209)](j,_0x43544b[_0x24713f(0x25b)][_0x24713f(0x249)]()):await this[_0x24713f(0x2e7)][_0x24713f(0x2d9)](j),this[_0x24713f(0x2a7)][_0x24713f(0x217)](((_0xb57237=_0x43544b[_0x24713f(0x25b)])==null?void 0x0:_0xb57237['trim']())||''),this[_0x24713f(0x2ff)][_0x24713f(0x1b9)]({'Authorization':_0x24713f(0x236)+((_0x20833b=_0x43544b[_0x24713f(0x25b)])==null?void 0x0:_0x20833b[_0x24713f(0x249)]())}),this['_messageService'][_0x24713f(0x262)]({'type':_0x2465ca['Success'],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x9ce532=_0x24713f;this[_0x9ce532(0x1c0)][_0x9ce532(0x214)](U);},0x320);}catch(_0x5514f3){this['_logService'][_0x24713f(0x2c9)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x5514f3),this[_0x24713f(0x294)][_0x24713f(0x262)]({'type':_0x2465ca[_0x24713f(0x1d0)],'content':this[_0x24713f(0x284)]['t']('mcpConfig.configError')});}finally{this[_0x24713f(0x224)][_0x24713f(0x217)](!0x1);}}),(this[_0x40bfa3(0x1bd)]=_0x59c8b7,this[_0x40bfa3(0x1e6)]=_0x3f1158,this[_0x40bfa3(0x260)]=_0x58e0a6,this[_0x40bfa3(0x2e7)]=_0x354a3a,this[_0x40bfa3(0x1c0)]=_0x41ef37,this[_0x40bfa3(0x294)]=_0x65d30c,this[_0x40bfa3(0x2fb)]=_0x4c82a0,this[_0x40bfa3(0x284)]=_0x4c300e,this[_0x40bfa3(0x277)]=_0x1e20fc,this['_mcpConnectionController']=_0x636d79,this['_initConfigSync'](),this[_0x40bfa3(0x1c3)](),this[_0x40bfa3(0x2ea)]());}['showConfigPanel'](){var _0x10f61a=_0x5169db;const _0x51975d=this[_0x10f61a(0x260)]['getConfig'](x);_0x51975d!=null&&_0x51975d['showDeveloperTools']&&this[_0x10f61a(0x1c0)]['open']({'id':U,'title':{'title':this[_0x10f61a(0x284)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x29ff54=_0x10f61a;this[_0x29ff54(0x1c0)]['close'](U);}});}[_0x5169db(0x1e9)](){var _0x1e541d=_0x5169db;return this[_0x1e541d(0x1b0)][_0x1e541d(0x1ab)];}[_0x5169db(0x2ea)](){var _0x50c5d8=_0x5169db;this[_0x50c5d8(0x1b8)](this[_0x50c5d8(0x2fb)]['register'](_0x50c5d8(0x1d6),this['_createConfigPanelComponent']()));}[_0x5169db(0x25f)](){var _0x53e0bf=_0x5169db;return _0x23400d(()=>{var _0x24e852=_0x5e17,_0x33dcfc,_0xafd497,_0x26a6f2;return _0x575de2(tn,{'config':this[_0x24e852(0x2eb)][_0x24e852(0x1ab)],'mcpCoreConfig':this[_0x24e852(0x1b0)][_0x24e852(0x1ab)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x24e852(0x2ba)],'loading':this[_0x24e852(0x224)][_0x24e852(0x1ab)],'connectionStatus$':(_0x33dcfc=this['_mcpConnectionController'])==null?void 0x0:_0x33dcfc[_0x24e852(0x239)],'connectionError$':(_0xafd497=this[_0x24e852(0x2ff)])==null?void 0x0:_0xafd497['connectionError$'],'currentSessionId$':(_0x26a6f2=this[_0x24e852(0x2ff)])==null?void 0x0:_0x26a6f2[_0x24e852(0x25d)]});},this[_0x53e0bf(0x1bd)]);}[_0x5169db(0x26a)](){var _0x39c895=_0x5169db;this[_0x39c895(0x1b8)](this[_0x39c895(0x260)][_0x39c895(0x1d8)](_0x457454)[_0x39c895(0x2f5)](_0x1e07fc=>{var _0x13a208=_0x39c895;this[_0x13a208(0x1b0)][_0x13a208(0x217)](_0x1e07fc||{});}));const _0xefd604=this[_0x39c895(0x260)]['getConfig'](_0x457454);this[_0x39c895(0x1b0)][_0x39c895(0x217)](_0xefd604||{}),this[_0x39c895(0x1b8)](this[_0x39c895(0x260)]['subscribeConfigValue$'](x)['subscribe'](_0x5681a0=>{var _0x507ace=_0x39c895;this[_0x507ace(0x2eb)][_0x507ace(0x217)](_0x5681a0||{});}));const _0x300936=this['_configService'][_0x39c895(0x1b5)](x);this[_0x39c895(0x2eb)]['next'](_0x300936||{});}async['_loadStoredApiKey'](){var _0x5e1aaa=_0x5169db;const _0x4360c6=this[_0x5e1aaa(0x260)][_0x5e1aaa(0x1b5)](x);if(!(_0x4360c6!=null&&_0x4360c6[_0x5e1aaa(0x271)]))return;const _0x2c1c5d=await this['_localStorageService'][_0x5e1aaa(0x1aa)](j);_0x2c1c5d&&(this['_mcpConnectionController'][_0x5e1aaa(0x1b9)]({'Authorization':_0x5e1aaa(0x236)+_0x2c1c5d}),this[_0x5e1aaa(0x2a7)]['next'](_0x2c1c5d));}async['_validateConfig'](_0x3a56a8){var _0x5d02b6=_0x5169db;if(!_0x3a56a8[_0x5d02b6(0x25b)]||_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]()[_0x5d02b6(0x23e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x1f2))};if(_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]()[_0x5d02b6(0x23e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x255))};try{const _0xe96621=await this[_0x5d02b6(0x1bd)][_0x5d02b6(0x2c0)](_0x27fb1b)['validateApiKey'](_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]());return _0xe96621[_0x5d02b6(0x1e3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xe96621[_0x5d02b6(0x2c9)]||this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x22f))};}catch(_0x3577cf){return console[_0x5d02b6(0x1ec)](_0x5d02b6(0x1c4),_0x3577cf),{'isValid':!0x0};}}};I=sn([g(0x0,_0x236043(_0x582310)),g(0x1,_0x1711f6),g(0x2,_0x3a4bae),g(0x3,_0x51515e),g(0x4,_0x499b1d),g(0x5,_0xdc7f2d),g(0x6,_0x236043(_0x43e4c3)),g(0x7,_0x236043(_0x4f4718)),g(0x8,_0x36ee80),g(0x9,_0x236043(_0x27fb1b))],I);const V={'id':_0x5169db(0x221),'type':_0x42ca93[_0x5169db(0x1d7)],'handler':async(_0x7ce2be,_0x4904de)=>(_0x7ce2be[_0x5169db(0x2c0)](I)['showConfigPanel'](),!0x0)};function pe(_0x3adf0b,_0x51e863){var _0x5d2210=_0x5169db;switch(_0x3adf0b){case _0x386ed5[_0x5d2210(0x299)]:return'mcpStatus.disconnected';case _0x386ed5[_0x5d2210(0x1ea)]:return _0x5d2210(0x1ef);case _0x386ed5[_0x5d2210(0x25c)]:return'mcpStatus.connected';case _0x386ed5[_0x5d2210(0x2a1)]:switch(_0x51e863){case _0x4e873e[_0x5d2210(0x2cd)]:return _0x5d2210(0x285);case _0x4e873e[_0x5d2210(0x1cd)]:return'mcpStatus.sessionOccupied';case _0x4e873e[_0x5d2210(0x2d7)]:return'mcpStatus.networkError';case _0x4e873e[_0x5d2210(0x2da)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5d2210(0x1f4);}case _0x386ed5[_0x5d2210(0x2a3)]:return _0x5d2210(0x2b7);default:return'mcpStatus.unknown';}}function cn(_0x5d1440,_0x46c065,_0x1245ee,_0x57f7c0=!0x0){var _0x12581e=_0x5169db;const _0x1ed301=pe(_0x5d1440,_0x46c065),_0x5c011e=_0x1245ee['t'](_0x1ed301);return _0x57f7c0?_0x5d1440===_0x386ed5[_0x12581e(0x299)]&&_0x46c065===_0x4e873e[_0x12581e(0x2cd)]?_0x5c011e+_0x12581e(0x234)+_0x1245ee['t'](_0x12581e(0x1a1)):_0x5d1440===_0x386ed5[_0x12581e(0x25c)]?''+_0x5c011e:_0x5d1440===_0x386ed5[_0x12581e(0x299)]||_0x5d1440===_0x386ed5[_0x12581e(0x2a1)]?_0x5c011e+_0x12581e(0x234)+_0x1245ee['t'](_0x12581e(0x29c)):_0x5c011e:_0x5c011e;}function an(_0x2be353){var _0x575cda=_0x5169db;switch(_0x2be353){case _0x386ed5[_0x575cda(0x25c)]:return _0x575cda(0x23b);case _0x386ed5['CONNECTING']:case _0x386ed5[_0x575cda(0x2a3)]:return _0x575cda(0x210);case _0x386ed5['FAILED']:case _0x386ed5['DISCONNECTED']:return'univer-text-red-500';default:return _0x575cda(0x28a);}}function un(_0x56e197){var _0x43cc13=_0x5169db;const {status$:_0x3330c4,error$:_0x491d84,onConfigure:_0x3d3920,showClickable:_0x43a7e7=!0x0}=_0x56e197,_0x1da5ab=_0x15ca67(_0x3330c4,_0x386ed5[_0x43cc13(0x299)]),_0x5770c3=_0x15ca67(_0x491d84,_0x4e873e[_0x43cc13(0x1e4)]),_0x554d91=_0x3f5854(_0x4f4718),_0x4596f6=_0x1da5ab===_0x386ed5[_0x43cc13(0x25c)];_0x1da5ab===_0x386ed5[_0x43cc13(0x1ea)]||_0x386ed5[_0x43cc13(0x2a3)];const _0x3b7c41=_0x554d91['t'](pe(_0x1da5ab,_0x5770c3)),_0x3a2910=cn(_0x1da5ab,_0x5770c3,_0x554d91,_0x43a7e7),_0x2ee5fa=an(_0x1da5ab),_0x53f942=_0x4596f6?_0x575de2(ge,{}):_0x575de2(fe,{}),_0x31616a=_0x30b2c7(()=>{_0x43a7e7&&_0x3d3920&&_0x3d3920();},[_0x43a7e7,_0x3d3920]);function _0x40d69d(){var _0x5db606=_0x43cc13;return _0x5710b0(_0x5db606(0x28b),{'className':_0x3a7b1a('univer-flex\x20univer-items-center',_0x43a7e7&&_0x3d3920&&'\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'),'onClick':_0x43a7e7&&_0x3d3920?_0x31616a:void 0x0,'children':[_0x575de2(_0x5db606(0x28b),{'className':_0x3a7b1a(_0x5db606(0x1e0),_0x2ee5fa),'children':_0x53f942}),_0x575de2(_0x5db606(0x28b),{'className':_0x5db606(0x29f),'children':_0x3b7c41})]});}return _0x575de2(_0x7daf80,{'title':_0x3a2910,'placement':'bottom','children':_0x40d69d()});}function _0x5e17(_0x482276,_0x23752d){var _0x23e62f=_0x23e6();return _0x5e17=function(_0x5e17ff,_0x4cf208){_0x5e17ff=_0x5e17ff-0x1a1;var _0x3458fc=_0x23e62f[_0x5e17ff];return _0x3458fc;},_0x5e17(_0x482276,_0x23752d);}var ln=Object[_0x5169db(0x1ba)],vn=(_0x2e8f00,_0x4555bc,_0x6a5504,_0x4fd7ec)=>{var _0xeef6de=_0x5169db;for(var _0x472f90=_0x4fd7ec>0x1?void 0x0:_0x4fd7ec?ln(_0x4555bc,_0x6a5504):_0x4555bc,_0x5106d4=_0x2e8f00[_0xeef6de(0x23e)]-0x1,_0x5124aa;_0x5106d4>=0x0;_0x5106d4--)(_0x5124aa=_0x2e8f00[_0x5106d4])&&(_0x472f90=_0x5124aa(_0x472f90)||_0x472f90);return _0x472f90;},A=(_0xe791b7,_0x176406)=>(_0x4233f7,_0x5ea39f)=>_0x176406(_0x4233f7,_0x5ea39f,_0xe791b7);let O=class extends _0x3dde06{constructor(_0x3af008,_0xed81a5,_0x13c1d4,_0x3f6322){var _0x238816=_0x5169db;super(),this[_0x238816(0x1bd)]=_0x3af008,this[_0x238816(0x212)]=_0xed81a5,this[_0x238816(0x1e6)]=_0x13c1d4,this[_0x238816(0x260)]=_0x3f6322,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x5169db(0x1f9)](){var _0x3f16ee=_0x5169db;const _0xf02e32=this[_0x3f16ee(0x260)][_0x3f16ee(0x1b5)](x);_0xf02e32!=null&&_0xf02e32['showDeveloperTools']&&(this['_connectionController'][_0x3f16ee(0x24a)]=!0x1);}[_0x5169db(0x2a2)](){var _0x47c5d6=_0x5169db;const _0x363124=this[_0x47c5d6(0x260)][_0x47c5d6(0x1b5)](x);(_0x363124==null?void 0x0:_0x363124['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x47c5d6(0x26e)](_0x906c3b[_0x47c5d6(0x2bd)],()=>{var _0x58d7ba=_0x47c5d6,_0x2b5aa1;return _0x23400d(dn({'status$':this[_0x58d7ba(0x212)][_0x58d7ba(0x239)],'error$':this['_connectionController'][_0x58d7ba(0x1ff)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x2b5aa1=_0x363124==null?void 0x0:_0x363124[_0x58d7ba(0x271)])!=null?_0x2b5aa1:!0x1}),this[_0x58d7ba(0x1bd)]);}));}[_0x5169db(0x247)](){var _0x332aec=_0x5169db;this[_0x332aec(0x1bd)]['get'](I)[_0x332aec(0x1f3)]();}};O=vn([A(0x0,_0x236043(_0x582310)),A(0x1,_0x236043(_0x27fb1b)),A(0x2,_0x1711f6),A(0x3,_0x3a4bae)],O);function dn(_0x19e388){const {status$:_0x26f485,error$:_0x216c85,onConfigure:_0x319cf9,showClickable:_0x30e02a}=_0x19e388;return function(){return _0x575de2(un,{'status$':_0x26f485,'error$':_0x216c85,'onConfigure':_0x319cf9,'showClickable':_0x30e02a});};}function fn(_0x3180d4){var _0x47e93f=_0x5169db;return{'id':V['id'],'type':_0x515621[_0x47e93f(0x246)],'icon':_0x47e93f(0x2f9),'title':_0x47e93f(0x1b2),'tooltip':_0x47e93f(0x1b2)};}const gn={[_0x173307[_0x5169db(0x2c4)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x5169db(0x1ba)],hn=(_0x32b437,_0x3ccaf8,_0x22bd04,_0xa0e8e5)=>{var _0x5c0ab8=_0x5169db;for(var _0x473660=_0xa0e8e5>0x1?void 0x0:_0xa0e8e5?pn(_0x3ccaf8,_0x22bd04):_0x3ccaf8,_0x17a91c=_0x32b437[_0x5c0ab8(0x23e)]-0x1,_0xd6520e;_0x17a91c>=0x0;_0x17a91c--)(_0xd6520e=_0x32b437[_0x17a91c])&&(_0x473660=_0xd6520e(_0x473660)||_0x473660);return _0x473660;},te=(_0x2cb64d,_0x298314)=>(_0xf9ad2a,_0x3e29a5)=>_0x298314(_0xf9ad2a,_0x3e29a5,_0x2cb64d);let k=class extends _0x3dde06{constructor(_0x1b8e64,_0x1f3498){var _0x112c97=_0x5169db;super(),this['_commandService']=_0x1b8e64,this[_0x112c97(0x21c)]=_0x1f3498,this['_initializeCommands'](),this[_0x112c97(0x1f8)]();}[_0x5169db(0x2f3)](){[V]['forEach'](_0x51fb7a=>{var _0x2b10b5=_0x5e17;this[_0x2b10b5(0x1b8)](this[_0x2b10b5(0x21e)][_0x2b10b5(0x2e1)](_0x51fb7a));});}[_0x5169db(0x1f8)](){var _0x1948e3=_0x5169db;this['_menuManagerService'][_0x1948e3(0x272)](gn);}};k=hn([te(0x0,_0x39e99e),te(0x1,_0x5a4a7b)],k);const On={'mcpStatus':{'disconnected':_0x5169db(0x26c),'connecting':_0x5169db(0x286),'connected':_0x5169db(0x240),'failed':_0x5169db(0x1db),'retrying':_0x5169db(0x1af),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5169db(0x293),'networkError':_0x5169db(0x21b),'maxRetriesExceeded':_0x5169db(0x1ca),'clickToConnect':_0x5169db(0x2d3),'clickToConfigure':_0x5169db(0x1da)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5169db(0x250),'apiKey':_0x5169db(0x26b),'apiKeyPlaceholder':_0x5169db(0x2ae),'apiKeyHint':_0x5169db(0x256),'enableAuth':_0x5169db(0x2e8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5169db(0x24d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5169db(0x20f),'configStepTitle':_0x5169db(0x227),'configStep1':_0x5169db(0x2f1),'configStep2':_0x5169db(0x223),'configStep3':_0x5169db(0x231),'sessionId':'Session\x20ID','sessionIdDescription':_0x5169db(0x290),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5169db(0x1ae),'maxRetries':_0x5169db(0x22b),'save':'Save\x20Configuration','saving':_0x5169db(0x245),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5169db(0x29d),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5169db(0x2e2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5169db(0x2bc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5169db(0x222),'invalidConfig':_0x5169db(0x2ac),'invalidApiKey':_0x5169db(0x275)},'connectionStatus':{'disconnected':_0x5169db(0x2c6),'connecting':'Connecting...','connected':_0x5169db(0x2d5),'failed':'Connection\x20Failed','retrying':_0x5169db(0x287)},'connectionError':{'unauthorized':_0x5169db(0x1fb),'sessionOccupied':_0x5169db(0x1be),'networkError':_0x5169db(0x208),'maxRetriesExceeded':_0x5169db(0x1d2)}}},kn={'mcpStatus':{'disconnected':_0x5169db(0x1f1),'connecting':_0x5169db(0x1df),'connected':'MCP\x20已连接','failed':_0x5169db(0x2dc),'retrying':_0x5169db(0x1c9),'unknown':_0x5169db(0x27a),'unauthorized':_0x5169db(0x266),'sessionOccupied':_0x5169db(0x28d),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5169db(0x20e),'clickToConfigure':_0x5169db(0x1dd)},'mcpConfig':{'title':_0x5169db(0x257),'description':_0x5169db(0x280),'apiKey':_0x5169db(0x258),'apiKeyPlaceholder':_0x5169db(0x1cc),'apiKeyHint':_0x5169db(0x1a4),'enableAuth':_0x5169db(0x22c),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5169db(0x29e),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5169db(0x1a3),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5169db(0x1a6),'sessionId':_0x5169db(0x1c8),'sessionIdDescription':_0x5169db(0x278),'authorizationDescription':_0x5169db(0x218),'configParameters':_0x5169db(0x2f7),'maxRetries':'最大重试次数','save':'保存配置','saving':'保存中...','note1':_0x5169db(0x1cf),'note2':_0x5169db(0x279),'configSaved':_0x5169db(0x273),'configError':_0x5169db(0x2f6),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5169db(0x2c5),'univerAiLabel':_0x5169db(0x27d),'getStarted':_0x5169db(0x2fa)},'validation':{'apiKeyRequired':_0x5169db(0x1b3),'apiKeyTooShort':_0x5169db(0x1ee),'invalidConfig':'配置无效','invalidApiKey':_0x5169db(0x1d5)},'connectionStatus':{'disconnected':_0x5169db(0x1f6),'connecting':_0x5169db(0x253),'connected':'已连接','failed':_0x5169db(0x1a2),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x5169db(0x20b),'sessionOccupied':_0x5169db(0x2e5),'networkError':_0x5169db(0x201),'maxRetriesExceeded':_0x5169db(0x276)}}};var mn=Object[_0x5169db(0x27f)],Cn=Object[_0x5169db(0x1ba)],yn=(_0x200bd4,_0x3643d9,_0x5e7674)=>_0x3643d9 in _0x200bd4?mn(_0x200bd4,_0x3643d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e7674}):_0x200bd4[_0x3643d9]=_0x5e7674,_n=(_0x3aca8d,_0x2f3ec4,_0x1a0d27,_0x75ddf4)=>{var _0x190770=_0x5169db;for(var _0x38dbc7=_0x75ddf4>0x1?void 0x0:_0x75ddf4?Cn(_0x2f3ec4,_0x1a0d27):_0x2f3ec4,_0x3ce2f1=_0x3aca8d[_0x190770(0x23e)]-0x1,_0x1f9239;_0x3ce2f1>=0x0;_0x3ce2f1--)(_0x1f9239=_0x3aca8d[_0x3ce2f1])&&(_0x38dbc7=_0x1f9239(_0x38dbc7)||_0x38dbc7);return _0x38dbc7;},E=(_0x3871dd,_0x3795c5)=>(_0x5c6f3d,_0x3b5a4c)=>_0x3795c5(_0x5c6f3d,_0x3b5a4c,_0x3871dd),xn=(_0xa2d268,_0x33969b,_0x38e68f)=>yn(_0xa2d268,_0x33969b+'',_0x38e68f);let L=class extends _0x304d6d{constructor(_0x360f24=re,_0x4a9410,_0x2a4b03,_0x23739b,_0x4981bc,_0x23e69e){var _0x13d868=_0x5169db;super(),this[_0x13d868(0x2ef)]=_0x360f24,this['_injector']=_0x4a9410,this[_0x13d868(0x260)]=_0x2a4b03,this['_uiPartsService']=_0x23739b,this['_localStorageService']=_0x4981bc,this[_0x13d868(0x284)]=_0x23e69e;const {..._0x1323a2}=_0x1ce813({},re,this['_config']);this[_0x13d868(0x260)][_0x13d868(0x296)](x,_0x1323a2);}async[_0x5169db(0x237)](){var _0x2d83d0=_0x5169db;const _0x3a555a=[[O],[I],[k]];this[_0x2d83d0(0x1bd)][_0x2d83d0(0x1fe)](_0x4a4ff2)||_0x3a555a[_0x2d83d0(0x295)]([_0x4a4ff2,{'useClass':_0x1f9c88}]),_0x3a555a['forEach'](_0x32d30c=>this[_0x2d83d0(0x1bd)]['add'](_0x32d30c)),this[_0x2d83d0(0x1bd)][_0x2d83d0(0x2c0)](O),this[_0x2d83d0(0x1bd)][_0x2d83d0(0x2c0)](I),this[_0x2d83d0(0x1bd)]['get'](k);}};xn(L,_0x5169db(0x298),_0x5169db(0x23f)),L=_n([_0x37ecd6(_0x20d2ba),E(0x1,_0x236043(_0x582310)),E(0x2,_0x3a4bae),E(0x3,_0x1711f6),E(0x4,_0x51515e),E(0x5,_0x236043(_0x4f4718))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- function _0x3bd1(_0x2ec5d9,_0x38524e){const _0x1e9824=_0x1e98();return _0x3bd1=function(_0x3bd1fa,_0x43eb96){_0x3bd1fa=_0x3bd1fa-0x1e4;let _0x15f480=_0x1e9824[_0x3bd1fa];return _0x15f480;},_0x3bd1(_0x2ec5d9,_0x38524e);}const _0x38ea03=_0x3bd1;(function(_0x341a06,_0x4dcdfe){const _0x4b812f=_0x3bd1,_0x163078=_0x341a06();while(!![]){try{const _0x1ca35c=-parseInt(_0x4b812f(0x1f5))/0x1+-parseInt(_0x4b812f(0x213))/0x2*(-parseInt(_0x4b812f(0x1fb))/0x3)+parseInt(_0x4b812f(0x1ea))/0x4*(-parseInt(_0x4b812f(0x1e7))/0x5)+parseInt(_0x4b812f(0x202))/0x6*(-parseInt(_0x4b812f(0x1f4))/0x7)+parseInt(_0x4b812f(0x1ee))/0x8+parseInt(_0x4b812f(0x20a))/0x9+-parseInt(_0x4b812f(0x20d))/0xa*(-parseInt(_0x4b812f(0x1ed))/0xb);if(_0x1ca35c===_0x4dcdfe)break;else _0x163078['push'](_0x163078['shift']());}catch(_0x456faf){_0x163078['push'](_0x163078['shift']());}}}(_0x1e98,0x67969));function _0x1e98(){const _0x2a218d=['Invalid\x20configuration','211189wstuiE','4319440sgzcmk','Configuration\x20saved\x20successfully','Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enter\x20your\x20API\x20key','MCP:\x20API\x20Key\x20Missing','28PGpJyA','654708YzWkpD','Session\x20ID','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Connection\x20Failed','11037srMmcs','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connecting...','Saving...','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','106584VEDGDO','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','6591051wFtCUZ','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','70pRopsZ','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Enable\x20Authentication','Click\x20to\x20connect\x20MCP','118xHhBPo','Disconnected','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','7355bzcvcL','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1288OrwERJ','MCP:\x20Invalid\x20API\x20Key'];_0x1e98=function(){return _0x2a218d;};return _0x1e98();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x38ea03(0x1fd),'connected':'MCP\x20Connected','failed':_0x38ea03(0x215),'retrying':'MCP\x20Retrying...','unknown':_0x38ea03(0x210),'missingApiKey':_0x38ea03(0x1f3),'invalidApiKey':_0x38ea03(0x1eb),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x38ea03(0x1f7),'maxRetriesExceeded':_0x38ea03(0x1e8),'clickToConnect':_0x38ea03(0x212),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x38ea03(0x208),'apiKey':_0x38ea03(0x203),'apiKeyPlaceholder':_0x38ea03(0x1f2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x38ea03(0x211),'enableAuthHint':_0x38ea03(0x20c),'connectionInfo':_0x38ea03(0x1f9),'mcpClientConfig':_0x38ea03(0x1f9),'configInstructions':_0x38ea03(0x20f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x38ea03(0x1e5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x38ea03(0x204),'sessionId':_0x38ea03(0x1f6),'sessionIdDescription':_0x38ea03(0x1e4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x38ea03(0x1ff),'maxRetries':_0x38ea03(0x20e),'save':'Save\x20Configuration','saving':_0x38ea03(0x1fe),'note1':_0x38ea03(0x206),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x38ea03(0x1ef),'configError':_0x38ea03(0x209),'apiApplyInfo':{'title':_0x38ea03(0x200),'description':_0x38ea03(0x1fc),'univerAiLabel':_0x38ea03(0x1f8),'getStarted':_0x38ea03(0x207)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x38ea03(0x1f1),'invalidConfig':_0x38ea03(0x1ec),'invalidApiKey':_0x38ea03(0x201)},'connectionStatus':{'disconnected':_0x38ea03(0x214),'connecting':'Connecting...','connected':_0x38ea03(0x1f0),'failed':_0x38ea03(0x1fa),'retrying':_0x38ea03(0x20b)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x38ea03(0x205),'sessionOccupied':_0x38ea03(0x1e6),'networkError':_0x38ea03(0x1e9),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ const _0x59d452=_0x416f;(function(_0x57bb17,_0x208462){const _0x35b350=_0x416f,_0x3eb2fa=_0x57bb17();while(!![]){try{const _0x1cb82b=-parseInt(_0x35b350(0x194))/0x1+-parseInt(_0x35b350(0x192))/0x2+parseInt(_0x35b350(0x16f))/0x3+parseInt(_0x35b350(0x17a))/0x4*(-parseInt(_0x35b350(0x17c))/0x5)+parseInt(_0x35b350(0x182))/0x6*(-parseInt(_0x35b350(0x197))/0x7)+parseInt(_0x35b350(0x18b))/0x8+parseInt(_0x35b350(0x187))/0x9*(-parseInt(_0x35b350(0x198))/0xa);if(_0x1cb82b===_0x208462)break;else _0x3eb2fa['push'](_0x3eb2fa['shift']());}catch(_0xf8a97f){_0x3eb2fa['push'](_0x3eb2fa['shift']());}}}(_0x2e24,0xe52dc));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x59d452(0x190),'connected':_0x59d452(0x183),'failed':_0x59d452(0x188),'retrying':'MCP\x20Retrying...','unknown':_0x59d452(0x184),'unauthorized':_0x59d452(0x17e),'sessionOccupied':_0x59d452(0x172),'networkError':_0x59d452(0x19d),'maxRetriesExceeded':_0x59d452(0x195),'clickToConnect':_0x59d452(0x178),'clickToConfigure':_0x59d452(0x18a)},'mcpConfig':{'title':_0x59d452(0x179),'description':_0x59d452(0x186),'apiKey':_0x59d452(0x199),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59d452(0x196),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x59d452(0x177),'connectionInfo':_0x59d452(0x19b),'mcpClientConfig':_0x59d452(0x19b),'configInstructions':_0x59d452(0x193),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x59d452(0x191),'configStep2':_0x59d452(0x173),'configStep3':_0x59d452(0x185),'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':_0x59d452(0x17b),'configParameters':_0x59d452(0x16e),'maxRetries':_0x59d452(0x180),'save':_0x59d452(0x19c),'saving':'Saving...','note1':_0x59d452(0x175),'note2':_0x59d452(0x174),'configSaved':_0x59d452(0x17d),'configError':_0x59d452(0x181),'apiApplyInfo':{'title':_0x59d452(0x19a),'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':_0x59d452(0x170),'getStarted':_0x59d452(0x18f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x59d452(0x189),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x59d452(0x171),'connecting':_0x59d452(0x17f),'connected':_0x59d452(0x18e),'failed':_0x59d452(0x18d),'retrying':_0x59d452(0x18c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x59d452(0x176),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x416f(_0x4d0da5,_0x23b775){const _0x2e246b=_0x2e24();return _0x416f=function(_0x416fe1,_0x1530ef){_0x416fe1=_0x416fe1-0x16e;let _0x11c0e0=_0x2e246b[_0x416fe1];return _0x11c0e0;},_0x416f(_0x4d0da5,_0x23b775);}export{n as default};function _0x2e24(){const _0x27b332=['MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','9WNTsFG','MCP\x20Connection\x20Failed','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','13780248UWnPNM','Retrying...','Connection\x20Failed','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','2085056cENSnw','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','137061CgvReb','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','7cgVsmt','11437120EjADvI','API\x20Key','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Save\x20Configuration','MCP:\x20Network\x20Error','Configuration\x20Parameters:','5449227EckfPr','Univer\x20AI\x20Console','Disconnected','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','118412EotGnM','API\x20key\x20with\x20Bearer\x20prefix.','10tXBzjf','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','Connecting...','Max\x20Retries','Failed\x20to\x20save\x20configuration','1306302DXWYpV','MCP\x20Connected'];_0x2e24=function(){return _0x27b332;};return _0x2e24();}