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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +7 -7
@@ -1 +1 @@
1
- 'use strict';const _0x44ea2f=_0x3634;(function(_0x5a9ea8,_0x364af2){const _0x4a5750=_0x3634,_0x2ae41d=_0x5a9ea8();while(!![]){try{const _0x49599c=parseInt(_0x4a5750(0x183))/0x1*(parseInt(_0x4a5750(0x16c))/0x2)+parseInt(_0x4a5750(0x168))/0x3+-parseInt(_0x4a5750(0x166))/0x4*(-parseInt(_0x4a5750(0x178))/0x5)+-parseInt(_0x4a5750(0x164))/0x6*(parseInt(_0x4a5750(0x18b))/0x7)+parseInt(_0x4a5750(0x16d))/0x8*(-parseInt(_0x4a5750(0x191))/0x9)+parseInt(_0x4a5750(0x195))/0xa*(parseInt(_0x4a5750(0x167))/0xb)+-parseInt(_0x4a5750(0x192))/0xc;if(_0x49599c===_0x364af2)break;else _0x2ae41d['push'](_0x2ae41d['shift']());}catch(_0x159ca6){_0x2ae41d['push'](_0x2ae41d['shift']());}}}(_0x4241,0x20edf));function _0x3634(_0x4458f6,_0x23a6d8){const _0x4241e8=_0x4241();return _0x3634=function(_0x363430,_0xfecaba){_0x363430=_0x363430-0x162;let _0x42d1f3=_0x4241e8[_0x363430];return _0x42d1f3;},_0x3634(_0x4458f6,_0x23a6d8);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x44ea2f(0x189),'connected':_0x44ea2f(0x165),'failed':_0x44ea2f(0x17a),'retrying':_0x44ea2f(0x181),'unknown':_0x44ea2f(0x190),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x44ea2f(0x196),'networkError':_0x44ea2f(0x173),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x44ea2f(0x171),'clickToConfigure':_0x44ea2f(0x16a)},'mcpConfig':{'title':_0x44ea2f(0x182),'description':_0x44ea2f(0x177),'apiKey':_0x44ea2f(0x17b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x44ea2f(0x184),'enableAuthHint':_0x44ea2f(0x193),'connectionInfo':_0x44ea2f(0x17c),'mcpClientConfig':_0x44ea2f(0x17c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x44ea2f(0x17e),'configStep2':_0x44ea2f(0x18e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x44ea2f(0x187),'sessionIdDescription':_0x44ea2f(0x16e),'authorizationDescription':_0x44ea2f(0x17f),'configParameters':_0x44ea2f(0x163),'maxRetries':_0x44ea2f(0x176),'save':_0x44ea2f(0x174),'saving':_0x44ea2f(0x162),'note1':_0x44ea2f(0x179),'note2':_0x44ea2f(0x18c),'configSaved':_0x44ea2f(0x16b),'configError':_0x44ea2f(0x16f),'apiApplyInfo':{'title':_0x44ea2f(0x172),'description':_0x44ea2f(0x185),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x44ea2f(0x18d)},'validation':{'apiKeyRequired':_0x44ea2f(0x186),'apiKeyTooShort':_0x44ea2f(0x169),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x44ea2f(0x18f),'connecting':_0x44ea2f(0x170),'connected':_0x44ea2f(0x188),'failed':_0x44ea2f(0x175),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x44ea2f(0x17d),'networkError':_0x44ea2f(0x194),'maxRetriesExceeded':_0x44ea2f(0x180)}}},n=e;module[_0x44ea2f(0x18a)]=n;function _0x4241(){const _0x5541b4=['Saving...','Configuration\x20Parameters:','733968iFfdLI','MCP\x20Connected','12aRvfmX','11ioBbdR','195687kWkqPu','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','1308RiXCAu','30560ojBxwf','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','Connecting...','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Save\x20Configuration','Connection\x20Failed','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','212935NARbQa','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','API\x20Key','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Configuration','218dowQCt','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','Session\x20ID','Connected','MCP\x20Connecting...','exports','7KRisOs','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','MCP\x20Unknown\x20Status','360fiHJvW','2148264ygxuzB','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2534670WRcwkF','MCP:\x20Session\x20ID\x20Occupied'];_0x4241=function(){return _0x5541b4;};return _0x4241();}
1
+ 'use strict';const _0x3f2b0c=_0x4c37;(function(_0x5b76ab,_0x1a96ce){const _0x4ee38b=_0x4c37,_0x4f3e7d=_0x5b76ab();while(!![]){try{const _0x329e97=-parseInt(_0x4ee38b(0x10a))/0x1*(parseInt(_0x4ee38b(0x11a))/0x2)+-parseInt(_0x4ee38b(0x126))/0x3*(parseInt(_0x4ee38b(0x123))/0x4)+-parseInt(_0x4ee38b(0x101))/0x5*(parseInt(_0x4ee38b(0x100))/0x6)+parseInt(_0x4ee38b(0x10d))/0x7*(-parseInt(_0x4ee38b(0xfb))/0x8)+parseInt(_0x4ee38b(0xff))/0x9*(-parseInt(_0x4ee38b(0x114))/0xa)+-parseInt(_0x4ee38b(0x119))/0xb+parseInt(_0x4ee38b(0x121))/0xc;if(_0x329e97===_0x1a96ce)break;else _0x4f3e7d['push'](_0x4f3e7d['shift']());}catch(_0x3b43ae){_0x4f3e7d['push'](_0x4f3e7d['shift']());}}}(_0x5027,0xb71c3));const e={'mcpStatus':{'disconnected':_0x3f2b0c(0x117),'connecting':_0x3f2b0c(0x11b),'connected':_0x3f2b0c(0xf5),'failed':_0x3f2b0c(0x118),'retrying':'MCP\x20Retrying...','unknown':_0x3f2b0c(0x108),'unauthorized':_0x3f2b0c(0x11f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3f2b0c(0x122),'maxRetriesExceeded':_0x3f2b0c(0x10c),'clickToConnect':_0x3f2b0c(0x111),'clickToConfigure':_0x3f2b0c(0xfe)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3f2b0c(0xfd),'apiKeyPlaceholder':_0x3f2b0c(0x11e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x3f2b0c(0x128),'mcpClientConfig':_0x3f2b0c(0x128),'configInstructions':_0x3f2b0c(0x10b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3f2b0c(0x107),'configStep2':_0x3f2b0c(0x127),'configStep3':_0x3f2b0c(0xfa),'sessionId':_0x3f2b0c(0x116),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3f2b0c(0x110),'maxRetries':'Max\x20Retries','save':_0x3f2b0c(0x125),'saving':'Saving...','note1':_0x3f2b0c(0x106),'note2':_0x3f2b0c(0x10f),'configSaved':_0x3f2b0c(0x109),'configError':_0x3f2b0c(0x104),'apiApplyInfo':{'title':_0x3f2b0c(0x10e),'description':_0x3f2b0c(0x11c),'univerAiLabel':_0x3f2b0c(0x112),'getStarted':_0x3f2b0c(0x113)},'validation':{'apiKeyRequired':_0x3f2b0c(0x120),'apiKeyTooShort':_0x3f2b0c(0x115),'invalidConfig':_0x3f2b0c(0x11d),'invalidApiKey':_0x3f2b0c(0xf7)},'connectionStatus':{'disconnected':_0x3f2b0c(0x124),'connecting':_0x3f2b0c(0xf6),'connected':_0x3f2b0c(0xfc),'failed':_0x3f2b0c(0xf8),'retrying':_0x3f2b0c(0x103)},'connectionError':{'unauthorized':_0x3f2b0c(0xf9),'sessionOccupied':_0x3f2b0c(0x102),'networkError':_0x3f2b0c(0x105),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x4c37(_0x1dc997,_0x59aa8d){const _0x502745=_0x5027();return _0x4c37=function(_0x4c3796,_0xcdfc44){_0x4c3796=_0x4c3796-0xf5;let _0x42fa76=_0x502745[_0x4c3796];return _0x42fa76;},_0x4c37(_0x1dc997,_0x59aa8d);}module['exports']=n;function _0x5027(){const _0x24e2d4=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','MCP\x20Disconnected','MCP\x20Connection\x20Failed','7214240HVlYju','248SatPiV','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','API\x20key\x20is\x20required','56819460OUAXEN','MCP:\x20Network\x20Error','12ipXUpb','Disconnected','Save\x20Configuration','501282PfXRtp','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','MCP\x20Connected','Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','10260568sJMtzL','Connected','API\x20Key','Click\x20to\x20configure\x20MCP','9EttprJ','180ntxvqp','9235dekLfC','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Retrying...','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','3191InDoIx','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','7CObqXH','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','10941490vkLWFo'];_0x5027=function(){return _0x24e2d4;};return _0x5027();}
@@ -1 +1 @@
1
- 'use strict';function _0x5f22(){const _0x413d3e=['37716uVhBSI','Enter\x20your\x20API\x20key','Session\x20ID','MCP\x20Connection\x20Failed','Connected','MCP\x20Connecting...','exports','336471qbJftx','Retrying...','Connecting...','Save\x20Configuration','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','5dgEFyQ','166521dfHuLI','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','5058uutgHH','2InSvwc','322rvlGvV','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','20XbLuyv','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Saving...','14988aqBqiw','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','520PnjYhE','API\x20Key','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','392412MVOoue','1269202ADdNmc','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1160JFVWvK','Enable\x20Authentication','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration'];_0x5f22=function(){return _0x413d3e;};return _0x5f22();}const _0x59b9b3=_0x5a6a;(function(_0x3418a4,_0x2f5623){const _0x201097=_0x5a6a,_0x386982=_0x3418a4();while(!![]){try{const _0x170a2f=parseInt(_0x201097(0x124))/0x1+-parseInt(_0x201097(0x129))/0x2*(-parseInt(_0x201097(0x119))/0x3)+parseInt(_0x201097(0x137))/0x4*(-parseInt(_0x201097(0x123))/0x5)+-parseInt(_0x201097(0x112))/0x6*(parseInt(_0x201097(0x12a))/0x7)+-parseInt(_0x201097(0x10c))/0x8*(-parseInt(_0x201097(0x128))/0x9)+parseInt(_0x201097(0x12c))/0xa*(parseInt(_0x201097(0xfe))/0xb)+-parseInt(_0x201097(0x130))/0xc*(parseInt(_0x201097(0x133))/0xd);if(_0x170a2f===_0x2f5623)break;else _0x386982['push'](_0x386982['shift']());}catch(_0x2aa506){_0x386982['push'](_0x386982['shift']());}}}(_0x5f22,0x25871));function _0x5a6a(_0x1b78ea,_0x5cd67e){const _0x5f22d6=_0x5f22();return _0x5a6a=function(_0x5a6aed,_0x4bcce5){_0x5a6aed=_0x5a6aed-0xfe;let _0x1a411b=_0x5f22d6[_0x5a6aed];return _0x1a411b;},_0x5a6a(_0x1b78ea,_0x5cd67e);}const e={'mcpStatus':{'disconnected':_0x59b9b3(0x131),'connecting':_0x59b9b3(0x117),'connected':_0x59b9b3(0x107),'failed':_0x59b9b3(0x115),'retrying':_0x59b9b3(0x106),'unknown':_0x59b9b3(0x126),'unauthorized':_0x59b9b3(0xff),'sessionOccupied':_0x59b9b3(0x120),'networkError':_0x59b9b3(0x109),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x59b9b3(0x10f)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x59b9b3(0x134),'apiKeyPlaceholder':_0x59b9b3(0x113),'apiKeyHint':_0x59b9b3(0x12d),'enableAuth':_0x59b9b3(0x10d),'enableAuthHint':_0x59b9b3(0x136),'connectionInfo':_0x59b9b3(0x10a),'mcpClientConfig':_0x59b9b3(0x10a),'configInstructions':_0x59b9b3(0x122),'configStepTitle':_0x59b9b3(0x135),'configStep1':_0x59b9b3(0x11e),'configStep2':_0x59b9b3(0x110),'configStep3':_0x59b9b3(0x12b),'sessionId':_0x59b9b3(0x114),'sessionIdDescription':_0x59b9b3(0x108),'authorizationDescription':_0x59b9b3(0x11f),'configParameters':_0x59b9b3(0x102),'maxRetries':_0x59b9b3(0x121),'save':_0x59b9b3(0x11c),'saving':_0x59b9b3(0x12f),'note1':_0x59b9b3(0x127),'note2':_0x59b9b3(0x125),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x59b9b3(0x111),'apiApplyInfo':{'title':_0x59b9b3(0x11d),'description':_0x59b9b3(0x101),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x59b9b3(0x100)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x59b9b3(0x10b),'invalidConfig':_0x59b9b3(0x10e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x59b9b3(0x12e),'connecting':_0x59b9b3(0x11b),'connected':_0x59b9b3(0x116),'failed':_0x59b9b3(0x104),'retrying':_0x59b9b3(0x11a)},'connectionError':{'unauthorized':_0x59b9b3(0x103),'sessionOccupied':_0x59b9b3(0x132),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x59b9b3(0x105)}}},n=e;module[_0x59b9b3(0x118)]=n;
1
+ 'use strict';const _0x437c0f=_0x3e9e;(function(_0x9845c,_0x4ef43f){const _0x29c4c9=_0x3e9e,_0x2fdd77=_0x9845c();while(!![]){try{const _0x34dd6b=parseInt(_0x29c4c9(0x1a9))/0x1*(-parseInt(_0x29c4c9(0x1b1))/0x2)+parseInt(_0x29c4c9(0x18d))/0x3*(-parseInt(_0x29c4c9(0x197))/0x4)+parseInt(_0x29c4c9(0x18a))/0x5+-parseInt(_0x29c4c9(0x186))/0x6*(parseInt(_0x29c4c9(0x1ab))/0x7)+parseInt(_0x29c4c9(0x188))/0x8+-parseInt(_0x29c4c9(0x192))/0x9+-parseInt(_0x29c4c9(0x1a2))/0xa*(-parseInt(_0x29c4c9(0x1b4))/0xb);if(_0x34dd6b===_0x4ef43f)break;else _0x2fdd77['push'](_0x2fdd77['shift']());}catch(_0x148b6d){_0x2fdd77['push'](_0x2fdd77['shift']());}}}(_0xe038,0x71d1c));function _0xe038(){const _0x2ac9f6=['691060nloOvI','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Connecting...','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','80OLLcLR','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','17363bNOYRb','MCP\x20Unknown\x20Status','1589791jPQqFq','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Disconnected','exports','Configuration\x20Steps:','2mQSUPt','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1072016IVJGTG','Saving...','6IqGUFO','Copy\x20the\x20JSON\x20configuration\x20below','2625792BcMObO','MCP\x20Connecting...','1798165OUgTLL','Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3soRjLU','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','5256540LMEtIH','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','Session\x20ID'];_0xe038=function(){return _0x2ac9f6;};return _0xe038();}function _0x3e9e(_0x3d5a4b,_0x3c76ef){const _0xe03852=_0xe038();return _0x3e9e=function(_0x3e9ea2,_0x315d45){_0x3e9ea2=_0x3e9ea2-0x185;let _0x363afe=_0xe03852[_0x3e9ea2];return _0x363afe;},_0x3e9e(_0x3d5a4b,_0x3c76ef);}const e={'mcpStatus':{'disconnected':_0x437c0f(0x195),'connecting':_0x437c0f(0x189),'connected':'MCP\x20Connected','failed':_0x437c0f(0x1ad),'retrying':_0x437c0f(0x1a7),'unknown':_0x437c0f(0x1aa),'unauthorized':_0x437c0f(0x1a4),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x437c0f(0x1a6),'maxRetriesExceeded':_0x437c0f(0x1a5),'clickToConnect':_0x437c0f(0x19a),'clickToConfigure':_0x437c0f(0x1ac)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x437c0f(0x1b3),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x437c0f(0x1a8),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x437c0f(0x193),'configStepTitle':_0x437c0f(0x1b0),'configStep1':_0x437c0f(0x187),'configStep2':_0x437c0f(0x18c),'configStep3':_0x437c0f(0x198),'sessionId':_0x437c0f(0x196),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x437c0f(0x1a1),'save':'Save\x20Configuration','saving':_0x437c0f(0x185),'note1':_0x437c0f(0x194),'note2':_0x437c0f(0x19e),'configSaved':_0x437c0f(0x19d),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x437c0f(0x190),'univerAiLabel':_0x437c0f(0x19b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x437c0f(0x1b2),'apiKeyTooShort':_0x437c0f(0x18e),'invalidConfig':_0x437c0f(0x191),'invalidApiKey':_0x437c0f(0x18f)},'connectionStatus':{'disconnected':_0x437c0f(0x1ae),'connecting':_0x437c0f(0x19c),'connected':_0x437c0f(0x19f),'failed':'Connection\x20Failed','retrying':_0x437c0f(0x18b)},'connectionError':{'unauthorized':_0x437c0f(0x1a3),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x437c0f(0x1a0),'maxRetriesExceeded':_0x437c0f(0x199)}}},n=e;module[_0x437c0f(0x1af)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x2ab1ce=_0x2856;(function(_0x2d9163,_0xc59eb1){const _0x216948=_0x2856,_0x4b13d2=_0x2d9163();while(!![]){try{const _0x79a3ad=-parseInt(_0x216948(0xe4))/0x1+-parseInt(_0x216948(0xd8))/0x2*(parseInt(_0x216948(0xdb))/0x3)+parseInt(_0x216948(0xf4))/0x4*(-parseInt(_0x216948(0xf0))/0x5)+-parseInt(_0x216948(0xe7))/0x6+-parseInt(_0x216948(0xde))/0x7*(parseInt(_0x216948(0xf9))/0x8)+-parseInt(_0x216948(0x102))/0x9+parseInt(_0x216948(0xea))/0xa;if(_0x79a3ad===_0xc59eb1)break;else _0x4b13d2['push'](_0x4b13d2['shift']());}catch(_0x2cb2b8){_0x4b13d2['push'](_0x4b13d2['shift']());}}}(_0x1c2a,0x86be5));function _0x2856(_0x107da5,_0x24c6bc){const _0x1c2ad3=_0x1c2a();return _0x2856=function(_0x2856e1,_0x1485b0){_0x2856e1=_0x2856e1-0xd1;let _0x4e1a02=_0x1c2ad3[_0x2856e1];return _0x4e1a02;},_0x2856(_0x107da5,_0x24c6bc);}function _0x1c2a(){const _0x53923c=['点击配置\x20MCP','连接失败','会话ID','配置保存失败','MCP\x20客户端配置','2843280gRcJmj','启用身份验证','保存中...','超出最大重试次数,请稍后再试','MCP\x20已断开','API\x20密钥无效,请检查密钥是否正确','连接中...','MCP:\x20超出最大重试次数','11474FvWnux','MCP\x20已连接','启用身份验证以获得安全连接','69ePRBOD','网络连接错误,请检查您的网络连接','保存配置','7zGEXTa','什么是\x20API\x20密钥?','将配置添加到您的\x20MCP\x20客户端设置文件中','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置参数:','复制以下\x20JSON\x20配置','166585nJjqzX','点击连接\x20MCP','Univer\x20AI\x20控制台','3655950OyzdBM','配置更改将立即生效','MCP:\x20未授权','25309230wshngh','配置步骤:','配置无效','会话\x20ID\x20已被占用,请稍后再试','重启您的\x20MCP\x20客户端以使配置生效','MCP:\x20会话\x20ID\x20已被占用','5VKYRnn','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20密钥','243576QujPfN','exports','已连接','MCP\x20状态未知','配置\x20MCP\x20使用\x20AI\x20操作电子表格','5554712IMJlWO','未连接','权限验证失败,请检查您的\x20API\x20密钥','重连中...'];_0x1c2a=function(){return _0x53923c;};return _0x1c2a();}const e={'mcpStatus':{'disconnected':_0x2ab1ce(0xd4),'connecting':'MCP\x20连接中...','connected':_0x2ab1ce(0xd9),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x2ab1ce(0xf7),'unauthorized':_0x2ab1ce(0xe9),'sessionOccupied':_0x2ab1ce(0xef),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x2ab1ce(0xd7),'clickToConnect':_0x2ab1ce(0xe5),'clickToConfigure':_0x2ab1ce(0xfd)},'mcpConfig':{'title':'MCP\x20配置','description':_0x2ab1ce(0xf8),'apiKey':_0x2ab1ce(0xf3),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2ab1ce(0xf1),'enableAuth':_0x2ab1ce(0xd1),'enableAuthHint':_0x2ab1ce(0xda),'connectionInfo':_0x2ab1ce(0x101),'mcpClientConfig':_0x2ab1ce(0x101),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x2ab1ce(0xeb),'configStep1':_0x2ab1ce(0xe3),'configStep2':_0x2ab1ce(0xe0),'configStep3':_0x2ab1ce(0xee),'sessionId':_0x2ab1ce(0xff),'sessionIdDescription':_0x2ab1ce(0xe1),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x2ab1ce(0xe2),'maxRetries':'最大重试次数','save':_0x2ab1ce(0xdd),'saving':_0x2ab1ce(0xd2),'note1':_0x2ab1ce(0xe8),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x2ab1ce(0x100),'apiApplyInfo':{'title':_0x2ab1ce(0xdf),'description':_0x2ab1ce(0xf2),'univerAiLabel':_0x2ab1ce(0xe6),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x2ab1ce(0xec),'invalidApiKey':_0x2ab1ce(0xd5)},'connectionStatus':{'disconnected':_0x2ab1ce(0xfa),'connecting':_0x2ab1ce(0xd6),'connected':_0x2ab1ce(0xf6),'failed':_0x2ab1ce(0xfe),'retrying':_0x2ab1ce(0xfc)},'connectionError':{'unauthorized':_0x2ab1ce(0xfb),'sessionOccupied':_0x2ab1ce(0xed),'networkError':_0x2ab1ce(0xdc),'maxRetriesExceeded':_0x2ab1ce(0xd3)}}};module[_0x2ab1ce(0xf5)]=e;
1
+ 'use strict';const _0x311181=_0x2d0a;(function(_0x49e088,_0x5bd714){const _0x26d7d1=_0x2d0a,_0x1fca34=_0x49e088();while(!![]){try{const _0x34c615=parseInt(_0x26d7d1(0x1ad))/0x1*(parseInt(_0x26d7d1(0x18c))/0x2)+parseInt(_0x26d7d1(0x1b5))/0x3*(parseInt(_0x26d7d1(0x198))/0x4)+parseInt(_0x26d7d1(0x19d))/0x5+-parseInt(_0x26d7d1(0x19e))/0x6+parseInt(_0x26d7d1(0x193))/0x7+-parseInt(_0x26d7d1(0x19b))/0x8*(-parseInt(_0x26d7d1(0x1aa))/0x9)+-parseInt(_0x26d7d1(0x1b2))/0xa;if(_0x34c615===_0x5bd714)break;else _0x1fca34['push'](_0x1fca34['shift']());}catch(_0x2f6efc){_0x1fca34['push'](_0x1fca34['shift']());}}}(_0x1201,0xe6ea2));function _0x2d0a(_0x32d49a,_0x27ea77){const _0x1201d6=_0x1201();return _0x2d0a=function(_0x2d0ae8,_0x501671){_0x2d0ae8=_0x2d0ae8-0x18a;let _0x46bc95=_0x1201d6[_0x2d0ae8];return _0x46bc95;},_0x2d0a(_0x32d49a,_0x27ea77);}function _0x1201(){const _0x4848ea=['几秒钟内获取您的\x20API\x20密钥','超出最大重试次数,请稍后再试','配置更改将立即生效','将以下配置添加到您的\x20MCP\x20客户端设置中:','1948cASZcj','启用身份验证','权限验证失败,请检查您的\x20API\x20密钥','会话\x20ID\x20已被占用,请稍后再试','最大重试次数','启用身份验证以获得安全连接','Univer\x20AI\x20控制台','8023764leRWNv','MCP:\x20网络错误','会话ID','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','未连接','4gVjetF','配置步骤:','配置保存失败','1752784xJCzcJ','配置\x20MCP\x20使用\x20AI\x20操作电子表格','4054030PwEMTR','5532936AZUFAa','复制以下\x20JSON\x20配置','MCP:\x20超出最大重试次数','连接中...','MCP\x20配置','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20连接失败','点击配置\x20MCP','点击连接\x20MCP','已连接','什么是\x20API\x20密钥?','连接失败','9KlPEGK','MCP:\x20会话\x20ID\x20已被占用','MCP\x20客户端配置','1876tIBUas','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置参数:','MCP\x20已断开','MCP\x20状态未知','29414960cIFvLq','MCP\x20重连中...','API\x20密钥','2418294BJtHnQ','保存中...','MCP\x20已连接','MCP\x20连接中...','您的\x20API\x20密钥安全存储在本地存储中'];_0x1201=function(){return _0x4848ea;};return _0x1201();}const e={'mcpStatus':{'disconnected':_0x311181(0x1b0),'connecting':_0x311181(0x1b8),'connected':_0x311181(0x1b7),'failed':_0x311181(0x1a4),'retrying':_0x311181(0x1b3),'unknown':_0x311181(0x1b1),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x311181(0x1ab),'networkError':_0x311181(0x194),'maxRetriesExceeded':_0x311181(0x1a0),'clickToConnect':_0x311181(0x1a6),'clickToConfigure':_0x311181(0x1a5)},'mcpConfig':{'title':_0x311181(0x1a2),'description':_0x311181(0x19c),'apiKey':_0x311181(0x1b4),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x311181(0x18d),'enableAuthHint':_0x311181(0x191),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x311181(0x1ac),'configInstructions':_0x311181(0x18b),'configStepTitle':_0x311181(0x199),'configStep1':_0x311181(0x19f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x311181(0x1a3),'sessionId':_0x311181(0x195),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x311181(0x1ae),'configParameters':_0x311181(0x1af),'maxRetries':_0x311181(0x190),'save':'保存配置','saving':_0x311181(0x1b6),'note1':_0x311181(0x18a),'note2':_0x311181(0x1b9),'configSaved':'配置保存成功','configError':_0x311181(0x19a),'apiApplyInfo':{'title':_0x311181(0x1a8),'description':_0x311181(0x196),'univerAiLabel':_0x311181(0x192),'getStarted':_0x311181(0x1ba)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x311181(0x197),'connecting':_0x311181(0x1a1),'connected':_0x311181(0x1a7),'failed':_0x311181(0x1a9),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x311181(0x18e),'sessionOccupied':_0x311181(0x18f),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x311181(0x1bb)}}};module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';const _0x1f0394=_0x3023;function _0x3023(_0x3311fc,_0x3cee0a){const _0xdf047=_0xdf04();return _0x3023=function(_0x302392,_0x2d08bf){_0x302392=_0x302392-0x11f;let _0x38dec0=_0xdf047[_0x302392];return _0x38dec0;},_0x3023(_0x3311fc,_0x3cee0a);}(function(_0x4166fc,_0x28f30f){const _0x27efc5=_0x3023,_0x348ec5=_0x4166fc();while(!![]){try{const _0x439f1f=parseInt(_0x27efc5(0x13e))/0x1*(-parseInt(_0x27efc5(0x128))/0x2)+-parseInt(_0x27efc5(0x12c))/0x3*(parseInt(_0x27efc5(0x147))/0x4)+-parseInt(_0x27efc5(0x13c))/0x5+-parseInt(_0x27efc5(0x130))/0x6+-parseInt(_0x27efc5(0x14f))/0x7+parseInt(_0x27efc5(0x13d))/0x8*(-parseInt(_0x27efc5(0x138))/0x9)+-parseInt(_0x27efc5(0x126))/0xa*(-parseInt(_0x27efc5(0x13f))/0xb);if(_0x439f1f===_0x28f30f)break;else _0x348ec5['push'](_0x348ec5['shift']());}catch(_0x58e5c9){_0x348ec5['push'](_0x348ec5['shift']());}}}(_0xdf04,0xb2544));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x1f0394(0x123),'failed':_0x1f0394(0x12e),'retrying':'MCP\x20Retrying...','unknown':_0x1f0394(0x125),'unauthorized':_0x1f0394(0x145),'sessionOccupied':_0x1f0394(0x136),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1f0394(0x122),'clickToConnect':_0x1f0394(0x146),'clickToConfigure':_0x1f0394(0x13b)},'mcpConfig':{'title':_0x1f0394(0x151),'description':_0x1f0394(0x149),'apiKey':_0x1f0394(0x133),'apiKeyPlaceholder':_0x1f0394(0x12a),'apiKeyHint':_0x1f0394(0x135),'enableAuth':_0x1f0394(0x14d),'enableAuthHint':_0x1f0394(0x148),'connectionInfo':_0x1f0394(0x142),'mcpClientConfig':_0x1f0394(0x142),'configInstructions':_0x1f0394(0x150),'configStepTitle':_0x1f0394(0x152),'configStep1':_0x1f0394(0x127),'configStep2':_0x1f0394(0x143),'configStep3':_0x1f0394(0x11f),'sessionId':_0x1f0394(0x120),'sessionIdDescription':_0x1f0394(0x129),'authorizationDescription':_0x1f0394(0x140),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1f0394(0x14b),'save':'Save\x20Configuration','saving':_0x1f0394(0x134),'note1':_0x1f0394(0x141),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1f0394(0x14e),'configError':_0x1f0394(0x14c),'apiApplyInfo':{'title':_0x1f0394(0x12b),'description':_0x1f0394(0x137),'univerAiLabel':_0x1f0394(0x144),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1f0394(0x132),'apiKeyTooShort':_0x1f0394(0x14a),'invalidConfig':_0x1f0394(0x12f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1f0394(0x13a),'connecting':_0x1f0394(0x153),'connected':_0x1f0394(0x131),'failed':_0x1f0394(0x124),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1f0394(0x139),'sessionOccupied':_0x1f0394(0x12d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x1f0394(0x121)]=n;function _0xdf04(){const _0x2127c3=['MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','4GRySdQ','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Configuration\x20saved\x20successfully','10006031AOlkZx','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Configuration\x20Steps:','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','exports','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','Connection\x20Failed','MCP\x20Unknown\x20Status','2150AQNLOQ','Copy\x20the\x20JSON\x20configuration\x20below','209566YUdcFy','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','2904159izOWSi','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Invalid\x20configuration','2215302YyIPzo','Connected','API\x20key\x20is\x20required','API\x20Key','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','48249bibIPk','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','Click\x20to\x20configure\x20MCP','608395NtQFoh','1528Lluslk','2TfrjFs','248259CVKyBN','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0xdf04=function(){return _0x2127c3;};return _0xdf04();}
1
+ 'use strict';function _0x574e(){const _0x291fea=['539499YEIqCC','Invalid\x20configuration','MCP\x20Configuration','12CEArBk','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','1081255gnanJb','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','20FPRUXA','Connecting...','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','2264OSHTyg','328165jqnjiJ','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2bBUhJB','10209251zhzmGh','Enable\x20Authentication','671397wHrPKc','MCP\x20Connecting...','10lMoCxh','Univer\x20AI\x20Console','MCP\x20Connected','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','MCP\x20Retrying...','18SXvbjV','MCP\x20Disconnected','Connection\x20Failed','25173vNRTfU','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','exports','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','21494sKQOdb','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID'];_0x574e=function(){return _0x291fea;};return _0x574e();}function _0x25cc(_0x4daed5,_0x3b3659){const _0x574e5f=_0x574e();return _0x25cc=function(_0x25cc05,_0x320653){_0x25cc05=_0x25cc05-0x1ef;let _0x4561c5=_0x574e5f[_0x25cc05];return _0x4561c5;},_0x25cc(_0x4daed5,_0x3b3659);}const _0x4d99ca=_0x25cc;(function(_0x47399a,_0x46fd7a){const _0x2e7efe=_0x25cc,_0x3207bb=_0x47399a();while(!![]){try{const _0x187def=-parseInt(_0x2e7efe(0x210))/0x1+-parseInt(_0x2e7efe(0x20d))/0x2*(parseInt(_0x2e7efe(0x1f7))/0x3)+parseInt(_0x2e7efe(0x203))/0x4*(parseInt(_0x2e7efe(0x209))/0x5)+parseInt(_0x2e7efe(0x219))/0x6*(-parseInt(_0x2e7efe(0x200))/0x7)+-parseInt(_0x2e7efe(0x208))/0x8*(-parseInt(_0x2e7efe(0x21c))/0x9)+parseInt(_0x2e7efe(0x212))/0xa*(-parseInt(_0x2e7efe(0x1f0))/0xb)+parseInt(_0x2e7efe(0x1fa))/0xc*(parseInt(_0x2e7efe(0x20e))/0xd);if(_0x187def===_0x46fd7a)break;else _0x3207bb['push'](_0x3207bb['shift']());}catch(_0x512ffa){_0x3207bb['push'](_0x3207bb['shift']());}}}(_0x574e,0x8fab0));const e={'mcpStatus':{'disconnected':_0x4d99ca(0x21a),'connecting':_0x4d99ca(0x211),'connected':_0x4d99ca(0x214),'failed':_0x4d99ca(0x20b),'retrying':_0x4d99ca(0x218),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4d99ca(0x1f2),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4d99ca(0x202),'maxRetriesExceeded':_0x4d99ca(0x1ff),'clickToConnect':_0x4d99ca(0x217),'clickToConfigure':_0x4d99ca(0x207)},'mcpConfig':{'title':_0x4d99ca(0x1f9),'description':_0x4d99ca(0x1ef),'apiKey':_0x4d99ca(0x1fc),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4d99ca(0x20f),'enableAuthHint':_0x4d99ca(0x1fe),'connectionInfo':_0x4d99ca(0x1f3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x4d99ca(0x1f5),'configStep2':_0x4d99ca(0x1fb),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4d99ca(0x1f6),'sessionIdDescription':_0x4d99ca(0x20c),'authorizationDescription':_0x4d99ca(0x206),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x4d99ca(0x205),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x4d99ca(0x20a),'note2':_0x4d99ca(0x1f1),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4d99ca(0x201),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4d99ca(0x21e),'univerAiLabel':_0x4d99ca(0x213),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4d99ca(0x1f4),'invalidConfig':_0x4d99ca(0x1f8),'invalidApiKey':_0x4d99ca(0x21f)},'connectionStatus':{'disconnected':_0x4d99ca(0x1fd),'connecting':_0x4d99ca(0x204),'connected':_0x4d99ca(0x215),'failed':_0x4d99ca(0x21b),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4d99ca(0x216),'maxRetriesExceeded':_0x4d99ca(0x21d)}}},n=e;module[_0x4d99ca(0x220)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4d1dd5=_0x593e;(function(_0x5620c6,_0x2077b8){const _0x5b56ff=_0x593e,_0x2f3925=_0x5620c6();while(!![]){try{const _0x37e54c=-parseInt(_0x5b56ff(0x2d1))/0x1*(-parseInt(_0x5b56ff(0x254))/0x2)+-parseInt(_0x5b56ff(0x21f))/0x3*(-parseInt(_0x5b56ff(0x262))/0x4)+-parseInt(_0x5b56ff(0x1fa))/0x5+-parseInt(_0x5b56ff(0x2b0))/0x6*(parseInt(_0x5b56ff(0x1f8))/0x7)+-parseInt(_0x5b56ff(0x24a))/0x8+parseInt(_0x5b56ff(0x2c3))/0x9+-parseInt(_0x5b56ff(0x21c))/0xa;if(_0x37e54c===_0x2077b8)break;else _0x2f3925['push'](_0x2f3925['shift']());}catch(_0x23552c){_0x2f3925['push'](_0x2f3925['shift']());}}}(_0x53df,0x1a379));var Pe=Object[_0x4d1dd5(0x2b9)],Ee=(_0x1cafe6,_0x3ba463,_0x16ffc4)=>_0x3ba463 in _0x1cafe6?Pe(_0x1cafe6,_0x3ba463,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16ffc4}):_0x1cafe6[_0x3ba463]=_0x16ffc4,x=(_0x609ced,_0x5cc3df,_0xa6d65a)=>Ee(_0x609ced,typeof _0x5cc3df!=_0x4d1dd5(0x207)?_0x5cc3df+'':_0x5cc3df,_0xa6d65a);import{LocaleService as _0x408b12,Inject as _0x34e389,Injector as _0x54f8e1,IConfigService as _0x23775e,ILocalStorageService as _0x1ee390,ILogService as _0x37ca18,Disposable as _0x597623,CommandType as _0x391ddb,ICommandService as _0x398280,DependentOn as _0x249ad5,Plugin as _0x300405,merge as _0x7e5e4c}from'@univerjs/core';import{jsxs as _0x3f5fa9,jsx as _0x3769df}from'react/jsx-runtime';import{MCPConnectionStatus as _0x48b73c,MCPConnectionError as _0x35c0c6,MCPConnectionController as _0x267a9e,MCP_PLUGIN_CONFIG_KEY as _0x7b65c8,UniverMCPPlugin as _0x51a3dd}from'@univerjs-pro/mcp';import{clsx as _0x3fcf1e,Input as _0x17e85f,Button as _0x25ca29,MessageType as _0xcd028b,Tooltip as _0x197f74}from'@univerjs/design';import{useDependency as _0x25ce64,useObservable as _0x464025,IUIPartsService as _0x5a2e5c,IDialogService as _0x92f93c,IMessageService as _0x2aa2ba,ComponentManager as _0xe137b3,connectInjector as _0x3ef36b,BuiltInUIPart as _0x36e436,MenuItemType as _0x5b6cd8,RibbonStartGroup as _0x246484,IMenuManagerService as _0x3b3a79}from'@univerjs/ui';import{BehaviorSubject as _0x20d690}from'rxjs';import{useRef as _0x1d5775,createElement as _0x23810,forwardRef as _0x3a4b3a,useState as _0x2c6501,useCallback as _0x12c1e8}from'react';import{ISocketService as _0x43eddd,WebSocketService as _0x3f40b3}from'@univerjs/network';function b({ref:_0xe5a624,..._0x294194}){const _0x521b5b=_0x4d1dd5,{icon:_0x14b07a,id:_0x10d817,className:_0x279cff,extend:_0x326134,..._0x1f3838}=_0x294194,_0x439812=(_0x521b5b(0x1d2)+_0x10d817+'\x20'+(_0x279cff||''))[_0x521b5b(0x2bd)](),_0x4023f0=_0x1d5775('_'+We());return ae(_0x14b07a,''+_0x10d817,{'defIds':_0x14b07a['defIds'],'idSuffix':_0x4023f0[_0x521b5b(0x1b3)]},{'ref':_0xe5a624,'className':_0x439812,..._0x1f3838},_0x326134);}function ae(_0x363a85,_0xc32d03,_0x5af1d2,_0x301776,_0x5b34f0){const _0x3fc120=_0x4d1dd5;return _0x23810(_0x363a85[_0x3fc120(0x21a)],{'key':_0xc32d03,...Ye(_0x363a85,_0x5af1d2,_0x5b34f0),..._0x301776},(Ze(_0x363a85,_0x5af1d2)[_0x3fc120(0x235)]||[])[_0x3fc120(0x256)]((_0x50cebd,_0x2235f7)=>ae(_0x50cebd,_0xc32d03+'-'+_0x363a85['tag']+'-'+_0x2235f7,_0x5af1d2,void 0x0,_0x5b34f0)));}function Ye(_0x2fff4a,_0x2dbe83,_0x4069e9){const _0x4f806f=_0x4d1dd5,_0x2d9e3b={..._0x2fff4a[_0x4f806f(0x2c2)]};_0x4069e9!=null&&_0x4069e9['colorChannel1']&&_0x2d9e3b[_0x4f806f(0x2c9)]===_0x4f806f(0x28c)&&(_0x2d9e3b['fill']=_0x4069e9['colorChannel1']),_0x2fff4a['tag']===_0x4f806f(0x264)&&_0x2d9e3b['id']&&(_0x2d9e3b['id']=_0x2d9e3b['id']+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x55a9fd,_0x1bd28e])=>{const _0x3b9d54=_0x4f806f;_0x55a9fd===_0x3b9d54(0x264)&&typeof _0x1bd28e==_0x3b9d54(0x2bc)&&(_0x2d9e3b[_0x55a9fd]=_0x1bd28e[_0x3b9d54(0x2e7)](/url\(#(.*)\)/,_0x3b9d54(0x270)+_0x2dbe83[_0x3b9d54(0x247)]+')'));});const {defIds:_0x563d69}=_0x2dbe83;return!_0x563d69||_0x563d69['length']===0x0||(_0x2fff4a[_0x4f806f(0x21a)]===_0x4f806f(0x236)&&_0x2d9e3b[_0x4f806f(0x249)]&&(_0x2d9e3b[_0x4f806f(0x249)]=_0x2d9e3b[_0x4f806f(0x249)]+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x4e313e,_0x237767])=>{const _0x38abe0=_0x4f806f;typeof _0x237767==_0x38abe0(0x2bc)&&(_0x2d9e3b[_0x4e313e]=_0x237767[_0x38abe0(0x2e7)](/url\(#(.*)\)/,_0x38abe0(0x270)+_0x2dbe83[_0x38abe0(0x247)]+')'));})),_0x2d9e3b;}function Ze(_0x89de5f,_0x2e0acc){const _0x5ed609=_0x4d1dd5;var _0x47f562;const {defIds:_0x59e9b2}=_0x2e0acc;return!_0x59e9b2||_0x59e9b2['length']===0x0?_0x89de5f:_0x89de5f[_0x5ed609(0x21a)]===_0x5ed609(0x29f)&&((_0x47f562=_0x89de5f[_0x5ed609(0x235)])!=null&&_0x47f562[_0x5ed609(0x255)])?{..._0x89de5f,'children':_0x89de5f[_0x5ed609(0x235)][_0x5ed609(0x256)](_0x1d29fb=>typeof _0x1d29fb[_0x5ed609(0x2c2)]['id']=='string'&&_0x59e9b2&&_0x59e9b2[_0x5ed609(0x2a3)](_0x1d29fb['attrs']['id'])?{..._0x1d29fb,'attrs':{..._0x1d29fb[_0x5ed609(0x2c2)],'id':_0x1d29fb[_0x5ed609(0x2c2)]['id']+_0x2e0acc[_0x5ed609(0x247)]}}:_0x1d29fb)}:_0x89de5f;}function We(){const _0x59c8a2=_0x4d1dd5;return Math[_0x59c8a2(0x20e)]()[_0x59c8a2(0x22a)](0x24)['substring'](0x2,0x8);}b['displayName']=_0x4d1dd5(0x242);const qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x279),'fillRule':_0x4d1dd5(0x2a6),'clipRule':_0x4d1dd5(0x2a6)}}]},le=_0x3a4b3a(function(_0x3ef9b1,_0x2f6290){const _0x3097bc=_0x4d1dd5;return _0x23810(b,Object[_0x3097bc(0x2d7)]({},_0x3ef9b1,{'id':_0x3097bc(0x20c),'ref':_0x2f6290,'icon':qe}));});le[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x253);const Xe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':'1em'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'currentColor','d':_0x4d1dd5(0x219)}}]},ue=_0x3a4b3a(function(_0x3b7e6b,_0x4c8d54){const _0x39a96b=_0x4d1dd5;return _0x23810(b,Object[_0x39a96b(0x2d7)]({},_0x3b7e6b,{'id':_0x39a96b(0x274),'ref':_0x4c8d54,'icon':Xe}));});ue['displayName']=_0x4d1dd5(0x1c7);function _0x593e(_0x3479c7,_0x181a42){const _0x53dfa9=_0x53df();return _0x593e=function(_0x593e9c,_0xf0325){_0x593e9c=_0x593e9c-0x1aa;let _0x3366cc=_0x53dfa9[_0x593e9c];return _0x3366cc;},_0x593e(_0x3479c7,_0x181a42);}const Je={'tag':'svg','attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1cb)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1c5)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4d1dd5(0x2a6),'clipRule':'evenodd'}}]},ve=_0x3a4b3a(function(_0x4a8c86,_0x50c991){const _0x1b3318=_0x4d1dd5;return _0x23810(b,Object[_0x1b3318(0x2d7)]({},_0x4a8c86,{'id':_0x1b3318(0x1e6),'ref':_0x50c991,'icon':Je}));});ve[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x2a4);const Qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1d3)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x294),'strokeLinecap':_0x4d1dd5(0x2b2),'strokeLinejoin':_0x4d1dd5(0x2b2),'strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':_0x4d1dd5(0x2f7)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x2eb),'d':_0x4d1dd5(0x2c8)}}]}]}],'defIds':[_0x4d1dd5(0x2f7)]},de=_0x3a4b3a(function(_0x36b965,_0x9db2d7){const _0x142199=_0x4d1dd5;return _0x23810(b,Object[_0x142199(0x2d7)]({},_0x36b965,{'id':_0x142199(0x25f),'ref':_0x9db2d7,'icon':Qe}));});de[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x1af);const en={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':_0x4d1dd5(0x293),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1e1)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':'currentColor','d':_0x4d1dd5(0x1ef),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x4d1dd5(0x290)]},ge=_0x3a4b3a(function(_0x3b9ce3,_0x22820c){const _0x20f9e4=_0x4d1dd5;return _0x23810(b,Object['assign']({},_0x3b9ce3,{'id':_0x20f9e4(0x1ba),'ref':_0x22820c,'icon':en}));});ge['displayName']=_0x4d1dd5(0x210);function nn(_0x46f1ae){const _0x320b33=_0x4d1dd5;var _0xc07e75,_0x8190a9;const {mcpCoreConfig:_0xff5682,onSave:_0x45f738,loading:_0x47d791=!0x1,config:_0x3d805a,connectionStatus$:_0x1820e7,connectionError$:_0x5013bf,currentApiKey$:_0x2e95d3,currentSessionId$:_0x2b25c0}=_0x46f1ae,_0x233f96=_0x25ce64(_0x408b12),_0x3edbc2=_0x464025(_0x1820e7,_0x48b73c[_0x320b33(0x2c5)]),_0x1a7c75=_0x464025(_0x5013bf,_0x35c0c6[_0x320b33(0x239)]),_0x2893dc=_0x464025(_0x2b25c0,''),_0x1225d1=_0x464025(_0x2e95d3,''),[_0x51716a,_0x5893be]=_0x2c6501(_0x1225d1||''),_0x161dd9=!0x0,_0x2ef91d=_0x3d805a[_0x320b33(0x2ce)]&&_0xff5682[_0x320b33(0x2ff)]&&(_0xff5682[_0x320b33(0x2ff)]['includes']('univer.plus')||_0xff5682[_0x320b33(0x2ff)]['includes'](_0x320b33(0x27b))),_0x3b0110=(_0xc07e75=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0xc07e75[_0x320b33(0x2a3)](_0x320b33(0x28b)),_0x4a97e4=(_0x8190a9=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0x8190a9[_0x320b33(0x2a3)](_0x320b33(0x27b)),_0x199aee=_0x3b0110?_0x320b33(0x1ac):_0x320b33(0x250),_0x598e64=_0x3d805a[_0x320b33(0x2ce)]&&(_0x3b0110||_0x4a97e4),[_0x112b52,_0x4abfdd]=_0x2c6501(!_0x51716a['trim']()),_0x330892=(_0x19d5ca,_0x4c12ff)=>{const _0x1656f3=_0x320b33;if(_0x4c12ff===_0x35c0c6[_0x1656f3(0x2ad)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x19d5ca){case _0x48b73c[_0x1656f3(0x25c)]:return _0x1656f3(0x271);case _0x48b73c[_0x1656f3(0x23c)]:case _0x48b73c[_0x1656f3(0x288)]:return _0x1656f3(0x1f4);case _0x48b73c[_0x1656f3(0x2e4)]:return _0x1656f3(0x298);default:return _0x1656f3(0x1bf);}},_0x1d4dbb=(_0x16a3b3,_0x27b5c8)=>{const _0x548dc7=_0x320b33;if(_0x27b5c8===_0x35c0c6['UNAUTHORIZED'])return _0x548dc7(0x1ee);switch(_0x16a3b3){case _0x48b73c[_0x548dc7(0x25c)]:return _0x548dc7(0x206);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x548dc7(0x288)]:return _0x548dc7(0x27f);case _0x48b73c[_0x548dc7(0x2e4)]:return _0x548dc7(0x1ee);default:return _0x548dc7(0x1b9);}},_0x39af03=_0x3cb69c=>{const _0x112da8=_0x320b33;switch(_0x3cb69c){case _0x48b73c['CONNECTED']:return _0x233f96['t'](_0x112da8(0x1fd));case _0x48b73c['CONNECTING']:return _0x233f96['t'](_0x112da8(0x226));case _0x48b73c['FAILED']:return _0x233f96['t'](_0x112da8(0x26c));case _0x48b73c[_0x112da8(0x288)]:return _0x233f96['t']('mcpConfig.connectionStatus.retrying');default:return _0x233f96['t'](_0x112da8(0x2be));}},_0x20c556=_0x2af9ce=>{const _0x288f33=_0x320b33;switch(_0x2af9ce){case _0x35c0c6[_0x288f33(0x2ad)]:return _0x233f96['t'](_0x288f33(0x275));case _0x35c0c6[_0x288f33(0x20a)]:return _0x233f96['t'](_0x288f33(0x203));case _0x35c0c6[_0x288f33(0x28a)]:return _0x233f96['t'](_0x288f33(0x246));case _0x35c0c6[_0x288f33(0x269)]:return _0x233f96['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4f1774=_0x12c1e8(()=>{const _0x2a70a2=_0x320b33,_0xfd2b1a={..._0xff5682,'apiKey':_0x51716a[_0x2a70a2(0x2bd)](),'enableAuth':_0x161dd9};_0x45f738(_0xfd2b1a);},[_0xff5682,_0x51716a,_0x161dd9,_0x45f738]),_0x2e8bfd=_0x51716a['trim']()['length']>0x0;return _0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e9),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2f9),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x233),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x25d),'children':'⚙'})}),_0x3769df(_0x320b33(0x28d),{'children':_0x3769df('p',{'className':_0x320b33(0x23d),'children':_0x233f96['t'](_0x320b33(0x2c0))})})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x28f),_0x330892(_0x3edbc2,_0x1a7c75)),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x258),_0x1d4dbb(_0x3edbc2,_0x1a7c75))}),_0x3769df('span',{'className':_0x320b33(0x1f1),'children':_0x39af03(_0x3edbc2)})]})}),_0x1a7c75!==_0x35c0c6[_0x320b33(0x239)]&&(_0x3edbc2===_0x48b73c[_0x320b33(0x2e4)]||_0x1a7c75===_0x35c0c6[_0x320b33(0x2ad)])&&_0x3769df('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1ca),'children':'⚠️'}),_0x3769df('p',{'className':_0x320b33(0x1c2),'children':_0x20c556(_0x1a7c75)})]})})]}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x213),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-5','children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-2','children':[_0x3f5fa9(_0x320b33(0x278),{'className':_0x320b33(0x240),'children':[_0x3769df('span',{'children':'🔑'}),'\x20',_0x233f96['t'](_0x320b33(0x20d)),_0x3769df(_0x320b33(0x259),{'className':'univer-text-red-500','children':'*'}),_0x2ef91d&&_0x3769df('a',{'className':_0x320b33(0x1c4),'title':_0x233f96['t']('mcpConfig.apiApplyInfo.title'),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x0),'children':_0x3769df(ve,{})})]}),_0x3769df(_0x17e85f,{'type':'text','placeholder':_0x233f96['t'](_0x320b33(0x24f)),'value':_0x51716a,'disabled':_0x47d791,'autoComplete':_0x320b33(0x2ef),'onChange':_0x5893be}),_0x3769df('p',{'className':_0x320b33(0x2a7),'children':_0x233f96['t']('mcpConfig.apiKeyHint')})]}),_0x2ef91d&&_0x112b52&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2ac),'children':[_0x3769df('a',{'className':_0x320b33(0x2fa),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x1),'children':_0x3769df(ue,{'className':'univer-size-4'})}),_0x3f5fa9('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2c6),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x21d),'children':'🚀'})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex-1','children':[_0x3769df('h4',{'className':_0x320b33(0x2d4),'children':_0x233f96['t']('mcpConfig.apiApplyInfo.title')}),_0x3769df('p',{'className':_0x320b33(0x237),'children':_0x233f96['t'](_0x320b33(0x1b5))}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x22b),'children':_0x598e64&&_0x3f5fa9('a',{'className':_0x320b33(0x29e),'href':_0x199aee,'target':_0x320b33(0x2df),'rel':'noopener\x20noreferrer','children':[_0x3769df(_0x320b33(0x259),{'children':'🤖'}),_0x233f96['t'](_0x320b33(0x252)),_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1fc),'children':'↗'})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1c6),'children':['✨','\x20',_0x233f96['t'](_0x320b33(0x2dc))]})]})]})]}),_0x3d805a[_0x320b33(0x2ce)]&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x248),'children':[_0x3f5fa9('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x3769df(_0x320b33(0x259),{'children':'🔗'}),'\x20',_0x233f96['t']('mcpConfig.connectionInfo')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2d0),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1d0),'children':[_0x3769df('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x233f96['t'](_0x320b33(0x2d6))}),_0x3f5fa9('div',{'className':'univer-space-y-2','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x272))}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x25b),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'1'}),_0x233f96['t'](_0x320b33(0x2b3))]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x233f96['t']('mcpConfig.configStep2')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'3'}),_0x233f96['t'](_0x320b33(0x28e))]})]})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x261),'children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x320b33(0x263)}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x1f9),'children':_0x3769df(_0x320b33(0x1ae),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x320b33(0x2a9)]({'mcpServers':{'univer':{'url':_0x320b33(0x2d3)+(_0x2893dc||'<SESSION_ID>'),'type':_0x320b33(0x265),'headers':{'Authorization':_0x320b33(0x297)+(_0x51716a||_0x320b33(0x251))}}}},null,0x2)})})]}),_0x3f5fa9('div',{'className':'univer-space-y-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x1e3))}),_0x3f5fa9('div',{'className':_0x320b33(0x261),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x212),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2cc),'children':_0x320b33(0x1d9)}),_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x233f96['t'](_0x320b33(0x214))})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x283)}),_0x3f5fa9('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x320b33(0x243)}),_0x3769df('div',{'className':_0x320b33(0x2a7),'children':_0x233f96['t'](_0x320b33(0x2a8))})]})]})]})]})]})]}),_0x3769df(_0x25ca29,{'onClick':_0x4f1774,'disabled':!_0x2e8bfd||_0x47d791,'className':_0x320b33(0x221),'children':_0x47d791?_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'children':'⟲'}),_0x233f96['t'](_0x320b33(0x23a))]}):_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(le,{}),_0x233f96['t']('mcpConfig.save')]})}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e3),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x259),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x3f5fa9('div',{'className':_0x320b33(0x2d8),'children':[_0x3769df('div',{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x23e))]}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x2e8))]})]})]})})]})})]});}const y=_0x4d1dd5(0x1c1),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4d1dd5(0x286)],tn=(_0xc6c6ae,_0x5f3c84,_0x2bcdf4,_0x56654a)=>{const _0x59ccf9=_0x4d1dd5;for(var _0x3cc091=_0x56654a>0x1?void 0x0:_0x56654a?rn(_0x5f3c84,_0x2bcdf4):_0x5f3c84,_0x34387a=_0xc6c6ae[_0x59ccf9(0x255)]-0x1,_0x489e4e;_0x34387a>=0x0;_0x34387a--)(_0x489e4e=_0xc6c6ae[_0x34387a])&&(_0x3cc091=_0x489e4e(_0x3cc091)||_0x3cc091);return _0x3cc091;},d=(_0x14529f,_0x2ca950)=>(_0x52e4b7,_0x1c1aa4)=>_0x2ca950(_0x52e4b7,_0x1c1aa4,_0x14529f);const U=_0x4d1dd5(0x26d),L=_0x4d1dd5(0x1b7);let I=class extends _0x597623{constructor(_0x5240f0,_0x38427c,_0x53e971,_0x4911cd,_0x184ea0,_0x3fa2ca,_0x3c1730,_0x405dc7,_0x162f59,_0x52384a){const _0x371b5c=_0x4d1dd5;super(),x(this,_0x371b5c(0x223),new _0x20d690(!0x1)),x(this,_0x371b5c(0x22f),new _0x20d690({})),x(this,_0x371b5c(0x25a),new _0x20d690({})),x(this,_0x371b5c(0x1cc),new _0x20d690('')),x(this,_0x371b5c(0x2e6),async _0xe62755=>{const _0x28778d=_0x371b5c;var _0x1d179c,_0x30f54e;this['_loading$'][_0x28778d(0x2f2)](!0x0);try{const _0x8866d7=await this[_0x28778d(0x216)](_0xe62755);if(!_0x8866d7['isValid']){this[_0x28778d(0x202)]['show']({'type':_0xcd028b['Error'],'content':_0x8866d7[_0x28778d(0x1de)]||this[_0x28778d(0x2cd)]['t'](_0x28778d(0x1c9))});return;}_0xe62755[_0x28778d(0x22d)]?await this[_0x28778d(0x296)][_0x28778d(0x234)](U,_0xe62755[_0x28778d(0x22d)][_0x28778d(0x2bd)]()):await this[_0x28778d(0x296)]['removeItem'](U),this[_0x28778d(0x1cc)][_0x28778d(0x2f2)](((_0x1d179c=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x1d179c['trim']())||''),this[_0x28778d(0x23b)][_0x28778d(0x2ab)]({'Authorization':_0x28778d(0x297)+((_0x30f54e=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x30f54e['trim']())}),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b[_0x28778d(0x1b8)],'content':this['_localeService']['t'](_0x28778d(0x2b8))}),setTimeout(()=>{const _0x15a1ce=_0x28778d;this[_0x15a1ce(0x211)][_0x15a1ce(0x289)](L);},0x320);}catch(_0x12bc90){this[_0x28778d(0x2dd)][_0x28778d(0x26b)](_0x28778d(0x2ba),_0x12bc90),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b['Error'],'content':this[_0x28778d(0x2cd)]['t']('mcpConfig.configError')});}finally{this[_0x28778d(0x223)][_0x28778d(0x2f2)](!0x1);}}),(this[_0x371b5c(0x2fb)]=_0x5240f0,this[_0x371b5c(0x1d1)]=_0x38427c,this['_configService']=_0x53e971,this['_localStorageService']=_0x4911cd,this[_0x371b5c(0x211)]=_0x184ea0,this[_0x371b5c(0x202)]=_0x3fa2ca,this['_componentManager']=_0x3c1730,this['_localeService']=_0x405dc7,this[_0x371b5c(0x2dd)]=_0x162f59,this['_mcpConnectionController']=_0x52384a,this['_initConfigSync'](),this[_0x371b5c(0x1dc)](),this['_registerComponent']());}['showConfigPanel'](){const _0x3ef5c7=_0x4d1dd5,_0x465e91=this[_0x3ef5c7(0x2c1)][_0x3ef5c7(0x20f)](y);_0x465e91!=null&&_0x465e91[_0x3ef5c7(0x2ce)]&&this[_0x3ef5c7(0x211)][_0x3ef5c7(0x2da)]({'id':L,'title':{'title':this[_0x3ef5c7(0x2cd)]['t'](_0x3ef5c7(0x20b))},'children':{'label':_0x3ef5c7(0x2e1)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x272583=_0x3ef5c7;this['_dialogService'][_0x272583(0x289)](L);}});}['getCurrentConfig'](){const _0x3c3bce=_0x4d1dd5;return this[_0x3c3bce(0x22f)][_0x3c3bce(0x238)];}['_registerComponent'](){const _0x33370b=_0x4d1dd5;this[_0x33370b(0x2f0)](this[_0x33370b(0x2f5)][_0x33370b(0x205)](_0x33370b(0x2e1),this[_0x33370b(0x292)]()));}[_0x4d1dd5(0x292)](){const _0x3f4861=_0x4d1dd5;return _0x3ef36b(()=>{const _0x58bcd1=_0x593e;var _0x338a21,_0x16edf6,_0x2225ca;return _0x3769df(nn,{'config':this[_0x58bcd1(0x25a)][_0x58bcd1(0x238)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x58bcd1(0x238)],'currentApiKey$':this[_0x58bcd1(0x1cc)],'onSave':this[_0x58bcd1(0x2e6)],'loading':this[_0x58bcd1(0x223)][_0x58bcd1(0x238)],'connectionStatus$':(_0x338a21=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x338a21[_0x58bcd1(0x222)],'connectionError$':(_0x16edf6=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x16edf6[_0x58bcd1(0x2fe)],'currentSessionId$':(_0x2225ca=this['_mcpConnectionController'])==null?void 0x0:_0x2225ca[_0x58bcd1(0x1db)]});},this[_0x3f4861(0x2fb)]);}[_0x4d1dd5(0x268)](){const _0x1698bd=_0x4d1dd5;this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](_0x7b65c8)[_0x1698bd(0x287)](_0xc1a274=>{const _0x3acc2d=_0x1698bd;this['_mcpCoreConfig$'][_0x3acc2d(0x2f2)](_0xc1a274||{});}));const _0x217723=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](_0x7b65c8);this[_0x1698bd(0x22f)][_0x1698bd(0x2f2)](_0x217723||{}),this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](y)['subscribe'](_0x57845c=>{const _0x4a18d1=_0x1698bd;this[_0x4a18d1(0x25a)][_0x4a18d1(0x2f2)](_0x57845c||{});}));const _0x9bff26=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](y);this[_0x1698bd(0x25a)][_0x1698bd(0x2f2)](_0x9bff26||{});}async[_0x4d1dd5(0x1dc)](){const _0xa8e201=_0x4d1dd5,_0x4b4e97=this[_0xa8e201(0x2c1)]['getConfig'](y);if(!(_0x4b4e97!=null&&_0x4b4e97[_0xa8e201(0x2ce)]))return;const _0x559c42=await this['_localStorageService'][_0xa8e201(0x1aa)](U);_0x559c42&&(this[_0xa8e201(0x23b)][_0xa8e201(0x2ab)]({'Authorization':_0xa8e201(0x297)+_0x559c42}),this[_0xa8e201(0x1cc)][_0xa8e201(0x2f2)](_0x559c42));}async[_0x4d1dd5(0x216)](_0x53a1ed){const _0xd667a5=_0x4d1dd5;if(!_0x53a1ed[_0xd667a5(0x22d)]||_0x53a1ed['apiKey'][_0xd667a5(0x2bd)]()[_0xd667a5(0x255)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0xd667a5(0x2cd)]['t'](_0xd667a5(0x2c7))};try{const _0x55a76c=await this[_0xd667a5(0x2fb)][_0xd667a5(0x2ca)](_0x267a9e)[_0xd667a5(0x2e0)](_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]());return _0x55a76c[_0xd667a5(0x27c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x55a76c[_0xd667a5(0x26b)]||this[_0xd667a5(0x2cd)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x31af76){return console[_0xd667a5(0x2b7)](_0xd667a5(0x1e2),_0x31af76),{'isValid':!0x0};}}};I=tn([d(0x0,_0x34e389(_0x54f8e1)),d(0x1,_0x5a2e5c),d(0x2,_0x23775e),d(0x3,_0x1ee390),d(0x4,_0x92f93c),d(0x5,_0x2aa2ba),d(0x6,_0x34e389(_0xe137b3)),d(0x7,_0x34e389(_0x408b12)),d(0x8,_0x37ca18),d(0x9,_0x34e389(_0x267a9e))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x391ddb[_0x4d1dd5(0x224)],'handler':async(_0x3fb182,_0xe2fd90)=>(_0x3fb182['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x3fe6d3,_0x53052f){const _0xdc98f6=_0x4d1dd5;switch(_0x3fe6d3){case _0x48b73c[_0xdc98f6(0x2c5)]:return _0xdc98f6(0x26f);case _0x48b73c[_0xdc98f6(0x23c)]:return _0xdc98f6(0x1c3);case _0x48b73c[_0xdc98f6(0x25c)]:return _0xdc98f6(0x1ad);case _0x48b73c[_0xdc98f6(0x2e4)]:switch(_0x53052f){case _0x35c0c6[_0xdc98f6(0x2ad)]:return _0xdc98f6(0x295);case _0x35c0c6[_0xdc98f6(0x20a)]:return'mcpStatus.sessionOccupied';case _0x35c0c6[_0xdc98f6(0x28a)]:return _0xdc98f6(0x1f6);case _0x35c0c6[_0xdc98f6(0x269)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x48b73c[_0xdc98f6(0x288)]:return'mcpStatus.retrying';default:return _0xdc98f6(0x2bf);}}function on(_0x24dd44,_0xe7793c,_0x3087fd,_0x17250f=!0x0){const _0x1640bb=_0x4d1dd5,_0xae7032=pe(_0x24dd44,_0xe7793c),_0x2cb3dc=_0x3087fd['t'](_0xae7032);return _0x17250f?_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]&&_0xe7793c===_0x35c0c6[_0x1640bb(0x2ad)]?_0x2cb3dc+'\x20-\x20'+_0x3087fd['t'](_0x1640bb(0x29a)):_0x24dd44===_0x48b73c['CONNECTED']?''+_0x2cb3dc:_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]||_0x24dd44===_0x48b73c[_0x1640bb(0x2e4)]?_0x2cb3dc+_0x1640bb(0x2ae)+_0x3087fd['t']('mcpStatus.clickToConnect'):_0x2cb3dc:_0x2cb3dc;}function sn(_0x457f5d){const _0x592798=_0x4d1dd5;switch(_0x457f5d){case _0x48b73c['CONNECTED']:return _0x592798(0x2d2);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x592798(0x288)]:return'univer-text-yellow-500';case _0x48b73c['FAILED']:case _0x48b73c[_0x592798(0x2c5)]:return _0x592798(0x2ea);default:return _0x592798(0x200);}}function cn(_0x4cd746){const _0x2dbb83=_0x4d1dd5,{status$:_0x4ebb53,error$:_0x497b47,onConfigure:_0x3bdd3f,showClickable:_0x43dd7d=!0x0}=_0x4cd746,_0x31d024=_0x464025(_0x4ebb53,_0x48b73c[_0x2dbb83(0x2c5)]),_0x5e46f1=_0x464025(_0x497b47,_0x35c0c6[_0x2dbb83(0x239)]),_0xb712f0=_0x25ce64(_0x408b12),_0x3ab12b=_0x31d024===_0x48b73c['CONNECTED'];_0x31d024===_0x48b73c[_0x2dbb83(0x23c)]||_0x48b73c[_0x2dbb83(0x288)];const _0x346159=_0xb712f0['t'](pe(_0x31d024,_0x5e46f1)),_0x289ab1=on(_0x31d024,_0x5e46f1,_0xb712f0,_0x43dd7d),_0x385e64=sn(_0x31d024),_0x28a70f=_0x3ab12b?_0x3769df(ge,{}):_0x3769df(de,{}),_0x51253f=_0x12c1e8(()=>{_0x43dd7d&&_0x3bdd3f&&_0x3bdd3f();},[_0x43dd7d,_0x3bdd3f]);function _0x3d538f(){const _0x3d3629=_0x2dbb83;return _0x3f5fa9('div',{'className':_0x3fcf1e('univer-flex\x20univer-items-center',_0x43dd7d&&_0x3bdd3f&&_0x3d3629(0x2b6)),'role':_0x3d3629(0x1e8),'onClick':_0x43dd7d&&_0x3bdd3f?_0x51253f:void 0x0,'children':[_0x3769df(_0x3d3629(0x28d),{'className':_0x3fcf1e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x385e64),'children':_0x28a70f}),_0x3769df(_0x3d3629(0x28d),{'className':_0x3d3629(0x2d5),'children':_0x346159})]});}return _0x3769df(_0x197f74,{'title':_0x289ab1,'placement':_0x2dbb83(0x2b1),'children':_0x3d538f()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x17ac81,_0x1857a5,_0x266c5d,_0x1f1356)=>{const _0x363c0f=_0x4d1dd5;for(var _0x1fe923=_0x1f1356>0x1?void 0x0:_0x1f1356?an(_0x1857a5,_0x266c5d):_0x1857a5,_0x5b2357=_0x17ac81[_0x363c0f(0x255)]-0x1,_0x11ab74;_0x5b2357>=0x0;_0x5b2357--)(_0x11ab74=_0x17ac81[_0x5b2357])&&(_0x1fe923=_0x11ab74(_0x1fe923)||_0x1fe923);return _0x1fe923;},M=(_0x18da6d,_0x315d40)=>(_0x46b144,_0x59b01d)=>_0x315d40(_0x46b144,_0x59b01d,_0x18da6d);function _0x53df(){const _0x4cf681=['MCPConfigPanel','保存中...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','Saving...','_handleConfigSave','replace','mcpConfig.note2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-red-500','white','MCP\x20客户端配置','连接中...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','off','disposeWithMe','displayName','next','连接失败','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_componentManager','MCP\x20Client\x20Configuration','off-line-icon_clip0_910_343','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-items-center\x20univer-gap-3','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_injector','_commandService','push','connectionError$','mcpServerUrl','getItem','_menuManagerService','https://console.univer.plus','mcpStatus.connected','pre','OffLineIcon','_initializeCommands','MCP\x20Connected','MCP\x20状态未知','current','Connected','mcpConfig.apiApplyInfo.description','BUTTON','mcp-config-dialog','Success','univer-bg-gray-500','on-line-icon','registerCommand','_handleConfigure','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','未连接','mcp-ui.config','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.connecting','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','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-mt-2\x20univer-text-xs\x20univer-text-gray-500','CloseIcon','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.validation.invalidConfig','univer-shrink-0\x20univer-text-red-500','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','_apiKey$','Copy\x20the\x20JSON\x20configuration\x20below','clipPath','什么是\x20API\x20密钥?','univer-space-y-3','_uiPartsService','univerjs-icon\x20univerjs-icon-','url(#off-line-icon_clip0_910_343)','MCP\x20连接中...','Configuration\x20saved\x20successfully','pluginName','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer_session_id:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','sessionId$','_loadStoredApiKey','Configuration\x20Steps:','errorMessage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20密钥无效,请检查密钥是否正确','url(#on-line-icon_clip0_910_349)','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.configParameters','http://www.w3.org/2000/svg','API\x20密钥长度至少需要\x2010\x20位','help-icon','Get\x20your\x20API\x20key\x20in\x20seconds','button','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','showConfigPanel','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','univer-bg-red-500','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','Click\x20to\x20connect\x20MCP','univer-text-sm\x20univer-font-medium','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','0\x200\x2016\x2016','mcpStatus.networkError','entries','21srnGpp','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','987200oYBsAc','MCP\x20Connection\x20Failed','univer-text-gray-400','mcpConfig.connectionStatus.connected','1em','Connection\x20Failed','univer-text-gray-500','MCP\x20连接失败','_messageService','mcpConfig.connectionError.sessionOccupied','Invalid\x20configuration','register','univer-bg-green-500','symbol','showStatus','MCP\x20已连接','SESSION_ID_OCCUPIED','mcpConfig.title','check-mark-icon','mcpConfig.apiKey','random','getConfig','OnLineIcon','_dialogService','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.sessionIdDescription','_connectionController','_validateConfig','What\x20is\x20API\x20Key?','API\x20Key','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','tag','MCP\x20Connecting...','28500fpjwYA','univer-text-blue-600','currentColor','102KUMryU','HEADER_MENU','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','connectionStatus$','_loading$','COMMAND','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.connectionStatus.connecting','MCP:\x20超出最大重试次数','_initStatusComponent','Connecting...','toString','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Disconnected','apiKey','已连接','_mcpCoreConfig$','点击配置\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_config','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','setItem','children','use','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','value','NONE','mcpConfig.saving','_mcpConnectionController','CONNECTING','univer-text-sm\x20univer-text-gray-500','mcpConfig.note1','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Session\x20ID','UniverIcon','Authorization:','最大重试次数','subscribeConfigValue$','mcpConfig.connectionError.networkError','idSuffix','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','xlink:href','132712jEmbDA','您的\x20API\x20密钥安全存储在本地存储中','_initializeMenus','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.apiKeyPlaceholder','https://console.univer.ai','<API_KEY>','mcpConfig.apiApplyInfo.univerAiLabel','CheckMarkIcon','2vTihLg','length','map','Enable\x20Authentication','univer-size-2\x20univer-rounded-full','span','_config$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','CONNECTED','univer-text-white','MenuIcon','off-line-icon','复制以下\x20JSON\x20配置','univer-space-y-2','6124lonRhx','MCP\x20Configuration','mask','http','show','权限验证失败,请检查您的\x20API\x20密钥','_initConfigSync','MAX_RETRIES_EXCEEDED','none','error','mcpConfig.connectionStatus.failed','mcp.apiKey','MCP\x20Retrying...','mcpStatus.disconnected','url(#$1','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.configStepTitle','add','close-icon','mcpConfig.connectionError.unauthorized','配置参数:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','label','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer.ai','isValid','Univer\x20AI\x20控制台','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-blue-500','path','配置步骤:','配置保存失败','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Retrying...','Save\x20Configuration','getOwnPropertyDescriptor','subscribe','RETRYING','close','NETWORK_ERROR','univer.plus','colorChannel1','div','mcpConfig.configStep3','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','_createConfigPanelComponent','0\x200\x2017\x2016','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','mcpStatus.unauthorized','_localStorageService','Bearer\x20','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpStatus.clickToConfigure','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20未授权','会话ID','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','defs','配置更改将立即生效','请输入您的\x20API\x20密钥','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','includes','HelpIcon','enableAutoConnect','evenodd','univer-text-xs\x20univer-text-gray-500','mcpConfig.authorizationDescription','stringify','registerComponent','__setCustomHeaders','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','UNAUTHORIZED','\x20-\x20','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','38346uGIpxi','bottom','round','mcpConfig.configStep1','onStarting','Univer\x20AI\x20Console','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','warn','mcpConfig.configSaved','defineProperty','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Enable\x20authentication\x20for\x20secure\x20connections','string','trim','mcpConfig.connectionStatus.disconnected','mcpStatus.unknown','mcpConfig.description','_configService','attrs','1082133bQUkkI','Failed\x20to\x20save\x20configuration','DISCONNECTED','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.validation.apiKeyTooShort','M0\x200H16V16H0z','fill','get','MCP:\x20网络错误','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','showDeveloperTools','MCP\x20已断开','univer-space-y-4','171146mpdKib','univer-text-green-500','https://mcp.univer.ai/mcp/?univer_session_id=','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.configInstructions','assign','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','forEach','open','svg','mcpConfig.apiApplyInfo.getStarted','_logService','API\x20key\x20with\x20Bearer\x20prefix.','_blank','validateApiKey'];_0x53df=function(){return _0x4cf681;};return _0x53df();}let O=class extends _0x597623{constructor(_0x5378ff,_0x89d2af,_0x54999d,_0x2a949a){const _0x43bdc3=_0x4d1dd5;super(),this[_0x43bdc3(0x2fb)]=_0x5378ff,this[_0x43bdc3(0x215)]=_0x89d2af,this['_uiPartsService']=_0x54999d,this[_0x43bdc3(0x2c1)]=_0x2a949a,this['_initAutoConnect'](),this[_0x43bdc3(0x228)]();}['_initAutoConnect'](){const _0x414383=_0x4d1dd5,_0x45e63e=this['_configService'][_0x414383(0x20f)](y);_0x45e63e!=null&&_0x45e63e[_0x414383(0x2ce)]&&(this[_0x414383(0x215)][_0x414383(0x2a5)]=!0x1);}[_0x4d1dd5(0x228)](){const _0x43b773=_0x4d1dd5,_0xa6827b=this[_0x43b773(0x2c1)][_0x43b773(0x20f)](y);(_0xa6827b==null?void 0x0:_0xa6827b[_0x43b773(0x208)])!==!0x1&&this[_0x43b773(0x2f0)](this[_0x43b773(0x1d1)][_0x43b773(0x2aa)](_0x36e436[_0x43b773(0x220)],()=>{const _0x35bb4b=_0x43b773;var _0x5ae22d;return _0x3ef36b(un({'status$':this[_0x35bb4b(0x215)][_0x35bb4b(0x222)],'error$':this[_0x35bb4b(0x215)][_0x35bb4b(0x2fe)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x5ae22d=_0xa6827b==null?void 0x0:_0xa6827b[_0x35bb4b(0x2ce)])!=null?_0x5ae22d:!0x1}),this[_0x35bb4b(0x2fb)]);}));}[_0x4d1dd5(0x1bc)](){const _0x450d63=_0x4d1dd5;this['_injector'][_0x450d63(0x2ca)](I)[_0x450d63(0x1ea)]();}};O=ln([M(0x0,_0x34e389(_0x54f8e1)),M(0x1,_0x34e389(_0x267a9e)),M(0x2,_0x5a2e5c),M(0x3,_0x23775e)],O);function un(_0x2920e7){const {status$:_0x478d95,error$:_0x912189,onConfigure:_0x27763a,showClickable:_0x3c5841}=_0x2920e7;return function(){return _0x3769df(cn,{'status$':_0x478d95,'error$':_0x912189,'onConfigure':_0x27763a,'showClickable':_0x3c5841});};}function vn(_0x40d320){const _0x24ad98=_0x4d1dd5;return{'id':V['id'],'type':_0x5b6cd8[_0x24ad98(0x1b6)],'icon':_0x24ad98(0x25e),'title':_0x24ad98(0x20b),'tooltip':_0x24ad98(0x20b)};}const dn={[_0x246484['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4d1dd5(0x286)],pn=(_0x2aafff,_0x486d65,_0x1bd55b,_0x3b2a38)=>{const _0x51fc13=_0x4d1dd5;for(var _0x41cb73=_0x3b2a38>0x1?void 0x0:_0x3b2a38?gn(_0x486d65,_0x1bd55b):_0x486d65,_0x4ddea8=_0x2aafff[_0x51fc13(0x255)]-0x1,_0x749e7f;_0x4ddea8>=0x0;_0x4ddea8--)(_0x749e7f=_0x2aafff[_0x4ddea8])&&(_0x41cb73=_0x749e7f(_0x41cb73)||_0x41cb73);return _0x41cb73;},re=(_0x60a77a,_0x7323da)=>(_0x5df267,_0x1b41eb)=>_0x7323da(_0x5df267,_0x1b41eb,_0x60a77a);let D=class extends _0x597623{constructor(_0x3976c5,_0x481717){const _0x52efb3=_0x4d1dd5;super(),this['_commandService']=_0x3976c5,this[_0x52efb3(0x1ab)]=_0x481717,this[_0x52efb3(0x1b0)](),this[_0x52efb3(0x24c)]();}[_0x4d1dd5(0x1b0)](){const _0x11b76c=_0x4d1dd5;[V][_0x11b76c(0x2d9)](_0xbf8ca4=>{const _0x518c45=_0x11b76c;this[_0x518c45(0x2f0)](this[_0x518c45(0x2fc)][_0x518c45(0x1bb)](_0xbf8ca4));});}[_0x4d1dd5(0x24c)](){const _0x575573=_0x4d1dd5;this[_0x575573(0x1ab)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x398280),re(0x1,_0x3b3a79)],D);const Mn={'mcpStatus':{'disconnected':_0x4d1dd5(0x22c),'connecting':_0x4d1dd5(0x21b),'connected':_0x4d1dd5(0x1b1),'failed':_0x4d1dd5(0x1fb),'retrying':_0x4d1dd5(0x26e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4d1dd5(0x1ed),'sessionOccupied':_0x4d1dd5(0x1ec),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4d1dd5(0x1c8),'clickToConnect':_0x4d1dd5(0x1f0),'clickToConfigure':_0x4d1dd5(0x1eb)},'mcpConfig':{'title':_0x4d1dd5(0x263),'description':_0x4d1dd5(0x27e),'apiKey':_0x4d1dd5(0x218),'apiKeyPlaceholder':_0x4d1dd5(0x291),'apiKeyHint':_0x4d1dd5(0x1e9),'enableAuth':_0x4d1dd5(0x257),'enableAuthHint':_0x4d1dd5(0x2bb),'connectionInfo':_0x4d1dd5(0x2f6),'mcpClientConfig':_0x4d1dd5(0x2f6),'configInstructions':_0x4d1dd5(0x1f3),'configStepTitle':_0x4d1dd5(0x1dd),'configStep1':_0x4d1dd5(0x1cd),'configStep2':_0x4d1dd5(0x1f2),'configStep3':_0x4d1dd5(0x2ee),'sessionId':_0x4d1dd5(0x241),'sessionIdDescription':_0x4d1dd5(0x2af),'authorizationDescription':_0x4d1dd5(0x2de),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4d1dd5(0x285),'saving':_0x4d1dd5(0x2e5),'note1':_0x4d1dd5(0x231),'note2':_0x4d1dd5(0x1da),'configSaved':_0x4d1dd5(0x1d5),'configError':_0x4d1dd5(0x2c4),'apiApplyInfo':{'title':_0x4d1dd5(0x217),'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':_0x4d1dd5(0x2b5),'getStarted':_0x4d1dd5(0x1e7)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4d1dd5(0x2f4),'invalidConfig':_0x4d1dd5(0x204),'invalidApiKey':_0x4d1dd5(0x1d8)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1d7),'connecting':_0x4d1dd5(0x229),'connected':_0x4d1dd5(0x1b4),'failed':_0x4d1dd5(0x1ff),'retrying':_0x4d1dd5(0x284)},'connectionError':{'unauthorized':_0x4d1dd5(0x2f8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4d1dd5(0x1df),'maxRetriesExceeded':_0x4d1dd5(0x277)}}},An={'mcpStatus':{'disconnected':_0x4d1dd5(0x2cf),'connecting':_0x4d1dd5(0x1d4),'connected':_0x4d1dd5(0x209),'failed':_0x4d1dd5(0x201),'retrying':'MCP\x20重连中...','unknown':_0x4d1dd5(0x1b2),'unauthorized':_0x4d1dd5(0x29c),'sessionOccupied':_0x4d1dd5(0x1bd),'networkError':_0x4d1dd5(0x2cb),'maxRetriesExceeded':_0x4d1dd5(0x227),'clickToConnect':_0x4d1dd5(0x24d),'clickToConfigure':_0x4d1dd5(0x230)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x4d1dd5(0x2a1),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4d1dd5(0x2ec),'mcpClientConfig':_0x4d1dd5(0x2ec),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4d1dd5(0x281),'configStep1':_0x4d1dd5(0x260),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4d1dd5(0x24e),'sessionId':_0x4d1dd5(0x29d),'sessionIdDescription':_0x4d1dd5(0x2a2),'authorizationDescription':_0x4d1dd5(0x29b),'configParameters':_0x4d1dd5(0x276),'maxRetries':_0x4d1dd5(0x244),'save':'保存配置','saving':_0x4d1dd5(0x2e2),'note1':_0x4d1dd5(0x2a0),'note2':_0x4d1dd5(0x24b),'configSaved':'配置保存成功','configError':_0x4d1dd5(0x282),'apiApplyInfo':{'title':_0x4d1dd5(0x1cf),'description':_0x4d1dd5(0x23f),'univerAiLabel':_0x4d1dd5(0x27d),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4d1dd5(0x1e5),'invalidConfig':'配置无效','invalidApiKey':_0x4d1dd5(0x1e0)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1c0),'connecting':_0x4d1dd5(0x2ed),'connected':_0x4d1dd5(0x22e),'failed':_0x4d1dd5(0x2f3),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x4d1dd5(0x267),'sessionOccupied':_0x4d1dd5(0x225),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x4d1dd5(0x2b9)],hn=Object[_0x4d1dd5(0x286)],Cn=(_0x15db22,_0x4538b4,_0x4f5026)=>_0x4538b4 in _0x15db22?fn(_0x15db22,_0x4538b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f5026}):_0x15db22[_0x4538b4]=_0x4f5026,mn=(_0x5cca55,_0x36f2f9,_0x3c8dc8,_0x2be957)=>{const _0x1f7463=_0x4d1dd5;for(var _0x12c0f0=_0x2be957>0x1?void 0x0:_0x2be957?hn(_0x36f2f9,_0x3c8dc8):_0x36f2f9,_0x1f4e48=_0x5cca55[_0x1f7463(0x255)]-0x1,_0x32340d;_0x1f4e48>=0x0;_0x1f4e48--)(_0x32340d=_0x5cca55[_0x1f4e48])&&(_0x12c0f0=_0x32340d(_0x12c0f0)||_0x12c0f0);return _0x12c0f0;},P=(_0x5e8edb,_0xdac9e5)=>(_0x29453d,_0x3a4d59)=>_0xdac9e5(_0x29453d,_0x3a4d59,_0x5e8edb),_n=(_0x3fa839,_0x14916b,_0x33d75a)=>Cn(_0x3fa839,_0x14916b+'',_0x33d75a);let j=class extends _0x300405{constructor(_0x481092=ie,_0x9b4cd5,_0x50bd7d,_0x6871b9,_0x300ad1,_0x2c59ad){const _0xf86bb3=_0x4d1dd5;super(),this['_config']=_0x481092,this['_injector']=_0x9b4cd5,this['_configService']=_0x50bd7d,this[_0xf86bb3(0x1d1)]=_0x6871b9,this[_0xf86bb3(0x296)]=_0x300ad1,this['_localeService']=_0x2c59ad;const {..._0x584471}=_0x7e5e4c({},ie,this[_0xf86bb3(0x232)]);this['_configService']['setConfig'](y,_0x584471);}async[_0x4d1dd5(0x2b4)](){const _0x48116e=_0x4d1dd5,_0x454b8c=[[O],[I],[D]];this[_0x48116e(0x2fb)]['has'](_0x43eddd)||_0x454b8c[_0x48116e(0x2fd)]([_0x43eddd,{'useClass':_0x3f40b3}]),_0x454b8c['forEach'](_0x438f3f=>this[_0x48116e(0x2fb)][_0x48116e(0x273)](_0x438f3f)),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](O),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](I),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](D);}};_n(j,_0x4d1dd5(0x1d6),'MCP_UI_PLUGIN'),j=mn([_0x249ad5(_0x51a3dd),P(0x1,_0x34e389(_0x54f8e1)),P(0x2,_0x23775e),P(0x3,_0x5a2e5c),P(0x4,_0x1ee390),P(0x5,_0x34e389(_0x408b12))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x4e584c=_0x3937;(function(_0x11c46f,_0x290947){const _0x38f36b=_0x3937,_0x30e465=_0x11c46f();while(!![]){try{const _0x41b602=-parseInt(_0x38f36b(0x29f))/0x1*(-parseInt(_0x38f36b(0x28e))/0x2)+parseInt(_0x38f36b(0x281))/0x3*(-parseInt(_0x38f36b(0x22d))/0x4)+-parseInt(_0x38f36b(0x211))/0x5+parseInt(_0x38f36b(0x16e))/0x6*(-parseInt(_0x38f36b(0x280))/0x7)+parseInt(_0x38f36b(0x24a))/0x8+parseInt(_0x38f36b(0x2cb))/0x9+-parseInt(_0x38f36b(0x1fb))/0xa*(-parseInt(_0x38f36b(0x247))/0xb);if(_0x41b602===_0x290947)break;else _0x30e465['push'](_0x30e465['shift']());}catch(_0x2cef5b){_0x30e465['push'](_0x30e465['shift']());}}}(_0x1214,0x400c7));var Pe=Object[_0x4e584c(0x1ca)],Ee=(_0xdeb26f,_0x5ead2a,_0x16cf74)=>_0x5ead2a in _0xdeb26f?Pe(_0xdeb26f,_0x5ead2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cf74}):_0xdeb26f[_0x5ead2a]=_0x16cf74,x=(_0x377f8d,_0x1510e0,_0x77d826)=>Ee(_0x377f8d,typeof _0x1510e0!=_0x4e584c(0x269)?_0x1510e0+'':_0x1510e0,_0x77d826);import{LocaleService as _0x10e845,Inject as _0xd554c6,Injector as _0x1c5d39,IConfigService as _0x5b4e7f,ILocalStorageService as _0x5101fd,ILogService as _0x5bde43,Disposable as _0x537b5b,CommandType as _0x4e50e3,ICommandService as _0x1ccefe,DependentOn as _0x341f82,Plugin as _0xef5738,merge as _0x144741}from'@univerjs/core';import{jsxs as _0x29a34b,jsx as _0x168241}from'react/jsx-runtime';import{MCPConnectionStatus as _0x51b3c4,MCPConnectionError as _0x467903,MCPConnectionController as _0x1f2569,MCP_PLUGIN_CONFIG_KEY as _0x28c8a7,UniverMCPPlugin as _0x1f72cd}from'@univerjs-pro/mcp';import{clsx as _0xb05ffb,Input as _0x39798a,Button as _0x1c4867,MessageType as _0x39471f,Tooltip as _0x3f7d60}from'@univerjs/design';function _0x1214(){const _0x55f805=['mcp.apiKey','mcpConfig.authorizationDescription','mcpStatus.sessionOccupied','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','setConfig','配置参数:','registerCommand','mcpConfig.configStep2','26470JXLybe','HEADER_MENU','mcpConfig.connectionStatus.connected','重启您的\x20MCP\x20客户端以使配置生效','url(#on-line-icon_clip0_910_349)','连接中...','univer-text-red-500','_validateConfig','button','attrs','stringify','保存配置','mcpConfig.connectionStatus.disconnected','mcpConfig.configStep1','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','string','MCP:\x20Unauthorized','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','https://console.univer.plus','path','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','2461665Fqtgsx','close-icon','setItem','univer.ai','map','univer-flex\x20univer-items-start\x20univer-gap-2','get','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','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','0\x200\x2016\x2016','mcpConfig.validation.invalidApiKey','univer-text-gray-400','FAILED','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Enable\x20authentication\x20for\x20secure\x20connections','registerComponent','_handleConfigure','SESSION_ID_OCCUPIED','univer-shrink-0\x20univer-text-blue-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MenuIcon','disposeWithMe','substring','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','entries','NONE','API\x20key\x20is\x20required','973996eWqnuO','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.validation.apiKeyRequired','_localStorageService','MCP\x20状态未知','warn','mcpConfig.connectionStatus.connecting','showDeveloperTools','univer-bg-green-500','MCP\x20已连接','errorMessage','什么是\x20API\x20密钥?','mcpServerUrl','点击配置\x20MCP','mcpStatus.unauthorized','mcpStatus.retrying','mcpStatus.clickToConfigure','<SESSION_ID>','mcpStatus.failed','univer-text-sm\x20univer-font-medium','mcp-ui.config','mcp-config-dialog','open','mask','MCP\x20连接中...','bottom','3707cbjTbN','_commandService','univer-font-medium','1972624fSWAuN','Disconnected','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','_initializeMenus','Configuration\x20Steps:','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','DISCONNECTED','mcpConfig.apiKeyHint','univer-space-y-5','trim','__setCustomHeaders','url(#off-line-icon_clip0_910_343)','defs','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-white','_config$','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','connectionError$','MCP\x20已断开','MCP\x20重连中...','配置更改将立即生效','mcpConfig.title','close','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP:\x20Network\x20Error','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','mcpConfig.connectionError.unauthorized','getCurrentConfig','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','symbol','_initConfigSync','mcpConfig.note2','univer_session_id:','mcpConfig.apiApplyInfo.title','已连接','getItem','value','BUTTON','1em','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','removeItem','M0\x200H16V16H0z','OffLineIcon','mcpStatus.connected','mcpConfig.configSaved','重连中...','tag','https://console.univer.ai','subscribe','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','启用身份验证以获得安全连接','56rkJOOy','6lFRlhY','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','next','mcpConfig.apiApplyInfo.getStarted','mcpConfig.sessionIdDescription','MCPConfigPanel','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','将配置添加到您的\x20MCP\x20客户端设置文件中','div','MCP\x20连接失败','none','_mcpConnectionController','toString','17968foZzjj','配置步骤:','MCP\x20客户端配置','最大重试次数','xlink:href','children','Configuration\x20Parameters:','current','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥不能为空','UNAUTHORIZED','mcpConfig.connectionError.networkError','clipPath','您的\x20API\x20密钥将在此浏览器中本地存储','univer-size-2\x20univer-rounded-full','mcpConfig.connectionError.sessionOccupied','replace','9CTbNhg','Session\x20ID','http://www.w3.org/2000/svg','配置无效','connectionStatus$','Error','mcpStatus.unknown','MCP:\x20会话\x20ID\x20已被占用','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','RETRYING','_mcpCoreConfig$','MCP:\x20Max\x20Retries\x20Exceeded','validateApiKey','includes','defIds','_loading$','add','What\x20is\x20API\x20Key?','univer-flex\x20univer-items-center\x20univer-gap-2','_initAutoConnect','univer-flex\x20univer-items-start\x20univer-gap-3','Bearer\x20','error','复制以下\x20JSON\x20配置','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','点击连接\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_dialogService','forEach','univer-flex\x20univer-flex-wrap\x20univer-gap-2','random','has','univer-text-blue-600','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-items-center','span','API\x20Key','currentColor','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','Connection\x20Failed','on-line-icon_clip0_910_349','univer-bg-gray-500','_blank','fill','4044681xNPjlT','COMMAND','CONNECTED','check-mark-icon','univer-mr-2\x20univer-flex\x20univer-text-xl','Invalid\x20configuration','_componentManager','pre','Click\x20to\x20configure\x20MCP','权限验证失败,请检查您的\x20API\x20密钥','Connecting...','pluginName','MCP\x20Configuration','CONNECTING','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','showConfigPanel','320406FVYVAs','mcpConfig.connectionInfo','Configuration\x20saved\x20successfully','MCP\x20配置','apiKey','_injector','HelpIcon','mcpConfig.apiKey','_configService','MCP:\x20超出最大重试次数','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.univerAiLabel','http','univer-min-w-0\x20univer-flex-1','round','displayName','mcpConfig.apiApplyInfo.description','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Configuration\x20Notes:','CloseIcon','univer-space-y-2','off','mcpStatus.disconnected','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_localeService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','https://mcp.univer.ai/mcp/?univer_session_id=','noopener\x20noreferrer','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','配置保存成功','use','启用身份验证','_loadStoredApiKey','UniverIcon','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','sessionId$','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_createConfigPanelComponent','Authorization:','API\x20密钥','off-line-icon','univer-text-xs\x20univer-text-gray-600','enableAutoConnect','Click\x20to\x20connect\x20MCP','配置保存失败','label','mcpConfig.saving','mcpConfig.connectionStatus.retrying','_connectionController','mcpConfig.validation.apiKeyTooShort','univer.plus','MCP\x20Disconnected','MCP:\x20网络错误','NETWORK_ERROR','onStarting','getOwnPropertyDescriptor','mcpStatus.connecting','univer-text-xs\x20univer-text-gray-500','网络连接错误,请检查您的网络连接','univerjs-icon\x20univerjs-icon-','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','push','subscribeConfigValue$','Enter\x20your\x20API\x20key','univer-bg-red-500','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','_messageService','show','_config','register','MCP\x20Connecting...','\x20-\x20','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','Univer\x20AI\x20控制台','CheckMarkIcon','length','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Success','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','svg','MAX_RETRIES_EXCEEDED','colorChannel1','mcpConfig.note1','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20Connection\x20Failed','defineProperty','univer-text-sm\x20univer-text-gray-500','text','assign','_registerComponent','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','0\x200\x2017\x2016','未连接','_uiPartsService','mcpConfig.configError','API\x20密钥长度至少需要\x2010\x20位','evenodd','idSuffix','isValid','url(#$1','Failed\x20to\x20save\x20configuration','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidConfig','on-line-icon','OnLineIcon','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','translate(.97)','mcp-ui.command.openConfigPanel','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_apiKey$','Save\x20Configuration','help-icon','mcpStatus.clickToConnect','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','会话ID','getConfig','_initStatusComponent','_handleConfigSave','mcpConfig.save','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-yellow-500','mcpConfig.configParameters','univer-text-gray-500','API\x20密钥无效,请检查密钥是否正确'];_0x1214=function(){return _0x55f805;};return _0x1214();}import{useDependency as _0x3f390e,useObservable as _0x5bb29a,IUIPartsService as _0x25baf3,IDialogService as _0x2c6c49,IMessageService as _0x5c9e0c,ComponentManager as _0x5d98d5,connectInjector as _0x3bc164,BuiltInUIPart as _0x3a82b7,MenuItemType as _0x4bdc4a,RibbonStartGroup as _0x52acc8,IMenuManagerService as _0x461dbe}from'@univerjs/ui';import{BehaviorSubject as _0x3e840f}from'rxjs';import{useRef as _0x169ea3,createElement as _0x5a92b3,forwardRef as _0x284398,useState as _0x310dff,useCallback as _0x1aa4ef}from'react';import{ISocketService as _0x13a839,WebSocketService as _0xafe199}from'@univerjs/network';function b({ref:_0x84c244,..._0x5026d2}){const _0x3518c2=_0x4e584c,{icon:_0x37296f,id:_0xd31f69,className:_0x2a2cd6,extend:_0x82b011,..._0x3a91aa}=_0x5026d2,_0x9e78dd=(_0x3518c2(0x1ad)+_0xd31f69+'\x20'+(_0x2a2cd6||''))[_0x3518c2(0x253)](),_0x962e68=_0x169ea3('_'+We());return ae(_0x37296f,''+_0xd31f69,{'defIds':_0x37296f[_0x3518c2(0x2ad)],'idSuffix':_0x962e68[_0x3518c2(0x295)]},{'ref':_0x84c244,'className':_0x9e78dd,..._0x3a91aa},_0x82b011);}function ae(_0x506683,_0x3c2c3f,_0x51fe3c,_0x46471b,_0x42cf7c){const _0xf47567=_0x4e584c;return _0x5a92b3(_0x506683[_0xf47567(0x27a)],{'key':_0x3c2c3f,...Ye(_0x506683,_0x51fe3c,_0x42cf7c),..._0x46471b},(Ze(_0x506683,_0x51fe3c)['children']||[])[_0xf47567(0x215)]((_0xa5de01,_0x41ef73)=>ae(_0xa5de01,_0x3c2c3f+'-'+_0x506683[_0xf47567(0x27a)]+'-'+_0x41ef73,_0x51fe3c,void 0x0,_0x42cf7c)));}function Ye(_0x2a5c78,_0x254c39,_0x45a5c6){const _0x48e1cb=_0x4e584c,_0x47ca0d={..._0x2a5c78[_0x48e1cb(0x204)]};_0x45a5c6!=null&&_0x45a5c6[_0x48e1cb(0x1c4)]&&_0x47ca0d[_0x48e1cb(0x2ca)]===_0x48e1cb(0x1c4)&&(_0x47ca0d['fill']=_0x45a5c6['colorChannel1']),_0x2a5c78[_0x48e1cb(0x27a)]===_0x48e1cb(0x244)&&_0x47ca0d['id']&&(_0x47ca0d['id']=_0x47ca0d['id']+_0x254c39['idSuffix']),Object[_0x48e1cb(0x22a)](_0x47ca0d)[_0x48e1cb(0x2bb)](([_0x2e5017,_0x11e2b7])=>{const _0x2cdb86=_0x48e1cb;_0x2e5017===_0x2cdb86(0x244)&&typeof _0x11e2b7==_0x2cdb86(0x20a)&&(_0x47ca0d[_0x2e5017]=_0x11e2b7[_0x2cdb86(0x29e)](/url\(#(.*)\)/,'url(#$1'+_0x254c39['idSuffix']+')'));});const {defIds:_0x3cbf39}=_0x254c39;return!_0x3cbf39||_0x3cbf39[_0x48e1cb(0x1be)]===0x0||(_0x2a5c78[_0x48e1cb(0x27a)]===_0x48e1cb(0x190)&&_0x47ca0d[_0x48e1cb(0x292)]&&(_0x47ca0d['xlink:href']=_0x47ca0d[_0x48e1cb(0x292)]+_0x254c39[_0x48e1cb(0x1d6)]),Object[_0x48e1cb(0x22a)](_0x47ca0d)[_0x48e1cb(0x2bb)](([_0xb38cbf,_0x503ae8])=>{const _0xe54fd2=_0x48e1cb;typeof _0x503ae8=='string'&&(_0x47ca0d[_0xb38cbf]=_0x503ae8[_0xe54fd2(0x29e)](/url\(#(.*)\)/,_0xe54fd2(0x1d8)+_0x254c39[_0xe54fd2(0x1d6)]+')'));})),_0x47ca0d;}function Ze(_0x4f1edd,_0x32ff32){const _0x43f0bf=_0x4e584c;var _0x40a79b;const {defIds:_0x2b2e25}=_0x32ff32;return!_0x2b2e25||_0x2b2e25[_0x43f0bf(0x1be)]===0x0?_0x4f1edd:_0x4f1edd[_0x43f0bf(0x27a)]===_0x43f0bf(0x256)&&((_0x40a79b=_0x4f1edd[_0x43f0bf(0x293)])!=null&&_0x40a79b[_0x43f0bf(0x1be)])?{..._0x4f1edd,'children':_0x4f1edd['children'][_0x43f0bf(0x215)](_0x2fec65=>typeof _0x2fec65['attrs']['id']=='string'&&_0x2b2e25&&_0x2b2e25['includes'](_0x2fec65[_0x43f0bf(0x204)]['id'])?{..._0x2fec65,'attrs':{..._0x2fec65[_0x43f0bf(0x204)],'id':_0x2fec65[_0x43f0bf(0x204)]['id']+_0x32ff32[_0x43f0bf(0x1d6)]}}:_0x2fec65)}:_0x4f1edd;}function _0x3937(_0x484937,_0x4d1a08){const _0x121459=_0x1214();return _0x3937=function(_0x393718,_0x45dd85){_0x393718=_0x393718-0x16e;let _0x2acd99=_0x121459[_0x393718];return _0x2acd99;},_0x3937(_0x484937,_0x4d1a08);}function We(){const _0x209497=_0x4e584c;return Math[_0x209497(0x2bd)]()[_0x209497(0x28d)](0x24)[_0x209497(0x228)](0x2,0x8);}b['displayName']=_0x4e584c(0x193);const qe={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e584c(0x28b),'viewBox':_0x4e584c(0x21a),'width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x2d9),'fillRule':_0x4e584c(0x1d5),'clipRule':'evenodd'}}]},le=_0x284398(function(_0x1b9a79,_0x41a9c0){const _0x192aa4=_0x4e584c;return _0x5a92b3(b,Object['assign']({},_0x1b9a79,{'id':_0x192aa4(0x2ce),'ref':_0x41a9c0,'icon':qe}));});le[_0x4e584c(0x17e)]=_0x4e584c(0x1bd);const Xe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e584c(0x28b),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x209)}}]},ue=_0x284398(function(_0x5c37c8,_0x462b08){const _0x482bdc=_0x4e584c;return _0x5a92b3(b,Object[_0x482bdc(0x1cd)]({},_0x5c37c8,{'id':_0x482bdc(0x212),'ref':_0x462b08,'icon':Xe}));});ue['displayName']=_0x4e584c(0x182);const Je={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':_0x4e584c(0x2a1),'fill':_0x4e584c(0x28b),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x219)}},{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x24c)}},{'tag':_0x4e584c(0x20f),'attrs':{'fill':_0x4e584c(0x2c4),'d':_0x4e584c(0x189),'fillRule':_0x4e584c(0x1d5),'clipRule':_0x4e584c(0x1d5)}}]},ve=_0x284398(function(_0x2a6d37,_0xe7b332){const _0xd3c65=_0x4e584c;return _0x5a92b3(b,Object[_0xd3c65(0x1cd)]({},_0x2a6d37,{'id':_0xd3c65(0x1e5),'ref':_0xe7b332,'icon':Je}));});ve['displayName']=_0x4e584c(0x174);const Qe={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':_0x4e584c(0x2a1),'fill':_0x4e584c(0x28b),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':'g','attrs':{'clipPath':_0x4e584c(0x255)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'stroke':_0x4e584c(0x2c4),'d':_0x4e584c(0x1cf),'strokeLinecap':_0x4e584c(0x17d),'strokeLinejoin':_0x4e584c(0x17d),'strokeWidth':1.2}}]},{'tag':_0x4e584c(0x256),'attrs':{},'children':[{'tag':_0x4e584c(0x29a),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':'white','d':_0x4e584c(0x275)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0x284398(function(_0x56d310,_0x5de4c3){const _0x46c08a=_0x4e584c;return _0x5a92b3(b,Object[_0x46c08a(0x1cd)]({},_0x56d310,{'id':_0x46c08a(0x19a),'ref':_0x5de4c3,'icon':Qe}));});de[_0x4e584c(0x17e)]=_0x4e584c(0x276);const en={'tag':_0x4e584c(0x1c2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4e584c(0x1d0),'width':'1em','height':_0x4e584c(0x272)},'children':[{'tag':'g','attrs':{'clipPath':_0x4e584c(0x1ff)},'children':[{'tag':'path','attrs':{'stroke':_0x4e584c(0x2c4),'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':_0x4e584c(0x17d),'strokeWidth':1.2}}]},{'tag':_0x4e584c(0x256),'attrs':{},'children':[{'tag':_0x4e584c(0x29a),'attrs':{'id':_0x4e584c(0x2c7)},'children':[{'tag':_0x4e584c(0x20f),'attrs':{'fill':'white','d':_0x4e584c(0x275),'transform':_0x4e584c(0x1e0)}}]}]}],'defIds':[_0x4e584c(0x2c7)]},ge=_0x284398(function(_0x495438,_0x4b98df){const _0x422e98=_0x4e584c;return _0x5a92b3(b,Object['assign']({},_0x495438,{'id':_0x422e98(0x1dc),'ref':_0x4b98df,'icon':en}));});ge[_0x4e584c(0x17e)]=_0x4e584c(0x1dd);function nn(_0x163237){const _0x9b919f=_0x4e584c;var _0x5737cd,_0x158d28;const {mcpCoreConfig:_0x2f9894,onSave:_0x41774c,loading:_0xae2d4e=!0x1,config:_0x536596,connectionStatus$:_0xd10ddc,connectionError$:_0x168ac6,currentApiKey$:_0x3e3756,currentSessionId$:_0x22a118}=_0x163237,_0x3ea213=_0x3f390e(_0x10e845),_0xaa527b=_0x5bb29a(_0xd10ddc,_0x51b3c4[_0x9b919f(0x250)]),_0x219601=_0x5bb29a(_0x168ac6,_0x467903['NONE']),_0x57c0e2=_0x5bb29a(_0x22a118,''),_0x2e1069=_0x5bb29a(_0x3e3756,''),[_0x4c5c86,_0x9e5291]=_0x310dff(_0x2e1069||''),_0x5b74b2=!0x0,_0xc6ea0e=_0x536596[_0x9b919f(0x234)]&&_0x2f9894[_0x9b919f(0x239)]&&(_0x2f9894[_0x9b919f(0x239)][_0x9b919f(0x2ac)](_0x9b919f(0x1a4))||_0x2f9894[_0x9b919f(0x239)]['includes'](_0x9b919f(0x214))),_0x135540=(_0x5737cd=_0x2f9894[_0x9b919f(0x239)])==null?void 0x0:_0x5737cd[_0x9b919f(0x2ac)]('univer.plus'),_0x372e46=(_0x158d28=_0x2f9894[_0x9b919f(0x239)])==null?void 0x0:_0x158d28[_0x9b919f(0x2ac)](_0x9b919f(0x214)),_0x37ac3a=_0x135540?_0x9b919f(0x20e):_0x9b919f(0x27b),_0x51ed66=_0x536596[_0x9b919f(0x234)]&&(_0x135540||_0x372e46),[_0x1bbb3a,_0x425e64]=_0x310dff(!_0x4c5c86[_0x9b919f(0x253)]()),_0x34542a=(_0x3a26a4,_0x185250)=>{const _0x566b03=_0x9b919f;if(_0x185250===_0x467903['UNAUTHORIZED'])return _0x566b03(0x18e);switch(_0x3a26a4){case _0x51b3c4[_0x566b03(0x2cd)]:return _0x566b03(0x261);case _0x51b3c4[_0x566b03(0x2d8)]:case _0x51b3c4[_0x566b03(0x2a8)]:return _0x566b03(0x178);case _0x51b3c4[_0x566b03(0x21d)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x566b03(0x18d);}},_0x442a59=(_0x464dcb,_0x266772)=>{const _0x2ad074=_0x9b919f;if(_0x266772===_0x467903[_0x2ad074(0x298)])return _0x2ad074(0x1b2);switch(_0x464dcb){case _0x51b3c4[_0x2ad074(0x2cd)]:return _0x2ad074(0x235);case _0x51b3c4[_0x2ad074(0x2d8)]:case _0x51b3c4['RETRYING']:return'univer-bg-blue-500';case _0x51b3c4[_0x2ad074(0x21d)]:return _0x2ad074(0x1b2);default:return _0x2ad074(0x2c8);}},_0x6a6dcc=_0x17ee69=>{const _0x2e9dff=_0x9b919f;switch(_0x17ee69){case _0x51b3c4[_0x2e9dff(0x2cd)]:return _0x3ea213['t'](_0x2e9dff(0x1fd));case _0x51b3c4[_0x2e9dff(0x2d8)]:return _0x3ea213['t'](_0x2e9dff(0x233));case _0x51b3c4[_0x2e9dff(0x21d)]:return _0x3ea213['t']('mcpConfig.connectionStatus.failed');case _0x51b3c4[_0x2e9dff(0x2a8)]:return _0x3ea213['t'](_0x2e9dff(0x1a1));default:return _0x3ea213['t'](_0x2e9dff(0x207));}},_0x137d4e=_0x39ebbb=>{const _0x470660=_0x9b919f;switch(_0x39ebbb){case _0x467903[_0x470660(0x298)]:return _0x3ea213['t'](_0x470660(0x266));case _0x467903['SESSION_ID_OCCUPIED']:return _0x3ea213['t'](_0x470660(0x29d));case _0x467903['NETWORK_ERROR']:return _0x3ea213['t'](_0x470660(0x299));case _0x467903[_0x470660(0x1c3)]:return _0x3ea213['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2bd0cd=_0x1aa4ef(()=>{const _0x587525={..._0x2f9894,'apiKey':_0x4c5c86['trim'](),'enableAuth':_0x5b74b2};_0x41774c(_0x587525);},[_0x2f9894,_0x4c5c86,_0x5b74b2,_0x41774c]),_0x397c6d=_0x4c5c86[_0x9b919f(0x253)]()[_0x9b919f(0x1be)]>0x0;return _0x29a34b('div',{'className':_0x9b919f(0x287),'children':[_0x168241(_0x9b919f(0x289),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1c8),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x21e),'children':_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x258),'children':'⚙'})}),_0x168241(_0x9b919f(0x289),{'children':_0x168241('p',{'className':_0x9b919f(0x1cb),'children':_0x3ea213['t']('mcpConfig.description')})})]})}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x273),'children':[_0x168241(_0x9b919f(0x289),{'className':_0xb05ffb(_0x9b919f(0x1c1),_0x34542a(_0xaa527b,_0x219601)),'children':_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x168241(_0x9b919f(0x289),{'className':_0xb05ffb(_0x9b919f(0x29c),_0x442a59(_0xaa527b,_0x219601))}),_0x168241('span',{'className':_0x9b919f(0x240),'children':_0x6a6dcc(_0xaa527b)})]})}),_0x219601!==_0x467903[_0x9b919f(0x22b)]&&(_0xaa527b===_0x51b3c4[_0x9b919f(0x21d)]||_0x219601===_0x467903[_0x9b919f(0x298)])&&_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x296),'children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x216),'children':[_0x168241(_0x9b919f(0x2c2),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x168241('p',{'className':_0x9b919f(0x2a7),'children':_0x137d4e(_0x219601)})]})})]}),_0x168241('div',{'className':_0x9b919f(0x27d),'children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x252),'children':[_0x29a34b('div',{'className':_0x9b919f(0x183),'children':[_0x29a34b(_0x9b919f(0x19f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x168241('span',{'children':'🔑'}),'\x20',_0x3ea213['t'](_0x9b919f(0x175)),_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x201),'children':'*'}),_0xc6ea0e&&_0x168241('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3ea213['t'](_0x9b919f(0x26d)),'role':'button','onClick':()=>_0x425e64(!0x0),'children':_0x168241(ve,{})})]}),_0x168241(_0x39798a,{'type':_0x9b919f(0x1cc),'placeholder':_0x3ea213['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x4c5c86,'disabled':_0xae2d4e,'autoComplete':_0x9b919f(0x184),'onChange':_0x9e5291}),_0x168241('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3ea213['t'](_0x9b919f(0x251))})]}),_0xc6ea0e&&_0x1bbb3a&&_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1b3),'children':[_0x168241('a',{'className':_0x9b919f(0x218),'role':_0x9b919f(0x203),'onClick':()=>_0x425e64(!0x1),'children':_0x168241(ue,{'className':'univer-size-4'})}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1e7),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x194),'children':_0x168241('span',{'className':_0x9b919f(0x2bf),'children':'🚀'})}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex-1','children':[_0x168241('h4',{'className':_0x9b919f(0x188),'children':_0x3ea213['t'](_0x9b919f(0x26d))}),_0x168241('p',{'className':_0x9b919f(0x196),'children':_0x3ea213['t'](_0x9b919f(0x17f))}),_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x2bc),'children':_0x51ed66&&_0x29a34b('a',{'className':_0x9b919f(0x25a),'href':_0x37ac3a,'target':_0x9b919f(0x2c9),'rel':_0x9b919f(0x18b),'children':[_0x168241(_0x9b919f(0x2c2),{'children':'🤖'}),_0x3ea213['t'](_0x9b919f(0x17a)),_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x21c),'children':'↗'})]})}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1f6),'children':['✨','\x20',_0x3ea213['t'](_0x9b919f(0x284))]})]})]})]}),_0x536596['showDeveloperTools']&&_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1ed),'children':[_0x29a34b('h4',{'className':_0x9b919f(0x210),'children':[_0x168241(_0x9b919f(0x2c2),{'children':'🔗'}),'\x20',_0x3ea213['t'](_0x9b919f(0x16f))]}),_0x29a34b('div',{'className':'univer-space-y-4','children':[_0x29a34b(_0x9b919f(0x289),{'className':'univer-space-y-3','children':[_0x168241('p',{'className':_0x9b919f(0x19b),'children':_0x3ea213['t']('mcpConfig.configInstructions')}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x183),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1bf),'children':_0x3ea213['t']('mcpConfig.configStepTitle')}),_0x29a34b('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x29a34b('div',{'className':_0x9b919f(0x2b1),'children':[_0x168241('span',{'className':_0x9b919f(0x180),'children':'1'}),_0x3ea213['t'](_0x9b919f(0x208))]}),_0x29a34b('div',{'className':_0x9b919f(0x2b1),'children':[_0x168241(_0x9b919f(0x2c2),{'className':_0x9b919f(0x180),'children':'2'}),_0x3ea213['t'](_0x9b919f(0x1fa))]}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x168241('span',{'className':_0x9b919f(0x180),'children':'3'}),_0x3ea213['t']('mcpConfig.configStep3')]})]})]})]}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x183),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1bf),'children':_0x9b919f(0x2d7)}),_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x24f),'children':_0x168241(_0x9b919f(0x2d2),{'className':_0x9b919f(0x20c),'children':JSON[_0x9b919f(0x205)]({'mcpServers':{'univer':{'url':_0x9b919f(0x18a)+(_0x57c0e2||_0x9b919f(0x23e)),'type':_0x9b919f(0x17b),'headers':{'Authorization':_0x9b919f(0x2b4)+(_0x4c5c86||'<API_KEY>')}}}},null,0x2)})})]}),_0x29a34b('div',{'className':'univer-space-y-3','children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1bf),'children':_0x3ea213['t'](_0x9b919f(0x1f0))}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-space-y-2','children':[_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x2b3),'children':[_0x168241(_0x9b919f(0x289),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1ee),'children':_0x9b919f(0x26c)}),_0x168241('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3ea213['t'](_0x9b919f(0x285))})]})]}),_0x29a34b(_0x9b919f(0x289),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x168241('div',{'className':_0x9b919f(0x225)}),_0x29a34b('div',{'className':_0x9b919f(0x17c),'children':[_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1ee),'children':_0x9b919f(0x198)}),_0x168241(_0x9b919f(0x289),{'className':_0x9b919f(0x1ab),'children':_0x3ea213['t'](_0x9b919f(0x1f4))})]})]})]})]})]})]}),_0x168241(_0x1c4867,{'onClick':_0x2bd0cd,'disabled':!_0x397c6d||_0xae2d4e,'className':_0x9b919f(0x2c5),'children':_0xae2d4e?_0x29a34b(_0x9b919f(0x2c2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x168241(_0x9b919f(0x2c2),{'children':'⟲'}),_0x3ea213['t'](_0x9b919f(0x1a0))]}):_0x29a34b(_0x9b919f(0x2c2),{'className':_0x9b919f(0x2b1),'children':[_0x168241(le,{}),_0x3ea213['t'](_0x9b919f(0x1ec))]})}),_0x168241('div',{'className':_0x9b919f(0x229),'children':_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x1da),'children':[_0x168241('span',{'className':_0x9b919f(0x223),'children':'💡'}),_0x29a34b(_0x9b919f(0x289),{'className':_0x9b919f(0x282),'children':[_0x168241('div',{'className':_0x9b919f(0x249),'children':_0x9b919f(0x181)}),_0x29a34b(_0x9b919f(0x289),{'children':['•',_0x3ea213['t'](_0x9b919f(0x1c5))]}),_0x29a34b(_0x9b919f(0x289),{'children':['•',_0x3ea213['t'](_0x9b919f(0x26b))]})]})]})})]})})]});}const y=_0x4e584c(0x241),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4e584c(0x1a9)],tn=(_0x46b916,_0x2b1d78,_0x3a461f,_0x2e361b)=>{const _0xf74b91=_0x4e584c;for(var _0x1df32b=_0x2e361b>0x1?void 0x0:_0x2e361b?rn(_0x2b1d78,_0x3a461f):_0x2b1d78,_0x294c80=_0x46b916[_0xf74b91(0x1be)]-0x1,_0x42bfaa;_0x294c80>=0x0;_0x294c80--)(_0x42bfaa=_0x46b916[_0x294c80])&&(_0x1df32b=_0x42bfaa(_0x1df32b)||_0x1df32b);return _0x1df32b;},d=(_0x1538ad,_0x498779)=>(_0x1fb90a,_0x54b02d)=>_0x498779(_0x1fb90a,_0x54b02d,_0x1538ad);const U=_0x4e584c(0x1f3),L=_0x4e584c(0x242);let I=class extends _0x537b5b{constructor(_0xd20304,_0x87cfd4,_0x387e54,_0xd0947b,_0x56b352,_0x279018,_0x5693ce,_0x29627b,_0x5a2524,_0x446de8){const _0x2fd4b5=_0x4e584c;super(),x(this,_0x2fd4b5(0x2ae),new _0x3e840f(!0x1)),x(this,_0x2fd4b5(0x2a9),new _0x3e840f({})),x(this,'_config$',new _0x3e840f({})),x(this,_0x2fd4b5(0x1e3),new _0x3e840f('')),x(this,_0x2fd4b5(0x1eb),async _0x5dff73=>{const _0x776792=_0x2fd4b5;var _0xe6f2d6,_0x21ee6f;this[_0x776792(0x2ae)][_0x776792(0x283)](!0x0);try{const _0xe662c5=await this[_0x776792(0x202)](_0x5dff73);if(!_0xe662c5[_0x776792(0x1d7)]){this[_0x776792(0x1b4)][_0x776792(0x1b5)]({'type':_0x39471f[_0x776792(0x2a4)],'content':_0xe662c5[_0x776792(0x237)]||this[_0x776792(0x187)]['t'](_0x776792(0x1db))});return;}_0x5dff73[_0x776792(0x172)]?await this['_localStorageService'][_0x776792(0x213)](U,_0x5dff73[_0x776792(0x172)]['trim']()):await this['_localStorageService'][_0x776792(0x274)](U),this[_0x776792(0x1e3)]['next'](((_0xe6f2d6=_0x5dff73[_0x776792(0x172)])==null?void 0x0:_0xe6f2d6[_0x776792(0x253)]())||''),this['_mcpConnectionController'][_0x776792(0x254)]({'Authorization':_0x776792(0x2b4)+((_0x21ee6f=_0x5dff73[_0x776792(0x172)])==null?void 0x0:_0x21ee6f[_0x776792(0x253)]())}),this[_0x776792(0x1b4)]['show']({'type':_0x39471f[_0x776792(0x1c0)],'content':this[_0x776792(0x187)]['t'](_0x776792(0x278))}),setTimeout(()=>{const _0x27d674=_0x776792;this['_dialogService'][_0x27d674(0x260)](L);},0x320);}catch(_0x40bacd){this['_logService'][_0x776792(0x2b5)](_0x776792(0x224),_0x40bacd),this['_messageService']['show']({'type':_0x39471f[_0x776792(0x2a4)],'content':this[_0x776792(0x187)]['t'](_0x776792(0x1d3))});}finally{this[_0x776792(0x2ae)]['next'](!0x1);}}),(this[_0x2fd4b5(0x173)]=_0xd20304,this[_0x2fd4b5(0x1d2)]=_0x87cfd4,this['_configService']=_0x387e54,this['_localStorageService']=_0xd0947b,this['_dialogService']=_0x56b352,this[_0x2fd4b5(0x1b4)]=_0x279018,this[_0x2fd4b5(0x2d1)]=_0x5693ce,this[_0x2fd4b5(0x187)]=_0x29627b,this['_logService']=_0x5a2524,this['_mcpConnectionController']=_0x446de8,this['_initConfigSync'](),this[_0x2fd4b5(0x192)](),this[_0x2fd4b5(0x1ce)]());}[_0x4e584c(0x2da)](){const _0xda0a66=_0x4e584c,_0x18e9c6=this[_0xda0a66(0x176)][_0xda0a66(0x1e9)](y);_0x18e9c6!=null&&_0x18e9c6[_0xda0a66(0x234)]&&this['_dialogService'][_0xda0a66(0x243)]({'id':L,'title':{'title':this[_0xda0a66(0x187)]['t']('mcpConfig.title')},'children':{'label':_0xda0a66(0x286)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x343b27=_0xda0a66;this[_0x343b27(0x2ba)][_0x343b27(0x260)](L);}});}[_0x4e584c(0x267)](){const _0x20b844=_0x4e584c;return this['_mcpCoreConfig$'][_0x20b844(0x270)];}[_0x4e584c(0x1ce)](){const _0x437a58=_0x4e584c;this[_0x437a58(0x227)](this[_0x437a58(0x2d1)][_0x437a58(0x1b7)](_0x437a58(0x286),this[_0x437a58(0x197)]()));}[_0x4e584c(0x197)](){const _0x8252aa=_0x4e584c;return _0x3bc164(()=>{const _0x14b81f=_0x3937;var _0x44e291,_0x20373f,_0x1ff89a;return _0x168241(nn,{'config':this[_0x14b81f(0x259)][_0x14b81f(0x270)],'mcpCoreConfig':this[_0x14b81f(0x2a9)][_0x14b81f(0x270)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x14b81f(0x1eb)],'loading':this[_0x14b81f(0x2ae)][_0x14b81f(0x270)],'connectionStatus$':(_0x44e291=this[_0x14b81f(0x28c)])==null?void 0x0:_0x44e291[_0x14b81f(0x2a3)],'connectionError$':(_0x20373f=this[_0x14b81f(0x28c)])==null?void 0x0:_0x20373f[_0x14b81f(0x25b)],'currentSessionId$':(_0x1ff89a=this[_0x14b81f(0x28c)])==null?void 0x0:_0x1ff89a[_0x14b81f(0x195)]});},this[_0x8252aa(0x173)]);}[_0x4e584c(0x26a)](){const _0x565809=_0x4e584c;this[_0x565809(0x227)](this[_0x565809(0x176)][_0x565809(0x1b0)](_0x28c8a7)[_0x565809(0x27c)](_0xd17e65=>{const _0x59d770=_0x565809;this[_0x59d770(0x2a9)][_0x59d770(0x283)](_0xd17e65||{});}));const _0xc5dac9=this[_0x565809(0x176)]['getConfig'](_0x28c8a7);this[_0x565809(0x2a9)][_0x565809(0x283)](_0xc5dac9||{}),this['disposeWithMe'](this[_0x565809(0x176)][_0x565809(0x1b0)](y)[_0x565809(0x27c)](_0x1aaa3c=>{const _0x2dbb0a=_0x565809;this[_0x2dbb0a(0x259)][_0x2dbb0a(0x283)](_0x1aaa3c||{});}));const _0x26e995=this[_0x565809(0x176)]['getConfig'](y);this[_0x565809(0x259)]['next'](_0x26e995||{});}async[_0x4e584c(0x192)](){const _0x1dfb4a=_0x4e584c,_0x44117a=this[_0x1dfb4a(0x176)]['getConfig'](y);if(!(_0x44117a!=null&&_0x44117a['showDeveloperTools']))return;const _0x10d749=await this['_localStorageService'][_0x1dfb4a(0x26f)](U);_0x10d749&&(this['_mcpConnectionController'][_0x1dfb4a(0x254)]({'Authorization':'Bearer\x20'+_0x10d749}),this['_apiKey$'][_0x1dfb4a(0x283)](_0x10d749));}async[_0x4e584c(0x202)](_0x3eb4ba){const _0x545d97=_0x4e584c;if(!_0x3eb4ba[_0x545d97(0x172)]||_0x3eb4ba[_0x545d97(0x172)][_0x545d97(0x253)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x545d97(0x187)]['t'](_0x545d97(0x22f))};if(_0x3eb4ba[_0x545d97(0x172)]['trim']()[_0x545d97(0x1be)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x545d97(0x187)]['t'](_0x545d97(0x1a3))};try{const _0x1f9dec=await this[_0x545d97(0x173)]['get'](_0x1f2569)[_0x545d97(0x2ab)](_0x3eb4ba[_0x545d97(0x172)][_0x545d97(0x253)]());return _0x1f9dec[_0x545d97(0x1d7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f9dec[_0x545d97(0x2b5)]||this[_0x545d97(0x187)]['t'](_0x545d97(0x21b))};}catch(_0x4f0e4b){return console[_0x545d97(0x232)](_0x545d97(0x1e2),_0x4f0e4b),{'isValid':!0x0};}}};I=tn([d(0x0,_0xd554c6(_0x1c5d39)),d(0x1,_0x25baf3),d(0x2,_0x5b4e7f),d(0x3,_0x5101fd),d(0x4,_0x2c6c49),d(0x5,_0x5c9e0c),d(0x6,_0xd554c6(_0x5d98d5)),d(0x7,_0xd554c6(_0x10e845)),d(0x8,_0x5bde43),d(0x9,_0xd554c6(_0x1f2569))],I);const V={'id':_0x4e584c(0x1e1),'type':_0x4e50e3[_0x4e584c(0x2cc)],'handler':async(_0x103708,_0x4ad6d9)=>(_0x103708[_0x4e584c(0x217)](I)[_0x4e584c(0x2da)](),!0x0)};function pe(_0x535302,_0x4bc96a){const _0x54315a=_0x4e584c;switch(_0x535302){case _0x51b3c4[_0x54315a(0x250)]:return _0x54315a(0x185);case _0x51b3c4[_0x54315a(0x2d8)]:return _0x54315a(0x1aa);case _0x51b3c4[_0x54315a(0x2cd)]:return _0x54315a(0x277);case _0x51b3c4[_0x54315a(0x21d)]:switch(_0x4bc96a){case _0x467903['UNAUTHORIZED']:return _0x54315a(0x23b);case _0x467903[_0x54315a(0x222)]:return _0x54315a(0x1f5);case _0x467903[_0x54315a(0x1a7)]:return'mcpStatus.networkError';case _0x467903[_0x54315a(0x1c3)]:return'mcpStatus.maxRetriesExceeded';default:return _0x54315a(0x23f);}case _0x51b3c4['RETRYING']:return _0x54315a(0x23c);default:return _0x54315a(0x2a5);}}function on(_0x85b51f,_0x4c94c0,_0x40911f,_0x44157e=!0x0){const _0x58e360=_0x4e584c,_0x258d96=pe(_0x85b51f,_0x4c94c0),_0x4dc7e1=_0x40911f['t'](_0x258d96);return _0x44157e?_0x85b51f===_0x51b3c4[_0x58e360(0x250)]&&_0x4c94c0===_0x467903[_0x58e360(0x298)]?_0x4dc7e1+_0x58e360(0x1b9)+_0x40911f['t'](_0x58e360(0x23d)):_0x85b51f===_0x51b3c4['CONNECTED']?''+_0x4dc7e1:_0x85b51f===_0x51b3c4[_0x58e360(0x250)]||_0x85b51f===_0x51b3c4[_0x58e360(0x21d)]?_0x4dc7e1+_0x58e360(0x1b9)+_0x40911f['t'](_0x58e360(0x1e6)):_0x4dc7e1:_0x4dc7e1;}function sn(_0x157ad0){const _0x1a2fba=_0x4e584c;switch(_0x157ad0){case _0x51b3c4[_0x1a2fba(0x2cd)]:return'univer-text-green-500';case _0x51b3c4[_0x1a2fba(0x2d8)]:case _0x51b3c4[_0x1a2fba(0x2a8)]:return _0x1a2fba(0x1ef);case _0x51b3c4[_0x1a2fba(0x21d)]:case _0x51b3c4['DISCONNECTED']:return _0x1a2fba(0x201);default:return _0x1a2fba(0x1f1);}}function cn(_0x38045c){const _0x17f3dc=_0x4e584c,{status$:_0x44e354,error$:_0x56271c,onConfigure:_0x243f55,showClickable:_0xf86242=!0x0}=_0x38045c,_0x5d221a=_0x5bb29a(_0x44e354,_0x51b3c4[_0x17f3dc(0x250)]),_0x2c8537=_0x5bb29a(_0x56271c,_0x467903['NONE']),_0x241c85=_0x3f390e(_0x10e845),_0x5be3ab=_0x5d221a===_0x51b3c4['CONNECTED'];_0x5d221a===_0x51b3c4['CONNECTING']||_0x51b3c4[_0x17f3dc(0x2a8)];const _0x37c74c=_0x241c85['t'](pe(_0x5d221a,_0x2c8537)),_0x2cbde8=on(_0x5d221a,_0x2c8537,_0x241c85,_0xf86242),_0x589107=sn(_0x5d221a),_0x4b775c=_0x5be3ab?_0x168241(ge,{}):_0x168241(de,{}),_0x1757f2=_0x1aa4ef(()=>{_0xf86242&&_0x243f55&&_0x243f55();},[_0xf86242,_0x243f55]);function _0x12587a(){const _0x489998=_0x17f3dc;return _0x29a34b(_0x489998(0x289),{'className':_0xb05ffb(_0x489998(0x2c1),_0xf86242&&_0x243f55&&_0x489998(0x1ae)),'role':_0x489998(0x203),'onClick':_0xf86242&&_0x243f55?_0x1757f2:void 0x0,'children':[_0x168241(_0x489998(0x289),{'className':_0xb05ffb(_0x489998(0x2cf),_0x589107),'children':_0x4b775c}),_0x168241('div',{'className':_0x489998(0x268),'children':_0x37c74c})]});}return _0x168241(_0x3f7d60,{'title':_0x2cbde8,'placement':_0x17f3dc(0x246),'children':_0x12587a()});}var an=Object[_0x4e584c(0x1a9)],ln=(_0x4cc39b,_0x2a9846,_0x1ae1f9,_0x1d0a25)=>{for(var _0x490143=_0x1d0a25>0x1?void 0x0:_0x1d0a25?an(_0x2a9846,_0x1ae1f9):_0x2a9846,_0x12ff55=_0x4cc39b['length']-0x1,_0xae6b8f;_0x12ff55>=0x0;_0x12ff55--)(_0xae6b8f=_0x4cc39b[_0x12ff55])&&(_0x490143=_0xae6b8f(_0x490143)||_0x490143);return _0x490143;},M=(_0x2c6730,_0x1e6ef9)=>(_0x5d7930,_0x2e9ee0)=>_0x1e6ef9(_0x5d7930,_0x2e9ee0,_0x2c6730);let O=class extends _0x537b5b{constructor(_0xad7f16,_0x5b72b4,_0x1db4d2,_0xc11353){const _0xc40f71=_0x4e584c;super(),this[_0xc40f71(0x173)]=_0xad7f16,this['_connectionController']=_0x5b72b4,this['_uiPartsService']=_0x1db4d2,this['_configService']=_0xc11353,this[_0xc40f71(0x2b2)](),this[_0xc40f71(0x1ea)]();}[_0x4e584c(0x2b2)](){const _0xc15040=_0x4e584c,_0x4d0a0f=this[_0xc15040(0x176)][_0xc15040(0x1e9)](y);_0x4d0a0f!=null&&_0x4d0a0f[_0xc15040(0x234)]&&(this[_0xc15040(0x1a2)][_0xc15040(0x19c)]=!0x1);}[_0x4e584c(0x1ea)](){const _0x54c78b=_0x4e584c,_0x1372f9=this['_configService'][_0x54c78b(0x1e9)](y);(_0x1372f9==null?void 0x0:_0x1372f9['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x54c78b(0x1d2)][_0x54c78b(0x220)](_0x3a82b7[_0x54c78b(0x1fc)],()=>{const _0x1d8eb9=_0x54c78b;var _0x45674a;return _0x3bc164(un({'status$':this['_connectionController'][_0x1d8eb9(0x2a3)],'error$':this['_connectionController'][_0x1d8eb9(0x25b)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x45674a=_0x1372f9==null?void 0x0:_0x1372f9[_0x1d8eb9(0x234)])!=null?_0x45674a:!0x1}),this[_0x1d8eb9(0x173)]);}));}[_0x4e584c(0x221)](){const _0x21a8eb=_0x4e584c;this[_0x21a8eb(0x173)][_0x21a8eb(0x217)](I)['showConfigPanel']();}};O=ln([M(0x0,_0xd554c6(_0x1c5d39)),M(0x1,_0xd554c6(_0x1f2569)),M(0x2,_0x25baf3),M(0x3,_0x5b4e7f)],O);function un(_0x4b2c98){const {status$:_0x27ffc5,error$:_0x31edc0,onConfigure:_0x22c9dd,showClickable:_0x54f4a9}=_0x4b2c98;return function(){return _0x168241(cn,{'status$':_0x27ffc5,'error$':_0x31edc0,'onConfigure':_0x22c9dd,'showClickable':_0x54f4a9});};}function vn(_0x5b00a1){const _0x40e828=_0x4e584c;return{'id':V['id'],'type':_0x4bdc4a[_0x40e828(0x271)],'icon':_0x40e828(0x226),'title':_0x40e828(0x25f),'tooltip':_0x40e828(0x25f)};}const dn={[_0x52acc8['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4e584c(0x1a9)],pn=(_0x5d225d,_0x551580,_0x562916,_0x5ae191)=>{const _0x4bd5ae=_0x4e584c;for(var _0x4fcb33=_0x5ae191>0x1?void 0x0:_0x5ae191?gn(_0x551580,_0x562916):_0x551580,_0x4c3a53=_0x5d225d[_0x4bd5ae(0x1be)]-0x1,_0x44f49d;_0x4c3a53>=0x0;_0x4c3a53--)(_0x44f49d=_0x5d225d[_0x4c3a53])&&(_0x4fcb33=_0x44f49d(_0x4fcb33)||_0x4fcb33);return _0x4fcb33;},re=(_0x820235,_0x47f0c8)=>(_0x5a7a87,_0x56afb3)=>_0x47f0c8(_0x5a7a87,_0x56afb3,_0x820235);let D=class extends _0x537b5b{constructor(_0x38bae2,_0x26e2d5){const _0x226d71=_0x4e584c;super(),this[_0x226d71(0x248)]=_0x38bae2,this['_menuManagerService']=_0x26e2d5,this['_initializeCommands'](),this[_0x226d71(0x24d)]();}['_initializeCommands'](){const _0x2ea94c=_0x4e584c;[V][_0x2ea94c(0x2bb)](_0x551426=>{const _0x1f2b47=_0x2ea94c;this['disposeWithMe'](this[_0x1f2b47(0x248)][_0x1f2b47(0x1f9)](_0x551426));});}[_0x4e584c(0x24d)](){this['_menuManagerService']['mergeMenu'](dn);}};D=pn([re(0x0,_0x1ccefe),re(0x1,_0x461dbe)],D);const Mn={'mcpStatus':{'disconnected':_0x4e584c(0x1a5),'connecting':_0x4e584c(0x1b8),'connected':_0x4e584c(0x265),'failed':_0x4e584c(0x1c9),'retrying':_0x4e584c(0x1bb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4e584c(0x20b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4e584c(0x262),'maxRetriesExceeded':_0x4e584c(0x2aa),'clickToConnect':_0x4e584c(0x19d),'clickToConfigure':_0x4e584c(0x2d3)},'mcpConfig':{'title':_0x4e584c(0x2d7),'description':_0x4e584c(0x2b7),'apiKey':_0x4e584c(0x2c3),'apiKeyPlaceholder':_0x4e584c(0x1b1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4e584c(0x21f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4e584c(0x18c),'configStepTitle':_0x4e584c(0x24e),'configStep1':_0x4e584c(0x1df),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4e584c(0x20d),'sessionId':_0x4e584c(0x2a0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4e584c(0x1ba),'configParameters':_0x4e584c(0x294),'maxRetries':'Max\x20Retries','save':_0x4e584c(0x1e4),'saving':_0x4e584c(0x1c7),'note1':_0x4e584c(0x2c0),'note2':_0x4e584c(0x1de),'configSaved':_0x4e584c(0x170),'configError':_0x4e584c(0x1d9),'apiApplyInfo':{'title':_0x4e584c(0x2b0),'description':_0x4e584c(0x2b9),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4e584c(0x22c),'apiKeyTooShort':_0x4e584c(0x1c6),'invalidConfig':_0x4e584c(0x2d0),'invalidApiKey':_0x4e584c(0x264)},'connectionStatus':{'disconnected':_0x4e584c(0x24b),'connecting':_0x4e584c(0x2d5),'connected':'Connected','failed':_0x4e584c(0x2c6),'retrying':_0x4e584c(0x263)},'connectionError':{'unauthorized':_0x4e584c(0x27e),'sessionOccupied':_0x4e584c(0x179),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x4e584c(0x25c),'connecting':_0x4e584c(0x245),'connected':_0x4e584c(0x236),'failed':_0x4e584c(0x28a),'retrying':_0x4e584c(0x25d),'unknown':_0x4e584c(0x231),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4e584c(0x2a6),'networkError':_0x4e584c(0x1a6),'maxRetriesExceeded':_0x4e584c(0x177),'clickToConnect':_0x4e584c(0x2b8),'clickToConfigure':_0x4e584c(0x23a)},'mcpConfig':{'title':_0x4e584c(0x171),'description':_0x4e584c(0x186),'apiKey':_0x4e584c(0x199),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x4e584c(0x29b),'enableAuth':_0x4e584c(0x191),'enableAuthHint':_0x4e584c(0x27f),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4e584c(0x290),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4e584c(0x28f),'configStep1':_0x4e584c(0x2b6),'configStep2':_0x4e584c(0x288),'configStep3':_0x4e584c(0x1fe),'sessionId':_0x4e584c(0x1e8),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4e584c(0x257),'configParameters':_0x4e584c(0x1f8),'maxRetries':_0x4e584c(0x291),'save':_0x4e584c(0x206),'saving':'保存中...','note1':_0x4e584c(0x25e),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x4e584c(0x18f),'configError':_0x4e584c(0x19e),'apiApplyInfo':{'title':_0x4e584c(0x238),'description':_0x4e584c(0x22e),'univerAiLabel':_0x4e584c(0x1bc),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x4e584c(0x297),'apiKeyTooShort':_0x4e584c(0x1d4),'invalidConfig':_0x4e584c(0x2a2),'invalidApiKey':_0x4e584c(0x1f2)},'connectionStatus':{'disconnected':_0x4e584c(0x1d1),'connecting':_0x4e584c(0x200),'connected':_0x4e584c(0x26e),'failed':'连接失败','retrying':_0x4e584c(0x279)},'connectionError':{'unauthorized':_0x4e584c(0x2d4),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4e584c(0x1ac),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x149f33,_0x9f9bef,_0x26a7c0)=>_0x9f9bef in _0x149f33?fn(_0x149f33,_0x9f9bef,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a7c0}):_0x149f33[_0x9f9bef]=_0x26a7c0,mn=(_0x55be7e,_0x200ce0,_0x408259,_0xe18c82)=>{for(var _0x13d73a=_0xe18c82>0x1?void 0x0:_0xe18c82?hn(_0x200ce0,_0x408259):_0x200ce0,_0x3a1ec5=_0x55be7e['length']-0x1,_0x3c91be;_0x3a1ec5>=0x0;_0x3a1ec5--)(_0x3c91be=_0x55be7e[_0x3a1ec5])&&(_0x13d73a=_0x3c91be(_0x13d73a)||_0x13d73a);return _0x13d73a;},P=(_0x29ed8c,_0x2942b9)=>(_0x1c8f72,_0x565da7)=>_0x2942b9(_0x1c8f72,_0x565da7,_0x29ed8c),_n=(_0x1c3bb3,_0x4fc393,_0x26d337)=>Cn(_0x1c3bb3,_0x4fc393+'',_0x26d337);let j=class extends _0xef5738{constructor(_0x587183=ie,_0x304f8c,_0x4b9170,_0x278b33,_0x495c0c,_0x57a2ef){const _0x33e566=_0x4e584c;super(),this[_0x33e566(0x1b6)]=_0x587183,this['_injector']=_0x304f8c,this[_0x33e566(0x176)]=_0x4b9170,this[_0x33e566(0x1d2)]=_0x278b33,this[_0x33e566(0x230)]=_0x495c0c,this[_0x33e566(0x187)]=_0x57a2ef;const {..._0x1b0121}=_0x144741({},ie,this[_0x33e566(0x1b6)]);this[_0x33e566(0x176)][_0x33e566(0x1f7)](y,_0x1b0121);}async[_0x4e584c(0x1a8)](){const _0x1aaefd=_0x4e584c,_0x39e489=[[O],[I],[D]];this[_0x1aaefd(0x173)][_0x1aaefd(0x2be)](_0x13a839)||_0x39e489[_0x1aaefd(0x1af)]([_0x13a839,{'useClass':_0xafe199}]),_0x39e489[_0x1aaefd(0x2bb)](_0x103bef=>this[_0x1aaefd(0x173)][_0x1aaefd(0x2af)](_0x103bef)),this[_0x1aaefd(0x173)]['get'](O),this[_0x1aaefd(0x173)][_0x1aaefd(0x217)](I),this[_0x1aaefd(0x173)][_0x1aaefd(0x217)](D);}};_n(j,_0x4e584c(0x2d6),'MCP_UI_PLUGIN'),j=mn([_0x341f82(_0x1f72cd),P(0x1,_0xd554c6(_0x1c5d39)),P(0x2,_0x5b4e7f),P(0x3,_0x25baf3),P(0x4,_0x5101fd),P(0x5,_0xd554c6(_0x10e845))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x5bd502=_0x5eb1;function _0x5eb1(_0x200b18,_0xbe28a3){const _0x3391b8=_0x3391();return _0x5eb1=function(_0x5eb147,_0x16eeea){_0x5eb147=_0x5eb147-0x1a5;let _0x1569c4=_0x3391b8[_0x5eb147];return _0x1569c4;},_0x5eb1(_0x200b18,_0xbe28a3);}function _0x3391(){const _0x47e8d8=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','3434IOlsiu','Univer\x20AI\x20Console','6320816XJrbpc','926325yRaGxd','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1773676VbgQTi','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','5303745UlvjRY','Retrying...','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','7756650cjLIMU','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','2742oxhIxd','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','5929YqIrYi','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Disconnected','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Connected','Configuration\x20saved\x20successfully','403hvwBzD'];_0x3391=function(){return _0x47e8d8;};return _0x3391();}(function(_0x4f9a58,_0x5050f7){const _0x117bbd=_0x5eb1,_0x445a82=_0x4f9a58();while(!![]){try{const _0x3b036a=-parseInt(_0x117bbd(0x1af))/0x1*(parseInt(_0x117bbd(0x1b5))/0x2)+-parseInt(_0x117bbd(0x1b8))/0x3+-parseInt(_0x117bbd(0x1bc))/0x4+parseInt(_0x117bbd(0x1bf))/0x5+-parseInt(_0x117bbd(0x1d0))/0x6*(parseInt(_0x117bbd(0x1d5))/0x7)+parseInt(_0x117bbd(0x1b7))/0x8+parseInt(_0x117bbd(0x1cd))/0x9;if(_0x3b036a===_0x5050f7)break;else _0x445a82['push'](_0x445a82['shift']());}catch(_0x23ecb5){_0x445a82['push'](_0x445a82['shift']());}}}(_0x3391,0xd7345));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5bd502(0x1b2),'connected':'MCP\x20Connected','failed':_0x5bd502(0x1c1),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5bd502(0x1b4),'sessionOccupied':_0x5bd502(0x1a5),'networkError':_0x5bd502(0x1ce),'maxRetriesExceeded':_0x5bd502(0x1d1),'clickToConnect':_0x5bd502(0x1c5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5bd502(0x1c6),'description':_0x5bd502(0x1d3),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5bd502(0x1ac),'apiKeyHint':_0x5bd502(0x1aa),'enableAuth':_0x5bd502(0x1c7),'enableAuthHint':_0x5bd502(0x1ab),'connectionInfo':_0x5bd502(0x1c2),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5bd502(0x1b3),'configStepTitle':_0x5bd502(0x1a7),'configStep1':_0x5bd502(0x1b9),'configStep2':_0x5bd502(0x1b0),'configStep3':_0x5bd502(0x1cc),'sessionId':'Session\x20ID','sessionIdDescription':_0x5bd502(0x1bb),'authorizationDescription':_0x5bd502(0x1cf),'configParameters':_0x5bd502(0x1d4),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x5bd502(0x1cb),'note2':_0x5bd502(0x1ba),'configSaved':_0x5bd502(0x1ae),'configError':_0x5bd502(0x1b1),'apiApplyInfo':{'title':_0x5bd502(0x1a9),'description':_0x5bd502(0x1c8),'univerAiLabel':_0x5bd502(0x1b6),'getStarted':_0x5bd502(0x1c3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5bd502(0x1ca),'invalidConfig':_0x5bd502(0x1c4),'invalidApiKey':_0x5bd502(0x1c9)},'connectionStatus':{'disconnected':_0x5bd502(0x1a8),'connecting':_0x5bd502(0x1bd),'connected':_0x5bd502(0x1ad),'failed':'Connection\x20Failed','retrying':_0x5bd502(0x1c0)},'connectionError':{'unauthorized':_0x5bd502(0x1a6),'sessionOccupied':_0x5bd502(0x1d2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5bd502(0x1be)}}},n=e;export{n as default};
1
+ function _0x4d6f(){const _0x1c3bb3=['Connected','465646VrOylJ','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','1757664AayFRu','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','MCP\x20Unknown\x20Status','8sPlgBk','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','Save\x20Configuration','API\x20Key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Failed\x20to\x20save\x20configuration','8430687ZrTcQS','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','Session\x20ID','2000682dVAhBg','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','Enable\x20Authentication','3361752QGtmyM','6333460hteTpV','2933850TRfTCU','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connection\x20Failed','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:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','Univer\x20AI\x20Console','MCP:\x20Unauthorized','3bOeClL','MCP\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Connected','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected'];_0x4d6f=function(){return _0x1c3bb3;};return _0x4d6f();}function _0x3711(_0x53c2aa,_0x57f5af){const _0x4d6fff=_0x4d6f();return _0x3711=function(_0x37119e,_0x43ff1b){_0x37119e=_0x37119e-0x165;let _0x3df66a=_0x4d6fff[_0x37119e];return _0x3df66a;},_0x3711(_0x53c2aa,_0x57f5af);}const _0xcd4317=_0x3711;(function(_0x4c9b02,_0x296f5b){const _0x237ade=_0x3711,_0x265bc3=_0x4c9b02();while(!![]){try{const _0x2640de=parseInt(_0x237ade(0x18c))/0x1*(-parseInt(_0x237ade(0x194))/0x2)+parseInt(_0x237ade(0x17b))/0x3+-parseInt(_0x237ade(0x17f))/0x4+-parseInt(_0x237ade(0x181))/0x5+parseInt(_0x237ade(0x167))/0x6+parseInt(_0x237ade(0x180))/0x7+-parseInt(_0x237ade(0x16b))/0x8*(-parseInt(_0x237ade(0x177))/0x9);if(_0x2640de===_0x296f5b)break;else _0x265bc3['push'](_0x265bc3['shift']());}catch(_0x49a6ad){_0x265bc3['push'](_0x265bc3['shift']());}}}(_0x4d6f,0xa4f64));const e={'mcpStatus':{'disconnected':_0xcd4317(0x16d),'connecting':_0xcd4317(0x169),'connected':_0xcd4317(0x18f),'failed':_0xcd4317(0x17d),'retrying':_0xcd4317(0x166),'unknown':_0xcd4317(0x16a),'unauthorized':_0xcd4317(0x18b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xcd4317(0x18e),'maxRetriesExceeded':_0xcd4317(0x188),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xcd4317(0x18d),'description':_0xcd4317(0x197),'apiKey':_0xcd4317(0x170),'apiKeyPlaceholder':_0xcd4317(0x198),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xcd4317(0x17e),'enableAuthHint':_0xcd4317(0x183),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xcd4317(0x178),'configStepTitle':_0xcd4317(0x189),'configStep1':_0xcd4317(0x195),'configStep2':_0xcd4317(0x17c),'configStep3':_0xcd4317(0x165),'sessionId':_0xcd4317(0x17a),'sessionIdDescription':_0xcd4317(0x191),'authorizationDescription':_0xcd4317(0x16e),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xcd4317(0x172),'save':_0xcd4317(0x16f),'saving':_0xcd4317(0x182),'note1':_0xcd4317(0x184),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xcd4317(0x190),'configError':_0xcd4317(0x176),'apiApplyInfo':{'title':_0xcd4317(0x179),'description':_0xcd4317(0x187),'univerAiLabel':_0xcd4317(0x18a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xcd4317(0x168),'invalidConfig':_0xcd4317(0x175),'invalidApiKey':_0xcd4317(0x16c)},'connectionStatus':{'disconnected':_0xcd4317(0x192),'connecting':'Connecting...','connected':_0xcd4317(0x193),'failed':_0xcd4317(0x186),'retrying':_0xcd4317(0x196)},'connectionError':{'unauthorized':_0xcd4317(0x173),'sessionOccupied':_0xcd4317(0x185),'networkError':_0xcd4317(0x174),'maxRetriesExceeded':_0xcd4317(0x171)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x250513=_0x2ca3;function _0x5237(){const _0x213704=['MCP\x20Configuration','Invalid\x20configuration','4544883ZaiVMt','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','453RwohqJ','Click\x20to\x20connect\x20MCP','3190580BMERcX','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Max\x20Retries','1400694MEiamc','What\x20is\x20API\x20Key?','Retrying...','Configuration\x20Steps:','Configuration\x20Parameters:','MCP\x20Disconnected','Disconnected','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','454114jzagJi','Connection\x20Failed','Enter\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','Saving...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','Failed\x20to\x20save\x20configuration','3558560mbPvVq','API\x20key\x20is\x20required','2428vOPdOM','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connecting...','283765qrPeAI','MCP\x20Retrying...','Connecting...','Connected','MCP:\x20Session\x20ID\x20Occupied'];_0x5237=function(){return _0x213704;};return _0x5237();}function _0x2ca3(_0x23aa8b,_0x32bf21){const _0x523733=_0x5237();return _0x2ca3=function(_0x2ca306,_0x416c21){_0x2ca306=_0x2ca306-0x176;let _0x3174f8=_0x523733[_0x2ca306];return _0x3174f8;},_0x2ca3(_0x23aa8b,_0x32bf21);}(function(_0x234713,_0x5a6c4c){const _0x2d2d23=_0x2ca3,_0x2013fc=_0x234713();while(!![]){try{const _0x24081c=parseInt(_0x2d2d23(0x189))/0x1+-parseInt(_0x2d2d23(0x177))/0x2+-parseInt(_0x2d2d23(0x197))/0x3*(-parseInt(_0x2d2d23(0x184))/0x4)+parseInt(_0x2d2d23(0x199))/0x5+-parseInt(_0x2d2d23(0x19e))/0x6+-parseInt(_0x2d2d23(0x190))/0x7+parseInt(_0x2d2d23(0x182))/0x8;if(_0x24081c===_0x5a6c4c)break;else _0x2013fc['push'](_0x2013fc['shift']());}catch(_0x237147){_0x2013fc['push'](_0x2013fc['shift']());}}}(_0x5237,0x551a7));const e={'mcpStatus':{'disconnected':_0x250513(0x1a3),'connecting':_0x250513(0x188),'connected':'MCP\x20Connected','failed':_0x250513(0x19a),'retrying':_0x250513(0x18a),'unknown':_0x250513(0x1a6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x250513(0x18d),'networkError':_0x250513(0x191),'maxRetriesExceeded':_0x250513(0x185),'clickToConnect':_0x250513(0x198),'clickToConfigure':_0x250513(0x1a5)},'mcpConfig':{'title':_0x250513(0x18e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x250513(0x179),'apiKeyHint':_0x250513(0x17f),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x250513(0x194),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x250513(0x192),'configInstructions':_0x250513(0x17a),'configStepTitle':_0x250513(0x1a1),'configStep1':_0x250513(0x17c),'configStep2':_0x250513(0x176),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x250513(0x180),'sessionIdDescription':_0x250513(0x17e),'authorizationDescription':_0x250513(0x17b),'configParameters':_0x250513(0x1a2),'maxRetries':_0x250513(0x19d),'save':'Save\x20Configuration','saving':_0x250513(0x17d),'note1':_0x250513(0x19c),'note2':_0x250513(0x193),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x250513(0x181),'apiApplyInfo':{'title':_0x250513(0x19f),'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':_0x250513(0x195),'getStarted':_0x250513(0x186)},'validation':{'apiKeyRequired':_0x250513(0x183),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x250513(0x18f),'invalidApiKey':_0x250513(0x187)},'connectionStatus':{'disconnected':_0x250513(0x1a4),'connecting':_0x250513(0x18b),'connected':_0x250513(0x18c),'failed':_0x250513(0x178),'retrying':_0x250513(0x1a0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x250513(0x1a7),'networkError':_0x250513(0x19b),'maxRetriesExceeded':_0x250513(0x196)}}};export{e as default};
1
+ const _0x476f96=_0x5d37;(function(_0x250ef5,_0x251a3a){const _0x403bb0=_0x5d37,_0x132420=_0x250ef5();while(!![]){try{const _0x44681e=-parseInt(_0x403bb0(0x20f))/0x1+-parseInt(_0x403bb0(0x20c))/0x2*(-parseInt(_0x403bb0(0x1f4))/0x3)+-parseInt(_0x403bb0(0x217))/0x4*(parseInt(_0x403bb0(0x1fb))/0x5)+-parseInt(_0x403bb0(0x1f3))/0x6+-parseInt(_0x403bb0(0x1f5))/0x7*(parseInt(_0x403bb0(0x20d))/0x8)+parseInt(_0x403bb0(0x218))/0x9+parseInt(_0x403bb0(0x1f6))/0xa;if(_0x44681e===_0x251a3a)break;else _0x132420['push'](_0x132420['shift']());}catch(_0x3c86ca){_0x132420['push'](_0x132420['shift']());}}}(_0x28c4,0x253f1));function _0x5d37(_0x3b2a64,_0x460900){const _0x28c493=_0x28c4();return _0x5d37=function(_0x5d3782,_0x3d4166){_0x5d3782=_0x5d3782-0x1f2;let _0x5f3db2=_0x28c493[_0x5d3782];return _0x5f3db2;},_0x5d37(_0x3b2a64,_0x460900);}const e={'mcpStatus':{'disconnected':_0x476f96(0x212),'connecting':_0x476f96(0x205),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x476f96(0x1f2),'unknown':_0x476f96(0x1f9),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x476f96(0x1fa),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x476f96(0x21a),'clickToConnect':_0x476f96(0x214),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x476f96(0x1fe),'description':_0x476f96(0x20b),'apiKey':_0x476f96(0x222),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x476f96(0x202),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x476f96(0x220),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x476f96(0x211),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x476f96(0x201),'configStep1':_0x476f96(0x203),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x476f96(0x20a),'sessionId':_0x476f96(0x1ff),'sessionIdDescription':_0x476f96(0x213),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x476f96(0x208),'maxRetries':_0x476f96(0x21b),'save':_0x476f96(0x21c),'saving':_0x476f96(0x21d),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x476f96(0x1fc),'configSaved':_0x476f96(0x1f7),'configError':_0x476f96(0x216),'apiApplyInfo':{'title':_0x476f96(0x1fd),'description':_0x476f96(0x215),'univerAiLabel':_0x476f96(0x200),'getStarted':_0x476f96(0x206)},'validation':{'apiKeyRequired':_0x476f96(0x223),'apiKeyTooShort':_0x476f96(0x221),'invalidConfig':_0x476f96(0x210),'invalidApiKey':_0x476f96(0x207)},'connectionStatus':{'disconnected':_0x476f96(0x204),'connecting':_0x476f96(0x1f8),'connected':_0x476f96(0x209),'failed':'Connection\x20Failed','retrying':_0x476f96(0x20e)},'connectionError':{'unauthorized':_0x476f96(0x219),'sessionOccupied':_0x476f96(0x224),'networkError':_0x476f96(0x21e),'maxRetriesExceeded':_0x476f96(0x21f)}}};function _0x28c4(){const _0x3a9c40=['What\x20is\x20API\x20Key?','MCP\x20Configuration','Session\x20ID','Univer\x20AI\x20Console','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','MCP\x20Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','18CmhoFi','26672kadhZc','Retrying...','209968BboQoh','Invalid\x20configuration','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','4Rwxzop','2253006XSQzkL','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','Save\x20Configuration','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','241062oWLnik','8571PvpXAg','280etZdNK','2869960VQVVbF','Configuration\x20saved\x20successfully','Connecting...','MCP\x20Unknown\x20Status','MCP:\x20Session\x20ID\x20Occupied','134885hndyOs','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x28c4=function(){return _0x3a9c40;};return _0x28c4();}export{e as default};