@univerjs-pro/mcp-ui 0.10.7 → 0.10.8-nightly.202509200616

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.css +1 -1
  24. package/lib/index.js +1 -1
  25. package/lib/locale/ca-ES.js +1 -1
  26. package/lib/locale/en-US.js +1 -1
  27. package/lib/locale/es-ES.js +1 -1
  28. package/lib/locale/fa-IR.js +1 -1
  29. package/lib/locale/fr-FR.js +1 -1
  30. package/lib/locale/ko-KR.js +1 -1
  31. package/lib/locale/ru-RU.js +1 -1
  32. package/lib/locale/vi-VN.js +1 -1
  33. package/lib/locale/zh-CN.js +1 -1
  34. package/lib/locale/zh-TW.js +1 -1
  35. package/lib/types/controllers/mcp-config-ui.controller.d.ts +1 -0
  36. package/lib/types/locale/en-US.d.ts +9 -1
  37. package/lib/types/locale/zh-CN.d.ts +9 -1
  38. package/lib/types/views/components/mcp-config.d.ts +7 -1
  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 -7
@@ -1 +1 @@
1
- 'use strict';function _0x52c1(){const _0x146d86=['5413919YDWgUJ','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','359129SnBvYW','392300nmsjfi','Saving...','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','2032230GagodO','Disconnected','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','638352pTYSpL','Retrying...','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','8JZWTQU','MCP:\x20Session\x20Occupied','Invalid\x20configuration','Server\x20Endpoint','1348678naAdtP','18726606rQjqgk','MCP\x20Connection\x20Failed','4dYgBfY','Connection\x20Information','API\x20Key','Save\x20Configuration','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','MCP\x20Retrying...','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required\x20to\x20connect','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console'];_0x52c1=function(){return _0x146d86;};return _0x52c1();}function _0x4e18(_0x8b1f22,_0x1cb35c){const _0x52c12d=_0x52c1();return _0x4e18=function(_0x4e1821,_0xed53f6){_0x4e1821=_0x4e1821-0x13e;let _0x1ea1f5=_0x52c12d[_0x4e1821];return _0x1ea1f5;},_0x4e18(_0x8b1f22,_0x1cb35c);}const _0x422f27=_0x4e18;(function(_0x4e91f4,_0x1f3750){const _0x5eaaa2=_0x4e18,_0x5e9faa=_0x4e91f4();while(!![]){try{const _0x137b5a=parseInt(_0x5eaaa2(0x151))/0x1+parseInt(_0x5eaaa2(0x162))/0x2+parseInt(_0x5eaaa2(0x157))/0x3*(parseInt(_0x5eaaa2(0x165))/0x4)+-parseInt(_0x5eaaa2(0x152))/0x5+parseInt(_0x5eaaa2(0x15a))/0x6+parseInt(_0x5eaaa2(0x14d))/0x7*(parseInt(_0x5eaaa2(0x15e))/0x8)+-parseInt(_0x5eaaa2(0x163))/0x9;if(_0x137b5a===_0x1f3750)break;else _0x5e9faa['push'](_0x5e9faa['shift']());}catch(_0x2d1fac){_0x5e9faa['push'](_0x5e9faa['shift']());}}}(_0x52c1,0x69585));const e={'mcpStatus':{'disconnected':_0x422f27(0x156),'connecting':_0x422f27(0x144),'connected':_0x422f27(0x150),'failed':_0x422f27(0x164),'retrying':_0x422f27(0x145),'unknown':_0x422f27(0x14e),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x422f27(0x15f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x422f27(0x13e),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x422f27(0x148),'enableAuthHint':_0x422f27(0x143),'connectionInfo':_0x422f27(0x166),'serverEndpoint':_0x422f27(0x161),'sessionId':_0x422f27(0x14a),'maxRetries':'Max\x20Retries','save':_0x422f27(0x13f),'saving':_0x422f27(0x153),'note1':_0x422f27(0x141),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x422f27(0x146),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x422f27(0x140),'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':_0x422f27(0x14c),'getStarted':_0x422f27(0x155)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x422f27(0x14f),'invalidConfig':_0x422f27(0x160),'invalidApiKey':_0x422f27(0x149)},'connectionStatus':{'disconnected':_0x422f27(0x158),'connecting':'Connecting...','connected':_0x422f27(0x142),'failed':_0x422f27(0x154),'retrying':_0x422f27(0x15b)},'connectionError':{'missingApiKey':_0x422f27(0x147),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x422f27(0x159),'networkError':_0x422f27(0x15d),'maxRetriesExceeded':_0x422f27(0x14b)}}},n=e;module[_0x422f27(0x15c)]=n;
1
+ 'use strict';const _0x50495c=_0x41da;function _0x41da(_0x300282,_0x1d875f){const _0x3582f9=_0x3582();return _0x41da=function(_0x41da98,_0x44957d){_0x41da98=_0x41da98-0x11b;let _0x5e879e=_0x3582f9[_0x41da98];return _0x5e879e;},_0x41da(_0x300282,_0x1d875f);}(function(_0x11d238,_0xed4856){const _0xc60fe1=_0x41da,_0x16b061=_0x11d238();while(!![]){try{const _0x280ab4=-parseInt(_0xc60fe1(0x145))/0x1+-parseInt(_0xc60fe1(0x13e))/0x2*(parseInt(_0xc60fe1(0x133))/0x3)+-parseInt(_0xc60fe1(0x135))/0x4+parseInt(_0xc60fe1(0x121))/0x5+parseInt(_0xc60fe1(0x12c))/0x6*(-parseInt(_0xc60fe1(0x129))/0x7)+-parseInt(_0xc60fe1(0x139))/0x8+parseInt(_0xc60fe1(0x124))/0x9*(parseInt(_0xc60fe1(0x12a))/0xa);if(_0x280ab4===_0xed4856)break;else _0x16b061['push'](_0x16b061['shift']());}catch(_0x751ac9){_0x16b061['push'](_0x16b061['shift']());}}}(_0x3582,0xe76a2));const e={'mcpStatus':{'disconnected':_0x50495c(0x14c),'connecting':_0x50495c(0x14e),'connected':_0x50495c(0x143),'failed':_0x50495c(0x12b),'retrying':_0x50495c(0x125),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x50495c(0x142),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x50495c(0x136),'maxRetriesExceeded':_0x50495c(0x128),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x50495c(0x13b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x50495c(0x11f),'apiKey':_0x50495c(0x12e),'apiKeyPlaceholder':_0x50495c(0x131),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x50495c(0x123),'enableAuthHint':_0x50495c(0x11c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x50495c(0x11d),'configInstructions':_0x50495c(0x141),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x50495c(0x13c),'configStep2':_0x50495c(0x146),'configStep3':_0x50495c(0x149),'sessionId':_0x50495c(0x132),'sessionIdDescription':_0x50495c(0x12d),'authorizationDescription':_0x50495c(0x13d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x50495c(0x11b),'save':_0x50495c(0x126),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x50495c(0x144),'configSaved':_0x50495c(0x147),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x50495c(0x13f),'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':_0x50495c(0x120),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x50495c(0x13a),'apiKeyTooShort':_0x50495c(0x14b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x50495c(0x140)},'connectionStatus':{'disconnected':_0x50495c(0x122),'connecting':_0x50495c(0x127),'connected':_0x50495c(0x148),'failed':_0x50495c(0x137),'retrying':_0x50495c(0x12f)},'connectionError':{'missingApiKey':_0x50495c(0x14d),'invalidApiKey':_0x50495c(0x14a),'sessionOccupied':_0x50495c(0x11e),'networkError':_0x50495c(0x134),'maxRetriesExceeded':_0x50495c(0x138)}}},n=e;function _0x3582(){const _0x113ee6=['Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','426888TUygMv','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','86488fmqeuM','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Invalid\x20API\x20Key','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1679233gYMCAM','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Connecting...','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','2377005NxJPeP','Disconnected','Enable\x20Authentication','50332635pPjHRA','MCP\x20Retrying...','Save\x20Configuration','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','3393271RRxVvj','10vsGTgO','MCP\x20Connection\x20Failed','6VfqziI','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key','Retrying...','exports','Enter\x20your\x20API\x20key','Session\x20ID','111ksExXs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5210668jOtTtX','MCP:\x20Network\x20Error'];_0x3582=function(){return _0x113ee6;};return _0x3582();}module[_0x50495c(0x130)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x8f8eaf=_0x39f2;(function(_0x9a10c4,_0x48ec18){const _0x536447=_0x39f2,_0x282c44=_0x9a10c4();while(!![]){try{const _0x17875d=-parseInt(_0x536447(0x215))/0x1*(parseInt(_0x536447(0x1ea))/0x2)+parseInt(_0x536447(0x1eb))/0x3*(-parseInt(_0x536447(0x203))/0x4)+-parseInt(_0x536447(0x209))/0x5*(-parseInt(_0x536447(0x20c))/0x6)+parseInt(_0x536447(0x201))/0x7*(-parseInt(_0x536447(0x1f6))/0x8)+parseInt(_0x536447(0x1f0))/0x9*(-parseInt(_0x536447(0x1ed))/0xa)+-parseInt(_0x536447(0x1ff))/0xb*(-parseInt(_0x536447(0x205))/0xc)+parseInt(_0x536447(0x202))/0xd;if(_0x17875d===_0x48ec18)break;else _0x282c44['push'](_0x282c44['shift']());}catch(_0x3e051c){_0x282c44['push'](_0x282c44['shift']());}}}(_0x2c59,0xed91d));const e={'mcpStatus':{'disconnected':_0x8f8eaf(0x20b),'connecting':_0x8f8eaf(0x1f5),'connected':_0x8f8eaf(0x214),'failed':_0x8f8eaf(0x1e9),'retrying':_0x8f8eaf(0x1ef),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x8f8eaf(0x1fb),'networkError':_0x8f8eaf(0x216),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x8f8eaf(0x210)},'mcpConfig':{'title':_0x8f8eaf(0x1ec),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x8f8eaf(0x211),'apiKeyPlaceholder':_0x8f8eaf(0x213),'apiKeyHint':_0x8f8eaf(0x1fe),'enableAuth':_0x8f8eaf(0x1f3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x8f8eaf(0x20f),'serverEndpoint':_0x8f8eaf(0x217),'sessionId':_0x8f8eaf(0x1f7),'maxRetries':_0x8f8eaf(0x1ee),'save':_0x8f8eaf(0x212),'saving':_0x8f8eaf(0x1e8),'note1':_0x8f8eaf(0x1f9),'note2':_0x8f8eaf(0x20a),'configSaved':_0x8f8eaf(0x1f1),'configError':_0x8f8eaf(0x208),'apiApplyInfo':{'title':_0x8f8eaf(0x206),'description':_0x8f8eaf(0x20d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x8f8eaf(0x1fa)},'validation':{'apiKeyRequired':_0x8f8eaf(0x1f2),'apiKeyTooShort':_0x8f8eaf(0x20e),'invalidConfig':_0x8f8eaf(0x1fd),'invalidApiKey':_0x8f8eaf(0x1fc)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x8f8eaf(0x204),'retrying':_0x8f8eaf(0x207)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x8f8eaf(0x1f8),'maxRetriesExceeded':_0x8f8eaf(0x200)}}},n=e;function _0x2c59(){const _0x5702bb=['API\x20Key','Save\x20Configuration','Enter\x20your\x20API\x20key','MCP\x20Connected','2393HnXPCz','MCP:\x20Network\x20Error','Server\x20Endpoint','Saving...','MCP\x20Connection\x20Failed','944BRPrPK','1377jvOgah','MCP\x20Configuration','26660wNYDrS','Max\x20Retries','MCP\x20Retrying...','3483XkAolk','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','Enable\x20Authentication','exports','MCP\x20Connecting...','223824dQrVWc','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','407WjWEky','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','399gfxjDd','29744013OQmMLS','1672zyxqds','Connection\x20Failed','618708sBTNAx','What\x20is\x20API\x20Key?','Retrying...','Failed\x20to\x20save\x20configuration','15mXIFPE','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','1450494agWRdB','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Information','Click\x20to\x20configure\x20MCP'];_0x2c59=function(){return _0x5702bb;};return _0x2c59();}function _0x39f2(_0x5461c5,_0x12ef5c){const _0x2c598f=_0x2c59();return _0x39f2=function(_0x39f20b,_0x40d56b){_0x39f20b=_0x39f20b-0x1e8;let _0x4fc3ce=_0x2c598f[_0x39f20b];return _0x4fc3ce;},_0x39f2(_0x5461c5,_0x12ef5c);}module[_0x8f8eaf(0x1f4)]=n;
1
+ 'use strict';const _0x13667c=_0x41af;(function(_0x45bde5,_0x2cbf25){const _0x2b8273=_0x41af,_0xd0bdc6=_0x45bde5();while(!![]){try{const _0x421f27=-parseInt(_0x2b8273(0x175))/0x1*(-parseInt(_0x2b8273(0x157))/0x2)+parseInt(_0x2b8273(0x150))/0x3*(parseInt(_0x2b8273(0x158))/0x4)+-parseInt(_0x2b8273(0x15e))/0x5*(-parseInt(_0x2b8273(0x151))/0x6)+parseInt(_0x2b8273(0x167))/0x7+-parseInt(_0x2b8273(0x160))/0x8+parseInt(_0x2b8273(0x163))/0x9*(parseInt(_0x2b8273(0x17c))/0xa)+parseInt(_0x2b8273(0x177))/0xb*(-parseInt(_0x2b8273(0x159))/0xc);if(_0x421f27===_0x2cbf25)break;else _0xd0bdc6['push'](_0xd0bdc6['shift']());}catch(_0x36fdbe){_0xd0bdc6['push'](_0xd0bdc6['shift']());}}}(_0x5a27,0xd5ab4));const e={'mcpStatus':{'disconnected':_0x13667c(0x17d),'connecting':_0x13667c(0x164),'connected':_0x13667c(0x17f),'failed':_0x13667c(0x16f),'retrying':_0x13667c(0x170),'unknown':_0x13667c(0x152),'missingApiKey':_0x13667c(0x156),'invalidApiKey':_0x13667c(0x153),'sessionOccupied':_0x13667c(0x169),'networkError':_0x13667c(0x17b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x13667c(0x173),'clickToConfigure':_0x13667c(0x184)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x13667c(0x16e),'apiKey':_0x13667c(0x162),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x13667c(0x17e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x13667c(0x15c),'connectionInfo':_0x13667c(0x15f),'mcpClientConfig':_0x13667c(0x15f),'configInstructions':_0x13667c(0x154),'configStepTitle':_0x13667c(0x178),'configStep1':_0x13667c(0x165),'configStep2':_0x13667c(0x16b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x13667c(0x182),'sessionIdDescription':_0x13667c(0x186),'authorizationDescription':_0x13667c(0x161),'configParameters':_0x13667c(0x15d),'maxRetries':'Max\x20Retries','save':_0x13667c(0x155),'saving':_0x13667c(0x15b),'note1':_0x13667c(0x181),'note2':_0x13667c(0x16d),'configSaved':_0x13667c(0x180),'configError':_0x13667c(0x16a),'apiApplyInfo':{'title':_0x13667c(0x187),'description':_0x13667c(0x166),'univerAiLabel':_0x13667c(0x183),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x13667c(0x189),'invalidConfig':_0x13667c(0x15a),'invalidApiKey':_0x13667c(0x185)},'connectionStatus':{'disconnected':_0x13667c(0x176),'connecting':_0x13667c(0x168),'connected':_0x13667c(0x179),'failed':'Connection\x20Failed','retrying':_0x13667c(0x174)},'connectionError':{'missingApiKey':_0x13667c(0x188),'invalidApiKey':_0x13667c(0x172),'sessionOccupied':_0x13667c(0x17a),'networkError':_0x13667c(0x171),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x41af(_0x4a54c3,_0xf6559d){const _0x5a27b4=_0x5a27();return _0x41af=function(_0x41afe5,_0x4cb854){_0x41afe5=_0x41afe5-0x150;let _0x25cda1=_0x5a27b4[_0x41afe5];return _0x25cda1;},_0x41af(_0x4a54c3,_0xf6559d);}module[_0x13667c(0x16c)]=n;function _0x5a27(){const _0x2c6480=['MCP:\x20Network\x20Error','134670krGlWI','MCP\x20Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connected','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required\x20to\x20connect','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','5042937FpSXaN','6XYsymE','MCP\x20Unknown\x20Status','MCP:\x20Invalid\x20API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','MCP:\x20API\x20Key\x20Missing','163724NoPzUl','4KDeQDf','841740cFxxqo','Invalid\x20configuration','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','6916840flpREJ','MCP\x20Client\x20Configuration','5489656usDplv','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','1053LQpkWT','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','8399580CugEeU','Connecting...','MCP:\x20Session\x20Occupied','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20connect\x20MCP','Retrying...','12KhVNoj','Disconnected','825bAVHtd','Configuration\x20Steps:','Connected','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later'];_0x5a27=function(){return _0x2c6480;};return _0x5a27();}
@@ -1 +1 @@
1
- 'use strict';function _0x52a2(_0x13ae59,_0x1f0297){const _0x495974=_0x4959();return _0x52a2=function(_0x52a250,_0x1f5da8){_0x52a250=_0x52a250-0x1a2;let _0xb9567b=_0x495974[_0x52a250];return _0xb9567b;},_0x52a2(_0x13ae59,_0x1f0297);}function _0x4959(){const _0x2794f4=['已连接','1155380BIZFtN','555462HsgcZh','4twfoJy','什么是\x20API\x20密钥?','保存配置','9UFYuuz','API\x20密钥无效,请检查密钥是否正确','1527610jHfzZh','MCP\x20配置','MCP:\x20会话被占用','启用身份验证','配置更改将立即生效','会话当前被占用,请稍后再试','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','启用身份验证以获得安全连接','750072nfXlfm','连接信息','MCP:\x20缺少\x20API\x20密钥','1422035RCHOVX','点击配置\x20MCP','4138672dzGbEJ','点击连接\x20MCP','配置保存成功','2469624mLuzcG','MCP:\x20网络错误','需要\x20API\x20密钥才能连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','API\x20密钥无效,请检查您的密钥后重试','Univer\x20AI\x20控制台','API\x20密钥不能为空','请输入您的\x20API\x20密钥','配置保存失败','MCP\x20连接中...','最大重试次数','配置无效','重连中...','您的\x20API\x20密钥安全存储在本地存储中','网络连接错误,请检查您的网络连接','超出最大重试次数,请稍后再试','连接中...','保存中...'];_0x4959=function(){return _0x2794f4;};return _0x4959();}const _0x3771a1=_0x52a2;(function(_0x68d0b9,_0x204815){const _0x4454bc=_0x52a2,_0x4fdf8e=_0x68d0b9();while(!![]){try{const _0x35cd1b=parseInt(_0x4454bc(0x1ac))/0x1+-parseInt(_0x4454bc(0x1ab))/0x2+-parseInt(_0x4454bc(0x1ba))/0x3+-parseInt(_0x4454bc(0x1ad))/0x4*(-parseInt(_0x4454bc(0x1bd))/0x5)+-parseInt(_0x4454bc(0x1c2))/0x6+parseInt(_0x4454bc(0x1b2))/0x7+parseInt(_0x4454bc(0x1bf))/0x8*(parseInt(_0x4454bc(0x1b0))/0x9);if(_0x35cd1b===_0x204815)break;else _0x4fdf8e['push'](_0x4fdf8e['shift']());}catch(_0x1a707a){_0x4fdf8e['push'](_0x4fdf8e['shift']());}}}(_0x4959,0x520f3));const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x3771a1(0x1cb),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','missingApiKey':_0x3771a1(0x1bc),'invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x3771a1(0x1b4),'networkError':_0x3771a1(0x1c3),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x3771a1(0x1c0),'clickToConfigure':_0x3771a1(0x1be)},'mcpConfig':{'title':_0x3771a1(0x1b3),'description':_0x3771a1(0x1c5),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x3771a1(0x1c9),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x3771a1(0x1b5),'enableAuthHint':_0x3771a1(0x1b9),'connectionInfo':_0x3771a1(0x1bb),'serverEndpoint':'服务器端点','sessionId':'会话ID','maxRetries':_0x3771a1(0x1a2),'save':_0x3771a1(0x1af),'saving':_0x3771a1(0x1a9),'note1':_0x3771a1(0x1b6),'note2':_0x3771a1(0x1a5),'configSaved':_0x3771a1(0x1c1),'configError':_0x3771a1(0x1ca),'apiApplyInfo':{'title':_0x3771a1(0x1ae),'description':_0x3771a1(0x1b8),'univerAiLabel':_0x3771a1(0x1c7),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3771a1(0x1c8),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x3771a1(0x1a3),'invalidApiKey':_0x3771a1(0x1b1)},'connectionStatus':{'disconnected':'未连接','connecting':_0x3771a1(0x1a8),'connected':_0x3771a1(0x1aa),'failed':'连接失败','retrying':_0x3771a1(0x1a4)},'connectionError':{'missingApiKey':_0x3771a1(0x1c4),'invalidApiKey':_0x3771a1(0x1c6),'sessionOccupied':_0x3771a1(0x1b7),'networkError':_0x3771a1(0x1a6),'maxRetriesExceeded':_0x3771a1(0x1a7)}}};module['exports']=e;
1
+ 'use strict';const _0x511f83=_0x48d8;(function(_0x2691cb,_0x544ab5){const _0x386224=_0x48d8,_0x2aaf31=_0x2691cb();while(!![]){try{const _0x2b185d=parseInt(_0x386224(0x18f))/0x1*(-parseInt(_0x386224(0x18a))/0x2)+parseInt(_0x386224(0x16c))/0x3+parseInt(_0x386224(0x15b))/0x4*(-parseInt(_0x386224(0x17c))/0x5)+parseInt(_0x386224(0x191))/0x6+-parseInt(_0x386224(0x188))/0x7+parseInt(_0x386224(0x16b))/0x8*(parseInt(_0x386224(0x172))/0x9)+-parseInt(_0x386224(0x18c))/0xa;if(_0x2b185d===_0x544ab5)break;else _0x2aaf31['push'](_0x2aaf31['shift']());}catch(_0x41aaf7){_0x2aaf31['push'](_0x2aaf31['shift']());}}}(_0x5c2c,0x2f4bd));const e={'mcpStatus':{'disconnected':_0x511f83(0x180),'connecting':_0x511f83(0x173),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x511f83(0x179),'unknown':_0x511f83(0x190),'missingApiKey':_0x511f83(0x18b),'invalidApiKey':_0x511f83(0x175),'sessionOccupied':_0x511f83(0x166),'networkError':_0x511f83(0x177),'maxRetriesExceeded':_0x511f83(0x165),'clickToConnect':_0x511f83(0x164),'clickToConfigure':_0x511f83(0x171)},'mcpConfig':{'title':_0x511f83(0x163),'description':_0x511f83(0x161),'apiKey':_0x511f83(0x15e),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x511f83(0x189),'enableAuth':_0x511f83(0x186),'enableAuthHint':_0x511f83(0x170),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x511f83(0x178),'configInstructions':_0x511f83(0x18e),'configStepTitle':_0x511f83(0x181),'configStep1':_0x511f83(0x183),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x511f83(0x167),'sessionId':_0x511f83(0x182),'sessionIdDescription':_0x511f83(0x17f),'authorizationDescription':_0x511f83(0x174),'configParameters':_0x511f83(0x16f),'maxRetries':_0x511f83(0x15c),'save':'保存配置','saving':_0x511f83(0x187),'note1':_0x511f83(0x18d),'note2':_0x511f83(0x17d),'configSaved':_0x511f83(0x168),'configError':'配置保存失败','apiApplyInfo':{'title':_0x511f83(0x176),'description':_0x511f83(0x184),'univerAiLabel':_0x511f83(0x16d),'getStarted':_0x511f83(0x15f)},'validation':{'apiKeyRequired':_0x511f83(0x160),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x511f83(0x16e),'invalidApiKey':_0x511f83(0x169)},'connectionStatus':{'disconnected':_0x511f83(0x17e),'connecting':'连接中...','connected':_0x511f83(0x185),'failed':_0x511f83(0x17a),'retrying':_0x511f83(0x15d)},'connectionError':{'missingApiKey':_0x511f83(0x162),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x511f83(0x16a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x511f83(0x17b)}}};function _0x5c2c(){const _0x57d6de=['重启您的\x20MCP\x20客户端以使配置生效','配置保存成功','API\x20密钥无效,请检查密钥是否正确','会话当前被占用,请稍后再试','56aUrICi','922635kcFuFv','Univer\x20AI\x20控制台','配置无效','配置参数:','启用身份验证以获得安全连接','点击配置\x20MCP','496359DYQexd','MCP\x20连接中...','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20无效的\x20API\x20密钥','什么是\x20API\x20密钥?','MCP:\x20网络错误','MCP\x20客户端配置','MCP\x20重连中...','连接失败','超出最大重试次数,请稍后再试','781780QkGcta','您的\x20API\x20密钥安全存储在本地存储中','未连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20已断开','配置步骤:','会话ID','复制以下\x20JSON\x20配置','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','已连接','启用身份验证','保存中...','1724464Qjxkdn','您的\x20API\x20密钥将在此浏览器中本地存储','2eENJwy','MCP:\x20缺少\x20API\x20密钥','3908540zIBIjj','配置更改将立即生效','将以下配置添加到您的\x20MCP\x20客户端设置中:','49117rEJLaK','MCP\x20状态未知','2056812HXaKZi','4LoGKgo','最大重试次数','重连中...','API\x20密钥','几秒钟内获取您的\x20API\x20密钥','API\x20密钥不能为空','配置\x20MCP\x20使用\x20AI\x20操作电子表格','需要\x20API\x20密钥才能连接','MCP\x20配置','点击连接\x20MCP','MCP:\x20超出最大重试次数','MCP:\x20会话被占用'];_0x5c2c=function(){return _0x57d6de;};return _0x5c2c();}function _0x48d8(_0x50a7e2,_0x39e99b){const _0x5c2ca9=_0x5c2c();return _0x48d8=function(_0x48d8f7,_0x144d21){_0x48d8f7=_0x48d8f7-0x15b;let _0xb1b88d=_0x5c2ca9[_0x48d8f7];return _0xb1b88d;},_0x48d8(_0x50a7e2,_0x39e99b);}module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';function _0x4ede(_0x5274fc,_0x1adb8a){const _0x33fc92=_0x33fc();return _0x4ede=function(_0x4ede83,_0x1788a2){_0x4ede83=_0x4ede83-0x6b;let _0x42040d=_0x33fc92[_0x4ede83];return _0x42040d;},_0x4ede(_0x5274fc,_0x1adb8a);}const _0x27ebc1=_0x4ede;(function(_0x54eeca,_0x31694b){const _0x503994=_0x4ede,_0xd868ed=_0x54eeca();while(!![]){try{const _0x2d85a1=-parseInt(_0x503994(0x6f))/0x1+-parseInt(_0x503994(0x82))/0x2*(-parseInt(_0x503994(0x70))/0x3)+parseInt(_0x503994(0x75))/0x4+parseInt(_0x503994(0x85))/0x5*(parseInt(_0x503994(0x77))/0x6)+-parseInt(_0x503994(0x8d))/0x7+-parseInt(_0x503994(0x86))/0x8+parseInt(_0x503994(0x79))/0x9*(parseInt(_0x503994(0x81))/0xa);if(_0x2d85a1===_0x31694b)break;else _0xd868ed['push'](_0xd868ed['shift']());}catch(_0x5161f7){_0xd868ed['push'](_0xd868ed['shift']());}}}(_0x33fc,0x1f9df));function _0x33fc(){const _0x1cd1fc=['MCP\x20Retrying...','Save\x20Configuration','Enable\x20Authentication','1240337sdJLVr','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','Retrying...','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','exports','MCP:\x20API\x20Key\x20Missing','Disconnected','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Information','151251ZLonaB','12DJGVrP','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','50160hNPXGS','Server\x20Endpoint','354ipKzaL','MCP:\x20Network\x20Error','2002734FTvZSI','MCP:\x20Invalid\x20API\x20Key','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20Occupied','Max\x20Retries','Enter\x20your\x20API\x20key','20Duisxs','3256pDuHYk','API\x20key\x20is\x20required\x20to\x20connect','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','21070AqXyiT','2038280GIBvRU','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x33fc=function(){return _0x1cd1fc;};return _0x33fc();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x27ebc1(0x90),'failed':_0x27ebc1(0x94),'retrying':_0x27ebc1(0x8a),'unknown':_0x27ebc1(0x93),'missingApiKey':_0x27ebc1(0x96),'invalidApiKey':_0x27ebc1(0x7a),'sessionOccupied':_0x27ebc1(0x7e),'networkError':_0x27ebc1(0x78),'maxRetriesExceeded':_0x27ebc1(0x7b),'clickToConnect':_0x27ebc1(0x7c),'clickToConfigure':_0x27ebc1(0x92)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x27ebc1(0x87),'apiKey':_0x27ebc1(0x6c),'apiKeyPlaceholder':_0x27ebc1(0x80),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x27ebc1(0x8c),'enableAuthHint':_0x27ebc1(0x6d),'connectionInfo':_0x27ebc1(0x6e),'serverEndpoint':_0x27ebc1(0x76),'sessionId':'Session\x20ID','maxRetries':_0x27ebc1(0x7f),'save':_0x27ebc1(0x8b),'saving':'Saving...','note1':_0x27ebc1(0x74),'note2':_0x27ebc1(0x72),'configSaved':_0x27ebc1(0x88),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x27ebc1(0x73),'getStarted':_0x27ebc1(0x8e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x27ebc1(0x84),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x27ebc1(0x8f)},'connectionStatus':{'disconnected':_0x27ebc1(0x6b),'connecting':'Connecting...','connected':_0x27ebc1(0x71),'failed':'Connection\x20Failed','retrying':_0x27ebc1(0x91)},'connectionError':{'missingApiKey':_0x27ebc1(0x83),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x27ebc1(0x7d),'networkError':_0x27ebc1(0x89),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x27ebc1(0x95)]=n;
1
+ 'use strict';const _0x1cb2c7=_0x2548;(function(_0x5bc3f2,_0x4225cd){const _0x2fd88e=_0x2548,_0x26f0da=_0x5bc3f2();while(!![]){try{const _0x336a07=parseInt(_0x2fd88e(0x18b))/0x1+-parseInt(_0x2fd88e(0x171))/0x2*(-parseInt(_0x2fd88e(0x169))/0x3)+parseInt(_0x2fd88e(0x16b))/0x4+parseInt(_0x2fd88e(0x180))/0x5+parseInt(_0x2fd88e(0x18d))/0x6+-parseInt(_0x2fd88e(0x18f))/0x7+-parseInt(_0x2fd88e(0x16e))/0x8;if(_0x336a07===_0x4225cd)break;else _0x26f0da['push'](_0x26f0da['shift']());}catch(_0x50cc00){_0x26f0da['push'](_0x26f0da['shift']());}}}(_0x28df,0xb9b6f));function _0x28df(){const _0x5122e6=['Enter\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Max\x20Retries','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required\x20to\x20connect','Saving...','Retrying...','Save\x20Configuration','Disconnected','903545TwvuGa','MCP:\x20Max\x20Retries\x20Exceeded','Connecting...','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','1486739viCiup','API\x20key\x20is\x20required','8173638gOGTFd','Invalid\x20configuration','8121379eBVYpU','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','exports','MCP:\x20Session\x20Occupied','MCP\x20Client\x20Configuration','5196kYuaxr','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5225584ZdzEOa','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','23589512RLMfng','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','616CRTBcg','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:'];_0x28df=function(){return _0x5122e6;};return _0x28df();}const e={'mcpStatus':{'disconnected':_0x1cb2c7(0x18a),'connecting':'MCP\x20Connecting...','connected':_0x1cb2c7(0x170),'failed':_0x1cb2c7(0x16d),'retrying':'MCP\x20Retrying...','unknown':_0x1cb2c7(0x183),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x1cb2c7(0x193),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1cb2c7(0x181),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1cb2c7(0x176)},'mcpConfig':{'title':_0x1cb2c7(0x177),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1cb2c7(0x187),'apiKeyPlaceholder':_0x1cb2c7(0x173),'apiKeyHint':_0x1cb2c7(0x184),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1cb2c7(0x194),'configInstructions':_0x1cb2c7(0x172),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1cb2c7(0x16f),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1cb2c7(0x174),'sessionId':'Session\x20ID','sessionIdDescription':_0x1cb2c7(0x175),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x1cb2c7(0x179),'save':_0x1cb2c7(0x17e),'saving':_0x1cb2c7(0x17c),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1cb2c7(0x189),'configSaved':_0x1cb2c7(0x17a),'configError':_0x1cb2c7(0x16c),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1cb2c7(0x18c),'apiKeyTooShort':_0x1cb2c7(0x190),'invalidConfig':_0x1cb2c7(0x18e),'invalidApiKey':_0x1cb2c7(0x186)},'connectionStatus':{'disconnected':_0x1cb2c7(0x17f),'connecting':_0x1cb2c7(0x182),'connected':_0x1cb2c7(0x188),'failed':_0x1cb2c7(0x185),'retrying':_0x1cb2c7(0x17d)},'connectionError':{'missingApiKey':_0x1cb2c7(0x17b),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x1cb2c7(0x178),'networkError':_0x1cb2c7(0x16a),'maxRetriesExceeded':_0x1cb2c7(0x191)}}},n=e;function _0x2548(_0x4319d0,_0x3c7369){const _0x28dfc3=_0x28df();return _0x2548=function(_0x25480b,_0x232a6f){_0x25480b=_0x25480b-0x169;let _0xc0d33c=_0x28dfc3[_0x25480b];return _0xc0d33c;},_0x2548(_0x4319d0,_0x3c7369);}module[_0x1cb2c7(0x192)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x23fab0=_0x3f3e;(function(_0x4a12cb,_0x212716){var _0x58a93f=_0x3f3e,_0x30e50f=_0x4a12cb();while(!![]){try{var _0x18d2d9=-parseInt(_0x58a93f(0x22a))/0x1*(-parseInt(_0x58a93f(0x216))/0x2)+-parseInt(_0x58a93f(0x225))/0x3*(-parseInt(_0x58a93f(0x1b7))/0x4)+parseInt(_0x58a93f(0x13b))/0x5*(-parseInt(_0x58a93f(0x250))/0x6)+parseInt(_0x58a93f(0x16f))/0x7*(-parseInt(_0x58a93f(0x152))/0x8)+-parseInt(_0x58a93f(0x164))/0x9+parseInt(_0x58a93f(0x25b))/0xa+-parseInt(_0x58a93f(0x197))/0xb;if(_0x18d2d9===_0x212716)break;else _0x30e50f['push'](_0x30e50f['shift']());}catch(_0x302d2d){_0x30e50f['push'](_0x30e50f['shift']());}}}(_0x5555,0xb4a0c));var Se=Object[_0x23fab0(0x185)],xe=(_0x3c43ea,_0x2c4678,_0x42716e)=>_0x2c4678 in _0x3c43ea?Se(_0x3c43ea,_0x2c4678,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42716e}):_0x3c43ea[_0x2c4678]=_0x42716e,N=(_0x201e4e,_0x27966d,_0x43fd46)=>xe(_0x201e4e,typeof _0x27966d!=_0x23fab0(0x23f)?_0x27966d+'':_0x27966d,_0x43fd46);import{LocaleService as _0x25beb3,Inject as _0x27af5e,Injector as _0x1fc671,IConfigService as _0x5935da,ILocalStorageService as _0x396cbc,ILogService as _0x5d8729,Disposable as _0x56b7ac,CommandType as _0x158acf,ICommandService as _0x3381d7,DependentOn as _0x252ca3,Plugin as _0x57147d,merge as _0x4fb00c}from'@univerjs/core';import{jsxs as _0x46fbb5,jsx as _0x4d1396}from'react/jsx-runtime';import{MCPConnectionStatus as _0x44c736,MCPConnectionError as _0x48d292,MCPConnectionController as _0x229619,MCP_PLUGIN_CONFIG_KEY as _0x5887db,UniverMCPPlugin as _0x20dda9}from'@univerjs-pro/mcp';import{Input as _0x453dda,Button as _0xde16eb,MessageType as _0x4dddf5,Tooltip as _0x2abc33,clsx as _0x44e383}from'@univerjs/design';import{useDependency as _0x24d075,useObservable as _0x11bc25,IUIPartsService as _0x4d1b0e,IDialogService as _0x223ca1,IMessageService as _0x1d356e,ComponentManager as _0x30c28c,connectInjector as _0x3e31ca,BuiltInUIPart as _0x33a29c,MenuItemType as _0x16e1aa,RibbonStartGroup as _0x19bf15,IMenuManagerService as _0x53b950}from'@univerjs/ui';import{BehaviorSubject as _0xc71a63}from'rxjs';import{forwardRef as _0x23e534,useRef as _0x2076dc,createElement as _0x588477,useState as _0x1fd024,useCallback as _0x5c00bd}from'react';var d=function(){var _0x90717e=_0x23fab0;return d=Object['assign']||function(_0x3d892b){var _0x512ed2=_0x3f3e;for(var _0x585de1,_0x1ab52b=0x1,_0x1d9145=arguments['length'];_0x1ab52b<_0x1d9145;_0x1ab52b++){_0x585de1=arguments[_0x1ab52b];for(var _0x352fe8 in _0x585de1)Object[_0x512ed2(0x226)][_0x512ed2(0x1db)][_0x512ed2(0x15a)](_0x585de1,_0x352fe8)&&(_0x3d892b[_0x352fe8]=_0x585de1[_0x352fe8]);}return _0x3d892b;},d[_0x90717e(0x1bb)](this,arguments);},Ye=function(_0x41d494,_0x22ff2e){var _0x3513f9=_0x23fab0,_0xd4ccd2={};for(var _0x1dded0 in _0x41d494)Object['prototype'][_0x3513f9(0x1db)][_0x3513f9(0x15a)](_0x41d494,_0x1dded0)&&_0x22ff2e[_0x3513f9(0x243)](_0x1dded0)<0x0&&(_0xd4ccd2[_0x1dded0]=_0x41d494[_0x1dded0]);if(_0x41d494!=null&&typeof Object[_0x3513f9(0x189)]=='function'){for(var _0x32d983=0x0,_0x1dded0=Object[_0x3513f9(0x189)](_0x41d494);_0x32d983<_0x1dded0[_0x3513f9(0x11e)];_0x32d983++)_0x22ff2e[_0x3513f9(0x243)](_0x1dded0[_0x32d983])<0x0&&Object[_0x3513f9(0x226)][_0x3513f9(0x130)]['call'](_0x41d494,_0x1dded0[_0x32d983])&&(_0xd4ccd2[_0x1dded0[_0x32d983]]=_0x41d494[_0x1dded0[_0x32d983]]);}return _0xd4ccd2;},S=_0x23e534(function(_0x112299,_0x498b95){var _0x29f2d0=_0x23fab0,_0x5f5cf6=_0x112299[_0x29f2d0(0x11b)],_0x38f495=_0x112299['id'],_0x3c63eb=_0x112299[_0x29f2d0(0x1dc)],_0x28ca16=_0x112299[_0x29f2d0(0x1f7)],_0x57bd6b=Ye(_0x112299,[_0x29f2d0(0x11b),'id',_0x29f2d0(0x1dc),'extend']),_0x22d088=_0x29f2d0(0x239)['concat'](_0x38f495,'\x20')[_0x29f2d0(0x24e)](_0x3c63eb||'')[_0x29f2d0(0x256)](),_0xf539b8=_0x2076dc('_'['concat'](He()));return oe(_0x5f5cf6,''[_0x29f2d0(0x24e)](_0x38f495),{'defIds':_0x5f5cf6[_0x29f2d0(0x23d)],'idSuffix':_0xf539b8[_0x29f2d0(0x23b)]},d({'ref':_0x498b95,'className':_0x22d088},_0x57bd6b),_0x28ca16);});function oe(_0x175c53,_0x4d1bb6,_0x52a000,_0x286276,_0x1eaeef){var _0x480252=_0x23fab0;return _0x588477(_0x175c53[_0x480252(0x112)],d(d({'key':_0x4d1bb6},Ve(_0x175c53,_0x52a000,_0x1eaeef)),_0x286276),(Fe(_0x175c53,_0x52a000)[_0x480252(0x20b)]||[])['map'](function(_0x30a654,_0x5e37c8){var _0x196c5e=_0x480252;return oe(_0x30a654,''['concat'](_0x4d1bb6,'-')[_0x196c5e(0x24e)](_0x175c53[_0x196c5e(0x112)],'-')[_0x196c5e(0x24e)](_0x5e37c8),_0x52a000,void 0x0,_0x1eaeef);}));}function Ve(_0xa528b3,_0x143215,_0x296b8f){var _0x38c049=_0x23fab0,_0x38126d=d({},_0xa528b3[_0x38c049(0x21d)]);_0x296b8f!=null&&_0x296b8f[_0x38c049(0x245)]&&_0x38126d[_0x38c049(0x18d)]===_0x38c049(0x245)&&(_0x38126d[_0x38c049(0x18d)]=_0x296b8f[_0x38c049(0x245)]),_0xa528b3[_0x38c049(0x112)]===_0x38c049(0x201)&&_0x38126d['id']&&(_0x38126d['id']=_0x38126d['id']+_0x143215['idSuffix']),Object[_0x38c049(0x1da)](_0x38126d)[_0x38c049(0x13a)](function(_0x523fb3){var _0x35ac7c=_0x38c049,_0x10e6d9=_0x523fb3[0x0],_0x280d22=_0x523fb3[0x1];_0x10e6d9===_0x35ac7c(0x201)&&typeof _0x280d22==_0x35ac7c(0x20a)&&(_0x38126d[_0x10e6d9]=_0x280d22['replace'](/url\(#(.*)\)/,_0x35ac7c(0x138)[_0x35ac7c(0x24e)](_0x143215[_0x35ac7c(0x167)],')')));});var _0x452590=_0x143215[_0x38c049(0x23d)];return!_0x452590||_0x452590['length']===0x0||(_0xa528b3[_0x38c049(0x112)]===_0x38c049(0x19c)&&_0x38126d[_0x38c049(0x198)]&&(_0x38126d['xlink:href']=_0x38126d[_0x38c049(0x198)]+_0x143215[_0x38c049(0x167)]),Object[_0x38c049(0x1da)](_0x38126d)['forEach'](function(_0x219c92){var _0x7b3dea=_0x38c049,_0x30663b=_0x219c92[0x0],_0x92e3ee=_0x219c92[0x1];typeof _0x92e3ee==_0x7b3dea(0x20a)&&(_0x38126d[_0x30663b]=_0x92e3ee[_0x7b3dea(0x23c)](/url\(#(.*)\)/,_0x7b3dea(0x138)[_0x7b3dea(0x24e)](_0x143215[_0x7b3dea(0x167)],')')));})),_0x38126d;}function _0x5555(){var _0x534335=['DISCONNECTED','_blank','_localStorageService','isValid','register','NETWORK_ERROR','MCP\x20Unknown\x20Status','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-yellow-500','MCP:\x20Max\x20Retries\x20Exceeded','univer-bg-gray-500','mcpStatus.networkError','mergeMenu','entries','hasOwnProperty','className','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiApplyInfo.getStarted','sessionId','https://console.univer.ai','mcpStatus.sessionOccupied','displayName','_handleConfigSave','MCP\x20Connected','univer-flex\x20univer-cursor-pointer\x20univer-items-center','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','subscribeConfigValue$','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Success','univer-flex-1','univer-min-w-0\x20univer-flex-1','path','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.apiKey','配置保存失败','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\x20Retrying...','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpServerUrl','_dialogService','univer.plus','getConfig','extend','最大重试次数','已连接','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','currentColor','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3','CloseSmallSingle','hover:univer-opacity-80','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mask','MCP:\x20API\x20Key\x20Missing','round','getItem','M0\x200H16V16H0z','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Click\x20to\x20configure\x20MCP','mcpConfig.connectionError.missingApiKey','next','string','children','\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','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','API\x20密钥','MCP_UI_PLUGIN','mcpConfig.connectionError.invalidApiKey','mcpConfig.apiKeyPlaceholder','请输入您的\x20API\x20密钥','_registerComponent','_messageService','_initializeMenus','3616qAkqzP','setItem','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','配置保存成功','MCP:\x20Invalid\x20API\x20Key','Disconnected','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','attrs','mcpConfig.connectionError.sessionOccupied','check-mark-icon','Connected','pluginName','mcpConfig.save','MCP\x20Connecting...','MCP\x20已连接','175866QMTSpu','prototype','未连接','map','univer-space-y-2','125EeAHLY','mcp-ui.command.openConfigPanel','CONNECTING','_initConfigSync','0\x200\x2017\x2017','off','Save\x20Configuration','MCP\x20状态未知','https://console.univer.plus','MCP\x20连接中...','什么是\x20API\x20密钥?','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','服务器端点','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','连接中...','univerjs-icon\x20univerjs-icon-','off-line-icon_clip0_910_343','current','replace','defIds','connectionError$','symbol','mcpStatus.disconnected','_configService','MCP\x20Configuration','indexOf','API\x20key\x20is\x20required','colorChannel1','M5.21243\x205.62036L11.8791\x2012.287','API\x20密钥无效,请检查您的密钥后重试','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_uiPartsService','_handleConfigure','toString','启用身份验证以获得安全连接','univer-bg-red-500','concat','Configuration\x20Notes:','474618hrTBSA','defs','mcpConfig.title','univer-flex\x20univer-items-center\x20univer-gap-2','assign','mcpStatus.failed','trim','API\x20key\x20is\x20required\x20to\x20connect','univer-text-sm\x20univer-text-gray-500','errorMessage','none','8966540YLmesz','Failed\x20to\x20save\x20configuration','univer-font-medium','0\x200\x2017\x2016','url(#on-line-icon_clip0_910_349)','mcpConfig.apiKeyHint','CONNECTED','univer-flex-shrink-0\x20univer-text-red-500','HEADER_MENU','MCP:\x20无效的\x20API\x20密钥','Enter\x20your\x20API\x20key','showDeveloperTools','需要\x20API\x20密钥才能连接','close','univer-space-y-3','show','tag','javascript:void(0)','mcpConfig.connectionStatus.failed','_validateConfig','univer-flex\x20univer-items-start\x20univer-gap-2','Connecting...','_loadStoredApiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','connectionStatus$','icon','MISSING_API_KEY','close-small-single','length','warn','_localeService','超出最大重试次数,请稍后再试','univer-text-white','会话ID','_createConfigPanelComponent','mcpStatus.clickToConnect','配置无效','1em','mcp.apiKey','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','div','MCP:\x20Session\x20Occupied','Univer\x20AI\x20Console','value','label','MCP:\x20Network\x20Error','propertyIsEnumerable','启用身份验证','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','NONE','BUTTON','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','mcpConfig.connectionStatus.disconnected','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','url(#$1','univer-bg-green-500','forEach','5xyzaqU','Close','_connectionController','配置更改将立即生效','getCurrentConfig','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20Connection\x20Failed','保存中...','disposeWithMe','mcpConfig.configSaved','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','apiKey','univer-text-blue-600','FAILED','mcpConfig.validation.invalidApiKey','mcp-ui.config','mcp-config-dialog','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20连接失败','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_initializeCommands','389848OCCdwZ','_initStatusComponent','on-line-icon_clip0_910_349','random','连接信息','您的\x20API\x20密钥将在此浏览器中本地存储','error','mcpConfig.connectionStatus.retrying','call','MCP:\x20会话被占用','_config','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','univer-text-red-500','SESSION_ID_OCCUPIED','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','What\x20is\x20API\x20Key?','MCP:\x20网络错误','add','970029UkTLBB','univer-bg-blue-500','_mcpCoreConfig$','idSuffix','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','text','0\x200\x2016\x2016','INVALID_API_KEY','您的\x20API\x20密钥安全存储在本地存储中','\x20-\x20','univer.ai','161JTGgsH','univer-text-gray-500','UniverIcon','mcpConfig.connectionInfo','RETRYING','mcpStatus.retrying','translate(.97)','bottom','Enable\x20Authentication','HelpSingle','Univer\x20AI\x20控制台','includes','_config$','removeItem','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','_loading$','svg','registerCommand','API\x20密钥无效,请检查密钥是否正确','onStarting','substring','span','defineProperty','API\x20Key','univer-space-y-5','Error','getOwnPropertySymbols','Connection\x20Failed','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_componentManager','fill','univer-flex\x20univer-flex-wrap\x20univer-gap-2','getOwnPropertyDescriptor','mcpConfig.validation.apiKeyRequired','保存配置','Enable\x20authentication\x20for\x20secure\x20connections','setConfig','on-line-icon','_logService','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','4657521tihypL','xlink:href','validateApiKey','Get\x20your\x20API\x20key\x20in\x20seconds','evenodd','use','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.apiApplyInfo.title','_menuManagerService','MCP:\x20超出最大重试次数','mcpStatus.invalidApiKey','mcpConfig.apiApplyInfo.univerAiLabel','MCPConfigPanel','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.connectionStatus.connecting','mcpConfig.apiApplyInfo.description','mcpConfig.validation.invalidConfig','网络连接错误,请检查您的网络连接','clipPath','MAX_RETRIES_EXCEEDED','_injector','OTHERS','univer-text-xs\x20univer-text-gray-500','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20重连中...','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','COMMAND','Server\x20Endpoint','get','off-line-icon','92UEAEJI','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','CheckMarkIcon','http://www.w3.org/2000/svg','apply','noopener\x20noreferrer','univer-text-sm\x20univer-font-medium','MCP\x20Disconnected','subscribe','Max\x20Retries','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','_mcpConnectionController','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_commandService','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','重连中...','help-single','点击连接\x20MCP','\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','OffLineIcon','white','showConfigPanel'];_0x5555=function(){return _0x534335;};return _0x5555();}function Fe(_0x532bc2,_0x3b4e53){var _0x2da3f8=_0x23fab0,_0x22489b,_0x2a89dd=_0x3b4e53['defIds'];return!_0x2a89dd||_0x2a89dd['length']===0x0?_0x532bc2:_0x532bc2['tag']===_0x2da3f8(0x251)&&(!((_0x22489b=_0x532bc2['children'])===null||_0x22489b===void 0x0)&&_0x22489b['length'])?d(d({},_0x532bc2),{'children':_0x532bc2[_0x2da3f8(0x20b)][_0x2da3f8(0x228)](function(_0x352b3b){var _0x4f5681=_0x2da3f8;return typeof _0x352b3b[_0x4f5681(0x21d)]['id']==_0x4f5681(0x20a)&&_0x2a89dd&&_0x2a89dd['includes'](_0x352b3b[_0x4f5681(0x21d)]['id'])?d(d({},_0x352b3b),{'attrs':d(d({},_0x352b3b[_0x4f5681(0x21d)]),{'id':_0x352b3b[_0x4f5681(0x21d)]['id']+_0x3b4e53[_0x4f5681(0x167)]})}):_0x352b3b;})}):_0x532bc2;}function He(){var _0x432ec0=_0x23fab0;return Math[_0x432ec0(0x155)]()[_0x432ec0(0x24b)](0x24)[_0x432ec0(0x183)](0x2,0x8);}S['displayName']=_0x23fab0(0x171);var We={'tag':'svg','attrs':{'xmlns':_0x23fab0(0x1ba),'fill':'none','viewBox':_0x23fab0(0x16a),'width':_0x23fab0(0x127),'height':_0x23fab0(0x127)},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'fill':'currentColor','d':_0x23fab0(0x196),'fillRule':_0x23fab0(0x19b),'clipRule':'evenodd'}}]},ce=_0x23e534(function(_0x4c40bb,_0x5e2540){var _0x35837c=_0x23fab0;return _0x588477(S,Object[_0x35837c(0x254)]({},_0x4c40bb,{'id':_0x35837c(0x21f),'ref':_0x5e2540,'icon':We}));});function _0x3f3e(_0x5e19b7,_0x231567){var _0x5555e2=_0x5555();return _0x3f3e=function(_0x3f3ef6,_0x37711a){_0x3f3ef6=_0x3f3ef6-0x106;var _0x308899=_0x5555e2[_0x3f3ef6];return _0x308899;},_0x3f3e(_0x5e19b7,_0x231567);}ce[_0x23fab0(0x1e2)]=_0x23fab0(0x1b9);var Be={'tag':_0x23fab0(0x17f),'attrs':{'xmlns':_0x23fab0(0x1ba),'fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x22e),'width':'1em','height':_0x23fab0(0x127)},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'stroke':_0x23fab0(0x1fb),'d':_0x23fab0(0x246),'strokeLinecap':_0x23fab0(0x203),'strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.33}},{'tag':_0x23fab0(0x1ec),'attrs':{'stroke':_0x23fab0(0x1fb),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':'round','strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.33}}]},ae=_0x23e534(function(_0x549be7,_0x3af978){var _0x405ab7=_0x23fab0;return _0x588477(S,Object[_0x405ab7(0x254)]({},_0x549be7,{'id':_0x405ab7(0x11d),'ref':_0x3af978,'icon':Be}));});ae[_0x23fab0(0x1e2)]=_0x23fab0(0x1fe);var ze={'tag':_0x23fab0(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x16a),'width':_0x23fab0(0x127),'height':'1em'},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'fill':_0x23fab0(0x1fb),'d':_0x23fab0(0x17d)}},{'tag':_0x23fab0(0x1ec),'attrs':{'fill':_0x23fab0(0x1fb),'d':_0x23fab0(0x237)}},{'tag':_0x23fab0(0x1ec),'attrs':{'fill':_0x23fab0(0x1fb),'d':_0x23fab0(0x1fa),'fillRule':_0x23fab0(0x19b),'clipRule':_0x23fab0(0x19b)}}]},se=_0x23e534(function(_0x36c3f5,_0x1818d0){var _0x3a9f1a=_0x23fab0;return _0x588477(S,Object[_0x3a9f1a(0x254)]({},_0x36c3f5,{'id':_0x3a9f1a(0x1c7),'ref':_0x1818d0,'icon':ze}));});se[_0x23fab0(0x1e2)]=_0x23fab0(0x178);var qe={'tag':'svg','attrs':{'xmlns':_0x23fab0(0x1ba),'fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x16a),'width':_0x23fab0(0x127),'height':_0x23fab0(0x127)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x23fab0(0x1fb),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x23fab0(0x203),'strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.2}}]},{'tag':_0x23fab0(0x251),'attrs':{},'children':[{'tag':_0x23fab0(0x1aa),'attrs':{'id':_0x23fab0(0x23a)},'children':[{'tag':'path','attrs':{'fill':_0x23fab0(0x1cb),'d':_0x23fab0(0x205)}}]}]}],'defIds':[_0x23fab0(0x23a)]},le=_0x23e534(function(_0x15762c,_0x2bf311){var _0x1f51c4=_0x23fab0;return _0x588477(S,Object[_0x1f51c4(0x254)]({},_0x15762c,{'id':_0x1f51c4(0x1b6),'ref':_0x2bf311,'icon':qe}));});le['displayName']=_0x23fab0(0x1ca);var Ze={'tag':'svg','attrs':{'xmlns':_0x23fab0(0x1ba),'fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x25e),'width':_0x23fab0(0x127),'height':_0x23fab0(0x127)},'children':[{'tag':'g','attrs':{'clipPath':_0x23fab0(0x106)},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'stroke':_0x23fab0(0x1fb),'d':_0x23fab0(0x132),'strokeLinecap':_0x23fab0(0x203),'strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.2}}]},{'tag':_0x23fab0(0x251),'attrs':{},'children':[{'tag':_0x23fab0(0x1aa),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x23fab0(0x1cb),'d':_0x23fab0(0x205),'transform':_0x23fab0(0x175)}}]}]}],'defIds':[_0x23fab0(0x154)]},ue=_0x23e534(function(_0x22e72a,_0x1ac45d){var _0x16b8cd=_0x23fab0;return _0x588477(S,Object[_0x16b8cd(0x254)]({},_0x22e72a,{'id':_0x16b8cd(0x194),'ref':_0x1ac45d,'icon':Ze}));});ue['displayName']='OnLineIcon';function Xe(_0x2449d2){var _0x5bcf1f=_0x23fab0,_0x24fa43,_0x3d794a;const {mcpCoreConfig:_0x22a357,onSave:_0x4f8c1c,loading:_0x795d82=!0x1,config:_0x5257a6,connectionStatus$:_0x1c28e3,connectionError$:_0x2f6847}=_0x2449d2,_0x4b0572=_0x24d075(_0x25beb3),_0x3e06bb=_0x11bc25(_0x1c28e3,_0x44c736['DISCONNECTED']),_0x4a388f=_0x11bc25(_0x2f6847,_0x48d292[_0x5bcf1f(0x133)]),[_0x2b3220,_0x55bfd8]=_0x1fd024(_0x22a357[_0x5bcf1f(0x146)]||''),_0x3705f6=!0x0,_0xce0cb4=_0x5257a6['showDeveloperTools']&&_0x22a357[_0x5bcf1f(0x1f3)]&&(_0x22a357['mcpServerUrl']['includes']('univer.plus')||_0x22a357[_0x5bcf1f(0x1f3)][_0x5bcf1f(0x17a)](_0x5bcf1f(0x16e))),_0x178e2e=(_0x24fa43=_0x22a357[_0x5bcf1f(0x1f3)])==null?void 0x0:_0x24fa43[_0x5bcf1f(0x17a)](_0x5bcf1f(0x1f5)),_0xf4c221=(_0x3d794a=_0x22a357[_0x5bcf1f(0x1f3)])==null?void 0x0:_0x3d794a[_0x5bcf1f(0x17a)](_0x5bcf1f(0x16e)),_0x87197=_0x178e2e?_0x5bcf1f(0x232):_0x5bcf1f(0x1e0),_0x5a0dff=_0x5257a6[_0x5bcf1f(0x10d)]&&(_0x178e2e||_0xf4c221),[_0x4c8915,_0x5e0a6a]=_0x1fd024(!_0x2b3220[_0x5bcf1f(0x256)]()),_0x284996=(_0x121724,_0x1a7b3a)=>{var _0x4b0632=_0x5bcf1f;if(_0x1a7b3a===_0x48d292[_0x4b0632(0x11c)]||_0x1a7b3a===_0x48d292['INVALID_API_KEY'])return _0x4b0632(0x18b);switch(_0x121724){case _0x44c736[_0x4b0632(0x108)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x44c736[_0x4b0632(0x22c)]:case _0x44c736[_0x4b0632(0x173)]:return _0x4b0632(0x206);case _0x44c736[_0x4b0632(0x148)]:return _0x4b0632(0x18b);default:return _0x4b0632(0x1c3);}},_0x5c049d=(_0x1e2e84,_0x2d9f99)=>{var _0x5c57ae=_0x5bcf1f;if(_0x2d9f99===_0x48d292[_0x5c57ae(0x11c)]||_0x2d9f99===_0x48d292[_0x5c57ae(0x16b)])return _0x5c57ae(0x24d);switch(_0x1e2e84){case _0x44c736[_0x5c57ae(0x108)]:return _0x5c57ae(0x139);case _0x44c736['CONNECTING']:case _0x44c736[_0x5c57ae(0x173)]:return _0x5c57ae(0x165);case _0x44c736['FAILED']:return _0x5c57ae(0x24d);default:return _0x5c57ae(0x1d7);}},_0x5ce85a=_0x308f7a=>{var _0x295edf=_0x5bcf1f;switch(_0x308f7a){case _0x44c736[_0x295edf(0x108)]:return _0x4b0572['t']('mcpConfig.connectionStatus.connected');case _0x44c736[_0x295edf(0x22c)]:return _0x4b0572['t'](_0x295edf(0x1a6));case _0x44c736[_0x295edf(0x148)]:return _0x4b0572['t'](_0x295edf(0x114));case _0x44c736['RETRYING']:return _0x4b0572['t'](_0x295edf(0x159));default:return _0x4b0572['t'](_0x295edf(0x136));}},_0x2759c9=_0x345776=>{var _0x376d7b=_0x5bcf1f;switch(_0x345776){case _0x48d292[_0x376d7b(0x11c)]:return _0x4b0572['t'](_0x376d7b(0x208));case _0x48d292[_0x376d7b(0x16b)]:return _0x4b0572['t'](_0x376d7b(0x210));case _0x48d292['SESSION_ID_OCCUPIED']:return _0x4b0572['t'](_0x376d7b(0x21e));case _0x48d292['NETWORK_ERROR']:return _0x4b0572['t']('mcpConfig.connectionError.networkError');case _0x48d292[_0x376d7b(0x1ab)]:return _0x4b0572['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0xfcb724=_0x5c00bd(()=>{var _0x167b90=_0x5bcf1f;const _0x474b44={..._0x22a357,'apiKey':_0x2b3220[_0x167b90(0x256)](),'enableAuth':_0x3705f6};_0x4f8c1c(_0x474b44);},[_0x22a357,_0x2b3220,_0x3705f6,_0x4f8c1c]),_0x24cad4=_0x2b3220[_0x5bcf1f(0x256)]()[_0x5bcf1f(0x11e)]>0x0;return _0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x140),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x119),'children':_0x46fbb5(_0x5bcf1f(0x12a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x20d),'children':_0x4d1396('span',{'className':_0x5bcf1f(0x122),'children':'⚙'})}),_0x4d1396(_0x5bcf1f(0x12a),{'children':_0x4d1396('p',{'className':_0x5bcf1f(0x258),'children':_0x4b0572['t']('mcpConfig.description')})})]})}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x145),'children':[_0x4d1396('div',{'className':_0x5bcf1f(0x1c9)+_0x284996(_0x3e06bb,_0x4a388f)+_0x5bcf1f(0x218),'children':_0x46fbb5('div',{'className':_0x5bcf1f(0x253),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':'\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'+_0x5c049d(_0x3e06bb,_0x4a388f)+_0x5bcf1f(0x20c)}),_0x4d1396(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x1bd),'children':_0x5ce85a(_0x3e06bb)})]})}),_0x4a388f!==_0x48d292[_0x5bcf1f(0x133)]&&(_0x3e06bb===_0x44c736[_0x5bcf1f(0x148)]||_0x4a388f===_0x48d292[_0x5bcf1f(0x11c)]||_0x4a388f===_0x48d292[_0x5bcf1f(0x16b)])&&_0x4d1396(_0x5bcf1f(0x12a),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x116),'children':[_0x4d1396(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x109),'children':'⚠️'}),_0x4d1396('p',{'className':_0x5bcf1f(0x137),'children':_0x2759c9(_0x4a388f)})]})})]}),_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x235),'children':_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x187),'children':[_0x46fbb5('div',{'className':_0x5bcf1f(0x229),'children':[_0x46fbb5(_0x5bcf1f(0x12e),{'className':_0x5bcf1f(0x1e8),'children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'🔑'}),'\x20',_0x4b0572['t'](_0x5bcf1f(0x1ee)),_0x4d1396('span',{'className':_0x5bcf1f(0x15e),'children':'*'}),_0xce0cb4&&_0x4d1396('a',{'href':_0x5bcf1f(0x113),'onClick':()=>_0x5e0a6a(!0x0),'className':_0x5bcf1f(0x1b8),'title':_0x4b0572['t'](_0x5bcf1f(0x19e)),'children':_0x4d1396(se,{})})]}),_0x4d1396(_0x453dda,{'type':_0x5bcf1f(0x169),'placeholder':_0x4b0572['t'](_0x5bcf1f(0x211)),'value':_0x2b3220,'onChange':_0x55bfd8,'disabled':_0x795d82,'autoComplete':_0x5bcf1f(0x22f)}),_0x4d1396('p',{'className':_0x5bcf1f(0x1ae),'children':_0x4b0572['t'](_0x5bcf1f(0x107))})]}),_0xce0cb4&&_0x4c8915&&_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x21c),'children':[_0x4d1396('a',{'href':_0x5bcf1f(0x113),'onClick':()=>_0x5e0a6a(!0x1),'className':_0x5bcf1f(0x1f0),'title':_0x5bcf1f(0x13c),'children':_0x4d1396(ae,{})}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x14d),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1c5),'children':_0x4d1396(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x147),'children':'🚀'})}),_0x46fbb5('div',{'className':_0x5bcf1f(0x1ea),'children':[_0x4d1396('h4',{'className':_0x5bcf1f(0x1d4),'children':_0x4b0572['t'](_0x5bcf1f(0x19e))}),_0x4d1396('p',{'className':_0x5bcf1f(0x1b1),'children':_0x4b0572['t'](_0x5bcf1f(0x1a7))}),_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x18e),'children':_0x5a0dff&&_0x46fbb5('a',{'href':_0x87197,'target':_0x5bcf1f(0x1ce),'rel':_0x5bcf1f(0x1bc),'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'🤖'}),_0x4b0572['t'](_0x5bcf1f(0x1a2)),_0x4d1396(_0x5bcf1f(0x184),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1f2),'children':['✨','\x20',_0x4b0572['t'](_0x5bcf1f(0x1de))]})]})]})]}),_0x5257a6[_0x5bcf1f(0x10d)]&&_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x160),'children':[_0x46fbb5('h4',{'className':_0x5bcf1f(0x200),'children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'🔗'}),'\x20',_0x4b0572['t'](_0x5bcf1f(0x172))]}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x110),'children':[_0x46fbb5('div',{'className':_0x5bcf1f(0x1fd),'children':[_0x4d1396('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1eb),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':'univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x4b0572['t']('mcpConfig.serverEndpoint')}),_0x4d1396('code',{'className':_0x5bcf1f(0x1c1),'children':_0x22a357['mcpServerUrl']})]})]}),_0x46fbb5('div',{'className':_0x5bcf1f(0x1fd),'children':[_0x4d1396('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1eb),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1dd),'children':_0x4b0572['t']('mcpConfig.sessionId')}),_0x4d1396('code',{'className':_0x5bcf1f(0x1a4),'children':_0x22a357[_0x5bcf1f(0x1df)]||'default'})]})]})]})]}),_0x4d1396(_0xde16eb,{'onClick':_0xfcb724,'disabled':!_0x24cad4||_0x795d82,'className':_0x5bcf1f(0x135),'children':_0x795d82?_0x46fbb5(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x253),'children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'⟲'}),_0x4b0572['t']('mcpConfig.saving')]}):_0x46fbb5('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4d1396(ce,{}),_0x4b0572['t'](_0x5bcf1f(0x222))]})}),_0x4d1396('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x46fbb5('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x4d1396(_0x5bcf1f(0x184),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x248),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x25d),'children':_0x5bcf1f(0x24f)}),_0x46fbb5('div',{'children':['•',_0x4b0572['t']('mcpConfig.note1')]}),_0x46fbb5(_0x5bcf1f(0x12a),{'children':['•',_0x4b0572['t']('mcpConfig.note2')]})]})]})})]})})]});}const U=_0x23fab0(0x14a),J={'showDeveloperTools':!0x1};var Je=Object[_0x23fab0(0x18f)],Qe=(_0x1a8a5a,_0x5594b0,_0x1b5e78,_0x5e220c)=>{var _0x596632=_0x23fab0;for(var _0x30f930=_0x5e220c>0x1?void 0x0:_0x5e220c?Je(_0x5594b0,_0x1b5e78):_0x5594b0,_0x24607c=_0x1a8a5a[_0x596632(0x11e)]-0x1,_0x2bd1c9;_0x24607c>=0x0;_0x24607c--)(_0x2bd1c9=_0x1a8a5a[_0x24607c])&&(_0x30f930=_0x2bd1c9(_0x30f930)||_0x30f930);return _0x30f930;},p=(_0x1f88ab,_0x2eee63)=>(_0x5691ee,_0x108412)=>_0x2eee63(_0x5691ee,_0x108412,_0x1f88ab);const R=_0x23fab0(0x128),j=_0x23fab0(0x14b);let _=class extends _0x56b7ac{constructor(_0x13dd63,_0x18773e,_0x3e8997,_0x2ae57f,_0x2f48cb,_0xdbdab,_0x2feb08,_0x37658e,_0x943f11,_0x2a4b5e){var _0x1f3f72=_0x23fab0;super(),N(this,'_loading$',new _0xc71a63(!0x1)),N(this,'_mcpCoreConfig$',new _0xc71a63({})),N(this,'_config$',new _0xc71a63({})),N(this,_0x1f3f72(0x1e3),async _0x12e3b0=>{var _0x33bf36=_0x1f3f72;this[_0x33bf36(0x17e)][_0x33bf36(0x209)](!0x0);try{const _0x3770e1=await this[_0x33bf36(0x115)](_0x12e3b0);if(!_0x3770e1[_0x33bf36(0x1d0)]){this[_0x33bf36(0x214)][_0x33bf36(0x111)]({'type':_0x4dddf5[_0x33bf36(0x188)],'content':_0x3770e1[_0x33bf36(0x259)]||this[_0x33bf36(0x120)]['t'](_0x33bf36(0x1a8))});return;}_0x12e3b0[_0x33bf36(0x146)]?await this[_0x33bf36(0x1cf)][_0x33bf36(0x217)](R,_0x12e3b0[_0x33bf36(0x146)]['trim']()):await this[_0x33bf36(0x1cf)][_0x33bf36(0x17c)](R),this[_0x33bf36(0x241)][_0x33bf36(0x193)](_0x5887db,{..._0x12e3b0,'apiKey':_0x12e3b0[_0x33bf36(0x146)]['trim']()}),this[_0x33bf36(0x166)][_0x33bf36(0x209)]({..._0x12e3b0,'apiKey':_0x12e3b0['apiKey'][_0x33bf36(0x256)]()}),this[_0x33bf36(0x214)][_0x33bf36(0x111)]({'type':_0x4dddf5[_0x33bf36(0x1e9)],'content':this['_localeService']['t'](_0x33bf36(0x144))}),setTimeout(()=>{var _0x5ce717=_0x33bf36;this['_dialogService'][_0x5ce717(0x10f)](j);},0x320);}catch(_0x616a5f){this['_logService']['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x616a5f),this[_0x33bf36(0x214)][_0x33bf36(0x111)]({'type':_0x4dddf5[_0x33bf36(0x188)],'content':this[_0x33bf36(0x120)]['t']('mcpConfig.configError')});}finally{this[_0x33bf36(0x17e)][_0x33bf36(0x209)](!0x1);}}),(this['_injector']=_0x13dd63,this['_uiPartsService']=_0x18773e,this['_configService']=_0x3e8997,this[_0x1f3f72(0x1cf)]=_0x2ae57f,this['_dialogService']=_0x2f48cb,this['_messageService']=_0xdbdab,this[_0x1f3f72(0x18c)]=_0x2feb08,this[_0x1f3f72(0x120)]=_0x37658e,this[_0x1f3f72(0x195)]=_0x943f11,this[_0x1f3f72(0x1c2)]=_0x2a4b5e,this[_0x1f3f72(0x22d)](),this[_0x1f3f72(0x118)](),this['_registerComponent']());}[_0x23fab0(0x1cc)](){var _0x549932=_0x23fab0;this[_0x549932(0x1f4)]['open']({'id':j,'title':{'title':this[_0x549932(0x120)]['t'](_0x549932(0x252))},'children':{'label':'MCPConfigPanel'},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5985fd=_0x549932;this[_0x5985fd(0x1f4)][_0x5985fd(0x10f)](j);}});}[_0x23fab0(0x13f)](){var _0x2dba9a=_0x23fab0;return this['_mcpCoreConfig$'][_0x2dba9a(0x12d)];}[_0x23fab0(0x213)](){var _0x52c203=_0x23fab0;this[_0x52c203(0x143)](this['_componentManager'][_0x52c203(0x1d1)](_0x52c203(0x1a3),this[_0x52c203(0x124)]()));}[_0x23fab0(0x124)](){var _0x52dcf1=_0x23fab0;return _0x3e31ca(()=>{var _0x1e107f=_0x3f3e,_0x1a2636,_0x2c5838;return _0x4d1396(Xe,{'config':this[_0x1e107f(0x17b)][_0x1e107f(0x12d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x1e107f(0x12d)],'onSave':this['_handleConfigSave'],'loading':this[_0x1e107f(0x17e)][_0x1e107f(0x12d)],'connectionStatus$':(_0x1a2636=this[_0x1e107f(0x1c2)])==null?void 0x0:_0x1a2636['connectionStatus$'],'connectionError$':(_0x2c5838=this['_mcpConnectionController'])==null?void 0x0:_0x2c5838[_0x1e107f(0x23e)]});},this[_0x52dcf1(0x1ac)]);}[_0x23fab0(0x22d)](){var _0x1c16a9=_0x23fab0;this[_0x1c16a9(0x143)](this[_0x1c16a9(0x241)]['subscribeConfigValue$'](_0x5887db)[_0x1c16a9(0x1bf)](_0x14a890=>{var _0x3d5e3f=_0x1c16a9;this['_mcpCoreConfig$'][_0x3d5e3f(0x209)](_0x14a890||{});}));const _0x566a69=this[_0x1c16a9(0x241)][_0x1c16a9(0x1f6)](_0x5887db);this['_mcpCoreConfig$'][_0x1c16a9(0x209)](_0x566a69||{}),this[_0x1c16a9(0x143)](this[_0x1c16a9(0x241)][_0x1c16a9(0x1e7)](U)[_0x1c16a9(0x1bf)](_0x33c11c=>{var _0x33f0ef=_0x1c16a9;this[_0x33f0ef(0x17b)][_0x33f0ef(0x209)](_0x33c11c||{});}));const _0x352d7f=this[_0x1c16a9(0x241)][_0x1c16a9(0x1f6)](U);this[_0x1c16a9(0x17b)][_0x1c16a9(0x209)](_0x352d7f||{});}async[_0x23fab0(0x118)](){var _0x3021d0=_0x23fab0;const _0x4e0def=await this['_localStorageService'][_0x3021d0(0x204)](R);if(_0x4e0def){const _0x110238={...this[_0x3021d0(0x166)][_0x3021d0(0x12d)],'apiKey':_0x4e0def};this[_0x3021d0(0x241)][_0x3021d0(0x193)](_0x5887db,_0x110238),this['_mcpCoreConfig$']['next'](_0x110238);}}async['_validateConfig'](_0x46b014){var _0x5345ac=_0x23fab0;if(!_0x46b014[_0x5345ac(0x146)]||_0x46b014[_0x5345ac(0x146)][_0x5345ac(0x256)]()[_0x5345ac(0x11e)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x5345ac(0x190))};if(_0x46b014[_0x5345ac(0x146)][_0x5345ac(0x256)]()[_0x5345ac(0x11e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5345ac(0x120)]['t'](_0x5345ac(0x14c))};try{const _0x2c13d6=await this[_0x5345ac(0x1ac)][_0x5345ac(0x1b5)](_0x229619)[_0x5345ac(0x199)](_0x46b014['apiKey'][_0x5345ac(0x256)]());return _0x2c13d6[_0x5345ac(0x1d0)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c13d6[_0x5345ac(0x158)]||this[_0x5345ac(0x120)]['t'](_0x5345ac(0x149))};}catch(_0x373353){return console[_0x5345ac(0x11f)](_0x5345ac(0x1a5),_0x373353),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x27af5e(_0x1fc671)),p(0x1,_0x4d1b0e),p(0x2,_0x5935da),p(0x3,_0x396cbc),p(0x4,_0x223ca1),p(0x5,_0x1d356e),p(0x6,_0x27af5e(_0x30c28c)),p(0x7,_0x27af5e(_0x25beb3)),p(0x8,_0x5d8729),p(0x9,_0x27af5e(_0x229619))],_);const W={'id':_0x23fab0(0x22b),'type':_0x158acf[_0x23fab0(0x1b3)],'handler':async(_0x20a412,_0x174e52)=>(_0x20a412[_0x23fab0(0x1b5)](_)[_0x23fab0(0x1cc)](),!0x0)};function ve(_0x4205c7,_0x3282bd){var _0xcae78e=_0x23fab0;switch(_0x4205c7){case _0x44c736[_0xcae78e(0x1cd)]:return _0x3282bd===_0x48d292[_0xcae78e(0x11c)]?'mcpStatus.missingApiKey':_0xcae78e(0x240);case _0x44c736[_0xcae78e(0x22c)]:return'mcpStatus.connecting';case _0x44c736['CONNECTED']:return'mcpStatus.connected';case _0x44c736[_0xcae78e(0x148)]:switch(_0x3282bd){case _0x48d292[_0xcae78e(0x16b)]:return _0xcae78e(0x1a1);case _0x48d292[_0xcae78e(0x15f)]:return _0xcae78e(0x1e1);case _0x48d292[_0xcae78e(0x1d2)]:return _0xcae78e(0x1d8);case _0x48d292[_0xcae78e(0x1ab)]:return'mcpStatus.maxRetriesExceeded';default:return _0xcae78e(0x255);}case _0x44c736[_0xcae78e(0x173)]:return _0xcae78e(0x174);default:return'mcpStatus.unknown';}}function en(_0x3a9fe9,_0x1d508f,_0x2e6784){var _0x28c358=_0x23fab0;const _0x2f3c94=ve(_0x3a9fe9,_0x1d508f),_0x35e7bc=_0x2e6784['t'](_0x2f3c94);return _0x3a9fe9===_0x44c736[_0x28c358(0x1cd)]&&_0x1d508f===_0x48d292[_0x28c358(0x11c)]?_0x35e7bc+'\x20-\x20'+_0x2e6784['t']('mcpStatus.clickToConfigure'):_0x3a9fe9===_0x44c736[_0x28c358(0x108)]?''+_0x35e7bc:_0x3a9fe9===_0x44c736['DISCONNECTED']||_0x3a9fe9===_0x44c736['FAILED']?_0x35e7bc+_0x28c358(0x16d)+_0x2e6784['t'](_0x28c358(0x125)):_0x35e7bc;}function nn(_0x5d904c){var _0x5eac81=_0x23fab0;switch(_0x5d904c){case _0x44c736[_0x5eac81(0x108)]:return'univer-text-green-500';case _0x44c736['CONNECTING']:case _0x44c736[_0x5eac81(0x173)]:return _0x5eac81(0x1d5);case _0x44c736[_0x5eac81(0x148)]:case _0x44c736[_0x5eac81(0x1cd)]:return'univer-text-red-500';default:return _0x5eac81(0x170);}}function rn(_0x144ba8){var _0x578ede=_0x23fab0;const {status$:_0x599fb8,error$:_0x132974,onConfigure:_0x13fb33}=_0x144ba8,_0x1fc866=_0x11bc25(_0x599fb8,_0x44c736['DISCONNECTED']),_0x1f50f7=_0x11bc25(_0x132974,_0x48d292[_0x578ede(0x133)]),_0x105188=_0x24d075(_0x25beb3),_0x4562da=_0x1fc866===_0x44c736['CONNECTED'],_0x2e8365=_0x1fc866===_0x44c736[_0x578ede(0x22c)]||_0x1fc866===_0x44c736[_0x578ede(0x173)],_0x5ebf0e=_0x105188['t'](ve(_0x1fc866,_0x1f50f7)),_0x556056=en(_0x1fc866,_0x1f50f7,_0x105188),_0x2e0a9e=nn(_0x1fc866),_0x479099=_0x4562da?_0x4d1396(ue,{}):_0x4d1396(le,{}),_0x413b54=_0x5c00bd(()=>{_0x13fb33&&_0x13fb33();},[_0x4562da,_0x2e8365,_0x13fb33]);function _0x2497ce(){var _0x47d8e6=_0x578ede;return _0x46fbb5(_0x47d8e6(0x12a),{'className':_0x44e383(_0x47d8e6(0x1e5),_0x13fb33&&_0x47d8e6(0x1ff)),'onClick':_0x13fb33?_0x413b54:void 0x0,'children':[_0x4d1396(_0x47d8e6(0x12a),{'className':_0x44e383(_0x47d8e6(0x19d),_0x2e0a9e),'children':_0x479099}),_0x4d1396('div',{'className':_0x47d8e6(0x1af),'children':_0x5ebf0e})]});}return _0x4d1396(_0x2abc33,{'title':_0x556056,'placement':_0x578ede(0x176),'children':_0x2497ce()});}var tn=Object[_0x23fab0(0x18f)],on=(_0x131837,_0x214b40,_0xa94caa,_0x85c675)=>{for(var _0x2310cb=_0x85c675>0x1?void 0x0:_0x85c675?tn(_0x214b40,_0xa94caa):_0x214b40,_0x20b843=_0x131837['length']-0x1,_0x1ed43a;_0x20b843>=0x0;_0x20b843--)(_0x1ed43a=_0x131837[_0x20b843])&&(_0x2310cb=_0x1ed43a(_0x2310cb)||_0x2310cb);return _0x2310cb;},L=(_0x1df828,_0x412f9c)=>(_0x1350a2,_0x3c42d2)=>_0x412f9c(_0x1350a2,_0x3c42d2,_0x1df828);let O=class extends _0x56b7ac{constructor(_0x502642,_0x4cd6dc,_0x29950d){var _0x1247ef=_0x23fab0;super(),this[_0x1247ef(0x1ac)]=_0x502642,this[_0x1247ef(0x13d)]=_0x4cd6dc,this[_0x1247ef(0x249)]=_0x29950d,this[_0x1247ef(0x153)]();}[_0x23fab0(0x153)](){var _0x48427c=_0x23fab0;this[_0x48427c(0x143)](this[_0x48427c(0x249)]['registerComponent'](_0x33a29c[_0x48427c(0x10a)],()=>_0x3e31ca(cn({'status$':this[_0x48427c(0x13d)][_0x48427c(0x11a)],'error$':this['_connectionController'][_0x48427c(0x23e)],'onConfigure':()=>this['_handleConfigure']()}),this[_0x48427c(0x1ac)])));}[_0x23fab0(0x24a)](){var _0x20a619=_0x23fab0;this[_0x20a619(0x1ac)]['get'](_)[_0x20a619(0x1cc)]();}};O=on([L(0x0,_0x27af5e(_0x1fc671)),L(0x1,_0x27af5e(_0x229619)),L(0x2,_0x4d1b0e)],O);function cn(_0x13f12d){const {status$:_0x337658,error$:_0x3a1d5c,onConfigure:_0x4edd92}=_0x13f12d;return function(){return _0x4d1396(rn,{'status$':_0x337658,'error$':_0x3a1d5c,'onConfigure':_0x4edd92});};}function an(_0x22bd21){var _0x1e8188=_0x23fab0;return{'id':W['id'],'type':_0x16e1aa[_0x1e8188(0x134)],'icon':'MenuIcon','title':_0x1e8188(0x252),'tooltip':'mcpConfig.title'};}const sn={[_0x19bf15[_0x23fab0(0x1ad)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object['getOwnPropertyDescriptor'],un=(_0x589070,_0x577b6b,_0x18d06f,_0x1cbff6)=>{var _0x188caa=_0x23fab0;for(var _0x2df292=_0x1cbff6>0x1?void 0x0:_0x1cbff6?ln(_0x577b6b,_0x18d06f):_0x577b6b,_0x4bb291=_0x589070[_0x188caa(0x11e)]-0x1,_0x46ab3e;_0x4bb291>=0x0;_0x4bb291--)(_0x46ab3e=_0x589070[_0x4bb291])&&(_0x2df292=_0x46ab3e(_0x2df292)||_0x2df292);return _0x2df292;},Q=(_0x20067f,_0x2b3b7b)=>(_0x58fe64,_0x42f968)=>_0x2b3b7b(_0x58fe64,_0x42f968,_0x20067f);let k=class extends _0x56b7ac{constructor(_0x4684f9,_0x3f8bd6){var _0xb04fe=_0x23fab0;super(),this[_0xb04fe(0x1c4)]=_0x4684f9,this[_0xb04fe(0x19f)]=_0x3f8bd6,this[_0xb04fe(0x151)](),this[_0xb04fe(0x215)]();}[_0x23fab0(0x151)](){var _0x4afd3d=_0x23fab0;[W][_0x4afd3d(0x13a)](_0x4f78b3=>{var _0x1a4f8b=_0x4afd3d;this[_0x1a4f8b(0x143)](this[_0x1a4f8b(0x1c4)][_0x1a4f8b(0x180)](_0x4f78b3));});}['_initializeMenus'](){var _0x15eac9=_0x23fab0;this['_menuManagerService'][_0x15eac9(0x1d9)](sn);}};k=un([Q(0x0,_0x3381d7),Q(0x1,_0x53b950)],k);const Nn={'mcpStatus':{'disconnected':_0x23fab0(0x1be),'connecting':_0x23fab0(0x223),'connected':_0x23fab0(0x1e4),'failed':_0x23fab0(0x141),'retrying':_0x23fab0(0x1f1),'unknown':_0x23fab0(0x1d3),'missingApiKey':_0x23fab0(0x202),'invalidApiKey':_0x23fab0(0x21a),'sessionOccupied':_0x23fab0(0x12b),'networkError':_0x23fab0(0x12f),'maxRetriesExceeded':_0x23fab0(0x1d6),'clickToConnect':_0x23fab0(0x1fc),'clickToConfigure':_0x23fab0(0x207)},'mcpConfig':{'title':_0x23fab0(0x242),'description':_0x23fab0(0x1e6),'apiKey':_0x23fab0(0x186),'apiKeyPlaceholder':_0x23fab0(0x10c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x23fab0(0x177),'enableAuthHint':_0x23fab0(0x192),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x23fab0(0x1b4),'sessionId':'Session\x20ID','maxRetries':_0x23fab0(0x1c0),'save':_0x23fab0(0x230),'saving':'Saving...','note1':_0x23fab0(0x168),'note2':_0x23fab0(0x150),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x23fab0(0x25c),'apiApplyInfo':{'title':_0x23fab0(0x161),'description':_0x23fab0(0x1ed),'univerAiLabel':_0x23fab0(0x12c),'getStarted':_0x23fab0(0x19a)},'validation':{'apiKeyRequired':_0x23fab0(0x244),'apiKeyTooShort':_0x23fab0(0x14e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x23fab0(0x129)},'connectionStatus':{'disconnected':_0x23fab0(0x21b),'connecting':_0x23fab0(0x117),'connected':_0x23fab0(0x220),'failed':_0x23fab0(0x18a),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x23fab0(0x257),'invalidApiKey':_0x23fab0(0x15d),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Pn={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x23fab0(0x233),'connected':_0x23fab0(0x224),'failed':_0x23fab0(0x14f),'retrying':_0x23fab0(0x1b0),'unknown':_0x23fab0(0x231),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x23fab0(0x10b),'sessionOccupied':_0x23fab0(0x15b),'networkError':_0x23fab0(0x162),'maxRetriesExceeded':_0x23fab0(0x1a0),'clickToConnect':_0x23fab0(0x1c8),'clickToConfigure':_0x23fab0(0x1b2)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x23fab0(0x20e),'apiKeyPlaceholder':_0x23fab0(0x212),'apiKeyHint':_0x23fab0(0x157),'enableAuth':_0x23fab0(0x131),'enableAuthHint':_0x23fab0(0x24c),'connectionInfo':_0x23fab0(0x156),'serverEndpoint':_0x23fab0(0x236),'sessionId':_0x23fab0(0x123),'maxRetries':_0x23fab0(0x1f8),'save':_0x23fab0(0x191),'saving':_0x23fab0(0x142),'note1':_0x23fab0(0x13e),'note2':_0x23fab0(0x16c),'configSaved':_0x23fab0(0x219),'configError':_0x23fab0(0x1ef),'apiApplyInfo':{'title':_0x23fab0(0x234),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x23fab0(0x179),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x23fab0(0x126),'invalidApiKey':_0x23fab0(0x181)},'connectionStatus':{'disconnected':_0x23fab0(0x227),'connecting':_0x23fab0(0x238),'connected':_0x23fab0(0x1f9),'failed':'连接失败','retrying':_0x23fab0(0x1c6)},'connectionError':{'missingApiKey':_0x23fab0(0x10e),'invalidApiKey':_0x23fab0(0x247),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':_0x23fab0(0x1a9),'maxRetriesExceeded':_0x23fab0(0x121)}}};var vn=Object['defineProperty'],dn=Object[_0x23fab0(0x18f)],gn=(_0x43380d,_0x325774,_0x53fcc4)=>_0x325774 in _0x43380d?vn(_0x43380d,_0x325774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53fcc4}):_0x43380d[_0x325774]=_0x53fcc4,fn=(_0x3bad50,_0x577c6d,_0x513b5b,_0x31172b)=>{for(var _0x2516c7=_0x31172b>0x1?void 0x0:_0x31172b?dn(_0x577c6d,_0x513b5b):_0x577c6d,_0xc44972=_0x3bad50['length']-0x1,_0x3d89b4;_0xc44972>=0x0;_0xc44972--)(_0x3d89b4=_0x3bad50[_0xc44972])&&(_0x2516c7=_0x3d89b4(_0x2516c7)||_0x2516c7);return _0x2516c7;},P=(_0x54c4e5,_0x42a837)=>(_0x48738f,_0x414f3a)=>_0x42a837(_0x48738f,_0x414f3a,_0x54c4e5),pn=(_0x63478f,_0x4d5a40,_0x5efc45)=>gn(_0x63478f,_0x4d5a40+'',_0x5efc45);let G=class extends _0x57147d{constructor(_0x6efa03=J,_0x50a61c,_0x52ba6e,_0x779e26,_0x312adc,_0x5e13f7){var _0x2034d4=_0x23fab0;super(),this[_0x2034d4(0x15c)]=_0x6efa03,this[_0x2034d4(0x1ac)]=_0x50a61c,this[_0x2034d4(0x241)]=_0x52ba6e,this[_0x2034d4(0x249)]=_0x779e26,this[_0x2034d4(0x1cf)]=_0x312adc,this[_0x2034d4(0x120)]=_0x5e13f7;const {..._0xe62ae4}=_0x4fb00c({},J,this[_0x2034d4(0x15c)]);this[_0x2034d4(0x241)][_0x2034d4(0x193)](U,_0xe62ae4);}async[_0x23fab0(0x182)](){var _0x1e13fd=_0x23fab0;[[O],[_],[k]][_0x1e13fd(0x13a)](_0x3e41c0=>this['_injector'][_0x1e13fd(0x163)](_0x3e41c0)),this[_0x1e13fd(0x1ac)][_0x1e13fd(0x1b5)](O),this['_injector'][_0x1e13fd(0x1b5)](_),this['_injector']['get'](k);}};pn(G,_0x23fab0(0x221),_0x23fab0(0x20f)),G=fn([_0x252ca3(_0x20dda9),P(0x1,_0x27af5e(_0x1fc671)),P(0x2,_0x5935da),P(0x3,_0x4d1b0e),P(0x4,_0x396cbc),P(0x5,_0x27af5e(_0x25beb3))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
1
+ var _0x2440ca=_0x3b95;(function(_0x14d606,_0x913a3c){var _0x3994c0=_0x3b95,_0x41145d=_0x14d606();while(!![]){try{var _0x2b94a5=parseInt(_0x3994c0(0x1e7))/0x1*(parseInt(_0x3994c0(0x19a))/0x2)+-parseInt(_0x3994c0(0x147))/0x3*(-parseInt(_0x3994c0(0x184))/0x4)+-parseInt(_0x3994c0(0x226))/0x5*(-parseInt(_0x3994c0(0x253))/0x6)+-parseInt(_0x3994c0(0x1e3))/0x7*(-parseInt(_0x3994c0(0x25b))/0x8)+-parseInt(_0x3994c0(0x165))/0x9*(-parseInt(_0x3994c0(0x16f))/0xa)+parseInt(_0x3994c0(0x25d))/0xb*(parseInt(_0x3994c0(0x1c2))/0xc)+-parseInt(_0x3994c0(0x17e))/0xd;if(_0x2b94a5===_0x913a3c)break;else _0x41145d['push'](_0x41145d['shift']());}catch(_0x5c31ca){_0x41145d['push'](_0x41145d['shift']());}}}(_0xc8b4,0x77ce2));var Ee=Object[_0x2440ca(0x265)],we=(_0x562ffc,_0x505dd6,_0x8bd26e)=>_0x505dd6 in _0x562ffc?Ee(_0x562ffc,_0x505dd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8bd26e}):_0x562ffc[_0x505dd6]=_0x8bd26e,x=(_0x5a869f,_0x455a52,_0x2bd555)=>we(_0x5a869f,typeof _0x455a52!='symbol'?_0x455a52+'':_0x455a52,_0x2bd555);function _0x3b95(_0x3b9d19,_0x2c5bf2){var _0xc8b42b=_0xc8b4();return _0x3b95=function(_0x3b95c7,_0x2afc27){_0x3b95c7=_0x3b95c7-0x106;var _0x3936dc=_0xc8b42b[_0x3b95c7];return _0x3936dc;},_0x3b95(_0x3b9d19,_0x2c5bf2);}import{LocaleService as _0x698abf,Inject as _0x454fe3,Injector as _0x49e24c,IConfigService as _0x45eb3c,ILocalStorageService as _0x21fbd7,ILogService as _0x45587d,Disposable as _0x14919f,CommandType as _0x1f19a2,ICommandService as _0x565db4,DependentOn as _0x249ee2,Plugin as _0x2f003c,merge as _0x2b9a14}from'@univerjs/core';import{jsxs as _0x2630a2,jsx as _0x24d98a}from'react/jsx-runtime';import{MCPConnectionStatus as _0xd88c50,MCPConnectionError as _0x29fa50,MCPConnectionController as _0x53a6a3,MCP_PLUGIN_CONFIG_KEY as _0x251db0,UniverMCPPlugin as _0x3c0971}from'@univerjs-pro/mcp';import{Input as _0x417dbd,Button as _0x1fadd3,MessageType as _0x3df149,Tooltip as _0x1b4c08,clsx as _0x2fed94}from'@univerjs/design';import{useDependency as _0x37a08a,useObservable as _0x358ce2,IUIPartsService as _0x376277,IDialogService as _0x194bc5,IMessageService as _0x575cce,ComponentManager as _0xb2e913,connectInjector as _0x528ff7,BuiltInUIPart as _0x1d86ff,MenuItemType as _0x476e83,RibbonStartGroup as _0x288030,IMenuManagerService as _0x20abba}from'@univerjs/ui';import{BehaviorSubject as _0x673c8c}from'rxjs';import{forwardRef as _0x40004f,useRef as _0x51ff3f,createElement as _0x25131c,useState as _0x2ba4bb,useCallback as _0x5dbac7}from'react';import{ISocketService as _0x3d63f7,WebSocketService as _0x4d4596}from'@univerjs/network';var g=function(){var _0x1a9406=_0x2440ca;return g=Object[_0x1a9406(0x257)]||function(_0x40160b){var _0x20e4ce=_0x1a9406;for(var _0x4f527e,_0x37dc7d=0x1,_0x2be2be=arguments[_0x20e4ce(0x1f8)];_0x37dc7d<_0x2be2be;_0x37dc7d++){_0x4f527e=arguments[_0x37dc7d];for(var _0x24a9c3 in _0x4f527e)Object[_0x20e4ce(0x135)][_0x20e4ce(0x1de)][_0x20e4ce(0x25a)](_0x4f527e,_0x24a9c3)&&(_0x40160b[_0x24a9c3]=_0x4f527e[_0x24a9c3]);}return _0x40160b;},g[_0x1a9406(0x14f)](this,arguments);},We=function(_0x37095f,_0x368acc){var _0x527dc2=_0x2440ca,_0x46c427={};for(var _0x4f86a3 in _0x37095f)Object['prototype']['hasOwnProperty'][_0x527dc2(0x25a)](_0x37095f,_0x4f86a3)&&_0x368acc[_0x527dc2(0x252)](_0x4f86a3)<0x0&&(_0x46c427[_0x4f86a3]=_0x37095f[_0x4f86a3]);if(_0x37095f!=null&&typeof Object['getOwnPropertySymbols']==_0x527dc2(0x19d)){for(var _0x3c2561=0x0,_0x4f86a3=Object[_0x527dc2(0x181)](_0x37095f);_0x3c2561<_0x4f86a3['length'];_0x3c2561++)_0x368acc['indexOf'](_0x4f86a3[_0x3c2561])<0x0&&Object[_0x527dc2(0x135)][_0x527dc2(0x1dd)][_0x527dc2(0x25a)](_0x37095f,_0x4f86a3[_0x3c2561])&&(_0x46c427[_0x4f86a3[_0x3c2561]]=_0x37095f[_0x4f86a3[_0x3c2561]]);}return _0x46c427;},b=_0x40004f(function(_0x1c03be,_0x165bdb){var _0x3db783=_0x2440ca,_0x5a1938=_0x1c03be[_0x3db783(0x167)],_0x5ea807=_0x1c03be['id'],_0x123d23=_0x1c03be[_0x3db783(0x19f)],_0x5d2aff=_0x1c03be[_0x3db783(0x1ec)],_0x118cc1=We(_0x1c03be,[_0x3db783(0x167),'id',_0x3db783(0x19f),_0x3db783(0x1ec)]),_0x23b46e='univerjs-icon\x20univerjs-icon-'[_0x3db783(0x248)](_0x5ea807,'\x20')[_0x3db783(0x248)](_0x123d23||'')['trim'](),_0x2502be=_0x51ff3f('_'['concat'](Xe()));return le(_0x5a1938,''['concat'](_0x5ea807),{'defIds':_0x5a1938[_0x3db783(0x124)],'idSuffix':_0x2502be['current']},g({'ref':_0x165bdb,'className':_0x23b46e},_0x118cc1),_0x5d2aff);});function le(_0x20751c,_0x3ba416,_0x538d74,_0x18f2fd,_0x5739d5){var _0x19686e=_0x2440ca;return _0x25131c(_0x20751c['tag'],g(g({'key':_0x3ba416},qe(_0x20751c,_0x538d74,_0x5739d5)),_0x18f2fd),(Ze(_0x20751c,_0x538d74)['children']||[])[_0x19686e(0x249)](function(_0x14c577,_0xa133cd){var _0x376513=_0x19686e;return le(_0x14c577,''['concat'](_0x3ba416,'-')[_0x376513(0x248)](_0x20751c[_0x376513(0x1be)],'-')[_0x376513(0x248)](_0xa133cd),_0x538d74,void 0x0,_0x5739d5);}));}function qe(_0x1ad556,_0x536129,_0x230556){var _0x20e8cd=_0x2440ca,_0x5dd51f=g({},_0x1ad556[_0x20e8cd(0x1c3)]);_0x230556!=null&&_0x230556['colorChannel1']&&_0x5dd51f[_0x20e8cd(0x18b)]===_0x20e8cd(0x12f)&&(_0x5dd51f[_0x20e8cd(0x18b)]=_0x230556[_0x20e8cd(0x12f)]),_0x1ad556[_0x20e8cd(0x1be)]===_0x20e8cd(0x233)&&_0x5dd51f['id']&&(_0x5dd51f['id']=_0x5dd51f['id']+_0x536129[_0x20e8cd(0x17b)]),Object[_0x20e8cd(0x14e)](_0x5dd51f)[_0x20e8cd(0x1f5)](function(_0x2e589e){var _0x3f809e=_0x20e8cd,_0x3357b2=_0x2e589e[0x0],_0xb96401=_0x2e589e[0x1];_0x3357b2===_0x3f809e(0x233)&&typeof _0xb96401==_0x3f809e(0x207)&&(_0x5dd51f[_0x3357b2]=_0xb96401[_0x3f809e(0x149)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x536129[_0x3f809e(0x17b)],')')));});var _0x333294=_0x536129[_0x20e8cd(0x124)];return!_0x333294||_0x333294[_0x20e8cd(0x1f8)]===0x0||(_0x1ad556[_0x20e8cd(0x1be)]==='use'&&_0x5dd51f[_0x20e8cd(0x186)]&&(_0x5dd51f[_0x20e8cd(0x186)]=_0x5dd51f[_0x20e8cd(0x186)]+_0x536129['idSuffix']),Object[_0x20e8cd(0x14e)](_0x5dd51f)['forEach'](function(_0x1fc047){var _0x5df821=_0x20e8cd,_0x47ab3a=_0x1fc047[0x0],_0x2b1ce7=_0x1fc047[0x1];typeof _0x2b1ce7==_0x5df821(0x207)&&(_0x5dd51f[_0x47ab3a]=_0x2b1ce7[_0x5df821(0x149)](/url\(#(.*)\)/,_0x5df821(0x1d6)['concat'](_0x536129['idSuffix'],')')));})),_0x5dd51f;}function Ze(_0x2b0f63,_0x250ddd){var _0x29f848=_0x2440ca,_0x2b86b0,_0x203ab2=_0x250ddd['defIds'];return!_0x203ab2||_0x203ab2[_0x29f848(0x1f8)]===0x0?_0x2b0f63:_0x2b0f63[_0x29f848(0x1be)]==='defs'&&(!((_0x2b86b0=_0x2b0f63['children'])===null||_0x2b86b0===void 0x0)&&_0x2b86b0['length'])?g(g({},_0x2b0f63),{'children':_0x2b0f63[_0x29f848(0x23a)][_0x29f848(0x249)](function(_0x3d3bea){var _0x2db0bc=_0x29f848;return typeof _0x3d3bea[_0x2db0bc(0x1c3)]['id']=='string'&&_0x203ab2&&_0x203ab2[_0x2db0bc(0x20e)](_0x3d3bea[_0x2db0bc(0x1c3)]['id'])?g(g({},_0x3d3bea),{'attrs':g(g({},_0x3d3bea[_0x2db0bc(0x1c3)]),{'id':_0x3d3bea[_0x2db0bc(0x1c3)]['id']+_0x250ddd[_0x2db0bc(0x17b)]})}):_0x3d3bea;})}):_0x2b0f63;}function Xe(){var _0x4d795d=_0x2440ca;return Math[_0x4d795d(0x210)]()[_0x4d795d(0x174)](0x24)[_0x4d795d(0x14b)](0x2,0x8);}b[_0x2440ca(0x15b)]='UniverIcon';var Je={'tag':'svg','attrs':{'xmlns':_0x2440ca(0x234),'fill':'none','viewBox':_0x2440ca(0x1a6),'width':'1em','height':'1em'},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x1aa),'d':_0x2440ca(0x1b8),'fillRule':'evenodd','clipRule':'evenodd'}}]},ue=_0x40004f(function(_0xa86459,_0x1c7b1f){var _0x523f06=_0x2440ca;return _0x25131c(b,Object[_0x523f06(0x257)]({},_0xa86459,{'id':'check-mark-icon','ref':_0x1c7b1f,'icon':Je}));});ue[_0x2440ca(0x15b)]=_0x2440ca(0x21f);var Qe={'tag':_0x2440ca(0x220),'attrs':{'xmlns':_0x2440ca(0x234),'fill':'none','viewBox':_0x2440ca(0x1c1),'width':'1em','height':'1em'},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'stroke':'currentColor','d':_0x2440ca(0x24a),'strokeLinecap':'round','strokeLinejoin':_0x2440ca(0x258),'strokeWidth':1.33}},{'tag':_0x2440ca(0x1b7),'attrs':{'stroke':_0x2440ca(0x1aa),'d':_0x2440ca(0x11b),'strokeLinecap':_0x2440ca(0x258),'strokeLinejoin':'round','strokeWidth':1.33}}]},ve=_0x40004f(function(_0x2effba,_0x2318c6){var _0x356751=_0x2440ca;return _0x25131c(b,Object[_0x356751(0x257)]({},_0x2effba,{'id':'close-small-single','ref':_0x2318c6,'icon':Qe}));});ve['displayName']='CloseSmallSingle';var en={'tag':_0x2440ca(0x220),'attrs':{'xmlns':_0x2440ca(0x234),'fill':_0x2440ca(0x152),'viewBox':_0x2440ca(0x1a6),'width':'1em','height':_0x2440ca(0x1b9)},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x1aa),'d':_0x2440ca(0x190)}},{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x1aa),'d':_0x2440ca(0x1ee)}},{'tag':_0x2440ca(0x1b7),'attrs':{'fill':'currentColor','d':_0x2440ca(0x1e2),'fillRule':_0x2440ca(0x193),'clipRule':'evenodd'}}]},de=_0x40004f(function(_0x496e48,_0x57cbb8){var _0x479bc4=_0x2440ca;return _0x25131c(b,Object[_0x479bc4(0x257)]({},_0x496e48,{'id':_0x479bc4(0x242),'ref':_0x57cbb8,'icon':en}));});de[_0x2440ca(0x15b)]='HelpSingle';var nn={'tag':_0x2440ca(0x220),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2440ca(0x152),'viewBox':_0x2440ca(0x1a6),'width':_0x2440ca(0x1b9),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x2440ca(0x1aa),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2440ca(0x258),'strokeLinejoin':_0x2440ca(0x258),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2440ca(0x188),'attrs':{'id':_0x2440ca(0x264)},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':'white','d':_0x2440ca(0x10b)}}]}]}],'defIds':[_0x2440ca(0x264)]},ge=_0x40004f(function(_0x381f60,_0x252ab1){var _0x38b35a=_0x2440ca;return _0x25131c(b,Object[_0x38b35a(0x257)]({},_0x381f60,{'id':_0x38b35a(0x10c),'ref':_0x252ab1,'icon':nn}));});ge[_0x2440ca(0x15b)]='OffLineIcon';var rn={'tag':_0x2440ca(0x220),'attrs':{'xmlns':_0x2440ca(0x234),'fill':_0x2440ca(0x152),'viewBox':_0x2440ca(0x23b),'width':_0x2440ca(0x1b9),'height':_0x2440ca(0x1b9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2440ca(0x258),'strokeWidth':1.2}}]},{'tag':_0x2440ca(0x247),'attrs':{},'children':[{'tag':_0x2440ca(0x188),'attrs':{'id':_0x2440ca(0x256)},'children':[{'tag':_0x2440ca(0x1b7),'attrs':{'fill':_0x2440ca(0x12d),'d':'M0\x200H16V16H0z','transform':_0x2440ca(0x22c)}}]}]}],'defIds':[_0x2440ca(0x256)]},fe=_0x40004f(function(_0x1e51a6,_0x1a27d4){var _0x5260c5=_0x2440ca;return _0x25131c(b,Object[_0x5260c5(0x257)]({},_0x1e51a6,{'id':_0x5260c5(0x236),'ref':_0x1a27d4,'icon':rn}));});fe[_0x2440ca(0x15b)]=_0x2440ca(0x194);function tn(_0x5bdadd){var _0x35c391=_0x2440ca,_0x3bef7a,_0x567dbc;const {mcpCoreConfig:_0x357497,onSave:_0x457041,loading:_0x2962bd=!0x1,config:_0x480f17,connectionStatus$:_0x2aaa6f,connectionError$:_0x1dcda1,currentApiKey$:_0x16907e,currentSessionId$:_0x379f43}=_0x5bdadd,_0x197745=_0x37a08a(_0x698abf),_0x2f1e9f=_0x358ce2(_0x2aaa6f,_0xd88c50[_0x35c391(0x136)]),_0x194067=_0x358ce2(_0x1dcda1,_0x29fa50['NONE']),_0xf010c4=_0x358ce2(_0x379f43,''),_0x59f0ae=_0x358ce2(_0x16907e,''),[_0x1a074e,_0x4a835c]=_0x2ba4bb(_0x59f0ae||''),_0xc83b02=!0x0,_0x50d78d=_0x480f17[_0x35c391(0x217)]&&_0x357497[_0x35c391(0x106)]&&(_0x357497[_0x35c391(0x106)][_0x35c391(0x20e)](_0x35c391(0x175))||_0x357497[_0x35c391(0x106)][_0x35c391(0x20e)](_0x35c391(0x168))),_0x58d8fc=(_0x3bef7a=_0x357497[_0x35c391(0x106)])==null?void 0x0:_0x3bef7a[_0x35c391(0x20e)]('univer.plus'),_0x5b1496=(_0x567dbc=_0x357497[_0x35c391(0x106)])==null?void 0x0:_0x567dbc[_0x35c391(0x20e)]('univer.ai'),_0x26b1c4=_0x58d8fc?_0x35c391(0x11f):_0x35c391(0x163),_0x2887d9=_0x480f17['showDeveloperTools']&&(_0x58d8fc||_0x5b1496),[_0x460e5b,_0x475aee]=_0x2ba4bb(!_0x1a074e[_0x35c391(0x154)]()),_0x15d85b=(_0x2645fb,_0x477266)=>{var _0xe83b5b=_0x35c391;if(_0x477266===_0x29fa50[_0xe83b5b(0x20a)])return _0xe83b5b(0x1b6);switch(_0x2645fb){case _0xd88c50['CONNECTED']:return _0xe83b5b(0x13f);case _0xd88c50['CONNECTING']:case _0xd88c50[_0xe83b5b(0x235)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0xd88c50[_0xe83b5b(0x1fe)]:return _0xe83b5b(0x1b6);default:return _0xe83b5b(0x126);}},_0x460a8f=(_0x3b2ceb,_0x8e9a0b)=>{var _0x367ebb=_0x35c391;if(_0x8e9a0b===_0x29fa50['INVALID_API_KEY'])return _0x367ebb(0x112);switch(_0x3b2ceb){case _0xd88c50[_0x367ebb(0x1ca)]:return _0x367ebb(0x116);case _0xd88c50['CONNECTING']:case _0xd88c50['RETRYING']:return'univer-bg-blue-500';case _0xd88c50['FAILED']:return _0x367ebb(0x112);default:return'univer-bg-gray-500';}},_0x187a0f=_0x7a8bf7=>{var _0x3a44cd=_0x35c391;switch(_0x7a8bf7){case _0xd88c50['CONNECTED']:return _0x197745['t'](_0x3a44cd(0x1fc));case _0xd88c50[_0x3a44cd(0x11c)]:return _0x197745['t'](_0x3a44cd(0x25c));case _0xd88c50['FAILED']:return _0x197745['t'](_0x3a44cd(0x146));case _0xd88c50[_0x3a44cd(0x235)]:return _0x197745['t'](_0x3a44cd(0x239));default:return _0x197745['t'](_0x3a44cd(0x139));}},_0x487f1b=_0x276e54=>{var _0x34938b=_0x35c391;switch(_0x276e54){case _0x29fa50[_0x34938b(0x20a)]:return _0x197745['t'](_0x34938b(0x14c));case _0x29fa50[_0x34938b(0x1c5)]:return _0x197745['t'](_0x34938b(0x267));case _0x29fa50[_0x34938b(0x18c)]:return _0x197745['t'](_0x34938b(0x17f));case _0x29fa50['MAX_RETRIES_EXCEEDED']:return _0x197745['t'](_0x34938b(0x189));default:return'';}},_0x344a5b=_0x5dbac7(()=>{var _0x8b16b0=_0x35c391;const _0x1ce25e={..._0x357497,'apiKey':_0x1a074e[_0x8b16b0(0x154)](),'enableAuth':_0xc83b02};_0x457041(_0x1ce25e);},[_0x357497,_0x1a074e,_0xc83b02,_0x457041]),_0x5376e1=_0x1a074e['trim']()['length']>0x0;return _0x2630a2(_0x35c391(0x23d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x110),'children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1d3),'children':_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x195),'children':'⚙'})}),_0x24d98a('div',{'children':_0x24d98a('p',{'className':_0x35c391(0x178),'children':_0x197745['t'](_0x35c391(0x1fa))})})]})}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1eb),'children':[_0x24d98a(_0x35c391(0x23d),{'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'+_0x15d85b(_0x2f1e9f,_0x194067)+_0x35c391(0x1e9),'children':_0x2630a2(_0x35c391(0x23d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24d98a('div',{'className':_0x35c391(0x18d)+_0x460a8f(_0x2f1e9f,_0x194067)+_0x35c391(0x19b)}),_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x143),'children':_0x187a0f(_0x2f1e9f)})]})}),_0x194067!==_0x29fa50[_0x35c391(0x215)]&&(_0x2f1e9f===_0xd88c50[_0x35c391(0x1fe)]||_0x194067===_0x29fa50[_0x35c391(0x20a)])&&_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x266),'children':_0x2630a2('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x121),'children':'⚠️'}),_0x24d98a('p',{'className':_0x35c391(0x1d5),'children':_0x487f1b(_0x194067)})]})})]}),_0x24d98a('div',{'className':_0x35c391(0x107),'children':_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x171),'children':[_0x2630a2('div',{'className':'univer-space-y-2','children':[_0x2630a2('label',{'className':_0x35c391(0x237),'children':[_0x24d98a(_0x35c391(0x202),{'children':'🔑'}),'\x20',_0x197745['t'](_0x35c391(0x1ba)),_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x182),'children':'*'}),_0x50d78d&&_0x24d98a('a',{'href':_0x35c391(0x22f),'onClick':()=>_0x475aee(!0x0),'className':_0x35c391(0x10d),'title':_0x197745['t'](_0x35c391(0x17d)),'children':_0x24d98a(de,{})})]}),_0x24d98a(_0x417dbd,{'type':'text','placeholder':_0x197745['t'](_0x35c391(0x15a)),'value':_0x1a074e,'onChange':_0x4a835c,'disabled':_0x2962bd,'autoComplete':_0x35c391(0x16d)}),_0x24d98a('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x197745['t'](_0x35c391(0x13b))})]}),_0x50d78d&&_0x460e5b&&_0x2630a2('div',{'className':_0x35c391(0x1f1),'children':[_0x24d98a('a',{'href':_0x35c391(0x22f),'onClick':()=>_0x475aee(!0x1),'className':_0x35c391(0x141),'title':_0x35c391(0x250),'children':_0x24d98a(ve,{})}),_0x2630a2(_0x35c391(0x23d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x24d98a(_0x35c391(0x202),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2630a2('div',{'className':_0x35c391(0x1dc),'children':[_0x24d98a('h4',{'className':_0x35c391(0x16a),'children':_0x197745['t'](_0x35c391(0x17d))}),_0x24d98a('p',{'className':_0x35c391(0x22e),'children':_0x197745['t']('mcpConfig.apiApplyInfo.description')}),_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1da),'children':_0x2887d9&&_0x2630a2('a',{'href':_0x26b1c4,'target':_0x35c391(0x1a2),'rel':_0x35c391(0x201),'className':_0x35c391(0x128),'children':[_0x24d98a(_0x35c391(0x202),{'children':'🤖'}),_0x197745['t'](_0x35c391(0x21b)),_0x24d98a(_0x35c391(0x202),{'className':_0x35c391(0x20d),'children':'↗'})]})}),_0x2630a2('div',{'className':_0x35c391(0x228),'children':['✨','\x20',_0x197745['t'](_0x35c391(0x1cf))]})]})]})]}),_0x480f17[_0x35c391(0x217)]&&_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x11d),'children':[_0x2630a2('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x24d98a('span',{'children':'🔗'}),'\x20',_0x197745['t'](_0x35c391(0x137))]}),_0x2630a2('div',{'className':_0x35c391(0x187),'children':[_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1a9),'children':[_0x24d98a('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x197745['t']('mcpConfig.configInstructions')}),_0x2630a2('div',{'className':_0x35c391(0x1e1),'children':[_0x24d98a('div',{'className':_0x35c391(0x1ef),'children':_0x197745['t']('mcpConfig.configStepTitle')}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x14d),'children':[_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x229),'children':[_0x24d98a('span',{'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'}),_0x197745['t'](_0x35c391(0x1bf))]}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x229),'children':[_0x24d98a('span',{'className':_0x35c391(0x12b),'children':'2'}),_0x197745['t']('mcpConfig.configStep2')]}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x229),'children':[_0x24d98a('span',{'className':_0x35c391(0x12b),'children':'3'}),_0x197745['t']('mcpConfig.configStep3')]})]})]})]}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1e1),'children':[_0x24d98a('div',{'className':_0x35c391(0x1ef),'children':_0x35c391(0x206)}),_0x24d98a('div',{'className':_0x35c391(0x24f),'children':_0x24d98a(_0x35c391(0x132),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0xf010c4+_0x35c391(0x1bd)+(_0x1a074e||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x2630a2(_0x35c391(0x23d),{'className':'univer-space-y-3','children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1ef),'children':_0x197745['t'](_0x35c391(0x153))}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1e1),'children':[_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x1f0),'children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x25f),'children':[_0x24d98a(_0x35c391(0x23d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x35c391(0x1b5)}),_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1cd),'children':_0x197745['t'](_0x35c391(0x115))})]})]}),_0x2630a2('div',{'className':_0x35c391(0x1f0),'children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x1e4)}),_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x25f),'children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x13e),'children':_0x35c391(0x20c)}),_0x24d98a('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x197745['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x24d98a(_0x1fadd3,{'onClick':_0x344a5b,'disabled':!_0x5376e1||_0x2962bd,'className':_0x35c391(0x16b),'children':_0x2962bd?_0x2630a2(_0x35c391(0x202),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24d98a('span',{'children':'⟲'}),_0x197745['t'](_0x35c391(0x108))]}):_0x2630a2(_0x35c391(0x202),{'className':_0x35c391(0x229),'children':[_0x24d98a(ue,{}),_0x197745['t']('mcpConfig.save')]})}),_0x24d98a('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x2630a2(_0x35c391(0x23d),{'className':_0x35c391(0x238),'children':[_0x24d98a('span',{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2630a2('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x24d98a(_0x35c391(0x23d),{'className':_0x35c391(0x133),'children':_0x35c391(0x246)}),_0x2630a2(_0x35c391(0x23d),{'children':['•',_0x197745['t'](_0x35c391(0x109))]}),_0x2630a2('div',{'children':['•',_0x197745['t'](_0x35c391(0x1ed))]})]})]})})]})})]});}function _0xc8b4(){var _0x91c01c=['点击配置\x20MCP','配置参数:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-flex\x20univer-flex-wrap\x20univer-gap-2','复制以下\x20JSON\x20配置','univer-flex-1','propertyIsEnumerable','hasOwnProperty','MCP:\x20Invalid\x20API\x20Key','warn','univer-space-y-2','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','3898601QeUnvS','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','removeItem','next','777339uoTWpH','API\x20密钥不能为空','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','extend','mcpConfig.note2','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-items-start\x20univer-gap-3','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','_localStorageService','bottom','_componentManager','forEach','univer-text-green-500','Retrying...','length','配置无效','mcpConfig.description','会话当前被占用,请稍后再试','mcpConfig.connectionStatus.connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','FAILED','_initStatusComponent','_mcpCoreConfig$','noopener\x20noreferrer','span','subscribeConfigValue$','MCP\x20Connected','Enter\x20your\x20API\x20key','MCP\x20Configuration','string','mcpConfig.validation.apiKeyTooShort','MCP\x20Connecting...','INVALID_API_KEY','mcpStatus.clickToConnect','Authorization:','univer-text-gray-400','includes','close','random','mcpStatus.networkError','_injector','API\x20密钥无效,请检查密钥是否正确','MCP\x20客户端配置','NONE','MCP:\x20无效的\x20API\x20密钥','showDeveloperTools','mcpStatus.sessionOccupied','需要\x20API\x20密钥才能连接','MCP:\x20Session\x20Occupied','mcpConfig.apiApplyInfo.univerAiLabel','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','启用身份验证','__setCustomHeaders','CheckMarkIcon','svg','\x20-\x20','pluginName','connectionStatus$','COMMAND','_initializeMenus','3378175AHgbXW','getCurrentConfig','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20密钥','translate(.97)','MCP\x20Retrying...','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','javascript:void(0)','univer-text-gray-500','mcpConfig.configError','MCP:\x20会话被占用','mask','http://www.w3.org/2000/svg','RETRYING','on-line-icon','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.retrying','children','0\x200\x2017\x2016','getConfig','div','MCP:\x20网络错误','_initConfigSync','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','add','help-single','MCP\x20配置','_config$','API\x20密钥无效,请检查您的密钥后重试','Configuration\x20Notes:','defs','concat','map','M5.21243\x205.62036L11.8791\x2012.287','_commandService','_localeService','什么是\x20API\x20密钥?','MCP\x20已连接','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Close','MCP:\x20Max\x20Retries\x20Exceeded','indexOf','6qGFFoS','show','配置更改将立即生效','on-line-icon_clip0_910_349','assign','round','_uiPartsService','call','8ZsxddJ','mcpConfig.connectionStatus.connecting','4687771ISloVM','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-min-w-0\x20univer-flex-1','_handleConfigSave','MenuIcon','MCP\x20连接失败','mcpConfig.title','off-line-icon_clip0_910_343','defineProperty','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.connectionError.sessionOccupied','会话ID','mcpServerUrl','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.saving','mcpConfig.note1','mcp.apiKey','M0\x200H16V16H0z','off-line-icon','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','_registerComponent','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-items-center\x20univer-gap-3','What\x20is\x20API\x20Key?','univer-bg-red-500','setItem','_menuManagerService','mcpConfig.sessionIdDescription','univer-bg-green-500','connectionError$','API\x20key\x20is\x20required','连接中...','_messageService','M5.21243\x2012.287L11.8791\x205.62036','CONNECTING','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.validation.invalidApiKey','https://console.univer.plus','mcpStatus.failed','univer-flex-shrink-0\x20univer-text-red-500','mcpStatus.disconnected','Saving...','defIds','配置保存成功','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.validation.apiKeyRequired','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','showConfigPanel','univer-text-yellow-500','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','_validateConfig','white','Bearer\x20','colorChannel1','Univer\x20AI\x20Console','未连接','pre','univer-font-medium','error','prototype','DISCONNECTED','mcpConfig.connectionInfo','subscribe','mcpConfig.connectionStatus.disconnected','_handleConfigure','mcpConfig.apiKeyHint','MCPConfigPanel','最大重试次数','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','open','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','Success','univer-text-sm\x20univer-font-medium','apiKey','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.failed','3BgXZOb','mcpStatus.connecting','replace','几秒钟内获取您的\x20API\x20密钥','substring','mcpConfig.connectionError.invalidApiKey','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','entries','apply','_loadStoredApiKey','value','none','mcpConfig.configParameters','trim','MCP\x20Client\x20Configuration','您的\x20API\x20密钥安全存储在本地存储中','mcpStatus.clickToConfigure','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','重连中...','mcpConfig.apiKeyPlaceholder','displayName','mergeMenu','mcpConfig.configSaved','_apiKey$','_mcpConnectionController','Enable\x20Authentication','errorMessage','_configService','https://console.univer.ai','_createConfigPanelComponent','9VvFKKH','getOwnPropertyDescriptor','icon','univer.ai','_dialogService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','已连接','off','MCP_UI_PLUGIN','2921830AZKSZy','mcp-config-dialog','univer-space-y-5','MCP\x20Disconnected','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','toString','univer.plus','BUTTON','Max\x20Retries','univer-text-sm\x20univer-text-gray-500','API\x20Key','register','idSuffix','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.apiApplyInfo.title','37544897YRUUPz','mcpConfig.connectionError.networkError','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','getOwnPropertySymbols','univer-text-red-500','MAX_RETRIES_EXCEEDED','897476fqVkAA','_logService','xlink:href','univer-space-y-4','clipPath','mcpConfig.connectionError.maxRetriesExceeded','启用身份验证以获得安全连接','fill','NETWORK_ERROR','\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','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpStatus.maxRetriesExceeded','evenodd','OnLineIcon','univer-text-white','MCP\x20状态未知','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','mcp-ui.config','2garUBf','\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','Connected','function','将以下配置添加到您的\x20MCP\x20客户端设置中:','className','Connection\x20Failed','disposeWithMe','_blank','Error','_config','MCP:\x20缺少\x20API\x20密钥','0\x200\x2016\x2016','重启您的\x20MCP\x20客户端以使配置生效','isValid','univer-space-y-3','currentColor','点击连接\x20MCP','超出最大重试次数,请稍后再试','配置保存失败','您的\x20API\x20密钥将在此浏览器中本地存储','has','网络连接错误,请检查您的网络连接','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP:\x20API\x20Key\x20Missing','mcpConfig.validation.invalidConfig','Failed\x20to\x20save\x20configuration','univer_session_id:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','1em','mcpConfig.apiKey','保存中...','_connectionController','\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','tag','mcpConfig.configStep1','validateApiKey','0\x200\x2017\x2017','24IPoUnf','attrs','HEADER_MENU','SESSION_ID_OCCUPIED','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','get','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','CONNECTED','配置步骤:','univer-flex\x20univer-cursor-pointer\x20univer-items-center','univer-text-xs\x20univer-text-gray-500','请输入您的\x20API\x20密钥','mcpConfig.apiApplyInfo.getStarted','Click\x20to\x20connect\x20MCP','连接失败','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','url(#$1'];_0xc8b4=function(){return _0x91c01c;};return _0xc8b4();}const L=_0x2440ca(0x199),ie={'showDeveloperTools':!0x1};var on=Object[_0x2440ca(0x166)],sn=(_0xe575db,_0x20a041,_0x1609bf,_0x4ddd4e)=>{for(var _0x32a36e=_0x4ddd4e>0x1?void 0x0:_0x4ddd4e?on(_0x20a041,_0x1609bf):_0x20a041,_0x394c10=_0xe575db['length']-0x1,_0x2c2b8f;_0x394c10>=0x0;_0x394c10--)(_0x2c2b8f=_0xe575db[_0x394c10])&&(_0x32a36e=_0x2c2b8f(_0x32a36e)||_0x32a36e);return _0x32a36e;},f=(_0x124146,_0x3f5661)=>(_0x518422,_0x2122e7)=>_0x3f5661(_0x518422,_0x2122e7,_0x124146);const T=_0x2440ca(0x10a),R=_0x2440ca(0x170);let I=class extends _0x14919f{constructor(_0x2779f8,_0x43562d,_0x3127d0,_0x44ae40,_0x3584dd,_0x3f8e94,_0x5bf000,_0x2f4190,_0x18b8db,_0x3da233){var _0x549ccb=_0x2440ca;super(),x(this,'_loading$',new _0x673c8c(!0x1)),x(this,_0x549ccb(0x200),new _0x673c8c({})),x(this,_0x549ccb(0x244),new _0x673c8c({})),x(this,_0x549ccb(0x15e),new _0x673c8c('')),x(this,_0x549ccb(0x260),async _0x4e37bd=>{var _0x2315c1=_0x549ccb,_0x1028cd,_0x4499fc;this['_loading$']['next'](!0x0);try{const _0x465aa2=await this['_validateConfig'](_0x4e37bd);if(!_0x465aa2[_0x2315c1(0x1a8)]){this['_messageService']['show']({'type':_0x3df149['Error'],'content':_0x465aa2[_0x2315c1(0x161)]||this[_0x2315c1(0x24c)]['t'](_0x2315c1(0x1b3))});return;}_0x4e37bd[_0x2315c1(0x144)]?await this['_localStorageService'][_0x2315c1(0x113)](T,_0x4e37bd[_0x2315c1(0x144)][_0x2315c1(0x154)]()):await this[_0x2315c1(0x1f2)][_0x2315c1(0x1e5)](T),this[_0x2315c1(0x15e)][_0x2315c1(0x1e6)](((_0x1028cd=_0x4e37bd[_0x2315c1(0x144)])==null?void 0x0:_0x1028cd[_0x2315c1(0x154)]())||''),this[_0x2315c1(0x15f)][_0x2315c1(0x21e)]({'Authorization':_0x2315c1(0x12e)+((_0x4499fc=_0x4e37bd[_0x2315c1(0x144)])==null?void 0x0:_0x4499fc['trim']())}),this[_0x2315c1(0x11a)][_0x2315c1(0x254)]({'type':_0x3df149[_0x2315c1(0x142)],'content':this['_localeService']['t'](_0x2315c1(0x15d))}),setTimeout(()=>{var _0x51dc08=_0x2315c1;this['_dialogService'][_0x51dc08(0x20f)](R);},0x320);}catch(_0x11b579){this['_logService'][_0x2315c1(0x134)](_0x2315c1(0x158),_0x11b579),this[_0x2315c1(0x11a)][_0x2315c1(0x254)]({'type':_0x3df149[_0x2315c1(0x1a3)],'content':this[_0x2315c1(0x24c)]['t'](_0x2315c1(0x231))});}finally{this['_loading$'][_0x2315c1(0x1e6)](!0x1);}}),(this[_0x549ccb(0x212)]=_0x2779f8,this[_0x549ccb(0x259)]=_0x43562d,this[_0x549ccb(0x162)]=_0x3127d0,this[_0x549ccb(0x1f2)]=_0x44ae40,this[_0x549ccb(0x169)]=_0x3584dd,this['_messageService']=_0x3f8e94,this[_0x549ccb(0x1f4)]=_0x5bf000,this[_0x549ccb(0x24c)]=_0x2f4190,this[_0x549ccb(0x185)]=_0x18b8db,this['_mcpConnectionController']=_0x3da233,this[_0x549ccb(0x23f)](),this[_0x549ccb(0x150)](),this[_0x549ccb(0x10e)]());}[_0x2440ca(0x129)](){var _0x2f37e4=_0x2440ca;this[_0x2f37e4(0x169)][_0x2f37e4(0x140)]({'id':R,'title':{'title':this['_localeService']['t'](_0x2f37e4(0x263))},'children':{'label':_0x2f37e4(0x13c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x157679=_0x2f37e4;this[_0x157679(0x169)][_0x157679(0x20f)](R);}});}[_0x2440ca(0x227)](){var _0x2a05ae=_0x2440ca;return this[_0x2a05ae(0x200)]['value'];}[_0x2440ca(0x10e)](){var _0x1c5bb6=_0x2440ca;this[_0x1c5bb6(0x1a1)](this[_0x1c5bb6(0x1f4)][_0x1c5bb6(0x17a)](_0x1c5bb6(0x13c),this[_0x1c5bb6(0x164)]()));}[_0x2440ca(0x164)](){var _0x8ce10e=_0x2440ca;return _0x528ff7(()=>{var _0x460a2=_0x3b95,_0xf2bb13,_0xda1841,_0x5d19c2;return _0x24d98a(tn,{'config':this[_0x460a2(0x244)][_0x460a2(0x151)],'mcpCoreConfig':this[_0x460a2(0x200)][_0x460a2(0x151)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x460a2(0x260)],'loading':this['_loading$']['value'],'connectionStatus$':(_0xf2bb13=this[_0x460a2(0x15f)])==null?void 0x0:_0xf2bb13['connectionStatus$'],'connectionError$':(_0xda1841=this['_mcpConnectionController'])==null?void 0x0:_0xda1841[_0x460a2(0x117)],'currentSessionId$':(_0x5d19c2=this[_0x460a2(0x15f)])==null?void 0x0:_0x5d19c2['sessionId$']});},this[_0x8ce10e(0x212)]);}[_0x2440ca(0x23f)](){var _0x523aa8=_0x2440ca;this[_0x523aa8(0x1a1)](this[_0x523aa8(0x162)][_0x523aa8(0x203)](_0x251db0)[_0x523aa8(0x138)](_0x13945e=>{this['_mcpCoreConfig$']['next'](_0x13945e||{});}));const _0x974839=this['_configService'][_0x523aa8(0x23c)](_0x251db0);this['_mcpCoreConfig$'][_0x523aa8(0x1e6)](_0x974839||{}),this['disposeWithMe'](this['_configService'][_0x523aa8(0x203)](L)[_0x523aa8(0x138)](_0x5703fe=>{var _0x29bba1=_0x523aa8;this[_0x29bba1(0x244)][_0x29bba1(0x1e6)](_0x5703fe||{});}));const _0xfdab45=this[_0x523aa8(0x162)][_0x523aa8(0x23c)](L);this['_config$']['next'](_0xfdab45||{});}async[_0x2440ca(0x150)](){var _0x558d49=_0x2440ca;const _0x36f105=await this['_localStorageService']['getItem'](T);_0x36f105&&(this[_0x558d49(0x15f)]['__setCustomHeaders']({'Authorization':_0x558d49(0x12e)+_0x36f105}),this[_0x558d49(0x15e)][_0x558d49(0x1e6)](_0x36f105));}async[_0x2440ca(0x12c)](_0x2ae66c){var _0x5ea65b=_0x2440ca;if(!_0x2ae66c['apiKey']||_0x2ae66c[_0x5ea65b(0x144)][_0x5ea65b(0x154)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x5ea65b(0x127))};if(_0x2ae66c[_0x5ea65b(0x144)][_0x5ea65b(0x154)]()[_0x5ea65b(0x1f8)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5ea65b(0x24c)]['t'](_0x5ea65b(0x208))};try{const _0x3b8d84=await this[_0x5ea65b(0x212)][_0x5ea65b(0x1c7)](_0x53a6a3)[_0x5ea65b(0x1c0)](_0x2ae66c[_0x5ea65b(0x144)]['trim']());return _0x3b8d84[_0x5ea65b(0x1a8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3b8d84[_0x5ea65b(0x134)]||this[_0x5ea65b(0x24c)]['t'](_0x5ea65b(0x11e))};}catch(_0x33f628){return console[_0x5ea65b(0x1e0)](_0x5ea65b(0x1c9),_0x33f628),{'isValid':!0x0};}}};I=sn([f(0x0,_0x454fe3(_0x49e24c)),f(0x1,_0x376277),f(0x2,_0x45eb3c),f(0x3,_0x21fbd7),f(0x4,_0x194bc5),f(0x5,_0x575cce),f(0x6,_0x454fe3(_0xb2e913)),f(0x7,_0x454fe3(_0x698abf)),f(0x8,_0x45587d),f(0x9,_0x454fe3(_0x53a6a3))],I);const B={'id':'mcp-ui.command.openConfigPanel','type':_0x1f19a2[_0x2440ca(0x224)],'handler':async(_0x28b6a1,_0x357f88)=>(_0x28b6a1[_0x2440ca(0x1c7)](I)[_0x2440ca(0x129)](),!0x0)};function pe(_0x31b1c3,_0x3610a1){var _0x3581bc=_0x2440ca;switch(_0x31b1c3){case _0xd88c50[_0x3581bc(0x136)]:return _0x3581bc(0x122);case _0xd88c50[_0x3581bc(0x11c)]:return _0x3581bc(0x148);case _0xd88c50[_0x3581bc(0x1ca)]:return'mcpStatus.connected';case _0xd88c50[_0x3581bc(0x1fe)]:switch(_0x3610a1){case _0x29fa50[_0x3581bc(0x20a)]:return'mcpStatus.invalidApiKey';case _0x29fa50['SESSION_ID_OCCUPIED']:return _0x3581bc(0x218);case _0x29fa50[_0x3581bc(0x18c)]:return _0x3581bc(0x211);case _0x29fa50[_0x3581bc(0x183)]:return _0x3581bc(0x192);default:return _0x3581bc(0x120);}case _0xd88c50[_0x3581bc(0x235)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function cn(_0x5c39bd,_0x533695,_0x589a0a){var _0x1161a3=_0x2440ca;const _0x307e13=pe(_0x5c39bd,_0x533695),_0x1d983e=_0x589a0a['t'](_0x307e13);return _0x5c39bd===_0xd88c50['DISCONNECTED']&&_0x533695===_0x29fa50[_0x1161a3(0x20a)]?_0x1d983e+_0x1161a3(0x221)+_0x589a0a['t'](_0x1161a3(0x157)):_0x5c39bd===_0xd88c50[_0x1161a3(0x1ca)]?''+_0x1d983e:_0x5c39bd===_0xd88c50[_0x1161a3(0x136)]||_0x5c39bd===_0xd88c50[_0x1161a3(0x1fe)]?_0x1d983e+_0x1161a3(0x221)+_0x589a0a['t'](_0x1161a3(0x20b)):_0x1d983e;}function an(_0x3dbcfb){var _0x1a6c40=_0x2440ca;switch(_0x3dbcfb){case _0xd88c50[_0x1a6c40(0x1ca)]:return _0x1a6c40(0x1f6);case _0xd88c50[_0x1a6c40(0x11c)]:case _0xd88c50[_0x1a6c40(0x235)]:return _0x1a6c40(0x12a);case _0xd88c50[_0x1a6c40(0x1fe)]:case _0xd88c50[_0x1a6c40(0x136)]:return _0x1a6c40(0x182);default:return _0x1a6c40(0x230);}}function ln(_0x361571){var _0x4a72f9=_0x2440ca;const {status$:_0x18f7f5,error$:_0x17d25d,onConfigure:_0x426048}=_0x361571,_0x3c5853=_0x358ce2(_0x18f7f5,_0xd88c50[_0x4a72f9(0x136)]),_0x21c848=_0x358ce2(_0x17d25d,_0x29fa50[_0x4a72f9(0x215)]),_0x3403c9=_0x37a08a(_0x698abf),_0x1d06fb=_0x3c5853===_0xd88c50['CONNECTED'],_0x14ab32=_0x3c5853===_0xd88c50[_0x4a72f9(0x11c)]||_0x3c5853===_0xd88c50[_0x4a72f9(0x235)],_0x3f499d=_0x3403c9['t'](pe(_0x3c5853,_0x21c848)),_0x50e5dd=cn(_0x3c5853,_0x21c848,_0x3403c9),_0x2cdd7f=an(_0x3c5853),_0xe78fff=_0x1d06fb?_0x24d98a(fe,{}):_0x24d98a(ge,{}),_0x32690d=_0x5dbac7(()=>{_0x426048&&_0x426048();},[_0x1d06fb,_0x14ab32,_0x426048]);function _0x42a37e(){var _0x2dc056=_0x4a72f9;return _0x2630a2(_0x2dc056(0x23d),{'className':_0x2fed94(_0x2dc056(0x1cc),_0x426048&&'hover:univer-opacity-80'),'onClick':_0x426048?_0x32690d:void 0x0,'children':[_0x24d98a(_0x2dc056(0x23d),{'className':_0x2fed94(_0x2dc056(0x25e),_0x2cdd7f),'children':_0xe78fff}),_0x24d98a('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3f499d})]});}return _0x24d98a(_0x1b4c08,{'title':_0x50e5dd,'placement':_0x4a72f9(0x1f3),'children':_0x42a37e()});}var un=Object[_0x2440ca(0x166)],vn=(_0x394938,_0x58a8e2,_0x3eef20,_0x478379)=>{for(var _0x3f74a5=_0x478379>0x1?void 0x0:_0x478379?un(_0x58a8e2,_0x3eef20):_0x58a8e2,_0x2ef545=_0x394938['length']-0x1,_0x3c8c42;_0x2ef545>=0x0;_0x2ef545--)(_0x3c8c42=_0x394938[_0x2ef545])&&(_0x3f74a5=_0x3c8c42(_0x3f74a5)||_0x3f74a5);return _0x3f74a5;},j=(_0x52bcbd,_0x42659a)=>(_0x405150,_0x2983b5)=>_0x42659a(_0x405150,_0x2983b5,_0x52bcbd);let A=class extends _0x14919f{constructor(_0x2a5aec,_0x405b14,_0x3e06a5){var _0x1f4c18=_0x2440ca;super(),this['_injector']=_0x2a5aec,this['_connectionController']=_0x405b14,this[_0x1f4c18(0x259)]=_0x3e06a5,this[_0x1f4c18(0x1bc)]['enableAutoConnect']=!0x1,this[_0x1f4c18(0x1ff)]();}['_initStatusComponent'](){var _0x3b51ca=_0x2440ca;this['disposeWithMe'](this[_0x3b51ca(0x259)]['registerComponent'](_0x1d86ff[_0x3b51ca(0x1c4)],()=>_0x528ff7(dn({'status$':this[_0x3b51ca(0x1bc)][_0x3b51ca(0x223)],'error$':this[_0x3b51ca(0x1bc)]['connectionError$'],'onConfigure':()=>this[_0x3b51ca(0x13a)]()}),this['_injector'])));}[_0x2440ca(0x13a)](){var _0x237c33=_0x2440ca;this[_0x237c33(0x212)][_0x237c33(0x1c7)](I)['showConfigPanel']();}};A=vn([j(0x0,_0x454fe3(_0x49e24c)),j(0x1,_0x454fe3(_0x53a6a3)),j(0x2,_0x376277)],A);function dn(_0x426482){const {status$:_0x5b5723,error$:_0x509c14,onConfigure:_0x40e357}=_0x426482;return function(){return _0x24d98a(ln,{'status$':_0x5b5723,'error$':_0x509c14,'onConfigure':_0x40e357});};}function gn(_0x41153a){var _0xb699fc=_0x2440ca;return{'id':B['id'],'type':_0x476e83[_0xb699fc(0x176)],'icon':_0xb699fc(0x261),'title':_0xb699fc(0x263),'tooltip':_0xb699fc(0x263)};}const fn={[_0x288030['OTHERS']]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object['getOwnPropertyDescriptor'],mn=(_0x2d5801,_0x321daf,_0x7704e8,_0xfe68e7)=>{var _0x3b08ed=_0x2440ca;for(var _0x1c4b0b=_0xfe68e7>0x1?void 0x0:_0xfe68e7?pn(_0x321daf,_0x7704e8):_0x321daf,_0x50ef4d=_0x2d5801[_0x3b08ed(0x1f8)]-0x1,_0x5f1e18;_0x50ef4d>=0x0;_0x50ef4d--)(_0x5f1e18=_0x2d5801[_0x50ef4d])&&(_0x1c4b0b=_0x5f1e18(_0x1c4b0b)||_0x1c4b0b);return _0x1c4b0b;},re=(_0x45a1e7,_0x3f62a9)=>(_0x452129,_0x35746a)=>_0x3f62a9(_0x452129,_0x35746a,_0x45a1e7);let M=class extends _0x14919f{constructor(_0x36aca7,_0x2eaa30){var _0x10204a=_0x2440ca;super(),this[_0x10204a(0x24b)]=_0x36aca7,this['_menuManagerService']=_0x2eaa30,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){var _0x30b28a=_0x2440ca;[B][_0x30b28a(0x1f5)](_0x41d30c=>{var _0x54fe52=_0x30b28a;this[_0x54fe52(0x1a1)](this['_commandService']['registerCommand'](_0x41d30c));});}[_0x2440ca(0x225)](){var _0x5736ec=_0x2440ca;this[_0x5736ec(0x114)][_0x5736ec(0x15c)](fn);}};M=mn([re(0x0,_0x565db4),re(0x1,_0x20abba)],M);const On={'mcpStatus':{'disconnected':_0x2440ca(0x172),'connecting':_0x2440ca(0x209),'connected':_0x2440ca(0x204),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2440ca(0x22d),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x2440ca(0x1b2),'invalidApiKey':_0x2440ca(0x1df),'sessionOccupied':_0x2440ca(0x21a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2440ca(0x251),'clickToConnect':_0x2440ca(0x1d0),'clickToConfigure':_0x2440ca(0x198)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2440ca(0x240),'apiKey':_0x2440ca(0x179),'apiKeyPlaceholder':_0x2440ca(0x205),'apiKeyHint':_0x2440ca(0x18e),'enableAuth':_0x2440ca(0x160),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2440ca(0x155),'mcpClientConfig':_0x2440ca(0x155),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2440ca(0x197),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2440ca(0x1d4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x2440ca(0x1c8),'authorizationDescription':_0x2440ca(0x17c),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2440ca(0x177),'save':'Save\x20Configuration','saving':_0x2440ca(0x123),'note1':_0x2440ca(0x10f),'note2':_0x2440ca(0x1fd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2440ca(0x1b4),'apiApplyInfo':{'title':_0x2440ca(0x111),'description':_0x2440ca(0x21c),'univerAiLabel':_0x2440ca(0x130),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2440ca(0x118),'apiKeyTooShort':_0x2440ca(0x22a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x2440ca(0x19c),'failed':_0x2440ca(0x1a0),'retrying':_0x2440ca(0x1f7)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x2440ca(0x180),'sessionOccupied':_0x2440ca(0x18f),'networkError':_0x2440ca(0x191),'maxRetriesExceeded':_0x2440ca(0x1c6)}}},kn={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x2440ca(0x24e),'failed':_0x2440ca(0x262),'retrying':'MCP\x20重连中...','unknown':_0x2440ca(0x196),'missingApiKey':_0x2440ca(0x1a5),'invalidApiKey':_0x2440ca(0x216),'sessionOccupied':_0x2440ca(0x232),'networkError':_0x2440ca(0x23e),'maxRetriesExceeded':_0x2440ca(0x145),'clickToConnect':_0x2440ca(0x1ab),'clickToConfigure':_0x2440ca(0x1d7)},'mcpConfig':{'title':_0x2440ca(0x243),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2440ca(0x22b),'apiKeyPlaceholder':_0x2440ca(0x1ce),'apiKeyHint':_0x2440ca(0x1ae),'enableAuth':_0x2440ca(0x21d),'enableAuthHint':_0x2440ca(0x18a),'connectionInfo':_0x2440ca(0x214),'mcpClientConfig':_0x2440ca(0x214),'configInstructions':_0x2440ca(0x19e),'configStepTitle':_0x2440ca(0x1cb),'configStep1':_0x2440ca(0x1db),'configStep2':_0x2440ca(0x1b1),'configStep3':_0x2440ca(0x1a7),'sessionId':_0x2440ca(0x268),'sessionIdDescription':_0x2440ca(0x1d9),'authorizationDescription':_0x2440ca(0x1ea),'configParameters':_0x2440ca(0x1d8),'maxRetries':_0x2440ca(0x13d),'save':'保存配置','saving':_0x2440ca(0x1bb),'note1':_0x2440ca(0x255),'note2':_0x2440ca(0x156),'configSaved':_0x2440ca(0x125),'configError':_0x2440ca(0x1ad),'apiApplyInfo':{'title':_0x2440ca(0x24d),'description':_0x2440ca(0x173),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x2440ca(0x14a)},'validation':{'apiKeyRequired':_0x2440ca(0x1e8),'apiKeyTooShort':_0x2440ca(0x1d2),'invalidConfig':_0x2440ca(0x1f9),'invalidApiKey':_0x2440ca(0x213)},'connectionStatus':{'disconnected':_0x2440ca(0x131),'connecting':_0x2440ca(0x119),'connected':_0x2440ca(0x16c),'failed':_0x2440ca(0x1d1),'retrying':_0x2440ca(0x159)},'connectionError':{'missingApiKey':_0x2440ca(0x219),'invalidApiKey':_0x2440ca(0x245),'sessionOccupied':_0x2440ca(0x1fb),'networkError':_0x2440ca(0x1b0),'maxRetriesExceeded':_0x2440ca(0x1ac)}}};var hn=Object['defineProperty'],Cn=Object[_0x2440ca(0x166)],yn=(_0x7e8b25,_0x5491c4,_0x2103fd)=>_0x5491c4 in _0x7e8b25?hn(_0x7e8b25,_0x5491c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2103fd}):_0x7e8b25[_0x5491c4]=_0x2103fd,_n=(_0x57c9ed,_0x304f88,_0x43213a,_0x276174)=>{var _0x4a49d9=_0x2440ca;for(var _0x5ce920=_0x276174>0x1?void 0x0:_0x276174?Cn(_0x304f88,_0x43213a):_0x304f88,_0x45a20c=_0x57c9ed[_0x4a49d9(0x1f8)]-0x1,_0x5a99dd;_0x45a20c>=0x0;_0x45a20c--)(_0x5a99dd=_0x57c9ed[_0x45a20c])&&(_0x5ce920=_0x5a99dd(_0x5ce920)||_0x5ce920);return _0x5ce920;},E=(_0x40c0d8,_0x46e384)=>(_0x13e5ed,_0xe7ccb8)=>_0x46e384(_0x13e5ed,_0xe7ccb8,_0x40c0d8),xn=(_0x5d83eb,_0x1ec8d4,_0x35ff83)=>yn(_0x5d83eb,_0x1ec8d4+'',_0x35ff83);let U=class extends _0x2f003c{constructor(_0x21a22e=ie,_0x592731,_0x3025bd,_0x33e4a2,_0x172138,_0x519434){var _0x430de5=_0x2440ca;super(),this[_0x430de5(0x1a4)]=_0x21a22e,this['_injector']=_0x592731,this[_0x430de5(0x162)]=_0x3025bd,this[_0x430de5(0x259)]=_0x33e4a2,this[_0x430de5(0x1f2)]=_0x172138,this['_localeService']=_0x519434;const {..._0x98805}=_0x2b9a14({},ie,this[_0x430de5(0x1a4)]);this['_configService']['setConfig'](L,_0x98805);}async['onStarting'](){var _0x2c5d53=_0x2440ca;const _0x3336b0=[[A],[I],[M]];this[_0x2c5d53(0x212)][_0x2c5d53(0x1af)](_0x3d63f7)||_0x3336b0['push']([_0x3d63f7,{'useClass':_0x4d4596}]),_0x3336b0[_0x2c5d53(0x1f5)](_0x23029d=>this[_0x2c5d53(0x212)][_0x2c5d53(0x241)](_0x23029d)),this['_injector'][_0x2c5d53(0x1c7)](A),this['_injector'][_0x2c5d53(0x1c7)](I),this['_injector'][_0x2c5d53(0x1c7)](M);}};xn(U,_0x2440ca(0x222),_0x2440ca(0x16e)),U=_n([_0x249ee2(_0x3c0971),E(0x1,_0x454fe3(_0x49e24c)),E(0x2,_0x45eb3c),E(0x3,_0x376277),E(0x4,_0x21fbd7),E(0x5,_0x454fe3(_0x698abf))],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 +1 @@
1
- const _0x33149f=_0x5c81;(function(_0x2b9f95,_0x320aff){const _0x62452=_0x5c81,_0x4b6d25=_0x2b9f95();while(!![]){try{const _0x220fb5=-parseInt(_0x62452(0x146))/0x1*(-parseInt(_0x62452(0x132))/0x2)+-parseInt(_0x62452(0x136))/0x3*(parseInt(_0x62452(0x140))/0x4)+-parseInt(_0x62452(0x13b))/0x5+parseInt(_0x62452(0x155))/0x6*(parseInt(_0x62452(0x151))/0x7)+parseInt(_0x62452(0x122))/0x8*(parseInt(_0x62452(0x14e))/0x9)+-parseInt(_0x62452(0x130))/0xa*(parseInt(_0x62452(0x121))/0xb)+parseInt(_0x62452(0x124))/0xc*(parseInt(_0x62452(0x13d))/0xd);if(_0x220fb5===_0x320aff)break;else _0x4b6d25['push'](_0x4b6d25['shift']());}catch(_0x466ed9){_0x4b6d25['push'](_0x4b6d25['shift']());}}}(_0xe6aa,0xdaa16));function _0x5c81(_0x2f6b76,_0x23bb92){const _0xe6aa2e=_0xe6aa();return _0x5c81=function(_0x5c8131,_0x5a159b){_0x5c8131=_0x5c8131-0x120;let _0x19262e=_0xe6aa2e[_0x5c8131];return _0x19262e;},_0x5c81(_0x2f6b76,_0x23bb92);}const e={'mcpStatus':{'disconnected':_0x33149f(0x13f),'connecting':_0x33149f(0x138),'connected':_0x33149f(0x128),'failed':_0x33149f(0x139),'retrying':_0x33149f(0x13a),'unknown':_0x33149f(0x135),'missingApiKey':_0x33149f(0x142),'invalidApiKey':_0x33149f(0x147),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x33149f(0x14b),'maxRetriesExceeded':_0x33149f(0x149),'clickToConnect':_0x33149f(0x123),'clickToConfigure':_0x33149f(0x127)},'mcpConfig':{'title':_0x33149f(0x12b),'description':_0x33149f(0x145),'apiKey':_0x33149f(0x143),'apiKeyPlaceholder':_0x33149f(0x12a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x33149f(0x152),'enableAuthHint':_0x33149f(0x13c),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x33149f(0x154),'sessionId':_0x33149f(0x126),'maxRetries':'Max\x20Retries','save':_0x33149f(0x133),'saving':_0x33149f(0x144),'note1':_0x33149f(0x137),'note2':_0x33149f(0x156),'configSaved':_0x33149f(0x14c),'configError':_0x33149f(0x131),'apiApplyInfo':{'title':_0x33149f(0x14a),'description':_0x33149f(0x134),'univerAiLabel':_0x33149f(0x12d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x33149f(0x141),'apiKeyTooShort':_0x33149f(0x14f),'invalidConfig':_0x33149f(0x12e),'invalidApiKey':_0x33149f(0x120)},'connectionStatus':{'disconnected':_0x33149f(0x12c),'connecting':_0x33149f(0x12f),'connected':_0x33149f(0x150),'failed':_0x33149f(0x153),'retrying':_0x33149f(0x129)},'connectionError':{'missingApiKey':_0x33149f(0x125),'invalidApiKey':_0x33149f(0x13e),'sessionOccupied':_0x33149f(0x14d),'networkError':_0x33149f(0x148),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0xe6aa(){const _0x28009e=['9HmDGvW','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','406kkXARD','Enable\x20Authentication','Connection\x20Failed','Server\x20Endpoint','122490EZJhBm','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','308pmAhSX','2619832haTUhC','Click\x20to\x20connect\x20MCP','1140eKdImB','API\x20key\x20is\x20required\x20to\x20connect','Session\x20ID','Click\x20to\x20configure\x20MCP','MCP\x20Connected','Retrying...','Enter\x20your\x20API\x20key','MCP\x20Configuration','Disconnected','Univer\x20AI\x20Console','Invalid\x20configuration','Connecting...','618170ERydil','Failed\x20to\x20save\x20configuration','12IzkDdQ','Save\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.','MCP\x20Unknown\x20Status','2631MnIjMD','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','MCP\x20Connection\x20Failed','MCP\x20Retrying...','2705320CBKrsV','Enable\x20authentication\x20for\x20secure\x20connections','258427oJJFde','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Disconnected','6320ctHWzr','API\x20key\x20is\x20required','MCP:\x20API\x20Key\x20Missing','API\x20Key','Saving...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','192176rzmEVI','MCP:\x20Invalid\x20API\x20Key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Configuration\x20saved\x20successfully','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later'];_0xe6aa=function(){return _0x28009e;};return _0xe6aa();}export{n as default};
1
+ const _0x35e30c=_0x3894;(function(_0x188641,_0x5d0f98){const _0x386a30=_0x3894,_0x40fba3=_0x188641();while(!![]){try{const _0x470b0c=-parseInt(_0x386a30(0xdf))/0x1+parseInt(_0x386a30(0xca))/0x2*(-parseInt(_0x386a30(0xbf))/0x3)+-parseInt(_0x386a30(0xde))/0x4+parseInt(_0x386a30(0xee))/0x5+-parseInt(_0x386a30(0xe2))/0x6*(parseInt(_0x386a30(0xed))/0x7)+parseInt(_0x386a30(0xdd))/0x8*(-parseInt(_0x386a30(0xcc))/0x9)+parseInt(_0x386a30(0xc0))/0xa;if(_0x470b0c===_0x5d0f98)break;else _0x40fba3['push'](_0x40fba3['shift']());}catch(_0x14eba5){_0x40fba3['push'](_0x40fba3['shift']());}}}(_0x1a42,0xc1627));function _0x1a42(){const _0x229822=['Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20API\x20Key\x20Missing','MCP:\x20Invalid\x20API\x20Key','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','MCP\x20Disconnected','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','823290clOWwT','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1143IjjdQu','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Disconnected','Connection\x20Failed','MCP\x20Connection\x20Failed','Invalid\x20configuration','Univer\x20AI\x20Console','Connecting...','21504AAmdxq','5793564FHLiMa','692009NtyjLO','Saving...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','921936gxonln','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','70eLIzbs','7434085eVYALk','MCP:\x20Network\x20Error','MCP\x20Connecting...','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enter\x20your\x20API\x20key','9xpKCee','45585570WbxbXe','MCP:\x20Session\x20Occupied'];_0x1a42=function(){return _0x229822;};return _0x1a42();}function _0x3894(_0x5c905f,_0x450373){const _0x1a4243=_0x1a42();return _0x3894=function(_0x3894e3,_0x11f53d){_0x3894e3=_0x3894e3-0xbd;let _0x3a0d57=_0x1a4243[_0x3894e3];return _0x3a0d57;},_0x3894(_0x5c905f,_0x450373);}const e={'mcpStatus':{'disconnected':_0x35e30c(0xc7),'connecting':_0x35e30c(0xf0),'connected':'MCP\x20Connected','failed':_0x35e30c(0xd9),'retrying':_0x35e30c(0xd2),'unknown':_0x35e30c(0xc9),'missingApiKey':_0x35e30c(0xc3),'invalidApiKey':_0x35e30c(0xc4),'sessionOccupied':_0x35e30c(0xc1),'networkError':_0x35e30c(0xef),'maxRetriesExceeded':_0x35e30c(0xd0),'clickToConnect':_0x35e30c(0xc5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x35e30c(0xce),'apiKey':_0x35e30c(0xcd),'apiKeyPlaceholder':_0x35e30c(0xbe),'apiKeyHint':_0x35e30c(0xe5),'enableAuth':_0x35e30c(0xc6),'enableAuthHint':_0x35e30c(0xd5),'connectionInfo':_0x35e30c(0xea),'mcpClientConfig':_0x35e30c(0xea),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x35e30c(0xe6),'configStep1':_0x35e30c(0xd4),'configStep2':_0x35e30c(0xd3),'configStep3':_0x35e30c(0xbd),'sessionId':'Session\x20ID','sessionIdDescription':_0x35e30c(0xeb),'authorizationDescription':_0x35e30c(0xe7),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x35e30c(0xe9),'save':'Save\x20Configuration','saving':_0x35e30c(0xe0),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x35e30c(0xcb),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x35e30c(0xc8),'description':_0x35e30c(0xe1),'univerAiLabel':_0x35e30c(0xdb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x35e30c(0xf1),'apiKeyTooShort':_0x35e30c(0xec),'invalidConfig':_0x35e30c(0xda),'invalidApiKey':_0x35e30c(0xe8)},'connectionStatus':{'disconnected':_0x35e30c(0xd7),'connecting':_0x35e30c(0xdc),'connected':_0x35e30c(0xe3),'failed':_0x35e30c(0xd8),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x35e30c(0xd1),'invalidApiKey':_0x35e30c(0xc2),'sessionOccupied':_0x35e30c(0xcf),'networkError':_0x35e30c(0xd6),'maxRetriesExceeded':_0x35e30c(0xe4)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x172bb7=_0x3a4a;(function(_0x10f779,_0x39b823){const _0xfeca11=_0x3a4a,_0x2d36d1=_0x10f779();while(!![]){try{const _0x2b0a59=parseInt(_0xfeca11(0x197))/0x1*(parseInt(_0xfeca11(0x19d))/0x2)+-parseInt(_0xfeca11(0x195))/0x3*(-parseInt(_0xfeca11(0x189))/0x4)+-parseInt(_0xfeca11(0x18a))/0x5+-parseInt(_0xfeca11(0x196))/0x6+parseInt(_0xfeca11(0x1a1))/0x7+-parseInt(_0xfeca11(0x193))/0x8+parseInt(_0xfeca11(0x19f))/0x9;if(_0x2b0a59===_0x39b823)break;else _0x2d36d1['push'](_0x2d36d1['shift']());}catch(_0x255dc8){_0x2d36d1['push'](_0x2d36d1['shift']());}}}(_0x575c,0x9a6fe));function _0x575c(){const _0x4101f6=['828185qxpTFP','Connection\x20Failed','MCP\x20Unknown\x20Status','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Information','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','Configuration\x20saved\x20successfully','2118232fTwQVV','MCP:\x20Session\x20Occupied','11067WqXFRH','6816174sxUyZl','251WdEfHW','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Server\x20Endpoint','Save\x20Configuration','MCP\x20Connecting...','4796TpQFpH','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4549554YZFHmm','API\x20key\x20is\x20required\x20to\x20connect','6453447qLroNc','Max\x20Retries','MCP\x20Retrying...','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','Retrying...','Connected','MCP\x20Disconnected','184HbdAvl'];_0x575c=function(){return _0x4101f6;};return _0x575c();}const e={'mcpStatus':{'disconnected':_0x172bb7(0x188),'connecting':_0x172bb7(0x19c),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x172bb7(0x1a3),'unknown':_0x172bb7(0x18c),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x172bb7(0x194),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x172bb7(0x191),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x172bb7(0x190),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x172bb7(0x18f),'serverEndpoint':_0x172bb7(0x19a),'sessionId':_0x172bb7(0x185),'maxRetries':_0x172bb7(0x1a2),'save':_0x172bb7(0x19b),'saving':_0x172bb7(0x18d),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x172bb7(0x192),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x172bb7(0x1a5),'univerAiLabel':_0x172bb7(0x1a4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x172bb7(0x19e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x172bb7(0x18e)},'connectionStatus':{'disconnected':_0x172bb7(0x199),'connecting':'Connecting...','connected':_0x172bb7(0x187),'failed':_0x172bb7(0x18b),'retrying':_0x172bb7(0x186)},'connectionError':{'missingApiKey':_0x172bb7(0x1a0),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x172bb7(0x198)}}};function _0x3a4a(_0x20ddf4,_0x421b09){const _0x575c1c=_0x575c();return _0x3a4a=function(_0x3a4a38,_0x13790c){_0x3a4a38=_0x3a4a38-0x185;let _0x588ce3=_0x575c1c[_0x3a4a38];return _0x588ce3;},_0x3a4a(_0x20ddf4,_0x421b09);}export{e as default};
1
+ const _0x5e7cb1=_0x348a;function _0x1a03(){const _0x117320=['Session\x20ID','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','7257015TUSwtc','MCP:\x20API\x20Key\x20Missing','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20Occupied','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Disconnected','Configuration\x20Parameters:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','152lEHPcV','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required\x20to\x20connect','Enable\x20Authentication','Connection\x20Failed','38255ZRBFNq','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4377954qqoTGq','26565yrHGwN','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','MCP\x20Connecting...','1576xPenBZ','Get\x20your\x20API\x20key\x20in\x20seconds','694086aYYUqN','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','MCP\x20Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','97tEEPQr','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','19404870vQWbly','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','22086hZQKWI','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status'];_0x1a03=function(){return _0x117320;};return _0x1a03();}(function(_0x10ddf0,_0x55e8fa){const _0x1af96c=_0x348a,_0xe5f899=_0x10ddf0();while(!![]){try{const _0x4749e9=parseInt(_0x1af96c(0xb5))/0x1*(parseInt(_0x1af96c(0xba))/0x2)+-parseInt(_0x1af96c(0xaf))/0x3+-parseInt(_0x1af96c(0x9c))/0x4*(-parseInt(_0x1af96c(0xa1))/0x5)+-parseInt(_0x1af96c(0xa6))/0x6+parseInt(_0x1af96c(0xa7))/0x7*(-parseInt(_0x1af96c(0xad))/0x8)+-parseInt(_0x1af96c(0xc2))/0x9+parseInt(_0x1af96c(0xb8))/0xa;if(_0x4749e9===_0x55e8fa)break;else _0xe5f899['push'](_0xe5f899['shift']());}catch(_0xf8d3b6){_0xe5f899['push'](_0xe5f899['shift']());}}}(_0x1a03,0xc03e1));function _0x348a(_0x49c9d7,_0x3bd2e6){const _0x1a03a4=_0x1a03();return _0x348a=function(_0x348a5e,_0x2f258a){_0x348a5e=_0x348a5e-0x92;let _0x844da=_0x1a03a4[_0x348a5e];return _0x844da;},_0x348a(_0x49c9d7,_0x3bd2e6);}const e={'mcpStatus':{'disconnected':_0x5e7cb1(0xb2),'connecting':_0x5e7cb1(0xac),'connected':_0x5e7cb1(0xa4),'failed':_0x5e7cb1(0xab),'retrying':'MCP\x20Retrying...','unknown':_0x5e7cb1(0xbe),'missingApiKey':_0x5e7cb1(0xc3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x5e7cb1(0x93),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5e7cb1(0x97),'description':_0x5e7cb1(0x98),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5e7cb1(0xb1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5e7cb1(0x9f),'enableAuthHint':_0x5e7cb1(0xb3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5e7cb1(0xa8),'configInstructions':_0x5e7cb1(0x95),'configStepTitle':_0x5e7cb1(0xb7),'configStep1':_0x5e7cb1(0xaa),'configStep2':_0x5e7cb1(0xa9),'configStep3':_0x5e7cb1(0xb9),'sessionId':_0x5e7cb1(0xbf),'sessionIdDescription':_0x5e7cb1(0xa2),'authorizationDescription':_0x5e7cb1(0xb6),'configParameters':_0x5e7cb1(0x9a),'maxRetries':'Max\x20Retries','save':_0x5e7cb1(0xbc),'saving':_0x5e7cb1(0xa3),'note1':_0x5e7cb1(0xc1),'note2':_0x5e7cb1(0xbd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5e7cb1(0x96),'apiApplyInfo':{'title':_0x5e7cb1(0x9d),'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':_0x5e7cb1(0xb4),'getStarted':_0x5e7cb1(0xae)},'validation':{'apiKeyRequired':_0x5e7cb1(0xb0),'apiKeyTooShort':_0x5e7cb1(0xa5),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5e7cb1(0x92)},'connectionStatus':{'disconnected':_0x5e7cb1(0x99),'connecting':'Connecting...','connected':'Connected','failed':_0x5e7cb1(0xa0),'retrying':_0x5e7cb1(0x94)},'connectionError':{'missingApiKey':_0x5e7cb1(0x9e),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x5e7cb1(0xc0),'networkError':_0x5e7cb1(0xbb),'maxRetriesExceeded':_0x5e7cb1(0x9b)}}};export{e as default};