@univerjs-pro/mcp-ui 0.16.1 → 0.17.0

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 (54) 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/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/plugin.d.ts +2 -0
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/sk-SK.js +1 -1
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +8 -8
@@ -1 +1 @@
1
- 'use strict';const _0x309719=_0x4ed8;(function(_0x3e2d79,_0x327f9c){const _0x2c7d53=_0x4ed8,_0x23ac07=_0x3e2d79();while(!![]){try{const _0x56992c=parseInt(_0x2c7d53(0x14c))/0x1+-parseInt(_0x2c7d53(0x13c))/0x2*(parseInt(_0x2c7d53(0x128))/0x3)+parseInt(_0x2c7d53(0x13b))/0x4*(parseInt(_0x2c7d53(0x144))/0x5)+parseInt(_0x2c7d53(0x138))/0x6*(parseInt(_0x2c7d53(0x136))/0x7)+parseInt(_0x2c7d53(0x133))/0x8*(parseInt(_0x2c7d53(0x141))/0x9)+-parseInt(_0x2c7d53(0x129))/0xa*(parseInt(_0x2c7d53(0x13e))/0xb)+-parseInt(_0x2c7d53(0x14f))/0xc;if(_0x56992c===_0x327f9c)break;else _0x23ac07['push'](_0x23ac07['shift']());}catch(_0x1ce249){_0x23ac07['push'](_0x23ac07['shift']());}}}(_0x2a2a,0x798d1));function _0x4ed8(_0xa01015,_0x502c90){_0xa01015=_0xa01015-0x126;const _0x2a2a03=_0x2a2a();let _0x4ed887=_0x2a2a03[_0xa01015];return _0x4ed887;}const e={'mcpStatus':{'disconnected':_0x309719(0x14b),'connecting':_0x309719(0x15c),'connected':_0x309719(0x13d),'failed':_0x309719(0x143),'retrying':_0x309719(0x146),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x309719(0x158),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20','networkError':_0x309719(0x12d),'maxRetriesExceeded':_0x309719(0x157),'clickToConnect':_0x309719(0x126),'clickToConfigure':_0x309719(0x12c)},'mcpConfig':{'title':'MCP\x20설정','description':_0x309719(0x149),'apiKey':_0x309719(0x156),'apiKeyPlaceholder':_0x309719(0x139),'apiKeyHint':_0x309719(0x14e),'enableAuth':_0x309719(0x153),'enableAuthHint':_0x309719(0x151),'connectionInfo':_0x309719(0x140),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x309719(0x12b),'configStepTitle':_0x309719(0x130),'configStep1':_0x309719(0x137),'configStep2':_0x309719(0x135),'configStep3':_0x309719(0x159),'sessionId':'세션\x20ID','sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':_0x309719(0x15a),'configParameters':'설정\x20매개변수:','maxRetries':_0x309719(0x134),'save':_0x309719(0x155),'saving':_0x309719(0x132),'note1':_0x309719(0x147),'note2':_0x309719(0x154),'configSaved':_0x309719(0x14d),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x309719(0x148),'univerAiLabel':_0x309719(0x131),'getStarted':_0x309719(0x150)},'validation':{'apiKeyRequired':_0x309719(0x152),'apiKeyTooShort':_0x309719(0x12a),'invalidConfig':_0x309719(0x13a),'invalidApiKey':_0x309719(0x15b)},'connectionStatus':{'disconnected':_0x309719(0x14a),'connecting':_0x309719(0x12f),'connected':'연결됨','failed':_0x309719(0x13f),'retrying':_0x309719(0x127)},'connectionError':{'unauthorized':_0x309719(0x145),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x309719(0x142),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x2a2a(){const _0x6ee73c=['MCP\x20연결\x20실패','65UBmZgd','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20재시도\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','연결\x20끊김','MCP\x20연결\x20끊김','36688LHRfFY','설정이\x20성공적으로\x20저장되었습니다','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','7357380jWrBps','몇\x20초\x20만에\x20API\x20키\x20발급받기','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20키는\x20필수입니다','인증\x20활성화','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장','API\x20키','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP:\x20인증되지\x20않음','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','Bearer\x20접두사가\x20있는\x20API\x20키.','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20연결\x20중...','클릭하여\x20MCP\x20연결','재시도\x20중...','129kqefud','1170ChHgNq','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','클릭하여\x20MCP\x20설정','MCP:\x20네트워크\x20오류','exports','연결\x20중...','설정\x20단계:','Univer\x20AI\x20콘솔','저장\x20중...','144472vAicXN','최대\x20재시도\x20횟수','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','5554003tEagSA','아래\x20JSON\x20설정\x20복사','6mLsvXG','API\x20키를\x20입력하세요','유효하지\x20않은\x20설정','204148OZIVWa','3638ULzkVG','MCP\x20연결됨','30316Hhwfpb','연결\x20실패','MCP\x20클라이언트\x20설정','9IZGBLF','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요'];_0x2a2a=function(){return _0x6ee73c;};return _0x2a2a();}module[_0x309719(0x12e)]=e;
1
+ 'use strict';const _0x7f8deb=_0x3f31;(function(_0x17e5f2,_0x77bb5b){const _0x568463=_0x3f31,_0x4e7e74=_0x17e5f2();while(!![]){try{const _0x2d22ac=-parseInt(_0x568463(0x17b))/0x1*(-parseInt(_0x568463(0x1a6))/0x2)+parseInt(_0x568463(0x198))/0x3+-parseInt(_0x568463(0x1ac))/0x4*(parseInt(_0x568463(0x186))/0x5)+parseInt(_0x568463(0x1ad))/0x6+-parseInt(_0x568463(0x1a0))/0x7+parseInt(_0x568463(0x18e))/0x8+parseInt(_0x568463(0x181))/0x9*(-parseInt(_0x568463(0x19f))/0xa);if(_0x2d22ac===_0x77bb5b)break;else _0x4e7e74['push'](_0x4e7e74['shift']());}catch(_0x4012db){_0x4e7e74['push'](_0x4e7e74['shift']());}}}(_0x351b,0xa5d18));function _0x351b(){const _0x51366a=['클릭하여\x20MCP\x20설정','유효하지\x20않은\x20설정','API\x20키','MCP\x20연결됨','연결\x20중...','5568336vwuxDQ','Bearer\x20접두사가\x20있는\x20API\x20키.','Univer\x20AI\x20콘솔','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','재시도\x20중...','최대\x20재시도\x20횟수','MCP\x20알\x20수\x20없는\x20상태','세션\x20ID','MCP\x20연결\x20실패','인증\x20활성화','3526050yLPKYX','설정\x20매개변수:','클릭하여\x20MCP\x20연결','MCP\x20설정','API\x20키란\x20무엇인가요?','API\x20키를\x20입력하세요','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','10QbmqrO','3305841cOwpPb','MCP\x20연결\x20중...','설정\x20단계:','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','671458zfTPDU','MCP\x20연결\x20끊김','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','연결\x20끊김','몇\x20초\x20만에\x20API\x20키\x20발급받기','저장\x20중...','4FzDFWC','2180628egXVfG','API\x20키는\x20필수입니다','1PvUmGI','설정\x20저장','MCP:\x20최대\x20재시도\x20횟수\x20초과','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20재시도\x20중...','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','12707631PtpFOG','설정\x20저장\x20실패','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','35725HvYbYu','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20클라이언트\x20설정'];_0x351b=function(){return _0x51366a;};return _0x351b();}function _0x3f31(_0x38b9af,_0x500bdb){_0x38b9af=_0x38b9af-0x17a;const _0x351bfb=_0x351b();let _0x3f319e=_0x351bfb[_0x38b9af];return _0x3f319e;}const e={'mcpStatus':{'disconnected':_0x7f8deb(0x1a7),'connecting':_0x7f8deb(0x1a1),'connected':_0x7f8deb(0x18c),'failed':_0x7f8deb(0x196),'retrying':_0x7f8deb(0x17f),'unknown':_0x7f8deb(0x194),'unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20','networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x7f8deb(0x17d),'clickToConnect':_0x7f8deb(0x19a),'clickToConfigure':_0x7f8deb(0x189)},'mcpConfig':{'title':_0x7f8deb(0x19b),'description':_0x7f8deb(0x19e),'apiKey':_0x7f8deb(0x18b),'apiKeyPlaceholder':_0x7f8deb(0x19d),'apiKeyHint':_0x7f8deb(0x1a8),'enableAuth':_0x7f8deb(0x197),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x7f8deb(0x188),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x7f8deb(0x191),'configStepTitle':_0x7f8deb(0x1a2),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x7f8deb(0x1a4),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x7f8deb(0x195),'sessionIdDescription':_0x7f8deb(0x1a3),'authorizationDescription':_0x7f8deb(0x18f),'configParameters':_0x7f8deb(0x199),'maxRetries':_0x7f8deb(0x193),'save':_0x7f8deb(0x17c),'saving':_0x7f8deb(0x1ab),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x7f8deb(0x184),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x7f8deb(0x182),'apiApplyInfo':{'title':_0x7f8deb(0x19c),'description':_0x7f8deb(0x180),'univerAiLabel':_0x7f8deb(0x190),'getStarted':_0x7f8deb(0x1aa)},'validation':{'apiKeyRequired':_0x7f8deb(0x17a),'apiKeyTooShort':_0x7f8deb(0x17e),'invalidConfig':_0x7f8deb(0x18a),'invalidApiKey':_0x7f8deb(0x187)},'connectionStatus':{'disconnected':_0x7f8deb(0x1a9),'connecting':_0x7f8deb(0x18d),'connected':'연결됨','failed':'연결\x20실패','retrying':_0x7f8deb(0x192)},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':_0x7f8deb(0x183),'networkError':_0x7f8deb(0x1a5),'maxRetriesExceeded':_0x7f8deb(0x185)}}};module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';const _0x34fadd=_0x9ba3;function _0x28fb(){const _0x3c2e90=['Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required','Connecting...','MCP\x20Client\x20Configuration','448wUKEgN','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9142pnAGKI','Configuration\x20Parameters:','Session\x20ID','Configuration\x20saved\x20successfully','4453764rjmiBd','MCP\x20Configuration','MCP\x20Disconnected','192642CTYcDn','MCP\x20Retrying...','MCP\x20Connected','66yzHVdI','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','12579678ICjobg','483254ztGdLi','MCP\x20Connection\x20Failed','96868vfEhWI','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','776480LxANoq','Connected','Retrying...','Connection\x20Failed'];_0x28fb=function(){return _0x3c2e90;};return _0x28fb();}(function(_0x8eef3,_0x212306){const _0x439a20=_0x9ba3,_0x51204b=_0x8eef3();while(!![]){try{const _0x27a039=-parseInt(_0x439a20(0x129))/0x1+-parseInt(_0x439a20(0x12f))/0x2+-parseInt(_0x439a20(0x12c))/0x3*(-parseInt(_0x439a20(0x131))/0x4)+-parseInt(_0x439a20(0x10c))/0x5+-parseInt(_0x439a20(0x126))/0x6+parseInt(_0x439a20(0x122))/0x7*(-parseInt(_0x439a20(0x11e))/0x8)+parseInt(_0x439a20(0x12e))/0x9;if(_0x27a039===_0x212306)break;else _0x51204b['push'](_0x51204b['shift']());}catch(_0x5c1a7d){_0x51204b['push'](_0x51204b['shift']());}}}(_0x28fb,0x804d1));function _0x9ba3(_0x421fec,_0x5e34d2){_0x421fec=_0x421fec-0x109;const _0x28fb1e=_0x28fb();let _0x9ba3d1=_0x28fb1e[_0x421fec];return _0x9ba3d1;}const e={'mcpStatus':{'disconnected':_0x34fadd(0x128),'connecting':_0x34fadd(0x111),'connected':_0x34fadd(0x12b),'failed':_0x34fadd(0x130),'retrying':_0x34fadd(0x12a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x34fadd(0x115),'clickToConfigure':_0x34fadd(0x132)},'mcpConfig':{'title':_0x34fadd(0x127),'description':_0x34fadd(0x12d),'apiKey':_0x34fadd(0x135),'apiKeyPlaceholder':_0x34fadd(0x11f),'apiKeyHint':_0x34fadd(0x121),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x34fadd(0x11d),'mcpClientConfig':_0x34fadd(0x11d),'configInstructions':_0x34fadd(0x112),'configStepTitle':_0x34fadd(0x118),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x34fadd(0x114),'configStep3':_0x34fadd(0x134),'sessionId':_0x34fadd(0x124),'sessionIdDescription':_0x34fadd(0x10a),'authorizationDescription':_0x34fadd(0x119),'configParameters':_0x34fadd(0x123),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x34fadd(0x116),'configSaved':_0x34fadd(0x125),'configError':_0x34fadd(0x113),'apiApplyInfo':{'title':_0x34fadd(0x10b),'description':_0x34fadd(0x120),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x34fadd(0x11b),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x34fadd(0x11a)},'connectionStatus':{'disconnected':_0x34fadd(0x109),'connecting':_0x34fadd(0x11c),'connected':_0x34fadd(0x10d),'failed':_0x34fadd(0x10f),'retrying':_0x34fadd(0x10e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x34fadd(0x117),'networkError':_0x34fadd(0x133),'maxRetriesExceeded':_0x34fadd(0x110)}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x550422=_0x3e57;(function(_0xaf05d0,_0x27ff1d){const _0x115730=_0x3e57,_0x5eba5a=_0xaf05d0();while(!![]){try{const _0x55820d=-parseInt(_0x115730(0x190))/0x1*(parseInt(_0x115730(0x198))/0x2)+parseInt(_0x115730(0x1a9))/0x3*(parseInt(_0x115730(0x1b5))/0x4)+-parseInt(_0x115730(0x1b2))/0x5+-parseInt(_0x115730(0x1a4))/0x6*(-parseInt(_0x115730(0x194))/0x7)+parseInt(_0x115730(0x192))/0x8*(parseInt(_0x115730(0x1b1))/0x9)+-parseInt(_0x115730(0x1a5))/0xa*(parseInt(_0x115730(0x1aa))/0xb)+-parseInt(_0x115730(0x19f))/0xc*(-parseInt(_0x115730(0x1b9))/0xd);if(_0x55820d===_0x27ff1d)break;else _0x5eba5a['push'](_0x5eba5a['shift']());}catch(_0x19cbcb){_0x5eba5a['push'](_0x5eba5a['shift']());}}}(_0x7df1,0x839ef));function _0x3e57(_0x3161c3,_0x137aed){_0x3161c3=_0x3161c3-0x18a;const _0x7df116=_0x7df1();let _0x3e57c5=_0x7df116[_0x3161c3];return _0x3e57c5;}const e={'mcpStatus':{'disconnected':_0x550422(0x18b),'connecting':_0x550422(0x1bb),'connected':_0x550422(0x1a2),'failed':_0x550422(0x18c),'retrying':_0x550422(0x1a0),'unknown':_0x550422(0x1ab),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x550422(0x1a7),'clickToConnect':_0x550422(0x1ad),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x550422(0x1b3),'description':_0x550422(0x1a3),'apiKey':_0x550422(0x18a),'apiKeyPlaceholder':_0x550422(0x18e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x550422(0x18d),'connectionInfo':_0x550422(0x1a8),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x550422(0x1a6),'configStep1':_0x550422(0x19a),'configStep2':_0x550422(0x193),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x550422(0x19e),'sessionIdDescription':_0x550422(0x1af),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x550422(0x1a1),'maxRetries':_0x550422(0x18f),'save':_0x550422(0x1b7),'saving':_0x550422(0x1b0),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x550422(0x1ae),'configError':_0x550422(0x1b8),'apiApplyInfo':{'title':_0x550422(0x19c),'description':_0x550422(0x191),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x550422(0x196)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x550422(0x1ba),'invalidApiKey':_0x550422(0x1b6)},'connectionStatus':{'disconnected':_0x550422(0x19b),'connecting':'Connecting...','connected':_0x550422(0x1ac),'failed':_0x550422(0x197),'retrying':_0x550422(0x195)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x550422(0x1b4),'networkError':_0x550422(0x199),'maxRetriesExceeded':_0x550422(0x19d)}}},n=e;function _0x7df1(){const _0x520739=['Click\x20to\x20connect\x20MCP','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','157401PpSHux','4108510QlNwoh','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','20788fjERZq','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','Failed\x20to\x20save\x20configuration','3196947RnyGSq','Invalid\x20configuration','MCP\x20Connecting...','API\x20Key','MCP\x20Disconnected','MCP\x20Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Max\x20Retries','257fyHEnt','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','24zGCQvj','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','6558713zTYRbg','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Connection\x20Failed','518UFSBWI','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','12EVdQOi','MCP\x20Retrying...','Configuration\x20Parameters:','MCP\x20Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','6WfWpIJ','1248530iSvNVf','Configuration\x20Steps:','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration','255xdmoSW','22YoeTDS','MCP\x20Unknown\x20Status','Connected'];_0x7df1=function(){return _0x520739;};return _0x7df1();}module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x489acc=_0x2e51;function _0x7b23(){const _0x5057fd=['MCP:\x20Neautorizované','1255owEOuX','Zadajte\x20svoj\x20API\x20kľúč','3vHyImG','Pripája\x20sa...','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Kliknite\x20na\x20konfiguráciu\x20MCP','MCP\x20opakuje\x20pokus...','Konfigurácia\x20MCP','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','MCP\x20neznámy\x20stav','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','MCP\x20odpojené','Konfigurácia\x20klienta\x20MCP','1TucyWn','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Kliknite\x20na\x20pripojenie\x20MCP','Povoliť\x20overenie','Pripojenie\x20MCP\x20zlyhalo','MCP\x20pripojené','ID\x20relácie','339966qfDvuW','12648WaxzAP','189030XiDYva','MCP\x20sa\x20pripája...','Čo\x20je\x20API\x20kľúč?','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','8992yGlAqe','Konfigurácia\x20bola\x20úspešne\x20uložená','Maximálny\x20počet\x20pokusov','Neplatná\x20konfigurácia','217KJFNEq','Ukladá\x20sa...','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','915150NusSGW','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','11uXsaCn','258064bbRqhK','Skúša\x20sa\x20znova...','403MjZbTl','Univer\x20AI\x20konzola','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','MCP:\x20Prekročený\x20počet\x20pokusov','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','3330dOMbes','exports','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Pripojenie\x20zlyhalo','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami'];_0x7b23=function(){return _0x5057fd;};return _0x7b23();}function _0x2e51(_0x3b85be,_0x5ec650){_0x3b85be=_0x3b85be-0x126;const _0x7b2321=_0x7b23();let _0x2e51eb=_0x7b2321[_0x3b85be];return _0x2e51eb;}(function(_0x1fa68e,_0x1bc650){const _0x25b7d9=_0x2e51,_0x5158b6=_0x1fa68e();while(!![]){try{const _0x30faeb=parseInt(_0x25b7d9(0x135))/0x1*(-parseInt(_0x25b7d9(0x13f))/0x2)+-parseInt(_0x25b7d9(0x128))/0x3*(parseInt(_0x25b7d9(0x14d))/0x4)+-parseInt(_0x25b7d9(0x126))/0x5*(-parseInt(_0x25b7d9(0x157))/0x6)+-parseInt(_0x25b7d9(0x147))/0x7*(-parseInt(_0x25b7d9(0x143))/0x8)+parseInt(_0x25b7d9(0x13d))/0x9+-parseInt(_0x25b7d9(0x14a))/0xa*(-parseInt(_0x25b7d9(0x14c))/0xb)+parseInt(_0x25b7d9(0x13e))/0xc*(-parseInt(_0x25b7d9(0x14f))/0xd);if(_0x30faeb===_0x1bc650)break;else _0x5158b6['push'](_0x5158b6['shift']());}catch(_0x999619){_0x5158b6['push'](_0x5158b6['shift']());}}}(_0x7b23,0x1b475));const e={'mcpStatus':{'disconnected':_0x489acc(0x133),'connecting':_0x489acc(0x140),'connected':_0x489acc(0x13b),'failed':_0x489acc(0x13a),'retrying':_0x489acc(0x12d),'unknown':_0x489acc(0x131),'unauthorized':_0x489acc(0x15c),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':'MCP:\x20Sieťová\x20chyba','maxRetriesExceeded':_0x489acc(0x155),'clickToConnect':_0x489acc(0x138),'clickToConfigure':_0x489acc(0x12c)},'mcpConfig':{'title':_0x489acc(0x12e),'description':_0x489acc(0x15b),'apiKey':'API\x20kľúč','apiKeyPlaceholder':_0x489acc(0x127),'apiKeyHint':_0x489acc(0x149),'enableAuth':_0x489acc(0x139),'enableAuthHint':_0x489acc(0x159),'connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':_0x489acc(0x134),'configInstructions':_0x489acc(0x142),'configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x489acc(0x136),'configStep2':_0x489acc(0x154),'configStep3':_0x489acc(0x156),'sessionId':_0x489acc(0x13c),'sessionIdDescription':_0x489acc(0x152),'authorizationDescription':_0x489acc(0x153),'configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x489acc(0x145),'save':'Uložiť\x20konfiguráciu','saving':_0x489acc(0x148),'note1':_0x489acc(0x14b),'note2':_0x489acc(0x132),'configSaved':_0x489acc(0x144),'configError':_0x489acc(0x151),'apiApplyInfo':{'title':_0x489acc(0x141),'description':_0x489acc(0x130),'univerAiLabel':_0x489acc(0x150),'getStarted':_0x489acc(0x12a)},'validation':{'apiKeyRequired':'API\x20kľúč\x20je\x20povinný','apiKeyTooShort':'API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','invalidConfig':_0x489acc(0x146),'invalidApiKey':_0x489acc(0x137)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x489acc(0x129),'connected':'Pripojené','failed':_0x489acc(0x15a),'retrying':_0x489acc(0x14e)},'connectionError':{'unauthorized':_0x489acc(0x12b),'sessionOccupied':'ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','networkError':'Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','maxRetriesExceeded':_0x489acc(0x12f)}}};module[_0x489acc(0x158)]=e;
1
+ 'use strict';const _0x1e0adc=_0x3c06;(function(_0x47d668,_0x5bea31){const _0x266c79=_0x3c06,_0x219620=_0x47d668();while(!![]){try{const _0x4c2a9e=-parseInt(_0x266c79(0xf6))/0x1*(parseInt(_0x266c79(0xf3))/0x2)+parseInt(_0x266c79(0xd1))/0x3+parseInt(_0x266c79(0xf9))/0x4*(-parseInt(_0x266c79(0xe7))/0x5)+parseInt(_0x266c79(0xd7))/0x6+-parseInt(_0x266c79(0xdc))/0x7*(parseInt(_0x266c79(0xf7))/0x8)+parseInt(_0x266c79(0xed))/0x9+parseInt(_0x266c79(0xd9))/0xa;if(_0x4c2a9e===_0x5bea31)break;else _0x219620['push'](_0x219620['shift']());}catch(_0x27c4a0){_0x219620['push'](_0x219620['shift']());}}}(_0x24c6,0xeb1bc));function _0x3c06(_0x498bdc,_0x2edde8){_0x498bdc=_0x498bdc-0xc9;const _0x24c684=_0x24c6();let _0x3c06bd=_0x24c684[_0x498bdc];return _0x3c06bd;}function _0x24c6(){const _0x32703b=['Univer\x20AI\x20konzola','ID\x20relácie','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Skúša\x20sa\x20znova...','18118FCpKbW','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Pripojenie\x20zlyhalo','211IjeITZ','6373936zOwzco','Pripojené','1852qfhWdd','Neplatná\x20konfigurácia','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Odpojené','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Pripojenie\x20MCP\x20zlyhalo','Ukladá\x20sa...','MCP:\x20Sieťová\x20chyba','MCP:\x20Neautorizované','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Konfigurácia\x20MCP','MCP\x20neznámy\x20stav','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Kroky\x20konfigurácie:','4066935XuZAwt','Kliknite\x20na\x20konfiguráciu\x20MCP','exports','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','API\x20kľúč\x20s\x20prefixom\x20Bearer.','8723796ppepKT','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','5487480gzXSsM','API\x20kľúč','MCP\x20pripojené','7WNjRex','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Konfigurácia\x20klienta\x20MCP','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Povoliť\x20overenie','MCP\x20sa\x20pripája...','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Maximálny\x20počet\x20pokusov','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Pripája\x20sa...','430YszauT','Parametre\x20konfigurácie:','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','MCP:\x20Prekročený\x20počet\x20pokusov','MCP\x20odpojené','Uložiť\x20konfiguráciu','3173886NZElOa'];_0x24c6=function(){return _0x32703b;};return _0x24c6();}const e={'mcpStatus':{'disconnected':_0x1e0adc(0xeb),'connecting':_0x1e0adc(0xe2),'connected':_0x1e0adc(0xdb),'failed':_0x1e0adc(0xff),'retrying':'MCP\x20opakuje\x20pokus...','unknown':_0x1e0adc(0xce),'unauthorized':_0x1e0adc(0xcb),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x1e0adc(0xca),'maxRetriesExceeded':_0x1e0adc(0xea),'clickToConnect':'Kliknite\x20na\x20pripojenie\x20MCP','clickToConfigure':_0x1e0adc(0xd2)},'mcpConfig':{'title':_0x1e0adc(0xcd),'description':_0x1e0adc(0xfe),'apiKey':_0x1e0adc(0xda),'apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x1e0adc(0xd5),'enableAuth':_0x1e0adc(0xe1),'enableAuthHint':_0x1e0adc(0xfb),'connectionInfo':_0x1e0adc(0xdf),'mcpClientConfig':_0x1e0adc(0xdf),'configInstructions':_0x1e0adc(0xf4),'configStepTitle':_0x1e0adc(0xd0),'configStep1':_0x1e0adc(0xe5),'configStep2':_0x1e0adc(0xfd),'configStep3':_0x1e0adc(0xe0),'sessionId':_0x1e0adc(0xef),'sessionIdDescription':'Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','authorizationDescription':_0x1e0adc(0xd6),'configParameters':_0x1e0adc(0xe8),'maxRetries':_0x1e0adc(0xe4),'save':_0x1e0adc(0xec),'saving':_0x1e0adc(0xc9),'note1':_0x1e0adc(0xe3),'note2':_0x1e0adc(0xf1),'configSaved':'Konfigurácia\x20bola\x20úspešne\x20uložená','configError':_0x1e0adc(0xdd),'apiApplyInfo':{'title':'Čo\x20je\x20API\x20kľúč?','description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':_0x1e0adc(0xee),'getStarted':_0x1e0adc(0xcc)},'validation':{'apiKeyRequired':'API\x20kľúč\x20je\x20povinný','apiKeyTooShort':_0x1e0adc(0xe9),'invalidConfig':_0x1e0adc(0xfa),'invalidApiKey':_0x1e0adc(0xf0)},'connectionStatus':{'disconnected':_0x1e0adc(0xfc),'connecting':_0x1e0adc(0xe6),'connected':_0x1e0adc(0xf8),'failed':_0x1e0adc(0xf5),'retrying':_0x1e0adc(0xf2)},'connectionError':{'unauthorized':_0x1e0adc(0xde),'sessionOccupied':_0x1e0adc(0xd8),'networkError':_0x1e0adc(0xcf),'maxRetriesExceeded':_0x1e0adc(0xd4)}}};module[_0x1e0adc(0xd3)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x573a42=_0x2a63;function _0x5a0e(){const _0x5449ca=['MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Nhấp\x20để\x20cấu\x20hình\x20MCP','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','393034iEdqBT','Yêu\x20cầu\x20khóa\x20API','Khóa\x20API\x20là\x20gì?','14686308wHmcUn','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Đang\x20thử\x20lại...','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Các\x20bước\x20cấu\x20hình:','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Đang\x20kết\x20nối...','29311887gImwjw','14733650XaONXe','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','150800VfvhjP','MCP\x20Đang\x20thử\x20lại...','Cấu\x20hình\x20không\x20hợp\x20lệ','exports','2mUHvnv','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','797646BLoGcl','MCP:\x20Không\x20được\x20phép','Bật\x20xác\x20thực','Tham\x20số\x20cấu\x20hình:','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Bảng\x20điều\x20khiển\x20Univer\x20AI','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Lưu\x20cấu\x20hình\x20thất\x20bại','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','322qDUiFm','Nhập\x20khóa\x20API\x20của\x20bạn','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Kết\x20nối\x20thất\x20bại','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Khóa\x20API','MCP\x20Đã\x20kết\x20nối','55vTLLfv','1900nBeuun','Cấu\x20hình\x20máy\x20khách\x20MCP','Đã\x20ngắt\x20kết\x20nối','Đã\x20kết\x20nối','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','8172hfMLXb','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Nhấp\x20để\x20kết\x20nối\x20MCP','MCP\x20Đã\x20ngắt\x20kết\x20nối','Đang\x20lưu...'];_0x5a0e=function(){return _0x5449ca;};return _0x5a0e();}(function(_0x141fb9,_0x259444){const _0x5649d5=_0x2a63,_0x5971e8=_0x141fb9();while(!![]){try{const _0x3ad429=parseInt(_0x5649d5(0x147))/0x1*(parseInt(_0x5649d5(0x135))/0x2)+parseInt(_0x5649d5(0x12c))/0x3*(-parseInt(_0x5649d5(0x15d))/0x4)+parseInt(_0x5649d5(0x15c))/0x5*(parseInt(_0x5649d5(0x14a))/0x6)+-parseInt(_0x5649d5(0x154))/0x7*(-parseInt(_0x5649d5(0x143))/0x8)+-parseInt(_0x5649d5(0x138))/0x9+-parseInt(_0x5649d5(0x141))/0xa+parseInt(_0x5649d5(0x140))/0xb;if(_0x3ad429===_0x259444)break;else _0x5971e8['push'](_0x5971e8['shift']());}catch(_0x205059){_0x5971e8['push'](_0x5971e8['shift']());}}}(_0x5a0e,0xf13dd));const n={'mcpStatus':{'disconnected':_0x573a42(0x130),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x573a42(0x15b),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':_0x573a42(0x144),'unknown':_0x573a42(0x134),'unauthorized':_0x573a42(0x14b),'sessionOccupied':_0x573a42(0x132),'networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':_0x573a42(0x12e),'clickToConnect':_0x573a42(0x12f),'clickToConfigure':_0x573a42(0x133)},'mcpConfig':{'title':'Cấu\x20hình\x20MCP','description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x573a42(0x15a),'apiKeyPlaceholder':_0x573a42(0x155),'apiKeyHint':_0x573a42(0x13a),'enableAuth':_0x573a42(0x14c),'enableAuthHint':_0x573a42(0x13e),'connectionInfo':_0x573a42(0x15e),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x573a42(0x159),'configStepTitle':_0x573a42(0x13d),'configStep1':_0x573a42(0x142),'configStep2':_0x573a42(0x148),'configStep3':_0x573a42(0x12d),'sessionId':'ID\x20phiên','sessionIdDescription':_0x573a42(0x13c),'authorizationDescription':_0x573a42(0x157),'configParameters':_0x573a42(0x14d),'maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':'Lưu\x20cấu\x20hình','saving':_0x573a42(0x131),'note1':_0x573a42(0x12a),'note2':_0x573a42(0x12b),'configSaved':_0x573a42(0x153),'configError':_0x573a42(0x151),'apiApplyInfo':{'title':_0x573a42(0x137),'description':_0x573a42(0x156),'univerAiLabel':_0x573a42(0x14f),'getStarted':_0x573a42(0x150)},'validation':{'apiKeyRequired':_0x573a42(0x136),'apiKeyTooShort':_0x573a42(0x139),'invalidConfig':_0x573a42(0x145),'invalidApiKey':_0x573a42(0x152)},'connectionStatus':{'disconnected':_0x573a42(0x15f),'connecting':_0x573a42(0x13f),'connected':_0x573a42(0x129),'failed':_0x573a42(0x158),'retrying':_0x573a42(0x13b)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':_0x573a42(0x149),'networkError':_0x573a42(0x14e),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};function _0x2a63(_0x5711b6,_0x5d0642){_0x5711b6=_0x5711b6-0x129;const _0x5a0eff=_0x5a0e();let _0x2a635d=_0x5a0eff[_0x5711b6];return _0x2a635d;}module[_0x573a42(0x146)]=n;
1
+ 'use strict';const _0xca96dd=_0x3c17;function _0xe677(){const _0x2b387c=['MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Cấu\x20hình\x20máy\x20khách\x20MCP','exports','Kết\x20nối\x20thất\x20bại','Nhấp\x20để\x20cấu\x20hình\x20MCP','9pjYXVk','Nhấp\x20để\x20kết\x20nối\x20MCP','10685210cXPNIQ','MCP\x20Đang\x20thử\x20lại...','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Khóa\x20API','1036866MiBnVr','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','Đã\x20ngắt\x20kết\x20nối','ID\x20phiên','Lưu\x20cấu\x20hình\x20thất\x20bại','MCP\x20Đang\x20kết\x20nối...','Đang\x20lưu...','MCP\x20Kết\x20nối\x20thất\x20bại','1278857HGqQYk','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20b','4407224JRrbRQ','12YgemJH','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','189148xIXwFS','Cấu\x20hình\x20MCP','Khóa\x20API\x20là\x20gì?','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP:\x20Không\x20được\x20phép','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Lưu\x20cấu\x20hình','Bật\x20xác\x20thực','MCP\x20Đã\x20kết\x20nối','419310SgavTj','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Đã\x20kết\x20nối','Tham\x20số\x20cấu\x20hình:','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Đang\x20kết\x20nối...','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Các\x20bước\x20cấu\x20hình:','1533550xUPWJE','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Nhập\x20khóa\x20API\x20của\x20bạn','14DqnXNM','MCP:\x20Lỗi\x20mạng','MCP\x20Đã\x20ngắt\x20kết\x20nối'];_0xe677=function(){return _0x2b387c;};return _0xe677();}(function(_0x21ff31,_0x261116){const _0x5770ad=_0x3c17,_0x5dd9bc=_0x21ff31();while(!![]){try{const _0x33c2b0=parseInt(_0x5770ad(0x1ad))/0x1+parseInt(_0x5770ad(0x1bd))/0x2+parseInt(_0x5770ad(0x1b0))/0x3*(parseInt(_0x5770ad(0x1b3))/0x4)+parseInt(_0x5770ad(0x1c6))/0x5+-parseInt(_0x5770ad(0x1a4))/0x6*(-parseInt(_0x5770ad(0x1c9))/0x7)+-parseInt(_0x5770ad(0x1af))/0x8+-parseInt(_0x5770ad(0x1d1))/0x9*(parseInt(_0x5770ad(0x1d3))/0xa);if(_0x33c2b0===_0x261116)break;else _0x5dd9bc['push'](_0x5dd9bc['shift']());}catch(_0x36ce88){_0x5dd9bc['push'](_0x5dd9bc['shift']());}}}(_0xe677,0xad7a8));function _0x3c17(_0x58e2dd,_0x17977d){_0x58e2dd=_0x58e2dd-0x1a3;const _0xe67788=_0xe677();let _0x3c1738=_0xe67788[_0x58e2dd];return _0x3c1738;}const n={'mcpStatus':{'disconnected':_0xca96dd(0x1cb),'connecting':_0xca96dd(0x1aa),'connected':_0xca96dd(0x1bc),'failed':_0xca96dd(0x1ac),'retrying':_0xca96dd(0x1d4),'unknown':_0xca96dd(0x1d5),'unauthorized':_0xca96dd(0x1b8),'sessionOccupied':_0xca96dd(0x1cc),'networkError':_0xca96dd(0x1ca),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':_0xca96dd(0x1d2),'clickToConfigure':_0xca96dd(0x1d0)},'mcpConfig':{'title':_0xca96dd(0x1b4),'description':_0xca96dd(0x1b1),'apiKey':_0xca96dd(0x1a3),'apiKeyPlaceholder':_0xca96dd(0x1c8),'apiKeyHint':_0xca96dd(0x1be),'enableAuth':_0xca96dd(0x1bb),'enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':_0xca96dd(0x1cd),'mcpClientConfig':_0xca96dd(0x1cd),'configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0xca96dd(0x1c5),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':'Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','sessionId':_0xca96dd(0x1a8),'sessionIdDescription':'Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':_0xca96dd(0x1c0),'maxRetries':_0xca96dd(0x1b7),'save':_0xca96dd(0x1ba),'saving':_0xca96dd(0x1ab),'note1':_0xca96dd(0x1b9),'note2':_0xca96dd(0x1ae),'configSaved':_0xca96dd(0x1c1),'configError':_0xca96dd(0x1a9),'apiApplyInfo':{'title':_0xca96dd(0x1b5),'description':_0xca96dd(0x1a6),'univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':_0xca96dd(0x1b2)},'validation':{'apiKeyRequired':'Yêu\x20cầu\x20khóa\x20API','apiKeyTooShort':_0xca96dd(0x1b6),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0xca96dd(0x1c2)},'connectionStatus':{'disconnected':_0xca96dd(0x1a7),'connecting':_0xca96dd(0x1c3),'connected':_0xca96dd(0x1bf),'failed':_0xca96dd(0x1cf),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0xca96dd(0x1a5),'sessionOccupied':_0xca96dd(0x1c7),'networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0xca96dd(0x1c4)}}};module[_0xca96dd(0x1ce)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0x3473(_0x5b0e4c,_0x4fe566){_0x5b0e4c=_0x5b0e4c-0x1c2;const _0x34c4dd=_0x34c4();let _0x347369=_0x34c4dd[_0x5b0e4c];return _0x347369;}const _0x265068=_0x3473;(function(_0x25d897,_0x560afb){const _0x2f91be=_0x3473,_0x18cb31=_0x25d897();while(!![]){try{const _0x2c4eb4=-parseInt(_0x2f91be(0x1e8))/0x1*(-parseInt(_0x2f91be(0x1e7))/0x2)+-parseInt(_0x2f91be(0x1e2))/0x3*(-parseInt(_0x2f91be(0x1d3))/0x4)+parseInt(_0x2f91be(0x1d8))/0x5+-parseInt(_0x2f91be(0x1d1))/0x6+-parseInt(_0x2f91be(0x1e4))/0x7+-parseInt(_0x2f91be(0x1ce))/0x8+-parseInt(_0x2f91be(0x1d7))/0x9;if(_0x2c4eb4===_0x560afb)break;else _0x18cb31['push'](_0x18cb31['shift']());}catch(_0x411566){_0x18cb31['push'](_0x18cb31['shift']());}}}(_0x34c4,0xdbf52));function _0x34c4(){const _0x5bdcee=['启用身份验证','配置保存失败','MCP\x20已连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','会话ID','请输入您的\x20API\x20密钥','Univer\x20AI\x20控制台','3llsmtm','连接中...','3699129VsBZVC','MCP\x20配置','MCP\x20连接中...','7852rQwIQt','283vzXGRO','会话\x20ID\x20已被占用,请稍后再试','什么是\x20API\x20密钥?','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20未授权','配置更改将立即生效','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20已断开','API\x20密钥无效,请检查密钥是否正确','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥长度至少需要\x2010\x20位','网络连接错误,请检查您的网络连接','配置参数:','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20客户端配置','配置保存成功','配置无效','配置步骤:','MCP\x20状态未知','MCP:\x20超出最大重试次数','1010640bhGRdF','exports','复制以下\x20JSON\x20配置','3118590UDVtoJ','超出最大重试次数,请稍后再试','3097268vhSpuP','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥不能为空','几秒钟内获取您的\x20API\x20密钥','11175120SHxYay','7158965WEByeq','连接失败','MCP\x20重连中...'];_0x34c4=function(){return _0x5bdcee;};return _0x34c4();}const e={'mcpStatus':{'disconnected':_0x265068(0x1f0),'connecting':_0x265068(0x1e6),'connected':_0x265068(0x1dd),'failed':'MCP\x20连接失败','retrying':_0x265068(0x1da),'unknown':_0x265068(0x1cc),'unauthorized':_0x265068(0x1ed),'sessionOccupied':_0x265068(0x1d4),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x265068(0x1cd),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x265068(0x1e5),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x265068(0x1e0),'apiKeyHint':_0x265068(0x1c7),'enableAuth':_0x265068(0x1db),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x265068(0x1c8),'mcpClientConfig':_0x265068(0x1c8),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x265068(0x1cb),'configStep1':_0x265068(0x1d0),'configStep2':_0x265068(0x1ef),'configStep3':_0x265068(0x1c3),'sessionId':_0x265068(0x1df),'sessionIdDescription':_0x265068(0x1de),'authorizationDescription':_0x265068(0x1eb),'configParameters':_0x265068(0x1c6),'maxRetries':'最大重试次数','save':'保存配置','saving':'保存中...','note1':_0x265068(0x1ee),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x265068(0x1c9),'configError':_0x265068(0x1dc),'apiApplyInfo':{'title':_0x265068(0x1ea),'description':_0x265068(0x1ec),'univerAiLabel':_0x265068(0x1e1),'getStarted':_0x265068(0x1d6)},'validation':{'apiKeyRequired':_0x265068(0x1d5),'apiKeyTooShort':_0x265068(0x1c4),'invalidConfig':_0x265068(0x1ca),'invalidApiKey':_0x265068(0x1c2)},'connectionStatus':{'disconnected':'未连接','connecting':_0x265068(0x1e3),'connected':'已连接','failed':_0x265068(0x1d9),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x265068(0x1e9),'networkError':_0x265068(0x1c5),'maxRetriesExceeded':_0x265068(0x1d2)}}};module[_0x265068(0x1cf)]=e;
1
+ 'use strict';function _0x1a69(_0x24eb0b,_0x6f13e){_0x24eb0b=_0x24eb0b-0x14c;const _0x3a6a3b=_0x3a6a();let _0x1a6981=_0x3a6a3b[_0x24eb0b];return _0x1a6981;}const _0x35fb64=_0x1a69;(function(_0x586237,_0x284b28){const _0x4245bc=_0x1a69,_0x1d191a=_0x586237();while(!![]){try{const _0x844ead=-parseInt(_0x4245bc(0x171))/0x1+parseInt(_0x4245bc(0x177))/0x2*(-parseInt(_0x4245bc(0x16e))/0x3)+-parseInt(_0x4245bc(0x167))/0x4*(parseInt(_0x4245bc(0x166))/0x5)+-parseInt(_0x4245bc(0x154))/0x6*(parseInt(_0x4245bc(0x163))/0x7)+parseInt(_0x4245bc(0x17c))/0x8*(-parseInt(_0x4245bc(0x158))/0x9)+parseInt(_0x4245bc(0x173))/0xa+parseInt(_0x4245bc(0x15e))/0xb;if(_0x844ead===_0x284b28)break;else _0x1d191a['push'](_0x1d191a['shift']());}catch(_0x2c1ccc){_0x1d191a['push'](_0x1d191a['shift']());}}}(_0x3a6a,0x69204));const e={'mcpStatus':{'disconnected':_0x35fb64(0x157),'connecting':'MCP\x20连接中...','connected':_0x35fb64(0x156),'failed':_0x35fb64(0x160),'retrying':_0x35fb64(0x16d),'unknown':_0x35fb64(0x155),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x35fb64(0x179),'networkError':_0x35fb64(0x165),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x35fb64(0x153),'clickToConfigure':_0x35fb64(0x15d)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x35fb64(0x16c),'apiKeyHint':_0x35fb64(0x16a),'enableAuth':_0x35fb64(0x162),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x35fb64(0x172),'mcpClientConfig':_0x35fb64(0x172),'configInstructions':_0x35fb64(0x15b),'configStepTitle':_0x35fb64(0x15a),'configStep1':_0x35fb64(0x169),'configStep2':_0x35fb64(0x150),'configStep3':_0x35fb64(0x15c),'sessionId':'会话ID','sessionIdDescription':_0x35fb64(0x14c),'authorizationDescription':_0x35fb64(0x14d),'configParameters':'配置参数:','maxRetries':_0x35fb64(0x176),'save':_0x35fb64(0x17d),'saving':_0x35fb64(0x151),'note1':_0x35fb64(0x16b),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x35fb64(0x17a),'configError':_0x35fb64(0x175),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x35fb64(0x164),'univerAiLabel':_0x35fb64(0x16f),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x35fb64(0x159),'apiKeyTooShort':_0x35fb64(0x15f),'invalidConfig':_0x35fb64(0x168),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x35fb64(0x178),'connecting':_0x35fb64(0x17b),'connected':'已连接','failed':_0x35fb64(0x14e),'retrying':_0x35fb64(0x152)},'connectionError':{'unauthorized':_0x35fb64(0x170),'sessionOccupied':_0x35fb64(0x14f),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x35fb64(0x161)}}};module[_0x35fb64(0x174)]=e;function _0x3a6a(){const _0x260a11=['MCP\x20客户端配置','3987120EXlvnH','exports','配置保存失败','最大重试次数','12MHhUpB','未连接','MCP:\x20会话\x20ID\x20已被占用','配置保存成功','连接中...','8QbpLsL','保存配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','带有\x20Bearer\x20前缀的\x20API\x20密钥。','连接失败','会话\x20ID\x20已被占用,请稍后再试','将配置添加到您的\x20MCP\x20客户端设置文件中','保存中...','重连中...','点击连接\x20MCP','4522008bikRqu','MCP\x20状态未知','MCP\x20已连接','MCP\x20已断开','3782421ejBAAT','API\x20密钥不能为空','配置步骤:','将以下配置添加到您的\x20MCP\x20客户端设置中:','重启您的\x20MCP\x20客户端以使配置生效','点击配置\x20MCP','21379941KwTUTg','API\x20密钥长度至少需要\x2010\x20位','MCP\x20连接失败','超出最大重试次数,请稍后再试','启用身份验证','7tzoHkk','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20网络错误','2750MGbAeC','2792kugjkW','配置无效','复制以下\x20JSON\x20配置','您的\x20API\x20密钥将在此浏览器中本地存储','配置更改将立即生效','请输入您的\x20API\x20密钥','MCP\x20重连中...','145419jeGSkf','Univer\x20AI\x20控制台','权限验证失败,请检查您的\x20API\x20密钥','63072aYXolu'];_0x3a6a=function(){return _0x260a11;};return _0x3a6a();}
@@ -1 +1 @@
1
- 'use strict';const _0x2f5994=_0x1702;(function(_0x32f279,_0xb9ca8d){const _0x300881=_0x1702,_0x26815c=_0x32f279();while(!![]){try{const _0x47afa6=-parseInt(_0x300881(0x1c2))/0x1*(parseInt(_0x300881(0x1b4))/0x2)+-parseInt(_0x300881(0x1d1))/0x3*(-parseInt(_0x300881(0x1e3))/0x4)+-parseInt(_0x300881(0x1e5))/0x5+-parseInt(_0x300881(0x1c0))/0x6+parseInt(_0x300881(0x1e2))/0x7+parseInt(_0x300881(0x1ba))/0x8*(parseInt(_0x300881(0x1b6))/0x9)+parseInt(_0x300881(0x1d2))/0xa*(parseInt(_0x300881(0x1df))/0xb);if(_0x47afa6===_0xb9ca8d)break;else _0x26815c['push'](_0x26815c['shift']());}catch(_0x1f66f5){_0x26815c['push'](_0x26815c['shift']());}}}(_0x670f,0xd3287));function _0x670f(){const _0x7cd815=['Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2018700hcRqhh','MCP\x20Connecting...','2VwPGfx','MCP\x20Disconnected','API\x20Key','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','21vIjOLU','2020oLgrvZ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Enable\x20Authentication','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20configuration','Univer\x20AI\x20Console','Connecting...','exports','16159TYdbQy','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','11552240dwsQBk','298580gMgPVv','Failed\x20to\x20save\x20configuration','5030520BYOQuK','Save\x20Configuration','Max\x20Retries','1040726ywLhrd','MCP\x20Connected','1401498yPLarI','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','40Foupaj'];_0x670f=function(){return _0x7cd815;};return _0x670f();}const e={'mcpStatus':{'disconnected':_0x2f5994(0x1c3),'connecting':_0x2f5994(0x1c1),'connected':_0x2f5994(0x1b5),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2f5994(0x1be),'unknown':_0x2f5994(0x1ce),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2f5994(0x1d5),'maxRetriesExceeded':_0x2f5994(0x1da),'clickToConnect':_0x2f5994(0x1c8),'clickToConfigure':_0x2f5994(0x1e0)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2f5994(0x1c6),'apiKey':_0x2f5994(0x1c4),'apiKeyPlaceholder':_0x2f5994(0x1d9),'apiKeyHint':_0x2f5994(0x1d7),'enableAuth':_0x2f5994(0x1d6),'enableAuthHint':_0x2f5994(0x1c9),'connectionInfo':_0x2f5994(0x1ca),'mcpClientConfig':_0x2f5994(0x1ca),'configInstructions':_0x2f5994(0x1cb),'configStepTitle':_0x2f5994(0x1c7),'configStep1':_0x2f5994(0x1bb),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2f5994(0x1cd),'sessionId':_0x2f5994(0x1b7),'sessionIdDescription':_0x2f5994(0x1d3),'authorizationDescription':_0x2f5994(0x1b8),'configParameters':_0x2f5994(0x1bd),'maxRetries':_0x2f5994(0x1e7),'save':_0x2f5994(0x1e6),'saving':'Saving...','note1':_0x2f5994(0x1d8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2f5994(0x1cc),'configError':_0x2f5994(0x1e4),'apiApplyInfo':{'title':_0x2f5994(0x1bc),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x2f5994(0x1dc),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2f5994(0x1c5),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2f5994(0x1db),'invalidApiKey':_0x2f5994(0x1bf)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2f5994(0x1dd),'connected':'Connected','failed':_0x2f5994(0x1b9),'retrying':_0x2f5994(0x1cf)},'connectionError':{'unauthorized':_0x2f5994(0x1d0),'sessionOccupied':_0x2f5994(0x1e1),'networkError':_0x2f5994(0x1d4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x1702(_0x297e23,_0x37ed0d){_0x297e23=_0x297e23-0x1b4;const _0x670fcc=_0x670f();let _0x1702c7=_0x670fcc[_0x297e23];return _0x1702c7;}module[_0x2f5994(0x1de)]=n;
1
+ 'use strict';const _0x1eddd8=_0x6a66;function _0x6a66(_0x56c907,_0x3c60f4){_0x56c907=_0x56c907-0x19e;const _0x227b96=_0x227b();let _0x6a6602=_0x227b96[_0x56c907];return _0x6a6602;}(function(_0x1b43c0,_0x2cdb21){const _0x1ea3a6=_0x6a66,_0x1a49fa=_0x1b43c0();while(!![]){try{const _0x4853c8=-parseInt(_0x1ea3a6(0x1a3))/0x1*(-parseInt(_0x1ea3a6(0x1cc))/0x2)+parseInt(_0x1ea3a6(0x1c4))/0x3*(parseInt(_0x1ea3a6(0x1aa))/0x4)+parseInt(_0x1ea3a6(0x1ab))/0x5*(-parseInt(_0x1ea3a6(0x1c2))/0x6)+-parseInt(_0x1ea3a6(0x1ba))/0x7+parseInt(_0x1ea3a6(0x1b3))/0x8+-parseInt(_0x1ea3a6(0x1a2))/0x9*(-parseInt(_0x1ea3a6(0x1c0))/0xa)+parseInt(_0x1ea3a6(0x19e))/0xb*(-parseInt(_0x1ea3a6(0x1ce))/0xc);if(_0x4853c8===_0x2cdb21)break;else _0x1a49fa['push'](_0x1a49fa['shift']());}catch(_0x2b8668){_0x1a49fa['push'](_0x1a49fa['shift']());}}}(_0x227b,0xcc479));function _0x227b(){const _0x5223b9=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Steps:','API\x20Key','1372WEKgXG','Copy\x20the\x20JSON\x20configuration\x20below','4548MwFJZP','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','11297FXjZmf','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','13121721erQEgf','1004pRLLKM','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','Disconnected','Invalid\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connection\x20Failed','896788faxAPy','5ucvfPV','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','7077128OsgrRd','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','4521461KBSMgP','MCP\x20Client\x20Configuration','Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','MCP\x20Disconnected','10lbanap','exports','9647178yCFGij','Enable\x20authentication\x20for\x20secure\x20connections','6gcBLTG','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.'];_0x227b=function(){return _0x5223b9;};return _0x227b();}const e={'mcpStatus':{'disconnected':_0x1eddd8(0x1bf),'connecting':_0x1eddd8(0x1ae),'connected':'MCP\x20Connected','failed':_0x1eddd8(0x1a9),'retrying':_0x1eddd8(0x1b4),'unknown':_0x1eddd8(0x1b8),'unauthorized':_0x1eddd8(0x1b7),'sessionOccupied':_0x1eddd8(0x1c6),'networkError':_0x1eddd8(0x1c5),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1eddd8(0x1b9),'clickToConfigure':_0x1eddd8(0x19f)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1eddd8(0x1cb),'apiKeyPlaceholder':_0x1eddd8(0x1b6),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1eddd8(0x1cf),'enableAuthHint':_0x1eddd8(0x1c3),'connectionInfo':_0x1eddd8(0x1bb),'mcpClientConfig':_0x1eddd8(0x1bb),'configInstructions':_0x1eddd8(0x1a4),'configStepTitle':_0x1eddd8(0x1ca),'configStep1':_0x1eddd8(0x1cd),'configStep2':_0x1eddd8(0x1b2),'configStep3':_0x1eddd8(0x1bd),'sessionId':_0x1eddd8(0x1b1),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1eddd8(0x1c8),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x1eddd8(0x1af),'note1':_0x1eddd8(0x1c9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1eddd8(0x1ac),'configError':_0x1eddd8(0x1a1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1eddd8(0x1a8),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1eddd8(0x1b5)},'validation':{'apiKeyRequired':_0x1eddd8(0x1be),'apiKeyTooShort':_0x1eddd8(0x1d0),'invalidConfig':_0x1eddd8(0x1a7),'invalidApiKey':_0x1eddd8(0x1a0)},'connectionStatus':{'disconnected':_0x1eddd8(0x1a6),'connecting':'Connecting...','connected':_0x1eddd8(0x1a5),'failed':_0x1eddd8(0x1bc),'retrying':_0x1eddd8(0x1d1)},'connectionError':{'unauthorized':_0x1eddd8(0x1c7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1eddd8(0x1ad),'maxRetriesExceeded':_0x1eddd8(0x1b0)}}},n=e;module[_0x1eddd8(0x1c1)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x40ccc8=_0x2802;(function(_0x16cb73,_0x3b804a){const _0x54a0ca=_0x2802,_0x1b35f5=_0x16cb73();while(!![]){try{const _0x10dcb3=parseInt(_0x54a0ca(0x2aa))/0x1+parseInt(_0x54a0ca(0x1c3))/0x2*(-parseInt(_0x54a0ca(0x256))/0x3)+parseInt(_0x54a0ca(0x201))/0x4*(parseInt(_0x54a0ca(0x1ee))/0x5)+parseInt(_0x54a0ca(0x21f))/0x6*(parseInt(_0x54a0ca(0x2f1))/0x7)+parseInt(_0x54a0ca(0x2b0))/0x8+parseInt(_0x54a0ca(0x1d6))/0x9+-parseInt(_0x54a0ca(0x20d))/0xa*(parseInt(_0x54a0ca(0x2e7))/0xb);if(_0x10dcb3===_0x3b804a)break;else _0x1b35f5['push'](_0x1b35f5['shift']());}catch(_0x4f8158){_0x1b35f5['push'](_0x1b35f5['shift']());}}}(_0x131e,0xa5eaf));function _0x131e(){const _0x51bf0d=['_initializeMenus','1266738xnbMXP','_configService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_commandService','mcpConfig.validation.invalidApiKey','univer-flex-1','3785312TtgmZo','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','off-line-icon_clip0_910_343','univer-shrink-0\x20univer-text-red-500','univer-text-red-500','univer.ai','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-space-y-5','Max\x20Retries','tag','_loadStoredApiKey','mcpConfig.saving','http','MCP\x20Connecting...','https://console.univer.plus','error','_registerComponent','apiKey','currentColor','map','validateApiKey','Connection\x20Failed','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','mcpConfig.configStep2','_localStorageService','Univer\x20AI\x20控制台','SESSION_ID_OCCUPIED','MCP\x20Retrying...','displayName','_localeService','MCP:\x20未授权','warn','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','CheckMarkIcon','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','show','_initAutoConnect','_apiKey$','mcpConfig.validation.invalidConfig','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-green-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','权限验证失败,请检查您的\x20API\x20密钥','setItem','mcpConfig.apiApplyInfo.description','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.configError','substring','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','round','mcpConfig.authorizationDescription','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20已连接','open','UNAUTHORIZED','5093jvFYRt','onStarting','_validateConfig','MCP:\x20Max\x20Retries\x20Exceeded','univer-space-y-2','_handleConfigSave','includes','on-line-icon_clip0_910_349','mcpConfig.configInstructions','会话ID','4718dPITvX','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-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','M0\x200H16V16H0z','MCP\x20客户端配置','_connectionController','MCP\x20Connected','_initializeCommands','defs','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','MCP:\x20Network\x20Error','最大重试次数','univer-bg-green-500','close-icon','univer-text-white','replace','mcpStatus.failed','API\x20Key','MCP\x20Connection\x20Failed','none','fill','mcpStatus.retrying','UniverIcon','\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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','您的\x20API\x20密钥将在此浏览器中本地存储','Enable\x20Authentication','bottom','getCurrentConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','RETRYING','url(#on-line-icon_clip0_910_349)','Univer\x20AI\x20Console','242242ktiebE','isValid','mcpConfig.connectionStatus.connecting','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mergeMenu','mcp-ui.config','toString','removeItem','univer.plus','MCP\x20连接中...','clipPath','univer-text-gray-500','mcpConfig.sessionIdDescription','mcpStatus.unauthorized','API\x20密钥','API\x20密钥不能为空','mcpConfig.note1','has','evenodd','12027591gGPJXA','connectionStatus$','univer-text-gray-400','<SESSION_ID>','get','几秒钟内获取您的\x20API\x20密钥','univer-bg-gray-500','mcpConfig.note2','_initConfigSync','Configuration\x20Steps:','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','HEADER_MENU','配置步骤:','string','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_blank','close','mcpConfig.configStep3','univer-flex\x20univer-items-center','NETWORK_ERROR','Disconnected','重连中...','mcpConfig.connectionStatus.disconnected','31305RKttrC','mcpConfig.connectionInfo','xlink:href','univer-text-xs\x20univer-text-gray-500','pre','MCPConfigPanel','Configuration\x20Notes:','\x20-\x20','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','button','mcpStatus.connected','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','_messageService','Connected','univer-space-y-3','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','mcpConfig.configParameters','636RccFSm','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStepTitle','length','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','_dialogService','mcpConfig.apiApplyInfo.title','assign','showStatus','_logService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.connectionError.sessionOccupied','76900VBIbWG','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','use','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.apiKey','<API_KEY>','forEach','mask','univer-flex\x20univer-gap-3','errorMessage','MCP\x20Client\x20Configuration','univer-mr-2\x20univer-flex\x20univer-text-xl','_injector','idSuffix','url(#$1','getConfig','univer-min-w-0\x20univer-flex-1','11202OtuGMu','defIds','MCP:\x20Unauthorized','_config','mcpConfig.configSaved','disposeWithMe','subscribeConfigValue$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.maxRetriesExceeded','_menuManagerService','univer-space-y-4','attrs','svg','_componentManager','https://console.univer.ai','mcpConfig.connectionError.maxRetriesExceeded','NONE','mcpStatus.clickToConfigure','Bearer\x20','register','MCP\x20Configuration','mcpConfig.validation.apiKeyTooShort','on-line-icon','OTHERS','_handleConfigure','path','showConfigPanel','OffLineIcon','MCP:\x20会话\x20ID\x20已被占用','启用身份验证','mcpConfig.configStep1','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpServerUrl','univer-flex\x20univer-items-start\x20univer-gap-2','Configuration\x20Parameters:','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-sm\x20univer-font-medium','univer-shrink-0\x20univer-text-blue-500','span','Retrying...','Click\x20to\x20configure\x20MCP','Error','univer-flex\x20univer-items-center\x20univer-gap-3','label','Connecting...','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','value','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','配置参数:','DISCONNECTED','__setCustomHeaders','0\x200\x2017\x2016','MCP\x20Unknown\x20Status','univer-flex\x20univer-flex-wrap\x20univer-gap-2','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','27YZnNAF','Saving...','registerCommand','MCP\x20状态未知','复制以下\x20JSON\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','http://www.w3.org/2000/svg','univer_session_id:','1em','enableAutoConnect','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20Session\x20ID\x20Occupied','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20key\x20is\x20required','current','_initStatusComponent','配置保存失败','mcpConfig.connectionError.unauthorized','点击配置\x20MCP','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.save','FAILED','0\x200\x2016\x2016','stringify','保存配置','mcpStatus.clickToConnect','getOwnPropertyDescriptor','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','_config$','MAX_RETRIES_EXCEEDED','univer-bg-red-500','univer-text-blue-600','Configuration\x20saved\x20successfully','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20Disconnected','mcpConfig.apiKeyPlaceholder','next','MCP\x20重连中...','连接中...','connectionError$','API\x20密钥无效,请检查密钥是否正确','add','univer-size-4','white','getItem','push','_uiPartsService','_mcpConnectionController','symbol','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','CONNECTING','univer-size-2\x20univer-rounded-full','noopener\x20noreferrer','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.title','mcpStatus.unknown','您的\x20API\x20密钥安全存储在本地存储中','mcp-ui.command.openConfigPanel','div','trim','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','defineProperty','HelpIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.disconnected','将以下配置添加到您的\x20MCP\x20客户端设置中:','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','CloseIcon','配置\x20MCP\x20使用\x20AI\x20操作电子表格','CONNECTED','subscribe','_createConfigPanelComponent','Session\x20ID','check-mark-icon','showDeveloperTools','mcpStatus.networkError','配置无效','会话\x20ID\x20已被占用,请稍后再试','_loading$'];_0x131e=function(){return _0x51bf0d;};return _0x131e();}var Pe=Object[_0x40ccc8(0x297)],Ee=(_0x13fd15,_0x36fc0f,_0x27a5c0)=>_0x36fc0f in _0x13fd15?Pe(_0x13fd15,_0x36fc0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27a5c0}):_0x13fd15[_0x36fc0f]=_0x27a5c0,x=(_0x51d97f,_0x30c0ff,_0x4d3cd8)=>Ee(_0x51d97f,typeof _0x30c0ff!=_0x40ccc8(0x286)?_0x30c0ff+'':_0x30c0ff,_0x4d3cd8);import{LocaleService as _0x107ca3,Inject as _0x1ca309,Injector as _0x3fe1d3,Disposable as _0x6acc8b,IConfigService as _0x1ebc76,ILocalStorageService as _0x4f2aff,ILogService as _0x388d5b,CommandType as _0x1d46da,ICommandService as _0x30479e,DependentOn as _0x8f0b0d,Plugin as _0x44ad04,merge as _0x43d2a8}from'@univerjs/core';import{jsxs as _0xee378a,jsx as _0x5b5ab4}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3ad37c,MCPConnectionError as _0x2e25a2,MCPConnectionController as _0x3eedd7,MCP_PLUGIN_CONFIG_KEY as _0x3c7cee,UniverMCPPlugin as _0x5deffb}from'@univerjs-pro/mcp';import{clsx as _0x3a4900,Input as _0x57b735,Button as _0x276e83,MessageType as _0x15cfd2,Tooltip as _0x2da013}from'@univerjs/design';import{useDependency as _0x41acb3,useObservable as _0x34587d,ComponentManager as _0x381966,connectInjector as _0x77b1a,IUIPartsService as _0x1ba609,IDialogService as _0x25d838,IMessageService as _0x2245a4,BuiltInUIPart as _0x1625f9,MenuItemType as _0x3da010,RibbonStartGroup as _0x3a8c60,IMenuManagerService as _0x3cba23}from'@univerjs/ui';import{BehaviorSubject as _0x520f03}from'rxjs';import{useRef as _0x6c42ea,createElement as _0x2f456f,forwardRef as _0xddccfe,useState as _0x4dc814,useCallback as _0x55100c}from'react';import{ISocketService as _0x36fae0,WebSocketService as _0x168f83}from'@univerjs/network';function b({ref:_0xb9f5fc,..._0x5ddbb3}){const _0x1607cf=_0x40ccc8,{icon:_0xcfb534,id:_0x2f160a,className:_0x45c6ea,extend:_0x37b1ea,..._0xcea507}=_0x5ddbb3,_0x199b48=('univerjs-icon\x20univerjs-icon-'+_0x2f160a+'\x20'+(_0x45c6ea||''))['trim'](),_0x2a0096=_0x6c42ea('_'+We());return ae(_0xcfb534,''+_0x2f160a,{'defIds':_0xcfb534[_0x1607cf(0x220)],'idSuffix':_0x2a0096[_0x1607cf(0x264)]},{'ref':_0xb9f5fc,'className':_0x199b48,..._0xcea507},_0x37b1ea);}function ae(_0x5f2dd8,_0x21b5b5,_0x5ab0bf,_0x888865,_0x358f06){const _0x550c35=_0x40ccc8;return _0x2f456f(_0x5f2dd8[_0x550c35(0x2b9)],{'key':_0x21b5b5,...Ye(_0x5f2dd8,_0x5ab0bf,_0x358f06),..._0x888865},(Ze(_0x5f2dd8,_0x5ab0bf)['children']||[])[_0x550c35(0x2c3)]((_0x4b05b4,_0x4578cb)=>ae(_0x4b05b4,_0x21b5b5+'-'+_0x5f2dd8['tag']+'-'+_0x4578cb,_0x5ab0bf,void 0x0,_0x358f06)));}function Ye(_0xb50425,_0x37b960,_0x168f69){const _0x57fe24=_0x40ccc8,_0x186ad8={..._0xb50425[_0x57fe24(0x22a)]};_0x168f69!=null&&_0x168f69['colorChannel1']&&_0x186ad8[_0x57fe24(0x306)]===_0x57fe24(0x1e0)&&(_0x186ad8[_0x57fe24(0x306)]=_0x168f69[_0x57fe24(0x1e0)]),_0xb50425['tag']===_0x57fe24(0x215)&&_0x186ad8['id']&&(_0x186ad8['id']=_0x186ad8['id']+_0x37b960[_0x57fe24(0x21b)]),Object['entries'](_0x186ad8)['forEach'](([_0x328b79,_0x331235])=>{const _0x5b3db7=_0x57fe24;_0x328b79==='mask'&&typeof _0x331235==_0x5b3db7(0x1e4)&&(_0x186ad8[_0x328b79]=_0x331235[_0x5b3db7(0x301)](/url\(#(.*)\)/,_0x5b3db7(0x21c)+_0x37b960[_0x5b3db7(0x21b)]+')'));});const {defIds:_0x328a74}=_0x37b960;return!_0x328a74||_0x328a74[_0x57fe24(0x204)]===0x0||(_0xb50425['tag']===_0x57fe24(0x210)&&_0x186ad8[_0x57fe24(0x1f0)]&&(_0x186ad8[_0x57fe24(0x1f0)]=_0x186ad8[_0x57fe24(0x1f0)]+_0x37b960[_0x57fe24(0x21b)]),Object['entries'](_0x186ad8)[_0x57fe24(0x214)](([_0x3938b3,_0x5302a1])=>{const _0x5a0010=_0x57fe24;typeof _0x5302a1==_0x5a0010(0x1e4)&&(_0x186ad8[_0x3938b3]=_0x5302a1[_0x5a0010(0x301)](/url\(#(.*)\)/,_0x5a0010(0x21c)+_0x37b960[_0x5a0010(0x21b)]+')'));})),_0x186ad8;}function Ze(_0x3bc1d1,_0x4b8dd6){const _0x326a14=_0x40ccc8;var _0xf1bdf1;const {defIds:_0x2d4bc4}=_0x4b8dd6;return!_0x2d4bc4||_0x2d4bc4['length']===0x0?_0x3bc1d1:_0x3bc1d1[_0x326a14(0x2b9)]===_0x326a14(0x2fa)&&((_0xf1bdf1=_0x3bc1d1['children'])!=null&&_0xf1bdf1[_0x326a14(0x204)])?{..._0x3bc1d1,'children':_0x3bc1d1['children'][_0x326a14(0x2c3)](_0xb4f385=>typeof _0xb4f385['attrs']['id']==_0x326a14(0x1e4)&&_0x2d4bc4&&_0x2d4bc4[_0x326a14(0x2ed)](_0xb4f385[_0x326a14(0x22a)]['id'])?{..._0xb4f385,'attrs':{..._0xb4f385['attrs'],'id':_0xb4f385[_0x326a14(0x22a)]['id']+_0x4b8dd6[_0x326a14(0x21b)]}}:_0xb4f385)}:_0x3bc1d1;}function We(){const _0x12b052=_0x40ccc8;return Math['random']()[_0x12b052(0x1c9)](0x24)[_0x12b052(0x2df)](0x2,0x8);}b['displayName']=_0x40ccc8(0x308);const qe={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x40ccc8(0x305),'viewBox':_0x40ccc8(0x26c),'width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':'path','attrs':{'fill':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x25b),'fillRule':_0x40ccc8(0x1d5),'clipRule':_0x40ccc8(0x1d5)}}]},le=_0xddccfe(function(_0x518d99,_0x49f02d){const _0x21434f=_0x40ccc8;return _0x2f456f(b,Object[_0x21434f(0x208)]({},_0x518d99,{'id':_0x21434f(0x2a3),'ref':_0x49f02d,'icon':qe}));});le['displayName']=_0x40ccc8(0x2d1);const Xe={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x40ccc8(0x305),'viewBox':_0x40ccc8(0x26c),'width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x29c)}}]},ue=_0xddccfe(function(_0x73efde,_0x578bf2){const _0x3405a0=_0x40ccc8;return _0x2f456f(b,Object[_0x3405a0(0x208)]({},_0x73efde,{'id':_0x3405a0(0x2ff),'ref':_0x578bf2,'icon':Xe}));});ue[_0x40ccc8(0x2cc)]=_0x40ccc8(0x29d);const Je={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':_0x40ccc8(0x25c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'fill':'currentColor','d':_0x40ccc8(0x2c6)}},{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x205)}},{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x2c2),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x40ccc8(0x1d5)}}]},ve=_0xddccfe(function(_0x38a5bf,_0x140453){const _0xcce16b=_0x40ccc8;return _0x2f456f(b,Object[_0xcce16b(0x208)]({},_0x38a5bf,{'id':'help-icon','ref':_0x140453,'icon':Je}));});ve['displayName']=_0x40ccc8(0x298);const Qe={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':_0x40ccc8(0x25c),'fill':_0x40ccc8(0x305),'viewBox':'0\x200\x2016\x2016','width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'stroke':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x24e),'strokeLinecap':_0x40ccc8(0x2e1),'strokeLinejoin':_0x40ccc8(0x2e1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x40ccc8(0x1cd),'attrs':{'id':_0x40ccc8(0x2b2)},'children':[{'tag':'path','attrs':{'fill':_0x40ccc8(0x281),'d':_0x40ccc8(0x2f5)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0xddccfe(function(_0x3bd43d,_0x27bc12){const _0x1bc258=_0x40ccc8;return _0x2f456f(b,Object[_0x1bc258(0x208)]({},_0x3bd43d,{'id':'off-line-icon','ref':_0x27bc12,'icon':Qe}));});de[_0x40ccc8(0x2cc)]=_0x40ccc8(0x23a);const en={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':_0x40ccc8(0x25c),'fill':_0x40ccc8(0x305),'viewBox':_0x40ccc8(0x252),'width':_0x40ccc8(0x25e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x40ccc8(0x1c1)},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'stroke':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x1ff),'strokeLinecap':_0x40ccc8(0x2e1),'strokeLinejoin':_0x40ccc8(0x2e1),'strokeWidth':1.2}}]},{'tag':_0x40ccc8(0x2fa),'attrs':{},'children':[{'tag':_0x40ccc8(0x1cd),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x281),'d':_0x40ccc8(0x2f5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x40ccc8(0x2ee)]},ge=_0xddccfe(function(_0xdb79fc,_0x396279){const _0x3efc82=_0x40ccc8;return _0x2f456f(b,Object[_0x3efc82(0x208)]({},_0xdb79fc,{'id':_0x3efc82(0x235),'ref':_0x396279,'icon':en}));});ge[_0x40ccc8(0x2cc)]='OnLineIcon';function nn(_0x202157){const _0x165ae1=_0x40ccc8;var _0x19cb33,_0x4f2097;const {mcpCoreConfig:_0x2ffb26,onSave:_0x18fb59,loading:_0x3a3a4b=!0x1,config:_0x20daa4,connectionStatus$:_0x344681,connectionError$:_0x5bce4e,currentApiKey$:_0x547386,currentSessionId$:_0x411ebb}=_0x202157,_0x655f24=_0x41acb3(_0x107ca3),_0x2f2830=_0x34587d(_0x344681,_0x3ad37c[_0x165ae1(0x250)]),_0x5c1058=_0x34587d(_0x5bce4e,_0x2e25a2[_0x165ae1(0x22f)]),_0x57652b=_0x34587d(_0x411ebb,''),_0x1c5918=_0x34587d(_0x547386,''),[_0xb16823,_0x24a539]=_0x4dc814(_0x1c5918||''),_0x193a44=!0x0,_0x2fe0d5=_0x20daa4[_0x165ae1(0x2a4)]&&_0x2ffb26[_0x165ae1(0x23f)]&&(_0x2ffb26[_0x165ae1(0x23f)][_0x165ae1(0x2ed)](_0x165ae1(0x1cb))||_0x2ffb26['mcpServerUrl'][_0x165ae1(0x2ed)]('univer.ai')),_0x246e9b=(_0x19cb33=_0x2ffb26[_0x165ae1(0x23f)])==null?void 0x0:_0x19cb33[_0x165ae1(0x2ed)](_0x165ae1(0x1cb)),_0x33e623=(_0x4f2097=_0x2ffb26[_0x165ae1(0x23f)])==null?void 0x0:_0x4f2097[_0x165ae1(0x2ed)](_0x165ae1(0x2b5)),_0x2b792b=_0x246e9b?_0x165ae1(0x2be):_0x165ae1(0x22d),_0x16927f=_0x20daa4[_0x165ae1(0x2a4)]&&(_0x246e9b||_0x33e623),[_0x20a9ab,_0x24d693]=_0x4dc814(!_0xb16823[_0x165ae1(0x293)]()),_0x2f0daa=(_0x22e21e,_0x4060c3)=>{const _0x5f3cf3=_0x165ae1;if(_0x4060c3===_0x2e25a2[_0x5f3cf3(0x2e6)])return _0x5f3cf3(0x1f9);switch(_0x22e21e){case _0x3ad37c[_0x5f3cf3(0x29f)]:return _0x5f3cf3(0x2b6);case _0x3ad37c[_0x5f3cf3(0x288)]:case _0x3ad37c['RETRYING']:return _0x5f3cf3(0x2f3);case _0x3ad37c[_0x5f3cf3(0x26b)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x5f3cf3(0x20b);}},_0x1f76fe=(_0x2b6eec,_0x2117af)=>{const _0x18bbf2=_0x165ae1;if(_0x2117af===_0x2e25a2[_0x18bbf2(0x2e6)])return _0x18bbf2(0x274);switch(_0x2b6eec){case _0x3ad37c['CONNECTED']:return _0x18bbf2(0x2fe);case _0x3ad37c['CONNECTING']:case _0x3ad37c[_0x18bbf2(0x1c0)]:return'univer-bg-blue-500';case _0x3ad37c['FAILED']:return'univer-bg-red-500';default:return _0x18bbf2(0x1dc);}},_0xd7d348=_0xe1cde3=>{const _0xd3f325=_0x165ae1;switch(_0xe1cde3){case _0x3ad37c[_0xd3f325(0x29f)]:return _0x655f24['t']('mcpConfig.connectionStatus.connected');case _0x3ad37c[_0xd3f325(0x288)]:return _0x655f24['t'](_0xd3f325(0x1c5));case _0x3ad37c['FAILED']:return _0x655f24['t']('mcpConfig.connectionStatus.failed');case _0x3ad37c[_0xd3f325(0x1c0)]:return _0x655f24['t']('mcpConfig.connectionStatus.retrying');default:return _0x655f24['t'](_0xd3f325(0x1ed));}},_0x21de76=_0xce52d7=>{const _0x5c0d45=_0x165ae1;switch(_0xce52d7){case _0x2e25a2['UNAUTHORIZED']:return _0x655f24['t'](_0x5c0d45(0x267));case _0x2e25a2[_0x5c0d45(0x2ca)]:return _0x655f24['t'](_0x5c0d45(0x20c));case _0x2e25a2[_0x5c0d45(0x1ea)]:return _0x655f24['t']('mcpConfig.connectionError.networkError');case _0x2e25a2['MAX_RETRIES_EXCEEDED']:return _0x655f24['t'](_0x5c0d45(0x22e));default:return'';}},_0x4a3a5c=_0x55100c(()=>{const _0x2c7e46=_0x165ae1,_0x112524={..._0x2ffb26,'apiKey':_0xb16823[_0x2c7e46(0x293)](),'enableAuth':_0x193a44};_0x18fb59(_0x112524);},[_0x2ffb26,_0xb16823,_0x193a44,_0x18fb59]),_0x2a663b=_0xb16823[_0x165ae1(0x293)]()[_0x165ae1(0x204)]>0x0;return _0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x24c),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0xee378a('div',{'className':_0x165ae1(0x249),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x2f4),'children':_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x300),'children':'⚙'})}),_0x5b5ab4(_0x165ae1(0x292),{'children':_0x5b5ab4('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x655f24['t']('mcpConfig.description')})})]})}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2e0),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x3a4900(_0x165ae1(0x28d),_0x2f0daa(_0x2f2830,_0x5c1058)),'children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x3a4900(_0x165ae1(0x289),_0x1f76fe(_0x2f2830,_0x5c1058))}),_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x243),'children':_0xd7d348(_0x2f2830)})]})}),_0x5c1058!==_0x2e25a2[_0x165ae1(0x22f)]&&(_0x2f2830===_0x3ad37c[_0x165ae1(0x26b)]||_0x5c1058===_0x2e25a2[_0x165ae1(0x2e6)])&&_0x5b5ab4('div',{'className':_0x165ae1(0x2b1),'children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x240),'children':[_0x5b5ab4('span',{'className':_0x165ae1(0x2b3),'children':'⚠️'}),_0x5b5ab4('p',{'className':_0x165ae1(0x242),'children':_0x21de76(_0x5c1058)})]})})]}),_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2b7),'children':[_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2eb),'children':[_0xee378a(_0x165ae1(0x24a),{'className':_0x165ae1(0x1e1),'children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'🔑'}),'\x20',_0x655f24['t'](_0x165ae1(0x212)),_0x5b5ab4(_0x165ae1(0x245),{'className':'univer-text-red-500','children':'*'}),_0x2fe0d5&&_0x5b5ab4('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':_0x655f24['t'](_0x165ae1(0x207)),'role':_0x165ae1(0x1f7),'onClick':()=>_0x24d693(!0x0),'children':_0x5b5ab4(ve,{})})]}),_0x5b5ab4(_0x57b735,{'type':'text','placeholder':_0x655f24['t'](_0x165ae1(0x279)),'value':_0xb16823,'disabled':_0x3a3a4b,'autoComplete':'off','onChange':_0x24a539}),_0x5b5ab4('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x655f24['t']('mcpConfig.apiKeyHint')})]}),_0x2fe0d5&&_0x20a9ab&&_0xee378a(_0x165ae1(0x292),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x5b5ab4('a',{'className':_0x165ae1(0x2f2),'role':'button','onClick':()=>_0x24d693(!0x1),'children':_0x5b5ab4(ue,{'className':_0x165ae1(0x280)})}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2dd),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x20e),'children':_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x275),'children':'🚀'})}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2af),'children':[_0x5b5ab4('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x655f24['t'](_0x165ae1(0x207))}),_0x5b5ab4('p',{'className':_0x165ae1(0x1f6),'children':_0x655f24['t'](_0x165ae1(0x2dc))}),_0x5b5ab4('div',{'className':_0x165ae1(0x254),'children':_0x16927f&&_0xee378a('a',{'className':_0x165ae1(0x2fb),'href':_0x2b792b,'target':_0x165ae1(0x1e6),'rel':_0x165ae1(0x28a),'children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'🤖'}),_0x655f24['t'](_0x165ae1(0x28c)),_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x1d8),'children':'↗'})]})}),_0xee378a(_0x165ae1(0x292),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x655f24['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x20daa4[_0x165ae1(0x2a4)]&&_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x294),'children':[_0xee378a('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'🔗'}),'\x20',_0x655f24['t'](_0x165ae1(0x1ef))]}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x229),'children':[_0xee378a('div',{'className':_0x165ae1(0x1fe),'children':[_0x5b5ab4('p',{'className':_0x165ae1(0x1fa),'children':_0x655f24['t'](_0x165ae1(0x2ef))}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2eb),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x269),'children':_0x655f24['t'](_0x165ae1(0x203))}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x299),'children':[_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x245),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x655f24['t'](_0x165ae1(0x23d))]}),_0xee378a('div',{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x2d2),'children':'2'}),_0x655f24['t'](_0x165ae1(0x2c7))]}),_0xee378a(_0x165ae1(0x292),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5b5ab4('span',{'className':_0x165ae1(0x2d2),'children':'3'}),_0x655f24['t'](_0x165ae1(0x1e8))]})]})]})]}),_0xee378a('div',{'className':_0x165ae1(0x2eb),'children':[_0x5b5ab4('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x165ae1(0x233)}),_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x2d7),'children':_0x5b5ab4(_0x165ae1(0x1f2),{'className':_0x165ae1(0x1bf),'children':JSON[_0x165ae1(0x26d)]({'mcpServers':{'univer':{'url':_0x165ae1(0x202)+(_0x57652b||_0x165ae1(0x1d9)),'type':_0x165ae1(0x2bc),'headers':{'Authorization':'Bearer\x20'+(_0xb16823||_0x165ae1(0x213))}}}},null,0x2)})})]}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x1fe),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x655f24['t'](_0x165ae1(0x200))}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2eb),'children':[_0xee378a(_0x165ae1(0x292),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x262)}),_0xee378a('div',{'className':_0x165ae1(0x21e),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x226),'children':_0x165ae1(0x25d)}),_0x5b5ab4('div',{'className':_0x165ae1(0x1f1),'children':_0x655f24['t'](_0x165ae1(0x1cf))})]})]}),_0xee378a(_0x165ae1(0x292),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x262)}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x21e),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x226),'children':'Authorization:'}),_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x1f1),'children':_0x655f24['t'](_0x165ae1(0x2e2))})]})]})]})]})]})]}),_0x5b5ab4(_0x276e83,{'onClick':_0x4a3a5c,'disabled':!_0x2a663b||_0x3a3a4b,'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':_0x3a3a4b?_0xee378a('span',{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'⟲'}),_0x655f24['t'](_0x165ae1(0x2bb))]}):_0xee378a(_0x165ae1(0x245),{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(le,{}),_0x655f24['t'](_0x165ae1(0x26a))]})}),_0x5b5ab4('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x216),'children':[_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x244),'children':'💡'}),_0xee378a(_0x165ae1(0x292),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-font-medium','children':_0x165ae1(0x1f4)}),_0xee378a(_0x165ae1(0x292),{'children':['•',_0x655f24['t'](_0x165ae1(0x1d3))]}),_0xee378a(_0x165ae1(0x292),{'children':['•',_0x655f24['t'](_0x165ae1(0x1dd))]})]})]})})]})})]});}const y=_0x40ccc8(0x1c8),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x40ccc8(0x270)],tn=(_0x8d3dcd,_0x3e3f29,_0x4ffc9c,_0x5c5f24)=>{const _0x6ae69f=_0x40ccc8;for(var _0x545032=_0x5c5f24>0x1?void 0x0:_0x5c5f24?rn(_0x3e3f29,_0x4ffc9c):_0x3e3f29,_0x20ed72=_0x8d3dcd[_0x6ae69f(0x204)]-0x1,_0x5e05f1;_0x20ed72>=0x0;_0x20ed72--)(_0x5e05f1=_0x8d3dcd[_0x20ed72])&&(_0x545032=_0x5e05f1(_0x545032)||_0x545032);return _0x545032;},d=(_0x80a462,_0x2c3435)=>(_0x5aaf8e,_0x362885)=>_0x2c3435(_0x5aaf8e,_0x362885,_0x80a462);const U='mcp.apiKey',L='mcp-config-dialog';let I=class extends _0x6acc8b{constructor(_0xb5ec05,_0xd38563,_0x557bdf,_0x1614ba,_0x154b14,_0x1e193c,_0x3e98c8,_0x585583,_0x51184b,_0x1610fe){const _0x4ca231=_0x40ccc8;super(),x(this,_0x4ca231(0x2a8),new _0x520f03(!0x1)),x(this,_0x4ca231(0x1fb),new _0x520f03({})),x(this,_0x4ca231(0x272),new _0x520f03({})),x(this,_0x4ca231(0x2d5),new _0x520f03('')),x(this,_0x4ca231(0x2ec),async _0x23139d=>{const _0x5779b1=_0x4ca231;var _0x1cc44e,_0x518670;this['_loading$']['next'](!0x0);try{const _0x5b2b5f=await this['_validateConfig'](_0x23139d);if(!_0x5b2b5f[_0x5779b1(0x1c4)]){this[_0x5779b1(0x1fc)][_0x5779b1(0x2d3)]({'type':_0x15cfd2[_0x5779b1(0x248)],'content':_0x5b2b5f[_0x5779b1(0x217)]||this[_0x5779b1(0x2cd)]['t'](_0x5779b1(0x2d6))});return;}_0x23139d['apiKey']?await this[_0x5779b1(0x2c8)][_0x5779b1(0x2db)](U,_0x23139d[_0x5779b1(0x2c1)][_0x5779b1(0x293)]()):await this['_localStorageService'][_0x5779b1(0x1ca)](U),this[_0x5779b1(0x2d5)][_0x5779b1(0x27a)](((_0x1cc44e=_0x23139d[_0x5779b1(0x2c1)])==null?void 0x0:_0x1cc44e['trim']())||''),this[_0x5779b1(0x285)][_0x5779b1(0x251)]({'Authorization':'Bearer\x20'+((_0x518670=_0x23139d['apiKey'])==null?void 0x0:_0x518670['trim']())}),this[_0x5779b1(0x1fc)][_0x5779b1(0x2d3)]({'type':_0x15cfd2['Success'],'content':this[_0x5779b1(0x2cd)]['t'](_0x5779b1(0x223))}),setTimeout(()=>{const _0x58d6a7=_0x5779b1;this['_dialogService'][_0x58d6a7(0x1e7)](L);},0x320);}catch(_0x408b33){this[_0x5779b1(0x20a)][_0x5779b1(0x2bf)](_0x5779b1(0x2ac),_0x408b33),this['_messageService'][_0x5779b1(0x2d3)]({'type':_0x15cfd2[_0x5779b1(0x248)],'content':this['_localeService']['t'](_0x5779b1(0x2de))});}finally{this[_0x5779b1(0x2a8)][_0x5779b1(0x27a)](!0x1);}}),(this['_injector']=_0xb5ec05,this[_0x4ca231(0x284)]=_0xd38563,this[_0x4ca231(0x2ab)]=_0x557bdf,this[_0x4ca231(0x2c8)]=_0x1614ba,this[_0x4ca231(0x206)]=_0x154b14,this['_messageService']=_0x1e193c,this[_0x4ca231(0x22c)]=_0x3e98c8,this[_0x4ca231(0x2cd)]=_0x585583,this[_0x4ca231(0x20a)]=_0x51184b,this[_0x4ca231(0x285)]=_0x1610fe,this[_0x4ca231(0x1de)](),this[_0x4ca231(0x2ba)](),this[_0x4ca231(0x2c0)]());}[_0x40ccc8(0x239)](){const _0x28dba9=_0x40ccc8,_0x2ba3b5=this['_configService'][_0x28dba9(0x21d)](y);_0x2ba3b5!=null&&_0x2ba3b5[_0x28dba9(0x2a4)]&&this[_0x28dba9(0x206)][_0x28dba9(0x2e5)]({'id':L,'title':{'title':this[_0x28dba9(0x2cd)]['t'](_0x28dba9(0x28e))},'children':{'label':_0x28dba9(0x1f3)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4dd2f6=_0x28dba9;this[_0x4dd2f6(0x206)]['close'](L);}});}[_0x40ccc8(0x1be)](){const _0x18473a=_0x40ccc8;return this[_0x18473a(0x1fb)]['value'];}['_registerComponent'](){const _0x5b3b05=_0x40ccc8;this['disposeWithMe'](this[_0x5b3b05(0x22c)][_0x5b3b05(0x232)](_0x5b3b05(0x1f3),this[_0x5b3b05(0x2a1)]()));}[_0x40ccc8(0x2a1)](){const _0x562c2f=_0x40ccc8;return _0x77b1a(()=>{const _0x2304e5=_0x2802;var _0x36e71d,_0x1faf9d,_0x595094;return _0x5b5ab4(nn,{'config':this[_0x2304e5(0x272)][_0x2304e5(0x24d)],'mcpCoreConfig':this[_0x2304e5(0x1fb)][_0x2304e5(0x24d)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x2304e5(0x2a8)][_0x2304e5(0x24d)],'connectionStatus$':(_0x36e71d=this[_0x2304e5(0x285)])==null?void 0x0:_0x36e71d[_0x2304e5(0x1d7)],'connectionError$':(_0x1faf9d=this[_0x2304e5(0x285)])==null?void 0x0:_0x1faf9d[_0x2304e5(0x27d)],'currentSessionId$':(_0x595094=this[_0x2304e5(0x285)])==null?void 0x0:_0x595094['sessionId$']});},this[_0x562c2f(0x21a)]);}[_0x40ccc8(0x1de)](){const _0x3bf977=_0x40ccc8;this[_0x3bf977(0x224)](this[_0x3bf977(0x2ab)]['subscribeConfigValue$'](_0x3c7cee)[_0x3bf977(0x2a0)](_0x419949=>{this['_mcpCoreConfig$']['next'](_0x419949||{});}));const _0x44266d=this[_0x3bf977(0x2ab)][_0x3bf977(0x21d)](_0x3c7cee);this['_mcpCoreConfig$'][_0x3bf977(0x27a)](_0x44266d||{}),this[_0x3bf977(0x224)](this['_configService'][_0x3bf977(0x225)](y)[_0x3bf977(0x2a0)](_0x4e5fb2=>{const _0x501125=_0x3bf977;this[_0x501125(0x272)][_0x501125(0x27a)](_0x4e5fb2||{});}));const _0x557a86=this[_0x3bf977(0x2ab)][_0x3bf977(0x21d)](y);this[_0x3bf977(0x272)][_0x3bf977(0x27a)](_0x557a86||{});}async[_0x40ccc8(0x2ba)](){const _0x22e0bc=_0x40ccc8,_0x110ec0=this['_configService'][_0x22e0bc(0x21d)](y);if(!(_0x110ec0!=null&&_0x110ec0[_0x22e0bc(0x2a4)]))return;const _0x10e452=await this[_0x22e0bc(0x2c8)][_0x22e0bc(0x282)](U);_0x10e452&&(this[_0x22e0bc(0x285)][_0x22e0bc(0x251)]({'Authorization':_0x22e0bc(0x231)+_0x10e452}),this[_0x22e0bc(0x2d5)]['next'](_0x10e452));}async[_0x40ccc8(0x2e9)](_0xd75f86){const _0x2c72c3=_0x40ccc8;if(!_0xd75f86[_0x2c72c3(0x2c1)]||_0xd75f86[_0x2c72c3(0x2c1)][_0x2c72c3(0x293)]()[_0x2c72c3(0x204)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2c72c3(0x2cd)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0xd75f86['apiKey'][_0x2c72c3(0x293)]()[_0x2c72c3(0x204)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2c72c3(0x2cd)]['t'](_0x2c72c3(0x234))};try{const _0xa232d1=await this['_injector'][_0x2c72c3(0x1da)](_0x3eedd7)[_0x2c72c3(0x2c4)](_0xd75f86['apiKey']['trim']());return _0xa232d1[_0x2c72c3(0x1c4)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xa232d1['error']||this[_0x2c72c3(0x2cd)]['t'](_0x2c72c3(0x2ae))};}catch(_0x45c4c9){return console[_0x2c72c3(0x2cf)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x45c4c9),{'isValid':!0x0};}}};I=tn([d(0x0,_0x1ca309(_0x3fe1d3)),d(0x1,_0x1ba609),d(0x2,_0x1ebc76),d(0x3,_0x4f2aff),d(0x4,_0x25d838),d(0x5,_0x2245a4),d(0x6,_0x1ca309(_0x381966)),d(0x7,_0x1ca309(_0x107ca3)),d(0x8,_0x388d5b),d(0x9,_0x1ca309(_0x3eedd7))],I);const V={'id':_0x40ccc8(0x291),'type':_0x1d46da['COMMAND'],'handler':async(_0x42ee97,_0x15bccf)=>(_0x42ee97[_0x40ccc8(0x1da)](I)['showConfigPanel'](),!0x0)};function pe(_0x4421f3,_0x5d7738){const _0x3515da=_0x40ccc8;switch(_0x4421f3){case _0x3ad37c[_0x3515da(0x250)]:return _0x3515da(0x29a);case _0x3ad37c[_0x3515da(0x288)]:return'mcpStatus.connecting';case _0x3ad37c['CONNECTED']:return _0x3515da(0x1f8);case _0x3ad37c['FAILED']:switch(_0x5d7738){case _0x2e25a2['UNAUTHORIZED']:return _0x3515da(0x1d0);case _0x2e25a2[_0x3515da(0x2ca)]:return'mcpStatus.sessionOccupied';case _0x2e25a2['NETWORK_ERROR']:return _0x3515da(0x2a5);case _0x2e25a2[_0x3515da(0x273)]:return _0x3515da(0x227);default:return _0x3515da(0x302);}case _0x3ad37c[_0x3515da(0x1c0)]:return _0x3515da(0x307);default:return _0x3515da(0x28f);}}function on(_0x11ba13,_0x505a58,_0x36b2ac,_0x2ba9c1=!0x0){const _0x4f1ae3=_0x40ccc8,_0x40ec85=pe(_0x11ba13,_0x505a58),_0x39934b=_0x36b2ac['t'](_0x40ec85);return _0x2ba9c1?_0x11ba13===_0x3ad37c[_0x4f1ae3(0x250)]&&_0x505a58===_0x2e25a2[_0x4f1ae3(0x2e6)]?_0x39934b+_0x4f1ae3(0x1f5)+_0x36b2ac['t'](_0x4f1ae3(0x230)):_0x11ba13===_0x3ad37c[_0x4f1ae3(0x29f)]?''+_0x39934b:_0x11ba13===_0x3ad37c[_0x4f1ae3(0x250)]||_0x11ba13===_0x3ad37c['FAILED']?_0x39934b+_0x4f1ae3(0x1f5)+_0x36b2ac['t'](_0x4f1ae3(0x26f)):_0x39934b:_0x39934b;}function sn(_0x5791b1){const _0x5eee14=_0x40ccc8;switch(_0x5791b1){case _0x3ad37c[_0x5eee14(0x29f)]:return _0x5eee14(0x2d8);case _0x3ad37c[_0x5eee14(0x288)]:case _0x3ad37c[_0x5eee14(0x1c0)]:return'univer-text-yellow-500';case _0x3ad37c[_0x5eee14(0x26b)]:case _0x3ad37c[_0x5eee14(0x250)]:return _0x5eee14(0x2b4);default:return _0x5eee14(0x1ce);}}function cn(_0x3d0d1f){const _0x29eb87=_0x40ccc8,{status$:_0x51ab0a,error$:_0x129573,onConfigure:_0x2f0958,showClickable:_0xe8a695=!0x0}=_0x3d0d1f,_0x2e4d36=_0x34587d(_0x51ab0a,_0x3ad37c['DISCONNECTED']),_0x1631a7=_0x34587d(_0x129573,_0x2e25a2[_0x29eb87(0x22f)]),_0x59fa25=_0x41acb3(_0x107ca3),_0x3b9245=_0x2e4d36===_0x3ad37c[_0x29eb87(0x29f)];_0x2e4d36===_0x3ad37c['CONNECTING']||_0x3ad37c[_0x29eb87(0x1c0)];const _0x3de7df=_0x59fa25['t'](pe(_0x2e4d36,_0x1631a7)),_0x2da766=on(_0x2e4d36,_0x1631a7,_0x59fa25,_0xe8a695),_0x4cd66b=sn(_0x2e4d36),_0x300731=_0x3b9245?_0x5b5ab4(ge,{}):_0x5b5ab4(de,{}),_0x443847=_0x55100c(()=>{_0xe8a695&&_0x2f0958&&_0x2f0958();},[_0xe8a695,_0x2f0958]);function _0x3ebda5(){const _0x50bbee=_0x29eb87;return _0xee378a(_0x50bbee(0x292),{'className':_0x3a4900(_0x50bbee(0x1e9),_0xe8a695&&_0x2f0958&&_0x50bbee(0x309)),'role':_0x50bbee(0x1f7),'onClick':_0xe8a695&&_0x2f0958?_0x443847:void 0x0,'children':[_0x5b5ab4('div',{'className':_0x3a4900(_0x50bbee(0x219),_0x4cd66b),'children':_0x300731}),_0x5b5ab4(_0x50bbee(0x292),{'className':_0x50bbee(0x2e3),'children':_0x3de7df})]});}return _0x5b5ab4(_0x2da013,{'title':_0x2da766,'placement':_0x29eb87(0x1bd),'children':_0x3ebda5()});}var an=Object[_0x40ccc8(0x270)],ln=(_0x45a4fb,_0x3dd5b8,_0x4f7f4a,_0x43490c)=>{for(var _0x27e9c9=_0x43490c>0x1?void 0x0:_0x43490c?an(_0x3dd5b8,_0x4f7f4a):_0x3dd5b8,_0x28f21b=_0x45a4fb['length']-0x1,_0x54fd92;_0x28f21b>=0x0;_0x28f21b--)(_0x54fd92=_0x45a4fb[_0x28f21b])&&(_0x27e9c9=_0x54fd92(_0x27e9c9)||_0x27e9c9);return _0x27e9c9;},M=(_0x214082,_0x154187)=>(_0x5bb745,_0xbf84d9)=>_0x154187(_0x5bb745,_0xbf84d9,_0x214082);let O=class extends _0x6acc8b{constructor(_0x3f6324,_0x4adeb4,_0x19f183,_0x359670){const _0x457908=_0x40ccc8;super(),this['_injector']=_0x3f6324,this['_connectionController']=_0x4adeb4,this[_0x457908(0x284)]=_0x19f183,this[_0x457908(0x2ab)]=_0x359670,this[_0x457908(0x2d4)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x2c7c8=_0x40ccc8,_0x22daba=this['_configService'][_0x2c7c8(0x21d)](y);_0x22daba!=null&&_0x22daba['showDeveloperTools']&&(this[_0x2c7c8(0x2f7)][_0x2c7c8(0x25f)]=!0x1);}[_0x40ccc8(0x265)](){const _0x4cac52=_0x40ccc8,_0x4ba5d0=this[_0x4cac52(0x2ab)][_0x4cac52(0x21d)](y);(_0x4ba5d0==null?void 0x0:_0x4ba5d0[_0x4cac52(0x209)])!==!0x1&&this[_0x4cac52(0x224)](this[_0x4cac52(0x284)]['registerComponent'](_0x1625f9[_0x4cac52(0x1e2)],()=>{const _0x54b07d=_0x4cac52;var _0x2f7192;return _0x77b1a(un({'status$':this[_0x54b07d(0x2f7)][_0x54b07d(0x1d7)],'error$':this[_0x54b07d(0x2f7)][_0x54b07d(0x27d)],'onConfigure':()=>this[_0x54b07d(0x237)](),'showClickable':(_0x2f7192=_0x4ba5d0==null?void 0x0:_0x4ba5d0[_0x54b07d(0x2a4)])!=null?_0x2f7192:!0x1}),this[_0x54b07d(0x21a)]);}));}['_handleConfigure'](){const _0x405057=_0x40ccc8;this['_injector']['get'](I)[_0x405057(0x239)]();}};function _0x2802(_0x44aa44,_0x27fac3){_0x44aa44=_0x44aa44-0x1bc;const _0x131e91=_0x131e();let _0x2802f0=_0x131e91[_0x44aa44];return _0x2802f0;}O=ln([M(0x0,_0x1ca309(_0x3fe1d3)),M(0x1,_0x1ca309(_0x3eedd7)),M(0x2,_0x1ba609),M(0x3,_0x1ebc76)],O);function un(_0x419b1a){const {status$:_0x2105a5,error$:_0x2d3713,onConfigure:_0x12249e,showClickable:_0x1b549f}=_0x419b1a;return function(){return _0x5b5ab4(cn,{'status$':_0x2105a5,'error$':_0x2d3713,'onConfigure':_0x12249e,'showClickable':_0x1b549f});};}function vn(_0x3b7d7f){const _0x4e8344=_0x40ccc8;return{'id':V['id'],'type':_0x3da010['BUTTON'],'icon':'MenuIcon','title':_0x4e8344(0x28e),'tooltip':_0x4e8344(0x28e)};}const dn={[_0x3a8c60[_0x40ccc8(0x236)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x40ccc8(0x270)],pn=(_0x2472dd,_0x596e7d,_0x365ad9,_0x384dcf)=>{for(var _0x1c1541=_0x384dcf>0x1?void 0x0:_0x384dcf?gn(_0x596e7d,_0x365ad9):_0x596e7d,_0x5efb0e=_0x2472dd['length']-0x1,_0x44bf31;_0x5efb0e>=0x0;_0x5efb0e--)(_0x44bf31=_0x2472dd[_0x5efb0e])&&(_0x1c1541=_0x44bf31(_0x1c1541)||_0x1c1541);return _0x1c1541;},re=(_0x972efe,_0x52b20c)=>(_0x24bca4,_0x4a9741)=>_0x52b20c(_0x24bca4,_0x4a9741,_0x972efe);let D=class extends _0x6acc8b{constructor(_0x1dd3c4,_0x571520){const _0x16d091=_0x40ccc8;super(),this[_0x16d091(0x2ad)]=_0x1dd3c4,this['_menuManagerService']=_0x571520,this[_0x16d091(0x2f9)](),this[_0x16d091(0x2a9)]();}[_0x40ccc8(0x2f9)](){const _0x529dcc=_0x40ccc8;[V][_0x529dcc(0x214)](_0x1db24a=>{const _0x274412=_0x529dcc;this['disposeWithMe'](this[_0x274412(0x2ad)][_0x274412(0x258)](_0x1db24a));});}[_0x40ccc8(0x2a9)](){const _0x3b33f8=_0x40ccc8;this[_0x3b33f8(0x228)][_0x3b33f8(0x1c7)](dn);}};D=pn([re(0x0,_0x30479e),re(0x1,_0x3cba23)],D);const Mn={'mcpStatus':{'disconnected':_0x40ccc8(0x278),'connecting':_0x40ccc8(0x2bd),'connected':_0x40ccc8(0x2f8),'failed':_0x40ccc8(0x304),'retrying':_0x40ccc8(0x2cb),'unknown':_0x40ccc8(0x253),'unauthorized':_0x40ccc8(0x221),'sessionOccupied':_0x40ccc8(0x261),'networkError':_0x40ccc8(0x2fc),'maxRetriesExceeded':_0x40ccc8(0x2ea),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x40ccc8(0x247)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x40ccc8(0x271),'apiKey':_0x40ccc8(0x303),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x40ccc8(0x296),'enableAuth':_0x40ccc8(0x1bc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x40ccc8(0x218),'mcpClientConfig':_0x40ccc8(0x218),'configInstructions':_0x40ccc8(0x2d0),'configStepTitle':_0x40ccc8(0x1df),'configStep1':_0x40ccc8(0x30b),'configStep2':_0x40ccc8(0x20f),'configStep3':_0x40ccc8(0x1e5),'sessionId':_0x40ccc8(0x2a2),'sessionIdDescription':_0x40ccc8(0x2d9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x40ccc8(0x241),'maxRetries':_0x40ccc8(0x2b8),'save':'Save\x20Configuration','saving':_0x40ccc8(0x257),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x40ccc8(0x276),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x40ccc8(0x287),'univerAiLabel':_0x40ccc8(0x1c2),'getStarted':_0x40ccc8(0x295)},'validation':{'apiKeyRequired':_0x40ccc8(0x263),'apiKeyTooShort':_0x40ccc8(0x23e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x40ccc8(0x1eb),'connecting':_0x40ccc8(0x24b),'connected':_0x40ccc8(0x1fd),'failed':_0x40ccc8(0x2c5),'retrying':_0x40ccc8(0x246)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x40ccc8(0x30a)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x40ccc8(0x1cc),'connected':_0x40ccc8(0x2e4),'failed':'MCP\x20连接失败','retrying':_0x40ccc8(0x27b),'unknown':_0x40ccc8(0x259),'unauthorized':_0x40ccc8(0x2ce),'sessionOccupied':_0x40ccc8(0x23b),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x40ccc8(0x268)},'mcpConfig':{'title':'MCP\x20配置','description':_0x40ccc8(0x29e),'apiKey':_0x40ccc8(0x1d1),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x40ccc8(0x30c),'enableAuth':_0x40ccc8(0x23c),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x40ccc8(0x2f6),'mcpClientConfig':_0x40ccc8(0x2f6),'configInstructions':_0x40ccc8(0x29b),'configStepTitle':_0x40ccc8(0x1e3),'configStep1':_0x40ccc8(0x25a),'configStep2':_0x40ccc8(0x277),'configStep3':_0x40ccc8(0x28b),'sessionId':_0x40ccc8(0x2f0),'sessionIdDescription':_0x40ccc8(0x255),'authorizationDescription':_0x40ccc8(0x211),'configParameters':_0x40ccc8(0x24f),'maxRetries':_0x40ccc8(0x2fd),'save':_0x40ccc8(0x26e),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x40ccc8(0x290),'configSaved':'配置保存成功','configError':_0x40ccc8(0x266),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x40ccc8(0x1c6),'univerAiLabel':_0x40ccc8(0x2c9),'getStarted':_0x40ccc8(0x1db)},'validation':{'apiKeyRequired':_0x40ccc8(0x1d2),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x40ccc8(0x2a6),'invalidApiKey':_0x40ccc8(0x27e)},'connectionStatus':{'disconnected':'未连接','connecting':_0x40ccc8(0x27c),'connected':'已连接','failed':'连接失败','retrying':_0x40ccc8(0x1ec)},'connectionError':{'unauthorized':_0x40ccc8(0x2da),'sessionOccupied':_0x40ccc8(0x2a7),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x40ccc8(0x297)],hn=Object[_0x40ccc8(0x270)],Cn=(_0x26bebc,_0xa4bb92,_0x15edc5)=>_0xa4bb92 in _0x26bebc?fn(_0x26bebc,_0xa4bb92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15edc5}):_0x26bebc[_0xa4bb92]=_0x15edc5,mn=(_0x219842,_0x27f756,_0x356d21,_0x491dcd)=>{const _0x3cd844=_0x40ccc8;for(var _0x46f95f=_0x491dcd>0x1?void 0x0:_0x491dcd?hn(_0x27f756,_0x356d21):_0x27f756,_0x25ccfa=_0x219842[_0x3cd844(0x204)]-0x1,_0x3d99ef;_0x25ccfa>=0x0;_0x25ccfa--)(_0x3d99ef=_0x219842[_0x25ccfa])&&(_0x46f95f=_0x3d99ef(_0x46f95f)||_0x46f95f);return _0x46f95f;},P=(_0x32e985,_0x4d87a5)=>(_0x10704c,_0xa1b2ea)=>_0x4d87a5(_0x10704c,_0xa1b2ea,_0x32e985),_n=(_0x2e8ada,_0x4ea314,_0x3a4d15)=>Cn(_0x2e8ada,_0x4ea314+'',_0x3a4d15);let j=class extends _0x44ad04{constructor(_0x44f58c=ie,_0x338838,_0x628d70,_0x509d2a,_0x1c868d,_0x49b9e5){const _0x4e77a5=_0x40ccc8;super(),this[_0x4e77a5(0x222)]=_0x44f58c,this[_0x4e77a5(0x21a)]=_0x338838,this[_0x4e77a5(0x2ab)]=_0x628d70,this['_uiPartsService']=_0x509d2a,this[_0x4e77a5(0x2c8)]=_0x1c868d,this[_0x4e77a5(0x2cd)]=_0x49b9e5;const {..._0x5f0be1}=_0x43d2a8({},ie,this['_config']);this[_0x4e77a5(0x2ab)]['setConfig'](y,_0x5f0be1);}async[_0x40ccc8(0x2e8)](){const _0x27efd1=_0x40ccc8,_0x5591da=[[O],[I],[D]];this[_0x27efd1(0x21a)][_0x27efd1(0x1d4)](_0x36fae0)||_0x5591da[_0x27efd1(0x283)]([_0x36fae0,{'useClass':_0x168f83}]),_0x5591da[_0x27efd1(0x214)](_0x46490e=>this[_0x27efd1(0x21a)][_0x27efd1(0x27f)](_0x46490e)),this['_injector'][_0x27efd1(0x1da)](O),this['_injector'][_0x27efd1(0x1da)](I),this['_injector']['get'](D);}};_n(j,'pluginName','MCP_UI_PLUGIN'),j=mn([_0x8f0b0d(_0x5deffb),P(0x1,_0x1ca309(_0x3fe1d3)),P(0x2,_0x1ebc76),P(0x3,_0x1ba609),P(0x4,_0x4f2aff),P(0x5,_0x1ca309(_0x107ca3))],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 _0x15fc16=_0x284b;(function(_0x2a92ef,_0x2c0c92){const _0x23bb95=_0x284b,_0x34889d=_0x2a92ef();while(!![]){try{const _0x27a455=-parseInt(_0x23bb95(0x1a1))/0x1*(-parseInt(_0x23bb95(0x2d8))/0x2)+-parseInt(_0x23bb95(0x2c6))/0x3+-parseInt(_0x23bb95(0x262))/0x4*(parseInt(_0x23bb95(0x22e))/0x5)+parseInt(_0x23bb95(0x2f3))/0x6*(-parseInt(_0x23bb95(0x216))/0x7)+-parseInt(_0x23bb95(0x256))/0x8+parseInt(_0x23bb95(0x1cf))/0x9+-parseInt(_0x23bb95(0x240))/0xa*(-parseInt(_0x23bb95(0x1f7))/0xb);if(_0x27a455===_0x2c0c92)break;else _0x34889d['push'](_0x34889d['shift']());}catch(_0x1e5cd7){_0x34889d['push'](_0x34889d['shift']());}}}(_0x2247,0x24369));var we=Object[_0x15fc16(0x23d)],Me=(_0x5ab51e,_0x26bf30,_0x1dbe4f)=>_0x26bf30 in _0x5ab51e?we(_0x5ab51e,_0x26bf30,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dbe4f}):_0x5ab51e[_0x26bf30]=_0x1dbe4f,x=(_0x3ccb69,_0x3e00e2,_0xab6787)=>Me(_0x3ccb69,typeof _0x3e00e2!=_0x15fc16(0x26f)?_0x3e00e2+'':_0x3e00e2,_0xab6787);import{LocaleService as _0x1e9f5a,Inject as _0x471848,Injector as _0x15522a,Disposable as _0x1c6c21,IConfigService as _0x52408d,ILocalStorageService as _0x5d40f4,ILogService as _0x4beaaa,CommandType as _0x57a0ca,ICommandService as _0x18085c,DependentOn as _0x15fc36,Plugin as _0x3af9e7,merge as _0x5812fc}from'@univerjs/core';import{jsxs as _0x5ee6dc,jsx as _0x65800d}from'react/jsx-runtime';import{MCPConnectionStatus as _0x30d051,MCPConnectionError as _0x200070,MCPConnectionController as _0x32df26,MCP_PLUGIN_CONFIG_KEY as _0x27b73d,UniverMCPPlugin as _0x572af9}from'@univerjs-pro/mcp';import{clsx as _0x2fa6b6,Input as _0x5e47d7,Button as _0x45d97f,MessageType as _0x3eb8c4,Tooltip as _0x4e1646}from'@univerjs/design';import{useDependency as _0x18ba69,useObservable as _0x145691,ComponentManager as _0x32f1d7,connectInjector as _0x50031f,IUIPartsService as _0xceceef,IDialogService as _0x269bcb,IMessageService as _0x14979b,BuiltInUIPart as _0x176d1f,MenuItemType as _0x2d6f6c,RibbonStartGroup as _0x496f11,IMenuManagerService as _0x4b1e5b}from'@univerjs/ui';import{BehaviorSubject as _0x4d6428}from'rxjs';import{useRef as _0x1711a8,createElement as _0x5bcd8a,forwardRef as _0x2ecc1a,useState as _0x1579b3,useCallback as _0x51c7c8}from'react';import{ISocketService as _0x291f6e,WebSocketService as _0x262918}from'@univerjs/network';function b({ref:_0x5065c8,..._0x5694c4}){const _0x1c73ec=_0x15fc16,{icon:_0x5962f0,id:_0x4fee0e,className:_0x854cfe,extend:_0xf13c44,..._0x5273a5}=_0x5694c4,_0x3b2bfd=('univerjs-icon\x20univerjs-icon-'+_0x4fee0e+'\x20'+(_0x854cfe||''))[_0x1c73ec(0x273)](),_0x32d32c=_0x1711a8('_'+Xe());return le(_0x5962f0,''+_0x4fee0e,{'defIds':_0x5962f0[_0x1c73ec(0x227)],'idSuffix':_0x32d32c[_0x1c73ec(0x259)]},{'ref':_0x5065c8,'className':_0x3b2bfd,..._0x5273a5},_0xf13c44);}function le(_0x239af8,_0xaaff7b,_0x4e54fa,_0x108640,_0x243868){const _0x460888=_0x15fc16;return _0x5bcd8a(_0x239af8[_0x460888(0x25c)],{'key':_0xaaff7b,...We(_0x239af8,_0x4e54fa,_0x243868),..._0x108640},(qe(_0x239af8,_0x4e54fa)[_0x460888(0x2dc)]||[])[_0x460888(0x1b2)]((_0x3affbe,_0x3d7aa1)=>le(_0x3affbe,_0xaaff7b+'-'+_0x239af8[_0x460888(0x25c)]+'-'+_0x3d7aa1,_0x4e54fa,void 0x0,_0x243868)));}function We(_0x423ab4,_0x40942a,_0x99e43f){const _0x19971f=_0x15fc16,_0x1da73b={..._0x423ab4['attrs']};_0x99e43f!=null&&_0x99e43f[_0x19971f(0x221)]&&_0x1da73b['fill']===_0x19971f(0x221)&&(_0x1da73b[_0x19971f(0x1c6)]=_0x99e43f[_0x19971f(0x221)]),_0x423ab4['tag']==='mask'&&_0x1da73b['id']&&(_0x1da73b['id']=_0x1da73b['id']+_0x40942a[_0x19971f(0x22f)]),Object[_0x19971f(0x1fb)](_0x1da73b)[_0x19971f(0x21f)](([_0x49fc49,_0x67fbe2])=>{const _0x33137b=_0x19971f;_0x49fc49===_0x33137b(0x19f)&&typeof _0x67fbe2==_0x33137b(0x29e)&&(_0x1da73b[_0x49fc49]=_0x67fbe2[_0x33137b(0x2c2)](/url\(#(.*)\)/,'url(#$1'+_0x40942a['idSuffix']+')'));});const {defIds:_0x1044d3}=_0x40942a;return!_0x1044d3||_0x1044d3[_0x19971f(0x1b0)]===0x0||(_0x423ab4[_0x19971f(0x25c)]==='use'&&_0x1da73b[_0x19971f(0x1d2)]&&(_0x1da73b['xlink:href']=_0x1da73b[_0x19971f(0x1d2)]+_0x40942a[_0x19971f(0x22f)]),Object['entries'](_0x1da73b)[_0x19971f(0x21f)](([_0x3ad417,_0x2ca346])=>{const _0x12078f=_0x19971f;typeof _0x2ca346==_0x12078f(0x29e)&&(_0x1da73b[_0x3ad417]=_0x2ca346['replace'](/url\(#(.*)\)/,_0x12078f(0x29b)+_0x40942a[_0x12078f(0x22f)]+')'));})),_0x1da73b;}function qe(_0x387928,_0xfe8f26){const _0x31f968=_0x15fc16;var _0x1eca99;const {defIds:_0x43206c}=_0xfe8f26;return!_0x43206c||_0x43206c[_0x31f968(0x1b0)]===0x0?_0x387928:_0x387928[_0x31f968(0x25c)]===_0x31f968(0x2d3)&&((_0x1eca99=_0x387928[_0x31f968(0x2dc)])!=null&&_0x1eca99['length'])?{..._0x387928,'children':_0x387928['children'][_0x31f968(0x1b2)](_0x60133d=>typeof _0x60133d[_0x31f968(0x2ad)]['id']=='string'&&_0x43206c&&_0x43206c['includes'](_0x60133d[_0x31f968(0x2ad)]['id'])?{..._0x60133d,'attrs':{..._0x60133d[_0x31f968(0x2ad)],'id':_0x60133d['attrs']['id']+_0xfe8f26[_0x31f968(0x22f)]}}:_0x60133d)}:_0x387928;}function Xe(){const _0x2b527b=_0x15fc16;return Math[_0x2b527b(0x1c1)]()[_0x2b527b(0x1f9)](0x24)[_0x2b527b(0x1e3)](0x2,0x8);}b[_0x15fc16(0x2c9)]=_0x15fc16(0x2a7);const Je={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':_0x15fc16(0x1ea),'viewBox':_0x15fc16(0x200),'width':_0x15fc16(0x2b3),'height':_0x15fc16(0x2b3)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x26c),'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':_0x15fc16(0x2e2),'clipRule':_0x15fc16(0x2e2)}}]},ue=_0x2ecc1a(function(_0x1d0bb3,_0x39c147){const _0x2af7e6=_0x15fc16;return _0x5bcd8a(b,Object['assign']({},_0x1d0bb3,{'id':_0x2af7e6(0x217),'ref':_0x39c147,'icon':Je}));});ue[_0x15fc16(0x2c9)]=_0x15fc16(0x290);const Qe={'tag':'svg','attrs':{'xmlns':_0x15fc16(0x284),'fill':_0x15fc16(0x1ea),'viewBox':_0x15fc16(0x200),'width':_0x15fc16(0x2b3),'height':_0x15fc16(0x2b3)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x26c),'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'}}]},ve=_0x2ecc1a(function(_0xdaff31,_0x54b635){const _0x427532=_0x15fc16;return _0x5bcd8a(b,Object[_0x427532(0x1a4)]({},_0xdaff31,{'id':'close-icon','ref':_0x54b635,'icon':Qe}));});ve[_0x15fc16(0x2c9)]=_0x15fc16(0x27d);const en={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':'none','viewBox':_0x15fc16(0x200),'width':'1em','height':_0x15fc16(0x2b3)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x26c),'d':_0x15fc16(0x203)}},{'tag':'path','attrs':{'fill':_0x15fc16(0x26c),'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':'currentColor','d':_0x15fc16(0x278),'fillRule':'evenodd','clipRule':_0x15fc16(0x2e2)}}]},de=_0x2ecc1a(function(_0x372010,_0xd0a2da){const _0x535fb2=_0x15fc16;return _0x5bcd8a(b,Object[_0x535fb2(0x1a4)]({},_0x372010,{'id':_0x535fb2(0x1cd),'ref':_0xd0a2da,'icon':en}));});de[_0x15fc16(0x2c9)]=_0x15fc16(0x2d6);const nn={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':_0x15fc16(0x1ea),'viewBox':'0\x200\x2016\x2016','width':_0x15fc16(0x2b3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x15fc16(0x1c7)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'stroke':_0x15fc16(0x26c),'d':_0x15fc16(0x2ce),'strokeLinecap':'round','strokeLinejoin':_0x15fc16(0x2cd),'strokeWidth':1.2}}]},{'tag':_0x15fc16(0x2d3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x15fc16(0x1bf)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':'white','d':_0x15fc16(0x2a2)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ge=_0x2ecc1a(function(_0x1ca5ae,_0x5ad1f0){const _0x4cf2d2=_0x15fc16;return _0x5bcd8a(b,Object['assign']({},_0x1ca5ae,{'id':_0x4cf2d2(0x228),'ref':_0x5ad1f0,'icon':nn}));});ge[_0x15fc16(0x2c9)]=_0x15fc16(0x28d);const rn={'tag':_0x15fc16(0x2a4),'attrs':{'xmlns':_0x15fc16(0x284),'fill':'none','viewBox':_0x15fc16(0x246),'width':_0x15fc16(0x2b3),'height':_0x15fc16(0x2b3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x15fc16(0x26c),'d':_0x15fc16(0x29d),'strokeLinecap':_0x15fc16(0x2cd),'strokeLinejoin':_0x15fc16(0x2cd),'strokeWidth':1.2}}]},{'tag':_0x15fc16(0x2d3),'attrs':{},'children':[{'tag':_0x15fc16(0x235),'attrs':{'id':_0x15fc16(0x2be)},'children':[{'tag':_0x15fc16(0x296),'attrs':{'fill':_0x15fc16(0x1ad),'d':'M0\x200H16V16H0z','transform':_0x15fc16(0x25e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},pe=_0x2ecc1a(function(_0x4d968e,_0x584602){return _0x5bcd8a(b,Object['assign']({},_0x4d968e,{'id':'on-line-icon','ref':_0x584602,'icon':rn}));});pe[_0x15fc16(0x2c9)]=_0x15fc16(0x2dd);function tn(_0x10d31a){const _0x1a3b52=_0x15fc16;var _0x441ecf,_0x50b272;const {mcpCoreConfig:_0x465c29,onSave:_0x53706c,loading:_0x26395a=!0x1,config:_0x502413,connectionStatus$:_0x362a6e,connectionError$:_0x76d250,currentApiKey$:_0x59295a,currentSessionId$:_0x5f3af5}=_0x10d31a,_0x46456f=_0x18ba69(_0x1e9f5a),_0x4c0a2f=_0x145691(_0x362a6e,_0x30d051[_0x1a3b52(0x24f)]),_0x491a70=_0x145691(_0x76d250,_0x200070[_0x1a3b52(0x1a2)]),_0x2f654b=_0x145691(_0x5f3af5,''),_0x394e5d=_0x145691(_0x59295a,''),[_0x394cee,_0x557c3f]=_0x1579b3(_0x394e5d||''),_0x22fbb5=!0x0,_0xfcc00a=_0x502413[_0x1a3b52(0x1ee)]&&_0x465c29[_0x1a3b52(0x254)]&&(_0x465c29['mcpServerUrl'][_0x1a3b52(0x207)](_0x1a3b52(0x222))||_0x465c29['mcpServerUrl']['includes'](_0x1a3b52(0x295))),_0x52f5be=(_0x441ecf=_0x465c29[_0x1a3b52(0x254)])==null?void 0x0:_0x441ecf[_0x1a3b52(0x207)]('univer.plus'),_0x359f0b=(_0x50b272=_0x465c29[_0x1a3b52(0x254)])==null?void 0x0:_0x50b272['includes'](_0x1a3b52(0x295)),_0x51f668=_0x52f5be?_0x1a3b52(0x2b1):_0x1a3b52(0x23f),_0x19c9a0=_0x502413[_0x1a3b52(0x1ee)]&&(_0x52f5be||_0x359f0b),[_0x3ab6ae,_0xdda4c7]=_0x1579b3(!_0x394cee[_0x1a3b52(0x273)]()),_0x52584d=(_0x4a66e4,_0x7b029c)=>{const _0x2bd2da=_0x1a3b52;if(_0x7b029c===_0x200070[_0x2bd2da(0x257)])return _0x2bd2da(0x2cb);switch(_0x4a66e4){case _0x30d051['CONNECTED']:return _0x2bd2da(0x2d7);case _0x30d051[_0x2bd2da(0x1b9)]:case _0x30d051[_0x2bd2da(0x219)]:return _0x2bd2da(0x2a1);case _0x30d051['FAILED']:return _0x2bd2da(0x2cb);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x49e8de=(_0x2cd724,_0x47dac)=>{const _0x463004=_0x1a3b52;if(_0x47dac===_0x200070[_0x463004(0x257)])return _0x463004(0x21a);switch(_0x2cd724){case _0x30d051['CONNECTED']:return _0x463004(0x271);case _0x30d051[_0x463004(0x1b9)]:case _0x30d051[_0x463004(0x219)]:return _0x463004(0x279);case _0x30d051[_0x463004(0x251)]:return'univer-bg-red-500';default:return _0x463004(0x1b7);}},_0x134cb8=_0x5a133f=>{const _0x1ed77b=_0x1a3b52;switch(_0x5a133f){case _0x30d051[_0x1ed77b(0x1c4)]:return _0x46456f['t'](_0x1ed77b(0x24b));case _0x30d051[_0x1ed77b(0x1b9)]:return _0x46456f['t'](_0x1ed77b(0x292));case _0x30d051[_0x1ed77b(0x251)]:return _0x46456f['t'](_0x1ed77b(0x1e5));case _0x30d051[_0x1ed77b(0x219)]:return _0x46456f['t'](_0x1ed77b(0x2e6));default:return _0x46456f['t'](_0x1ed77b(0x20e));}},_0x35097a=_0x49f1a3=>{const _0x1fd91d=_0x1a3b52;switch(_0x49f1a3){case _0x200070[_0x1fd91d(0x257)]:return _0x46456f['t']('mcpConfig.connectionError.unauthorized');case _0x200070['SESSION_ID_OCCUPIED']:return _0x46456f['t'](_0x1fd91d(0x234));case _0x200070[_0x1fd91d(0x1f8)]:return _0x46456f['t']('mcpConfig.connectionError.networkError');case _0x200070[_0x1fd91d(0x22b)]:return _0x46456f['t'](_0x1fd91d(0x1fe));default:return'';}},_0xfd5466=_0x51c7c8(()=>{const _0x5482de=_0x1a3b52,_0x40cf00={..._0x465c29,'apiKey':_0x394cee[_0x5482de(0x273)](),'enableAuth':_0x22fbb5};_0x53706c(_0x40cf00);},[_0x465c29,_0x394cee,_0x22fbb5,_0x53706c]),_0x207322=_0x394cee[_0x1a3b52(0x273)]()['length']>0x0;return _0x5ee6dc('div',{'className':_0x1a3b52(0x2c4),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x289),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x229),'children':_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x239),'children':'⚙'})}),_0x65800d(_0x1a3b52(0x1aa),{'children':_0x65800d('p',{'className':_0x1a3b52(0x277),'children':_0x46456f['t'](_0x1a3b52(0x2ee))})})]})}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x2fa6b6(_0x1a3b52(0x20d),_0x52584d(_0x4c0a2f,_0x491a70)),'children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x2fa6b6('univer-size-2\x20univer-rounded-full',_0x49e8de(_0x4c0a2f,_0x491a70))}),_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-text-sm\x20univer-font-medium','children':_0x134cb8(_0x4c0a2f)})]})}),_0x491a70!==_0x200070[_0x1a3b52(0x1a2)]&&(_0x4c0a2f===_0x30d051[_0x1a3b52(0x251)]||_0x491a70===_0x200070[_0x1a3b52(0x257)])&&_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5ee6dc('div',{'className':_0x1a3b52(0x1c0),'children':[_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x65800d('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x35097a(_0x491a70)})]})})]}),_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1c8),'children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1f6),'children':[_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1be),'children':[_0x5ee6dc(_0x1a3b52(0x2c1),{'className':_0x1a3b52(0x205),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'🔑'}),'\x20',_0x46456f['t'](_0x1a3b52(0x299)),_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-text-red-500','children':'*'}),_0xfcc00a&&_0x65800d('a',{'className':_0x1a3b52(0x21e),'title':_0x46456f['t'](_0x1a3b52(0x29a)),'role':_0x1a3b52(0x1dd),'onClick':()=>_0xdda4c7(!0x0),'children':_0x65800d(de,{})})]}),_0x65800d(_0x5e47d7,{'type':_0x1a3b52(0x22d),'placeholder':_0x46456f['t'](_0x1a3b52(0x293)),'value':_0x394cee,'disabled':_0x26395a,'autoComplete':_0x1a3b52(0x1f4),'onChange':_0x557c3f}),_0x65800d('p',{'className':_0x1a3b52(0x247),'children':_0x46456f['t'](_0x1a3b52(0x1f1))})]}),_0xfcc00a&&_0x3ab6ae&&_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x294),'children':[_0x65800d('a',{'className':_0x1a3b52(0x249),'role':'button','onClick':()=>_0xdda4c7(!0x1),'children':_0x65800d(ve,{'className':_0x1a3b52(0x24d)})}),_0x5ee6dc('div',{'className':_0x1a3b52(0x223),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x2e0),'children':_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x25a),'children':'🚀'})}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-flex-1','children':[_0x65800d('h4',{'className':_0x1a3b52(0x1a0),'children':_0x46456f['t']('mcpConfig.apiApplyInfo.title')}),_0x65800d('p',{'className':_0x1a3b52(0x243),'children':_0x46456f['t'](_0x1a3b52(0x272))}),_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x19c9a0&&_0x5ee6dc('a',{'className':_0x1a3b52(0x29f),'href':_0x51f668,'target':_0x1a3b52(0x214),'rel':_0x1a3b52(0x28c),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'🤖'}),_0x46456f['t'](_0x1a3b52(0x26e)),_0x65800d(_0x1a3b52(0x1f5),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1ba),'children':['✨','\x20',_0x46456f['t'](_0x1a3b52(0x1dc))]})]})]})]}),_0x502413[_0x1a3b52(0x1ee)]&&_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5ee6dc('h4',{'className':_0x1a3b52(0x1b6),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'🔗'}),'\x20',_0x46456f['t'](_0x1a3b52(0x237))]}),_0x5ee6dc('div',{'className':_0x1a3b52(0x2bd),'children':[_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1cb),'children':[_0x65800d('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x46456f['t']('mcpConfig.configInstructions')}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-2','children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x250),'children':_0x46456f['t'](_0x1a3b52(0x24c))}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x280),'children':[_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d('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':'1'}),_0x46456f['t'](_0x1a3b52(0x208))]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x28a),'children':'2'}),_0x46456f['t'](_0x1a3b52(0x1ec))]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d('span',{'className':_0x1a3b52(0x28a),'children':'3'}),_0x46456f['t'](_0x1a3b52(0x2b6))]})]})]})]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-2','children':[_0x65800d('div',{'className':_0x1a3b52(0x250),'children':_0x1a3b52(0x1d9)}),_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x28e),'children':_0x65800d(_0x1a3b52(0x27b),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x1a3b52(0x21d)+(_0x2f654b||_0x1a3b52(0x2a9)),'type':_0x1a3b52(0x1c5),'headers':{'Authorization':_0x1a3b52(0x2e1)+(_0x394cee||_0x1a3b52(0x213))}}}},null,0x2)})})]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1cb),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x250),'children':_0x46456f['t']('mcpConfig.configParameters')}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-2','children':[_0x5ee6dc('div',{'className':_0x1a3b52(0x2b4),'children':[_0x65800d('div',{'className':_0x1a3b52(0x1a9)}),_0x5ee6dc('div',{'className':_0x1a3b52(0x1f0),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x24e),'children':_0x1a3b52(0x2b5)}),_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x247),'children':_0x46456f['t'](_0x1a3b52(0x267))})]})]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x65800d('div',{'className':_0x1a3b52(0x1a9)}),_0x5ee6dc('div',{'className':_0x1a3b52(0x1f0),'children':[_0x65800d(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x24e),'children':_0x1a3b52(0x264)}),_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x46456f['t'](_0x1a3b52(0x20c))})]})]})]})]})]})]}),_0x65800d(_0x45d97f,{'onClick':_0xfd5466,'disabled':!_0x207322||_0x26395a,'className':_0x1a3b52(0x1d8),'children':_0x26395a?_0x5ee6dc(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(_0x1a3b52(0x1f5),{'children':'⟲'}),_0x46456f['t'](_0x1a3b52(0x260))]}):_0x5ee6dc(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x1a7),'children':[_0x65800d(ue,{}),_0x46456f['t'](_0x1a3b52(0x1b8))]})}),_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x5ee6dc(_0x1a3b52(0x1aa),{'className':_0x1a3b52(0x1e9),'children':[_0x65800d(_0x1a3b52(0x1f5),{'className':_0x1a3b52(0x1d5),'children':'💡'}),_0x5ee6dc(_0x1a3b52(0x1aa),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x65800d(_0x1a3b52(0x1aa),{'className':'univer-font-medium','children':_0x1a3b52(0x2db)}),_0x5ee6dc(_0x1a3b52(0x1aa),{'children':['•',_0x46456f['t'](_0x1a3b52(0x233))]}),_0x5ee6dc(_0x1a3b52(0x1aa),{'children':['•',_0x46456f['t'](_0x1a3b52(0x242))]})]})]})})]})})]});}const y=_0x15fc16(0x1a3),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x413cb0,_0x6d5bc0,_0x245848,_0x9d6b2d)=>{const _0x2f50b5=_0x15fc16;for(var _0x2d1cae=_0x9d6b2d>0x1?void 0x0:_0x9d6b2d?on(_0x6d5bc0,_0x245848):_0x6d5bc0,_0x5e742d=_0x413cb0[_0x2f50b5(0x1b0)]-0x1,_0x57f4b0;_0x5e742d>=0x0;_0x5e742d--)(_0x57f4b0=_0x413cb0[_0x5e742d])&&(_0x2d1cae=_0x57f4b0(_0x2d1cae)||_0x2d1cae);return _0x2d1cae;},d=(_0x4cba2f,_0x28376d)=>(_0xfefa0c,_0x31ef86)=>_0x28376d(_0xfefa0c,_0x31ef86,_0x4cba2f);const L=_0x15fc16(0x2ac),j='mcp-config-dialog';let I=class extends _0x1c6c21{constructor(_0x1757f0,_0x57f819,_0x36794f,_0x13738c,_0x34a289,_0x9e2c22,_0x25118f,_0x35ee54,_0x511565,_0x5d5bee){const _0x3f8ef6=_0x15fc16;super(),x(this,_0x3f8ef6(0x202),new _0x4d6428(!0x1)),x(this,'_mcpCoreConfig$',new _0x4d6428({})),x(this,_0x3f8ef6(0x1ae),new _0x4d6428({})),x(this,_0x3f8ef6(0x27e),new _0x4d6428('')),x(this,_0x3f8ef6(0x26d),async _0x4208fd=>{const _0x57708a=_0x3f8ef6;var _0x56f2af,_0x13638e;this['_loading$'][_0x57708a(0x26a)](!0x0);try{const _0x492eb8=await this[_0x57708a(0x2de)](_0x4208fd);if(!_0x492eb8['isValid']){this[_0x57708a(0x1eb)][_0x57708a(0x29c)]({'type':_0x3eb8c4[_0x57708a(0x2c3)],'content':_0x492eb8[_0x57708a(0x1fa)]||this['_localeService']['t'](_0x57708a(0x1e2))});return;}_0x4208fd['apiKey']?await this[_0x57708a(0x286)][_0x57708a(0x1cc)](L,_0x4208fd[_0x57708a(0x28f)][_0x57708a(0x273)]()):await this[_0x57708a(0x286)][_0x57708a(0x2bb)](L),this[_0x57708a(0x27e)]['next'](((_0x56f2af=_0x4208fd[_0x57708a(0x28f)])==null?void 0x0:_0x56f2af[_0x57708a(0x273)]())||''),this[_0x57708a(0x1a8)][_0x57708a(0x287)]({'Authorization':_0x57708a(0x2e1)+((_0x13638e=_0x4208fd[_0x57708a(0x28f)])==null?void 0x0:_0x13638e[_0x57708a(0x273)]())}),this[_0x57708a(0x1eb)]['show']({'type':_0x3eb8c4['Success'],'content':this[_0x57708a(0x2af)]['t'](_0x57708a(0x241))}),setTimeout(()=>{this['_dialogService']['close'](j);},0x320);}catch(_0x27637e){this[_0x57708a(0x268)][_0x57708a(0x2e3)](_0x57708a(0x25b),_0x27637e),this[_0x57708a(0x1eb)][_0x57708a(0x29c)]({'type':_0x3eb8c4[_0x57708a(0x2c3)],'content':this[_0x57708a(0x2af)]['t'](_0x57708a(0x2e7))});}finally{this['_loading$'][_0x57708a(0x26a)](!0x1);}}),(this[_0x3f8ef6(0x2b9)]=_0x1757f0,this[_0x3f8ef6(0x1c3)]=_0x57f819,this[_0x3f8ef6(0x2f7)]=_0x36794f,this['_localStorageService']=_0x13738c,this[_0x3f8ef6(0x248)]=_0x34a289,this[_0x3f8ef6(0x1eb)]=_0x9e2c22,this[_0x3f8ef6(0x2ec)]=_0x25118f,this['_localeService']=_0x35ee54,this['_logService']=_0x511565,this[_0x3f8ef6(0x1a8)]=_0x5d5bee,this['_initConfigSync'](),this[_0x3f8ef6(0x21c)](),this['_registerComponent']());}[_0x15fc16(0x2b0)](){const _0x2c906d=_0x15fc16,_0x393fbf=this['_configService'][_0x2c906d(0x274)](y);_0x393fbf!=null&&_0x393fbf['showDeveloperTools']&&this[_0x2c906d(0x248)][_0x2c906d(0x275)]({'id':j,'title':{'title':this[_0x2c906d(0x2af)]['t'](_0x2c906d(0x201))},'children':{'label':_0x2c906d(0x297)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1da864=_0x2c906d;this[_0x1da864(0x248)][_0x1da864(0x1e1)](j);}});}[_0x15fc16(0x258)](){const _0xe53445=_0x15fc16;return this[_0xe53445(0x245)][_0xe53445(0x2f2)];}['_registerComponent'](){const _0x8d73a=_0x15fc16;this[_0x8d73a(0x1bd)](this['_componentManager'][_0x8d73a(0x2bc)](_0x8d73a(0x297),this['_createConfigPanelComponent']()));}[_0x15fc16(0x2ef)](){const _0x4863a6=_0x15fc16;return _0x50031f(()=>{const _0x510d2f=_0x284b;var _0x261a18,_0x112d40,_0x289976;return _0x65800d(tn,{'config':this[_0x510d2f(0x1ae)]['value'],'mcpCoreConfig':this[_0x510d2f(0x245)]['value'],'currentApiKey$':this[_0x510d2f(0x27e)],'onSave':this[_0x510d2f(0x26d)],'loading':this[_0x510d2f(0x202)][_0x510d2f(0x2f2)],'connectionStatus$':(_0x261a18=this[_0x510d2f(0x1a8)])==null?void 0x0:_0x261a18[_0x510d2f(0x1e0)],'connectionError$':(_0x112d40=this[_0x510d2f(0x1a8)])==null?void 0x0:_0x112d40[_0x510d2f(0x23e)],'currentSessionId$':(_0x289976=this[_0x510d2f(0x1a8)])==null?void 0x0:_0x289976[_0x510d2f(0x24a)]});},this[_0x4863a6(0x2b9)]);}[_0x15fc16(0x263)](){const _0x425aac=_0x15fc16;this[_0x425aac(0x1bd)](this['_configService']['subscribeConfigValue$'](_0x27b73d)['subscribe'](_0x4876e5=>{const _0x565fa9=_0x425aac;this[_0x565fa9(0x245)][_0x565fa9(0x26a)](_0x4876e5||{});}));const _0x3cb494=this[_0x425aac(0x2f7)][_0x425aac(0x274)](_0x27b73d);this[_0x425aac(0x245)][_0x425aac(0x26a)](_0x3cb494||{}),this['disposeWithMe'](this[_0x425aac(0x2f7)][_0x425aac(0x1e6)](y)[_0x425aac(0x2ca)](_0x2dc844=>{const _0x5b1827=_0x425aac;this[_0x5b1827(0x1ae)][_0x5b1827(0x26a)](_0x2dc844||{});}));const _0x398ae1=this[_0x425aac(0x2f7)][_0x425aac(0x274)](y);this[_0x425aac(0x1ae)][_0x425aac(0x26a)](_0x398ae1||{});}async['_loadStoredApiKey'](){const _0x4cc713=_0x15fc16,_0x9abdc4=this[_0x4cc713(0x2f7)][_0x4cc713(0x274)](y);if(!(_0x9abdc4!=null&&_0x9abdc4[_0x4cc713(0x1ee)]))return;const _0x2fda7a=await this['_localStorageService'][_0x4cc713(0x218)](L);_0x2fda7a&&(this[_0x4cc713(0x1a8)][_0x4cc713(0x287)]({'Authorization':_0x4cc713(0x2e1)+_0x2fda7a}),this['_apiKey$'][_0x4cc713(0x26a)](_0x2fda7a));}async['_validateConfig'](_0x3bb2a0){const _0x39f60a=_0x15fc16;if(!_0x3bb2a0['apiKey']||_0x3bb2a0[_0x39f60a(0x28f)][_0x39f60a(0x273)]()[_0x39f60a(0x1b0)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x39f60a(0x2af)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3bb2a0['apiKey'][_0x39f60a(0x273)]()[_0x39f60a(0x1b0)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x39f60a(0x2af)]['t'](_0x39f60a(0x2ed))};try{const _0x27d567=await this[_0x39f60a(0x2b9)][_0x39f60a(0x1ef)](_0x32df26)[_0x39f60a(0x23c)](_0x3bb2a0[_0x39f60a(0x28f)][_0x39f60a(0x273)]());return _0x27d567['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x27d567[_0x39f60a(0x2e3)]||this[_0x39f60a(0x2af)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x57a2be){return console[_0x39f60a(0x232)](_0x39f60a(0x236),_0x57a2be),{'isValid':!0x0};}}};I=sn([d(0x0,_0x471848(_0x15522a)),d(0x1,_0xceceef),d(0x2,_0x52408d),d(0x3,_0x5d40f4),d(0x4,_0x269bcb),d(0x5,_0x14979b),d(0x6,_0x471848(_0x32f1d7)),d(0x7,_0x471848(_0x1e9f5a)),d(0x8,_0x4beaaa),d(0x9,_0x471848(_0x32df26))],I);const V={'id':_0x15fc16(0x2f6),'type':_0x57a0ca[_0x15fc16(0x220)],'handler':async(_0x18e6ad,_0x1c1d58)=>(_0x18e6ad[_0x15fc16(0x1ef)](I)[_0x15fc16(0x2b0)](),!0x0)};function fe(_0x193f5b,_0x418bd3){const _0x21b123=_0x15fc16;switch(_0x193f5b){case _0x30d051[_0x21b123(0x24f)]:return _0x21b123(0x261);case _0x30d051[_0x21b123(0x1b9)]:return'mcpStatus.connecting';case _0x30d051[_0x21b123(0x1c4)]:return _0x21b123(0x20f);case _0x30d051[_0x21b123(0x251)]:switch(_0x418bd3){case _0x200070[_0x21b123(0x257)]:return _0x21b123(0x276);case _0x200070['SESSION_ID_OCCUPIED']:return _0x21b123(0x1ca);case _0x200070['NETWORK_ERROR']:return _0x21b123(0x2cf);case _0x200070['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x30d051[_0x21b123(0x219)]:return _0x21b123(0x1f2);default:return _0x21b123(0x2cc);}}function cn(_0x4ae206,_0x4b09f5,_0x510c97,_0x3079a5=!0x0){const _0x1c66d6=_0x15fc16,_0x3e6e89=fe(_0x4ae206,_0x4b09f5),_0x3dedbe=_0x510c97['t'](_0x3e6e89);return _0x3079a5?_0x4ae206===_0x30d051[_0x1c66d6(0x24f)]&&_0x4b09f5===_0x200070[_0x1c66d6(0x257)]?_0x3dedbe+'\x20-\x20'+_0x510c97['t'](_0x1c66d6(0x25f)):_0x4ae206===_0x30d051[_0x1c66d6(0x1c4)]?''+_0x3dedbe:_0x4ae206===_0x30d051[_0x1c66d6(0x24f)]||_0x4ae206===_0x30d051[_0x1c66d6(0x251)]?_0x3dedbe+'\x20-\x20'+_0x510c97['t']('mcpStatus.clickToConnect'):_0x3dedbe:_0x3dedbe;}function an(_0x514806){const _0x205986=_0x15fc16;switch(_0x514806){case _0x30d051['CONNECTED']:return'univer-text-green-500';case _0x30d051['CONNECTING']:case _0x30d051[_0x205986(0x219)]:return _0x205986(0x1b4);case _0x30d051['FAILED']:case _0x30d051['DISCONNECTED']:return _0x205986(0x23a);default:return'univer-text-gray-500';}}function ln(_0x551d53){const _0x2dcd99=_0x15fc16,{status$:_0x3b5d75,error$:_0x307372,onConfigure:_0xa16fdc,showClickable:_0x24970e=!0x0}=_0x551d53,_0x5dff05=_0x145691(_0x3b5d75,_0x30d051[_0x2dcd99(0x24f)]),_0x162fbb=_0x145691(_0x307372,_0x200070['NONE']),_0x57cac0=_0x18ba69(_0x1e9f5a),_0x164e9d=_0x5dff05===_0x30d051[_0x2dcd99(0x1c4)];_0x5dff05===_0x30d051[_0x2dcd99(0x1b9)]||_0x30d051[_0x2dcd99(0x219)];const _0x2eaa81=_0x57cac0['t'](fe(_0x5dff05,_0x162fbb)),_0x5d4c82=cn(_0x5dff05,_0x162fbb,_0x57cac0,_0x24970e),_0x2be93c=an(_0x5dff05),_0x2dee59=_0x164e9d?_0x65800d(pe,{}):_0x65800d(ge,{}),_0x2c4124=_0x51c7c8(()=>{_0x24970e&&_0xa16fdc&&_0xa16fdc();},[_0x24970e,_0xa16fdc]);function _0x60896d(){const _0x31d981=_0x2dcd99;return _0x5ee6dc(_0x31d981(0x1aa),{'className':_0x2fa6b6('univer-flex\x20univer-items-center',_0x24970e&&_0xa16fdc&&_0x31d981(0x2b7)),'role':_0x31d981(0x1dd),'onClick':_0x24970e&&_0xa16fdc?_0x2c4124:void 0x0,'children':[_0x65800d(_0x31d981(0x1aa),{'className':_0x2fa6b6(_0x31d981(0x28b),_0x2be93c),'children':_0x2dee59}),_0x65800d(_0x31d981(0x1aa),{'className':_0x31d981(0x27a),'children':_0x2eaa81})]});}return _0x65800d(_0x4e1646,{'title':_0x5d4c82,'placement':_0x2dcd99(0x206),'children':_0x60896d()});}var un=Object[_0x15fc16(0x2d2)],vn=(_0x2b8979,_0x2f1351,_0x573810,_0x3a6596)=>{for(var _0x5dd071=_0x3a6596>0x1?void 0x0:_0x3a6596?un(_0x2f1351,_0x573810):_0x2f1351,_0x413969=_0x2b8979['length']-0x1,_0x19b4ea;_0x413969>=0x0;_0x413969--)(_0x19b4ea=_0x2b8979[_0x413969])&&(_0x5dd071=_0x19b4ea(_0x5dd071)||_0x5dd071);return _0x5dd071;},A=(_0x1af426,_0x58a4da)=>(_0x5e0f34,_0x232d4e)=>_0x58a4da(_0x5e0f34,_0x232d4e,_0x1af426);let D=class extends _0x1c6c21{constructor(_0x1de66f,_0x27e2a8,_0x43e83e,_0x45a8d1){const _0x133623=_0x15fc16;super(),this[_0x133623(0x2b9)]=_0x1de66f,this[_0x133623(0x1b1)]=_0x27e2a8,this[_0x133623(0x1c3)]=_0x43e83e,this[_0x133623(0x2f7)]=_0x45a8d1,this[_0x133623(0x2e9)](),this['_initStatusComponent']();}[_0x15fc16(0x2e9)](){const _0x42b0ac=_0x15fc16,_0x25f032=this[_0x42b0ac(0x2f7)]['getConfig'](y);_0x25f032!=null&&_0x25f032[_0x42b0ac(0x1ee)]&&(this[_0x42b0ac(0x1b1)][_0x42b0ac(0x2d5)]=!0x1);}['_initStatusComponent'](){const _0x232ab4=_0x15fc16,_0x332a1f=this['_configService']['getConfig'](y);(_0x332a1f==null?void 0x0:_0x332a1f['showStatus'])!==!0x1&&this[_0x232ab4(0x1bd)](this[_0x232ab4(0x1c3)][_0x232ab4(0x2ba)](_0x176d1f[_0x232ab4(0x2f5)],()=>{const _0x142a0f=_0x232ab4;var _0x470f6a;return _0x50031f(dn({'status$':this['_connectionController'][_0x142a0f(0x1e0)],'error$':this[_0x142a0f(0x1b1)]['connectionError$'],'onConfigure':()=>this[_0x142a0f(0x281)](),'showClickable':(_0x470f6a=_0x332a1f==null?void 0x0:_0x332a1f[_0x142a0f(0x1ee)])!=null?_0x470f6a:!0x1}),this[_0x142a0f(0x2b9)]);}));}[_0x15fc16(0x281)](){const _0x2d4eeb=_0x15fc16;this[_0x2d4eeb(0x2b9)][_0x2d4eeb(0x1ef)](I)[_0x2d4eeb(0x2b0)]();}};D=vn([A(0x0,_0x471848(_0x15522a)),A(0x1,_0x471848(_0x32df26)),A(0x2,_0xceceef),A(0x3,_0x52408d)],D);function dn(_0x4e5a0c){const {status$:_0x4ba357,error$:_0x1f7a73,onConfigure:_0xfdc95d,showClickable:_0x44ad28}=_0x4e5a0c;return function(){return _0x65800d(ln,{'status$':_0x4ba357,'error$':_0x1f7a73,'onConfigure':_0xfdc95d,'showClickable':_0x44ad28});};}function gn(_0x318a39){const _0x74ee34=_0x15fc16;return{'id':V['id'],'type':_0x2d6f6c[_0x74ee34(0x2c8)],'icon':_0x74ee34(0x288),'title':'mcpConfig.title','tooltip':_0x74ee34(0x201)};}const pn={[_0x496f11['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':gn}}};var fn=Object[_0x15fc16(0x2d2)],hn=(_0x1d3532,_0x1e067d,_0x446b7a,_0x5ab133)=>{for(var _0x197593=_0x5ab133>0x1?void 0x0:_0x5ab133?fn(_0x1e067d,_0x446b7a):_0x1e067d,_0x32cc97=_0x1d3532['length']-0x1,_0x2f42b5;_0x32cc97>=0x0;_0x32cc97--)(_0x2f42b5=_0x1d3532[_0x32cc97])&&(_0x197593=_0x2f42b5(_0x197593)||_0x197593);return _0x197593;},te=(_0x28d74c,_0x27fc37)=>(_0x146284,_0x1b4898)=>_0x27fc37(_0x146284,_0x1b4898,_0x28d74c);let $=class extends _0x1c6c21{constructor(_0x26d9c6,_0x939d8d){const _0x42be22=_0x15fc16;super(),this['_commandService']=_0x26d9c6,this[_0x42be22(0x2ab)]=_0x939d8d,this[_0x42be22(0x2f4)](),this[_0x42be22(0x22a)]();}[_0x15fc16(0x2f4)](){const _0xecbc97=_0x15fc16;[V][_0xecbc97(0x21f)](_0x2b7467=>{const _0x20fbfb=_0xecbc97;this[_0x20fbfb(0x1bd)](this[_0x20fbfb(0x1bb)][_0x20fbfb(0x27c)](_0x2b7467));});}[_0x15fc16(0x22a)](){this['_menuManagerService']['mergeMenu'](pn);}};function _0x284b(_0x29a5e9,_0x4f0db6){_0x29a5e9=_0x29a5e9-0x19f;const _0x224731=_0x2247();let _0x284ba7=_0x224731[_0x29a5e9];return _0x284ba7;}$=hn([te(0x0,_0x18085c),te(0x1,_0x4b1e5b)],$);function _0x2247(){const _0x56fabb=['http://www.w3.org/2000/svg','Click\x20to\x20connect\x20MCP','_localStorageService','__setCustomHeaders','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-3','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','univer-mr-2\x20univer-flex\x20univer-text-xl','noopener\x20noreferrer','OffLineIcon','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','apiKey','CheckMarkIcon','API\x20Key','mcpConfig.connectionStatus.connecting','mcpConfig.apiKeyPlaceholder','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer.ai','path','MCPConfigPanel','MCP\x20配置','mcpConfig.apiKey','mcpConfig.apiApplyInfo.title','url(#$1','show','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','string','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','Get\x20your\x20API\x20key\x20in\x20seconds','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','M0\x200H16V16H0z','将以下配置添加到您的\x20MCP\x20客户端设置中:','svg','MCP\x20Unknown\x20Status','启用身份验证','UniverIcon','配置步骤:','<SESSION_ID>','网络连接错误,请检查您的网络连接','_menuManagerService','mcp.apiKey','attrs','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_localeService','showConfigPanel','https://console.univer.plus','API\x20密钥','1em','univer-flex\x20univer-items-start\x20univer-gap-3','univer_session_id:','mcpConfig.configStep3','\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','连接失败','_injector','registerComponent','removeItem','register','univer-space-y-4','on-line-icon_clip0_910_349','会话\x20ID\x20已被占用,请稍后再试','MCP:\x20Network\x20Error','label','replace','Error','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Click\x20to\x20configure\x20MCP','482211NlxVtA','pluginName','BUTTON','displayName','subscribe','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpStatus.unknown','round','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','mcpStatus.networkError','Univer\x20AI\x20Console','Univer\x20AI\x20控制台','getOwnPropertyDescriptor','defs','将配置添加到您的\x20MCP\x20客户端设置文件中','enableAutoConnect','HelpIcon','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','2Cfyaww','MCP\x20Retrying...','配置保存失败','Configuration\x20Notes:','children','OnLineIcon','_validateConfig','API\x20key\x20is\x20required','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Bearer\x20','evenodd','error','最大重试次数','Max\x20Retries','mcpConfig.connectionStatus.retrying','mcpConfig.configError','MCP\x20Connecting...','_initAutoConnect','MCP\x20连接失败','您的\x20API\x20密钥安全存储在本地存储中','_componentManager','mcpConfig.validation.apiKeyTooShort','mcpConfig.description','_createConfigPanelComponent','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','value','138702QDKRon','_initializeCommands','HEADER_MENU','mcp-ui.command.openConfigPanel','_configService','mask','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','264723cDidVv','NONE','mcp-ui.config','assign','重连中...','Connection\x20Failed','univer-flex\x20univer-items-center\x20univer-gap-2','_mcpConnectionController','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','div','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','white','_config$','配置无效','length','_connectionController','map','Save\x20Configuration','univer-text-yellow-500','MCP\x20Connection\x20Failed','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-gray-500','mcpConfig.save','CONNECTING','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_commandService','Invalid\x20configuration','disposeWithMe','univer-space-y-2','off-line-icon_clip0_910_343','univer-flex\x20univer-items-start\x20univer-gap-2','random','几秒钟内获取您的\x20API\x20密钥','_uiPartsService','CONNECTED','http','fill','url(#off-line-icon_clip0_910_343)','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCP\x20状态未知','mcpStatus.sessionOccupied','univer-space-y-3','setItem','help-icon','保存配置','975177OtPyoD','配置参数:','MCP\x20Client\x20Configuration','xlink:href','超出最大重试次数,请稍后再试','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-shrink-0\x20univer-text-blue-500','API\x20密钥不能为空','API\x20密钥无效,请检查密钥是否正确','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','MCP\x20Configuration','点击配置\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.getStarted','button','已连接','带有\x20Bearer\x20前缀的\x20API\x20密钥。','connectionStatus$','close','mcpConfig.validation.invalidConfig','substring','name','mcpConfig.connectionStatus.failed','subscribeConfigValue$','配置保存成功','Session\x20ID','univer-flex\x20univer-gap-3','none','_messageService','mcpConfig.configStep2','会话ID','showDeveloperTools','get','univer-min-w-0\x20univer-flex-1','mcpConfig.apiKeyHint','mcpStatus.retrying','什么是\x20API\x20密钥?','off','span','univer-space-y-5','261910kFUYqN','NETWORK_ERROR','toString','errorMessage','entries','Retrying...','What\x20is\x20API\x20Key?','mcpConfig.connectionError.maxRetriesExceeded','MCP\x20已断开','0\x200\x2016\x2016','mcpConfig.title','_loading$','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','has','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','bottom','includes','mcpConfig.configStep1','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','未连接','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.authorizationDescription','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.connectionStatus.disconnected','mcpStatus.connected','请输入您的\x20API\x20密钥','Connected','保存中...','<API_KEY>','_blank','Enter\x20your\x20API\x20key','49JbrhkF','check-mark-icon','getItem','RETRYING','univer-bg-red-500','Saving...','_loadStoredApiKey','https://mcp.univer.ai/mcp/?univer_session_id=','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','forEach','COMMAND','colorChannel1','univer.plus','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','@univerjs-pro/mcp-ui','defIds','off-line-icon','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_initializeMenus','MAX_RETRIES_EXCEEDED','启用身份验证以获得安全连接','text','15pmidxl','idSuffix','MCP:\x20未授权','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','warn','mcpConfig.note1','mcpConfig.connectionError.sessionOccupied','clipPath','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.connectionInfo','MCP:\x20超出最大重试次数','univer-text-white','univer-text-red-500','_config','validateApiKey','defineProperty','connectionError$','https://console.univer.ai','80OfUtVM','mcpConfig.configSaved','mcpConfig.note2','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','配置更改将立即生效','_mcpCoreConfig$','0\x200\x2017\x2016','univer-text-xs\x20univer-text-gray-500','_dialogService','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','sessionId$','mcpConfig.connectionStatus.connected','mcpConfig.configStepTitle','univer-size-4','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','DISCONNECTED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','FAILED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','push','mcpServerUrl','Configuration\x20saved\x20successfully','142496oXhoEA','UNAUTHORIZED','getCurrentConfig','current','univer-text-blue-600','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','tag','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','translate(.97)','mcpStatus.clickToConfigure','mcpConfig.saving','mcpStatus.disconnected','99812WdJHDA','_initConfigSync','Authorization:','onStarting','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.sessionIdDescription','_logService','Configuration\x20Steps:','next','MCP\x20客户端配置','currentColor','_handleConfigSave','mcpConfig.apiApplyInfo.univerAiLabel','symbol','API\x20密钥长度至少需要\x2010\x20位','univer-bg-green-500','mcpConfig.apiApplyInfo.description','trim','getConfig','open','mcpStatus.unauthorized','univer-text-sm\x20univer-text-gray-500','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-bg-blue-500','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','pre','registerCommand','CloseIcon','_apiKey$','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_handleConfigure','0.17.0','setConfig'];_0x2247=function(){return _0x56fabb;};return _0x2247();}const Dn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x15fc16(0x2e8),'connected':'MCP\x20Connected','failed':_0x15fc16(0x1b5),'retrying':_0x15fc16(0x2d9),'unknown':_0x15fc16(0x2a5),'unauthorized':_0x15fc16(0x224),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x15fc16(0x2c0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x15fc16(0x285),'clickToConfigure':_0x15fc16(0x2c5)},'mcpConfig':{'title':_0x15fc16(0x1d9),'description':_0x15fc16(0x252),'apiKey':_0x15fc16(0x291),'apiKeyPlaceholder':_0x15fc16(0x215),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x15fc16(0x20b),'connectionInfo':_0x15fc16(0x1d1),'mcpClientConfig':_0x15fc16(0x1d1),'configInstructions':_0x15fc16(0x225),'configStepTitle':_0x15fc16(0x269),'configStep1':_0x15fc16(0x1ac),'configStep2':_0x15fc16(0x2f1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x15fc16(0x1e8),'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':_0x15fc16(0x2e5),'save':_0x15fc16(0x1b3),'saving':_0x15fc16(0x21b),'note1':_0x15fc16(0x231),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x15fc16(0x255),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x15fc16(0x1fd),'description':_0x15fc16(0x2f0),'univerAiLabel':_0x15fc16(0x2d0),'getStarted':_0x15fc16(0x2a0)},'validation':{'apiKeyRequired':_0x15fc16(0x2df),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x15fc16(0x1bc),'invalidApiKey':_0x15fc16(0x266)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x15fc16(0x211),'failed':_0x15fc16(0x1a6),'retrying':_0x15fc16(0x1fc)},'connectionError':{'unauthorized':_0x15fc16(0x27f),'sessionOccupied':_0x15fc16(0x209),'networkError':_0x15fc16(0x1ab),'maxRetriesExceeded':_0x15fc16(0x1db)}}},$n={'mcpStatus':{'disconnected':_0x15fc16(0x1ff),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x15fc16(0x2ea),'retrying':'MCP\x20重连中...','unknown':_0x15fc16(0x1c9),'unauthorized':_0x15fc16(0x230),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x15fc16(0x238),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x15fc16(0x1da)},'mcpConfig':{'title':_0x15fc16(0x298),'description':_0x15fc16(0x2ae),'apiKey':_0x15fc16(0x2b2),'apiKeyPlaceholder':_0x15fc16(0x210),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x15fc16(0x2a6),'enableAuthHint':_0x15fc16(0x22c),'connectionInfo':_0x15fc16(0x26b),'mcpClientConfig':_0x15fc16(0x26b),'configInstructions':_0x15fc16(0x2a3),'configStepTitle':_0x15fc16(0x2a8),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x15fc16(0x2d4),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x15fc16(0x1ed),'sessionIdDescription':_0x15fc16(0x1d4),'authorizationDescription':_0x15fc16(0x1df),'configParameters':_0x15fc16(0x1d0),'maxRetries':_0x15fc16(0x2e4),'save':_0x15fc16(0x1ce),'saving':_0x15fc16(0x212),'note1':_0x15fc16(0x244),'note2':_0x15fc16(0x2eb),'configSaved':_0x15fc16(0x1e7),'configError':_0x15fc16(0x2da),'apiApplyInfo':{'title':_0x15fc16(0x1f3),'description':_0x15fc16(0x25d),'univerAiLabel':_0x15fc16(0x2d1),'getStarted':_0x15fc16(0x1c2)},'validation':{'apiKeyRequired':_0x15fc16(0x1d6),'apiKeyTooShort':_0x15fc16(0x270),'invalidConfig':_0x15fc16(0x1af),'invalidApiKey':_0x15fc16(0x1d7)},'connectionStatus':{'disconnected':_0x15fc16(0x20a),'connecting':'连接中...','connected':_0x15fc16(0x1de),'failed':_0x15fc16(0x2b8),'retrying':_0x15fc16(0x1a5)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x15fc16(0x2bf),'networkError':_0x15fc16(0x2aa),'maxRetriesExceeded':_0x15fc16(0x1d3)}}},mn=_0x15fc16(0x226),Cn=_0x15fc16(0x282),he={'name':mn,'version':Cn};var _n=Object[_0x15fc16(0x23d)],yn=Object['getOwnPropertyDescriptor'],xn=(_0x9dc5bd,_0x46a818,_0x44c306)=>_0x46a818 in _0x9dc5bd?_n(_0x9dc5bd,_0x46a818,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44c306}):_0x9dc5bd[_0x46a818]=_0x44c306,Sn=(_0x5b3ee0,_0x1b3252,_0x353205,_0x305dc9)=>{const _0x26930a=_0x15fc16;for(var _0x4e91aa=_0x305dc9>0x1?void 0x0:_0x305dc9?yn(_0x1b3252,_0x353205):_0x1b3252,_0xc5dd2a=_0x5b3ee0[_0x26930a(0x1b0)]-0x1,_0x7ff401;_0xc5dd2a>=0x0;_0xc5dd2a--)(_0x7ff401=_0x5b3ee0[_0xc5dd2a])&&(_0x4e91aa=_0x7ff401(_0x4e91aa)||_0x4e91aa);return _0x4e91aa;},P=(_0x27bbc3,_0x2e35cc)=>(_0x4cd154,_0x21cb66)=>_0x2e35cc(_0x4cd154,_0x21cb66,_0x27bbc3),Y=(_0x40810d,_0x5b9623,_0x298795)=>xn(_0x40810d,typeof _0x5b9623!=_0x15fc16(0x26f)?_0x5b9623+'':_0x5b9623,_0x298795);let E=class extends _0x3af9e7{constructor(_0x299762=re,_0x1208dc,_0x46a8d8,_0x279d06,_0x1b14dc,_0x271579){const _0x52adb9=_0x15fc16;super(),this[_0x52adb9(0x23b)]=_0x299762,this[_0x52adb9(0x2b9)]=_0x1208dc,this[_0x52adb9(0x2f7)]=_0x46a8d8,this[_0x52adb9(0x1c3)]=_0x279d06,this[_0x52adb9(0x286)]=_0x1b14dc,this['_localeService']=_0x271579;const {..._0x26a064}=_0x5812fc({},re,this[_0x52adb9(0x23b)]);this[_0x52adb9(0x2f7)][_0x52adb9(0x283)](y,_0x26a064);}async[_0x15fc16(0x265)](){const _0x44eb93=_0x15fc16,_0x47cfcd=[[D],[I],[$]];this['_injector'][_0x44eb93(0x204)](_0x291f6e)||_0x47cfcd[_0x44eb93(0x253)]([_0x291f6e,{'useClass':_0x262918}]),_0x47cfcd['forEach'](_0x22ccc4=>this[_0x44eb93(0x2b9)]['add'](_0x22ccc4)),this[_0x44eb93(0x2b9)][_0x44eb93(0x1ef)](D),this[_0x44eb93(0x2b9)][_0x44eb93(0x1ef)](I),this[_0x44eb93(0x2b9)][_0x44eb93(0x1ef)]($);}};Y(E,_0x15fc16(0x2c7),'MCP_UI_PLUGIN'),Y(E,'packageName',he[_0x15fc16(0x1e4)]),Y(E,'version',he['version']),E=Sn([_0x15fc36(_0x572af9),P(0x1,_0x471848(_0x15522a)),P(0x2,_0x52408d),P(0x3,_0xceceef),P(0x4,_0x5d40f4),P(0x5,_0x471848(_0x1e9f5a))],E);export{tn as MCPConfigPanel,I as MCPConfigUIController,D as MCPConnectionUIController,ln as MCPStatusDisplay,$ as MCPUIMenuController,V as OpenMCPConfigPanelCommand,E as UniverMCPUIPlugin,Dn as enUS,$n as zhCN};