@univerjs-pro/mcp-ui 0.10.14 → 0.11.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 (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +7 -7
@@ -1 +1 @@
1
- function _0x44e9(){const _0x324e14=['Configuration\x20Parameters:','Configuration\x20Steps:','Connected','4705632KJrfzW','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Connection\x20Failed','API\x20Key','7DXMboU','Save\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','151532AcnMUl','MCP\x20Disconnected','10OwhoRn','1082484xNswfb','26631590oAxSTi','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Enter\x20your\x20API\x20key','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2083005wafmRM','Max\x20Retries','161561uyrAZY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1915572dypqZz','75BLGcwr','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connected','MCP:\x20Unauthorized','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.'];_0x44e9=function(){return _0x324e14;};return _0x44e9();}const _0x4a1d7f=_0x824b;(function(_0x196066,_0x1a1201){const _0x879215=_0x824b,_0x517992=_0x196066();while(!![]){try{const _0x54820e=parseInt(_0x879215(0x151))/0x1*(-parseInt(_0x879215(0x13b))/0x2)+parseInt(_0x879215(0x154))/0x3*(-parseInt(_0x879215(0x139))/0x4)+parseInt(_0x879215(0x14f))/0x5+parseInt(_0x879215(0x153))/0x6*(-parseInt(_0x879215(0x167))/0x7)+-parseInt(_0x879215(0x160))/0x8+parseInt(_0x879215(0x13c))/0x9+parseInt(_0x879215(0x13d))/0xa;if(_0x54820e===_0x1a1201)break;else _0x517992['push'](_0x517992['shift']());}catch(_0x26cda0){_0x517992['push'](_0x517992['shift']());}}}(_0x44e9,0x8345a));function _0x824b(_0xe0dc0c,_0x11029b){const _0x44e923=_0x44e9();return _0x824b=function(_0x824b0e,_0x51ca71){_0x824b0e=_0x824b0e-0x137;let _0x2c3897=_0x44e923[_0x824b0e];return _0x2c3897;},_0x824b(_0xe0dc0c,_0x11029b);}const e={'mcpStatus':{'disconnected':_0x4a1d7f(0x13a),'connecting':_0x4a1d7f(0x149),'connected':_0x4a1d7f(0x158),'failed':_0x4a1d7f(0x156),'retrying':'MCP\x20Retrying...','unknown':_0x4a1d7f(0x15b),'unauthorized':_0x4a1d7f(0x159),'sessionOccupied':_0x4a1d7f(0x13e),'networkError':_0x4a1d7f(0x14d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4a1d7f(0x148),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4a1d7f(0x145),'description':_0x4a1d7f(0x16b),'apiKey':_0x4a1d7f(0x166),'apiKeyPlaceholder':_0x4a1d7f(0x144),'apiKeyHint':_0x4a1d7f(0x152),'enableAuth':_0x4a1d7f(0x143),'enableAuthHint':_0x4a1d7f(0x13f),'connectionInfo':_0x4a1d7f(0x164),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4a1d7f(0x141),'configStepTitle':_0x4a1d7f(0x15e),'configStep1':_0x4a1d7f(0x163),'configStep2':_0x4a1d7f(0x138),'configStep3':_0x4a1d7f(0x155),'sessionId':_0x4a1d7f(0x140),'sessionIdDescription':_0x4a1d7f(0x157),'authorizationDescription':_0x4a1d7f(0x15c),'configParameters':_0x4a1d7f(0x15d),'maxRetries':_0x4a1d7f(0x150),'save':_0x4a1d7f(0x168),'saving':'Saving...','note1':_0x4a1d7f(0x142),'note2':_0x4a1d7f(0x14e),'configSaved':_0x4a1d7f(0x161),'configError':_0x4a1d7f(0x146),'apiApplyInfo':{'title':_0x4a1d7f(0x137),'description':_0x4a1d7f(0x169),'univerAiLabel':_0x4a1d7f(0x16a),'getStarted':_0x4a1d7f(0x14b)},'validation':{'apiKeyRequired':_0x4a1d7f(0x15a),'apiKeyTooShort':_0x4a1d7f(0x147),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x4a1d7f(0x15f),'failed':_0x4a1d7f(0x165),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4a1d7f(0x162),'networkError':_0x4a1d7f(0x14c),'maxRetriesExceeded':_0x4a1d7f(0x14a)}}},n=e;export{n as default};
1
+ const _0x20cdef=_0x1486;function _0x1486(_0x25e07b,_0x1ebf03){const _0xd95d46=_0xd95d();return _0x1486=function(_0x1486c7,_0x4a69b8){_0x1486c7=_0x1486c7-0x179;let _0x374ce6=_0xd95d46[_0x1486c7];return _0x374ce6;},_0x1486(_0x25e07b,_0x1ebf03);}(function(_0x42bddb,_0x29a1e7){const _0x22150f=_0x1486,_0x5cd4ec=_0x42bddb();while(!![]){try{const _0x5884cb=parseInt(_0x22150f(0x1a3))/0x1+-parseInt(_0x22150f(0x18f))/0x2*(parseInt(_0x22150f(0x17a))/0x3)+parseInt(_0x22150f(0x19e))/0x4+-parseInt(_0x22150f(0x183))/0x5+-parseInt(_0x22150f(0x191))/0x6*(-parseInt(_0x22150f(0x17d))/0x7)+-parseInt(_0x22150f(0x17f))/0x8*(-parseInt(_0x22150f(0x190))/0x9)+-parseInt(_0x22150f(0x19d))/0xa*(parseInt(_0x22150f(0x1a9))/0xb);if(_0x5884cb===_0x29a1e7)break;else _0x5cd4ec['push'](_0x5cd4ec['shift']());}catch(_0x31fc93){_0x5cd4ec['push'](_0x5cd4ec['shift']());}}}(_0xd95d,0x933b7));const e={'mcpStatus':{'disconnected':_0x20cdef(0x1a1),'connecting':_0x20cdef(0x18d),'connected':_0x20cdef(0x1a7),'failed':_0x20cdef(0x189),'retrying':_0x20cdef(0x1a5),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x20cdef(0x192),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x20cdef(0x1a6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x20cdef(0x1ac),'clickToConfigure':_0x20cdef(0x17b)},'mcpConfig':{'title':_0x20cdef(0x19f),'description':_0x20cdef(0x199),'apiKey':_0x20cdef(0x188),'apiKeyPlaceholder':_0x20cdef(0x197),'apiKeyHint':_0x20cdef(0x180),'enableAuth':_0x20cdef(0x17e),'enableAuthHint':_0x20cdef(0x181),'connectionInfo':_0x20cdef(0x19c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x20cdef(0x1ab),'configStepTitle':_0x20cdef(0x18c),'configStep1':_0x20cdef(0x198),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x20cdef(0x184),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x20cdef(0x18b),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x20cdef(0x19b),'save':_0x20cdef(0x1a8),'saving':'Saving...','note1':_0x20cdef(0x194),'note2':_0x20cdef(0x17c),'configSaved':_0x20cdef(0x182),'configError':_0x20cdef(0x196),'apiApplyInfo':{'title':_0x20cdef(0x195),'description':_0x20cdef(0x179),'univerAiLabel':_0x20cdef(0x18a),'getStarted':_0x20cdef(0x186)},'validation':{'apiKeyRequired':_0x20cdef(0x18e),'apiKeyTooShort':_0x20cdef(0x1a4),'invalidConfig':_0x20cdef(0x1aa),'invalidApiKey':_0x20cdef(0x187)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x20cdef(0x185),'failed':_0x20cdef(0x1a0),'retrying':_0x20cdef(0x193)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x20cdef(0x19a),'networkError':_0x20cdef(0x1ad),'maxRetriesExceeded':_0x20cdef(0x1a2)}}},n=e;function _0xd95d(){const _0x4331ac=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1999403hgRiID','Enable\x20Authentication','8632GfXyeM','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','2048855JiehoQ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','MCP\x20Connecting...','API\x20key\x20is\x20required','94KBzwMb','9279rXDcCL','6iMjRtp','MCP:\x20Unauthorized','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','MCP\x20Client\x20Configuration','50XicuFc','2131232FMkjvl','MCP\x20Configuration','Connection\x20Failed','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1047344MiTIzP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','MCP:\x20Network\x20Error','MCP\x20Connected','Save\x20Configuration','2271071XNhzDd','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','59559ezypRZ','Click\x20to\x20configure\x20MCP'];_0xd95d=function(){return _0x4331ac;};return _0xd95d();}export{n as default};
@@ -1 +1 @@
1
- const _0x595294=_0x3378;(function(_0x281a13,_0x5525ce){const _0x231da3=_0x3378,_0x5968f5=_0x281a13();while(!![]){try{const _0x47db06=parseInt(_0x231da3(0x203))/0x1*(-parseInt(_0x231da3(0x207))/0x2)+-parseInt(_0x231da3(0x1f4))/0x3+-parseInt(_0x231da3(0x1f6))/0x4*(-parseInt(_0x231da3(0x1f8))/0x5)+parseInt(_0x231da3(0x1e0))/0x6*(-parseInt(_0x231da3(0x205))/0x7)+parseInt(_0x231da3(0x200))/0x8*(-parseInt(_0x231da3(0x1e9))/0x9)+-parseInt(_0x231da3(0x201))/0xa+-parseInt(_0x231da3(0x1dd))/0xb*(-parseInt(_0x231da3(0x1f0))/0xc);if(_0x47db06===_0x5525ce)break;else _0x5968f5['push'](_0x5968f5['shift']());}catch(_0x5de6cb){_0x5968f5['push'](_0x5968f5['shift']());}}}(_0x1cfe,0x7c582));const e={'mcpStatus':{'disconnected':_0x595294(0x202),'connecting':_0x595294(0x20c),'connected':_0x595294(0x1e5),'failed':_0x595294(0x20b),'retrying':_0x595294(0x1f1),'unknown':_0x595294(0x1ed),'unauthorized':_0x595294(0x1ef),'sessionOccupied':_0x595294(0x1ea),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x595294(0x1e8),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x595294(0x1de)},'mcpConfig':{'title':_0x595294(0x1db),'description':_0x595294(0x1e2),'apiKey':_0x595294(0x1e3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x595294(0x1e1),'enableAuth':_0x595294(0x1f3),'enableAuthHint':_0x595294(0x1e7),'connectionInfo':_0x595294(0x1ee),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x595294(0x1f5),'configStepTitle':_0x595294(0x1f9),'configStep1':_0x595294(0x1fd),'configStep2':_0x595294(0x1eb),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x595294(0x1e4),'sessionIdDescription':_0x595294(0x1fa),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x595294(0x1dc),'save':_0x595294(0x1f7),'saving':_0x595294(0x1f2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x595294(0x1fb),'description':_0x595294(0x1e6),'univerAiLabel':_0x595294(0x1df),'getStarted':_0x595294(0x1ec)},'validation':{'apiKeyRequired':_0x595294(0x209),'apiKeyTooShort':_0x595294(0x206),'invalidConfig':_0x595294(0x1fe),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x595294(0x1ff),'connected':_0x595294(0x1fc),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x595294(0x204),'sessionOccupied':_0x595294(0x20a),'networkError':_0x595294(0x208),'maxRetriesExceeded':_0x595294(0x20d)}}},n=e;function _0x1cfe(){const _0x304de0=['MCP\x20Disconnected','85IgQsjM','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','266EjtlYQ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2562yPXuBw','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Max\x20Retries','15595514dWlDmb','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','106746YzoVhD','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Session\x20ID','MCP\x20Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','10440XjtLtL','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','24yjwGNZ','MCP\x20Retrying...','Saving...','Enable\x20Authentication','2843901urZTmd','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','12fMIOli','Save\x20Configuration','1641315GtYoXv','Configuration\x20Steps:','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?','Connected','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','Connecting...','5392gXEKWu','7962730GIHWZP'];_0x1cfe=function(){return _0x304de0;};return _0x1cfe();}function _0x3378(_0x22905e,_0x3d8dd8){const _0x1cfea7=_0x1cfe();return _0x3378=function(_0x33787c,_0x260f08){_0x33787c=_0x33787c-0x1db;let _0x46c6f0=_0x1cfea7[_0x33787c];return _0x46c6f0;},_0x3378(_0x22905e,_0x3d8dd8);}export{n as default};
1
+ const _0x44ce91=_0xbb0a;function _0xbb0a(_0x3ab589,_0xcfacba){const _0x28b162=_0x28b1();return _0xbb0a=function(_0xbb0a3c,_0x4de661){_0xbb0a3c=_0xbb0a3c-0x16f;let _0x15341e=_0x28b162[_0xbb0a3c];return _0x15341e;},_0xbb0a(_0x3ab589,_0xcfacba);}(function(_0x2a923d,_0x2bd200){const _0x5c25b2=_0xbb0a,_0x33153d=_0x2a923d();while(!![]){try{const _0x4fcd47=-parseInt(_0x5c25b2(0x171))/0x1*(-parseInt(_0x5c25b2(0x17e))/0x2)+parseInt(_0x5c25b2(0x176))/0x3+parseInt(_0x5c25b2(0x198))/0x4*(parseInt(_0x5c25b2(0x175))/0x5)+-parseInt(_0x5c25b2(0x183))/0x6*(-parseInt(_0x5c25b2(0x196))/0x7)+parseInt(_0x5c25b2(0x179))/0x8+parseInt(_0x5c25b2(0x184))/0x9*(-parseInt(_0x5c25b2(0x177))/0xa)+-parseInt(_0x5c25b2(0x199))/0xb*(parseInt(_0x5c25b2(0x194))/0xc);if(_0x4fcd47===_0x2bd200)break;else _0x33153d['push'](_0x33153d['shift']());}catch(_0xfd2ab5){_0x33153d['push'](_0x33153d['shift']());}}}(_0x28b1,0xf1a1c));const e={'mcpStatus':{'disconnected':_0x44ce91(0x180),'connecting':_0x44ce91(0x186),'connected':_0x44ce91(0x178),'failed':_0x44ce91(0x17a),'retrying':_0x44ce91(0x1a0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x44ce91(0x182),'sessionOccupied':_0x44ce91(0x1a1),'networkError':_0x44ce91(0x173),'maxRetriesExceeded':_0x44ce91(0x192),'clickToConnect':_0x44ce91(0x191),'clickToConfigure':_0x44ce91(0x19b)},'mcpConfig':{'title':_0x44ce91(0x18f),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x44ce91(0x172),'apiKeyHint':_0x44ce91(0x174),'enableAuth':_0x44ce91(0x187),'enableAuthHint':_0x44ce91(0x17c),'connectionInfo':_0x44ce91(0x197),'mcpClientConfig':_0x44ce91(0x197),'configInstructions':_0x44ce91(0x18a),'configStepTitle':_0x44ce91(0x18e),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x44ce91(0x18c),'sessionId':'Session\x20ID','sessionIdDescription':_0x44ce91(0x19a),'authorizationDescription':_0x44ce91(0x181),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x44ce91(0x19f),'saving':_0x44ce91(0x185),'note1':_0x44ce91(0x1a3),'note2':_0x44ce91(0x17d),'configSaved':_0x44ce91(0x193),'configError':_0x44ce91(0x18d),'apiApplyInfo':{'title':_0x44ce91(0x19c),'description':_0x44ce91(0x19e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x44ce91(0x195),'apiKeyTooShort':_0x44ce91(0x17b),'invalidConfig':_0x44ce91(0x16f),'invalidApiKey':_0x44ce91(0x1a2)},'connectionStatus':{'disconnected':_0x44ce91(0x18b),'connecting':_0x44ce91(0x17f),'connected':_0x44ce91(0x188),'failed':_0x44ce91(0x170),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x44ce91(0x19d),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x44ce91(0x190),'maxRetriesExceeded':_0x44ce91(0x189)}}},n=e;export{n as default};function _0x28b1(){const _0x61465e=['14933256CIVifG','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2JHKQtf','Connecting...','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','6TGaEgM','347904aBmxna','Saving...','MCP\x20Connecting...','Enable\x20Authentication','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','Configuration\x20Steps:','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','4296jOahbS','API\x20key\x20is\x20required','4403287OIpsDu','MCP\x20Client\x20Configuration','316444aPEwVP','109296lyaXYr','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Authorization\x20failed,\x20please\x20check\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.','Save\x20Configuration','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Connection\x20Failed','987565sjcEkg','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','40pcAMwB','4655055pBlaeI','290TdOwij','MCP\x20Connected'];_0x28b1=function(){return _0x61465e;};return _0x28b1();}
@@ -1 +1 @@
1
- const _0x1de7bf=_0x3ef9;function _0x3ef9(_0x421504,_0x2ecb4a){const _0x588dd8=_0x588d();return _0x3ef9=function(_0x3ef974,_0x8fac73){_0x3ef974=_0x3ef974-0xaa;let _0x31763d=_0x588dd8[_0x3ef974];return _0x31763d;},_0x3ef9(_0x421504,_0x2ecb4a);}(function(_0x36fbe7,_0x561e4a){const _0x117b9c=_0x3ef9,_0x12d891=_0x36fbe7();while(!![]){try{const _0x2c6eb9=-parseInt(_0x117b9c(0xb6))/0x1+parseInt(_0x117b9c(0xbb))/0x2*(-parseInt(_0x117b9c(0xcd))/0x3)+-parseInt(_0x117b9c(0xaf))/0x4*(parseInt(_0x117b9c(0xbc))/0x5)+parseInt(_0x117b9c(0xda))/0x6*(parseInt(_0x117b9c(0xb1))/0x7)+parseInt(_0x117b9c(0xc9))/0x8*(parseInt(_0x117b9c(0xb8))/0x9)+-parseInt(_0x117b9c(0xb2))/0xa*(parseInt(_0x117b9c(0xc2))/0xb)+parseInt(_0x117b9c(0xc6))/0xc*(parseInt(_0x117b9c(0xd9))/0xd);if(_0x2c6eb9===_0x561e4a)break;else _0x12d891['push'](_0x12d891['shift']());}catch(_0x434a17){_0x12d891['push'](_0x12d891['shift']());}}}(_0x588d,0xe4fcf));function _0x588d(){const _0x412286=['MCP\x20已断开','7sACwSc','250sOKbab','几秒钟内获取您的\x20API\x20密钥','什么是\x20API\x20密钥?','您的\x20API\x20密钥安全存储在本地存储中','1668390PcvasI','启用身份验证','6764670TzJSXW','连接中...','API\x20密钥','780QOQEuC','608485qavVep','MCP\x20连接中...','权限验证失败,请检查您的\x20API\x20密钥','API\x20密钥无效,请检查密钥是否正确','网络连接错误,请检查您的网络连接','未连接','396539GvgVsJ','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','保存中...','MCP\x20状态未知','132NDWjhI','会话\x20ID\x20已被占用,请稍后再试','配置更改将立即生效','8DngxqL','连接失败','复制以下\x20JSON\x20配置','MCP\x20客户端配置','8607cHPRhC','点击配置\x20MCP','配置保存成功','保存配置','已连接','重连中...','配置保存失败','配置参数:','MCP:\x20网络错误','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Univer\x20AI\x20控制台','请输入您的\x20API\x20密钥','4669639BuTKUf','8303766pyLhVy','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20配置','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP\x20已连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20连接失败','48jnZFdO'];_0x588d=function(){return _0x412286;};return _0x588d();}const e={'mcpStatus':{'disconnected':_0x1de7bf(0xb0),'connecting':_0x1de7bf(0xbd),'connected':_0x1de7bf(0xac),'failed':_0x1de7bf(0xae),'retrying':'MCP\x20重连中...','unknown':_0x1de7bf(0xc5),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x1de7bf(0xd5),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x1de7bf(0xce)},'mcpConfig':{'title':_0x1de7bf(0xaa),'description':_0x1de7bf(0xad),'apiKey':_0x1de7bf(0xba),'apiKeyPlaceholder':_0x1de7bf(0xd8),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1de7bf(0xb7),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x1de7bf(0xcc),'mcpClientConfig':_0x1de7bf(0xcc),'configInstructions':_0x1de7bf(0xab),'configStepTitle':'配置步骤:','configStep1':_0x1de7bf(0xcb),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x1de7bf(0xdb),'sessionId':'会话ID','sessionIdDescription':_0x1de7bf(0xd6),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x1de7bf(0xd4),'maxRetries':'最大重试次数','save':_0x1de7bf(0xd0),'saving':_0x1de7bf(0xc4),'note1':_0x1de7bf(0xc8),'note2':_0x1de7bf(0xb5),'configSaved':_0x1de7bf(0xcf),'configError':_0x1de7bf(0xd3),'apiApplyInfo':{'title':_0x1de7bf(0xb4),'description':_0x1de7bf(0xc3),'univerAiLabel':_0x1de7bf(0xd7),'getStarted':_0x1de7bf(0xb3)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x1de7bf(0xbf)},'connectionStatus':{'disconnected':_0x1de7bf(0xc1),'connecting':_0x1de7bf(0xb9),'connected':_0x1de7bf(0xd1),'failed':_0x1de7bf(0xca),'retrying':_0x1de7bf(0xd2)},'connectionError':{'unauthorized':_0x1de7bf(0xbe),'sessionOccupied':_0x1de7bf(0xc7),'networkError':_0x1de7bf(0xc0),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{e as default};
1
+ const _0x2e3fa1=_0x565a;function _0x565a(_0x25f204,_0x5816ce){const _0xb460ec=_0xb460();return _0x565a=function(_0x565a2d,_0x1d121c){_0x565a2d=_0x565a2d-0xc3;let _0x19ddc2=_0xb460ec[_0x565a2d];return _0x19ddc2;},_0x565a(_0x25f204,_0x5816ce);}function _0xb460(){const _0x38ab6e=['MCP\x20连接失败','1521HhklCd','8WGzqCL','MCP\x20客户端配置','6vnQmBt','28434xZYQsF','点击配置\x20MCP','MCP:\x20网络错误','连接中...','28032KfFbhc','重连中...','API\x20密钥不能为空','MCP\x20重连中...','点击连接\x20MCP','启用身份验证以获得安全连接','连接失败','配置无效','3965262VsFjpM','738HwHwAq','MCP:\x20会话\x20ID\x20已被占用','最大重试次数','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Univer\x20AI\x20控制台','配置步骤:','您的\x20API\x20密钥将在此浏览器中本地存储','会话ID','配置保存失败','配置保存成功','配置更改将立即生效','API\x20密钥长度至少需要\x2010\x20位','2593926bflliH','超出最大重试次数,请稍后再试','API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','未连接','保存中...','启用身份验证','API\x20密钥无效,请检查密钥是否正确','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置参数:','MCP\x20连接中...','权限验证失败,请检查您的\x20API\x20密钥','20uVHESF','1815bTVZic','1292mMcLHj','MCP\x20配置','网络连接错误,请检查您的网络连接','会话\x20ID\x20已被占用,请稍后再试','5nwBuQh','2180983VghIdz','已连接','33994oJnYGL','MCP\x20状态未知'];_0xb460=function(){return _0x38ab6e;};return _0xb460();}(function(_0x197f46,_0x333212){const _0xa105f3=_0x565a,_0x1ab7d4=_0x197f46();while(!![]){try{const _0x1d7c17=-parseInt(_0xa105f3(0xec))/0x1*(-parseInt(_0xa105f3(0xf2))/0x2)+-parseInt(_0xa105f3(0xcb))/0x3*(-parseInt(_0xa105f3(0xe5))/0x4)+parseInt(_0xa105f3(0xe9))/0x5*(parseInt(_0xa105f3(0xca))/0x6)+-parseInt(_0xa105f3(0xea))/0x7*(-parseInt(_0xa105f3(0xf0))/0x8)+-parseInt(_0xa105f3(0xd7))/0x9*(parseInt(_0xa105f3(0xe3))/0xa)+parseInt(_0xa105f3(0xe4))/0xb*(parseInt(_0xa105f3(0xf7))/0xc)+parseInt(_0xa105f3(0xef))/0xd*(-parseInt(_0xa105f3(0xf3))/0xe);if(_0x1d7c17===_0x333212)break;else _0x1ab7d4['push'](_0x1ab7d4['shift']());}catch(_0x345199){_0x1ab7d4['push'](_0x1ab7d4['shift']());}}}(_0xb460,0xb1117));const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x2e3fa1(0xe1),'connected':'MCP\x20已连接','failed':_0x2e3fa1(0xee),'retrying':_0x2e3fa1(0xc5),'unknown':_0x2e3fa1(0xed),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x2e3fa1(0xcc),'networkError':_0x2e3fa1(0xf5),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2e3fa1(0xc6),'clickToConfigure':_0x2e3fa1(0xf4)},'mcpConfig':{'title':_0x2e3fa1(0xe6),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2e3fa1(0xd9),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2e3fa1(0xd1),'enableAuth':_0x2e3fa1(0xdd),'enableAuthHint':_0x2e3fa1(0xc7),'connectionInfo':_0x2e3fa1(0xf1),'mcpClientConfig':_0x2e3fa1(0xf1),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x2e3fa1(0xd0),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x2e3fa1(0xda),'sessionId':_0x2e3fa1(0xd2),'sessionIdDescription':_0x2e3fa1(0xce),'authorizationDescription':_0x2e3fa1(0xdf),'configParameters':_0x2e3fa1(0xe0),'maxRetries':_0x2e3fa1(0xcd),'save':'保存配置','saving':_0x2e3fa1(0xdc),'note1':_0x2e3fa1(0xd5),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x2e3fa1(0xd4),'configError':_0x2e3fa1(0xd3),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2e3fa1(0xcf),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2e3fa1(0xc4),'apiKeyTooShort':_0x2e3fa1(0xd6),'invalidConfig':_0x2e3fa1(0xc9),'invalidApiKey':_0x2e3fa1(0xde)},'connectionStatus':{'disconnected':_0x2e3fa1(0xdb),'connecting':_0x2e3fa1(0xf6),'connected':_0x2e3fa1(0xeb),'failed':_0x2e3fa1(0xc8),'retrying':_0x2e3fa1(0xc3)},'connectionError':{'unauthorized':_0x2e3fa1(0xe2),'sessionOccupied':_0x2e3fa1(0xe8),'networkError':_0x2e3fa1(0xe7),'maxRetriesExceeded':_0x2e3fa1(0xd8)}}};export{e as default};
@@ -1 +1 @@
1
- const _0x53a1d6=_0x8e14;(function(_0x396333,_0x3baee8){const _0x28af26=_0x8e14,_0x54708f=_0x396333();while(!![]){try{const _0x1431f5=-parseInt(_0x28af26(0x198))/0x1*(parseInt(_0x28af26(0x184))/0x2)+parseInt(_0x28af26(0x19e))/0x3+parseInt(_0x28af26(0x18c))/0x4*(parseInt(_0x28af26(0x192))/0x5)+-parseInt(_0x28af26(0x1ac))/0x6*(-parseInt(_0x28af26(0x190))/0x7)+-parseInt(_0x28af26(0x1a6))/0x8*(-parseInt(_0x28af26(0x1b1))/0x9)+parseInt(_0x28af26(0x189))/0xa+parseInt(_0x28af26(0x1a8))/0xb*(-parseInt(_0x28af26(0x19a))/0xc);if(_0x1431f5===_0x3baee8)break;else _0x54708f['push'](_0x54708f['shift']());}catch(_0x4bd4ef){_0x54708f['push'](_0x54708f['shift']());}}}(_0xc527,0x40252));function _0x8e14(_0x57a961,_0x163b5d){const _0xc527e3=_0xc527();return _0x8e14=function(_0x8e1408,_0x561860){_0x8e1408=_0x8e1408-0x17d;let _0xd32e53=_0xc527e3[_0x8e1408];return _0xd32e53;},_0x8e14(_0x57a961,_0x163b5d);}const e={'mcpStatus':{'disconnected':_0x53a1d6(0x180),'connecting':_0x53a1d6(0x1a3),'connected':'MCP\x20Connected','failed':_0x53a1d6(0x182),'retrying':_0x53a1d6(0x1a2),'unknown':_0x53a1d6(0x17e),'unauthorized':_0x53a1d6(0x18b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x53a1d6(0x186),'maxRetriesExceeded':_0x53a1d6(0x196),'clickToConnect':_0x53a1d6(0x19d),'clickToConfigure':_0x53a1d6(0x187)},'mcpConfig':{'title':_0x53a1d6(0x1ad),'description':_0x53a1d6(0x17d),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x53a1d6(0x191),'apiKeyHint':_0x53a1d6(0x17f),'enableAuth':_0x53a1d6(0x1aa),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x53a1d6(0x195),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x53a1d6(0x1a7),'configStepTitle':_0x53a1d6(0x19c),'configStep1':_0x53a1d6(0x197),'configStep2':_0x53a1d6(0x181),'configStep3':_0x53a1d6(0x1a0),'sessionId':_0x53a1d6(0x18f),'sessionIdDescription':_0x53a1d6(0x1a4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x53a1d6(0x18e),'maxRetries':_0x53a1d6(0x1a1),'save':_0x53a1d6(0x1af),'saving':_0x53a1d6(0x188),'note1':_0x53a1d6(0x194),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x53a1d6(0x1a9),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x53a1d6(0x19f),'univerAiLabel':_0x53a1d6(0x185),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x53a1d6(0x1ae),'apiKeyTooShort':_0x53a1d6(0x18d),'invalidConfig':_0x53a1d6(0x193),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x53a1d6(0x19b),'connecting':_0x53a1d6(0x199),'connected':_0x53a1d6(0x18a),'failed':'Connection\x20Failed','retrying':_0x53a1d6(0x1a5)},'connectionError':{'unauthorized':_0x53a1d6(0x1b2),'sessionOccupied':_0x53a1d6(0x1b0),'networkError':_0x53a1d6(0x1ab),'maxRetriesExceeded':_0x53a1d6(0x183)}}},n=e;function _0xc527(){const _0x195053=['MCP\x20Configuration','API\x20key\x20is\x20required','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','171WhXdZR','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','128378oToSDV','Univer\x20AI\x20Console','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Saving...','847690fwewGt','Connected','MCP:\x20Unauthorized','55716nPhPpI','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Parameters:','Session\x20ID','7lWNOpb','Enter\x20your\x20API\x20key','10RprfWt','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','3QbctzC','Connecting...','10080744mdfhyL','Disconnected','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','1024110UxHHFn','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','MCP\x20Retrying...','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','202088vECHiT','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','11NokHqN','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2168466rhewfO'];_0xc527=function(){return _0x195053;};return _0xc527();}export{n as default};
1
+ const _0x318abc=_0x3243;function _0x3243(_0x4a3c4d,_0x4469c4){const _0x5e86a6=_0x5e86();return _0x3243=function(_0x324322,_0x132623){_0x324322=_0x324322-0x180;let _0x142694=_0x5e86a6[_0x324322];return _0x142694;},_0x3243(_0x4a3c4d,_0x4469c4);}function _0x5e86(){const _0x2bfd6d=['Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','419884KyDqow','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','637206rjvitl','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3710330nRGkVe','35FqPhks','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','251592EdlveQ','API\x20Key','422001iemKmQ','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Steps:','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','20zNtrsa','MCP:\x20Network\x20Error','Save\x20Configuration','MCP\x20Retrying...','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20saved\x20successfully','Connecting...','2393856hoNolw','Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Enable\x20Authentication','MCP\x20Connected','93SEUMhJ','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','53264dYqRqQ','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x5e86=function(){return _0x2bfd6d;};return _0x5e86();}(function(_0xa18c34,_0x2fca2e){const _0x1e1faa=_0x3243,_0x21a521=_0xa18c34();while(!![]){try{const _0x29e593=-parseInt(_0x1e1faa(0x18b))/0x1+parseInt(_0x1e1faa(0x1b3))/0x2+parseInt(_0x1e1faa(0x1ab))/0x3*(parseInt(_0x1e1faa(0x1b0))/0x4)+parseInt(_0x1e1faa(0x194))/0x5*(-parseInt(_0x1e1faa(0x183))/0x6)+-parseInt(_0x1e1faa(0x186))/0x7*(parseInt(_0x1e1faa(0x189))/0x8)+parseInt(_0x1e1faa(0x19c))/0x9+parseInt(_0x1e1faa(0x185))/0xa;if(_0x29e593===_0x2fca2e)break;else _0x21a521['push'](_0x21a521['shift']());}catch(_0x4d7036){_0x21a521['push'](_0x21a521['shift']());}}}(_0x5e86,0x3e6d9));const e={'mcpStatus':{'disconnected':_0x318abc(0x1a2),'connecting':'MCP\x20Connecting...','connected':_0x318abc(0x1aa),'failed':'MCP\x20Connection\x20Failed','retrying':_0x318abc(0x197),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x318abc(0x1ad),'networkError':_0x318abc(0x195),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x318abc(0x182),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x318abc(0x1a1),'description':_0x318abc(0x18c),'apiKey':_0x318abc(0x18a),'apiKeyPlaceholder':_0x318abc(0x191),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x318abc(0x1a9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x318abc(0x198),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x318abc(0x19e),'configStepTitle':_0x318abc(0x18d),'configStep1':_0x318abc(0x192),'configStep2':_0x318abc(0x187),'configStep3':_0x318abc(0x184),'sessionId':_0x318abc(0x1a6),'sessionIdDescription':_0x318abc(0x18f),'authorizationDescription':_0x318abc(0x1a3),'configParameters':_0x318abc(0x190),'maxRetries':_0x318abc(0x18e),'save':_0x318abc(0x196),'saving':_0x318abc(0x1a8),'note1':_0x318abc(0x1a0),'note2':_0x318abc(0x1af),'configSaved':_0x318abc(0x19a),'configError':_0x318abc(0x181),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x318abc(0x180),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x318abc(0x199)},'validation':{'apiKeyRequired':_0x318abc(0x1a4),'apiKeyTooShort':_0x318abc(0x19f),'invalidConfig':_0x318abc(0x1ae),'invalidApiKey':_0x318abc(0x1b2)},'connectionStatus':{'disconnected':_0x318abc(0x188),'connecting':_0x318abc(0x19b),'connected':_0x318abc(0x19d),'failed':_0x318abc(0x1ac),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x318abc(0x1b1),'sessionOccupied':_0x318abc(0x193),'networkError':_0x318abc(0x1a7),'maxRetriesExceeded':_0x318abc(0x1a5)}}},n=e;export{n as default};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5c78e9,_0x30a760){const _0x53df62=_0x14ab,_0x195e24=_0x5c78e9();while(!![]){try{const _0xb1acbf=-parseInt(_0x53df62(0xf7))/0x1*(-parseInt(_0x53df62(0x1b5))/0x2)+-parseInt(_0x53df62(0x1dc))/0x3+-parseInt(_0x53df62(0xf8))/0x4*(parseInt(_0x53df62(0x105))/0x5)+parseInt(_0x53df62(0x98))/0x6+parseInt(_0x53df62(0x16e))/0x7*(-parseInt(_0x53df62(0xe0))/0x8)+parseInt(_0x53df62(0x1ec))/0x9*(parseInt(_0x53df62(0x198))/0xa)+parseInt(_0x53df62(0x141))/0xb;if(_0xb1acbf===_0x30a760)break;else _0x195e24['push'](_0x195e24['shift']());}catch(_0x311187){_0x195e24['push'](_0x195e24['shift']());}}}(_0x4ced,0xc55fc),function(_0x1598fb,_0x5ecfcb){const _0x4c52af=_0x14ab;typeof exports==_0x4c52af(0x1d3)&&typeof module<'u'?_0x5ecfcb(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x4c52af(0x135)&&define[_0x4c52af(0x1a4)]?define(['exports',_0x4c52af(0x1d8),_0x4c52af(0x113),'@univerjs-pro/mcp',_0x4c52af(0xe7),_0x4c52af(0x213),_0x4c52af(0x156),_0x4c52af(0x182),_0x4c52af(0xff)],_0x5ecfcb):(_0x1598fb=typeof globalThis<'u'?globalThis:_0x1598fb||self,_0x5ecfcb(_0x1598fb[_0x4c52af(0x11d)]={},_0x1598fb[_0x4c52af(0x12e)],_0x1598fb[_0x4c52af(0x20b)],_0x1598fb[_0x4c52af(0xb3)],_0x1598fb[_0x4c52af(0x1e2)],_0x1598fb[_0x4c52af(0x1e3)],_0x1598fb['rxjs'],_0x1598fb[_0x4c52af(0x20b)],_0x1598fb[_0x4c52af(0xd0)]));}(this,function(_0x18b352,_0x153d59,_0x3cecb4,_0x3fb9c8,_0x452fbd,_0x177dab,_0x234074,_0xb93d6d,_0x14a504){'use strict';const _0xb04ca9=_0x14ab;var _0x48442c=Object[_0xb04ca9(0x1f5)],_0x2f1042=(_0xac4b0d,_0x587301,_0x591b73)=>_0x587301 in _0xac4b0d?_0x48442c(_0xac4b0d,_0x587301,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x591b73}):_0xac4b0d[_0x587301]=_0x591b73,_0x468be1=(_0x4cc7a2,_0x1f32d7,_0x260b8a)=>_0x2f1042(_0x4cc7a2,typeof _0x1f32d7!=_0xb04ca9(0x18e)?_0x1f32d7+'':_0x1f32d7,_0x260b8a);function _0x264319({ref:_0x48aed8,..._0x145ea7}){const _0x5f222d=_0xb04ca9,{icon:_0x3ad84b,id:_0x125db5,className:_0x4fefc5,extend:_0x1692b0,..._0x3389f2}=_0x145ea7,_0x2e91fc=('univerjs-icon\x20univerjs-icon-'+_0x125db5+'\x20'+(_0x4fefc5||''))[_0x5f222d(0xe1)](),_0x2b3599=_0xb93d6d[_0x5f222d(0x7c)]('_'+_0x2e8d83());return _0x35f31f(_0x3ad84b,''+_0x125db5,{'defIds':_0x3ad84b[_0x5f222d(0x184)],'idSuffix':_0x2b3599[_0x5f222d(0x10e)]},{'ref':_0x48aed8,'className':_0x2e91fc,..._0x3389f2},_0x1692b0);}function _0x35f31f(_0x4dd1bf,_0x3e34f8,_0x22ffd7,_0x320e9a,_0x3bf8a4){const _0x9650ec=_0xb04ca9;return _0xb93d6d[_0x9650ec(0xe3)](_0x4dd1bf[_0x9650ec(0x20e)],{'key':_0x3e34f8,..._0x3665c3(_0x4dd1bf,_0x22ffd7,_0x3bf8a4),..._0x320e9a},(_0x38dab5(_0x4dd1bf,_0x22ffd7)[_0x9650ec(0x20a)]||[])['map']((_0x438f9b,_0x4561e9)=>_0x35f31f(_0x438f9b,_0x3e34f8+'-'+_0x4dd1bf['tag']+'-'+_0x4561e9,_0x22ffd7,void 0x0,_0x3bf8a4)));}function _0x3665c3(_0x12454b,_0x1fd1a6,_0x4d59ca){const _0xa5ff22=_0xb04ca9,_0x2deee6={..._0x12454b['attrs']};_0x4d59ca!=null&&_0x4d59ca['colorChannel1']&&_0x2deee6[_0xa5ff22(0x8c)]===_0xa5ff22(0xef)&&(_0x2deee6['fill']=_0x4d59ca[_0xa5ff22(0xef)]),_0x12454b['tag']===_0xa5ff22(0x15b)&&_0x2deee6['id']&&(_0x2deee6['id']=_0x2deee6['id']+_0x1fd1a6[_0xa5ff22(0x160)]),Object[_0xa5ff22(0x8e)](_0x2deee6)[_0xa5ff22(0x159)](([_0x4d0cb8,_0x3de638])=>{const _0x308e5c=_0xa5ff22;_0x4d0cb8===_0x308e5c(0x15b)&&typeof _0x3de638==_0x308e5c(0xa3)&&(_0x2deee6[_0x4d0cb8]=_0x3de638[_0x308e5c(0x180)](/url\(#(.*)\)/,'url(#$1'+_0x1fd1a6[_0x308e5c(0x160)]+')'));});const {defIds:_0x238fcb}=_0x1fd1a6;return!_0x238fcb||_0x238fcb[_0xa5ff22(0xbd)]===0x0||(_0x12454b[_0xa5ff22(0x20e)]===_0xa5ff22(0xa2)&&_0x2deee6[_0xa5ff22(0x1c5)]&&(_0x2deee6[_0xa5ff22(0x1c5)]=_0x2deee6['xlink:href']+_0x1fd1a6[_0xa5ff22(0x160)]),Object[_0xa5ff22(0x8e)](_0x2deee6)['forEach'](([_0x5b475b,_0x342b1c])=>{const _0x5a6163=_0xa5ff22;typeof _0x342b1c==_0x5a6163(0xa3)&&(_0x2deee6[_0x5b475b]=_0x342b1c[_0x5a6163(0x180)](/url\(#(.*)\)/,_0x5a6163(0x1cd)+_0x1fd1a6[_0x5a6163(0x160)]+')'));})),_0x2deee6;}function _0x38dab5(_0x583535,_0x394f97){const _0x32fc79=_0xb04ca9;var _0x2036ef;const {defIds:_0x5e2bc2}=_0x394f97;return!_0x5e2bc2||_0x5e2bc2[_0x32fc79(0xbd)]===0x0?_0x583535:_0x583535[_0x32fc79(0x20e)]===_0x32fc79(0x1f1)&&((_0x2036ef=_0x583535[_0x32fc79(0x20a)])!=null&&_0x2036ef[_0x32fc79(0xbd)])?{..._0x583535,'children':_0x583535[_0x32fc79(0x20a)][_0x32fc79(0xb0)](_0x3f04f7=>typeof _0x3f04f7[_0x32fc79(0xf9)]['id']==_0x32fc79(0xa3)&&_0x5e2bc2&&_0x5e2bc2['includes'](_0x3f04f7[_0x32fc79(0xf9)]['id'])?{..._0x3f04f7,'attrs':{..._0x3f04f7[_0x32fc79(0xf9)],'id':_0x3f04f7[_0x32fc79(0xf9)]['id']+_0x394f97[_0x32fc79(0x160)]}}:_0x3f04f7)}:_0x583535;}function _0x2e8d83(){const _0x582180=_0xb04ca9;return Math['random']()[_0x582180(0x199)](0x24)['substring'](0x2,0x8);}_0x264319[_0xb04ca9(0x9d)]=_0xb04ca9(0x89);const _0x3426f7={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':_0xb04ca9(0x190),'fill':_0xb04ca9(0x10f),'viewBox':'0\x200\x2016\x2016','width':_0xb04ca9(0x15d),'height':_0xb04ca9(0x15d)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0xe2),'d':_0xb04ca9(0x11a),'fillRule':_0xb04ca9(0x128),'clipRule':_0xb04ca9(0x128)}}]},_0x5469a1=_0xb93d6d[_0xb04ca9(0x203)](function(_0x14aa1e,_0x5bbda6){const _0x13fbbe=_0xb04ca9;return _0xb93d6d[_0x13fbbe(0xe3)](_0x264319,Object[_0x13fbbe(0x99)]({},_0x14aa1e,{'id':_0x13fbbe(0x1a6),'ref':_0x5bbda6,'icon':_0x3426f7}));});_0x5469a1[_0xb04ca9(0x9d)]=_0xb04ca9(0x13e);const _0x2a89cf={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xb04ca9(0x144),'width':'1em','height':_0xb04ca9(0x15d)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0xe2),'d':_0xb04ca9(0x1e4)}}]},_0x5b9a92=_0xb93d6d[_0xb04ca9(0x203)](function(_0x23256d,_0x5d79ed){const _0x16b152=_0xb04ca9;return _0xb93d6d[_0x16b152(0xe3)](_0x264319,Object['assign']({},_0x23256d,{'id':_0x16b152(0xab),'ref':_0x5d79ed,'icon':_0x2a89cf}));});_0x5b9a92[_0xb04ca9(0x9d)]=_0xb04ca9(0x186);const _0x133ad0={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xb04ca9(0x144),'width':'1em','height':_0xb04ca9(0x15d)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':'currentColor','d':_0xb04ca9(0x1da)}},{'tag':_0xb04ca9(0x136),'attrs':{'fill':'currentColor','d':_0xb04ca9(0x14c)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0xb04ca9(0x1fd),'fillRule':_0xb04ca9(0x128),'clipRule':_0xb04ca9(0x128)}}]},_0x2b5d16=_0xb93d6d[_0xb04ca9(0x203)](function(_0x384e54,_0x2830bb){const _0x41a1d6=_0xb04ca9;return _0xb93d6d['createElement'](_0x264319,Object[_0x41a1d6(0x99)]({},_0x384e54,{'id':'help-icon','ref':_0x2830bb,'icon':_0x133ad0}));});_0x2b5d16[_0xb04ca9(0x9d)]=_0xb04ca9(0x10c);const _0x5d26bc={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':_0xb04ca9(0x190),'fill':_0xb04ca9(0x10f),'viewBox':_0xb04ca9(0x144),'width':_0xb04ca9(0x15d),'height':_0xb04ca9(0x15d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'stroke':_0xb04ca9(0xe2),'d':_0xb04ca9(0x1d7),'strokeLinecap':'round','strokeLinejoin':_0xb04ca9(0x191),'strokeWidth':1.2}}]},{'tag':_0xb04ca9(0x1f1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0x1e5),'d':_0xb04ca9(0x178)}}]}]}],'defIds':[_0xb04ca9(0xd4)]},_0x22a02b=_0xb93d6d[_0xb04ca9(0x203)](function(_0x4a24fb,_0x1586e6){const _0x370fca=_0xb04ca9;return _0xb93d6d[_0x370fca(0xe3)](_0x264319,Object[_0x370fca(0x99)]({},_0x4a24fb,{'id':_0x370fca(0x1c4),'ref':_0x1586e6,'icon':_0x5d26bc}));});_0x22a02b[_0xb04ca9(0x9d)]=_0xb04ca9(0xa8);const _0x2f2375={'tag':_0xb04ca9(0x1fc),'attrs':{'xmlns':_0xb04ca9(0x190),'fill':_0xb04ca9(0x10f),'viewBox':_0xb04ca9(0x17f),'width':_0xb04ca9(0x15d),'height':_0xb04ca9(0x15d)},'children':[{'tag':'g','attrs':{'clipPath':_0xb04ca9(0x196)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'stroke':_0xb04ca9(0xe2),'d':_0xb04ca9(0x91),'strokeLinecap':_0xb04ca9(0x191),'strokeLinejoin':_0xb04ca9(0x191),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb04ca9(0x162)},'children':[{'tag':_0xb04ca9(0x136),'attrs':{'fill':_0xb04ca9(0x1e5),'d':_0xb04ca9(0x178),'transform':'translate(.97)'}}]}]}],'defIds':[_0xb04ca9(0x162)]},_0x49be4a=_0xb93d6d[_0xb04ca9(0x203)](function(_0x574c74,_0x5b2b05){const _0x45a5fb=_0xb04ca9;return _0xb93d6d[_0x45a5fb(0xe3)](_0x264319,Object[_0x45a5fb(0x99)]({},_0x574c74,{'id':'on-line-icon','ref':_0x5b2b05,'icon':_0x2f2375}));});_0x49be4a[_0xb04ca9(0x9d)]='OnLineIcon';function _0x3ad8ae(_0x5f1101){const _0x1442b6=_0xb04ca9;var _0x83d536,_0x50dbc1;const {mcpCoreConfig:_0x38cf48,onSave:_0x1ac1b3,loading:_0x31f938=!0x1,config:_0x301624,connectionStatus$:_0x16e537,connectionError$:_0x9b725d,currentApiKey$:_0x1bd754,currentSessionId$:_0x3a1836}=_0x5f1101,_0x426036=_0x177dab['useDependency'](_0x153d59[_0x1442b6(0x1d1)]),_0x2d2d77=_0x177dab['useObservable'](_0x16e537,_0x3fb9c8[_0x1442b6(0x1ac)][_0x1442b6(0x1bc)]),_0x117993=_0x177dab['useObservable'](_0x9b725d,_0x3fb9c8[_0x1442b6(0xee)]['NONE']),_0x941900=_0x177dab[_0x1442b6(0xae)](_0x3a1836,''),_0x3c3461=_0x177dab['useObservable'](_0x1bd754,''),[_0x551e17,_0x1be0c9]=_0xb93d6d[_0x1442b6(0xa5)](_0x3c3461||''),_0x35b880=!0x0,_0x25dee9=_0x301624[_0x1442b6(0x185)]&&_0x38cf48[_0x1442b6(0x17d)]&&(_0x38cf48[_0x1442b6(0x17d)][_0x1442b6(0x1a9)](_0x1442b6(0x142))||_0x38cf48['mcpServerUrl'][_0x1442b6(0x1a9)](_0x1442b6(0x92))),_0x4c4187=(_0x83d536=_0x38cf48[_0x1442b6(0x17d)])==null?void 0x0:_0x83d536[_0x1442b6(0x1a9)](_0x1442b6(0x142)),_0x193af3=(_0x50dbc1=_0x38cf48[_0x1442b6(0x17d)])==null?void 0x0:_0x50dbc1[_0x1442b6(0x1a9)](_0x1442b6(0x92)),_0x592407=_0x4c4187?_0x1442b6(0x14b):_0x1442b6(0x215),_0x4ef111=_0x301624[_0x1442b6(0x185)]&&(_0x4c4187||_0x193af3),[_0x27b344,_0x4210d1]=_0xb93d6d[_0x1442b6(0xa5)](!_0x551e17[_0x1442b6(0xe1)]()),_0x58ad04=(_0x406b82,_0x349bdd)=>{const _0x469b33=_0x1442b6;if(_0x349bdd===_0x3fb9c8['MCPConnectionError']['UNAUTHORIZED'])return _0x469b33(0xe6);switch(_0x406b82){case _0x3fb9c8['MCPConnectionStatus']['CONNECTED']:return _0x469b33(0x1c7);case _0x3fb9c8[_0x469b33(0x1ac)][_0x469b33(0x116)]:case _0x3fb9c8[_0x469b33(0x1ac)][_0x469b33(0x131)]:return _0x469b33(0xca);case _0x3fb9c8['MCPConnectionStatus'][_0x469b33(0x210)]:return _0x469b33(0xe6);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1b4f66=(_0x4bfbda,_0x453e0d)=>{const _0x4c81ef=_0x1442b6;if(_0x453e0d===_0x3fb9c8[_0x4c81ef(0xee)][_0x4c81ef(0x14f)])return _0x4c81ef(0x188);switch(_0x4bfbda){case _0x3fb9c8['MCPConnectionStatus'][_0x4c81ef(0x1f8)]:return _0x4c81ef(0x10d);case _0x3fb9c8[_0x4c81ef(0x1ac)]['CONNECTING']:case _0x3fb9c8[_0x4c81ef(0x1ac)][_0x4c81ef(0x131)]:return _0x4c81ef(0x8a);case _0x3fb9c8[_0x4c81ef(0x1ac)][_0x4c81ef(0x210)]:return _0x4c81ef(0x188);default:return _0x4c81ef(0x108);}},_0x332cd6=_0x4ec9dc=>{const _0x5846c5=_0x1442b6;switch(_0x4ec9dc){case _0x3fb9c8['MCPConnectionStatus']['CONNECTED']:return _0x426036['t']('mcpConfig.connectionStatus.connected');case _0x3fb9c8[_0x5846c5(0x1ac)]['CONNECTING']:return _0x426036['t'](_0x5846c5(0x212));case _0x3fb9c8[_0x5846c5(0x1ac)]['FAILED']:return _0x426036['t'](_0x5846c5(0x1bb));case _0x3fb9c8['MCPConnectionStatus']['RETRYING']:return _0x426036['t'](_0x5846c5(0x17e));default:return _0x426036['t'](_0x5846c5(0x7f));}},_0x2f2f7b=_0x9857bc=>{const _0x49bb63=_0x1442b6;switch(_0x9857bc){case _0x3fb9c8['MCPConnectionError']['UNAUTHORIZED']:return _0x426036['t']('mcpConfig.connectionError.unauthorized');case _0x3fb9c8[_0x49bb63(0xee)][_0x49bb63(0xa0)]:return _0x426036['t'](_0x49bb63(0x18c));case _0x3fb9c8[_0x49bb63(0xee)][_0x49bb63(0xfd)]:return _0x426036['t'](_0x49bb63(0x7e));case _0x3fb9c8[_0x49bb63(0xee)][_0x49bb63(0x20f)]:return _0x426036['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4174e0=_0xb93d6d[_0x1442b6(0x115)](()=>{const _0x2aa930=_0x1442b6,_0x509730={..._0x38cf48,'apiKey':_0x551e17[_0x2aa930(0xe1)](),'enableAuth':_0x35b880};_0x1ac1b3(_0x509730);},[_0x38cf48,_0x551e17,_0x35b880,_0x1ac1b3]),_0x4c0fd3=_0x551e17['trim']()[_0x1442b6(0xbd)]>0x0;return _0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0xce),'children':[_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x179),'children':_0x3cecb4[_0x1442b6(0x1b0)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x167),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':'univer-text-white','children':'⚙'})}),_0x3cecb4['jsx']('div',{'children':_0x3cecb4['jsx']('p',{'className':_0x1442b6(0xfa),'children':_0x426036['t'](_0x1442b6(0xb4))})})]})}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x452fbd[_0x1442b6(0xcf)](_0x1442b6(0xf1),_0x58ad04(_0x2d2d77,_0x117993)),'children':_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x452fbd[_0x1442b6(0xcf)]('univer-size-2\x20univer-rounded-full',_0x1b4f66(_0x2d2d77,_0x117993))}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':'univer-text-sm\x20univer-font-medium','children':_0x332cd6(_0x2d2d77)})]})}),_0x117993!==_0x3fb9c8['MCPConnectionError']['NONE']&&(_0x2d2d77===_0x3fb9c8['MCPConnectionStatus'][_0x1442b6(0x210)]||_0x117993===_0x3fb9c8[_0x1442b6(0xee)]['UNAUTHORIZED'])&&_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x3cecb4['jsxs']('div',{'className':_0x1442b6(0xaa),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0xa6),'children':'⚠️'}),_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':_0x1442b6(0x211),'children':_0x2f2f7b(_0x117993)})]})})]}),_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x97),'children':_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x1f7),'children':[_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x209),'children':[_0x3cecb4['jsxs'](_0x1442b6(0xac),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'🔑'}),'\x20',_0x426036['t'](_0x1442b6(0x17b)),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x7a),'children':'*'}),_0x25dee9&&_0x3cecb4[_0x1442b6(0xd6)]('a',{'className':_0x1442b6(0xf2),'title':_0x426036['t']('mcpConfig.apiApplyInfo.title'),'role':_0x1442b6(0x107),'onClick':()=>_0x4210d1(!0x0),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x2b5d16,{})})]}),_0x3cecb4[_0x1442b6(0xd6)](_0x452fbd[_0x1442b6(0x104)],{'type':'text','placeholder':_0x426036['t'](_0x1442b6(0x14e)),'value':_0x551e17,'disabled':_0x31f938,'autoComplete':'off','onChange':_0x1be0c9}),_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x426036['t'](_0x1442b6(0x130))})]}),_0x25dee9&&_0x27b344&&_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x19d),'children':[_0x3cecb4[_0x1442b6(0xd6)]('a',{'className':_0x1442b6(0xa9),'role':_0x1442b6(0x107),'onClick':()=>_0x4210d1(!0x1),'children':_0x3cecb4['jsx'](_0x5b9a92,{'className':'univer-size-4'})}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1d4),'children':[_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x12b),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x1ab),'children':'🚀'})}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':'univer-flex-1','children':[_0x3cecb4[_0x1442b6(0xd6)]('h4',{'className':_0x1442b6(0x121),'children':_0x426036['t'](_0x1442b6(0xb9))}),_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':_0x1442b6(0x100),'children':_0x426036['t'](_0x1442b6(0x140))}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1a1),'children':_0x4ef111&&_0x3cecb4[_0x1442b6(0x1b0)]('a',{'className':_0x1442b6(0x12d),'href':_0x592407,'target':_0x1442b6(0x1ed),'rel':_0x1442b6(0x18a),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'🤖'}),_0x426036['t'](_0x1442b6(0x109)),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0xd1),'children':'↗'})]})}),_0x3cecb4[_0x1442b6(0x1b0)]('div',{'className':_0x1442b6(0x1b3),'children':['✨','\x20',_0x426036['t'](_0x1442b6(0x1d9))]})]})]})]}),_0x301624[_0x1442b6(0x185)]&&_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x3cecb4[_0x1442b6(0x1b0)]('h4',{'className':_0x1442b6(0x133),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'🔗'}),'\x20',_0x426036['t'](_0x1442b6(0x17c))]}),_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x200),'children':[_0x3cecb4['jsxs'](_0x1442b6(0x15e),{'className':_0x1442b6(0x192),'children':[_0x3cecb4[_0x1442b6(0xd6)]('p',{'className':_0x1442b6(0x18b),'children':_0x426036['t'](_0x1442b6(0x10a))}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x209),'children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x125),'children':_0x426036['t'](_0x1442b6(0x101))}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1df),'children':[_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x117),'children':'1'}),_0x426036['t'](_0x1442b6(0xf6))]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4['jsx'](_0x1442b6(0x1cb),{'className':_0x1442b6(0x117),'children':'2'}),_0x426036['t']('mcpConfig.configStep2')]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)]('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':'3'}),_0x426036['t']('mcpConfig.configStep3')]})]})]})]}),_0x3cecb4[_0x1442b6(0x1b0)]('div',{'className':'univer-space-y-2','children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x125),'children':_0x1442b6(0x13a)}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1a3),'children':_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x9b),{'className':_0x1442b6(0xbf),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x1442b6(0xf0)+(_0x941900||'<SESSION_ID>'),'type':_0x1442b6(0x1e0),'headers':{'Authorization':_0x1442b6(0xd3)+(_0x551e17||_0x1442b6(0x146))}}}},null,0x2)})})]}),_0x3cecb4['jsxs']('div',{'className':_0x1442b6(0x192),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x125),'children':_0x426036['t'](_0x1442b6(0x81))}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':'univer-space-y-2','children':[_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1de),'children':[_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x151)}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x112),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1442b6(0xaf)}),_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0x174),'children':_0x426036['t'](_0x1442b6(0xc6))})]})]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x1de),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x151)}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x112),'children':[_0x3cecb4['jsx'](_0x1442b6(0x15e),{'className':_0x1442b6(0xbb),'children':_0x1442b6(0xc3)}),_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':_0x1442b6(0x174),'children':_0x426036['t'](_0x1442b6(0x1fa))})]})]})]})]})]})]}),_0x3cecb4[_0x1442b6(0xd6)](_0x452fbd[_0x1442b6(0xf5)],{'onClick':_0x4174e0,'disabled':!_0x4c0fd3||_0x31f938,'className':_0x1442b6(0x1a7),'children':_0x31f938?_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x1cb),{'children':'⟲'}),_0x426036['t'](_0x1442b6(0x114))]}):_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x1cb),{'className':_0x1442b6(0x137),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x5469a1,{}),_0x426036['t'](_0x1442b6(0x16b))]})}),_0x3cecb4[_0x1442b6(0xd6)]('div',{'className':_0x1442b6(0x7d),'children':_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x79),'children':[_0x3cecb4[_0x1442b6(0xd6)]('span',{'className':_0x1442b6(0x177),'children':'💡'}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'className':_0x1442b6(0x145),'children':[_0x3cecb4[_0x1442b6(0xd6)](_0x1442b6(0x15e),{'className':'univer-font-medium','children':_0x1442b6(0x165)}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'children':['•',_0x426036['t'](_0x1442b6(0xcd))]}),_0x3cecb4[_0x1442b6(0x1b0)](_0x1442b6(0x15e),{'children':['•',_0x426036['t']('mcpConfig.note2')]})]})]})})]})})]});}const _0x39ea97=_0xb04ca9(0x1c3),_0x7aaaf2={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1c0395=Object[_0xb04ca9(0x1fe)],_0x145931=(_0xbc0f31,_0x111db2,_0x1a2c54,_0x17d39e)=>{const _0x5cc7d9=_0xb04ca9;for(var _0x48810f=_0x17d39e>0x1?void 0x0:_0x17d39e?_0x1c0395(_0x111db2,_0x1a2c54):_0x111db2,_0x3a92a8=_0xbc0f31[_0x5cc7d9(0xbd)]-0x1,_0x51bd02;_0x3a92a8>=0x0;_0x3a92a8--)(_0x51bd02=_0xbc0f31[_0x3a92a8])&&(_0x48810f=_0x51bd02(_0x48810f)||_0x48810f);return _0x48810f;},_0x1a018f=(_0x1af37a,_0x33988f)=>(_0x4e4f46,_0x5bb061)=>_0x33988f(_0x4e4f46,_0x5bb061,_0x1af37a);const _0x2e9bec=_0xb04ca9(0xe4),_0x4000dd=_0xb04ca9(0x1c9);_0x18b352['MCPConfigUIController']=class extends _0x153d59[_0xb04ca9(0x166)]{constructor(_0x545ca2,_0x568c92,_0x2f3cb4,_0x31155d,_0x55d5a2,_0x56433a,_0x13c4b3,_0x2780eb,_0x4448e5,_0x4e5349){const _0xb2b2c2=_0xb04ca9;super(),_0x468be1(this,_0xb2b2c2(0x19f),new _0x234074[(_0xb2b2c2(0x124))](!0x1)),_0x468be1(this,_0xb2b2c2(0xeb),new _0x234074[(_0xb2b2c2(0x124))]({})),_0x468be1(this,'_config$',new _0x234074['BehaviorSubject']({})),_0x468be1(this,'_apiKey$',new _0x234074[(_0xb2b2c2(0x124))]('')),_0x468be1(this,_0xb2b2c2(0x1c0),async _0x2ef806=>{const _0x5a8fd0=_0xb2b2c2;var _0x2c9693,_0x654b8a;this['_loading$']['next'](!0x0);try{const _0x4af031=await this[_0x5a8fd0(0xbe)](_0x2ef806);if(!_0x4af031[_0x5a8fd0(0x197)]){this[_0x5a8fd0(0x95)][_0x5a8fd0(0x164)]({'type':_0x452fbd[_0x5a8fd0(0x123)][_0x5a8fd0(0x163)],'content':_0x4af031['errorMessage']||this[_0x5a8fd0(0x195)]['t'](_0x5a8fd0(0x18f))});return;}_0x2ef806[_0x5a8fd0(0x1d2)]?await this[_0x5a8fd0(0x1cf)][_0x5a8fd0(0x193)](_0x2e9bec,_0x2ef806[_0x5a8fd0(0x1d2)][_0x5a8fd0(0xe1)]()):await this[_0x5a8fd0(0x1cf)][_0x5a8fd0(0x82)](_0x2e9bec),this['_apiKey$'][_0x5a8fd0(0x11e)](((_0x2c9693=_0x2ef806[_0x5a8fd0(0x1d2)])==null?void 0x0:_0x2c9693[_0x5a8fd0(0xe1)]())||''),this['_mcpConnectionController'][_0x5a8fd0(0x208)]({'Authorization':'Bearer\x20'+((_0x654b8a=_0x2ef806[_0x5a8fd0(0x1d2)])==null?void 0x0:_0x654b8a['trim']())}),this[_0x5a8fd0(0x95)]['show']({'type':_0x452fbd[_0x5a8fd0(0x123)][_0x5a8fd0(0x93)],'content':this[_0x5a8fd0(0x195)]['t'](_0x5a8fd0(0x176))}),setTimeout(()=>{const _0x30f94c=_0x5a8fd0;this[_0x30f94c(0x15f)][_0x30f94c(0x13b)](_0x4000dd);},0x320);}catch(_0x40012a){this['_logService'][_0x5a8fd0(0xe8)](_0x5a8fd0(0x1e6),_0x40012a),this[_0x5a8fd0(0x95)][_0x5a8fd0(0x164)]({'type':_0x452fbd[_0x5a8fd0(0x123)][_0x5a8fd0(0x163)],'content':this[_0x5a8fd0(0x195)]['t'](_0x5a8fd0(0xb6))});}finally{this[_0x5a8fd0(0x19f)]['next'](!0x1);}}),(this[_0xb2b2c2(0x1c8)]=_0x545ca2,this['_uiPartsService']=_0x568c92,this[_0xb2b2c2(0xea)]=_0x2f3cb4,this['_localStorageService']=_0x31155d,this[_0xb2b2c2(0x15f)]=_0x55d5a2,this[_0xb2b2c2(0x95)]=_0x56433a,this[_0xb2b2c2(0xec)]=_0x13c4b3,this[_0xb2b2c2(0x195)]=_0x2780eb,this[_0xb2b2c2(0x148)]=_0x4448e5,this[_0xb2b2c2(0xfb)]=_0x4e5349,this[_0xb2b2c2(0x84)](),this[_0xb2b2c2(0x20d)](),this[_0xb2b2c2(0x206)]());}[_0xb04ca9(0x161)](){const _0x8d898f=_0xb04ca9,_0x502940=this[_0x8d898f(0xea)][_0x8d898f(0x103)](_0x39ea97);_0x502940!=null&&_0x502940[_0x8d898f(0x185)]&&this[_0x8d898f(0x15f)][_0x8d898f(0x80)]({'id':_0x4000dd,'title':{'title':this[_0x8d898f(0x195)]['t'](_0x8d898f(0x9c))},'children':{'label':_0x8d898f(0x132)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4aefd0=_0x8d898f;this[_0x4aefd0(0x15f)][_0x4aefd0(0x13b)](_0x4000dd);}});}[_0xb04ca9(0xd8)](){const _0x16b18d=_0xb04ca9;return this['_mcpCoreConfig$'][_0x16b18d(0x153)];}['_registerComponent'](){const _0x297e97=_0xb04ca9;this['disposeWithMe'](this[_0x297e97(0xec)][_0x297e97(0x111)](_0x297e97(0x132),this['_createConfigPanelComponent']()));}[_0xb04ca9(0x19e)](){const _0xf5e9e8=_0xb04ca9;return _0x177dab[_0xf5e9e8(0x9f)](()=>{const _0x34ae1a=_0xf5e9e8;var _0x20dd3f,_0x555784,_0x9c56a2;return _0x3cecb4[_0x34ae1a(0xd6)](_0x3ad8ae,{'config':this[_0x34ae1a(0x15c)][_0x34ae1a(0x153)],'mcpCoreConfig':this[_0x34ae1a(0xeb)][_0x34ae1a(0x153)],'currentApiKey$':this[_0x34ae1a(0x168)],'onSave':this[_0x34ae1a(0x1c0)],'loading':this[_0x34ae1a(0x19f)][_0x34ae1a(0x153)],'connectionStatus$':(_0x20dd3f=this['_mcpConnectionController'])==null?void 0x0:_0x20dd3f[_0x34ae1a(0xe5)],'connectionError$':(_0x555784=this[_0x34ae1a(0xfb)])==null?void 0x0:_0x555784['connectionError$'],'currentSessionId$':(_0x9c56a2=this[_0x34ae1a(0xfb)])==null?void 0x0:_0x9c56a2['sessionId$']});},this[_0xf5e9e8(0x1c8)]);}[_0xb04ca9(0x84)](){const _0x8ae327=_0xb04ca9;this[_0x8ae327(0x134)](this[_0x8ae327(0xea)][_0x8ae327(0x1e8)](_0x3fb9c8[_0x8ae327(0x90)])[_0x8ae327(0x155)](_0x4f34c4=>{const _0x1d3ea7=_0x8ae327;this[_0x1d3ea7(0xeb)]['next'](_0x4f34c4||{});}));const _0x7f39ba=this[_0x8ae327(0xea)][_0x8ae327(0x103)](_0x3fb9c8['MCP_PLUGIN_CONFIG_KEY']);this[_0x8ae327(0xeb)]['next'](_0x7f39ba||{}),this[_0x8ae327(0x134)](this[_0x8ae327(0xea)][_0x8ae327(0x1e8)](_0x39ea97)[_0x8ae327(0x155)](_0x47bb3b=>{const _0x9de3d8=_0x8ae327;this[_0x9de3d8(0x15c)][_0x9de3d8(0x11e)](_0x47bb3b||{});}));const _0x59e6ca=this['_configService']['getConfig'](_0x39ea97);this[_0x8ae327(0x15c)][_0x8ae327(0x11e)](_0x59e6ca||{});}async[_0xb04ca9(0x20d)](){const _0x545e51=_0xb04ca9,_0x400599=this[_0x545e51(0xea)][_0x545e51(0x103)](_0x39ea97);if(!(_0x400599!=null&&_0x400599['showDeveloperTools']))return;const _0x2e0b5e=await this['_localStorageService'][_0x545e51(0x187)](_0x2e9bec);_0x2e0b5e&&(this[_0x545e51(0xfb)][_0x545e51(0x208)]({'Authorization':_0x545e51(0xd3)+_0x2e0b5e}),this[_0x545e51(0x168)]['next'](_0x2e0b5e));}async['_validateConfig'](_0x17decd){const _0x32b0f8=_0xb04ca9;if(!_0x17decd[_0x32b0f8(0x1d2)]||_0x17decd[_0x32b0f8(0x1d2)][_0x32b0f8(0xe1)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x32b0f8(0x17a))};if(_0x17decd['apiKey'][_0x32b0f8(0xe1)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x32b0f8(0x195)]['t'](_0x32b0f8(0xfc))};try{const _0x1f3b2e=await this[_0x32b0f8(0x1c8)][_0x32b0f8(0x139)](_0x3fb9c8[_0x32b0f8(0x19b)])[_0x32b0f8(0xda)](_0x17decd[_0x32b0f8(0x1d2)][_0x32b0f8(0xe1)]());return _0x1f3b2e[_0x32b0f8(0x197)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f3b2e[_0x32b0f8(0xe8)]||this[_0x32b0f8(0x195)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0xdfcdca){return console[_0x32b0f8(0xed)](_0x32b0f8(0x86),_0xdfcdca),{'isValid':!0x0};}}},_0x18b352['MCPConfigUIController']=_0x145931([_0x1a018f(0x0,_0x153d59[_0xb04ca9(0x87)](_0x153d59['Injector'])),_0x1a018f(0x1,_0x177dab[_0xb04ca9(0x1af)]),_0x1a018f(0x2,_0x153d59[_0xb04ca9(0x11c)]),_0x1a018f(0x3,_0x153d59[_0xb04ca9(0xf4)]),_0x1a018f(0x4,_0x177dab['IDialogService']),_0x1a018f(0x5,_0x177dab[_0xb04ca9(0x1aa)]),_0x1a018f(0x6,_0x153d59[_0xb04ca9(0x87)](_0x177dab[_0xb04ca9(0xcb)])),_0x1a018f(0x7,_0x153d59['Inject'](_0x153d59['LocaleService'])),_0x1a018f(0x8,_0x153d59[_0xb04ca9(0x149)]),_0x1a018f(0x9,_0x153d59[_0xb04ca9(0x87)](_0x3fb9c8[_0xb04ca9(0x19b)]))],_0x18b352[_0xb04ca9(0x202)]);const _0x72e20={'id':_0xb04ca9(0x19a),'type':_0x153d59[_0xb04ca9(0x96)][_0xb04ca9(0x20c)],'handler':async(_0x14c292,_0x11796d)=>(_0x14c292['get'](_0x18b352[_0xb04ca9(0x202)])[_0xb04ca9(0x161)](),!0x0)};function _0x24b1ad(_0x26beae,_0xbd2647){const _0x17fc1e=_0xb04ca9;switch(_0x26beae){case _0x3fb9c8[_0x17fc1e(0x1ac)][_0x17fc1e(0x1bc)]:return _0x17fc1e(0xa4);case _0x3fb9c8[_0x17fc1e(0x1ac)][_0x17fc1e(0x116)]:return _0x17fc1e(0x183);case _0x3fb9c8[_0x17fc1e(0x1ac)]['CONNECTED']:return _0x17fc1e(0x170);case _0x3fb9c8[_0x17fc1e(0x1ac)][_0x17fc1e(0x210)]:switch(_0xbd2647){case _0x3fb9c8[_0x17fc1e(0xee)]['UNAUTHORIZED']:return _0x17fc1e(0x169);case _0x3fb9c8[_0x17fc1e(0xee)][_0x17fc1e(0xa0)]:return'mcpStatus.sessionOccupied';case _0x3fb9c8[_0x17fc1e(0xee)][_0x17fc1e(0xfd)]:return _0x17fc1e(0x1ca);case _0x3fb9c8[_0x17fc1e(0xee)][_0x17fc1e(0x20f)]:return _0x17fc1e(0x8b);default:return _0x17fc1e(0x1b7);}case _0x3fb9c8[_0x17fc1e(0x1ac)]['RETRYING']:return _0x17fc1e(0x1a2);default:return _0x17fc1e(0x1db);}}function _0x1b3726(_0x32bc6d,_0x1d89d4,_0x4a37cb,_0x282307=!0x0){const _0x872377=_0xb04ca9,_0x1a3417=_0x24b1ad(_0x32bc6d,_0x1d89d4),_0x16115b=_0x4a37cb['t'](_0x1a3417);return _0x282307?_0x32bc6d===_0x3fb9c8[_0x872377(0x1ac)][_0x872377(0x1bc)]&&_0x1d89d4===_0x3fb9c8['MCPConnectionError'][_0x872377(0x14f)]?_0x16115b+_0x872377(0xb1)+_0x4a37cb['t'](_0x872377(0x13d)):_0x32bc6d===_0x3fb9c8[_0x872377(0x1ac)][_0x872377(0x1f8)]?''+_0x16115b:_0x32bc6d===_0x3fb9c8[_0x872377(0x1ac)][_0x872377(0x1bc)]||_0x32bc6d===_0x3fb9c8['MCPConnectionStatus'][_0x872377(0x210)]?_0x16115b+_0x872377(0xb1)+_0x4a37cb['t'](_0x872377(0xc2)):_0x16115b:_0x16115b;}function _0x722faa(_0x2ea58f){const _0x1ed9de=_0xb04ca9;switch(_0x2ea58f){case _0x3fb9c8['MCPConnectionStatus'][_0x1ed9de(0x1f8)]:return _0x1ed9de(0xc7);case _0x3fb9c8['MCPConnectionStatus']['CONNECTING']:case _0x3fb9c8[_0x1ed9de(0x1ac)]['RETRYING']:return _0x1ed9de(0x120);case _0x3fb9c8[_0x1ed9de(0x1ac)][_0x1ed9de(0x210)]:case _0x3fb9c8[_0x1ed9de(0x1ac)][_0x1ed9de(0x1bc)]:return _0x1ed9de(0x7a);default:return _0x1ed9de(0x11f);}}function _0x19943b(_0x3dab16){const _0xa63914=_0xb04ca9,{status$:_0x166173,error$:_0x48fdd6,onConfigure:_0x4bd6d9,showClickable:_0x1b8f7e=!0x0}=_0x3dab16,_0x1b96cd=_0x177dab[_0xa63914(0xae)](_0x166173,_0x3fb9c8[_0xa63914(0x1ac)][_0xa63914(0x1bc)]),_0x3fbf0c=_0x177dab[_0xa63914(0xae)](_0x48fdd6,_0x3fb9c8['MCPConnectionError'][_0xa63914(0x11b)]),_0x11bbae=_0x177dab['useDependency'](_0x153d59[_0xa63914(0x1d1)]),_0x11599b=_0x1b96cd===_0x3fb9c8['MCPConnectionStatus'][_0xa63914(0x1f8)];_0x1b96cd===_0x3fb9c8[_0xa63914(0x1ac)][_0xa63914(0x116)]||_0x3fb9c8[_0xa63914(0x1ac)][_0xa63914(0x131)];const _0x53d93f=_0x11bbae['t'](_0x24b1ad(_0x1b96cd,_0x3fbf0c)),_0x5620d7=_0x1b3726(_0x1b96cd,_0x3fbf0c,_0x11bbae,_0x1b8f7e),_0x51e05a=_0x722faa(_0x1b96cd),_0x2f08d1=_0x11599b?_0x3cecb4[_0xa63914(0xd6)](_0x49be4a,{}):_0x3cecb4[_0xa63914(0xd6)](_0x22a02b,{}),_0x3dbb22=_0xb93d6d[_0xa63914(0x115)](()=>{_0x1b8f7e&&_0x4bd6d9&&_0x4bd6d9();},[_0x1b8f7e,_0x4bd6d9]);function _0x84d203(){const _0x29cd3f=_0xa63914;return _0x3cecb4[_0x29cd3f(0x1b0)](_0x29cd3f(0x15e),{'className':_0x452fbd['clsx'](_0x29cd3f(0xbc),_0x1b8f7e&&_0x4bd6d9&&_0x29cd3f(0x83)),'role':_0x29cd3f(0x107),'onClick':_0x1b8f7e&&_0x4bd6d9?_0x3dbb22:void 0x0,'children':[_0x3cecb4[_0x29cd3f(0xd6)](_0x29cd3f(0x15e),{'className':_0x452fbd[_0x29cd3f(0xcf)](_0x29cd3f(0xdf),_0x51e05a),'children':_0x2f08d1}),_0x3cecb4['jsx'](_0x29cd3f(0x15e),{'className':_0x29cd3f(0x1a8),'children':_0x53d93f})]});}return _0x3cecb4[_0xa63914(0xd6)](_0x452fbd[_0xa63914(0x13c)],{'title':_0x5620d7,'placement':_0xa63914(0x1be),'children':_0x84d203()});}var _0x5a107d=Object[_0xb04ca9(0x1fe)],_0x382508=(_0x21b140,_0x381429,_0x442854,_0x17a6bd)=>{const _0x2bd7a1=_0xb04ca9;for(var _0x3fab53=_0x17a6bd>0x1?void 0x0:_0x17a6bd?_0x5a107d(_0x381429,_0x442854):_0x381429,_0xe9aa6d=_0x21b140[_0x2bd7a1(0xbd)]-0x1,_0x5c9d75;_0xe9aa6d>=0x0;_0xe9aa6d--)(_0x5c9d75=_0x21b140[_0xe9aa6d])&&(_0x3fab53=_0x5c9d75(_0x3fab53)||_0x3fab53);return _0x3fab53;},_0x273f50=(_0x16b29b,_0x19807f)=>(_0x4c4241,_0x5b006b)=>_0x19807f(_0x4c4241,_0x5b006b,_0x16b29b);_0x18b352[_0xb04ca9(0x119)]=class extends _0x153d59[_0xb04ca9(0x166)]{constructor(_0x15c4e2,_0x4ad596,_0x4ffc03,_0x2ca915){const _0x56f0a5=_0xb04ca9;super(),this[_0x56f0a5(0x1c8)]=_0x15c4e2,this[_0x56f0a5(0x1f4)]=_0x4ad596,this[_0x56f0a5(0x16f)]=_0x4ffc03,this[_0x56f0a5(0xea)]=_0x2ca915,this[_0x56f0a5(0xdc)](),this[_0x56f0a5(0x1c6)]();}[_0xb04ca9(0xdc)](){const _0x372e4c=_0xb04ca9,_0x3bc2b3=this[_0x372e4c(0xea)][_0x372e4c(0x103)](_0x39ea97);_0x3bc2b3!=null&&_0x3bc2b3[_0x372e4c(0x185)]&&(this[_0x372e4c(0x1f4)][_0x372e4c(0xc8)]=!0x1);}['_initStatusComponent'](){const _0x19c61b=_0xb04ca9,_0x32a3f3=this[_0x19c61b(0xea)]['getConfig'](_0x39ea97);(_0x32a3f3==null?void 0x0:_0x32a3f3[_0x19c61b(0x1ba)])!==!0x1&&this[_0x19c61b(0x134)](this[_0x19c61b(0x16f)]['registerComponent'](_0x177dab[_0x19c61b(0x1b1)][_0x19c61b(0x1b2)],()=>{const _0x11a811=_0x19c61b;var _0x4b0b51;return _0x177dab['connectInjector'](_0x55c237({'status$':this[_0x11a811(0x1f4)]['connectionStatus$'],'error$':this[_0x11a811(0x1f4)]['connectionError$'],'onConfigure':()=>this[_0x11a811(0x102)](),'showClickable':(_0x4b0b51=_0x32a3f3==null?void 0x0:_0x32a3f3[_0x11a811(0x185)])!=null?_0x4b0b51:!0x1}),this[_0x11a811(0x1c8)]);}));}[_0xb04ca9(0x102)](){const _0x516f1e=_0xb04ca9;this[_0x516f1e(0x1c8)][_0x516f1e(0x139)](_0x18b352[_0x516f1e(0x202)])[_0x516f1e(0x161)]();}},_0x18b352['MCPConnectionUIController']=_0x382508([_0x273f50(0x0,_0x153d59[_0xb04ca9(0x87)](_0x153d59['Injector'])),_0x273f50(0x1,_0x153d59[_0xb04ca9(0x87)](_0x3fb9c8[_0xb04ca9(0x19b)])),_0x273f50(0x2,_0x177dab[_0xb04ca9(0x1af)]),_0x273f50(0x3,_0x153d59[_0xb04ca9(0x11c)])],_0x18b352[_0xb04ca9(0x119)]);function _0x55c237(_0x4f56da){const {status$:_0x2cfb0e,error$:_0x5980bf,onConfigure:_0x501046,showClickable:_0x295280}=_0x4f56da;return function(){return _0x3cecb4['jsx'](_0x19943b,{'status$':_0x2cfb0e,'error$':_0x5980bf,'onConfigure':_0x501046,'showClickable':_0x295280});};}function _0x22bc6e(_0x2f5d74){const _0x2c6691=_0xb04ca9;return{'id':_0x72e20['id'],'type':_0x177dab['MenuItemType'][_0x2c6691(0x1f2)],'icon':_0x2c6691(0x18d),'title':_0x2c6691(0x9c),'tooltip':_0x2c6691(0x9c)};}const _0x54f96a={[_0x177dab[_0xb04ca9(0xf3)][_0xb04ca9(0x94)]]:{[_0x72e20['id']]:{'order':0xa,'menuItemFactory':_0x22bc6e}}};var _0xca2b16=Object[_0xb04ca9(0x1fe)],_0xab14ff=(_0x3c660c,_0x17851f,_0x8bdc79,_0x4be257)=>{const _0x10af84=_0xb04ca9;for(var _0x12e6ab=_0x4be257>0x1?void 0x0:_0x4be257?_0xca2b16(_0x17851f,_0x8bdc79):_0x17851f,_0x17c9d4=_0x3c660c[_0x10af84(0xbd)]-0x1,_0x532a4a;_0x17c9d4>=0x0;_0x17c9d4--)(_0x532a4a=_0x3c660c[_0x17c9d4])&&(_0x12e6ab=_0x532a4a(_0x12e6ab)||_0x12e6ab);return _0x12e6ab;},_0x25df50=(_0x41c6cc,_0x260429)=>(_0x405500,_0x234a1e)=>_0x260429(_0x405500,_0x234a1e,_0x41c6cc);_0x18b352[_0xb04ca9(0x1f0)]=class extends _0x153d59[_0xb04ca9(0x166)]{constructor(_0x28e67c,_0x446c0e){const _0x34f20a=_0xb04ca9;super(),this[_0x34f20a(0x1b4)]=_0x28e67c,this[_0x34f20a(0xcc)]=_0x446c0e,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x57287c=_0xb04ca9;[_0x72e20][_0x57287c(0x159)](_0x26f36b=>{const _0x72cc4f=_0x57287c;this[_0x72cc4f(0x134)](this[_0x72cc4f(0x1b4)]['registerCommand'](_0x26f36b));});}['_initializeMenus'](){this['_menuManagerService']['mergeMenu'](_0x54f96a);}},_0x18b352['MCPUIMenuController']=_0xab14ff([_0x25df50(0x0,_0x153d59[_0xb04ca9(0x118)]),_0x25df50(0x1,_0x177dab[_0xb04ca9(0x1ef)])],_0x18b352[_0xb04ca9(0x1f0)]);const _0x3b82b3={'mcpStatus':{'disconnected':_0xb04ca9(0x158),'connecting':_0xb04ca9(0xba),'connected':_0xb04ca9(0x1bd),'failed':_0xb04ca9(0x12a),'retrying':_0xb04ca9(0x1e9),'unknown':_0xb04ca9(0xdd),'unauthorized':_0xb04ca9(0x152),'sessionOccupied':_0xb04ca9(0x1b9),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xb04ca9(0x175),'clickToConfigure':_0xb04ca9(0x1f6)},'mcpConfig':{'title':_0xb04ca9(0x13a),'description':_0xb04ca9(0x110),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xb04ca9(0x15a),'apiKeyHint':_0xb04ca9(0x122),'enableAuth':_0xb04ca9(0x126),'enableAuthHint':_0xb04ca9(0xfe),'connectionInfo':_0xb04ca9(0xc1),'mcpClientConfig':_0xb04ca9(0xc1),'configInstructions':_0xb04ca9(0xb8),'configStepTitle':_0xb04ca9(0xde),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xb04ca9(0x154),'configStep3':_0xb04ca9(0x171),'sessionId':'Session\x20ID','sessionIdDescription':_0xb04ca9(0xd2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xb04ca9(0x85),'maxRetries':_0xb04ca9(0xc4),'save':_0xb04ca9(0x214),'saving':_0xb04ca9(0xc9),'note1':_0xb04ca9(0x1ee),'note2':_0xb04ca9(0xc5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xb04ca9(0xd5),'apiApplyInfo':{'title':_0xb04ca9(0x138),'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':_0xb04ca9(0x129),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0xb04ca9(0x1d0),'apiKeyTooShort':_0xb04ca9(0x16d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xb04ca9(0x1ea)},'connectionStatus':{'disconnected':_0xb04ca9(0x1f3),'connecting':_0xb04ca9(0x16c),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0xb04ca9(0x1a0)},'connectionError':{'unauthorized':_0xb04ca9(0x143),'sessionOccupied':_0xb04ca9(0xad),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xb04ca9(0x173)}}},_0x58df2a={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xb04ca9(0xb5),'connected':_0xb04ca9(0x172),'failed':'MCP\x20连接失败','retrying':_0xb04ca9(0x1ce),'unknown':_0xb04ca9(0x8f),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0xb04ca9(0x8d),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0xb04ca9(0x10b),'clickToConfigure':_0xb04ca9(0x1d5)},'mcpConfig':{'title':_0xb04ca9(0x181),'description':_0xb04ca9(0xc0),'apiKey':_0xb04ca9(0x1e7),'apiKeyPlaceholder':_0xb04ca9(0x1fb),'apiKeyHint':_0xb04ca9(0x1e1),'enableAuth':_0xb04ca9(0xd9),'enableAuthHint':_0xb04ca9(0x204),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xb04ca9(0x14a),'configInstructions':_0xb04ca9(0x1c1),'configStepTitle':_0xb04ca9(0x1dd),'configStep1':_0xb04ca9(0x1ad),'configStep2':_0xb04ca9(0x12f),'configStep3':_0xb04ca9(0x194),'sessionId':_0xb04ca9(0x1ae),'sessionIdDescription':_0xb04ca9(0xd7),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0xb04ca9(0x9a),'maxRetries':_0xb04ca9(0x13f),'save':_0xb04ca9(0xb7),'saving':_0xb04ca9(0x127),'note1':_0xb04ca9(0xe9),'note2':_0xb04ca9(0x147),'configSaved':'配置保存成功','configError':_0xb04ca9(0x1a5),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0xb04ca9(0x14d),'univerAiLabel':_0xb04ca9(0x157),'getStarted':_0xb04ca9(0x1b8)},'validation':{'apiKeyRequired':_0xb04ca9(0x1c2),'apiKeyTooShort':_0xb04ca9(0x1cc),'invalidConfig':_0xb04ca9(0x106),'invalidApiKey':_0xb04ca9(0x1d6)},'connectionStatus':{'disconnected':_0xb04ca9(0x189),'connecting':_0xb04ca9(0x16a),'connected':_0xb04ca9(0x7b),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0xb04ca9(0x1b6),'sessionOccupied':_0xb04ca9(0x150),'networkError':_0xb04ca9(0x201),'maxRetriesExceeded':_0xb04ca9(0x1f9)}}};var _0x5f0ae1=Object[_0xb04ca9(0x1f5)],_0xbf678=Object[_0xb04ca9(0x1fe)],_0x355100=(_0xe4745b,_0x4c9c34,_0x2b470f)=>_0x4c9c34 in _0xe4745b?_0x5f0ae1(_0xe4745b,_0x4c9c34,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b470f}):_0xe4745b[_0x4c9c34]=_0x2b470f,_0x52b424=(_0x306c60,_0x3db6c7,_0xed7877,_0x13efe4)=>{const _0x42b8fa=_0xb04ca9;for(var _0x1e6004=_0x13efe4>0x1?void 0x0:_0x13efe4?_0xbf678(_0x3db6c7,_0xed7877):_0x3db6c7,_0x54b300=_0x306c60[_0x42b8fa(0xbd)]-0x1,_0x2ac712;_0x54b300>=0x0;_0x54b300--)(_0x2ac712=_0x306c60[_0x54b300])&&(_0x1e6004=_0x2ac712(_0x1e6004)||_0x1e6004);return _0x1e6004;},_0x29abea=(_0x8c4369,_0x57afac)=>(_0xb6bf33,_0x4e0ee8)=>_0x57afac(_0xb6bf33,_0x4e0ee8,_0x8c4369),_0x37e005=(_0x14e4fc,_0x11ca21,_0x95bdf1)=>_0x355100(_0x14e4fc,_0x11ca21+'',_0x95bdf1);_0x18b352[_0xb04ca9(0x1bf)]=class extends _0x153d59['Plugin']{constructor(_0x449b55=_0x7aaaf2,_0x1d76fe,_0x143bcc,_0x454765,_0x8e4d89,_0x5e3675){const _0x348dfb=_0xb04ca9;super(),this['_config']=_0x449b55,this[_0x348dfb(0x1c8)]=_0x1d76fe,this[_0x348dfb(0xea)]=_0x143bcc,this[_0x348dfb(0x16f)]=_0x454765,this[_0x348dfb(0x1cf)]=_0x8e4d89,this[_0x348dfb(0x195)]=_0x5e3675;const {..._0x210c08}=_0x153d59[_0x348dfb(0xdb)]({},_0x7aaaf2,this[_0x348dfb(0xa1)]);this[_0x348dfb(0xea)][_0x348dfb(0x88)](_0x39ea97,_0x210c08);}async[_0xb04ca9(0x1ff)](){const _0x2e7e6f=_0xb04ca9,_0x135919=[[_0x18b352[_0x2e7e6f(0x119)]],[_0x18b352[_0x2e7e6f(0x202)]],[_0x18b352['MCPUIMenuController']]];this[_0x2e7e6f(0x1c8)][_0x2e7e6f(0xb2)](_0x14a504[_0x2e7e6f(0x207)])||_0x135919['push']([_0x14a504[_0x2e7e6f(0x207)],{'useClass':_0x14a504[_0x2e7e6f(0x19c)]}]),_0x135919[_0x2e7e6f(0x159)](_0xec97ea=>this[_0x2e7e6f(0x1c8)]['add'](_0xec97ea)),this[_0x2e7e6f(0x1c8)][_0x2e7e6f(0x139)](_0x18b352['MCPConnectionUIController']),this[_0x2e7e6f(0x1c8)]['get'](_0x18b352[_0x2e7e6f(0x202)]),this[_0x2e7e6f(0x1c8)][_0x2e7e6f(0x139)](_0x18b352[_0x2e7e6f(0x1f0)]);}},_0x37e005(_0x18b352[_0xb04ca9(0x1bf)],_0xb04ca9(0x9e),_0xb04ca9(0xa7)),_0x18b352[_0xb04ca9(0x1bf)]=_0x52b424([_0x153d59['DependentOn'](_0x3fb9c8['UniverMCPPlugin']),_0x29abea(0x1,_0x153d59['Inject'](_0x153d59[_0xb04ca9(0x12c)])),_0x29abea(0x2,_0x153d59['IConfigService']),_0x29abea(0x3,_0x177dab[_0xb04ca9(0x1af)]),_0x29abea(0x4,_0x153d59[_0xb04ca9(0xf4)]),_0x29abea(0x5,_0x153d59[_0xb04ca9(0x87)](_0x153d59[_0xb04ca9(0x1d1)]))],_0x18b352[_0xb04ca9(0x1bf)]),_0x18b352['MCPConfigPanel']=_0x3ad8ae,_0x18b352[_0xb04ca9(0x205)]=_0x19943b,_0x18b352['OpenMCPConfigPanelCommand']=_0x72e20,_0x18b352['enUS']=_0x3b82b3,_0x18b352[_0xb04ca9(0x1eb)]=_0x58df2a,Object[_0xb04ca9(0x1f5)](_0x18b352,Symbol['toStringTag'],{'value':'Module'});}));function _0x14ab(_0x31e61d,_0x478717){const _0x4cedb=_0x4ced();return _0x14ab=function(_0x14ab28,_0x1c8f24){_0x14ab28=_0x14ab28-0x79;let _0xa9eb69=_0x4cedb[_0x14ab28];return _0xa9eb69;},_0x14ab(_0x31e61d,_0x478717);}function _0x4ced(){const _0x11f8ca=['mcpConfig.configStepTitle','_handleConfigure','getConfig','Input','5CvBPXp','配置无效','button','univer-bg-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configInstructions','点击连接\x20MCP','HelpIcon','univer-bg-green-500','current','none','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','register','univer-min-w-0\x20univer-flex-1','react/jsx-runtime','mcpConfig.saving','useCallback','CONNECTING','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','ICommandService','MCPConnectionUIController','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','NONE','IConfigService','UniverProMcpUi','next','univer-text-gray-500','univer-text-yellow-500','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MessageType','BehaviorSubject','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Enable\x20Authentication','保存中...','evenodd','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Injector','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','UniverCore','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.apiKeyHint','RETRYING','MCPConfigPanel','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','disposeWithMe','function','path','univer-flex\x20univer-items-center\x20univer-gap-2','What\x20is\x20API\x20Key?','get','MCP\x20Configuration','close','Tooltip','mcpStatus.clickToConfigure','CheckMarkIcon','最大重试次数','mcpConfig.apiApplyInfo.description','7445889CVUmvg','univer.plus','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','0\x200\x2016\x2016','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','<API_KEY>','您的\x20API\x20密钥安全存储在本地存储中','_logService','ILogService','MCP\x20客户端配置','https://console.univer.plus','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','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.apiKeyPlaceholder','UNAUTHORIZED','会话\x20ID\x20已被占用,请稍后再试','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP:\x20Unauthorized','value','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','subscribe','rxjs','Univer\x20AI\x20控制台','MCP\x20Disconnected','forEach','Enter\x20your\x20API\x20key','mask','_config$','1em','div','_dialogService','idSuffix','showConfigPanel','on-line-icon_clip0_910_349','Error','show','Configuration\x20Notes:','Disposable','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_apiKey$','mcpStatus.unauthorized','连接中...','mcpConfig.save','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4390372uUFGYP','_uiPartsService','mcpStatus.connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20已连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-xs\x20univer-text-gray-500','Click\x20to\x20connect\x20MCP','mcpConfig.configSaved','univer-shrink-0\x20univer-text-blue-500','M0\x200H16V16H0z','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.validation.apiKeyRequired','mcpConfig.apiKey','mcpConfig.connectionInfo','mcpServerUrl','mcpConfig.connectionStatus.retrying','0\x200\x2017\x2016','replace','MCP\x20配置','react','mcpStatus.connecting','defIds','showDeveloperTools','CloseIcon','getItem','univer-bg-red-500','未连接','noopener\x20noreferrer','univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.sessionOccupied','MenuIcon','symbol','mcpConfig.validation.invalidConfig','http://www.w3.org/2000/svg','round','univer-space-y-3','setItem','重启您的\x20MCP\x20客户端以使配置生效','_localeService','url(#on-line-icon_clip0_910_349)','isValid','3425860ELwDze','toString','mcp-ui.command.openConfigPanel','MCPConnectionController','WebSocketService','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','_createConfigPanelComponent','_loading$','Retrying...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.retrying','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','amd','配置保存失败','check-mark-icon','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','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','includes','IMessageService','univer-text-blue-600','MCPConnectionStatus','复制以下\x20JSON\x20配置','会话ID','IUIPartsService','jsxs','BuiltInUIPart','HEADER_MENU','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_commandService','579606xHrHZJ','权限验证失败,请检查您的\x20API\x20密钥','mcpStatus.failed','几秒钟内获取您的\x20API\x20密钥','MCP:\x20Session\x20ID\x20Occupied','showStatus','mcpConfig.connectionStatus.failed','DISCONNECTED','MCP\x20Connected','bottom','UniverMCPUIPlugin','_handleConfigSave','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥不能为空','mcp-ui.config','off-line-icon','xlink:href','_initStatusComponent','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_injector','mcp-config-dialog','mcpStatus.networkError','span','API\x20密钥长度至少需要\x2010\x20位','url(#$1','MCP\x20重连中...','_localStorageService','API\x20key\x20is\x20required','LocaleService','apiKey','object','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','点击配置\x20MCP','API\x20密钥无效,请检查密钥是否正确','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','@univerjs/core','mcpConfig.apiApplyInfo.getStarted','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','mcpStatus.unknown','155076dchDpX','配置步骤:','univer-flex\x20univer-items-start\x20univer-gap-3','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','http','您的\x20API\x20密钥将在此浏览器中本地存储','UniverDesign','UniverUi','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','white','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','API\x20密钥','subscribeConfigValue$','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','zhCN','36aoNwwO','_blank','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','IMenuManagerService','MCPUIMenuController','defs','BUTTON','Disconnected','_connectionController','defineProperty','Click\x20to\x20configure\x20MCP','univer-space-y-5','CONNECTED','超出最大重试次数,请稍后再试','mcpConfig.authorizationDescription','请输入您的\x20API\x20密钥','svg','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','getOwnPropertyDescriptor','onStarting','univer-space-y-4','网络连接错误,请检查您的网络连接','MCPConfigUIController','forwardRef','启用身份验证以获得安全连接','MCPStatusDisplay','_registerComponent','ISocketService','__setCustomHeaders','univer-space-y-2','children','React','COMMAND','_loadStoredApiKey','tag','MAX_RETRIES_EXCEEDED','FAILED','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionStatus.connecting','@univerjs/ui','Save\x20Configuration','https://console.univer.ai','univer-flex\x20univer-gap-3','univer-text-red-500','已连接','useRef','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.connectionError.networkError','mcpConfig.connectionStatus.disconnected','open','mcpConfig.configParameters','removeItem','\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','_initConfigSync','Configuration\x20Parameters:','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Inject','setConfig','UniverIcon','univer-bg-blue-500','mcpStatus.maxRetriesExceeded','fill','MCP:\x20会话\x20ID\x20已被占用','entries','MCP\x20状态未知','MCP_PLUGIN_CONFIG_KEY','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','univer.ai','Success','OTHERS','_messageService','CommandType','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','8365656zzSwZY','assign','配置参数:','pre','mcpConfig.title','displayName','pluginName','connectInjector','SESSION_ID_OCCUPIED','_config','use','string','mcpStatus.disconnected','useState','univer-shrink-0\x20univer-text-red-500','MCP_UI_PLUGIN','OffLineIcon','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-flex\x20univer-items-start\x20univer-gap-2','close-icon','label','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','useObservable','univer_session_id:','map','\x20-\x20','has','UniverProMcp','mcpConfig.description','MCP\x20连接中...','mcpConfig.configError','保存配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.apiApplyInfo.title','MCP\x20Connecting...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center','length','_validateConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20Client\x20Configuration','mcpStatus.clickToConnect','Authorization:','Max\x20Retries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.sessionIdDescription','univer-text-green-500','enableAutoConnect','Saving...','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','ComponentManager','_menuManagerService','mcpConfig.note1','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','clsx','UniverNetwork','univer-text-gray-400','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Bearer\x20','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','jsx','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','getCurrentConfig','启用身份验证','validateApiKey','merge','_initAutoConnect','MCP\x20Unknown\x20Status','Configuration\x20Steps:','univer-mr-2\x20univer-flex\x20univer-text-xl','16ZObqQy','trim','currentColor','createElement','mcp.apiKey','connectionStatus$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','@univerjs/design','error','配置更改将立即生效','_configService','_mcpCoreConfig$','_componentManager','warn','MCPConnectionError','colorChannel1','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','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','RibbonStartGroup','ILocalStorageService','Button','mcpConfig.configStep1','1bezUwz','6467176BnLLCj','attrs','univer-text-sm\x20univer-text-gray-500','_mcpConnectionController','mcpConfig.validation.apiKeyTooShort','NETWORK_ERROR','Enable\x20authentication\x20for\x20secure\x20connections','@univerjs/network','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600'];_0x4ced=function(){return _0x11f8ca;};return _0x4ced();}
1
+ function _0x4546(){const _0x8f6f43=['mcpStatus.connected','_loadStoredApiKey','mcpStatus.retrying','url(#off-line-icon_clip0_910_343)','mcpConfig.saving','_initializeMenus','push','MCP\x20Connected','_initAutoConnect','registerCommand','mcpConfig.apiKey','mcpConfig.apiApplyInfo.getStarted','Bearer\x20','Univer\x20AI\x20控制台','UniverNetwork','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-xs\x20univer-text-gray-500','OffLineIcon','subscribe','error','univer-font-medium','_initStatusComponent','entries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','最大重试次数','mcpConfig.connectionStatus.disconnected','连接失败','重启您的\x20MCP\x20客户端以使配置生效','0\x200\x2017\x2016','Configuration\x20saved\x20successfully','_menuManagerService','on-line-icon','univer-size-2\x20univer-rounded-full','MCP_PLUGIN_CONFIG_KEY','BehaviorSubject','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Retrying...','API\x20密钥','rxjs','_loading$','show','OpenMCPConfigPanelCommand','React','什么是\x20API\x20密钥?','配置保存成功','MCP:\x20超出最大重试次数','exports','value','showConfigPanel','UniverIcon','7OaxPtp','subscribeConfigValue$','MCP\x20连接中...','ILocalStorageService','_config','mcpConfig.apiApplyInfo.description','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-sm\x20univer-font-medium','univer-flex\x20univer-items-center\x20univer-gap-2','@univerjs/ui','LocaleService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcp-ui.config','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.configStep1','fill','BUTTON','配置更改将立即生效','MCP\x20已连接','RibbonStartGroup','mcpStatus.sessionOccupied','isValid','white','_logService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','保存配置','clsx','button','pluginName','UniverDesign','@univerjs/design','enableAutoConnect','MCPConfigPanel','MCPUIMenuController','_dialogService','MCPConnectionError','保存中...','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','IDialogService','univer-text-gray-400','univer-text-green-500','20761704OKDmpC','symbol','点击配置\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','includes','MCP:\x20网络错误','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','UniverMCPUIPlugin','useState','univer.ai','Input','mcpConfig.configError','MCP\x20Connecting...','univer-flex-1','mcpConfig.connectionStatus.failed','clipPath','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','_createConfigPanelComponent','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20Key','COMMAND','svg','724431LgSBEW','Save\x20Configuration','Failed\x20to\x20save\x20configuration','FAILED','string','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','substring','ISocketService','Invalid\x20configuration','HEADER_MENU','useCallback','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','registerComponent','tag','DISCONNECTED','mcpServerUrl','round','_mcpCoreConfig$','get','attrs','Saving...','MCPConnectionUIController','univer-text-blue-600','API\x20密钥不能为空','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','displayName','138364rwtpcG','useObservable','配置步骤:','MAX_RETRIES_EXCEEDED','<SESSION_ID>','univer-space-y-4','MCPConnectionStatus','BuiltInUIPart','univer-text-sm\x20univer-text-gray-500','_localStorageService','noopener\x20noreferrer','xlink:href','WebSocketService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','object','check-mark-icon','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','UniverMCPPlugin','MCP\x20Retrying...','univer.plus','ILogService','mcpConfig.connectionStatus.retrying','mcpStatus.maxRetriesExceeded','IMessageService','colorChannel1','SESSION_ID_OCCUPIED','none','_messageService','univer-text-xs\x20univer-text-gray-600','jsxs','30iOybCg','3231459vblIPM','NETWORK_ERROR','_config$','url(#$1','mcpStatus.connecting','未连接','ComponentManager','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','Inject','univer-space-y-5','mcpConfig.configSaved','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','__setCustomHeaders','Tooltip','random','evenodd','defineProperty','div','https://mcp.univer.ai/mcp/?univer_session_id=','defs','toStringTag','univer-space-y-2','Disposable','zhCN','1em','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','toString','univer-min-w-0\x20univer-flex-1','forEach','重连中...','jsx','UniverProMcpUi','_apiKey$','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.connected','mcpConfig.note2','apiKey','IConfigService','showStatus','map','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_connectionController','on-line-icon_clip0_910_349','mcpConfig.configStep2','MCP:\x20Session\x20ID\x20Occupied','connectionError$','MCP:\x20会话\x20ID\x20已被占用','点击连接\x20MCP','HelpIcon','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP:\x20Max\x20Retries\x20Exceeded','univerjs-icon\x20univerjs-icon-','bottom','MCPConfigUIController','@univerjs/network','enUS','off-line-icon','DependentOn','onStarting','MCP\x20状态未知','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','sessionId$','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','translate(.97)','off','ICommandService','\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','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','warn','_componentManager','mergeMenu','2435130kJujMS','RETRYING','MCP:\x20未授权','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MessageType','MCP\x20已断开','trim','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','currentColor','CheckMarkIcon','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','请输入您的\x20API\x20密钥','mcpConfig.configParameters','MCP:\x20Unauthorized','disposeWithMe','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','getCurrentConfig','CONNECTING','MCPConnectionController','\x20-\x20','Enter\x20your\x20API\x20key','getConfig','forwardRef','配置无效','mcpConfig.validation.invalidApiKey','mcpConfig.connectionError.networkError','length','has','Max\x20Retries','Authorization:','MCP\x20客户端配置','3230249hVkhsJ','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-shrink-0\x20univer-text-red-500','span','MCP\x20重连中...','Disconnected','OnLineIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_blank','assign','2qdSuRh','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','getOwnPropertyDescriptor','validateApiKey','_initializeCommands','use','mcpConfig.apiKeyPlaceholder','连接中...','mcpStatus.disconnected','Connection\x20Failed','_uiPartsService','mcpConfig.configInstructions','NONE','mcpConfig.description','replace','http','mcpConfig.validation.apiKeyTooShort','mcpConfig.configStepTitle','off-line-icon_clip0_910_343','2716830btVhBp','errorMessage','idSuffix','IUIPartsService','API\x20key\x20with\x20Bearer\x20prefix.','connectionStatus$','_configService','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP\x20Connection\x20Failed','mcpConfig.title','MenuIcon','Enable\x20authentication\x20for\x20secure\x20connections','UNAUTHORIZED','Get\x20your\x20API\x20key\x20in\x20seconds','_handleConfigSave','createElement','_localeService','MCP\x20Disconnected','_initConfigSync','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','@univerjs-pro/mcp','UniverUi','useDependency','MCP\x20配置','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-red-500','_registerComponent','What\x20is\x20API\x20Key?','mcp-config-dialog','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.configStep3','https://console.univer.plus','Configuration\x20Parameters:','univer-bg-red-500','url(#on-line-icon_clip0_910_349)','CONNECTED','mcpConfig.save','univer-size-4','mcpConfig.connectionStatus.connecting','mcpConfig.apiApplyInfo.title','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','会话\x20ID\x20已被占用,请稍后再试','20XgJSeA','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-bg-blue-500','univer-bg-gray-500','0\x200\x2016\x2016','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','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','配置参数:','Injector','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mr-2\x20univer-flex\x20univer-text-xl','API\x20key\x20is\x20required','mcpConfig.connectionError.maxRetriesExceeded','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','网络连接错误,请检查您的网络连接','path','Session\x20ID','removeItem','Enable\x20Authentication','您的\x20API\x20密钥将在此浏览器中本地存储','复制以下\x20JSON\x20配置','univer-flex\x20univer-items-center\x20univer-gap-3','mask','8QkGfCr','showDeveloperTools','univer-space-y-3','<API_KEY>','next','univer-text-white','http://www.w3.org/2000/svg','IMenuManagerService','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','react','function','connectInjector','您的\x20API\x20密钥安全存储在本地存储中','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','mcp-ui.command.openConfigPanel','MCP\x20连接失败','M0\x200H16V16H0z','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_injector','_mcpConnectionController','children','MCP\x20Unknown\x20Status','mcpConfig.validation.invalidConfig'];_0x4546=function(){return _0x8f6f43;};return _0x4546();}function _0x11b1(_0x3d358b,_0x22f996){const _0x45463a=_0x4546();return _0x11b1=function(_0x11b109,_0x48eb58){_0x11b109=_0x11b109-0x1a8;let _0x409b61=_0x45463a[_0x11b109];return _0x409b61;},_0x11b1(_0x3d358b,_0x22f996);}(function(_0x554130,_0x761a25){const _0x42e6c0=_0x11b1,_0x27998b=_0x554130();while(!![]){try{const _0x4a838b=-parseInt(_0x42e6c0(0x1de))/0x1*(parseInt(_0x42e6c0(0x28b))/0x2)+-parseInt(_0x42e6c0(0x217))/0x3*(parseInt(_0x42e6c0(0x1f9))/0x4)+-parseInt(_0x42e6c0(0x262))/0x5+parseInt(_0x42e6c0(0x29e))/0x6*(parseInt(_0x42e6c0(0x32b))/0x7)+parseInt(_0x42e6c0(0x2e2))/0x8*(parseInt(_0x42e6c0(0x218))/0x9)+parseInt(_0x42e6c0(0x2ca))/0xa*(-parseInt(_0x42e6c0(0x281))/0xb)+parseInt(_0x42e6c0(0x1c8))/0xc;if(_0x4a838b===_0x761a25)break;else _0x27998b['push'](_0x27998b['shift']());}catch(_0x374a4a){_0x27998b['push'](_0x27998b['shift']());}}}(_0x4546,0x61001),function(_0x2aa28c,_0x4cb2a7){const _0xecea3=_0x11b1;typeof exports==_0xecea3(0x207)&&typeof module<'u'?_0x4cb2a7(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0xecea3(0x2ec)&&define['amd']?define([_0xecea3(0x327),'@univerjs/core','react/jsx-runtime',_0xecea3(0x2b3),_0xecea3(0x1bd),_0xecea3(0x334),_0xecea3(0x31f),_0xecea3(0x2eb),_0xecea3(0x250)],_0x4cb2a7):(_0x2aa28c=typeof globalThis<'u'?globalThis:_0x2aa28c||self,_0x4cb2a7(_0x2aa28c[_0xecea3(0x238)]={},_0x2aa28c['UniverCore'],_0x2aa28c['React'],_0x2aa28c['UniverProMcp'],_0x2aa28c[_0xecea3(0x1bc)],_0x2aa28c[_0xecea3(0x2b4)],_0x2aa28c['rxjs'],_0x2aa28c[_0xecea3(0x323)],_0x2aa28c[_0xecea3(0x307)]));}(this,function(_0x194faa,_0x4ee71c,_0x1fb4f4,_0x20970d,_0x33407f,_0x451aa8,_0x8716de,_0x1defb3,_0x16442c){'use strict';const _0xd85c34=_0x11b1;var _0x2b32cb=Object[_0xd85c34(0x228)],_0x1dac9e=(_0x1f6762,_0x2712fe,_0x427663)=>_0x2712fe in _0x1f6762?_0x2b32cb(_0x1f6762,_0x2712fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x427663}):_0x1f6762[_0x2712fe]=_0x427663,_0x3036dc=(_0x1820c3,_0x560b45,_0x21f9e5)=>_0x1dac9e(_0x1820c3,typeof _0x560b45!=_0xd85c34(0x1c9)?_0x560b45+'':_0x560b45,_0x21f9e5);function _0x4402b8({ref:_0x17117d,..._0x184f72}){const _0x49fdd3=_0xd85c34,{icon:_0x3acec8,id:_0x3cbb8a,className:_0x5b853b,extend:_0x345f0c,..._0x31a5a8}=_0x184f72,_0x236360=(_0x49fdd3(0x24d)+_0x3cbb8a+'\x20'+(_0x5b853b||''))['trim'](),_0x35887e=_0x1defb3['useRef']('_'+_0xfd1401());return _0x532ff1(_0x3acec8,''+_0x3cbb8a,{'defIds':_0x3acec8['defIds'],'idSuffix':_0x35887e['current']},{'ref':_0x17117d,'className':_0x236360,..._0x31a5a8},_0x345f0c);}function _0x532ff1(_0x4ffb8d,_0x4e7842,_0x27e23a,_0x41facf,_0x5a3552){const _0x12e99a=_0xd85c34;return _0x1defb3[_0x12e99a(0x2ad)](_0x4ffb8d[_0x12e99a(0x1eb)],{'key':_0x4e7842,..._0x52b373(_0x4ffb8d,_0x27e23a,_0x5a3552),..._0x41facf},(_0x4101c3(_0x4ffb8d,_0x27e23a)[_0x12e99a(0x2f6)]||[])['map']((_0x49ad07,_0x5b2292)=>_0x532ff1(_0x49ad07,_0x4e7842+'-'+_0x4ffb8d[_0x12e99a(0x1eb)]+'-'+_0x5b2292,_0x27e23a,void 0x0,_0x5a3552)));}function _0x52b373(_0x4b0455,_0x3e981a,_0x220e54){const _0x169034=_0xd85c34,_0x3ffd6e={..._0x4b0455[_0x169034(0x1f1)]};_0x220e54!=null&&_0x220e54[_0x169034(0x211)]&&_0x3ffd6e[_0x169034(0x1ae)]===_0x169034(0x211)&&(_0x3ffd6e[_0x169034(0x1ae)]=_0x220e54[_0x169034(0x211)]),_0x4b0455[_0x169034(0x1eb)]==='mask'&&_0x3ffd6e['id']&&(_0x3ffd6e['id']=_0x3ffd6e['id']+_0x3e981a[_0x169034(0x2a0)]),Object[_0x169034(0x30f)](_0x3ffd6e)['forEach'](([_0x5f18b5,_0x360663])=>{const _0x38f56b=_0x169034;_0x5f18b5===_0x38f56b(0x2e1)&&typeof _0x360663==_0x38f56b(0x1e2)&&(_0x3ffd6e[_0x5f18b5]=_0x360663[_0x38f56b(0x299)](/url\(#(.*)\)/,_0x38f56b(0x21b)+_0x3e981a[_0x38f56b(0x2a0)]+')'));});const {defIds:_0x16a8e1}=_0x3e981a;return!_0x16a8e1||_0x16a8e1[_0x169034(0x27c)]===0x0||(_0x4b0455[_0x169034(0x1eb)]===_0x169034(0x290)&&_0x3ffd6e[_0x169034(0x204)]&&(_0x3ffd6e[_0x169034(0x204)]=_0x3ffd6e[_0x169034(0x204)]+_0x3e981a['idSuffix']),Object['entries'](_0x3ffd6e)[_0x169034(0x235)](([_0x30ea76,_0x564f2c])=>{const _0x8e5c69=_0x169034;typeof _0x564f2c==_0x8e5c69(0x1e2)&&(_0x3ffd6e[_0x30ea76]=_0x564f2c[_0x8e5c69(0x299)](/url\(#(.*)\)/,_0x8e5c69(0x21b)+_0x3e981a['idSuffix']+')'));})),_0x3ffd6e;}function _0x4101c3(_0x8c8487,_0x4dcd2b){const _0x571588=_0xd85c34;var _0x2ee8aa;const {defIds:_0x15cfde}=_0x4dcd2b;return!_0x15cfde||_0x15cfde[_0x571588(0x27c)]===0x0?_0x8c8487:_0x8c8487[_0x571588(0x1eb)]===_0x571588(0x22b)&&((_0x2ee8aa=_0x8c8487[_0x571588(0x2f6)])!=null&&_0x2ee8aa['length'])?{..._0x8c8487,'children':_0x8c8487[_0x571588(0x2f6)][_0x571588(0x240)](_0x182cfb=>typeof _0x182cfb[_0x571588(0x1f1)]['id']==_0x571588(0x1e2)&&_0x15cfde&&_0x15cfde[_0x571588(0x1cc)](_0x182cfb[_0x571588(0x1f1)]['id'])?{..._0x182cfb,'attrs':{..._0x182cfb[_0x571588(0x1f1)],'id':_0x182cfb[_0x571588(0x1f1)]['id']+_0x4dcd2b[_0x571588(0x2a0)]}}:_0x182cfb)}:_0x8c8487;}function _0xfd1401(){const _0x1173b5=_0xd85c34;return Math[_0x1173b5(0x226)]()[_0x1173b5(0x233)](0x24)[_0x1173b5(0x1e4)](0x2,0x8);}_0x4402b8['displayName']=_0xd85c34(0x32a);const _0x5dab99={'tag':_0xd85c34(0x1dd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xd85c34(0x213),'viewBox':_0xd85c34(0x2ce),'width':_0xd85c34(0x230),'height':_0xd85c34(0x230)},'children':[{'tag':_0xd85c34(0x2da),'attrs':{'fill':_0xd85c34(0x26a),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0xd85c34(0x227)}}]},_0x1fa98f=_0x1defb3[_0xd85c34(0x278)](function(_0x3e519e,_0x5ef660){const _0x33cb10=_0xd85c34;return _0x1defb3[_0x33cb10(0x2ad)](_0x4402b8,Object['assign']({},_0x3e519e,{'id':_0x33cb10(0x208),'ref':_0x5ef660,'icon':_0x5dab99}));});_0x1fa98f[_0xd85c34(0x1f8)]=_0xd85c34(0x26b);const _0x4f9ae4={'tag':'svg','attrs':{'xmlns':_0xd85c34(0x2e8),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0xd85c34(0x230),'height':_0xd85c34(0x230)},'children':[{'tag':_0xd85c34(0x2da),'attrs':{'fill':_0xd85c34(0x26a),'d':_0xd85c34(0x223)}}]},_0x4896ff=_0x1defb3['forwardRef'](function(_0x14ad87,_0x179d20){const _0x15840c=_0xd85c34;return _0x1defb3[_0x15840c(0x2ad)](_0x4402b8,Object[_0x15840c(0x28a)]({},_0x14ad87,{'id':'close-icon','ref':_0x179d20,'icon':_0x4f9ae4}));});_0x4896ff[_0xd85c34(0x1f8)]='CloseIcon';const _0x344a81={'tag':_0xd85c34(0x1dd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xd85c34(0x2ce),'width':_0xd85c34(0x230),'height':'1em'},'children':[{'tag':_0xd85c34(0x2da),'attrs':{'fill':_0xd85c34(0x26a),'d':_0xd85c34(0x26c)}},{'tag':_0xd85c34(0x2da),'attrs':{'fill':_0xd85c34(0x26a),'d':_0xd85c34(0x2ef)}},{'tag':'path','attrs':{'fill':_0xd85c34(0x26a),'d':_0xd85c34(0x1d8),'fillRule':_0xd85c34(0x227),'clipRule':_0xd85c34(0x227)}}]},_0x34f3f1=_0x1defb3['forwardRef'](function(_0x36ba4a,_0x4a4568){return _0x1defb3['createElement'](_0x4402b8,Object['assign']({},_0x36ba4a,{'id':'help-icon','ref':_0x4a4568,'icon':_0x344a81}));});_0x34f3f1['displayName']=_0xd85c34(0x249);const _0x291872={'tag':_0xd85c34(0x1dd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xd85c34(0x213),'viewBox':_0xd85c34(0x2ce),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xd85c34(0x2fc)},'children':[{'tag':_0xd85c34(0x2da),'attrs':{'stroke':_0xd85c34(0x26a),'d':_0xd85c34(0x256),'strokeLinecap':_0xd85c34(0x1ee),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xd85c34(0x22b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xd85c34(0x29d)},'children':[{'tag':_0xd85c34(0x2da),'attrs':{'fill':_0xd85c34(0x1b5),'d':_0xd85c34(0x2f2)}}]}]}],'defIds':[_0xd85c34(0x29d)]},_0x4b666b=_0x1defb3[_0xd85c34(0x278)](function(_0x166461,_0x998be5){const _0xf97147=_0xd85c34;return _0x1defb3[_0xf97147(0x2ad)](_0x4402b8,Object[_0xf97147(0x28a)]({},_0x166461,{'id':_0xf97147(0x252),'ref':_0x998be5,'icon':_0x291872}));});_0x4b666b['displayName']=_0xd85c34(0x30a);const _0x1f091c={'tag':_0xd85c34(0x1dd),'attrs':{'xmlns':_0xd85c34(0x2e8),'fill':_0xd85c34(0x213),'viewBox':_0xd85c34(0x315),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xd85c34(0x2c2)},'children':[{'tag':_0xd85c34(0x2da),'attrs':{'stroke':'currentColor','d':_0xd85c34(0x21f),'strokeLinecap':_0xd85c34(0x1ee),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xd85c34(0x22b),'attrs':{},'children':[{'tag':_0xd85c34(0x1d7),'attrs':{'id':_0xd85c34(0x243)},'children':[{'tag':'path','attrs':{'fill':_0xd85c34(0x1b5),'d':_0xd85c34(0x2f2),'transform':_0xd85c34(0x25a)}}]}]}],'defIds':[_0xd85c34(0x243)]},_0x41a134=_0x1defb3[_0xd85c34(0x278)](function(_0x2b3dd1,_0xe8d0d4){const _0x5e4cfd=_0xd85c34;return _0x1defb3[_0x5e4cfd(0x2ad)](_0x4402b8,Object[_0x5e4cfd(0x28a)]({},_0x2b3dd1,{'id':_0x5e4cfd(0x318),'ref':_0xe8d0d4,'icon':_0x1f091c}));});_0x41a134[_0xd85c34(0x1f8)]=_0xd85c34(0x287);function _0x352b29(_0x48cf62){const _0xf33a79=_0xd85c34;var _0x170e20,_0x44edb8;const {mcpCoreConfig:_0x427ae5,onSave:_0x2d32b0,loading:_0x246c90=!0x1,config:_0x20d563,connectionStatus$:_0xac9323,connectionError$:_0x211d67,currentApiKey$:_0x48fe4e,currentSessionId$:_0x411721}=_0x48cf62,_0x54e261=_0x451aa8[_0xf33a79(0x2b5)](_0x4ee71c['LocaleService']),_0x15b5bf=_0x451aa8[_0xf33a79(0x1fa)](_0xac9323,_0x20970d[_0xf33a79(0x1ff)][_0xf33a79(0x1ec)]),_0x48ec7b=_0x451aa8['useObservable'](_0x211d67,_0x20970d[_0xf33a79(0x1c2)][_0xf33a79(0x297)]),_0x51a7aa=_0x451aa8[_0xf33a79(0x1fa)](_0x411721,''),_0x18b853=_0x451aa8[_0xf33a79(0x1fa)](_0x48fe4e,''),[_0x1487ad,_0x53fff1]=_0x1defb3[_0xf33a79(0x1d0)](_0x18b853||''),_0x33864d=!0x0,_0x58a937=_0x20d563[_0xf33a79(0x2e3)]&&_0x427ae5[_0xf33a79(0x1ed)]&&(_0x427ae5['mcpServerUrl'][_0xf33a79(0x1cc)](_0xf33a79(0x20c))||_0x427ae5[_0xf33a79(0x1ed)]['includes'](_0xf33a79(0x1d1))),_0x527a6f=(_0x170e20=_0x427ae5[_0xf33a79(0x1ed)])==null?void 0x0:_0x170e20[_0xf33a79(0x1cc)](_0xf33a79(0x20c)),_0x4b8049=(_0x44edb8=_0x427ae5[_0xf33a79(0x1ed)])==null?void 0x0:_0x44edb8['includes'](_0xf33a79(0x1d1)),_0x234549=_0x527a6f?_0xf33a79(0x2bf):'https://console.univer.ai',_0x1807a1=_0x20d563[_0xf33a79(0x2e3)]&&(_0x527a6f||_0x4b8049),[_0x1c07d9,_0x35a3fe]=_0x1defb3[_0xf33a79(0x1d0)](!_0x1487ad[_0xf33a79(0x268)]()),_0x4d5931=(_0x9b2787,_0x2fcf3b)=>{const _0x4933f8=_0xf33a79;if(_0x2fcf3b===_0x20970d[_0x4933f8(0x1c2)][_0x4933f8(0x2aa)])return _0x4933f8(0x2c8);switch(_0x9b2787){case _0x20970d[_0x4933f8(0x1ff)]['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x20970d['MCPConnectionStatus']['CONNECTING']:case _0x20970d['MCPConnectionStatus']['RETRYING']:return _0x4933f8(0x2b7);case _0x20970d['MCPConnectionStatus']['FAILED']:return _0x4933f8(0x2c8);default:return _0x4933f8(0x25e);}},_0x1e78d3=(_0x3d40a7,_0x18d206)=>{const _0x2d7cd2=_0xf33a79;if(_0x18d206===_0x20970d[_0x2d7cd2(0x1c2)][_0x2d7cd2(0x2aa)])return _0x2d7cd2(0x2c1);switch(_0x3d40a7){case _0x20970d['MCPConnectionStatus'][_0x2d7cd2(0x2c3)]:return'univer-bg-green-500';case _0x20970d[_0x2d7cd2(0x1ff)]['CONNECTING']:case _0x20970d['MCPConnectionStatus'][_0x2d7cd2(0x263)]:return _0x2d7cd2(0x2cc);case _0x20970d[_0x2d7cd2(0x1ff)][_0x2d7cd2(0x1e1)]:return _0x2d7cd2(0x2c1);default:return _0x2d7cd2(0x2cd);}},_0x58d2d3=_0x45819b=>{const _0x162327=_0xf33a79;switch(_0x45819b){case _0x20970d['MCPConnectionStatus']['CONNECTED']:return _0x54e261['t'](_0x162327(0x23b));case _0x20970d[_0x162327(0x1ff)][_0x162327(0x273)]:return _0x54e261['t'](_0x162327(0x2c6));case _0x20970d[_0x162327(0x1ff)][_0x162327(0x1e1)]:return _0x54e261['t'](_0x162327(0x1d6));case _0x20970d[_0x162327(0x1ff)]['RETRYING']:return _0x54e261['t'](_0x162327(0x20e));default:return _0x54e261['t'](_0x162327(0x312));}},_0x4c9a08=_0x56c5c8=>{const _0x198bd1=_0xf33a79;switch(_0x56c5c8){case _0x20970d[_0x198bd1(0x1c2)][_0x198bd1(0x2aa)]:return _0x54e261['t']('mcpConfig.connectionError.unauthorized');case _0x20970d[_0x198bd1(0x1c2)]['SESSION_ID_OCCUPIED']:return _0x54e261['t']('mcpConfig.connectionError.sessionOccupied');case _0x20970d[_0x198bd1(0x1c2)][_0x198bd1(0x219)]:return _0x54e261['t'](_0x198bd1(0x27b));case _0x20970d[_0x198bd1(0x1c2)][_0x198bd1(0x1fc)]:return _0x54e261['t'](_0x198bd1(0x2d7));default:return'';}},_0x1ad426=_0x1defb3[_0xf33a79(0x1e8)](()=>{const _0x22d005=_0xf33a79,_0x316a88={..._0x427ae5,'apiKey':_0x1487ad[_0x22d005(0x268)](),'enableAuth':_0x33864d};_0x2d32b0(_0x316a88);},[_0x427ae5,_0x1487ad,_0x33864d,_0x2d32b0]),_0xd4b9f7=_0x1487ad[_0xf33a79(0x268)]()[_0xf33a79(0x27c)]>0x0;return _0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x2b1),'children':[_0x1fb4f4['jsx'](_0xf33a79(0x229),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x1fb4f4[_0xf33a79(0x216)]('div',{'className':_0xf33a79(0x2e0),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0xf33a79(0x1ce),'children':_0x1fb4f4[_0xf33a79(0x237)]('span',{'className':_0xf33a79(0x2e7),'children':'⚙'})}),_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'children':_0x1fb4f4[_0xf33a79(0x237)]('p',{'className':_0xf33a79(0x201),'children':_0x54e261['t'](_0xf33a79(0x298))})})]})}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x1ac),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0x33407f[_0xf33a79(0x1b9)](_0xf33a79(0x271),_0x4d5931(_0x15b5bf,_0x48ec7b)),'children':_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x333),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0x33407f[_0xf33a79(0x1b9)](_0xf33a79(0x319),_0x1e78d3(_0x15b5bf,_0x48ec7b))}),_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x284),{'className':_0xf33a79(0x332),'children':_0x58d2d3(_0x15b5bf)})]})}),_0x48ec7b!==_0x20970d['MCPConnectionError'][_0xf33a79(0x297)]&&(_0x15b5bf===_0x20970d['MCPConnectionStatus'][_0xf33a79(0x1e1)]||_0x48ec7b===_0x20970d[_0xf33a79(0x1c2)][_0xf33a79(0x2aa)])&&_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0xf33a79(0x24a),'children':_0x1fb4f4['jsxs'](_0xf33a79(0x229),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x1fb4f4['jsx'](_0xf33a79(0x284),{'className':_0xf33a79(0x283),'children':'⚠️'}),_0x1fb4f4[_0xf33a79(0x237)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4c9a08(_0x48ec7b)})]})})]}),_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0xf33a79(0x282),'children':_0x1fb4f4[_0xf33a79(0x216)]('div',{'className':_0xf33a79(0x221),'children':[_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x22d),'children':[_0x1fb4f4[_0xf33a79(0x216)]('label',{'className':_0xf33a79(0x1e3),'children':[_0x1fb4f4[_0xf33a79(0x237)]('span',{'children':'🔑'}),'\x20',_0x54e261['t'](_0xf33a79(0x303)),_0x1fb4f4['jsx'](_0xf33a79(0x284),{'className':_0xf33a79(0x2b8),'children':'*'}),_0x58a937&&_0x1fb4f4['jsx']('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':_0x54e261['t'](_0xf33a79(0x2c7)),'role':_0xf33a79(0x1ba),'onClick':()=>_0x35a3fe(!0x0),'children':_0x1fb4f4[_0xf33a79(0x237)](_0x34f3f1,{})})]}),_0x1fb4f4[_0xf33a79(0x237)](_0x33407f[_0xf33a79(0x1d2)],{'type':'text','placeholder':_0x54e261['t'](_0xf33a79(0x291)),'value':_0x1487ad,'disabled':_0x246c90,'autoComplete':_0xf33a79(0x25b),'onChange':_0x53fff1}),_0x1fb4f4['jsx']('p',{'className':_0xf33a79(0x309),'children':_0x54e261['t']('mcpConfig.apiKeyHint')})]}),_0x58a937&&_0x1c07d9&&_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x1e9),'children':[_0x1fb4f4[_0xf33a79(0x237)]('a',{'className':_0xf33a79(0x2cf),'role':'button','onClick':()=>_0x35a3fe(!0x1),'children':_0x1fb4f4[_0xf33a79(0x237)](_0x4896ff,{'className':_0xf33a79(0x2c5)})}),_0x1fb4f4[_0xf33a79(0x216)]('div',{'className':_0xf33a79(0x1b7),'children':[_0x1fb4f4['jsx'](_0xf33a79(0x229),{'className':_0xf33a79(0x1da),'children':_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x284),{'className':_0xf33a79(0x1f4),'children':'🚀'})}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x1d5),'children':[_0x1fb4f4[_0xf33a79(0x237)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x54e261['t'](_0xf33a79(0x2c7))}),_0x1fb4f4[_0xf33a79(0x237)]('p',{'className':_0xf33a79(0x31c),'children':_0x54e261['t'](_0xf33a79(0x330))}),_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x1807a1&&_0x1fb4f4[_0xf33a79(0x216)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x234549,'target':_0xf33a79(0x289),'rel':_0xf33a79(0x203),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x284),{'children':'🤖'}),_0x54e261['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x1fb4f4['jsx']('span',{'className':_0xf33a79(0x1c6),'children':'↗'})]})}),_0x1fb4f4['jsxs'](_0xf33a79(0x229),{'className':_0xf33a79(0x24b),'children':['✨','\x20',_0x54e261['t'](_0xf33a79(0x304))]})]})]})]}),_0x20d563[_0xf33a79(0x2e3)]&&_0x1fb4f4['jsxs'](_0xf33a79(0x229),{'className':_0xf33a79(0x265),'children':[_0x1fb4f4[_0xf33a79(0x216)]('h4',{'className':_0xf33a79(0x209),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x284),{'children':'🔗'}),'\x20',_0x54e261['t']('mcpConfig.connectionInfo')]}),_0x1fb4f4['jsxs']('div',{'className':_0xf33a79(0x1fe),'children':[_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':'univer-space-y-3','children':[_0x1fb4f4[_0xf33a79(0x237)]('p',{'className':_0xf33a79(0x215),'children':_0x54e261['t'](_0xf33a79(0x296))}),_0x1fb4f4['jsxs'](_0xf33a79(0x229),{'className':_0xf33a79(0x22d),'children':[_0x1fb4f4['jsx'](_0xf33a79(0x229),{'className':_0xf33a79(0x1a9),'children':_0x54e261['t'](_0xf33a79(0x29c))}),_0x1fb4f4[_0xf33a79(0x216)]('div',{'className':_0xf33a79(0x288),'children':[_0x1fb4f4['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fb4f4['jsx'](_0xf33a79(0x284),{'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'}),_0x54e261['t'](_0xf33a79(0x1ad))]}),_0x1fb4f4[_0xf33a79(0x216)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fb4f4['jsx']('span',{'className':_0xf33a79(0x2d8),'children':'2'}),_0x54e261['t'](_0xf33a79(0x244))]}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x333),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x284),{'className':_0xf33a79(0x2d8),'children':'3'}),_0x54e261['t'](_0xf33a79(0x2be))]})]})]})]}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':'univer-space-y-2','children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0xf33a79(0x1a9),'children':_0xf33a79(0x258)}),_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0xf33a79(0x1f7),'children':_0x1fb4f4[_0xf33a79(0x237)]('pre',{'className':_0xf33a79(0x2a5),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xf33a79(0x22a)+(_0x51a7aa||_0xf33a79(0x1fd)),'type':_0xf33a79(0x29a),'headers':{'Authorization':_0xf33a79(0x305)+(_0x1487ad||_0xf33a79(0x2e5))}}}},null,0x2)})})]}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x2e4),'children':[_0x1fb4f4[_0xf33a79(0x237)]('div',{'className':_0xf33a79(0x1a9),'children':_0x54e261['t'](_0xf33a79(0x26e))}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':_0xf33a79(0x22d),'children':[_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0xf33a79(0x331)}),_0x1fb4f4[_0xf33a79(0x216)]('div',{'className':_0xf33a79(0x234),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x1fb4f4[_0xf33a79(0x237)]('div',{'className':_0xf33a79(0x309),'children':_0x54e261['t'](_0xf33a79(0x23a))})]})]}),_0x1fb4f4['jsxs'](_0xf33a79(0x229),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1fb4f4['jsx'](_0xf33a79(0x229),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1fb4f4['jsx']('div',{'className':_0xf33a79(0x2b2),'children':_0xf33a79(0x27f)}),_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x54e261['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x1fb4f4[_0xf33a79(0x237)](_0x33407f['Button'],{'onClick':_0x1ad426,'disabled':!_0xd4b9f7||_0x246c90,'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':_0x246c90?_0x1fb4f4['jsxs']('span',{'className':_0xf33a79(0x333),'children':[_0x1fb4f4['jsx'](_0xf33a79(0x284),{'children':'⟲'}),_0x54e261['t'](_0xf33a79(0x2fd))]}):_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x284),{'className':_0xf33a79(0x333),'children':[_0x1fb4f4[_0xf33a79(0x237)](_0x1fa98f,{}),_0x54e261['t'](_0xf33a79(0x2c4))]})}),_0x1fb4f4[_0xf33a79(0x237)](_0xf33a79(0x229),{'className':_0xf33a79(0x2d4),'children':_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':'univer-flex\x20univer-gap-3','children':[_0x1fb4f4['jsx'](_0xf33a79(0x284),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1fb4f4[_0xf33a79(0x237)]('div',{'className':_0xf33a79(0x30d),'children':'Configuration\x20Notes:'}),_0x1fb4f4[_0xf33a79(0x216)](_0xf33a79(0x229),{'children':['•',_0x54e261['t']('mcpConfig.note1')]}),_0x1fb4f4['jsxs'](_0xf33a79(0x229),{'children':['•',_0x54e261['t'](_0xf33a79(0x23c))]})]})]})})]})})]});}const _0x195d2e=_0xd85c34(0x1ab),_0x5796a2={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x380fb8=Object[_0xd85c34(0x28d)],_0x20fc66=(_0x487619,_0x14f1fb,_0xccdec4,_0x3eaaee)=>{for(var _0x93dfe4=_0x3eaaee>0x1?void 0x0:_0x3eaaee?_0x380fb8(_0x14f1fb,_0xccdec4):_0x14f1fb,_0x2e90e1=_0x487619['length']-0x1,_0x1296a2;_0x2e90e1>=0x0;_0x2e90e1--)(_0x1296a2=_0x487619[_0x2e90e1])&&(_0x93dfe4=_0x1296a2(_0x93dfe4)||_0x93dfe4);return _0x93dfe4;},_0x3ec0e1=(_0x30650e,_0x15fe0d)=>(_0x3144ef,_0x3e0434)=>_0x15fe0d(_0x3144ef,_0x3e0434,_0x30650e);const _0x4d6dbd='mcp.apiKey',_0x3b55ea=_0xd85c34(0x2bb);_0x194faa[_0xd85c34(0x24f)]=class extends _0x4ee71c['Disposable']{constructor(_0x21f88a,_0x39a8c9,_0x3c99b1,_0x4c6289,_0x45dd32,_0x504e14,_0x1d8df8,_0x5d930d,_0x540e20,_0x204750){const _0x271ec0=_0xd85c34;super(),_0x3036dc(this,_0x271ec0(0x320),new _0x8716de[(_0x271ec0(0x31b))](!0x1)),_0x3036dc(this,_0x271ec0(0x1ef),new _0x8716de[(_0x271ec0(0x31b))]({})),_0x3036dc(this,'_config$',new _0x8716de[(_0x271ec0(0x31b))]({})),_0x3036dc(this,_0x271ec0(0x239),new _0x8716de[(_0x271ec0(0x31b))]('')),_0x3036dc(this,_0x271ec0(0x2ac),async _0x19464e=>{const _0x39afad=_0x271ec0;var _0xb52c9b,_0x3de3f3;this[_0x39afad(0x320)]['next'](!0x0);try{const _0x92afc2=await this['_validateConfig'](_0x19464e);if(!_0x92afc2[_0x39afad(0x1b4)]){this[_0x39afad(0x214)]['show']({'type':_0x33407f['MessageType']['Error'],'content':_0x92afc2[_0x39afad(0x29f)]||this[_0x39afad(0x2ae)]['t'](_0x39afad(0x2f8))});return;}_0x19464e['apiKey']?await this[_0x39afad(0x202)]['setItem'](_0x4d6dbd,_0x19464e['apiKey'][_0x39afad(0x268)]()):await this[_0x39afad(0x202)][_0x39afad(0x2dc)](_0x4d6dbd),this[_0x39afad(0x239)][_0x39afad(0x2e6)](((_0xb52c9b=_0x19464e[_0x39afad(0x23d)])==null?void 0x0:_0xb52c9b[_0x39afad(0x268)]())||''),this['_mcpConnectionController'][_0x39afad(0x224)]({'Authorization':_0x39afad(0x305)+((_0x3de3f3=_0x19464e[_0x39afad(0x23d)])==null?void 0x0:_0x3de3f3[_0x39afad(0x268)]())}),this['_messageService'][_0x39afad(0x321)]({'type':_0x33407f[_0x39afad(0x266)]['Success'],'content':this[_0x39afad(0x2ae)]['t'](_0x39afad(0x222))}),setTimeout(()=>{const _0x55ea92=_0x39afad;this[_0x55ea92(0x1c1)]['close'](_0x3b55ea);},0x320);}catch(_0x145547){this[_0x39afad(0x1b6)][_0x39afad(0x30c)](_0x39afad(0x206),_0x145547),this['_messageService'][_0x39afad(0x321)]({'type':_0x33407f[_0x39afad(0x266)]['Error'],'content':this[_0x39afad(0x2ae)]['t'](_0x39afad(0x1d3))});}finally{this[_0x39afad(0x320)][_0x39afad(0x2e6)](!0x1);}}),(this[_0x271ec0(0x2f4)]=_0x21f88a,this[_0x271ec0(0x295)]=_0x39a8c9,this[_0x271ec0(0x2a4)]=_0x3c99b1,this[_0x271ec0(0x202)]=_0x4c6289,this[_0x271ec0(0x1c1)]=_0x45dd32,this[_0x271ec0(0x214)]=_0x504e14,this[_0x271ec0(0x260)]=_0x1d8df8,this[_0x271ec0(0x2ae)]=_0x5d930d,this['_logService']=_0x540e20,this[_0x271ec0(0x2f5)]=_0x204750,this[_0x271ec0(0x2b0)](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0xd85c34(0x329)](){const _0x305609=_0xd85c34,_0x21db24=this[_0x305609(0x2a4)][_0x305609(0x277)](_0x195d2e);_0x21db24!=null&&_0x21db24[_0x305609(0x2e3)]&&this[_0x305609(0x1c1)]['open']({'id':_0x3b55ea,'title':{'title':this[_0x305609(0x2ae)]['t'](_0x305609(0x2a7))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](_0x3b55ea);}});}[_0xd85c34(0x272)](){const _0x102581=_0xd85c34;return this[_0x102581(0x1ef)]['value'];}[_0xd85c34(0x2b9)](){const _0x573b90=_0xd85c34;this[_0x573b90(0x270)](this['_componentManager']['register'](_0x573b90(0x1bf),this[_0x573b90(0x1d9)]()));}[_0xd85c34(0x1d9)](){const _0x27c94b=_0xd85c34;return _0x451aa8[_0x27c94b(0x2ed)](()=>{const _0xf8c883=_0x27c94b;var _0x27398c,_0x59a515,_0x2bf717;return _0x1fb4f4['jsx'](_0x352b29,{'config':this[_0xf8c883(0x21a)]['value'],'mcpCoreConfig':this[_0xf8c883(0x1ef)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0xf8c883(0x2ac)],'loading':this[_0xf8c883(0x320)][_0xf8c883(0x328)],'connectionStatus$':(_0x27398c=this[_0xf8c883(0x2f5)])==null?void 0x0:_0x27398c[_0xf8c883(0x2a3)],'connectionError$':(_0x59a515=this[_0xf8c883(0x2f5)])==null?void 0x0:_0x59a515[_0xf8c883(0x246)],'currentSessionId$':(_0x2bf717=this['_mcpConnectionController'])==null?void 0x0:_0x2bf717[_0xf8c883(0x257)]});},this[_0x27c94b(0x2f4)]);}[_0xd85c34(0x2b0)](){const _0x5dff46=_0xd85c34;this[_0x5dff46(0x270)](this[_0x5dff46(0x2a4)][_0x5dff46(0x32c)](_0x20970d[_0x5dff46(0x31a)])[_0x5dff46(0x30b)](_0x13e7d=>{const _0x4dcbbe=_0x5dff46;this['_mcpCoreConfig$'][_0x4dcbbe(0x2e6)](_0x13e7d||{});}));const _0x5b5e6c=this[_0x5dff46(0x2a4)]['getConfig'](_0x20970d['MCP_PLUGIN_CONFIG_KEY']);this[_0x5dff46(0x1ef)][_0x5dff46(0x2e6)](_0x5b5e6c||{}),this[_0x5dff46(0x270)](this[_0x5dff46(0x2a4)]['subscribeConfigValue$'](_0x195d2e)[_0x5dff46(0x30b)](_0x593699=>{const _0x1a2bf7=_0x5dff46;this['_config$'][_0x1a2bf7(0x2e6)](_0x593699||{});}));const _0x14f905=this[_0x5dff46(0x2a4)][_0x5dff46(0x277)](_0x195d2e);this[_0x5dff46(0x21a)][_0x5dff46(0x2e6)](_0x14f905||{});}async[_0xd85c34(0x2fa)](){const _0x144472=_0xd85c34,_0x816d85=this[_0x144472(0x2a4)][_0x144472(0x277)](_0x195d2e);if(!(_0x816d85!=null&&_0x816d85['showDeveloperTools']))return;const _0x3230eb=await this[_0x144472(0x202)]['getItem'](_0x4d6dbd);_0x3230eb&&(this['_mcpConnectionController'][_0x144472(0x224)]({'Authorization':'Bearer\x20'+_0x3230eb}),this[_0x144472(0x239)]['next'](_0x3230eb));}async['_validateConfig'](_0x251f18){const _0x50b074=_0xd85c34;if(!_0x251f18['apiKey']||_0x251f18[_0x50b074(0x23d)][_0x50b074(0x268)]()[_0x50b074(0x27c)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x251f18[_0x50b074(0x23d)][_0x50b074(0x268)]()[_0x50b074(0x27c)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x50b074(0x2ae)]['t'](_0x50b074(0x29b))};try{const _0x5e3334=await this[_0x50b074(0x2f4)][_0x50b074(0x1f0)](_0x20970d[_0x50b074(0x274)])[_0x50b074(0x28e)](_0x251f18[_0x50b074(0x23d)][_0x50b074(0x268)]());return _0x5e3334[_0x50b074(0x1b4)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5e3334[_0x50b074(0x30c)]||this[_0x50b074(0x2ae)]['t'](_0x50b074(0x27a))};}catch(_0x5126bb){return console[_0x50b074(0x25f)](_0x50b074(0x308),_0x5126bb),{'isValid':!0x0};}}},_0x194faa[_0xd85c34(0x24f)]=_0x20fc66([_0x3ec0e1(0x0,_0x4ee71c['Inject'](_0x4ee71c[_0xd85c34(0x2d3)])),_0x3ec0e1(0x1,_0x451aa8['IUIPartsService']),_0x3ec0e1(0x2,_0x4ee71c[_0xd85c34(0x23e)]),_0x3ec0e1(0x3,_0x4ee71c[_0xd85c34(0x32e)]),_0x3ec0e1(0x4,_0x451aa8[_0xd85c34(0x1c5)]),_0x3ec0e1(0x5,_0x451aa8[_0xd85c34(0x210)]),_0x3ec0e1(0x6,_0x4ee71c['Inject'](_0x451aa8[_0xd85c34(0x21e)])),_0x3ec0e1(0x7,_0x4ee71c[_0xd85c34(0x220)](_0x4ee71c[_0xd85c34(0x1a8)])),_0x3ec0e1(0x8,_0x4ee71c[_0xd85c34(0x20d)]),_0x3ec0e1(0x9,_0x4ee71c['Inject'](_0x20970d[_0xd85c34(0x274)]))],_0x194faa[_0xd85c34(0x24f)]);const _0x5e2d81={'id':_0xd85c34(0x2f0),'type':_0x4ee71c['CommandType'][_0xd85c34(0x1dc)],'handler':async(_0x11da1c,_0x2f4415)=>(_0x11da1c[_0xd85c34(0x1f0)](_0x194faa[_0xd85c34(0x24f)])[_0xd85c34(0x329)](),!0x0)};function _0x548ae4(_0x380db7,_0x5047a3){const _0x31322b=_0xd85c34;switch(_0x380db7){case _0x20970d[_0x31322b(0x1ff)]['DISCONNECTED']:return _0x31322b(0x293);case _0x20970d[_0x31322b(0x1ff)][_0x31322b(0x273)]:return _0x31322b(0x21c);case _0x20970d[_0x31322b(0x1ff)]['CONNECTED']:return _0x31322b(0x2f9);case _0x20970d['MCPConnectionStatus'][_0x31322b(0x1e1)]:switch(_0x5047a3){case _0x20970d[_0x31322b(0x1c2)][_0x31322b(0x2aa)]:return'mcpStatus.unauthorized';case _0x20970d[_0x31322b(0x1c2)][_0x31322b(0x212)]:return _0x31322b(0x1b3);case _0x20970d[_0x31322b(0x1c2)]['NETWORK_ERROR']:return'mcpStatus.networkError';case _0x20970d[_0x31322b(0x1c2)][_0x31322b(0x1fc)]:return _0x31322b(0x20f);default:return'mcpStatus.failed';}case _0x20970d['MCPConnectionStatus']['RETRYING']:return _0x31322b(0x2fb);default:return'mcpStatus.unknown';}}function _0x5a8238(_0x473d6f,_0xcf2500,_0x387dfc,_0x1fd674=!0x0){const _0x30b4d2=_0xd85c34,_0x1afd1e=_0x548ae4(_0x473d6f,_0xcf2500),_0x21e514=_0x387dfc['t'](_0x1afd1e);return _0x1fd674?_0x473d6f===_0x20970d[_0x30b4d2(0x1ff)][_0x30b4d2(0x1ec)]&&_0xcf2500===_0x20970d['MCPConnectionError'][_0x30b4d2(0x2aa)]?_0x21e514+'\x20-\x20'+_0x387dfc['t']('mcpStatus.clickToConfigure'):_0x473d6f===_0x20970d[_0x30b4d2(0x1ff)][_0x30b4d2(0x2c3)]?''+_0x21e514:_0x473d6f===_0x20970d[_0x30b4d2(0x1ff)][_0x30b4d2(0x1ec)]||_0x473d6f===_0x20970d[_0x30b4d2(0x1ff)][_0x30b4d2(0x1e1)]?_0x21e514+_0x30b4d2(0x275)+_0x387dfc['t']('mcpStatus.clickToConnect'):_0x21e514:_0x21e514;}function _0x3e998b(_0x2ccf6c){const _0x3f0a28=_0xd85c34;switch(_0x2ccf6c){case _0x20970d[_0x3f0a28(0x1ff)][_0x3f0a28(0x2c3)]:return _0x3f0a28(0x1c7);case _0x20970d[_0x3f0a28(0x1ff)][_0x3f0a28(0x273)]:case _0x20970d['MCPConnectionStatus']['RETRYING']:return'univer-text-yellow-500';case _0x20970d['MCPConnectionStatus'][_0x3f0a28(0x1e1)]:case _0x20970d['MCPConnectionStatus']['DISCONNECTED']:return _0x3f0a28(0x2b8);default:return'univer-text-gray-500';}}function _0x6c7263(_0x33dcaa){const _0x5a58ea=_0xd85c34,{status$:_0x2bb003,error$:_0x2f573e,onConfigure:_0x51d043,showClickable:_0x2997e1=!0x0}=_0x33dcaa,_0x19fdb8=_0x451aa8[_0x5a58ea(0x1fa)](_0x2bb003,_0x20970d['MCPConnectionStatus'][_0x5a58ea(0x1ec)]),_0x1dddc0=_0x451aa8[_0x5a58ea(0x1fa)](_0x2f573e,_0x20970d[_0x5a58ea(0x1c2)][_0x5a58ea(0x297)]),_0x5d8692=_0x451aa8[_0x5a58ea(0x2b5)](_0x4ee71c[_0x5a58ea(0x1a8)]),_0x1c2beb=_0x19fdb8===_0x20970d[_0x5a58ea(0x1ff)][_0x5a58ea(0x2c3)];_0x19fdb8===_0x20970d[_0x5a58ea(0x1ff)][_0x5a58ea(0x273)]||_0x20970d[_0x5a58ea(0x1ff)][_0x5a58ea(0x263)];const _0x332d77=_0x5d8692['t'](_0x548ae4(_0x19fdb8,_0x1dddc0)),_0x1fc8aa=_0x5a8238(_0x19fdb8,_0x1dddc0,_0x5d8692,_0x2997e1),_0x135417=_0x3e998b(_0x19fdb8),_0x1c70fc=_0x1c2beb?_0x1fb4f4[_0x5a58ea(0x237)](_0x41a134,{}):_0x1fb4f4[_0x5a58ea(0x237)](_0x4b666b,{}),_0x17b6df=_0x1defb3['useCallback'](()=>{_0x2997e1&&_0x51d043&&_0x51d043();},[_0x2997e1,_0x51d043]);function _0x550f56(){const _0x6e571e=_0x5a58ea;return _0x1fb4f4[_0x6e571e(0x216)]('div',{'className':_0x33407f['clsx']('univer-flex\x20univer-items-center',_0x2997e1&&_0x51d043&&_0x6e571e(0x25d)),'role':_0x6e571e(0x1ba),'onClick':_0x2997e1&&_0x51d043?_0x17b6df:void 0x0,'children':[_0x1fb4f4['jsx']('div',{'className':_0x33407f[_0x6e571e(0x1b9)](_0x6e571e(0x2d5),_0x135417),'children':_0x1c70fc}),_0x1fb4f4[_0x6e571e(0x237)](_0x6e571e(0x229),{'className':_0x6e571e(0x1c4),'children':_0x332d77})]});}return _0x1fb4f4['jsx'](_0x33407f[_0x5a58ea(0x225)],{'title':_0x1fc8aa,'placement':_0x5a58ea(0x24e),'children':_0x550f56()});}var _0x18cb36=Object[_0xd85c34(0x28d)],_0x2f060b=(_0x10c1cb,_0x1256e1,_0x2e3b87,_0x25bff1)=>{const _0x3787e6=_0xd85c34;for(var _0x1a611b=_0x25bff1>0x1?void 0x0:_0x25bff1?_0x18cb36(_0x1256e1,_0x2e3b87):_0x1256e1,_0xc98179=_0x10c1cb[_0x3787e6(0x27c)]-0x1,_0x48a264;_0xc98179>=0x0;_0xc98179--)(_0x48a264=_0x10c1cb[_0xc98179])&&(_0x1a611b=_0x48a264(_0x1a611b)||_0x1a611b);return _0x1a611b;},_0x39eaca=(_0x24b8d0,_0x2525b5)=>(_0x39f1cf,_0xc067fe)=>_0x2525b5(_0x39f1cf,_0xc067fe,_0x24b8d0);_0x194faa[_0xd85c34(0x1f3)]=class extends _0x4ee71c[_0xd85c34(0x22e)]{constructor(_0x39bf7b,_0x55a933,_0x71265e,_0x541742){const _0x354640=_0xd85c34;super(),this['_injector']=_0x39bf7b,this['_connectionController']=_0x55a933,this[_0x354640(0x295)]=_0x71265e,this['_configService']=_0x541742,this['_initAutoConnect'](),this[_0x354640(0x30e)]();}[_0xd85c34(0x301)](){const _0x39ff05=_0xd85c34,_0x2b4579=this[_0x39ff05(0x2a4)][_0x39ff05(0x277)](_0x195d2e);_0x2b4579!=null&&_0x2b4579[_0x39ff05(0x2e3)]&&(this[_0x39ff05(0x242)][_0x39ff05(0x1be)]=!0x1);}['_initStatusComponent'](){const _0x25eaa0=_0xd85c34,_0x1f6ba9=this['_configService'][_0x25eaa0(0x277)](_0x195d2e);(_0x1f6ba9==null?void 0x0:_0x1f6ba9[_0x25eaa0(0x23f)])!==!0x1&&this[_0x25eaa0(0x270)](this[_0x25eaa0(0x295)][_0x25eaa0(0x1ea)](_0x451aa8[_0x25eaa0(0x200)][_0x25eaa0(0x1e7)],()=>{const _0x5b3b55=_0x25eaa0;var _0x1e1243;return _0x451aa8[_0x5b3b55(0x2ed)](_0x17d92e({'status$':this[_0x5b3b55(0x242)][_0x5b3b55(0x2a3)],'error$':this[_0x5b3b55(0x242)][_0x5b3b55(0x246)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1e1243=_0x1f6ba9==null?void 0x0:_0x1f6ba9['showDeveloperTools'])!=null?_0x1e1243:!0x1}),this[_0x5b3b55(0x2f4)]);}));}['_handleConfigure'](){const _0x268f06=_0xd85c34;this[_0x268f06(0x2f4)][_0x268f06(0x1f0)](_0x194faa[_0x268f06(0x24f)])[_0x268f06(0x329)]();}},_0x194faa[_0xd85c34(0x1f3)]=_0x2f060b([_0x39eaca(0x0,_0x4ee71c[_0xd85c34(0x220)](_0x4ee71c[_0xd85c34(0x2d3)])),_0x39eaca(0x1,_0x4ee71c[_0xd85c34(0x220)](_0x20970d[_0xd85c34(0x274)])),_0x39eaca(0x2,_0x451aa8['IUIPartsService']),_0x39eaca(0x3,_0x4ee71c['IConfigService'])],_0x194faa['MCPConnectionUIController']);function _0x17d92e(_0x387a63){const {status$:_0xa7954b,error$:_0x2b3b74,onConfigure:_0x179bde,showClickable:_0x1f8886}=_0x387a63;return function(){const _0x1e8c6=_0x11b1;return _0x1fb4f4[_0x1e8c6(0x237)](_0x6c7263,{'status$':_0xa7954b,'error$':_0x2b3b74,'onConfigure':_0x179bde,'showClickable':_0x1f8886});};}function _0x248144(_0x418972){const _0x11da21=_0xd85c34;return{'id':_0x5e2d81['id'],'type':_0x451aa8['MenuItemType'][_0x11da21(0x1af)],'icon':_0x11da21(0x2a8),'title':'mcpConfig.title','tooltip':_0x11da21(0x2a7)};}const _0x228e8c={[_0x451aa8[_0xd85c34(0x1b2)]['OTHERS']]:{[_0x5e2d81['id']]:{'order':0xa,'menuItemFactory':_0x248144}}};var _0x380719=Object['getOwnPropertyDescriptor'],_0xd0d4b7=(_0x28008b,_0x3958fe,_0x2cbe0a,_0x38c072)=>{const _0x42e9df=_0xd85c34;for(var _0x492492=_0x38c072>0x1?void 0x0:_0x38c072?_0x380719(_0x3958fe,_0x2cbe0a):_0x3958fe,_0x25baf6=_0x28008b[_0x42e9df(0x27c)]-0x1,_0x53df81;_0x25baf6>=0x0;_0x25baf6--)(_0x53df81=_0x28008b[_0x25baf6])&&(_0x492492=_0x53df81(_0x492492)||_0x492492);return _0x492492;},_0x2778f9=(_0x4ce43c,_0x3afaea)=>(_0x1f5614,_0x5c19a7)=>_0x3afaea(_0x1f5614,_0x5c19a7,_0x4ce43c);_0x194faa[_0xd85c34(0x1c0)]=class extends _0x4ee71c['Disposable']{constructor(_0x1a7c98,_0xa8ddfa){const _0x57502d=_0xd85c34;super(),this['_commandService']=_0x1a7c98,this[_0x57502d(0x317)]=_0xa8ddfa,this[_0x57502d(0x28f)](),this[_0x57502d(0x2fe)]();}[_0xd85c34(0x28f)](){const _0x297e60=_0xd85c34;[_0x5e2d81][_0x297e60(0x235)](_0x5aded6=>{const _0x2e80d6=_0x297e60;this['disposeWithMe'](this['_commandService'][_0x2e80d6(0x302)](_0x5aded6));});}[_0xd85c34(0x2fe)](){const _0x35ec8f=_0xd85c34;this[_0x35ec8f(0x317)][_0x35ec8f(0x261)](_0x228e8c);}},_0x194faa[_0xd85c34(0x1c0)]=_0xd0d4b7([_0x2778f9(0x0,_0x4ee71c[_0xd85c34(0x25c)]),_0x2778f9(0x1,_0x451aa8[_0xd85c34(0x2e9)])],_0x194faa[_0xd85c34(0x1c0)]);const _0x327731={'mcpStatus':{'disconnected':_0xd85c34(0x2af),'connecting':_0xd85c34(0x1d4),'connected':_0xd85c34(0x300),'failed':_0xd85c34(0x2a6),'retrying':_0xd85c34(0x20b),'unknown':_0xd85c34(0x2f7),'unauthorized':_0xd85c34(0x26f),'sessionOccupied':_0xd85c34(0x245),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd85c34(0x24c),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xd85c34(0x258),'description':_0xd85c34(0x28c),'apiKey':_0xd85c34(0x1db),'apiKeyPlaceholder':_0xd85c34(0x276),'apiKeyHint':_0xd85c34(0x241),'enableAuth':_0xd85c34(0x2dd),'enableAuthHint':_0xd85c34(0x2a9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xd85c34(0x232),'configInstructions':_0xd85c34(0x2d0),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xd85c34(0x259),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xd85c34(0x2db),'sessionIdDescription':_0xd85c34(0x231),'authorizationDescription':_0xd85c34(0x2a2),'configParameters':_0xd85c34(0x2c0),'maxRetries':_0xd85c34(0x27e),'save':_0xd85c34(0x1df),'saving':_0xd85c34(0x1f2),'note1':_0xd85c34(0x2bc),'note2':_0xd85c34(0x2bd),'configSaved':_0xd85c34(0x316),'configError':_0xd85c34(0x1e0),'apiApplyInfo':{'title':_0xd85c34(0x2ba),'description':_0xd85c34(0x2cb),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xd85c34(0x2ab)},'validation':{'apiKeyRequired':_0xd85c34(0x2d6),'apiKeyTooShort':_0xd85c34(0x269),'invalidConfig':_0xd85c34(0x1e6),'invalidApiKey':_0xd85c34(0x1f6)},'connectionStatus':{'disconnected':_0xd85c34(0x286),'connecting':_0xd85c34(0x2d1),'connected':'Connected','failed':_0xd85c34(0x294),'retrying':_0xd85c34(0x31d)},'connectionError':{'unauthorized':_0xd85c34(0x310),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xd85c34(0x2ea),'maxRetriesExceeded':_0xd85c34(0x1cb)}}},_0x57b747={'mcpStatus':{'disconnected':_0xd85c34(0x267),'connecting':_0xd85c34(0x32d),'connected':_0xd85c34(0x1b1),'failed':_0xd85c34(0x2f1),'retrying':_0xd85c34(0x285),'unknown':_0xd85c34(0x255),'unauthorized':_0xd85c34(0x264),'sessionOccupied':_0xd85c34(0x247),'networkError':_0xd85c34(0x1cd),'maxRetriesExceeded':_0xd85c34(0x326),'clickToConnect':_0xd85c34(0x248),'clickToConfigure':_0xd85c34(0x1ca)},'mcpConfig':{'title':_0xd85c34(0x2b6),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0xd85c34(0x31e),'apiKeyPlaceholder':_0xd85c34(0x26d),'apiKeyHint':_0xd85c34(0x2de),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0xd85c34(0x280),'mcpClientConfig':_0xd85c34(0x280),'configInstructions':_0xd85c34(0x1aa),'configStepTitle':_0xd85c34(0x1fb),'configStep1':_0xd85c34(0x2df),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xd85c34(0x314),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0xd85c34(0x2d2),'maxRetries':_0xd85c34(0x311),'save':_0xd85c34(0x1b8),'saving':_0xd85c34(0x1c3),'note1':_0xd85c34(0x1b0),'note2':_0xd85c34(0x2ee),'configSaved':_0xd85c34(0x325),'configError':'配置保存失败','apiApplyInfo':{'title':_0xd85c34(0x324),'description':_0xd85c34(0x2f3),'univerAiLabel':_0xd85c34(0x306),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0xd85c34(0x1f5),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0xd85c34(0x279),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0xd85c34(0x21d),'connecting':_0xd85c34(0x292),'connected':'已连接','failed':_0xd85c34(0x313),'retrying':_0xd85c34(0x236)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0xd85c34(0x2c9),'networkError':_0xd85c34(0x2d9),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x29b4be=Object[_0xd85c34(0x228)],_0x195a62=Object['getOwnPropertyDescriptor'],_0x4faaa0=(_0x10fa8d,_0x441897,_0x5b60ff)=>_0x441897 in _0x10fa8d?_0x29b4be(_0x10fa8d,_0x441897,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b60ff}):_0x10fa8d[_0x441897]=_0x5b60ff,_0x14f33e=(_0x4be410,_0x1f74d6,_0x4f053d,_0x3e259d)=>{for(var _0xf9845f=_0x3e259d>0x1?void 0x0:_0x3e259d?_0x195a62(_0x1f74d6,_0x4f053d):_0x1f74d6,_0x28f2e6=_0x4be410['length']-0x1,_0x3ab572;_0x28f2e6>=0x0;_0x28f2e6--)(_0x3ab572=_0x4be410[_0x28f2e6])&&(_0xf9845f=_0x3ab572(_0xf9845f)||_0xf9845f);return _0xf9845f;},_0x377c9b=(_0x61f550,_0x4957fa)=>(_0xb5f6bd,_0x9f1468)=>_0x4957fa(_0xb5f6bd,_0x9f1468,_0x61f550),_0x2f3d5c=(_0x2f5b45,_0x3dce53,_0x519b97)=>_0x4faaa0(_0x2f5b45,_0x3dce53+'',_0x519b97);_0x194faa['UniverMCPUIPlugin']=class extends _0x4ee71c['Plugin']{constructor(_0x2ffd6=_0x5796a2,_0x2caf26,_0x383047,_0x5588eb,_0x1fba0f,_0x4caecd){const _0x4f85f8=_0xd85c34;super(),this[_0x4f85f8(0x32f)]=_0x2ffd6,this[_0x4f85f8(0x2f4)]=_0x2caf26,this['_configService']=_0x383047,this[_0x4f85f8(0x295)]=_0x5588eb,this[_0x4f85f8(0x202)]=_0x1fba0f,this[_0x4f85f8(0x2ae)]=_0x4caecd;const {..._0x3c5c84}=_0x4ee71c['merge']({},_0x5796a2,this[_0x4f85f8(0x32f)]);this[_0x4f85f8(0x2a4)]['setConfig'](_0x195d2e,_0x3c5c84);}async[_0xd85c34(0x254)](){const _0x483a90=_0xd85c34,_0xb2b443=[[_0x194faa[_0x483a90(0x1f3)]],[_0x194faa['MCPConfigUIController']],[_0x194faa['MCPUIMenuController']]];this['_injector'][_0x483a90(0x27d)](_0x16442c[_0x483a90(0x1e5)])||_0xb2b443[_0x483a90(0x2ff)]([_0x16442c[_0x483a90(0x1e5)],{'useClass':_0x16442c[_0x483a90(0x205)]}]),_0xb2b443[_0x483a90(0x235)](_0x4265f9=>this[_0x483a90(0x2f4)]['add'](_0x4265f9)),this['_injector'][_0x483a90(0x1f0)](_0x194faa[_0x483a90(0x1f3)]),this[_0x483a90(0x2f4)][_0x483a90(0x1f0)](_0x194faa[_0x483a90(0x24f)]),this[_0x483a90(0x2f4)][_0x483a90(0x1f0)](_0x194faa[_0x483a90(0x1c0)]);}},_0x2f3d5c(_0x194faa['UniverMCPUIPlugin'],_0xd85c34(0x1bb),'MCP_UI_PLUGIN'),_0x194faa[_0xd85c34(0x1cf)]=_0x14f33e([_0x4ee71c[_0xd85c34(0x253)](_0x20970d[_0xd85c34(0x20a)]),_0x377c9b(0x1,_0x4ee71c['Inject'](_0x4ee71c[_0xd85c34(0x2d3)])),_0x377c9b(0x2,_0x4ee71c[_0xd85c34(0x23e)]),_0x377c9b(0x3,_0x451aa8[_0xd85c34(0x2a1)]),_0x377c9b(0x4,_0x4ee71c[_0xd85c34(0x32e)]),_0x377c9b(0x5,_0x4ee71c[_0xd85c34(0x220)](_0x4ee71c[_0xd85c34(0x1a8)]))],_0x194faa['UniverMCPUIPlugin']),_0x194faa[_0xd85c34(0x1bf)]=_0x352b29,_0x194faa['MCPStatusDisplay']=_0x6c7263,_0x194faa[_0xd85c34(0x322)]=_0x5e2d81,_0x194faa[_0xd85c34(0x251)]=_0x327731,_0x194faa[_0xd85c34(0x22f)]=_0x57b747,Object[_0xd85c34(0x228)](_0x194faa,Symbol[_0xd85c34(0x22c)],{'value':'Module'});}));
@@ -1 +1 @@
1
- (function(_0x4f7de5,_0x2a5872){var _0x50b5ef=_0x1c97,_0x4ea95a=_0x4f7de5();while(!![]){try{var _0x3a4ac9=-parseInt(_0x50b5ef(0x1d5))/0x1*(parseInt(_0x50b5ef(0x1a8))/0x2)+parseInt(_0x50b5ef(0x1a0))/0x3*(parseInt(_0x50b5ef(0x1ce))/0x4)+-parseInt(_0x50b5ef(0x1b8))/0x5*(-parseInt(_0x50b5ef(0x1cb))/0x6)+-parseInt(_0x50b5ef(0x1b9))/0x7*(parseInt(_0x50b5ef(0x1b2))/0x8)+parseInt(_0x50b5ef(0x1ab))/0x9*(parseInt(_0x50b5ef(0x1b0))/0xa)+-parseInt(_0x50b5ef(0x1ae))/0xb*(parseInt(_0x50b5ef(0x1ad))/0xc)+parseInt(_0x50b5ef(0x1b4))/0xd;if(_0x3a4ac9===_0x2a5872)break;else _0x4ea95a['push'](_0x4ea95a['shift']());}catch(_0x29c8c8){_0x4ea95a['push'](_0x4ea95a['shift']());}}}(_0xbf1d,0x4c40e),function(_0x4b5b87,_0xf07c8e){var _0x58067d=_0x1c97;typeof exports==_0x58067d(0x1b1)&&typeof module<'u'?module[_0x58067d(0x1cc)]=_0xf07c8e():typeof define==_0x58067d(0x1d3)&&define[_0x58067d(0x1ba)]?define(_0xf07c8e):(_0x4b5b87=typeof globalThis<'u'?globalThis:_0x4b5b87||self,_0x4b5b87[_0x58067d(0x19f)]=_0xf07c8e());}(this,function(){'use strict';var _0x45603a=_0x1c97;return{'mcpStatus':{'disconnected':_0x45603a(0x1c9),'connecting':'MCP\x20Connecting...','connected':_0x45603a(0x1c8),'failed':'MCP\x20Connection\x20Failed','retrying':_0x45603a(0x1c0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x45603a(0x1a3),'sessionOccupied':_0x45603a(0x1b7),'networkError':_0x45603a(0x1a4),'maxRetriesExceeded':_0x45603a(0x1a9),'clickToConnect':_0x45603a(0x19c),'clickToConfigure':_0x45603a(0x1a1)},'mcpConfig':{'title':_0x45603a(0x1bd),'description':_0x45603a(0x1d6),'apiKey':_0x45603a(0x1c3),'apiKeyPlaceholder':_0x45603a(0x1c1),'apiKeyHint':_0x45603a(0x1d1),'enableAuth':_0x45603a(0x1d0),'enableAuthHint':_0x45603a(0x1d4),'connectionInfo':_0x45603a(0x1c6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x45603a(0x1b5),'configStepTitle':_0x45603a(0x1b6),'configStep1':_0x45603a(0x1c5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x45603a(0x1cf),'sessionId':_0x45603a(0x1cd),'sessionIdDescription':_0x45603a(0x19d),'authorizationDescription':_0x45603a(0x1c2),'configParameters':_0x45603a(0x1ca),'maxRetries':_0x45603a(0x1c7),'save':_0x45603a(0x1a7),'saving':'Saving...','note1':_0x45603a(0x1a6),'note2':_0x45603a(0x1af),'configSaved':_0x45603a(0x1aa),'configError':_0x45603a(0x1bf),'apiApplyInfo':{'title':_0x45603a(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':_0x45603a(0x1ac),'getStarted':_0x45603a(0x19b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x45603a(0x1b3),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x45603a(0x1be)},'connectionStatus':{'disconnected':_0x45603a(0x1a2),'connecting':_0x45603a(0x1bb),'connected':_0x45603a(0x1c4),'failed':_0x45603a(0x1d2),'retrying':_0x45603a(0x19e)},'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':_0x45603a(0x1a5)}}};}));function _0x1c97(_0x4f4b44,_0x76b6b4){var _0xbf1ddf=_0xbf1d();return _0x1c97=function(_0x1c973c,_0xd2aa46){_0x1c973c=_0x1c973c-0x19b;var _0x5941fc=_0xbf1ddf[_0x1c973c];return _0x5941fc;},_0x1c97(_0x4f4b44,_0x76b6b4);}function _0xbf1d(){var _0x14f4c5=['Univer\x20AI\x20Console','12wpMRsm','2380367vLgTqI','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','201910WAxuTT','object','24tqQaGW','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4341337HFcJjS','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','5eLexiZ','1093645MexWIP','amd','Connecting...','What\x20is\x20API\x20Key?','MCP\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Max\x20Retries','MCP\x20Connected','MCP\x20Disconnected','Configuration\x20Parameters:','2949666RCHeVa','exports','Session\x20ID','5976IEzecB','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connection\x20Failed','function','Enable\x20authentication\x20for\x20secure\x20connections','1jFcQGP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','UniverProMcpUiCaES','801gzodIW','Click\x20to\x20configure\x20MCP','Disconnected','MCP:\x20Unauthorized','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Save\x20Configuration','1221302KAFFYf','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','171AdYOeQ'];_0xbf1d=function(){return _0x14f4c5;};return _0xbf1d();}
1
+ function _0x7183(_0x536667,_0x3214bd){var _0x34cc94=_0x34cc();return _0x7183=function(_0x718357,_0x1465ef){_0x718357=_0x718357-0x166;var _0x54eb23=_0x34cc94[_0x718357];return _0x54eb23;},_0x7183(_0x536667,_0x3214bd);}(function(_0x323307,_0x2a99ac){var _0x1a52e4=_0x7183,_0x468269=_0x323307();while(!![]){try{var _0x112e9c=-parseInt(_0x1a52e4(0x16e))/0x1+parseInt(_0x1a52e4(0x16c))/0x2*(-parseInt(_0x1a52e4(0x197))/0x3)+-parseInt(_0x1a52e4(0x17c))/0x4+parseInt(_0x1a52e4(0x198))/0x5*(parseInt(_0x1a52e4(0x187))/0x6)+parseInt(_0x1a52e4(0x181))/0x7*(-parseInt(_0x1a52e4(0x17a))/0x8)+-parseInt(_0x1a52e4(0x18c))/0x9*(parseInt(_0x1a52e4(0x192))/0xa)+parseInt(_0x1a52e4(0x178))/0xb;if(_0x112e9c===_0x2a99ac)break;else _0x468269['push'](_0x468269['shift']());}catch(_0x20651c){_0x468269['push'](_0x468269['shift']());}}}(_0x34cc,0x369ed),function(_0x2e2c15,_0x5c5272){var _0x50e297=_0x7183;typeof exports==_0x50e297(0x172)&&typeof module<'u'?module['exports']=_0x5c5272():typeof define==_0x50e297(0x16d)&&define[_0x50e297(0x19a)]?define(_0x5c5272):(_0x2e2c15=typeof globalThis<'u'?globalThis:_0x2e2c15||self,_0x2e2c15[_0x50e297(0x19e)]=_0x5c5272());}(this,function(){'use strict';var _0x170e5c=_0x7183;return{'mcpStatus':{'disconnected':_0x170e5c(0x177),'connecting':'MCP\x20Connecting...','connected':_0x170e5c(0x176),'failed':_0x170e5c(0x191),'retrying':_0x170e5c(0x17b),'unknown':_0x170e5c(0x168),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x170e5c(0x182),'networkError':_0x170e5c(0x19d),'maxRetriesExceeded':_0x170e5c(0x184),'clickToConnect':_0x170e5c(0x183),'clickToConfigure':_0x170e5c(0x170)},'mcpConfig':{'title':_0x170e5c(0x199),'description':_0x170e5c(0x185),'apiKey':_0x170e5c(0x16a),'apiKeyPlaceholder':_0x170e5c(0x19c),'apiKeyHint':_0x170e5c(0x17d),'enableAuth':_0x170e5c(0x18e),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x170e5c(0x17f),'mcpClientConfig':_0x170e5c(0x17f),'configInstructions':_0x170e5c(0x175),'configStepTitle':_0x170e5c(0x193),'configStep1':_0x170e5c(0x171),'configStep2':_0x170e5c(0x18b),'configStep3':_0x170e5c(0x169),'sessionId':_0x170e5c(0x18a),'sessionIdDescription':_0x170e5c(0x19b),'authorizationDescription':_0x170e5c(0x167),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x170e5c(0x188),'save':_0x170e5c(0x174),'saving':'Saving...','note1':_0x170e5c(0x190),'note2':_0x170e5c(0x195),'configSaved':_0x170e5c(0x179),'configError':_0x170e5c(0x196),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x170e5c(0x18f),'getStarted':_0x170e5c(0x166)},'validation':{'apiKeyRequired':_0x170e5c(0x17e),'apiKeyTooShort':_0x170e5c(0x16f),'invalidConfig':_0x170e5c(0x186),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x170e5c(0x189),'connecting':'Connecting...','connected':_0x170e5c(0x173),'failed':_0x170e5c(0x16b),'retrying':_0x170e5c(0x180)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x170e5c(0x18d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x170e5c(0x194)}}};}));function _0x34cc(){var _0x46cedb=['Disconnected','Session\x20ID','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','279ZWJuMw','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','97900iprJvu','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','6VhnJYo','2135TdCOzD','MCP\x20Configuration','amd','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','UniverProMcpUiCaES','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key','Connection\x20Failed','85078svwlUl','function','34172DZKGWA','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','object','Connected','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','MCP\x20Disconnected','10635746JYSVGn','Configuration\x20saved\x20successfully','24JuscUn','MCP\x20Retrying...','1669492PdyRSd','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','Retrying...','49763qNlRxK','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','1662mimOXc','Max\x20Retries'];_0x34cc=function(){return _0x46cedb;};return _0x34cc();}