@univerjs-pro/mcp-ui 0.12.0-nightly.202511220628 → 0.12.1

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 (49) 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/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +7 -7
@@ -1 +1 @@
1
- 'use strict';const _0x2a57e7=_0x535a;function _0x535a(_0x114d74,_0x58cb13){const _0x2ab842=_0x2ab8();return _0x535a=function(_0x535a37,_0x596652){_0x535a37=_0x535a37-0x1ef;let _0x10e419=_0x2ab842[_0x535a37];return _0x10e419;},_0x535a(_0x114d74,_0x58cb13);}(function(_0x251b7c,_0x1ca211){const _0x47bd8c=_0x535a,_0x34db4e=_0x251b7c();while(!![]){try{const _0x9fbc1=-parseInt(_0x47bd8c(0x1f7))/0x1*(-parseInt(_0x47bd8c(0x202))/0x2)+-parseInt(_0x47bd8c(0x1f9))/0x3+parseInt(_0x47bd8c(0x216))/0x4+parseInt(_0x47bd8c(0x204))/0x5+-parseInt(_0x47bd8c(0x217))/0x6*(-parseInt(_0x47bd8c(0x1f3))/0x7)+-parseInt(_0x47bd8c(0x203))/0x8*(parseInt(_0x47bd8c(0x205))/0x9)+-parseInt(_0x47bd8c(0x20d))/0xa*(parseInt(_0x47bd8c(0x215))/0xb);if(_0x9fbc1===_0x1ca211)break;else _0x34db4e['push'](_0x34db4e['shift']());}catch(_0x1e4d21){_0x34db4e['push'](_0x34db4e['shift']());}}}(_0x2ab8,0x375f2));function _0x2ab8(){const _0x234802=['Click\x20to\x20connect\x20MCP','1409254GsBdlT','Univer\x20AI\x20Console','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','100067TDnQIb','Enable\x20authentication\x20for\x20secure\x20connections','601059IbAZiD','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Max\x20Retries','Save\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2tlxbow','888EbtHdG','225240tUzAgu','21843KJuwpL','Retrying...','Configuration\x20Steps:','Saving...','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','50BAYJdR','MCP\x20Retrying...','MCP:\x20Network\x20Error','Disconnected','exports','Enable\x20Authentication','MCP\x20Connected','Connected','171567yJziTA','1712400SIuiqM','6PHuRlc','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20saved\x20successfully'];_0x2ab8=function(){return _0x234802;};return _0x2ab8();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x2a57e7(0x213),'failed':_0x2a57e7(0x20c),'retrying':_0x2a57e7(0x20e),'unknown':_0x2a57e7(0x21a),'unauthorized':_0x2a57e7(0x20b),'sessionOccupied':_0x2a57e7(0x1fd),'networkError':_0x2a57e7(0x20f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2a57e7(0x1f2),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2a57e7(0x20a),'apiKey':_0x2a57e7(0x21c),'apiKeyPlaceholder':_0x2a57e7(0x209),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2a57e7(0x212),'enableAuthHint':_0x2a57e7(0x1f8),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2a57e7(0x21b),'configInstructions':_0x2a57e7(0x1f6),'configStepTitle':_0x2a57e7(0x207),'configStep1':_0x2a57e7(0x21d),'configStep2':_0x2a57e7(0x218),'configStep3':_0x2a57e7(0x1ef),'sessionId':'Session\x20ID','sessionIdDescription':_0x2a57e7(0x1fa),'authorizationDescription':_0x2a57e7(0x1f5),'configParameters':_0x2a57e7(0x1fe),'maxRetries':_0x2a57e7(0x1fb),'save':_0x2a57e7(0x1fc),'saving':_0x2a57e7(0x208),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2a57e7(0x1f1),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2a57e7(0x219),'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':_0x2a57e7(0x1f4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2a57e7(0x200),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2a57e7(0x21e),'invalidApiKey':_0x2a57e7(0x1ff)},'connectionStatus':{'disconnected':_0x2a57e7(0x210),'connecting':'Connecting...','connected':_0x2a57e7(0x214),'failed':'Connection\x20Failed','retrying':_0x2a57e7(0x206)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2a57e7(0x1f0),'maxRetriesExceeded':_0x2a57e7(0x201)}}},n=e;module[_0x2a57e7(0x211)]=n;
1
+ 'use strict';const _0xc9d59c=_0x3683;(function(_0x1752fa,_0x5068d5){const _0x5b6df2=_0x3683,_0x19a5d2=_0x1752fa();while(!![]){try{const _0x3eac43=-parseInt(_0x5b6df2(0xc6))/0x1+-parseInt(_0x5b6df2(0xb5))/0x2*(-parseInt(_0x5b6df2(0xb7))/0x3)+-parseInt(_0x5b6df2(0xca))/0x4+-parseInt(_0x5b6df2(0xd4))/0x5+-parseInt(_0x5b6df2(0xc0))/0x6*(parseInt(_0x5b6df2(0xd3))/0x7)+parseInt(_0x5b6df2(0xac))/0x8*(parseInt(_0x5b6df2(0xbd))/0x9)+-parseInt(_0x5b6df2(0xc5))/0xa*(-parseInt(_0x5b6df2(0xdb))/0xb);if(_0x3eac43===_0x5068d5)break;else _0x19a5d2['push'](_0x19a5d2['shift']());}catch(_0x1e366a){_0x19a5d2['push'](_0x19a5d2['shift']());}}}(_0x27f4,0x6db8d));function _0x3683(_0x2c0982,_0x32c31c){const _0x27f4f6=_0x27f4();return _0x3683=function(_0x368324,_0x7eff39){_0x368324=_0x368324-0xab;let _0x5b2ef4=_0x27f4f6[_0x368324];return _0x5b2ef4;},_0x3683(_0x2c0982,_0x32c31c);}function _0x27f4(){const _0x42605b=['520245UeGIZl','Univer\x20AI\x20Console','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','What\x20is\x20API\x20Key?','53009EvFoBz','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\x20Connected','Connected','69152PoWcWP','Connecting...','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2BokXVX','MCP\x20Unknown\x20Status','1895067WzdJlj','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20authentication\x20for\x20secure\x20connections','Max\x20Retries','MCP\x20Retrying...','774UNaxRj','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3856902noJKqT','Session\x20ID','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','API\x20Key','1060fUSRIX','48694qgcoke','Saving...','Disconnected','Failed\x20to\x20save\x20configuration','2563624AtBljJ','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','exports','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','7vHtMGW'];_0x27f4=function(){return _0x42605b;};return _0x27f4();}const e={'mcpStatus':{'disconnected':_0xc9d59c(0xcd),'connecting':_0xc9d59c(0xae),'connected':_0xc9d59c(0xdd),'failed':_0xc9d59c(0xbe),'retrying':_0xc9d59c(0xbc),'unknown':_0xc9d59c(0xb6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xc9d59c(0xc2),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xc9d59c(0xb9),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xc9d59c(0xce)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xc9d59c(0xd0),'apiKey':_0xc9d59c(0xc4),'apiKeyPlaceholder':_0xc9d59c(0xaf),'apiKeyHint':_0xc9d59c(0xcc),'enableAuth':_0xc9d59c(0xb3),'enableAuthHint':_0xc9d59c(0xba),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xc9d59c(0xb4),'configStepTitle':_0xc9d59c(0xcb),'configStep1':_0xc9d59c(0xb2),'configStep2':_0xc9d59c(0xd8),'configStep3':_0xc9d59c(0xb1),'sessionId':_0xc9d59c(0xc1),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xc9d59c(0xd7),'configParameters':_0xc9d59c(0xc3),'maxRetries':_0xc9d59c(0xbb),'save':_0xc9d59c(0xd6),'saving':_0xc9d59c(0xc7),'note1':_0xc9d59c(0xd2),'note2':_0xc9d59c(0xbf),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xc9d59c(0xc9),'apiApplyInfo':{'title':_0xc9d59c(0xda),'description':_0xc9d59c(0xdc),'univerAiLabel':_0xc9d59c(0xd5),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xc9d59c(0xc8),'connecting':_0xc9d59c(0xad),'connected':_0xc9d59c(0xab),'failed':_0xc9d59c(0xd9),'retrying':_0xc9d59c(0xb8)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xc9d59c(0xcf),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xc9d59c(0xb0)}}},n=e;module[_0xc9d59c(0xd1)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x29a053=_0x282a;function _0x396c(){const _0x28bfdb=['2462705mnrXFD','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','API\x20Key','Configuration\x20saved\x20successfully','2mKBmGi','47453msNulc','7065135CSQsGf','660FtaXTh','Invalid\x20configuration','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','Retrying...','1304vUyluQ','MCP\x20Connection\x20Failed','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','6rcAHuh','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1037525jfnaZj','MCP\x20Connected','Enable\x20Authentication','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','119676AJYXKq','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','Save\x20Configuration','933120rZdiiQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','10tDYPgb','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Univer\x20AI\x20Console','438060vryqnJ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','Connected','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x396c=function(){return _0x28bfdb;};return _0x396c();}(function(_0xc1a90c,_0x487ae6){const _0x43d4de=_0x282a,_0x2242aa=_0xc1a90c();while(!![]){try{const _0x443df2=parseInt(_0x43d4de(0x1b9))/0x1*(-parseInt(_0x43d4de(0x1a9))/0x2)+parseInt(_0x43d4de(0x19d))/0x3+-parseInt(_0x43d4de(0x196))/0x4+parseInt(_0x43d4de(0x1a3))/0x5*(parseInt(_0x43d4de(0x1b6))/0x6)+-parseInt(_0x43d4de(0x1aa))/0x7*(-parseInt(_0x43d4de(0x1b1))/0x8)+parseInt(_0x43d4de(0x1ab))/0x9*(parseInt(_0x43d4de(0x19a))/0xa)+-parseInt(_0x43d4de(0x1ac))/0xb*(parseInt(_0x43d4de(0x191))/0xc);if(_0x443df2===_0x487ae6)break;else _0x2242aa['push'](_0x2242aa['shift']());}catch(_0x523bf2){_0x2242aa['push'](_0x2242aa['shift']());}}}(_0x396c,0xa0fa8));function _0x282a(_0x33523c,_0x1fb544){const _0x396c32=_0x396c();return _0x282a=function(_0x282a03,_0x1c989d){_0x282a03=_0x282a03-0x18b;let _0x3ceefc=_0x396c32[_0x282a03];return _0x3ceefc;},_0x282a(_0x33523c,_0x1fb544);}const e={'mcpStatus':{'disconnected':_0x29a053(0x19f),'connecting':'MCP\x20Connecting...','connected':_0x29a053(0x1ba),'failed':_0x29a053(0x1b2),'retrying':'MCP\x20Retrying...','unknown':_0x29a053(0x1a6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x29a053(0x192),'maxRetriesExceeded':_0x29a053(0x1a1),'clickToConnect':_0x29a053(0x198),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x29a053(0x1ae),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x29a053(0x1a7),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x29a053(0x1b4),'enableAuth':_0x29a053(0x1bb),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x29a053(0x19e),'configStepTitle':_0x29a053(0x1b3),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x29a053(0x18d),'configStep3':_0x29a053(0x19b),'sessionId':'Session\x20ID','sessionIdDescription':_0x29a053(0x18e),'authorizationDescription':_0x29a053(0x199),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x29a053(0x195),'saving':_0x29a053(0x1b5),'note1':_0x29a053(0x1a2),'note2':_0x29a053(0x193),'configSaved':_0x29a053(0x1a8),'configError':_0x29a053(0x1af),'apiApplyInfo':{'title':_0x29a053(0x1bc),'description':_0x29a053(0x1b7),'univerAiLabel':_0x29a053(0x19c),'getStarted':_0x29a053(0x1a5)},'validation':{'apiKeyRequired':_0x29a053(0x18b),'apiKeyTooShort':_0x29a053(0x1b8),'invalidConfig':_0x29a053(0x1ad),'invalidApiKey':_0x29a053(0x197)},'connectionStatus':{'disconnected':_0x29a053(0x18c),'connecting':'Connecting...','connected':_0x29a053(0x1a0),'failed':_0x29a053(0x194),'retrying':_0x29a053(0x1b0)},'connectionError':{'unauthorized':_0x29a053(0x1a4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x29a053(0x190),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x29a053(0x18f)]=n;
1
+ 'use strict';function _0x1873(){const _0x40e393=['Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','5749000ToNwLu','MCP\x20Connecting...','Connecting...','4029AVXDDN','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','156975VTYyQD','629370uvLglh','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','524JhoQWq','Session-id\x20is\x20currently\x20occupied,\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.','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','8KqLKJI','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','Save\x20Configuration','Invalid\x20configuration','MCP\x20Unknown\x20Status','Connection\x20Failed','2463507RfLYub','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','exports','12zkNntd','Saving...','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Session\x20ID','936715oehrFP','MCP\x20Client\x20Configuration','2591449qbrdSR','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x1873=function(){return _0x40e393;};return _0x1873();}function _0x2455(_0x58c719,_0x70dab9){const _0x1873a3=_0x1873();return _0x2455=function(_0x24559b,_0x2ea7b1){_0x24559b=_0x24559b-0x9d;let _0x5622a0=_0x1873a3[_0x24559b];return _0x5622a0;},_0x2455(_0x58c719,_0x70dab9);}const _0x262852=_0x2455;(function(_0x2aeb76,_0x1a3b02){const _0x4b6df9=_0x2455,_0x1269cb=_0x2aeb76();while(!![]){try{const _0xc96d27=-parseInt(_0x4b6df9(0xcb))/0x1+parseInt(_0x4b6df9(0xcc))/0x2+-parseInt(_0x4b6df9(0xc8))/0x3*(-parseInt(_0x4b6df9(0xa0))/0x4)+-parseInt(_0x4b6df9(0xbe))/0x5*(-parseInt(_0x4b6df9(0xb8))/0x6)+parseInt(_0x4b6df9(0xc0))/0x7+parseInt(_0x4b6df9(0xa5))/0x8*(-parseInt(_0x4b6df9(0xb0))/0x9)+-parseInt(_0x4b6df9(0xc5))/0xa;if(_0xc96d27===_0x1a3b02)break;else _0x1269cb['push'](_0x1269cb['shift']());}catch(_0x3b82ea){_0x1269cb['push'](_0x1269cb['shift']());}}}(_0x1873,0x38219));const e={'mcpStatus':{'disconnected':_0x262852(0xab),'connecting':_0x262852(0xc6),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x262852(0xae),'unauthorized':_0x262852(0xa6),'sessionOccupied':_0x262852(0xc4),'networkError':_0x262852(0xb4),'maxRetriesExceeded':_0x262852(0xa3),'clickToConnect':_0x262852(0xb5),'clickToConfigure':_0x262852(0xc9)},'mcpConfig':{'title':_0x262852(0xb6),'description':_0x262852(0xca),'apiKey':_0x262852(0x9d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x262852(0xb2),'enableAuth':_0x262852(0xbc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x262852(0xbf),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x262852(0xce),'configStepTitle':_0x262852(0xcd),'configStep1':_0x262852(0xb1),'configStep2':_0x262852(0xa4),'configStep3':_0x262852(0xc1),'sessionId':_0x262852(0xbd),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x262852(0xaa),'configParameters':_0x262852(0xba),'maxRetries':_0x262852(0xc3),'save':_0x262852(0xac),'saving':_0x262852(0xb9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x262852(0xbb),'apiApplyInfo':{'title':_0x262852(0xb3),'description':_0x262852(0xa2),'univerAiLabel':_0x262852(0xa8),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x262852(0x9f),'invalidConfig':_0x262852(0xad),'invalidApiKey':_0x262852(0x9e)},'connectionStatus':{'disconnected':_0x262852(0xa9),'connecting':_0x262852(0xc7),'connected':'Connected','failed':_0x262852(0xaf),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x262852(0xa7),'sessionOccupied':_0x262852(0xa1),'networkError':_0x262852(0xc2),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x262852(0xb7)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x8a6a02=_0x39ab;(function(_0x15e55c,_0x2686ae){const _0x52cac5=_0x39ab,_0x4e2515=_0x15e55c();while(!![]){try{const _0x1f4028=-parseInt(_0x52cac5(0xe6))/0x1*(-parseInt(_0x52cac5(0xe9))/0x2)+parseInt(_0x52cac5(0x100))/0x3*(parseInt(_0x52cac5(0x102))/0x4)+parseInt(_0x52cac5(0xfe))/0x5*(-parseInt(_0x52cac5(0xe5))/0x6)+-parseInt(_0x52cac5(0xe2))/0x7*(parseInt(_0x52cac5(0xf2))/0x8)+-parseInt(_0x52cac5(0xec))/0x9+-parseInt(_0x52cac5(0xf0))/0xa*(-parseInt(_0x52cac5(0x109))/0xb)+-parseInt(_0x52cac5(0x101))/0xc;if(_0x1f4028===_0x2686ae)break;else _0x4e2515['push'](_0x4e2515['shift']());}catch(_0x2e0bdd){_0x4e2515['push'](_0x4e2515['shift']());}}}(_0x50dd,0xc3f71));function _0x39ab(_0x63e0d6,_0x183404){const _0x50dd9f=_0x50dd();return _0x39ab=function(_0x39abc7,_0x1bafba){_0x39abc7=_0x39abc7-0xda;let _0x54f40c=_0x50dd9f[_0x39abc7];return _0x54f40c;},_0x39ab(_0x63e0d6,_0x183404);}function _0x50dd(){const _0x934302=['3511563kVpQfX','API\x20key\x20is\x20required','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','MCP\x20Client\x20Configuration','Save\x20Configuration','Connection\x20Failed','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','343phWqIg','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1588338QzIdOz','893541LxwRCe','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','2zEhKBF','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','7201521JPuvXi','MCP\x20Connecting...','Disconnected','Univer\x20AI\x20Console','10RLiLOo','MCP\x20Configuration','77432VFwBYb','Failed\x20to\x20save\x20configuration','exports','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','API\x20Key','MCP\x20Retrying...','5PKBBFw','API\x20key\x20with\x20Bearer\x20prefix.','17106yUsYmR','4515192uyfepL','1056BNSbbk','Click\x20to\x20connect\x20MCP','Connected','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key'];_0x50dd=function(){return _0x934302;};return _0x50dd();}const e={'mcpStatus':{'disconnected':_0x8a6a02(0xf8),'connecting':_0x8a6a02(0xed),'connected':_0x8a6a02(0x105),'failed':'MCP\x20Connection\x20Failed','retrying':_0x8a6a02(0xfd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x8a6a02(0xe8),'sessionOccupied':_0x8a6a02(0xe7),'networkError':_0x8a6a02(0xeb),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x8a6a02(0x103),'clickToConfigure':_0x8a6a02(0xf6)},'mcpConfig':{'title':_0x8a6a02(0xf1),'description':_0x8a6a02(0xde),'apiKey':_0x8a6a02(0xfc),'apiKeyPlaceholder':_0x8a6a02(0x108),'apiKeyHint':_0x8a6a02(0xe0),'enableAuth':_0x8a6a02(0x10b),'enableAuthHint':_0x8a6a02(0xe3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x8a6a02(0x10f),'configInstructions':_0x8a6a02(0xea),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x8a6a02(0x106),'configStep2':_0x8a6a02(0xf7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x8a6a02(0xfb),'sessionIdDescription':_0x8a6a02(0xf5),'authorizationDescription':_0x8a6a02(0xff),'configParameters':_0x8a6a02(0xdc),'maxRetries':_0x8a6a02(0x10e),'save':_0x8a6a02(0xda),'saving':'Saving...','note1':_0x8a6a02(0xe4),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x8a6a02(0xdf),'configError':_0x8a6a02(0xf3),'apiApplyInfo':{'title':_0x8a6a02(0xf9),'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':_0x8a6a02(0xef),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x8a6a02(0x10a),'apiKeyTooShort':_0x8a6a02(0xdd),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x8a6a02(0x10d)},'connectionStatus':{'disconnected':_0x8a6a02(0xee),'connecting':'Connecting...','connected':_0x8a6a02(0x104),'failed':_0x8a6a02(0xdb),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x8a6a02(0x10c),'sessionOccupied':_0x8a6a02(0xfa),'networkError':_0x8a6a02(0x107),'maxRetriesExceeded':_0x8a6a02(0xe1)}}},n=e;module[_0x8a6a02(0xf4)]=n;
1
+ 'use strict';const _0x2439f2=_0x17ea;function _0x2fd0(){const _0x44678e=['4142DYYLYE','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1023NYYsTF','64412wQzEBw','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','5380134MMgouR','Session\x20ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3568138XRbwEz','Save\x20Configuration','Saving...','Disconnected','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','3819432pviNuy','MCP:\x20Network\x20Error','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','9coCmwU','MCP\x20Connected','Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Retrying...','Enter\x20your\x20API\x20key','215wVZRis','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','290624ArJVVJ','Configuration\x20saved\x20successfully','6514780XDuYXI','exports','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','MCP\x20Client\x20Configuration','Connected'];_0x2fd0=function(){return _0x44678e;};return _0x2fd0();}function _0x17ea(_0x550493,_0x25fa6d){const _0x2fd0e5=_0x2fd0();return _0x17ea=function(_0x17ea1b,_0xfac37a){_0x17ea1b=_0x17ea1b-0xe7;let _0x3cf65a=_0x2fd0e5[_0x17ea1b];return _0x3cf65a;},_0x17ea(_0x550493,_0x25fa6d);}(function(_0x533d0b,_0x264059){const _0x4c16ad=_0x17ea,_0x2aab9b=_0x533d0b();while(!![]){try{const _0x335632=-parseInt(_0x4c16ad(0x11c))/0x1+-parseInt(_0x4c16ad(0xef))/0x2*(-parseInt(_0x4c16ad(0xf5))/0x3)+-parseInt(_0x4c16ad(0xf6))/0x4*(parseInt(_0x4c16ad(0x119))/0x5)+-parseInt(_0x4c16ad(0xf9))/0x6+parseInt(_0x4c16ad(0x101))/0x7+parseInt(_0x4c16ad(0x109))/0x8*(parseInt(_0x4c16ad(0x10f))/0x9)+parseInt(_0x4c16ad(0xe8))/0xa;if(_0x335632===_0x264059)break;else _0x2aab9b['push'](_0x2aab9b['shift']());}catch(_0x2ac3f4){_0x2aab9b['push'](_0x2aab9b['shift']());}}}(_0x2fd0,0x718d6));const e={'mcpStatus':{'disconnected':_0x2439f2(0x11a),'connecting':_0x2439f2(0x10d),'connected':_0x2439f2(0x110),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2439f2(0x107),'unknown':_0x2439f2(0xfe),'unauthorized':_0x2439f2(0xf3),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2439f2(0x10a),'maxRetriesExceeded':_0x2439f2(0xf8),'clickToConnect':_0x2439f2(0x116),'clickToConfigure':_0x2439f2(0xff)},'mcpConfig':{'title':_0x2439f2(0x113),'description':_0x2439f2(0xf7),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2439f2(0x118),'apiKeyHint':_0x2439f2(0xfb),'enableAuth':_0x2439f2(0x114),'enableAuthHint':_0x2439f2(0x10e),'connectionInfo':_0x2439f2(0xed),'mcpClientConfig':_0x2439f2(0xed),'configInstructions':_0x2439f2(0xfd),'configStepTitle':_0x2439f2(0xec),'configStep1':_0x2439f2(0x10c),'configStep2':_0x2439f2(0x100),'configStep3':_0x2439f2(0x112),'sessionId':_0x2439f2(0xfa),'sessionIdDescription':_0x2439f2(0x10b),'authorizationDescription':_0x2439f2(0x115),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x2439f2(0x102),'saving':_0x2439f2(0x103),'note1':_0x2439f2(0x108),'note2':_0x2439f2(0x106),'configSaved':_0x2439f2(0xe7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2439f2(0xfc),'description':_0x2439f2(0xf1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2439f2(0x11b)},'validation':{'apiKeyRequired':_0x2439f2(0xf0),'apiKeyTooShort':_0x2439f2(0xea),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2439f2(0xf2)},'connectionStatus':{'disconnected':_0x2439f2(0x104),'connecting':_0x2439f2(0x105),'connected':_0x2439f2(0xee),'failed':_0x2439f2(0x111),'retrying':_0x2439f2(0x117)},'connectionError':{'unauthorized':_0x2439f2(0xf4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2439f2(0xeb),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2439f2(0xe9)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0x37c9(){const _0x10df26=['MCP\x20状态未知','最大重试次数','6881368hFsCey','161lKFHjL','配置更改将立即生效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','启用身份验证','连接中...','会话\x20ID\x20已被占用,请稍后再试','复制以下\x20JSON\x20配置','3200949xHHzHC','153234NwefIw','会话ID','3099826TKLTND','点击连接\x20MCP','MCP\x20客户端配置','重连中...','您的\x20API\x20密钥安全存储在本地存储中','API\x20密钥不能为空','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20已连接','保存配置','保存中...','Univer\x20AI\x20控制台','点击配置\x20MCP','启用身份验证以获得安全连接','MCP\x20已断开','MCP\x20连接中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','未连接','连接失败','API\x20密钥无效,请检查密钥是否正确','exports','MCP:\x20超出最大重试次数','2629380wBWzxQ','已连接','配置无效','622347BOlYZc','配置保存成功','API\x20密钥长度至少需要\x2010\x20位','网络连接错误,请检查您的网络连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','5674670QQwPjc'];_0x37c9=function(){return _0x10df26;};return _0x37c9();}function _0x3aed(_0x10df22,_0x2e72d3){const _0x37c97=_0x37c9();return _0x3aed=function(_0x3aed94,_0xd2f261){_0x3aed94=_0x3aed94-0x1cb;let _0x400104=_0x37c97[_0x3aed94];return _0x400104;},_0x3aed(_0x10df22,_0x2e72d3);}const _0x24c882=_0x3aed;(function(_0x2ad7c4,_0x292ae6){const _0x277285=_0x3aed,_0x1e2481=_0x2ad7c4();while(!![]){try{const _0x1435ac=-parseInt(_0x277285(0x1f4))/0x1+-parseInt(_0x277285(0x1dc))/0x2+parseInt(_0x277285(0x1d9))/0x3+-parseInt(_0x277285(0x1f1))/0x4+parseInt(_0x277285(0x1ce))/0x5+parseInt(_0x277285(0x1da))/0x6*(parseInt(_0x277285(0x1d2))/0x7)+parseInt(_0x277285(0x1d1))/0x8;if(_0x1435ac===_0x292ae6)break;else _0x1e2481['push'](_0x1e2481['shift']());}catch(_0x47b84e){_0x1e2481['push'](_0x1e2481['shift']());}}}(_0x37c9,0xc82a8));const e={'mcpStatus':{'disconnected':_0x24c882(0x1e9),'connecting':_0x24c882(0x1ea),'connected':_0x24c882(0x1e3),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x24c882(0x1cf),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x24c882(0x1f0),'clickToConnect':_0x24c882(0x1dd),'clickToConfigure':_0x24c882(0x1e7)},'mcpConfig':{'title':'MCP\x20配置','description':_0x24c882(0x1d4),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x24c882(0x1e2),'enableAuth':_0x24c882(0x1d5),'enableAuthHint':_0x24c882(0x1e8),'connectionInfo':_0x24c882(0x1de),'mcpClientConfig':_0x24c882(0x1de),'configInstructions':_0x24c882(0x1cd),'configStepTitle':'配置步骤:','configStep1':_0x24c882(0x1d8),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x24c882(0x1db),'sessionIdDescription':_0x24c882(0x1eb),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x24c882(0x1d0),'save':_0x24c882(0x1e4),'saving':_0x24c882(0x1e5),'note1':_0x24c882(0x1d3),'note2':_0x24c882(0x1e0),'configSaved':_0x24c882(0x1f5),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x24c882(0x1e6),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x24c882(0x1e1),'apiKeyTooShort':_0x24c882(0x1cb),'invalidConfig':_0x24c882(0x1f3),'invalidApiKey':_0x24c882(0x1ee)},'connectionStatus':{'disconnected':_0x24c882(0x1ec),'connecting':_0x24c882(0x1d6),'connected':_0x24c882(0x1f2),'failed':_0x24c882(0x1ed),'retrying':_0x24c882(0x1df)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x24c882(0x1d7),'networkError':_0x24c882(0x1cc),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x24c882(0x1ef)]=e;
1
+ 'use strict';const _0x1e0c6a=_0x36d8;function _0x4f8d(){const _0x1c072a=['MCP\x20状态未知','1305266fgymYr','网络连接错误,请检查您的网络连接','11Tovpsn','启用身份验证','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥无效,请检查密钥是否正确','exports','433376ITJqSF','13137300zTZYjl','连接失败','配置更改将立即生效','9448050jqjmpS','配置步骤:','连接中...','超出最大重试次数,请稍后再试','920757qZmELn','重连中...','点击连接\x20MCP','MCP:\x20超出最大重试次数','API\x20密钥不能为空','什么是\x20API\x20密钥?','请输入您的\x20API\x20密钥','点击配置\x20MCP','MCP\x20已断开','17062180ssaPXt','MCP\x20已连接','API\x20密钥长度至少需要\x2010\x20位','Univer\x20AI\x20控制台','您的\x20API\x20密钥安全存储在本地存储中','未连接','4IaWPsA','复制以下\x20JSON\x20配置','MCP:\x20会话\x20ID\x20已被占用','将配置添加到您的\x20MCP\x20客户端设置文件中','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置无效','已连接','MCP\x20客户端配置','保存配置','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20未授权','API\x20密钥','配置参数:','启用身份验证以获得安全连接','配置保存失败','182fJNWQE','3126335UWMRck','1LZdyVK'];_0x4f8d=function(){return _0x1c072a;};return _0x4f8d();}(function(_0x4cff30,_0x109189){const _0x246c8c=_0x36d8,_0x243255=_0x4cff30();while(!![]){try{const _0x553326=-parseInt(_0x246c8c(0x20e))/0x1*(-parseInt(_0x246c8c(0x210))/0x2)+-parseInt(_0x246c8c(0x1ee))/0x3+parseInt(_0x246c8c(0x1fd))/0x4*(parseInt(_0x246c8c(0x20d))/0x5)+parseInt(_0x246c8c(0x1ea))/0x6+-parseInt(_0x246c8c(0x20c))/0x7*(-parseInt(_0x246c8c(0x1e6))/0x8)+-parseInt(_0x246c8c(0x1e7))/0x9+-parseInt(_0x246c8c(0x1f7))/0xa*(parseInt(_0x246c8c(0x212))/0xb);if(_0x553326===_0x109189)break;else _0x243255['push'](_0x243255['shift']());}catch(_0x25f9cc){_0x243255['push'](_0x243255['shift']());}}}(_0x4f8d,0xc06f2));function _0x36d8(_0x391d4d,_0x110805){const _0x4f8dc5=_0x4f8d();return _0x36d8=function(_0x36d808,_0x271bfa){_0x36d808=_0x36d808-0x1e5;let _0x3b06c6=_0x4f8dc5[_0x36d808];return _0x3b06c6;},_0x36d8(_0x391d4d,_0x110805);}const e={'mcpStatus':{'disconnected':_0x1e0c6a(0x1f6),'connecting':'MCP\x20连接中...','connected':_0x1e0c6a(0x1f8),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x1e0c6a(0x20f),'unauthorized':_0x1e0c6a(0x207),'sessionOccupied':_0x1e0c6a(0x1ff),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x1e0c6a(0x1f1),'clickToConnect':_0x1e0c6a(0x1f0),'clickToConfigure':_0x1e0c6a(0x1f5)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1e0c6a(0x208),'apiKeyPlaceholder':_0x1e0c6a(0x1f4),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1e0c6a(0x213),'enableAuthHint':_0x1e0c6a(0x20a),'connectionInfo':_0x1e0c6a(0x204),'mcpClientConfig':_0x1e0c6a(0x204),'configInstructions':_0x1e0c6a(0x206),'configStepTitle':_0x1e0c6a(0x1eb),'configStep1':_0x1e0c6a(0x1fe),'configStep2':_0x1e0c6a(0x200),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x1e0c6a(0x214),'authorizationDescription':_0x1e0c6a(0x201),'configParameters':_0x1e0c6a(0x209),'maxRetries':'最大重试次数','save':_0x1e0c6a(0x205),'saving':'保存中...','note1':_0x1e0c6a(0x1e9),'note2':_0x1e0c6a(0x1fb),'configSaved':'配置保存成功','configError':_0x1e0c6a(0x20b),'apiApplyInfo':{'title':_0x1e0c6a(0x1f3),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x1e0c6a(0x1fa),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x1e0c6a(0x1f2),'apiKeyTooShort':_0x1e0c6a(0x1f9),'invalidConfig':_0x1e0c6a(0x202),'invalidApiKey':_0x1e0c6a(0x215)},'connectionStatus':{'disconnected':_0x1e0c6a(0x1fc),'connecting':_0x1e0c6a(0x1ec),'connected':_0x1e0c6a(0x203),'failed':_0x1e0c6a(0x1e8),'retrying':_0x1e0c6a(0x1ef)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x1e0c6a(0x211),'maxRetriesExceeded':_0x1e0c6a(0x1ed)}}};module[_0x1e0c6a(0x1e5)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x20c39b=_0x4d87;(function(_0x292ebf,_0x392f46){const _0x52f86f=_0x4d87,_0x4cd557=_0x292ebf();while(!![]){try{const _0x139854=-parseInt(_0x52f86f(0x89))/0x1*(parseInt(_0x52f86f(0x90))/0x2)+-parseInt(_0x52f86f(0xab))/0x3+-parseInt(_0x52f86f(0xa8))/0x4*(parseInt(_0x52f86f(0x84))/0x5)+-parseInt(_0x52f86f(0x7f))/0x6+parseInt(_0x52f86f(0xb0))/0x7*(-parseInt(_0x52f86f(0x93))/0x8)+parseInt(_0x52f86f(0x80))/0x9+-parseInt(_0x52f86f(0x8d))/0xa*(-parseInt(_0x52f86f(0x8f))/0xb);if(_0x139854===_0x392f46)break;else _0x4cd557['push'](_0x4cd557['shift']());}catch(_0x5ca110){_0x4cd557['push'](_0x4cd557['shift']());}}}(_0x4673,0xd6460));function _0x4d87(_0x567850,_0x70395a){const _0x467397=_0x4673();return _0x4d87=function(_0x4d87d8,_0x4cc285){_0x4d87d8=_0x4d87d8-0x7f;let _0xef2cd4=_0x467397[_0x4d87d8];return _0xef2cd4;},_0x4d87(_0x567850,_0x70395a);}const e={'mcpStatus':{'disconnected':_0x20c39b(0x81),'connecting':_0x20c39b(0x91),'connected':_0x20c39b(0x9a),'failed':_0x20c39b(0x94),'retrying':_0x20c39b(0x8a),'unknown':_0x20c39b(0xa3),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x20c39b(0x88),'networkError':_0x20c39b(0x9c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x20c39b(0xb2),'clickToConfigure':_0x20c39b(0xae)},'mcpConfig':{'title':_0x20c39b(0x97),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x20c39b(0xa4),'apiKeyPlaceholder':_0x20c39b(0xa6),'apiKeyHint':_0x20c39b(0x9f),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x20c39b(0x82),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x20c39b(0xa9),'configInstructions':_0x20c39b(0xa5),'configStepTitle':_0x20c39b(0xa1),'configStep1':_0x20c39b(0x87),'configStep2':_0x20c39b(0xb1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x20c39b(0x85),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x20c39b(0x9b),'save':_0x20c39b(0x8e),'saving':_0x20c39b(0x83),'note1':_0x20c39b(0xad),'note2':_0x20c39b(0xa2),'configSaved':_0x20c39b(0x9e),'configError':_0x20c39b(0x86),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x20c39b(0xac),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x20c39b(0x8b)},'validation':{'apiKeyRequired':_0x20c39b(0xa7),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x20c39b(0x9d)},'connectionStatus':{'disconnected':_0x20c39b(0x95),'connecting':_0x20c39b(0x92),'connected':_0x20c39b(0xa0),'failed':_0x20c39b(0x99),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x20c39b(0x8c),'sessionOccupied':_0x20c39b(0x98),'networkError':_0x20c39b(0xaf),'maxRetriesExceeded':_0x20c39b(0x96)}}},n=e;module[_0x20c39b(0xaa)]=n;function _0x4673(){const _0xce8af4=['Connecting...','24EhZrzH','MCP\x20Connection\x20Failed','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Connected','Max\x20Retries','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','15944Aipeip','MCP\x20Client\x20Configuration','exports','4117263qlpheu','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','969073DZnMtd','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','8161560jVjcNT','1296108ZrprOR','MCP\x20Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','2200HBNZwO','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','1bAphdx','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','13210xfmFBK','Save\x20Configuration','47971figzNx','250782raMKGy','MCP\x20Connecting...'];_0x4673=function(){return _0xce8af4;};return _0x4673();}
1
+ 'use strict';const _0x315ed4=_0x2b40;function _0x570a(){const _0x3fbeed=['Save\x20Configuration','Disconnected','3691457GfaeSS','Invalid\x20configuration','MCP\x20Unknown\x20Status','Connecting...','129872HhUHAX','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','172465Xirlhl','5124250PbZLLU','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','MCP\x20Disconnected','MCP\x20Retrying...','MCP\x20Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5714672ADovBY','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','313524HAOijI','Retrying...','exports','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','MCP\x20Connection\x20Failed','Saving...','27JeTpYv','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','36rqaIxm','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','3UjDXbt','752824Lkpibx','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required','Univer\x20AI\x20Console','What\x20is\x20API\x20Key?'];_0x570a=function(){return _0x3fbeed;};return _0x570a();}(function(_0x31ba56,_0x2accdb){const _0x6338e0=_0x2b40,_0x389be9=_0x31ba56();while(!![]){try{const _0x1b44eb=parseInt(_0x6338e0(0x1f3))/0x1+-parseInt(_0x6338e0(0x20f))/0x2+parseInt(_0x6338e0(0x1f2))/0x3*(parseInt(_0x6338e0(0x209))/0x4)+parseInt(_0x6338e0(0x201))/0x5*(-parseInt(_0x6338e0(0x1ec))/0x6)+-parseInt(_0x6338e0(0x1fa))/0x7+parseInt(_0x6338e0(0x1fe))/0x8*(parseInt(_0x6338e0(0x216))/0x9)+-parseInt(_0x6338e0(0x202))/0xa;if(_0x1b44eb===_0x2accdb)break;else _0x389be9['push'](_0x389be9['shift']());}catch(_0x2b1cad){_0x389be9['push'](_0x389be9['shift']());}}}(_0x570a,0xc9d4a));const e={'mcpStatus':{'disconnected':_0x315ed4(0x205),'connecting':_0x315ed4(0x1ea),'connected':_0x315ed4(0x207),'failed':_0x315ed4(0x214),'retrying':_0x315ed4(0x206),'unknown':_0x315ed4(0x1fc),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x315ed4(0x20d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x315ed4(0x212),'clickToConfigure':_0x315ed4(0x1ee)},'mcpConfig':{'title':_0x315ed4(0x1ef),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x315ed4(0x1e9),'apiKeyPlaceholder':_0x315ed4(0x20a),'apiKeyHint':_0x315ed4(0x208),'enableAuth':_0x315ed4(0x213),'enableAuthHint':_0x315ed4(0x1f4),'connectionInfo':_0x315ed4(0x1ed),'mcpClientConfig':_0x315ed4(0x1ed),'configInstructions':_0x315ed4(0x1f1),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x315ed4(0x1e5),'configStep2':_0x315ed4(0x203),'configStep3':_0x315ed4(0x1eb),'sessionId':'Session\x20ID','sessionIdDescription':_0x315ed4(0x200),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x315ed4(0x20b),'maxRetries':_0x315ed4(0x20e),'save':_0x315ed4(0x1f8),'saving':_0x315ed4(0x215),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x315ed4(0x20c),'apiApplyInfo':{'title':_0x315ed4(0x1f7),'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':_0x315ed4(0x1f6),'getStarted':_0x315ed4(0x1e6)},'validation':{'apiKeyRequired':_0x315ed4(0x1f5),'apiKeyTooShort':_0x315ed4(0x1ff),'invalidConfig':_0x315ed4(0x1fb),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x315ed4(0x1f9),'connecting':_0x315ed4(0x1fd),'connected':_0x315ed4(0x204),'failed':'Connection\x20Failed','retrying':_0x315ed4(0x210)},'connectionError':{'unauthorized':_0x315ed4(0x1e7),'sessionOccupied':_0x315ed4(0x1e8),'networkError':_0x315ed4(0x1f0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x2b40(_0x53a0ad,_0x40b114){const _0x570af8=_0x570a();return _0x2b40=function(_0x2b4012,_0x13f79d){_0x2b4012=_0x2b4012-0x1e5;let _0x5e1b0c=_0x570af8[_0x2b4012];return _0x5e1b0c;},_0x2b40(_0x53a0ad,_0x40b114);}module[_0x315ed4(0x211)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x185858=_0x2ad0;(function(_0x348ef0,_0x4bdd75){const _0x2567a1=_0x2ad0,_0x4d9bd7=_0x348ef0();while(!![]){try{const _0x413026=-parseInt(_0x2567a1(0x13f))/0x1+-parseInt(_0x2567a1(0x1fb))/0x2+parseInt(_0x2567a1(0xc8))/0x3+-parseInt(_0x2567a1(0xd6))/0x4+-parseInt(_0x2567a1(0x114))/0x5+-parseInt(_0x2567a1(0x1c8))/0x6+parseInt(_0x2567a1(0xff))/0x7;if(_0x413026===_0x4bdd75)break;else _0x4d9bd7['push'](_0x4d9bd7['shift']());}catch(_0x66e081){_0x4d9bd7['push'](_0x4d9bd7['shift']());}}}(_0x3165,0x38dc9));var Pe=Object['defineProperty'],Ee=(_0x2b8025,_0x9b9e17,_0x2e4d3f)=>_0x9b9e17 in _0x2b8025?Pe(_0x2b8025,_0x9b9e17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e4d3f}):_0x2b8025[_0x9b9e17]=_0x2e4d3f,x=(_0x324b68,_0x55411e,_0x3d6500)=>Ee(_0x324b68,typeof _0x55411e!=_0x185858(0x1e9)?_0x55411e+'':_0x55411e,_0x3d6500);import{LocaleService as _0x3adc8f,Inject as _0x534c82,Injector as _0x51f408,IConfigService as _0x104bf3,ILocalStorageService as _0x2f485a,ILogService as _0xac133,Disposable as _0x39e815,CommandType as _0x69150e,ICommandService as _0x224f8f,DependentOn as _0x3618d1,Plugin as _0x437dd1,merge as _0x42fbc1}from'@univerjs/core';import{jsxs as _0x2e009c,jsx as _0x4bbc12}from'react/jsx-runtime';import{MCPConnectionStatus as _0x1f416e,MCPConnectionError as _0x51d6c8,MCPConnectionController as _0x5cd7f0,MCP_PLUGIN_CONFIG_KEY as _0x1c9196,UniverMCPPlugin as _0x5d63da}from'@univerjs-pro/mcp';import{clsx as _0x2c22d6,Input as _0x377569,Button as _0x1817f8,MessageType as _0xd6604b,Tooltip as _0x4b32f7}from'@univerjs/design';import{useDependency as _0x132f20,useObservable as _0x308e3b,IUIPartsService as _0x4b626e,IDialogService as _0x540666,IMessageService as _0x2f4f68,ComponentManager as _0x316afe,connectInjector as _0x465a94,BuiltInUIPart as _0x13e1cf,MenuItemType as _0x8eedfc,RibbonStartGroup as _0x9c1d8c,IMenuManagerService as _0x525c06}from'@univerjs/ui';import{BehaviorSubject as _0x335250}from'rxjs';import{useRef as _0x104c98,createElement as _0x3366a6,forwardRef as _0x3bc71f,useState as _0x11557f,useCallback as _0x2a4939}from'react';import{ISocketService as _0x5dd0c8,WebSocketService as _0xfb58f2}from'@univerjs/network';function b({ref:_0x56609a,..._0x29285b}){const _0x2a179d=_0x185858,{icon:_0x40dc1,id:_0x46f84c,className:_0x3a05bd,extend:_0x172637,..._0x4e6f01}=_0x29285b,_0x1efdb8=(_0x2a179d(0x118)+_0x46f84c+'\x20'+(_0x3a05bd||''))[_0x2a179d(0x12c)](),_0x37bbe6=_0x104c98('_'+We());return ae(_0x40dc1,''+_0x46f84c,{'defIds':_0x40dc1['defIds'],'idSuffix':_0x37bbe6['current']},{'ref':_0x56609a,'className':_0x1efdb8,..._0x4e6f01},_0x172637);}function ae(_0x5d37e5,_0x37e9f8,_0x36e4ad,_0x550c94,_0x3633b7){const _0x28d374=_0x185858;return _0x3366a6(_0x5d37e5[_0x28d374(0x16c)],{'key':_0x37e9f8,...Ye(_0x5d37e5,_0x36e4ad,_0x3633b7),..._0x550c94},(Ze(_0x5d37e5,_0x36e4ad)[_0x28d374(0xf8)]||[])[_0x28d374(0x1a6)]((_0x2fb99f,_0x2193f8)=>ae(_0x2fb99f,_0x37e9f8+'-'+_0x5d37e5[_0x28d374(0x16c)]+'-'+_0x2193f8,_0x36e4ad,void 0x0,_0x3633b7)));}function Ye(_0x404aec,_0xb0a3d,_0x10de64){const _0x5aaa2d=_0x185858,_0x4c52e4={..._0x404aec[_0x5aaa2d(0xbf)]};_0x10de64!=null&&_0x10de64[_0x5aaa2d(0x1ec)]&&_0x4c52e4['fill']===_0x5aaa2d(0x1ec)&&(_0x4c52e4[_0x5aaa2d(0x1f0)]=_0x10de64[_0x5aaa2d(0x1ec)]),_0x404aec['tag']==='mask'&&_0x4c52e4['id']&&(_0x4c52e4['id']=_0x4c52e4['id']+_0xb0a3d[_0x5aaa2d(0x146)]),Object['entries'](_0x4c52e4)[_0x5aaa2d(0x18b)](([_0x424d88,_0x43f5ca])=>{const _0x1e74bb=_0x5aaa2d;_0x424d88===_0x1e74bb(0x112)&&typeof _0x43f5ca==_0x1e74bb(0x16a)&&(_0x4c52e4[_0x424d88]=_0x43f5ca[_0x1e74bb(0x199)](/url\(#(.*)\)/,_0x1e74bb(0x10f)+_0xb0a3d['idSuffix']+')'));});const {defIds:_0x435422}=_0xb0a3d;return!_0x435422||_0x435422['length']===0x0||(_0x404aec['tag']===_0x5aaa2d(0xed)&&_0x4c52e4['xlink:href']&&(_0x4c52e4[_0x5aaa2d(0x1f5)]=_0x4c52e4['xlink:href']+_0xb0a3d['idSuffix']),Object[_0x5aaa2d(0x165)](_0x4c52e4)[_0x5aaa2d(0x18b)](([_0x26cd12,_0x340958])=>{const _0x1cc622=_0x5aaa2d;typeof _0x340958==_0x1cc622(0x16a)&&(_0x4c52e4[_0x26cd12]=_0x340958[_0x1cc622(0x199)](/url\(#(.*)\)/,'url(#$1'+_0xb0a3d['idSuffix']+')'));})),_0x4c52e4;}function Ze(_0x30dc66,_0x5e9e83){const _0x3f9b6e=_0x185858;var _0x929cd4;const {defIds:_0x46e456}=_0x5e9e83;return!_0x46e456||_0x46e456['length']===0x0?_0x30dc66:_0x30dc66[_0x3f9b6e(0x16c)]===_0x3f9b6e(0x113)&&((_0x929cd4=_0x30dc66[_0x3f9b6e(0xf8)])!=null&&_0x929cd4[_0x3f9b6e(0x13e)])?{..._0x30dc66,'children':_0x30dc66[_0x3f9b6e(0xf8)][_0x3f9b6e(0x1a6)](_0x4d372d=>typeof _0x4d372d[_0x3f9b6e(0xbf)]['id']==_0x3f9b6e(0x16a)&&_0x46e456&&_0x46e456['includes'](_0x4d372d['attrs']['id'])?{..._0x4d372d,'attrs':{..._0x4d372d[_0x3f9b6e(0xbf)],'id':_0x4d372d[_0x3f9b6e(0xbf)]['id']+_0x5e9e83[_0x3f9b6e(0x146)]}}:_0x4d372d)}:_0x30dc66;}function We(){const _0x9a4eb7=_0x185858;return Math[_0x9a4eb7(0xcb)]()[_0x9a4eb7(0x16e)](0x24)[_0x9a4eb7(0x17c)](0x2,0x8);}b[_0x185858(0x197)]=_0x185858(0xc0);const qe={'tag':_0x185858(0x1ea),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x185858(0x15d),'viewBox':_0x185858(0x1d9),'width':_0x185858(0x198),'height':_0x185858(0x198)},'children':[{'tag':'path','attrs':{'fill':_0x185858(0x1a2),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x185858(0x182)}}]},le=_0x3bc71f(function(_0x5a6a19,_0xdcdd5c){const _0x49b510=_0x185858;return _0x3366a6(b,Object[_0x49b510(0xdc)]({},_0x5a6a19,{'id':_0x49b510(0x163),'ref':_0xdcdd5c,'icon':qe}));});le[_0x185858(0x197)]='CheckMarkIcon';const Xe={'tag':_0x185858(0x1ea),'attrs':{'xmlns':_0x185858(0x129),'fill':_0x185858(0x15d),'viewBox':_0x185858(0x1d9),'width':_0x185858(0x198),'height':_0x185858(0x198)},'children':[{'tag':_0x185858(0x148),'attrs':{'fill':_0x185858(0x1a2),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x3bc71f(function(_0x45b8b6,_0x3d50b1){const _0x37cf79=_0x185858;return _0x3366a6(b,Object[_0x37cf79(0xdc)]({},_0x45b8b6,{'id':_0x37cf79(0xc4),'ref':_0x3d50b1,'icon':Xe}));});ue['displayName']='CloseIcon';const Je={'tag':_0x185858(0x1ea),'attrs':{'xmlns':_0x185858(0x129),'fill':_0x185858(0x15d),'viewBox':_0x185858(0x1d9),'width':_0x185858(0x198),'height':_0x185858(0x198)},'children':[{'tag':_0x185858(0x148),'attrs':{'fill':_0x185858(0x1a2),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x185858(0x148),'attrs':{'fill':_0x185858(0x1a2),'d':'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'}},{'tag':'path','attrs':{'fill':_0x185858(0x1a2),'d':_0x185858(0x151),'fillRule':_0x185858(0x182),'clipRule':_0x185858(0x182)}}]},ve=_0x3bc71f(function(_0x5ceeb8,_0x468c9d){const _0x482c76=_0x185858;return _0x3366a6(b,Object['assign']({},_0x5ceeb8,{'id':_0x482c76(0xe9),'ref':_0x468c9d,'icon':Je}));});ve[_0x185858(0x197)]=_0x185858(0x1de);const Qe={'tag':_0x185858(0x1ea),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x185858(0x15d),'viewBox':_0x185858(0x1d9),'width':_0x185858(0x198),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x185858(0xe1)},'children':[{'tag':_0x185858(0x148),'attrs':{'stroke':_0x185858(0x1a2),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x185858(0x102),'strokeLinejoin':_0x185858(0x102),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x185858(0x181),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x185858(0x148),'attrs':{'fill':_0x185858(0x153),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x185858(0x1b4)]},de=_0x3bc71f(function(_0x34a1b7,_0x21496e){const _0x29b423=_0x185858;return _0x3366a6(b,Object[_0x29b423(0xdc)]({},_0x34a1b7,{'id':'off-line-icon','ref':_0x21496e,'icon':Qe}));});de['displayName']=_0x185858(0x152);const en={'tag':_0x185858(0x1ea),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x185858(0x15d),'viewBox':_0x185858(0x1a3),'width':'1em','height':_0x185858(0x198)},'children':[{'tag':'g','attrs':{'clipPath':_0x185858(0x1b3)},'children':[{'tag':_0x185858(0x148),'attrs':{'stroke':_0x185858(0x1a2),'d':_0x185858(0x1e2),'strokeLinecap':_0x185858(0x102),'strokeLinejoin':_0x185858(0x102),'strokeWidth':1.2}}]},{'tag':_0x185858(0x113),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x185858(0xf9)},'children':[{'tag':_0x185858(0x148),'attrs':{'fill':_0x185858(0x153),'d':_0x185858(0xb6),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x3bc71f(function(_0x5c1964,_0x286a5c){return _0x3366a6(b,Object['assign']({},_0x5c1964,{'id':'on-line-icon','ref':_0x286a5c,'icon':en}));});ge['displayName']=_0x185858(0xef);function nn(_0x2f1968){const _0x5f586c=_0x185858;var _0x23ba35,_0x20c134;const {mcpCoreConfig:_0x2f872d,onSave:_0x4a6ce1,loading:_0x5ca317=!0x1,config:_0x3eb12c,connectionStatus$:_0x3e1b00,connectionError$:_0x4cc6e3,currentApiKey$:_0x3d09e8,currentSessionId$:_0x41ccdf}=_0x2f1968,_0x3317fa=_0x132f20(_0x3adc8f),_0x4c2d03=_0x308e3b(_0x3e1b00,_0x1f416e['DISCONNECTED']),_0x2e3691=_0x308e3b(_0x4cc6e3,_0x51d6c8[_0x5f586c(0x126)]),_0x556102=_0x308e3b(_0x41ccdf,''),_0xcaad39=_0x308e3b(_0x3d09e8,''),[_0x1b7d5b,_0x32df69]=_0x11557f(_0xcaad39||''),_0x56ad7e=!0x0,_0x335045=_0x3eb12c['showDeveloperTools']&&_0x2f872d[_0x5f586c(0xda)]&&(_0x2f872d[_0x5f586c(0xda)][_0x5f586c(0x171)](_0x5f586c(0x167))||_0x2f872d[_0x5f586c(0xda)][_0x5f586c(0x171)](_0x5f586c(0x10b))),_0x1d9204=(_0x23ba35=_0x2f872d[_0x5f586c(0xda)])==null?void 0x0:_0x23ba35['includes'](_0x5f586c(0x167)),_0x9b2479=(_0x20c134=_0x2f872d[_0x5f586c(0xda)])==null?void 0x0:_0x20c134[_0x5f586c(0x171)]('univer.ai'),_0x4582a7=_0x1d9204?_0x5f586c(0x156):_0x5f586c(0xc3),_0x5d5d62=_0x3eb12c[_0x5f586c(0xb2)]&&(_0x1d9204||_0x9b2479),[_0x27216e,_0x202bf3]=_0x11557f(!_0x1b7d5b[_0x5f586c(0x12c)]()),_0x2a417c=(_0x5451da,_0x2ffd5a)=>{const _0x3689a3=_0x5f586c;if(_0x2ffd5a===_0x51d6c8[_0x3689a3(0xba)])return _0x3689a3(0x1c3);switch(_0x5451da){case _0x1f416e['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1f416e[_0x3689a3(0x117)]:case _0x1f416e[_0x3689a3(0x135)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x1f416e[_0x3689a3(0x136)]:return _0x3689a3(0x1c3);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x38eac2=(_0x5c15ae,_0x157cca)=>{const _0x2381bb=_0x5f586c;if(_0x157cca===_0x51d6c8['UNAUTHORIZED'])return _0x2381bb(0x15c);switch(_0x5c15ae){case _0x1f416e[_0x2381bb(0x12e)]:return'univer-bg-green-500';case _0x1f416e[_0x2381bb(0x117)]:case _0x1f416e[_0x2381bb(0x135)]:return _0x2381bb(0x193);case _0x1f416e[_0x2381bb(0x136)]:return _0x2381bb(0x15c);default:return _0x2381bb(0x127);}},_0x5dec72=_0x4d7628=>{const _0x236c47=_0x5f586c;switch(_0x4d7628){case _0x1f416e['CONNECTED']:return _0x3317fa['t']('mcpConfig.connectionStatus.connected');case _0x1f416e[_0x236c47(0x117)]:return _0x3317fa['t'](_0x236c47(0x1ae));case _0x1f416e[_0x236c47(0x136)]:return _0x3317fa['t']('mcpConfig.connectionStatus.failed');case _0x1f416e[_0x236c47(0x135)]:return _0x3317fa['t'](_0x236c47(0x1d7));default:return _0x3317fa['t'](_0x236c47(0x103));}},_0x2e90a0=_0x1d4182=>{const _0x8a0741=_0x5f586c;switch(_0x1d4182){case _0x51d6c8[_0x8a0741(0xba)]:return _0x3317fa['t'](_0x8a0741(0x19a));case _0x51d6c8[_0x8a0741(0x12d)]:return _0x3317fa['t'](_0x8a0741(0x1d4));case _0x51d6c8['NETWORK_ERROR']:return _0x3317fa['t'](_0x8a0741(0xf3));case _0x51d6c8[_0x8a0741(0x1b5)]:return _0x3317fa['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x5e7d69=_0x2a4939(()=>{const _0x302c23=_0x5f586c,_0xd6b93={..._0x2f872d,'apiKey':_0x1b7d5b[_0x302c23(0x12c)](),'enableAuth':_0x56ad7e};_0x4a6ce1(_0xd6b93);},[_0x2f872d,_0x1b7d5b,_0x56ad7e,_0x4a6ce1]),_0x1fad37=_0x1b7d5b[_0x5f586c(0x12c)]()['length']>0x0;return _0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0xc1),'children':[_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0x15f),'children':_0x2e009c(_0x5f586c(0xb8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x4bbc12('div',{'className':_0x5f586c(0x14a),'children':_0x4bbc12('span',{'className':'univer-text-white','children':'⚙'})}),_0x4bbc12(_0x5f586c(0xb8),{'children':_0x4bbc12('p',{'className':_0x5f586c(0x1b0),'children':_0x3317fa['t'](_0x5f586c(0x134))})})]})}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x173),'children':[_0x4bbc12('div',{'className':_0x2c22d6(_0x5f586c(0x105),_0x2a417c(_0x4c2d03,_0x2e3691)),'children':_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0xd2),'children':[_0x4bbc12(_0x5f586c(0xb8),{'className':_0x2c22d6(_0x5f586c(0xe0),_0x38eac2(_0x4c2d03,_0x2e3691))}),_0x4bbc12(_0x5f586c(0x1ed),{'className':_0x5f586c(0x13b),'children':_0x5dec72(_0x4c2d03)})]})}),_0x2e3691!==_0x51d6c8[_0x5f586c(0x126)]&&(_0x4c2d03===_0x1f416e['FAILED']||_0x2e3691===_0x51d6c8[_0x5f586c(0xba)])&&_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0x14c),'children':_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0xee),'children':[_0x4bbc12(_0x5f586c(0x1ed),{'className':_0x5f586c(0xb5),'children':'⚠️'}),_0x4bbc12('p',{'className':_0x5f586c(0x11a),'children':_0x2e90a0(_0x2e3691)})]})})]}),_0x4bbc12('div',{'className':_0x5f586c(0x12b),'children':_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x143),'children':[_0x2e009c(_0x5f586c(0xb8),{'className':'univer-space-y-2','children':[_0x2e009c(_0x5f586c(0x194),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x4bbc12(_0x5f586c(0x1ed),{'children':'🔑'}),'\x20',_0x3317fa['t'](_0x5f586c(0x1a5)),_0x4bbc12(_0x5f586c(0x1ed),{'className':_0x5f586c(0x119),'children':'*'}),_0x335045&&_0x4bbc12('a',{'className':_0x5f586c(0x150),'title':_0x3317fa['t'](_0x5f586c(0x1f1)),'role':_0x5f586c(0x131),'onClick':()=>_0x202bf3(!0x0),'children':_0x4bbc12(ve,{})})]}),_0x4bbc12(_0x377569,{'type':_0x5f586c(0x10c),'placeholder':_0x3317fa['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x1b7d5b,'disabled':_0x5ca317,'autoComplete':'off','onChange':_0x32df69}),_0x4bbc12('p',{'className':_0x5f586c(0x191),'children':_0x3317fa['t'](_0x5f586c(0x121))})]}),_0x335045&&_0x27216e&&_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x170),'children':[_0x4bbc12('a',{'className':'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','role':_0x5f586c(0x131),'onClick':()=>_0x202bf3(!0x1),'children':_0x4bbc12(ue,{'className':_0x5f586c(0x196)})}),_0x2e009c('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x4bbc12('div',{'className':_0x5f586c(0x144),'children':_0x4bbc12(_0x5f586c(0x1ed),{'className':_0x5f586c(0x18c),'children':'🚀'})}),_0x2e009c(_0x5f586c(0xb8),{'className':'univer-flex-1','children':[_0x4bbc12('h4',{'className':_0x5f586c(0x1d2),'children':_0x3317fa['t'](_0x5f586c(0x1f1))}),_0x4bbc12('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3317fa['t'](_0x5f586c(0xdb))}),_0x4bbc12('div',{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5d5d62&&_0x2e009c('a',{'className':_0x5f586c(0x11c),'href':_0x4582a7,'target':_0x5f586c(0xfb),'rel':_0x5f586c(0xf6),'children':[_0x4bbc12(_0x5f586c(0x1ed),{'children':'🤖'}),_0x3317fa['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x4bbc12(_0x5f586c(0x1ed),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x14e),'children':['✨','\x20',_0x3317fa['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3eb12c[_0x5f586c(0xb2)]&&_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x1b8),'children':[_0x2e009c('h4',{'className':_0x5f586c(0x159),'children':[_0x4bbc12('span',{'children':'🔗'}),'\x20',_0x3317fa['t'](_0x5f586c(0xc9))]}),_0x2e009c('div',{'className':_0x5f586c(0x1b9),'children':[_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x195),'children':[_0x4bbc12('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x3317fa['t'](_0x5f586c(0x147))}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x192),'children':[_0x4bbc12(_0x5f586c(0xb8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3317fa['t'](_0x5f586c(0x1e1))}),_0x2e009c('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0xd2),'children':[_0x4bbc12('span',{'className':_0x5f586c(0x1ac),'children':'1'}),_0x3317fa['t'](_0x5f586c(0x1cd))]}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0xd2),'children':[_0x4bbc12('span',{'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'}),_0x3317fa['t'](_0x5f586c(0x1bd))]}),_0x2e009c('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4bbc12('span',{'className':_0x5f586c(0x1ac),'children':'3'}),_0x3317fa['t']('mcpConfig.configStep3')]})]})]})]}),_0x2e009c('div',{'className':_0x5f586c(0x192),'children':[_0x4bbc12(_0x5f586c(0xb8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0xd3),'children':_0x4bbc12(_0x5f586c(0xd0),{'className':_0x5f586c(0x141),'children':JSON[_0x5f586c(0x166)]({'mcpServers':{'univer':{'url':_0x5f586c(0x1b2)+(_0x556102||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x5f586c(0xfd)+(_0x1b7d5b||_0x5f586c(0x1e3))}}}},null,0x2)})})]}),_0x2e009c(_0x5f586c(0xb8),{'className':'univer-space-y-3','children':[_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0x1cf),'children':_0x3317fa['t']('mcpConfig.configParameters')}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x192),'children':[_0x2e009c(_0x5f586c(0xb8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x4bbc12('div',{'className':_0x5f586c(0x1c6)}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x12a),'children':[_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0xc6),'children':_0x5f586c(0x1bf)}),_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0x191),'children':_0x3317fa['t'](_0x5f586c(0x145))})]})]}),_0x2e009c(_0x5f586c(0xb8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x4bbc12('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x12a),'children':[_0x4bbc12(_0x5f586c(0xb8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0x191),'children':_0x3317fa['t'](_0x5f586c(0x10a))})]})]})]})]})]})]}),_0x4bbc12(_0x1817f8,{'onClick':_0x5e7d69,'disabled':!_0x1fad37||_0x5ca317,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x5ca317?_0x2e009c(_0x5f586c(0x1ed),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4bbc12(_0x5f586c(0x1ed),{'children':'⟲'}),_0x3317fa['t'](_0x5f586c(0x155))]}):_0x2e009c(_0x5f586c(0x1ed),{'className':_0x5f586c(0xd2),'children':[_0x4bbc12(le,{}),_0x3317fa['t']('mcpConfig.save')]})}),_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0x1f4),'children':_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0xca),'children':[_0x4bbc12(_0x5f586c(0x1ed),{'className':_0x5f586c(0x180),'children':'💡'}),_0x2e009c(_0x5f586c(0xb8),{'className':_0x5f586c(0x1fc),'children':[_0x4bbc12(_0x5f586c(0xb8),{'className':_0x5f586c(0xf5),'children':_0x5f586c(0x185)}),_0x2e009c(_0x5f586c(0xb8),{'children':['•',_0x3317fa['t'](_0x5f586c(0x1af))]}),_0x2e009c(_0x5f586c(0xb8),{'children':['•',_0x3317fa['t'](_0x5f586c(0x140))]})]})]})})]})})]});}const y=_0x185858(0x1d1),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x185858(0xd4)],tn=(_0x5334da,_0x4f6640,_0x23d5d2,_0x1993b4)=>{for(var _0x24e8f2=_0x1993b4>0x1?void 0x0:_0x1993b4?rn(_0x4f6640,_0x23d5d2):_0x4f6640,_0x4dc73d=_0x5334da['length']-0x1,_0x1944e5;_0x4dc73d>=0x0;_0x4dc73d--)(_0x1944e5=_0x5334da[_0x4dc73d])&&(_0x24e8f2=_0x1944e5(_0x24e8f2)||_0x24e8f2);return _0x24e8f2;},d=(_0x319cd4,_0x1ee0d2)=>(_0x392a99,_0x346c57)=>_0x1ee0d2(_0x392a99,_0x346c57,_0x319cd4);function _0x2ad0(_0x5b3285,_0x24ab86){const _0x316531=_0x3165();return _0x2ad0=function(_0x2ad093,_0x541236){_0x2ad093=_0x2ad093-0xaf;let _0x43d1ca=_0x316531[_0x2ad093];return _0x43d1ca;},_0x2ad0(_0x5b3285,_0x24ab86);}const U=_0x185858(0x132),L=_0x185858(0xd9);let I=class extends _0x39e815{constructor(_0x4092a2,_0x1f0649,_0x2538d4,_0x1df51b,_0x56eb99,_0x59dfa4,_0x21b729,_0x40fb61,_0x260228,_0x6b6aaf){const _0x412f3a=_0x185858;super(),x(this,'_loading$',new _0x335250(!0x1)),x(this,'_mcpCoreConfig$',new _0x335250({})),x(this,'_config$',new _0x335250({})),x(this,'_apiKey$',new _0x335250('')),x(this,_0x412f3a(0xd1),async _0xdb27c2=>{const _0x49dde5=_0x412f3a;var _0x3ff2db,_0x1522ef;this[_0x49dde5(0x108)][_0x49dde5(0xe3)](!0x0);try{const _0x3645c5=await this[_0x49dde5(0x1dd)](_0xdb27c2);if(!_0x3645c5['isValid']){this[_0x49dde5(0x106)][_0x49dde5(0x189)]({'type':_0xd6604b[_0x49dde5(0x177)],'content':_0x3645c5[_0x49dde5(0x1d8)]||this[_0x49dde5(0x124)]['t'](_0x49dde5(0xcf))});return;}_0xdb27c2[_0x49dde5(0x175)]?await this[_0x49dde5(0x174)][_0x49dde5(0x1f6)](U,_0xdb27c2[_0x49dde5(0x175)][_0x49dde5(0x12c)]()):await this['_localStorageService'][_0x49dde5(0x1c5)](U),this['_apiKey$'][_0x49dde5(0xe3)](((_0x3ff2db=_0xdb27c2[_0x49dde5(0x175)])==null?void 0x0:_0x3ff2db[_0x49dde5(0x12c)]())||''),this[_0x49dde5(0x142)][_0x49dde5(0x1d0)]({'Authorization':_0x49dde5(0xfd)+((_0x1522ef=_0xdb27c2[_0x49dde5(0x175)])==null?void 0x0:_0x1522ef[_0x49dde5(0x12c)]())}),this[_0x49dde5(0x106)][_0x49dde5(0x189)]({'type':_0xd6604b[_0x49dde5(0x1e7)],'content':this[_0x49dde5(0x124)]['t'](_0x49dde5(0x1e4))}),setTimeout(()=>{const _0x40efa7=_0x49dde5;this[_0x40efa7(0xea)][_0x40efa7(0x1ba)](L);},0x320);}catch(_0xde9f5b){this[_0x49dde5(0x18d)][_0x49dde5(0x138)](_0x49dde5(0x1a7),_0xde9f5b),this[_0x49dde5(0x106)]['show']({'type':_0xd6604b['Error'],'content':this['_localeService']['t']('mcpConfig.configError')});}finally{this[_0x49dde5(0x108)][_0x49dde5(0xe3)](!0x1);}}),(this[_0x412f3a(0x125)]=_0x4092a2,this[_0x412f3a(0xd5)]=_0x1f0649,this[_0x412f3a(0x178)]=_0x2538d4,this[_0x412f3a(0x174)]=_0x1df51b,this[_0x412f3a(0xea)]=_0x56eb99,this[_0x412f3a(0x106)]=_0x59dfa4,this[_0x412f3a(0xbe)]=_0x21b729,this[_0x412f3a(0x124)]=_0x40fb61,this[_0x412f3a(0x18d)]=_0x260228,this[_0x412f3a(0x142)]=_0x6b6aaf,this[_0x412f3a(0xeb)](),this[_0x412f3a(0x19b)](),this[_0x412f3a(0xc5)]());}['showConfigPanel'](){const _0x5b914b=_0x185858,_0x46ef69=this[_0x5b914b(0x178)]['getConfig'](y);_0x46ef69!=null&&_0x46ef69[_0x5b914b(0xb2)]&&this[_0x5b914b(0xea)][_0x5b914b(0x1a4)]({'id':L,'title':{'title':this['_localeService']['t'](_0x5b914b(0x128))},'children':{'label':_0x5b914b(0x17e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x48bf59=_0x5b914b;this[_0x48bf59(0xea)]['close'](L);}});}[_0x185858(0xf2)](){const _0x56f0a1=_0x185858;return this[_0x56f0a1(0xbd)][_0x56f0a1(0x104)];}[_0x185858(0xc5)](){const _0x3d4dff=_0x185858;this[_0x3d4dff(0xcc)](this[_0x3d4dff(0xbe)][_0x3d4dff(0x1ce)](_0x3d4dff(0x17e),this[_0x3d4dff(0xbb)]()));}[_0x185858(0xbb)](){const _0x599590=_0x185858;return _0x465a94(()=>{const _0x32d6f2=_0x2ad0;var _0x2e2380,_0xf35ed0,_0x3b2ec7;return _0x4bbc12(nn,{'config':this[_0x32d6f2(0x160)][_0x32d6f2(0x104)],'mcpCoreConfig':this[_0x32d6f2(0xbd)][_0x32d6f2(0x104)],'currentApiKey$':this[_0x32d6f2(0x17f)],'onSave':this[_0x32d6f2(0xd1)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x2e2380=this[_0x32d6f2(0x142)])==null?void 0x0:_0x2e2380[_0x32d6f2(0x1df)],'connectionError$':(_0xf35ed0=this[_0x32d6f2(0x142)])==null?void 0x0:_0xf35ed0[_0x32d6f2(0x11d)],'currentSessionId$':(_0x3b2ec7=this[_0x32d6f2(0x142)])==null?void 0x0:_0x3b2ec7[_0x32d6f2(0x16b)]});},this[_0x599590(0x125)]);}[_0x185858(0xeb)](){const _0x50aaf8=_0x185858;this[_0x50aaf8(0xcc)](this[_0x50aaf8(0x178)][_0x50aaf8(0xdf)](_0x1c9196)[_0x50aaf8(0x1da)](_0x42c30=>{const _0x33e312=_0x50aaf8;this[_0x33e312(0xbd)][_0x33e312(0xe3)](_0x42c30||{});}));const _0x4cc078=this[_0x50aaf8(0x178)][_0x50aaf8(0x1fa)](_0x1c9196);this['_mcpCoreConfig$']['next'](_0x4cc078||{}),this['disposeWithMe'](this[_0x50aaf8(0x178)][_0x50aaf8(0xdf)](y)[_0x50aaf8(0x1da)](_0x21ba34=>{const _0x39b407=_0x50aaf8;this[_0x39b407(0x160)][_0x39b407(0xe3)](_0x21ba34||{});}));const _0x5db585=this[_0x50aaf8(0x178)][_0x50aaf8(0x1fa)](y);this[_0x50aaf8(0x160)][_0x50aaf8(0xe3)](_0x5db585||{});}async[_0x185858(0x19b)](){const _0x2cf4ed=_0x185858,_0x424826=this[_0x2cf4ed(0x178)][_0x2cf4ed(0x1fa)](y);if(!(_0x424826!=null&&_0x424826[_0x2cf4ed(0xb2)]))return;const _0x28cce5=await this[_0x2cf4ed(0x174)][_0x2cf4ed(0x1f8)](U);_0x28cce5&&(this['_mcpConnectionController'][_0x2cf4ed(0x1d0)]({'Authorization':'Bearer\x20'+_0x28cce5}),this['_apiKey$'][_0x2cf4ed(0xe3)](_0x28cce5));}async['_validateConfig'](_0x109ec3){const _0x3b22d7=_0x185858;if(!_0x109ec3['apiKey']||_0x109ec3[_0x3b22d7(0x175)][_0x3b22d7(0x12c)]()[_0x3b22d7(0x13e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3b22d7(0x124)]['t'](_0x3b22d7(0x1bb))};if(_0x109ec3[_0x3b22d7(0x175)][_0x3b22d7(0x12c)]()[_0x3b22d7(0x13e)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x3b22d7(0x1d5))};try{const _0x23d43c=await this[_0x3b22d7(0x125)][_0x3b22d7(0x123)](_0x5cd7f0)[_0x3b22d7(0x110)](_0x109ec3['apiKey'][_0x3b22d7(0x12c)]());return _0x23d43c['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x23d43c[_0x3b22d7(0x138)]||this[_0x3b22d7(0x124)]['t'](_0x3b22d7(0x111))};}catch(_0x58bb28){return console[_0x3b22d7(0x1e0)](_0x3b22d7(0x169),_0x58bb28),{'isValid':!0x0};}}};I=tn([d(0x0,_0x534c82(_0x51f408)),d(0x1,_0x4b626e),d(0x2,_0x104bf3),d(0x3,_0x2f485a),d(0x4,_0x540666),d(0x5,_0x2f4f68),d(0x6,_0x534c82(_0x316afe)),d(0x7,_0x534c82(_0x3adc8f)),d(0x8,_0xac133),d(0x9,_0x534c82(_0x5cd7f0))],I);const V={'id':_0x185858(0x1b1),'type':_0x69150e[_0x185858(0x18f)],'handler':async(_0x4e22ba,_0x3293b0)=>(_0x4e22ba[_0x185858(0x123)](I)[_0x185858(0x15a)](),!0x0)};function pe(_0x15dbdb,_0x5b1d9f){const _0x1935d3=_0x185858;switch(_0x15dbdb){case _0x1f416e[_0x1935d3(0x19d)]:return _0x1935d3(0x1c4);case _0x1f416e['CONNECTING']:return'mcpStatus.connecting';case _0x1f416e['CONNECTED']:return _0x1935d3(0x1e5);case _0x1f416e['FAILED']:switch(_0x5b1d9f){case _0x51d6c8[_0x1935d3(0xba)]:return _0x1935d3(0x1c2);case _0x51d6c8[_0x1935d3(0x12d)]:return _0x1935d3(0x149);case _0x51d6c8[_0x1935d3(0xc2)]:return _0x1935d3(0x1ab);case _0x51d6c8['MAX_RETRIES_EXCEEDED']:return _0x1935d3(0x1f7);default:return _0x1935d3(0x15e);}case _0x1f416e[_0x1935d3(0x135)]:return _0x1935d3(0x1f3);default:return _0x1935d3(0x15b);}}function on(_0x1ac38e,_0x48aa73,_0x5318af,_0x48b868=!0x0){const _0x52e711=_0x185858,_0x510f77=pe(_0x1ac38e,_0x48aa73),_0x327274=_0x5318af['t'](_0x510f77);return _0x48b868?_0x1ac38e===_0x1f416e['DISCONNECTED']&&_0x48aa73===_0x51d6c8[_0x52e711(0xba)]?_0x327274+'\x20-\x20'+_0x5318af['t']('mcpStatus.clickToConfigure'):_0x1ac38e===_0x1f416e[_0x52e711(0x12e)]?''+_0x327274:_0x1ac38e===_0x1f416e[_0x52e711(0x19d)]||_0x1ac38e===_0x1f416e[_0x52e711(0x136)]?_0x327274+_0x52e711(0xe4)+_0x5318af['t']('mcpStatus.clickToConnect'):_0x327274:_0x327274;}function sn(_0x1355b0){const _0x49aa4d=_0x185858;switch(_0x1355b0){case _0x1f416e[_0x49aa4d(0x12e)]:return _0x49aa4d(0xb7);case _0x1f416e['CONNECTING']:case _0x1f416e[_0x49aa4d(0x135)]:return _0x49aa4d(0x179);case _0x1f416e['FAILED']:case _0x1f416e[_0x49aa4d(0x19d)]:return _0x49aa4d(0x119);default:return _0x49aa4d(0x1f9);}}function cn(_0xf57fbd){const _0x3b8d0b=_0x185858,{status$:_0x13f1f7,error$:_0x1581a0,onConfigure:_0x6f9f3a,showClickable:_0x3a48e8=!0x0}=_0xf57fbd,_0x179fea=_0x308e3b(_0x13f1f7,_0x1f416e[_0x3b8d0b(0x19d)]),_0x27ddca=_0x308e3b(_0x1581a0,_0x51d6c8[_0x3b8d0b(0x126)]),_0x518e39=_0x132f20(_0x3adc8f),_0x3ff827=_0x179fea===_0x1f416e[_0x3b8d0b(0x12e)];_0x179fea===_0x1f416e[_0x3b8d0b(0x117)]||_0x1f416e[_0x3b8d0b(0x135)];const _0x81bfaf=_0x518e39['t'](pe(_0x179fea,_0x27ddca)),_0x3a7ba8=on(_0x179fea,_0x27ddca,_0x518e39,_0x3a48e8),_0x40e179=sn(_0x179fea),_0x12f25f=_0x3ff827?_0x4bbc12(ge,{}):_0x4bbc12(de,{}),_0x1c277e=_0x2a4939(()=>{_0x3a48e8&&_0x6f9f3a&&_0x6f9f3a();},[_0x3a48e8,_0x6f9f3a]);function _0x4d11eb(){const _0xb66fa0=_0x3b8d0b;return _0x2e009c(_0xb66fa0(0xb8),{'className':_0x2c22d6(_0xb66fa0(0xb1),_0x3a48e8&&_0x6f9f3a&&_0xb66fa0(0x1c9)),'role':'button','onClick':_0x3a48e8&&_0x6f9f3a?_0x1c277e:void 0x0,'children':[_0x4bbc12(_0xb66fa0(0xb8),{'className':_0x2c22d6('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x40e179),'children':_0x12f25f}),_0x4bbc12(_0xb66fa0(0xb8),{'className':_0xb66fa0(0x17d),'children':_0x81bfaf})]});}return _0x4bbc12(_0x4b32f7,{'title':_0x3a7ba8,'placement':'bottom','children':_0x4d11eb()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x6acce9,_0xe55a4b,_0x4009b4,_0x12ae51)=>{const _0x45065d=_0x185858;for(var _0x1ba3bf=_0x12ae51>0x1?void 0x0:_0x12ae51?an(_0xe55a4b,_0x4009b4):_0xe55a4b,_0xa6084d=_0x6acce9[_0x45065d(0x13e)]-0x1,_0x34bcc2;_0xa6084d>=0x0;_0xa6084d--)(_0x34bcc2=_0x6acce9[_0xa6084d])&&(_0x1ba3bf=_0x34bcc2(_0x1ba3bf)||_0x1ba3bf);return _0x1ba3bf;},M=(_0x2bd058,_0x5a364d)=>(_0x321117,_0x417907)=>_0x5a364d(_0x321117,_0x417907,_0x2bd058);let O=class extends _0x39e815{constructor(_0x465707,_0x593f7f,_0x2c5f08,_0x308927){const _0x3ed594=_0x185858;super(),this[_0x3ed594(0x125)]=_0x465707,this[_0x3ed594(0xcd)]=_0x593f7f,this[_0x3ed594(0xd5)]=_0x2c5f08,this[_0x3ed594(0x178)]=_0x308927,this[_0x3ed594(0x1f2)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x2131a3=_0x185858,_0x175848=this['_configService'][_0x2131a3(0x1fa)](y);_0x175848!=null&&_0x175848[_0x2131a3(0xb2)]&&(this[_0x2131a3(0xcd)][_0x2131a3(0x13a)]=!0x1);}[_0x185858(0x116)](){const _0x5ebd7c=_0x185858,_0x5902e9=this['_configService']['getConfig'](y);(_0x5902e9==null?void 0x0:_0x5902e9[_0x5ebd7c(0xec)])!==!0x1&&this[_0x5ebd7c(0xcc)](this[_0x5ebd7c(0xd5)][_0x5ebd7c(0xbc)](_0x13e1cf['HEADER_MENU'],()=>{const _0x3ad30e=_0x5ebd7c;var _0x49c4ad;return _0x465a94(un({'status$':this[_0x3ad30e(0xcd)][_0x3ad30e(0x1df)],'error$':this[_0x3ad30e(0xcd)][_0x3ad30e(0x11d)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x49c4ad=_0x5902e9==null?void 0x0:_0x5902e9[_0x3ad30e(0xb2)])!=null?_0x49c4ad:!0x1}),this[_0x3ad30e(0x125)]);}));}[_0x185858(0xb0)](){const _0xa00611=_0x185858;this[_0xa00611(0x125)][_0xa00611(0x123)](I)[_0xa00611(0x15a)]();}};O=ln([M(0x0,_0x534c82(_0x51f408)),M(0x1,_0x534c82(_0x5cd7f0)),M(0x2,_0x4b626e),M(0x3,_0x104bf3)],O);function un(_0x56100b){const {status$:_0x22f41e,error$:_0x371918,onConfigure:_0xe5450f,showClickable:_0x2aaabd}=_0x56100b;return function(){return _0x4bbc12(cn,{'status$':_0x22f41e,'error$':_0x371918,'onConfigure':_0xe5450f,'showClickable':_0x2aaabd});};}function vn(_0x240043){const _0x5306cc=_0x185858;return{'id':V['id'],'type':_0x8eedfc[_0x5306cc(0x115)],'icon':_0x5306cc(0xb3),'title':_0x5306cc(0x128),'tooltip':_0x5306cc(0x128)};}const dn={[_0x9c1d8c['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};function _0x3165(){const _0x917b18=['show','MCP_UI_PLUGIN','forEach','univer-text-blue-600','_logService','has','COMMAND','API\x20密钥','univer-text-xs\x20univer-text-gray-500','univer-space-y-2','univer-bg-blue-500','label','univer-space-y-3','univer-size-4','displayName','1em','replace','mcpConfig.connectionError.unauthorized','_loadStoredApiKey','MCP:\x20未授权','DISCONNECTED','保存配置','连接中...','API\x20Key','超出最大重试次数,请稍后再试','currentColor','0\x200\x2017\x2016','open','mcpConfig.apiKey','map','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20Retrying...','_initializeCommands','API\x20key\x20is\x20required','mcpStatus.networkError','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','What\x20is\x20API\x20Key?','mcpConfig.connectionStatus.connecting','mcpConfig.note1','univer-text-sm\x20univer-text-gray-500','mcp-ui.command.openConfigPanel','https://mcp.univer.ai/mcp/?univer_session_id=','url(#on-line-icon_clip0_910_349)','off-line-icon_clip0_910_343','MAX_RETRIES_EXCEEDED','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-space-y-4','close','mcpConfig.validation.apiKeyRequired','MCP\x20状态未知','mcpConfig.configStep2','Configuration\x20saved\x20successfully','univer_session_id:','配置保存成功','Configuration\x20Parameters:','mcpStatus.unauthorized','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpStatus.disconnected','removeItem','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','registerCommand','2533212HGQVEh','\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','Enter\x20your\x20API\x20key','会话ID','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.configStep1','register','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','__setCustomHeaders','mcp-ui.config','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Failed\x20to\x20save\x20configuration','mcpConfig.connectionError.sessionOccupied','mcpConfig.validation.apiKeyTooShort','Retrying...','mcpConfig.connectionStatus.retrying','errorMessage','0\x200\x2016\x2016','subscribe','setConfig','Configuration\x20Steps:','_validateConfig','HelpIcon','connectionStatus$','warn','mcpConfig.configStepTitle','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','<API_KEY>','mcpConfig.configSaved','mcpStatus.connected','Univer\x20AI\x20Console','Success','会话\x20ID\x20已被占用,请稍后再试','symbol','svg','MCP\x20Client\x20Configuration','colorChannel1','span','Save\x20Configuration','API\x20密钥不能为空','fill','mcpConfig.apiApplyInfo.title','_initAutoConnect','mcpStatus.retrying','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','xlink:href','setItem','mcpStatus.maxRetriesExceeded','getItem','univer-text-gray-500','getConfig','247078cjMZEK','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','将以下配置添加到您的\x20MCP\x20客户端设置中:','defineProperty','最大重试次数','_handleConfigure','univer-flex\x20univer-items-center','showDeveloperTools','MenuIcon','请输入您的\x20API\x20密钥','univer-shrink-0\x20univer-text-red-500','M0\x200H16V16H0z','univer-text-green-500','div','配置步骤:','UNAUTHORIZED','_createConfigPanelComponent','registerComponent','_mcpCoreConfig$','_componentManager','attrs','UniverIcon','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','NETWORK_ERROR','https://console.univer.ai','close-icon','_registerComponent','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_menuManagerService','499464WUcHsR','mcpConfig.connectionInfo','univer-flex\x20univer-gap-3','random','disposeWithMe','_connectionController','_commandService','mcpConfig.validation.invalidConfig','pre','_handleConfigSave','univer-flex\x20univer-items-center\x20univer-gap-2','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','getOwnPropertyDescriptor','_uiPartsService','75404NAYFeL','MCP:\x20会话\x20ID\x20已被占用','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcp-config-dialog','mcpServerUrl','mcpConfig.apiApplyInfo.description','assign','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','subscribeConfigValue$','univer-size-2\x20univer-rounded-full','url(#off-line-icon_clip0_910_343)','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','next','\x20-\x20','MCP:\x20Network\x20Error','Connection\x20Failed','Connecting...','onStarting','help-icon','_dialogService','_initConfigSync','showStatus','use','univer-flex\x20univer-items-start\x20univer-gap-2','OnLineIcon','点击配置\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.','getCurrentConfig','mcpConfig.connectionError.networkError','mergeMenu','univer-font-medium','noopener\x20noreferrer','您的\x20API\x20密钥将在此浏览器中本地存储','children','on-line-icon_clip0_910_349','add','_blank','Session\x20ID','Bearer\x20','将配置添加到您的\x20MCP\x20客户端设置文件中','8319458MhaGCt','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','round','mcpConfig.connectionStatus.disconnected','value','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_messageService','push','_loading$','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.authorizationDescription','univer.ai','text','保存中...','MCP:\x20网络错误','url(#$1','validateApiKey','mcpConfig.validation.invalidApiKey','mask','defs','1766860XyxbdM','BUTTON','_initStatusComponent','CONNECTING','univerjs-icon\x20univerjs-icon-','univer-text-red-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Invalid\x20configuration','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连接失败','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.apiKeyHint','未连接','get','_localeService','_injector','NONE','univer-bg-gray-500','mcpConfig.title','http://www.w3.org/2000/svg','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','trim','SESSION_ID_OCCUPIED','CONNECTED','MCP\x20Connecting...','几秒钟内获取您的\x20API\x20密钥','button','mcp.apiKey','配置无效','mcpConfig.description','RETRYING','FAILED','带有\x20Bearer\x20前缀的\x20API\x20密钥。','error','Univer\x20AI\x20控制台','enableAutoConnect','univer-text-sm\x20univer-font-medium','权限验证失败,请检查您的\x20API\x20密钥','复制以下\x20JSON\x20配置','length','204113dEvSmZ','mcpConfig.note2','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_mcpConnectionController','univer-space-y-5','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.sessionIdDescription','idSuffix','mcpConfig.configInstructions','path','mcpStatus.sessionOccupied','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','启用身份验证以获得安全连接','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Get\x20your\x20API\x20key\x20in\x20seconds','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Click\x20to\x20connect\x20MCP','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','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','OffLineIcon','white','pluginName','mcpConfig.saving','https://console.univer.plus','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','showConfigPanel','mcpStatus.unknown','univer-bg-red-500','none','mcpStatus.failed','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_config$','网络连接错误,请检查您的网络连接','配置保存失败','check-mark-icon','API\x20key\x20with\x20Bearer\x20prefix.','entries','stringify','univer.plus','_initializeMenus','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','string','sessionId$','tag','配置参数:','toString','Disconnected','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','includes','MCP:\x20Unauthorized','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_localStorageService','apiKey','MCP\x20Disconnected','Error','_configService','univer-text-yellow-500','MCP\x20已断开','_config','substring','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCPConfigPanel','_apiKey$','univer-shrink-0\x20univer-text-blue-500','clipPath','evenodd','MCP\x20配置','MCP\x20已连接','Configuration\x20Notes:','MCP\x20客户端配置','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','点击连接\x20MCP'];_0x3165=function(){return _0x917b18;};return _0x3165();}var gn=Object[_0x185858(0xd4)],pn=(_0x3932ff,_0x29b050,_0x306051,_0x2777e4)=>{const _0x589739=_0x185858;for(var _0x57223a=_0x2777e4>0x1?void 0x0:_0x2777e4?gn(_0x29b050,_0x306051):_0x29b050,_0x3c6e9a=_0x3932ff[_0x589739(0x13e)]-0x1,_0x5a92da;_0x3c6e9a>=0x0;_0x3c6e9a--)(_0x5a92da=_0x3932ff[_0x3c6e9a])&&(_0x57223a=_0x5a92da(_0x57223a)||_0x57223a);return _0x57223a;},re=(_0x5ac35e,_0x332c04)=>(_0x28c080,_0x11fad6)=>_0x332c04(_0x28c080,_0x11fad6,_0x5ac35e);let D=class extends _0x39e815{constructor(_0x132e1d,_0x154d08){const _0x5a69f0=_0x185858;super(),this[_0x5a69f0(0xce)]=_0x132e1d,this['_menuManagerService']=_0x154d08,this[_0x5a69f0(0x1a9)](),this[_0x5a69f0(0x168)]();}[_0x185858(0x1a9)](){const _0x54f418=_0x185858;[V][_0x54f418(0x18b)](_0x31d9cc=>{const _0x22d4ab=_0x54f418;this[_0x22d4ab(0xcc)](this[_0x22d4ab(0xce)][_0x22d4ab(0x1c7)](_0x31d9cc));});}[_0x185858(0x168)](){const _0x183525=_0x185858;this[_0x183525(0xc7)][_0x183525(0xf4)](dn);}};D=pn([re(0x0,_0x224f8f),re(0x1,_0x525c06)],D);const Mn={'mcpStatus':{'disconnected':_0x185858(0x176),'connecting':_0x185858(0x12f),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x185858(0x1a8),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x185858(0x172),'sessionOccupied':_0x185858(0x1cc),'networkError':_0x185858(0xe5),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x185858(0x14f),'clickToConfigure':_0x185858(0x1b6)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x185858(0x157),'apiKey':_0x185858(0x1a0),'apiKeyPlaceholder':_0x185858(0x1ca),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x185858(0x158),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x185858(0x1eb),'mcpClientConfig':_0x185858(0x1eb),'configInstructions':_0x185858(0xd8),'configStepTitle':_0x185858(0x1dc),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x185858(0xe2),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x185858(0xfc),'sessionIdDescription':_0x185858(0xde),'authorizationDescription':_0x185858(0x164),'configParameters':_0x185858(0x1c1),'maxRetries':'Max\x20Retries','save':_0x185858(0x1ee),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x185858(0x101),'configSaved':_0x185858(0x1be),'configError':_0x185858(0x1d3),'apiApplyInfo':{'title':_0x185858(0x1ad),'description':_0x185858(0xf1),'univerAiLabel':_0x185858(0x1e6),'getStarted':_0x185858(0x14d)},'validation':{'apiKeyRequired':_0x185858(0x1aa),'apiKeyTooShort':_0x185858(0x100),'invalidConfig':_0x185858(0x11b),'invalidApiKey':_0x185858(0x187)},'connectionStatus':{'disconnected':_0x185858(0x16f),'connecting':_0x185858(0xe7),'connected':'Connected','failed':_0x185858(0xe6),'retrying':_0x185858(0x1d6)},'connectionError':{'unauthorized':_0x185858(0x1b7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x185858(0xdd)}}},An={'mcpStatus':{'disconnected':_0x185858(0x17a),'connecting':'MCP\x20连接中...','connected':_0x185858(0x184),'failed':_0x185858(0x11f),'retrying':'MCP\x20重连中...','unknown':_0x185858(0x1bc),'unauthorized':_0x185858(0x19c),'sessionOccupied':_0x185858(0xd7),'networkError':_0x185858(0x10e),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x185858(0x188),'clickToConfigure':_0x185858(0xf0)},'mcpConfig':{'title':_0x185858(0x183),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x185858(0x190),'apiKeyPlaceholder':_0x185858(0xb4),'apiKeyHint':_0x185858(0xf7),'enableAuth':_0x185858(0x11e),'enableAuthHint':_0x185858(0x14b),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x185858(0x186),'configInstructions':_0x185858(0x1fd),'configStepTitle':_0x185858(0xb9),'configStep1':_0x185858(0x13d),'configStep2':_0x185858(0xfe),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x185858(0x1cb),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x185858(0x137),'configParameters':_0x185858(0x16d),'maxRetries':_0x185858(0xaf),'save':_0x185858(0x19e),'saving':_0x185858(0x10d),'note1':'配置更改将立即生效','note2':_0x185858(0x120),'configSaved':_0x185858(0x1c0),'configError':_0x185858(0x162),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x185858(0x139),'getStarted':_0x185858(0x130)},'validation':{'apiKeyRequired':_0x185858(0x1ef),'apiKeyTooShort':_0x185858(0x109),'invalidConfig':_0x185858(0x133),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x185858(0x122),'connecting':_0x185858(0x19f),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x185858(0x13c),'sessionOccupied':_0x185858(0x1e8),'networkError':_0x185858(0x161),'maxRetriesExceeded':_0x185858(0x1a1)}}};var fn=Object[_0x185858(0x1fe)],hn=Object[_0x185858(0xd4)],Cn=(_0xd54e58,_0xed1c83,_0x10d92e)=>_0xed1c83 in _0xd54e58?fn(_0xd54e58,_0xed1c83,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10d92e}):_0xd54e58[_0xed1c83]=_0x10d92e,mn=(_0xe7741b,_0x15a846,_0x4ff25d,_0x2aefa1)=>{const _0x218079=_0x185858;for(var _0x49bef2=_0x2aefa1>0x1?void 0x0:_0x2aefa1?hn(_0x15a846,_0x4ff25d):_0x15a846,_0x5c8ea4=_0xe7741b[_0x218079(0x13e)]-0x1,_0x557b85;_0x5c8ea4>=0x0;_0x5c8ea4--)(_0x557b85=_0xe7741b[_0x5c8ea4])&&(_0x49bef2=_0x557b85(_0x49bef2)||_0x49bef2);return _0x49bef2;},P=(_0x42f4de,_0x203750)=>(_0x144dd5,_0x974270)=>_0x203750(_0x144dd5,_0x974270,_0x42f4de),_n=(_0x484dec,_0x13b944,_0x4d1f27)=>Cn(_0x484dec,_0x13b944+'',_0x4d1f27);let j=class extends _0x437dd1{constructor(_0x1db95e=ie,_0x291d69,_0x31c8e7,_0x204835,_0x153729,_0x10b15e){const _0x1987ae=_0x185858;super(),this['_config']=_0x1db95e,this[_0x1987ae(0x125)]=_0x291d69,this[_0x1987ae(0x178)]=_0x31c8e7,this[_0x1987ae(0xd5)]=_0x204835,this[_0x1987ae(0x174)]=_0x153729,this[_0x1987ae(0x124)]=_0x10b15e;const {..._0x15f252}=_0x42fbc1({},ie,this[_0x1987ae(0x17b)]);this[_0x1987ae(0x178)][_0x1987ae(0x1db)](y,_0x15f252);}async[_0x185858(0xe8)](){const _0xec20e1=_0x185858,_0x1f48f5=[[O],[I],[D]];this[_0xec20e1(0x125)][_0xec20e1(0x18e)](_0x5dd0c8)||_0x1f48f5[_0xec20e1(0x107)]([_0x5dd0c8,{'useClass':_0xfb58f2}]),_0x1f48f5[_0xec20e1(0x18b)](_0x242567=>this[_0xec20e1(0x125)][_0xec20e1(0xfa)](_0x242567)),this[_0xec20e1(0x125)][_0xec20e1(0x123)](O),this[_0xec20e1(0x125)][_0xec20e1(0x123)](I),this['_injector']['get'](D);}};_n(j,_0x185858(0x154),_0x185858(0x18a)),j=mn([_0x3618d1(_0x5d63da),P(0x1,_0x534c82(_0x51f408)),P(0x2,_0x104bf3),P(0x3,_0x4b626e),P(0x4,_0x2f485a),P(0x5,_0x534c82(_0x3adc8f))],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 _0x5f019c=_0x6b3c;(function(_0x316eec,_0x850f4a){const _0x236b2a=_0x6b3c,_0x399394=_0x316eec();while(!![]){try{const _0x2be710=-parseInt(_0x236b2a(0x171))/0x1*(parseInt(_0x236b2a(0x19c))/0x2)+-parseInt(_0x236b2a(0x191))/0x3+-parseInt(_0x236b2a(0x106))/0x4+-parseInt(_0x236b2a(0x1d9))/0x5*(parseInt(_0x236b2a(0x200))/0x6)+-parseInt(_0x236b2a(0x10e))/0x7+parseInt(_0x236b2a(0x172))/0x8+parseInt(_0x236b2a(0x1f8))/0x9*(parseInt(_0x236b2a(0x129))/0xa);if(_0x2be710===_0x850f4a)break;else _0x399394['push'](_0x399394['shift']());}catch(_0x3b1966){_0x399394['push'](_0x399394['shift']());}}}(_0x297a,0xd8ce7));function _0x6b3c(_0x30b0e7,_0x209229){const _0x297a34=_0x297a();return _0x6b3c=function(_0x6b3c22,_0x58ec84){_0x6b3c22=_0x6b3c22-0xae;let _0x55c54d=_0x297a34[_0x6b3c22];return _0x55c54d;},_0x6b3c(_0x30b0e7,_0x209229);}var Pe=Object[_0x5f019c(0xd0)],Ee=(_0x47a8e3,_0x105a0d,_0x2a729d)=>_0x105a0d in _0x47a8e3?Pe(_0x47a8e3,_0x105a0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a729d}):_0x47a8e3[_0x105a0d]=_0x2a729d,x=(_0x1a17d5,_0x51eeb2,_0x5af4d4)=>Ee(_0x1a17d5,typeof _0x51eeb2!=_0x5f019c(0x117)?_0x51eeb2+'':_0x51eeb2,_0x5af4d4);import{LocaleService as _0x50797d,Inject as _0x4cd141,Injector as _0x18fe7e,IConfigService as _0x33daa9,ILocalStorageService as _0x2b2756,ILogService as _0x316a8d,Disposable as _0xc7b5a,CommandType as _0x3a3b52,ICommandService as _0x3df414,DependentOn as _0x315164,Plugin as _0x286071,merge as _0x3d6d7c}from'@univerjs/core';import{jsxs as _0x1531e0,jsx as _0x1b935a}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4f068b,MCPConnectionError as _0x5c2471,MCPConnectionController as _0x334a18,MCP_PLUGIN_CONFIG_KEY as _0x230f62,UniverMCPPlugin as _0x30ad4f}from'@univerjs-pro/mcp';import{clsx as _0x3f147d,Input as _0x5a0704,Button as _0x5d7281,MessageType as _0x7f0117,Tooltip as _0xfcef24}from'@univerjs/design';import{useDependency as _0x279bfc,useObservable as _0x275d33,IUIPartsService as _0x17ef3b,IDialogService as _0x8fcc48,IMessageService as _0x262fe0,ComponentManager as _0x507ecf,connectInjector as _0x5d84b6,BuiltInUIPart as _0x4b853b,MenuItemType as _0x553dde,RibbonStartGroup as _0x58e065,IMenuManagerService as _0x123cf1}from'@univerjs/ui';import{BehaviorSubject as _0x39757b}from'rxjs';import{useRef as _0x9e8766,createElement as _0x423eba,forwardRef as _0x5875ac,useState as _0x152b9c,useCallback as _0x5c82ba}from'react';import{ISocketService as _0x985069,WebSocketService as _0x42b82e}from'@univerjs/network';function b({ref:_0x5d4836,..._0xc7767d}){const _0x3ed517=_0x5f019c,{icon:_0x17b252,id:_0x41e9e1,className:_0x4bc967,extend:_0x5cc9ac,..._0xa56b78}=_0xc7767d,_0x22c814=('univerjs-icon\x20univerjs-icon-'+_0x41e9e1+'\x20'+(_0x4bc967||''))['trim'](),_0x514d3b=_0x9e8766('_'+We());return ae(_0x17b252,''+_0x41e9e1,{'defIds':_0x17b252['defIds'],'idSuffix':_0x514d3b[_0x3ed517(0xf4)]},{'ref':_0x5d4836,'className':_0x22c814,..._0xa56b78},_0x5cc9ac);}function _0x297a(){const _0x41e12a=['univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.apiApplyInfo.univerAiLabel','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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defineProperty','univer-text-xs\x20univer-text-gray-600','pluginName','配置参数:','_componentManager','https://console.univer.plus','_injector','RETRYING','_initConfigSync','Enter\x20your\x20API\x20key','off','Enable\x20authentication\x20for\x20secure\x20connections','open','next','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_createConfigPanelComponent','连接中...','errorMessage','entries','round','_logService','url(#$1','mcp.apiKey','univer-text-xs\x20univer-text-gray-500','off-line-icon','Configuration\x20saved\x20successfully','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionError.unauthorized','Connection\x20Failed','defs','getItem','权限验证失败,请检查您的\x20API\x20密钥','univer-size-2\x20univer-rounded-full','UniverIcon','mcpConfig.configStepTitle','current','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','未连接','_validateConfig','get','has','mcpConfig.connectionStatus.connected','_localStorageService','push','idSuffix','_connectionController','_handleConfigSave','mcpConfig.connectionStatus.failed','点击配置\x20MCP','trim','univer-space-y-3','replace','mcpConfig.note2','4048632GlgdBu','validateApiKey','mcpConfig.apiKeyHint','\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','API\x20Key','Click\x20to\x20configure\x20MCP','_dialogService','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','4623339kYNmUg','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-space-y-5','mcpStatus.unauthorized','您的\x20API\x20密钥安全存储在本地存储中','fill','error','mcpConfig.configStep1','_uiPartsService','symbol','_mcpCoreConfig$','CONNECTED','connectionError$','NETWORK_ERROR','label','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','univer-flex\x20univer-items-start\x20univer-gap-3','_apiKey$','mcpStatus.maxRetriesExceeded','includes','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Error','registerCommand','close-icon','HelpIcon','API\x20密钥长度至少需要\x2010\x20位','HEADER_MENU','200JKOfMq','配置步骤:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.invalidConfig','MCP\x20状态未知','mcpServerUrl','MCP:\x20Network\x20Error','mcpConfig.validation.apiKeyRequired','BUTTON','将配置添加到您的\x20MCP\x20客户端设置文件中','_initAutoConnect','univer.plus','CloseIcon','path','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.configStep2','mcpConfig.note1','displayName','保存配置','univer-size-4','univer-flex\x20univer-items-center\x20univer-gap-2','attrs','mcpStatus.disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','off-line-icon_clip0_910_343','div','Enable\x20Authentication','univer-text-gray-400','https://console.univer.ai','mcpConfig.connectionInfo','超出最大重试次数,请稍后再试','请输入您的\x20API\x20密钥','mcpConfig.validation.invalidApiKey','clipPath','重连中...','mcpConfig.connectionError.networkError','disposeWithMe','启用身份验证','mcpStatus.connecting','close','mask','isValid','button','pre','_initializeMenus','univer-text-yellow-500','white','MCP\x20Configuration','univer-bg-gray-500','univer-space-y-2','Saving...','_mcpConnectionController','mcpConfig.description','currentColor','univer-bg-red-500','mcpConfig.configSaved','mcpConfig.apiKey','univer-flex\x20univer-items-start\x20univer-gap-2','substring','Retrying...','univer-font-medium','MCPConfigPanel','_config$','mcpConfig.configInstructions','mcpConfig.configStep3','_blank','showStatus','Success','univer-text-sm\x20univer-text-gray-500','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','MCP\x20客户端配置','21621aWFicR','14135648cSZkfE','_loading$','getOwnPropertyDescriptor','showConfigPanel','tag','SESSION_ID_OCCUPIED','univer-flex\x20univer-gap-3','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','setItem','mcpConfig.apiKeyPlaceholder','配置\x20MCP\x20使用\x20AI\x20操作电子表格','value','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.apiApplyInfo.title','_loadStoredApiKey','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','random','MCP\x20连接失败','\x20-\x20','mcpStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','help-icon','showDeveloperTools','colorChannel1','Session\x20ID','apiKey','string','0\x200\x2016\x2016','mcpConfig.configParameters','Bearer\x20','5054625kOxuTl','add','evenodd','mcpStatus.connected','mcpConfig.connectionError.sessionOccupied','mcpStatus.sessionOccupied','subscribe','univer-text-gray-500','_initStatusComponent','Click\x20to\x20connect\x20MCP','show','8QtjMbE','OnLineIcon','univer-flex\x20univer-items-center','配置无效','sessionId$','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20连接中...','mcp-ui.config','Connecting...','univer.ai','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-white','mcpConfig.configError','noopener\x20noreferrer','<API_KEY>','_menuManagerService','warn','MCP\x20Client\x20Configuration','<SESSION_ID>','MCP:\x20超出最大重试次数','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','mcpStatus.retrying','API\x20密钥无效,请检查密钥是否正确','svg','toString','assign','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-items-center\x20univer-gap-3','Get\x20your\x20API\x20key\x20in\x20seconds','univer-shrink-0\x20univer-text-red-500','Connected','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20Connection\x20Failed','MCP\x20Disconnected','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex-1','_commandService','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.clickToConnect','univer-text-red-500','重启您的\x20MCP\x20客户端以使配置生效','_messageService','xlink:href','enableAutoConnect','connectionStatus$','DISCONNECTED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Univer\x20AI\x20控制台','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.getStarted','on-line-icon','_localeService','CheckMarkIcon','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','5jvnueW','Authorization:','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-bg-blue-500','Univer\x20AI\x20Console','UNAUTHORIZED','children','translate(.97)','mcpConfig.apiApplyInfo.description','MenuIcon','M0\x200H16V16H0z','mcpStatus.unknown','MCP_UI_PLUGIN','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','none','url(#on-line-icon_clip0_910_349)','mcpConfig.save','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','连接失败','span','mcpConfig.title','最大重试次数','配置保存成功','Configuration\x20Steps:','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP:\x20Unauthorized','mcp-config-dialog','1156671AVaHJp','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-shrink-0\x20univer-text-blue-500','use','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','getConfig','https://mcp.univer.ai/mcp/?univer_session_id=','OTHERS','31818NjkZqO','启用身份验证以获得安全连接','mcpConfig.validation.apiKeyTooShort','mcpStatus.networkError','forEach','check-mark-icon','mcpConfig.authorizationDescription','MCP\x20Retrying...','MCP\x20配置','保存中...','API\x20密钥','text','map','CONNECTING','univer-min-w-0\x20univer-flex-1','__setCustomHeaders','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20已断开','Configuration\x20Notes:','url(#off-line-icon_clip0_910_343)','http://www.w3.org/2000/svg','univer_session_id:','length','_configService','1em','mcpConfig.saving','on-line-icon_clip0_910_349','NONE','removeItem'];_0x297a=function(){return _0x41e12a;};return _0x297a();}function ae(_0x571139,_0x464d8c,_0x14f9eb,_0x35b292,_0x38851a){const _0x502fce=_0x5f019c;return _0x423eba(_0x571139['tag'],{'key':_0x464d8c,...Ye(_0x571139,_0x14f9eb,_0x38851a),..._0x35b292},(Ze(_0x571139,_0x14f9eb)['children']||[])[_0x502fce(0xb9)]((_0x337600,_0x240eb2)=>ae(_0x337600,_0x464d8c+'-'+_0x571139[_0x502fce(0x176)]+'-'+_0x240eb2,_0x14f9eb,void 0x0,_0x38851a)));}function Ye(_0xcde3eb,_0x135c9d,_0x5b4cbd){const _0x13ab7f=_0x5f019c,_0x20505f={..._0xcde3eb[_0x13ab7f(0x13e)]};_0x5b4cbd!=null&&_0x5b4cbd[_0x13ab7f(0x18a)]&&_0x20505f[_0x13ab7f(0x113)]==='colorChannel1'&&(_0x20505f[_0x13ab7f(0x113)]=_0x5b4cbd[_0x13ab7f(0x18a)]),_0xcde3eb['tag']===_0x13ab7f(0x151)&&_0x20505f['id']&&(_0x20505f['id']=_0x20505f['id']+_0x135c9d[_0x13ab7f(0xfd)]),Object[_0x13ab7f(0xe2)](_0x20505f)[_0x13ab7f(0xb1)](([_0x1006ed,_0x2b46eb])=>{const _0x5521b1=_0x13ab7f;_0x1006ed===_0x5521b1(0x151)&&typeof _0x2b46eb=='string'&&(_0x20505f[_0x1006ed]=_0x2b46eb[_0x5521b1(0x104)](/url\(#(.*)\)/,_0x5521b1(0xe5)+_0x135c9d[_0x5521b1(0xfd)]+')'));});const {defIds:_0x56e804}=_0x135c9d;return!_0x56e804||_0x56e804[_0x13ab7f(0xc3)]===0x0||(_0xcde3eb[_0x13ab7f(0x176)]===_0x13ab7f(0x1fb)&&_0x20505f[_0x13ab7f(0x1cc)]&&(_0x20505f[_0x13ab7f(0x1cc)]=_0x20505f[_0x13ab7f(0x1cc)]+_0x135c9d[_0x13ab7f(0xfd)]),Object[_0x13ab7f(0xe2)](_0x20505f)[_0x13ab7f(0xb1)](([_0x3424c6,_0x38f9de])=>{const _0x505340=_0x13ab7f;typeof _0x38f9de=='string'&&(_0x20505f[_0x3424c6]=_0x38f9de[_0x505340(0x104)](/url\(#(.*)\)/,_0x505340(0xe5)+_0x135c9d[_0x505340(0xfd)]+')'));})),_0x20505f;}function Ze(_0x49f285,_0x4b5750){const _0x229034=_0x5f019c;var _0x4eab08;const {defIds:_0x3b5a7e}=_0x4b5750;return!_0x3b5a7e||_0x3b5a7e[_0x229034(0xc3)]===0x0?_0x49f285:_0x49f285[_0x229034(0x176)]===_0x229034(0xee)&&((_0x4eab08=_0x49f285[_0x229034(0x1df)])!=null&&_0x4eab08[_0x229034(0xc3)])?{..._0x49f285,'children':_0x49f285[_0x229034(0x1df)]['map'](_0x8fafd8=>typeof _0x8fafd8[_0x229034(0x13e)]['id']==_0x229034(0x18d)&&_0x3b5a7e&&_0x3b5a7e[_0x229034(0x121)](_0x8fafd8[_0x229034(0x13e)]['id'])?{..._0x8fafd8,'attrs':{..._0x8fafd8[_0x229034(0x13e)],'id':_0x8fafd8[_0x229034(0x13e)]['id']+_0x4b5750[_0x229034(0xfd)]}}:_0x8fafd8)}:_0x49f285;}function We(){const _0x5ce0dd=_0x5f019c;return Math[_0x5ce0dd(0x183)]()[_0x5ce0dd(0x1b8)](0x24)[_0x5ce0dd(0x163)](0x2,0x8);}b['displayName']=_0x5f019c(0xf2);const qe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':_0x5f019c(0xc1),'fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':'path','attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x1ee),'fillRule':_0x5f019c(0x193),'clipRule':'evenodd'}}]},le=_0x5875ac(function(_0x3890bd,_0x33a899){const _0x565261=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x3890bd,{'id':_0x565261(0xb2),'ref':_0x33a899,'icon':qe}));});le[_0x5f019c(0x13a)]=_0x5f019c(0x1d6);const Xe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':'1em'},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x10d)}}]},ue=_0x5875ac(function(_0x22aa33,_0x4132c8){const _0x18ead9=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x22aa33,{'id':_0x18ead9(0x125),'ref':_0x4132c8,'icon':Xe}));});ue[_0x5f019c(0x13a)]=_0x5f019c(0x135);const Je={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':'currentColor','d':_0x5f019c(0x182)}},{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x10f)}},{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x1f9),'fillRule':_0x5f019c(0x193),'clipRule':_0x5f019c(0x193)}}]},ve=_0x5875ac(function(_0x190b97,_0x345d66){const _0x2d5717=_0x5f019c;return _0x423eba(b,Object[_0x2d5717(0x1b9)]({},_0x190b97,{'id':_0x2d5717(0x188),'ref':_0x345d66,'icon':Je}));});ve[_0x5f019c(0x13a)]=_0x5f019c(0x126);const Qe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f019c(0xc0)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'stroke':_0x5f019c(0x15e),'d':_0x5f019c(0x11d),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f019c(0x14a),'attrs':{'id':_0x5f019c(0x141)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x157),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5f019c(0x141)]},de=_0x5875ac(function(_0x355bfe,_0x3f7349){const _0x29d99e=_0x5f019c;return _0x423eba(b,Object[_0x29d99e(0x1b9)]({},_0x355bfe,{'id':_0x29d99e(0xe8),'ref':_0x3f7349,'icon':Qe}));});de[_0x5f019c(0x13a)]='OffLineIcon';const en={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':_0x5f019c(0xc1),'fill':_0x5f019c(0x1e9),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5f019c(0xc5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f019c(0x1ea)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'stroke':_0x5f019c(0x15e),'d':_0x5f019c(0x1b4),'strokeLinecap':_0x5f019c(0xe3),'strokeLinejoin':_0x5f019c(0xe3),'strokeWidth':1.2}}]},{'tag':_0x5f019c(0xee),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5f019c(0xc7)},'children':[{'tag':'path','attrs':{'fill':_0x5f019c(0x157),'d':_0x5f019c(0x1e3),'transform':_0x5f019c(0x1e0)}}]}]}],'defIds':[_0x5f019c(0xc7)]},ge=_0x5875ac(function(_0x1cb480,_0x3af4a1){const _0x3786f8=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x1cb480,{'id':_0x3786f8(0x1d4),'ref':_0x3af4a1,'icon':en}));});ge['displayName']=_0x5f019c(0x19d);function nn(_0x33ac13){const _0x3630f2=_0x5f019c;var _0x5433b1,_0x1258c5;const {mcpCoreConfig:_0x154691,onSave:_0x103dee,loading:_0x4a8bee=!0x1,config:_0x4a4abf,connectionStatus$:_0x28cb0b,connectionError$:_0x2e8bcb,currentApiKey$:_0x3d0e0c,currentSessionId$:_0x2eb8f1}=_0x33ac13,_0x3e6e9c=_0x279bfc(_0x50797d),_0x371d37=_0x275d33(_0x28cb0b,_0x4f068b['DISCONNECTED']),_0x1cb307=_0x275d33(_0x2e8bcb,_0x5c2471[_0x3630f2(0xc8)]),_0x12a0b7=_0x275d33(_0x2eb8f1,''),_0x19f7a4=_0x275d33(_0x3d0e0c,''),[_0x15b9e0,_0x6a1912]=_0x152b9c(_0x19f7a4||''),_0x5800aa=!0x0,_0x31acc1=_0x4a4abf['showDeveloperTools']&&_0x154691[_0x3630f2(0x12e)]&&(_0x154691[_0x3630f2(0x12e)]['includes'](_0x3630f2(0x134))||_0x154691[_0x3630f2(0x12e)][_0x3630f2(0x121)]('univer.ai')),_0x4a176c=(_0x5433b1=_0x154691[_0x3630f2(0x12e)])==null?void 0x0:_0x5433b1['includes'](_0x3630f2(0x134)),_0x356811=(_0x1258c5=_0x154691['mcpServerUrl'])==null?void 0x0:_0x1258c5['includes'](_0x3630f2(0x1a9)),_0x14f519=_0x4a176c?_0x3630f2(0xd5):_0x3630f2(0x145),_0x38db21=_0x4a4abf[_0x3630f2(0x189)]&&(_0x4a176c||_0x356811),[_0x289281,_0x5afcbd]=_0x152b9c(!_0x15b9e0[_0x3630f2(0x102)]()),_0x5d013a=(_0x3b9ab6,_0x270356)=>{const _0x5def4f=_0x3630f2;if(_0x270356===_0x5c2471[_0x5def4f(0x1de)])return _0x5def4f(0x17a);switch(_0x3b9ab6){case _0x4f068b['CONNECTED']:return _0x5def4f(0x17f);case _0x4f068b[_0x5def4f(0xba)]:case _0x4f068b['RETRYING']:return _0x5def4f(0x1c6);case _0x4f068b[_0x5def4f(0x16f)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x5def4f(0x1fc);}},_0x1bd475=(_0x12b5b4,_0x7ec387)=>{const _0xac7960=_0x3630f2;if(_0x7ec387===_0x5c2471[_0xac7960(0x1de)])return _0xac7960(0x15f);switch(_0x12b5b4){case _0x4f068b[_0xac7960(0x119)]:return'univer-bg-green-500';case _0x4f068b[_0xac7960(0xba)]:case _0x4f068b[_0xac7960(0xd7)]:return _0xac7960(0x1dc);case _0x4f068b[_0xac7960(0x16f)]:return _0xac7960(0x15f);default:return _0xac7960(0x159);}},_0x2274f4=_0x1b5bdf=>{const _0x152138=_0x3630f2;switch(_0x1b5bdf){case _0x4f068b[_0x152138(0x119)]:return _0x3e6e9c['t'](_0x152138(0xfa));case _0x4f068b[_0x152138(0xba)]:return _0x3e6e9c['t']('mcpConfig.connectionStatus.connecting');case _0x4f068b[_0x152138(0x16f)]:return _0x3e6e9c['t'](_0x152138(0x100));case _0x4f068b[_0x152138(0xd7)]:return _0x3e6e9c['t']('mcpConfig.connectionStatus.retrying');default:return _0x3e6e9c['t']('mcpConfig.connectionStatus.disconnected');}},_0x409918=_0x39152f=>{const _0x24b0fd=_0x3630f2;switch(_0x39152f){case _0x5c2471[_0x24b0fd(0x1de)]:return _0x3e6e9c['t'](_0x24b0fd(0xec));case _0x5c2471['SESSION_ID_OCCUPIED']:return _0x3e6e9c['t'](_0x24b0fd(0x195));case _0x5c2471[_0x24b0fd(0x11b)]:return _0x3e6e9c['t'](_0x24b0fd(0x14c));case _0x5c2471[_0x24b0fd(0x1e6)]:return _0x3e6e9c['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x158026=_0x5c82ba(()=>{const _0x17a5f6=_0x3630f2,_0x17e9d9={..._0x154691,'apiKey':_0x15b9e0[_0x17a5f6(0x102)](),'enableAuth':_0x5800aa};_0x103dee(_0x17e9d9);},[_0x154691,_0x15b9e0,_0x5800aa,_0x103dee]),_0x20277d=_0x15b9e0['trim']()[_0x3630f2(0xc3)]>0x0;return _0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1bf),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xca),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1bb),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xeb),'children':_0x1b935a('span',{'className':_0x3630f2(0x1ab),'children':'⚙'})}),_0x1b935a(_0x3630f2(0x142),{'children':_0x1b935a('p',{'className':_0x3630f2(0x16d),'children':_0x3e6e9c['t'](_0x3630f2(0x15d))})})]})}),_0x1531e0('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3f147d('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x5d013a(_0x371d37,_0x1cb307)),'children':_0x1531e0(_0x3630f2(0x142),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3f147d(_0x3630f2(0xf1),_0x1bd475(_0x371d37,_0x1cb307))}),_0x1b935a(_0x3630f2(0x1f0),{'className':'univer-text-sm\x20univer-font-medium','children':_0x2274f4(_0x371d37)})]})}),_0x1cb307!==_0x5c2471['NONE']&&(_0x371d37===_0x4f068b[_0x3630f2(0x16f)]||_0x1cb307===_0x5c2471[_0x3630f2(0x1de)])&&_0x1b935a('div',{'className':_0x3630f2(0x1f5),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x162),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x1bd),'children':'⚠️'}),_0x1b935a('p',{'className':_0x3630f2(0x137),'children':_0x409918(_0x1cb307)})]})})]}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1ec),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x110),'children':[_0x1531e0('div',{'className':_0x3630f2(0x15a),'children':[_0x1531e0(_0x3630f2(0x11c),{'className':_0x3630f2(0x1a2),'children':[_0x1b935a('span',{'children':'🔑'}),'\x20',_0x3e6e9c['t'](_0x3630f2(0x161)),_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x1c9),'children':'*'}),_0x31acc1&&_0x1b935a('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':_0x3e6e9c['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x5afcbd(!0x0),'children':_0x1b935a(ve,{})})]}),_0x1b935a(_0x5a0704,{'type':_0x3630f2(0xb8),'placeholder':_0x3e6e9c['t'](_0x3630f2(0x17c)),'value':_0x15b9e0,'disabled':_0x4a8bee,'autoComplete':_0x3630f2(0xda),'onChange':_0x6a1912}),_0x1b935a('p',{'className':_0x3630f2(0xe7),'children':_0x3e6e9c['t'](_0x3630f2(0x108))})]}),_0x31acc1&&_0x289281&&_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0xf5),'children':[_0x1b935a('a',{'className':_0x3630f2(0x1d7),'role':'button','onClick':()=>_0x5afcbd(!0x1),'children':_0x1b935a(ue,{'className':_0x3630f2(0x13c)})}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1e7),'children':_0x1b935a(_0x3630f2(0x1f0),{'className':'univer-text-blue-600','children':'🚀'})}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1c4),'children':[_0x1b935a('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3e6e9c['t'](_0x3630f2(0x180))}),_0x1b935a('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3e6e9c['t'](_0x3630f2(0x1e1))}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xbd),'children':_0x38db21&&_0x1531e0('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x14f519,'target':_0x3630f2(0x16a),'rel':_0x3630f2(0x1ad),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'🤖'}),_0x3e6e9c['t'](_0x3630f2(0xcc)),_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x144),'children':'↗'})]})}),_0x1531e0('div',{'className':_0x3630f2(0x1a3),'children':['✨','\x20',_0x3e6e9c['t'](_0x3630f2(0x1d3))]})]})]})]}),_0x4a4abf['showDeveloperTools']&&_0x1531e0(_0x3630f2(0x142),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1531e0('h4',{'className':_0x3630f2(0x12b),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'🔗'}),'\x20',_0x3e6e9c['t'](_0x3630f2(0x146))]}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-4','children':[_0x1531e0('div',{'className':_0x3630f2(0x103),'children':[_0x1b935a('p',{'className':_0x3630f2(0xd1),'children':_0x3e6e9c['t'](_0x3630f2(0x168))}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-2','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1d0),'children':_0x3e6e9c['t'](_0x3630f2(0xf3))}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1aa),'children':[_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'1'}),_0x3e6e9c['t'](_0x3630f2(0x115))]}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'2'}),_0x3e6e9c['t'](_0x3630f2(0x138))]}),_0x1531e0('div',{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'3'}),_0x3e6e9c['t'](_0x3630f2(0x169))]})]})]})]}),_0x1531e0('div',{'className':'univer-space-y-2','children':[_0x1b935a('div',{'className':_0x3630f2(0x1d0),'children':_0x3630f2(0x158)}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xea),'children':_0x1b935a(_0x3630f2(0x154),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x3630f2(0x1fe)+(_0x12a0b7||_0x3630f2(0x1b2)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x15b9e0||_0x3630f2(0x1ae))}}}},null,0x2)})})]}),_0x1531e0('div',{'className':_0x3630f2(0x103),'children':[_0x1b935a(_0x3630f2(0x142),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3e6e9c['t'](_0x3630f2(0x18f))}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x15a),'children':[_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x11e),'children':[_0x1b935a(_0x3630f2(0x142),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1b935a('div',{'className':_0x3630f2(0xde),'children':_0x3630f2(0xc2)}),_0x1b935a(_0x3630f2(0x142),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3e6e9c['t']('mcpConfig.sessionIdDescription')})]})]}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x11e),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1c7)}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0xbb),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xde),'children':_0x3630f2(0x1da)}),_0x1b935a('div',{'className':_0x3630f2(0xe7),'children':_0x3e6e9c['t'](_0x3630f2(0xb3))})]})]})]})]})]})]}),_0x1b935a(_0x5d7281,{'onClick':_0x158026,'disabled':!_0x20277d||_0x4a8bee,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x4a8bee?_0x1531e0('span',{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'⟲'}),_0x3e6e9c['t'](_0x3630f2(0xc6))]}):_0x1531e0(_0x3630f2(0x1f0),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(le,{}),_0x3e6e9c['t'](_0x3630f2(0x1eb))]})}),_0x1b935a('div',{'className':_0x3630f2(0x16e),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x178),'children':[_0x1b935a('span',{'className':_0x3630f2(0x1fa),'children':'💡'}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x165),'children':_0x3630f2(0xbf)}),_0x1531e0(_0x3630f2(0x142),{'children':['•',_0x3e6e9c['t'](_0x3630f2(0x139))]}),_0x1531e0(_0x3630f2(0x142),{'children':['•',_0x3e6e9c['t'](_0x3630f2(0x105))]})]})]})})]})})]});}const y=_0x5f019c(0x1a7),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5f019c(0x174)],tn=(_0x3fa174,_0x3afcf0,_0x233f36,_0x34f8ba)=>{const _0x489c26=_0x5f019c;for(var _0x348432=_0x34f8ba>0x1?void 0x0:_0x34f8ba?rn(_0x3afcf0,_0x233f36):_0x3afcf0,_0x593435=_0x3fa174[_0x489c26(0xc3)]-0x1,_0x18d379;_0x593435>=0x0;_0x593435--)(_0x18d379=_0x3fa174[_0x593435])&&(_0x348432=_0x18d379(_0x348432)||_0x348432);return _0x348432;},d=(_0x4f07ae,_0x461a86)=>(_0x35909c,_0x49770e)=>_0x461a86(_0x35909c,_0x49770e,_0x4f07ae);const U=_0x5f019c(0xe6),L=_0x5f019c(0x1f7);let I=class extends _0xc7b5a{constructor(_0x42f883,_0x60ab42,_0x432ce8,_0x139ac5,_0x300560,_0x429a5a,_0x44ae03,_0x40902a,_0x16a2c7,_0x5a690c){const _0x15a239=_0x5f019c;super(),x(this,_0x15a239(0x173),new _0x39757b(!0x1)),x(this,_0x15a239(0x118),new _0x39757b({})),x(this,_0x15a239(0x167),new _0x39757b({})),x(this,'_apiKey$',new _0x39757b('')),x(this,_0x15a239(0xff),async _0x447250=>{const _0x58084a=_0x15a239;var _0x2d276e,_0x2b0f49;this[_0x58084a(0x173)][_0x58084a(0xdd)](!0x0);try{const _0x3cd28c=await this[_0x58084a(0xf7)](_0x447250);if(!_0x3cd28c[_0x58084a(0x152)]){this[_0x58084a(0x1cb)]['show']({'type':_0x7f0117[_0x58084a(0x123)],'content':_0x3cd28c[_0x58084a(0xe1)]||this[_0x58084a(0x1d5)]['t'](_0x58084a(0x12c))});return;}_0x447250['apiKey']?await this['_localStorageService'][_0x58084a(0x17b)](U,_0x447250['apiKey'][_0x58084a(0x102)]()):await this['_localStorageService'][_0x58084a(0xc9)](U),this[_0x58084a(0x11f)]['next'](((_0x2d276e=_0x447250['apiKey'])==null?void 0x0:_0x2d276e[_0x58084a(0x102)]())||''),this[_0x58084a(0x15c)][_0x58084a(0xbc)]({'Authorization':_0x58084a(0x190)+((_0x2b0f49=_0x447250[_0x58084a(0x18c)])==null?void 0x0:_0x2b0f49[_0x58084a(0x102)]())}),this[_0x58084a(0x1cb)][_0x58084a(0x19b)]({'type':_0x7f0117[_0x58084a(0x16c)],'content':this[_0x58084a(0x1d5)]['t'](_0x58084a(0x160))}),setTimeout(()=>{const _0x2b512d=_0x58084a;this[_0x2b512d(0x10c)][_0x2b512d(0x150)](L);},0x320);}catch(_0x42bee9){this[_0x58084a(0xe4)][_0x58084a(0x114)](_0x58084a(0x1a1),_0x42bee9),this['_messageService'][_0x58084a(0x19b)]({'type':_0x7f0117['Error'],'content':this[_0x58084a(0x1d5)]['t'](_0x58084a(0x1ac))});}finally{this[_0x58084a(0x173)]['next'](!0x1);}}),(this[_0x15a239(0xd6)]=_0x42f883,this[_0x15a239(0x116)]=_0x60ab42,this[_0x15a239(0xc4)]=_0x432ce8,this[_0x15a239(0xfb)]=_0x139ac5,this[_0x15a239(0x10c)]=_0x300560,this['_messageService']=_0x429a5a,this[_0x15a239(0xd4)]=_0x44ae03,this[_0x15a239(0x1d5)]=_0x40902a,this[_0x15a239(0xe4)]=_0x16a2c7,this['_mcpConnectionController']=_0x5a690c,this['_initConfigSync'](),this[_0x15a239(0x181)](),this['_registerComponent']());}[_0x5f019c(0x175)](){const _0x4f3069=_0x5f019c,_0x3c2b7f=this[_0x4f3069(0xc4)][_0x4f3069(0x1fd)](y);_0x3c2b7f!=null&&_0x3c2b7f[_0x4f3069(0x189)]&&this[_0x4f3069(0x10c)][_0x4f3069(0xdc)]({'id':L,'title':{'title':this[_0x4f3069(0x1d5)]['t'](_0x4f3069(0x1f1))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xcdce0b=_0x4f3069;this[_0xcdce0b(0x10c)][_0xcdce0b(0x150)](L);}});}['getCurrentConfig'](){const _0x429449=_0x5f019c;return this[_0x429449(0x118)][_0x429449(0x17e)];}['_registerComponent'](){const _0x1dac24=_0x5f019c;this['disposeWithMe'](this[_0x1dac24(0xd4)]['register'](_0x1dac24(0x166),this[_0x1dac24(0xdf)]()));}[_0x5f019c(0xdf)](){const _0x49e19c=_0x5f019c;return _0x5d84b6(()=>{const _0x41af57=_0x6b3c;var _0x24b694,_0x417c4b,_0x102256;return _0x1b935a(nn,{'config':this[_0x41af57(0x167)]['value'],'mcpCoreConfig':this[_0x41af57(0x118)][_0x41af57(0x17e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x41af57(0xff)],'loading':this[_0x41af57(0x173)][_0x41af57(0x17e)],'connectionStatus$':(_0x24b694=this[_0x41af57(0x15c)])==null?void 0x0:_0x24b694[_0x41af57(0x1ce)],'connectionError$':(_0x417c4b=this[_0x41af57(0x15c)])==null?void 0x0:_0x417c4b['connectionError$'],'currentSessionId$':(_0x102256=this[_0x41af57(0x15c)])==null?void 0x0:_0x102256[_0x41af57(0x1a0)]});},this[_0x49e19c(0xd6)]);}[_0x5f019c(0xd8)](){const _0x2519ce=_0x5f019c;this[_0x2519ce(0x14d)](this[_0x2519ce(0xc4)]['subscribeConfigValue$'](_0x230f62)[_0x2519ce(0x197)](_0x308d3d=>{const _0x28abc4=_0x2519ce;this[_0x28abc4(0x118)][_0x28abc4(0xdd)](_0x308d3d||{});}));const _0x48dcd1=this['_configService'][_0x2519ce(0x1fd)](_0x230f62);this[_0x2519ce(0x118)]['next'](_0x48dcd1||{}),this['disposeWithMe'](this[_0x2519ce(0xc4)]['subscribeConfigValue$'](y)[_0x2519ce(0x197)](_0x5ba119=>{const _0x1cc10a=_0x2519ce;this[_0x1cc10a(0x167)][_0x1cc10a(0xdd)](_0x5ba119||{});}));const _0x4eaf2f=this['_configService'][_0x2519ce(0x1fd)](y);this[_0x2519ce(0x167)][_0x2519ce(0xdd)](_0x4eaf2f||{});}async[_0x5f019c(0x181)](){const _0x2cd940=_0x5f019c,_0x4fb3a2=this[_0x2cd940(0xc4)][_0x2cd940(0x1fd)](y);if(!(_0x4fb3a2!=null&&_0x4fb3a2[_0x2cd940(0x189)]))return;const _0x58552c=await this[_0x2cd940(0xfb)][_0x2cd940(0xef)](U);_0x58552c&&(this[_0x2cd940(0x15c)][_0x2cd940(0xbc)]({'Authorization':'Bearer\x20'+_0x58552c}),this['_apiKey$'][_0x2cd940(0xdd)](_0x58552c));}async[_0x5f019c(0xf7)](_0x368473){const _0x34a047=_0x5f019c;if(!_0x368473['apiKey']||_0x368473[_0x34a047(0x18c)][_0x34a047(0x102)]()[_0x34a047(0xc3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x34a047(0x1d5)]['t'](_0x34a047(0x130))};if(_0x368473['apiKey'][_0x34a047(0x102)]()[_0x34a047(0xc3)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x34a047(0x1d5)]['t'](_0x34a047(0xaf))};try{const _0x4a125c=await this['_injector'][_0x34a047(0xf8)](_0x334a18)[_0x34a047(0x107)](_0x368473[_0x34a047(0x18c)][_0x34a047(0x102)]());return _0x4a125c[_0x34a047(0x152)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4a125c[_0x34a047(0x114)]||this[_0x34a047(0x1d5)]['t'](_0x34a047(0x149))};}catch(_0x2305fa){return console[_0x34a047(0x1b0)](_0x34a047(0x1db),_0x2305fa),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4cd141(_0x18fe7e)),d(0x1,_0x17ef3b),d(0x2,_0x33daa9),d(0x3,_0x2b2756),d(0x4,_0x8fcc48),d(0x5,_0x262fe0),d(0x6,_0x4cd141(_0x507ecf)),d(0x7,_0x4cd141(_0x50797d)),d(0x8,_0x316a8d),d(0x9,_0x4cd141(_0x334a18))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x3a3b52['COMMAND'],'handler':async(_0x4b579a,_0x45c739)=>(_0x4b579a[_0x5f019c(0xf8)](I)[_0x5f019c(0x175)](),!0x0)};function pe(_0x3e1b80,_0x4e522c){const _0x5366ef=_0x5f019c;switch(_0x3e1b80){case _0x4f068b[_0x5366ef(0x1cf)]:return _0x5366ef(0x13f);case _0x4f068b['CONNECTING']:return _0x5366ef(0x14f);case _0x4f068b[_0x5366ef(0x119)]:return _0x5366ef(0x194);case _0x4f068b['FAILED']:switch(_0x4e522c){case _0x5c2471[_0x5366ef(0x1de)]:return _0x5366ef(0x111);case _0x5c2471[_0x5366ef(0x177)]:return _0x5366ef(0x196);case _0x5c2471['NETWORK_ERROR']:return _0x5366ef(0xb0);case _0x5c2471[_0x5366ef(0x1e6)]:return _0x5366ef(0x120);default:return _0x5366ef(0x186);}case _0x4f068b[_0x5366ef(0xd7)]:return _0x5366ef(0x1b5);default:return _0x5366ef(0x1e4);}}function on(_0x46a1d6,_0x3dfda2,_0x5468b9,_0x4a09b5=!0x0){const _0x3e0697=_0x5f019c,_0x13952d=pe(_0x46a1d6,_0x3dfda2),_0x3a7e34=_0x5468b9['t'](_0x13952d);return _0x4a09b5?_0x46a1d6===_0x4f068b['DISCONNECTED']&&_0x3dfda2===_0x5c2471[_0x3e0697(0x1de)]?_0x3a7e34+_0x3e0697(0x185)+_0x5468b9['t']('mcpStatus.clickToConfigure'):_0x46a1d6===_0x4f068b[_0x3e0697(0x119)]?''+_0x3a7e34:_0x46a1d6===_0x4f068b[_0x3e0697(0x1cf)]||_0x46a1d6===_0x4f068b[_0x3e0697(0x16f)]?_0x3a7e34+_0x3e0697(0x185)+_0x5468b9['t'](_0x3e0697(0x1c8)):_0x3a7e34:_0x3a7e34;}function sn(_0x52c72c){const _0x33d960=_0x5f019c;switch(_0x52c72c){case _0x4f068b['CONNECTED']:return'univer-text-green-500';case _0x4f068b[_0x33d960(0xba)]:case _0x4f068b[_0x33d960(0xd7)]:return _0x33d960(0x156);case _0x4f068b[_0x33d960(0x16f)]:case _0x4f068b[_0x33d960(0x1cf)]:return'univer-text-red-500';default:return _0x33d960(0x198);}}function cn(_0x123fd1){const _0x38a5d5=_0x5f019c,{status$:_0x669c53,error$:_0x4508f5,onConfigure:_0x5a134b,showClickable:_0x258c4a=!0x0}=_0x123fd1,_0x1db3ac=_0x275d33(_0x669c53,_0x4f068b[_0x38a5d5(0x1cf)]),_0x441cde=_0x275d33(_0x4508f5,_0x5c2471['NONE']),_0x3050b8=_0x279bfc(_0x50797d),_0x138a23=_0x1db3ac===_0x4f068b[_0x38a5d5(0x119)];_0x1db3ac===_0x4f068b[_0x38a5d5(0xba)]||_0x4f068b[_0x38a5d5(0xd7)];const _0x3fd286=_0x3050b8['t'](pe(_0x1db3ac,_0x441cde)),_0x30f939=on(_0x1db3ac,_0x441cde,_0x3050b8,_0x258c4a),_0x21b5d8=sn(_0x1db3ac),_0x35f11b=_0x138a23?_0x1b935a(ge,{}):_0x1b935a(de,{}),_0x317bf3=_0x5c82ba(()=>{_0x258c4a&&_0x5a134b&&_0x5a134b();},[_0x258c4a,_0x5a134b]);function _0x5aa77a(){const _0x1f330f=_0x38a5d5;return _0x1531e0(_0x1f330f(0x142),{'className':_0x3f147d(_0x1f330f(0x19e),_0x258c4a&&_0x5a134b&&_0x1f330f(0x109)),'role':_0x1f330f(0x153),'onClick':_0x258c4a&&_0x5a134b?_0x317bf3:void 0x0,'children':[_0x1b935a(_0x1f330f(0x142),{'className':_0x3f147d(_0x1f330f(0x1c3),_0x21b5d8),'children':_0x35f11b}),_0x1b935a(_0x1f330f(0x142),{'className':_0x1f330f(0x1d8),'children':_0x3fd286})]});}return _0x1b935a(_0xfcef24,{'title':_0x30f939,'placement':'bottom','children':_0x5aa77a()});}var an=Object[_0x5f019c(0x174)],ln=(_0x3f791a,_0x156c09,_0x4af2a1,_0x153095)=>{const _0x593773=_0x5f019c;for(var _0x424ff0=_0x153095>0x1?void 0x0:_0x153095?an(_0x156c09,_0x4af2a1):_0x156c09,_0x4d0a2e=_0x3f791a[_0x593773(0xc3)]-0x1,_0x47c42d;_0x4d0a2e>=0x0;_0x4d0a2e--)(_0x47c42d=_0x3f791a[_0x4d0a2e])&&(_0x424ff0=_0x47c42d(_0x424ff0)||_0x424ff0);return _0x424ff0;},M=(_0x3151cb,_0x4b09ac)=>(_0x1c3394,_0x154c0f)=>_0x4b09ac(_0x1c3394,_0x154c0f,_0x3151cb);let O=class extends _0xc7b5a{constructor(_0x39f363,_0x192650,_0x42aa45,_0x16e2b3){const _0x3ae215=_0x5f019c;super(),this['_injector']=_0x39f363,this['_connectionController']=_0x192650,this[_0x3ae215(0x116)]=_0x42aa45,this['_configService']=_0x16e2b3,this[_0x3ae215(0x133)](),this[_0x3ae215(0x199)]();}[_0x5f019c(0x133)](){const _0x2f3316=_0x5f019c,_0x107b5d=this['_configService'][_0x2f3316(0x1fd)](y);_0x107b5d!=null&&_0x107b5d[_0x2f3316(0x189)]&&(this[_0x2f3316(0xfe)][_0x2f3316(0x1cd)]=!0x1);}['_initStatusComponent'](){const _0x1a31a3=_0x5f019c,_0x569d26=this[_0x1a31a3(0xc4)]['getConfig'](y);(_0x569d26==null?void 0x0:_0x569d26[_0x1a31a3(0x16b)])!==!0x1&&this['disposeWithMe'](this[_0x1a31a3(0x116)]['registerComponent'](_0x4b853b[_0x1a31a3(0x128)],()=>{const _0x281de1=_0x1a31a3;var _0x46091b;return _0x5d84b6(un({'status$':this[_0x281de1(0xfe)][_0x281de1(0x1ce)],'error$':this[_0x281de1(0xfe)][_0x281de1(0x11a)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x46091b=_0x569d26==null?void 0x0:_0x569d26[_0x281de1(0x189)])!=null?_0x46091b:!0x1}),this[_0x281de1(0xd6)]);}));}['_handleConfigure'](){const _0x2132bf=_0x5f019c;this[_0x2132bf(0xd6)]['get'](I)['showConfigPanel']();}};O=ln([M(0x0,_0x4cd141(_0x18fe7e)),M(0x1,_0x4cd141(_0x334a18)),M(0x2,_0x17ef3b),M(0x3,_0x33daa9)],O);function un(_0x37c3c7){const {status$:_0x583d34,error$:_0x7da799,onConfigure:_0x424bf0,showClickable:_0x2d5bfb}=_0x37c3c7;return function(){return _0x1b935a(cn,{'status$':_0x583d34,'error$':_0x7da799,'onConfigure':_0x424bf0,'showClickable':_0x2d5bfb});};}function vn(_0x210f69){const _0x5cb580=_0x5f019c;return{'id':V['id'],'type':_0x553dde[_0x5cb580(0x131)],'icon':_0x5cb580(0x1e2),'title':_0x5cb580(0x1f1),'tooltip':_0x5cb580(0x1f1)};}const dn={[_0x58e065[_0x5f019c(0x1ff)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x5f019c(0x174)],pn=(_0x1ec733,_0x59f109,_0x190e79,_0x57ff1f)=>{const _0x1c5125=_0x5f019c;for(var _0xeefd31=_0x57ff1f>0x1?void 0x0:_0x57ff1f?gn(_0x59f109,_0x190e79):_0x59f109,_0x37f56c=_0x1ec733[_0x1c5125(0xc3)]-0x1,_0x3fc106;_0x37f56c>=0x0;_0x37f56c--)(_0x3fc106=_0x1ec733[_0x37f56c])&&(_0xeefd31=_0x3fc106(_0xeefd31)||_0xeefd31);return _0xeefd31;},re=(_0x19c325,_0x14d568)=>(_0x2e774f,_0x344641)=>_0x14d568(_0x2e774f,_0x344641,_0x19c325);let D=class extends _0xc7b5a{constructor(_0x124c85,_0x503a0c){const _0x417f8f=_0x5f019c;super(),this[_0x417f8f(0x1c5)]=_0x124c85,this['_menuManagerService']=_0x503a0c,this['_initializeCommands'](),this[_0x417f8f(0x155)]();}['_initializeCommands'](){const _0x5978c3=_0x5f019c;[V][_0x5978c3(0xb1)](_0xb0f07a=>{const _0x477513=_0x5978c3;this['disposeWithMe'](this[_0x477513(0x1c5)][_0x477513(0x124)](_0xb0f07a));});}[_0x5f019c(0x155)](){const _0x2f3ee2=_0x5f019c;this[_0x2f3ee2(0x1af)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x3df414),re(0x1,_0x123cf1)],D);const Mn={'mcpStatus':{'disconnected':_0x5f019c(0x1c1),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5f019c(0x1c0),'retrying':_0x5f019c(0xb4),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5f019c(0x1f6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5f019c(0x12f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f019c(0x19a),'clickToConfigure':_0x5f019c(0x10b)},'mcpConfig':{'title':_0x5f019c(0x158),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5f019c(0x10a),'apiKeyPlaceholder':_0x5f019c(0xd9),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5f019c(0x143),'enableAuthHint':_0x5f019c(0xdb),'connectionInfo':_0x5f019c(0x1b1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5f019c(0x1f4),'configStep1':_0x5f019c(0x187),'configStep2':_0x5f019c(0xce),'configStep3':_0x5f019c(0x1a5),'sessionId':_0x5f019c(0x18b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5f019c(0x15b),'note1':_0x5f019c(0x179),'note2':_0x5f019c(0xcf),'configSaved':_0x5f019c(0xe9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5f019c(0x1ba),'univerAiLabel':_0x5f019c(0x1dd),'getStarted':_0x5f019c(0x1bc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5f019c(0x1a4),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5f019c(0x1a8),'connected':_0x5f019c(0x1be),'failed':_0x5f019c(0xed),'retrying':_0x5f019c(0x164)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5f019c(0x140),'networkError':_0x5f019c(0x122),'maxRetriesExceeded':_0x5f019c(0x1d2)}}},An={'mcpStatus':{'disconnected':_0x5f019c(0xbe),'connecting':_0x5f019c(0x1a6),'connected':'MCP\x20已连接','failed':_0x5f019c(0x184),'retrying':'MCP\x20重连中...','unknown':_0x5f019c(0x12d),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x5f019c(0x1b3),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x5f019c(0x101)},'mcpConfig':{'title':_0x5f019c(0xb5),'description':_0x5f019c(0x17d),'apiKey':_0x5f019c(0xb7),'apiKeyPlaceholder':_0x5f019c(0x148),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5f019c(0x14e),'enableAuthHint':_0x5f019c(0xae),'connectionInfo':_0x5f019c(0x170),'mcpClientConfig':_0x5f019c(0x170),'configInstructions':_0x5f019c(0x1c2),'configStepTitle':_0x5f019c(0x12a),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x5f019c(0x132),'configStep3':_0x5f019c(0x1ca),'sessionId':'会话ID','sessionIdDescription':_0x5f019c(0x1e8),'authorizationDescription':_0x5f019c(0xcb),'configParameters':_0x5f019c(0xd3),'maxRetries':_0x5f019c(0x1f2),'save':_0x5f019c(0x13b),'saving':_0x5f019c(0xb6),'note1':'配置更改将立即生效','note2':_0x5f019c(0x112),'configSaved':_0x5f019c(0x1f3),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5f019c(0x1ed),'univerAiLabel':_0x5f019c(0x1d1),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x5f019c(0x127),'invalidConfig':_0x5f019c(0x19f),'invalidApiKey':_0x5f019c(0x1b6)},'connectionStatus':{'disconnected':_0x5f019c(0xf6),'connecting':_0x5f019c(0xe0),'connected':'已连接','failed':_0x5f019c(0x1ef),'retrying':_0x5f019c(0x14b)},'connectionError':{'unauthorized':_0x5f019c(0xf0),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5f019c(0x147)}}};var fn=Object[_0x5f019c(0xd0)],hn=Object[_0x5f019c(0x174)],Cn=(_0x2e1262,_0xd2c7eb,_0x326125)=>_0xd2c7eb in _0x2e1262?fn(_0x2e1262,_0xd2c7eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x326125}):_0x2e1262[_0xd2c7eb]=_0x326125,mn=(_0x332425,_0x381954,_0x17f390,_0x7f478a)=>{for(var _0x45a72e=_0x7f478a>0x1?void 0x0:_0x7f478a?hn(_0x381954,_0x17f390):_0x381954,_0x494feb=_0x332425['length']-0x1,_0x507237;_0x494feb>=0x0;_0x494feb--)(_0x507237=_0x332425[_0x494feb])&&(_0x45a72e=_0x507237(_0x45a72e)||_0x45a72e);return _0x45a72e;},P=(_0x5e23f0,_0x14e854)=>(_0x2134e0,_0x483e95)=>_0x14e854(_0x2134e0,_0x483e95,_0x5e23f0),_n=(_0x3e20e9,_0x403ba5,_0x4e3c14)=>Cn(_0x3e20e9,_0x403ba5+'',_0x4e3c14);let j=class extends _0x286071{constructor(_0xc79697=ie,_0x2012e8,_0x58371a,_0x98ae61,_0x93620b,_0x4b30a8){const _0x79c2db=_0x5f019c;super(),this['_config']=_0xc79697,this['_injector']=_0x2012e8,this['_configService']=_0x58371a,this[_0x79c2db(0x116)]=_0x98ae61,this[_0x79c2db(0xfb)]=_0x93620b,this[_0x79c2db(0x1d5)]=_0x4b30a8;const {..._0x328217}=_0x3d6d7c({},ie,this['_config']);this[_0x79c2db(0xc4)]['setConfig'](y,_0x328217);}async['onStarting'](){const _0x4e51eb=_0x5f019c,_0x3bb12=[[O],[I],[D]];this[_0x4e51eb(0xd6)][_0x4e51eb(0xf9)](_0x985069)||_0x3bb12[_0x4e51eb(0xfc)]([_0x985069,{'useClass':_0x42b82e}]),_0x3bb12[_0x4e51eb(0xb1)](_0x1f73c7=>this[_0x4e51eb(0xd6)][_0x4e51eb(0x192)](_0x1f73c7)),this['_injector']['get'](O),this[_0x4e51eb(0xd6)][_0x4e51eb(0xf8)](I),this[_0x4e51eb(0xd6)][_0x4e51eb(0xf8)](D);}};_n(j,_0x5f019c(0xd2),_0x5f019c(0x1e5)),j=mn([_0x315164(_0x30ad4f),P(0x1,_0x4cd141(_0x18fe7e)),P(0x2,_0x33daa9),P(0x3,_0x17ef3b),P(0x4,_0x2b2756),P(0x5,_0x4cd141(_0x50797d))],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 _0x35fbf2=_0x38bc;(function(_0x241020,_0x5b9d8a){const _0x137955=_0x38bc,_0x2ac461=_0x241020();while(!![]){try{const _0x5b34ee=-parseInt(_0x137955(0xad))/0x1*(parseInt(_0x137955(0xd4))/0x2)+-parseInt(_0x137955(0xb9))/0x3*(parseInt(_0x137955(0xcd))/0x4)+-parseInt(_0x137955(0xc8))/0x5+-parseInt(_0x137955(0xa8))/0x6*(-parseInt(_0x137955(0xd3))/0x7)+-parseInt(_0x137955(0xca))/0x8+-parseInt(_0x137955(0xb8))/0x9+-parseInt(_0x137955(0xaa))/0xa*(-parseInt(_0x137955(0xae))/0xb);if(_0x5b34ee===_0x5b9d8a)break;else _0x2ac461['push'](_0x2ac461['shift']());}catch(_0x49c7a4){_0x2ac461['push'](_0x2ac461['shift']());}}}(_0x41bf,0x4c21a));function _0x38bc(_0x5976dc,_0x50ba01){const _0x41bf86=_0x41bf();return _0x38bc=function(_0x38bcc0,_0x50b12f){_0x38bcc0=_0x38bcc0-0xa7;let _0x39b822=_0x41bf86[_0x38bcc0];return _0x39b822;},_0x38bc(_0x5976dc,_0x50ba01);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x35fbf2(0xb6),'connected':_0x35fbf2(0xbd),'failed':'MCP\x20Connection\x20Failed','retrying':_0x35fbf2(0xb0),'unknown':_0x35fbf2(0xc3),'unauthorized':_0x35fbf2(0xac),'sessionOccupied':_0x35fbf2(0xb3),'networkError':_0x35fbf2(0xcc),'maxRetriesExceeded':_0x35fbf2(0xb5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x35fbf2(0xc5),'apiKey':_0x35fbf2(0xb2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35fbf2(0xd0),'enableAuthHint':_0x35fbf2(0xba),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x35fbf2(0xbb),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x35fbf2(0xc9),'sessionId':_0x35fbf2(0xbc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x35fbf2(0xab),'configParameters':_0x35fbf2(0xc6),'maxRetries':'Max\x20Retries','save':_0x35fbf2(0xc7),'saving':_0x35fbf2(0xb1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x35fbf2(0xbf),'configSaved':_0x35fbf2(0xcb),'configError':_0x35fbf2(0xbe),'apiApplyInfo':{'title':_0x35fbf2(0xc4),'description':_0x35fbf2(0xc0),'univerAiLabel':_0x35fbf2(0xd1),'getStarted':_0x35fbf2(0xa7)},'validation':{'apiKeyRequired':_0x35fbf2(0xd2),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x35fbf2(0xc2),'connecting':_0x35fbf2(0xb7),'connected':_0x35fbf2(0xa9),'failed':'Connection\x20Failed','retrying':_0x35fbf2(0xce)},'connectionError':{'unauthorized':_0x35fbf2(0xaf),'sessionOccupied':_0x35fbf2(0xcf),'networkError':_0x35fbf2(0xc1),'maxRetriesExceeded':_0x35fbf2(0xb4)}}},n=e;function _0x41bf(){const _0x195982=['6lyfTvP','Connected','4200qRSqQM','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','1010nNjJvT','35101ixhBJg','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Saving...','API\x20Key','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','Connecting...','1757637JKZrMa','98133ypBIfd','Enable\x20authentication\x20for\x20secure\x20connections','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','MCP\x20Connected','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Disconnected','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','Save\x20Configuration','277845YbXDNj','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','452264XwCMGC','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','72vQWMWO','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','Univer\x20AI\x20Console','API\x20key\x20is\x20required','7889AGfxFE','264QpiSGA','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x41bf=function(){return _0x195982;};return _0x41bf();}export{n as default};
1
+ const _0x1837d7=_0x2c09;function _0x2c09(_0x52b776,_0x1e6f1f){const _0x34b252=_0x34b2();return _0x2c09=function(_0x2c096d,_0x52ff74){_0x2c096d=_0x2c096d-0x18a;let _0x4f676e=_0x34b252[_0x2c096d];return _0x4f676e;},_0x2c09(_0x52b776,_0x1e6f1f);}(function(_0x112713,_0xadf6b9){const _0x43b7d8=_0x2c09,_0x4218f8=_0x112713();while(!![]){try{const _0x1c6062=-parseInt(_0x43b7d8(0x18e))/0x1+-parseInt(_0x43b7d8(0x1be))/0x2*(parseInt(_0x43b7d8(0x1ab))/0x3)+parseInt(_0x43b7d8(0x1ba))/0x4*(-parseInt(_0x43b7d8(0x192))/0x5)+-parseInt(_0x43b7d8(0x1b9))/0x6*(parseInt(_0x43b7d8(0x1b0))/0x7)+-parseInt(_0x43b7d8(0x1bc))/0x8+-parseInt(_0x43b7d8(0x1a1))/0x9+parseInt(_0x43b7d8(0x1b8))/0xa;if(_0x1c6062===_0xadf6b9)break;else _0x4218f8['push'](_0x4218f8['shift']());}catch(_0x826c8b){_0x4218f8['push'](_0x4218f8['shift']());}}}(_0x34b2,0x68b90));const e={'mcpStatus':{'disconnected':_0x1837d7(0x1a8),'connecting':_0x1837d7(0x1aa),'connected':'MCP\x20Connected','failed':_0x1837d7(0x196),'retrying':_0x1837d7(0x195),'unknown':_0x1837d7(0x1b1),'unauthorized':_0x1837d7(0x1ad),'sessionOccupied':_0x1837d7(0x19c),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1837d7(0x1a5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1837d7(0x193)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1837d7(0x19f),'apiKey':_0x1837d7(0x18b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1837d7(0x1a7),'enableAuthHint':_0x1837d7(0x1b5),'connectionInfo':_0x1837d7(0x1a0),'mcpClientConfig':_0x1837d7(0x1a0),'configInstructions':_0x1837d7(0x1a3),'configStepTitle':_0x1837d7(0x1b2),'configStep1':_0x1837d7(0x19a),'configStep2':_0x1837d7(0x19e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1837d7(0x1ac),'sessionIdDescription':_0x1837d7(0x1b4),'authorizationDescription':_0x1837d7(0x1b3),'configParameters':_0x1837d7(0x19d),'maxRetries':'Max\x20Retries','save':_0x1837d7(0x18f),'saving':_0x1837d7(0x1b7),'note1':_0x1837d7(0x199),'note2':_0x1837d7(0x191),'configSaved':_0x1837d7(0x194),'configError':_0x1837d7(0x197),'apiApplyInfo':{'title':_0x1837d7(0x190),'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':_0x1837d7(0x1bb),'getStarted':_0x1837d7(0x18a)},'validation':{'apiKeyRequired':_0x1837d7(0x1af),'apiKeyTooShort':_0x1837d7(0x18d),'invalidConfig':_0x1837d7(0x1a2),'invalidApiKey':_0x1837d7(0x1a6)},'connectionStatus':{'disconnected':_0x1837d7(0x198),'connecting':'Connecting...','connected':_0x1837d7(0x1bd),'failed':_0x1837d7(0x1a4),'retrying':_0x1837d7(0x1b6)},'connectionError':{'unauthorized':_0x1837d7(0x19b),'sessionOccupied':_0x1837d7(0x1a9),'networkError':_0x1837d7(0x18c),'maxRetriesExceeded':_0x1837d7(0x1ae)}}},n=e;export{n as default};function _0x34b2(){const _0x333520=['511605qbRnxc','Save\x20Configuration','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','93170jQOiig','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','MCP\x20Retrying...','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','1751022KrsAeR','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','196701nPlqNo','Session\x20ID','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','556059vVbeLM','MCP\x20Unknown\x20Status','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','Retrying...','Saving...','26033570NRdmPc','24RwQDPn','48YsbyDu','Univer\x20AI\x20Console','6366080YGEbmy','Connected','4VEtIKW','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x34b2=function(){return _0x333520;};return _0x34b2();}