@univerjs-pro/mcp-ui 0.10.11-nightly.202510220308 → 0.10.12

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
- const _0x1bd699=_0x1961;(function(_0x2e38e1,_0x4f459e){const _0x27d979=_0x1961,_0x1d3459=_0x2e38e1();while(!![]){try{const _0x26c7f8=parseInt(_0x27d979(0x16f))/0x1*(parseInt(_0x27d979(0x18a))/0x2)+parseInt(_0x27d979(0x19c))/0x3*(-parseInt(_0x27d979(0x17a))/0x4)+-parseInt(_0x27d979(0x189))/0x5*(-parseInt(_0x27d979(0x16d))/0x6)+-parseInt(_0x27d979(0x190))/0x7*(-parseInt(_0x27d979(0x19d))/0x8)+parseInt(_0x27d979(0x17d))/0x9*(-parseInt(_0x27d979(0x176))/0xa)+parseInt(_0x27d979(0x198))/0xb+-parseInt(_0x27d979(0x183))/0xc*(parseInt(_0x27d979(0x19f))/0xd);if(_0x26c7f8===_0x4f459e)break;else _0x1d3459['push'](_0x1d3459['shift']());}catch(_0x547298){_0x1d3459['push'](_0x1d3459['shift']());}}}(_0x11c9,0xb069e));function _0x1961(_0x5c5c91,_0x2dd140){const _0x11c9f8=_0x11c9();return _0x1961=function(_0x19619a,_0x2000d2){_0x19619a=_0x19619a-0x16d;let _0x403fe7=_0x11c9f8[_0x19619a];return _0x403fe7;},_0x1961(_0x5c5c91,_0x2dd140);}const e={'mcpStatus':{'disconnected':_0x1bd699(0x171),'connecting':_0x1bd699(0x17c),'connected':_0x1bd699(0x17f),'failed':_0x1bd699(0x175),'retrying':'MCP\x20Retrying...','unknown':_0x1bd699(0x185),'unauthorized':_0x1bd699(0x17b),'sessionOccupied':_0x1bd699(0x187),'networkError':_0x1bd699(0x177),'maxRetriesExceeded':_0x1bd699(0x179),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1bd699(0x191)},'mcpConfig':{'title':_0x1bd699(0x18e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1bd699(0x18b),'apiKeyPlaceholder':_0x1bd699(0x184),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1bd699(0x19e),'enableAuthHint':_0x1bd699(0x18d),'connectionInfo':_0x1bd699(0x192),'mcpClientConfig':_0x1bd699(0x192),'configInstructions':_0x1bd699(0x197),'configStepTitle':_0x1bd699(0x18f),'configStep1':_0x1bd699(0x17e),'configStep2':_0x1bd699(0x19b),'configStep3':_0x1bd699(0x196),'sessionId':_0x1bd699(0x195),'sessionIdDescription':_0x1bd699(0x199),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1bd699(0x173),'maxRetries':_0x1bd699(0x178),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x1bd699(0x170),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1bd699(0x172),'description':_0x1bd699(0x16e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1bd699(0x1a0),'apiKeyTooShort':_0x1bd699(0x180),'invalidConfig':_0x1bd699(0x188),'invalidApiKey':_0x1bd699(0x182)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1bd699(0x194),'connected':_0x1bd699(0x193),'failed':_0x1bd699(0x181),'retrying':_0x1bd699(0x19a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1bd699(0x186),'networkError':_0x1bd699(0x174),'maxRetriesExceeded':_0x1bd699(0x18c)}}},n=e;function _0x11c9(){const _0x9bf930=['1399391rNuJLV','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','Connected','Connecting...','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4134482KUmftV','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2511009FfUijq','16kEUprZ','Enable\x20Authentication','13gybrku','API\x20key\x20is\x20required','5990388frAxpY','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','802qJslaY','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','10UaXtdg','MCP:\x20Network\x20Error','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','4tbxTxn','MCP:\x20Unauthorized','MCP\x20Connecting...','1009161QApgsj','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','17425560UkoBNL','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration','5CeqyyS','3366XrLtYN','API\x20Key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','Configuration\x20Steps:'];_0x11c9=function(){return _0x9bf930;};return _0x11c9();}export{n as default};
1
+ const _0x4350c0=_0x5777;(function(_0x62c694,_0x45986b){const _0x2bd4f5=_0x5777,_0x182845=_0x62c694();while(!![]){try{const _0x4c24e7=parseInt(_0x2bd4f5(0xb0))/0x1*(parseInt(_0x2bd4f5(0xbd))/0x2)+-parseInt(_0x2bd4f5(0xba))/0x3+-parseInt(_0x2bd4f5(0xc1))/0x4+parseInt(_0x2bd4f5(0xdf))/0x5*(-parseInt(_0x2bd4f5(0xd9))/0x6)+-parseInt(_0x2bd4f5(0xda))/0x7*(-parseInt(_0x2bd4f5(0xcb))/0x8)+parseInt(_0x2bd4f5(0xdb))/0x9*(-parseInt(_0x2bd4f5(0xdd))/0xa)+parseInt(_0x2bd4f5(0xce))/0xb;if(_0x4c24e7===_0x45986b)break;else _0x182845['push'](_0x182845['shift']());}catch(_0x381bde){_0x182845['push'](_0x182845['shift']());}}}(_0x3478,0x9d700));function _0x3478(){const _0x4568ce=['Save\x20Configuration','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','MCP\x20Connection\x20Failed','Disconnected','2674161epKIvc','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','301766rCxYoc','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','251544WlEhit','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','108776bkrOXt','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','9825794vcUZjh','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','Saving...','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1758252qsZDsM','469HmEVpp','3361023pFyScU','Get\x20your\x20API\x20key\x20in\x20seconds','10FZgOKT','MCP\x20Connecting...','10VQjGaa','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','5NpdSCN','Retrying...'];_0x3478=function(){return _0x4568ce;};return _0x3478();}const e={'mcpStatus':{'disconnected':_0x4350c0(0xd6),'connecting':_0x4350c0(0xde),'connected':_0x4350c0(0xc3),'failed':_0x4350c0(0xb8),'retrying':_0x4350c0(0xcc),'unknown':_0x4350c0(0xc0),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4350c0(0xd3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4350c0(0xc8),'clickToConnect':_0x4350c0(0xbc),'clickToConfigure':_0x4350c0(0xcd)},'mcpConfig':{'title':_0x4350c0(0xd1),'description':_0x4350c0(0xbe),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4350c0(0xbf),'apiKeyHint':_0x4350c0(0xca),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4350c0(0xd0),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4350c0(0xbb),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4350c0(0xb5),'configStep1':_0x4350c0(0xc5),'configStep2':_0x4350c0(0xd8),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4350c0(0xd4),'sessionIdDescription':_0x4350c0(0xe1),'authorizationDescription':_0x4350c0(0xb6),'configParameters':_0x4350c0(0xc6),'maxRetries':_0x4350c0(0xb7),'save':_0x4350c0(0xb2),'saving':_0x4350c0(0xd2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4350c0(0xc9),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4350c0(0xb3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4350c0(0xc2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4350c0(0xdc)},'validation':{'apiKeyRequired':_0x4350c0(0xc7),'apiKeyTooShort':_0x4350c0(0xcf),'invalidConfig':_0x4350c0(0xb4),'invalidApiKey':_0x4350c0(0xd5)},'connectionStatus':{'disconnected':_0x4350c0(0xb9),'connecting':'Connecting...','connected':_0x4350c0(0xe0),'failed':_0x4350c0(0xae),'retrying':_0x4350c0(0xb1)},'connectionError':{'unauthorized':_0x4350c0(0xd7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4350c0(0xc4),'maxRetriesExceeded':_0x4350c0(0xaf)}}},n=e;function _0x5777(_0x1afbfc,_0x489d0c){const _0x347884=_0x3478();return _0x5777=function(_0x5777f5,_0x53cd0b){_0x5777f5=_0x5777f5-0xae;let _0x4886df=_0x347884[_0x5777f5];return _0x4886df;},_0x5777(_0x1afbfc,_0x489d0c);}export{n as default};
@@ -1 +1 @@
1
- const _0x39d0c5=_0x8e28;function _0x5b9e(){const _0x15a8d0=['API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','30lRzkdL','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','187498TBKZRz','1tkfDqL','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','443885Tflmid','Save\x20Configuration','Connection\x20Failed','Session\x20ID','Enable\x20Authentication','10zMfUUX','1332712vkpKLB','302212papZjp','Disconnected','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','MCP:\x20Unauthorized','2142297DVUMeo','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','Failed\x20to\x20save\x20configuration','24nZvpBl','MCP\x20Client\x20Configuration','Retrying...','9ztmfEH','MCP\x20Configuration','API\x20key\x20is\x20required','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.','Configuration\x20Steps:','102509mKivmI','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','139692VzWXBh','MCP\x20Connecting...','Enter\x20your\x20API\x20key'];_0x5b9e=function(){return _0x15a8d0;};return _0x5b9e();}(function(_0x204351,_0x29df0a){const _0x53a409=_0x8e28,_0x3685e9=_0x204351();while(!![]){try{const _0x329303=parseInt(_0x53a409(0x176))/0x1*(-parseInt(_0x53a409(0x175))/0x2)+-parseInt(_0x53a409(0x15c))/0x3*(-parseInt(_0x53a409(0x14f))/0x4)+parseInt(_0x53a409(0x148))/0x5+parseInt(_0x53a409(0x172))/0x6*(-parseInt(_0x53a409(0x165))/0x7)+-parseInt(_0x53a409(0x14e))/0x8+parseInt(_0x53a409(0x154))/0x9*(parseInt(_0x53a409(0x14d))/0xa)+parseInt(_0x53a409(0x162))/0xb*(-parseInt(_0x53a409(0x159))/0xc);if(_0x329303===_0x29df0a)break;else _0x3685e9['push'](_0x3685e9['shift']());}catch(_0x22f5eb){_0x3685e9['push'](_0x3685e9['shift']());}}}(_0x5b9e,0x2aa79));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x39d0c5(0x166),'connected':_0x39d0c5(0x15f),'failed':_0x39d0c5(0x146),'retrying':'MCP\x20Retrying...','unknown':_0x39d0c5(0x151),'unauthorized':_0x39d0c5(0x153),'sessionOccupied':_0x39d0c5(0x174),'networkError':_0x39d0c5(0x16f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x39d0c5(0x15d),'description':_0x39d0c5(0x16e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x39d0c5(0x167),'apiKeyHint':_0x39d0c5(0x163),'enableAuth':_0x39d0c5(0x14c),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x39d0c5(0x15a),'mcpClientConfig':_0x39d0c5(0x15a),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x39d0c5(0x161),'configStep1':_0x39d0c5(0x169),'configStep2':_0x39d0c5(0x16d),'configStep3':_0x39d0c5(0x155),'sessionId':_0x39d0c5(0x14b),'sessionIdDescription':_0x39d0c5(0x173),'authorizationDescription':_0x39d0c5(0x168),'configParameters':_0x39d0c5(0x152),'maxRetries':'Max\x20Retries','save':_0x39d0c5(0x149),'saving':'Saving...','note1':_0x39d0c5(0x16a),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x39d0c5(0x147),'configError':_0x39d0c5(0x158),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x39d0c5(0x160),'univerAiLabel':_0x39d0c5(0x170),'getStarted':_0x39d0c5(0x16c)},'validation':{'apiKeyRequired':_0x39d0c5(0x15e),'apiKeyTooShort':_0x39d0c5(0x171),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x39d0c5(0x150),'connecting':_0x39d0c5(0x157),'connected':_0x39d0c5(0x16b),'failed':_0x39d0c5(0x14a),'retrying':_0x39d0c5(0x15b)},'connectionError':{'unauthorized':_0x39d0c5(0x156),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x39d0c5(0x164)}}},n=e;function _0x8e28(_0x14a955,_0x2d913a){const _0x5b9eda=_0x5b9e();return _0x8e28=function(_0x8e28e5,_0x48f0c9){_0x8e28e5=_0x8e28e5-0x146;let _0x2278c3=_0x5b9eda[_0x8e28e5];return _0x2278c3;},_0x8e28(_0x14a955,_0x2d913a);}export{n as default};
1
+ function _0x1145(_0x23d900,_0x251f10){const _0x53a231=_0x53a2();return _0x1145=function(_0x11456b,_0x5331d9){_0x11456b=_0x11456b-0x1e2;let _0x5c27a0=_0x53a231[_0x11456b];return _0x5c27a0;},_0x1145(_0x23d900,_0x251f10);}const _0x23bc22=_0x1145;(function(_0x176ae9,_0x236129){const _0x21ce3c=_0x1145,_0x29373a=_0x176ae9();while(!![]){try{const _0x25d09d=-parseInt(_0x21ce3c(0x1e4))/0x1*(-parseInt(_0x21ce3c(0x1f8))/0x2)+parseInt(_0x21ce3c(0x20b))/0x3*(parseInt(_0x21ce3c(0x1ed))/0x4)+parseInt(_0x21ce3c(0x205))/0x5+parseInt(_0x21ce3c(0x209))/0x6+-parseInt(_0x21ce3c(0x1fd))/0x7*(-parseInt(_0x21ce3c(0x1eb))/0x8)+-parseInt(_0x21ce3c(0x212))/0x9+parseInt(_0x21ce3c(0x1e6))/0xa*(-parseInt(_0x21ce3c(0x201))/0xb);if(_0x25d09d===_0x236129)break;else _0x29373a['push'](_0x29373a['shift']());}catch(_0x14646b){_0x29373a['push'](_0x29373a['shift']());}}}(_0x53a2,0x8a835));const e={'mcpStatus':{'disconnected':_0x23bc22(0x1f6),'connecting':_0x23bc22(0x1f9),'connected':_0x23bc22(0x1fe),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x23bc22(0x1ef),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x23bc22(0x1e5),'networkError':_0x23bc22(0x20a),'maxRetriesExceeded':_0x23bc22(0x20e),'clickToConnect':_0x23bc22(0x1f4),'clickToConfigure':_0x23bc22(0x1e3)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x23bc22(0x202),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x23bc22(0x1f3),'enableAuth':_0x23bc22(0x1fa),'enableAuthHint':_0x23bc22(0x203),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x23bc22(0x1f1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x23bc22(0x1ff),'configStep2':_0x23bc22(0x211),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x23bc22(0x1ea),'sessionIdDescription':_0x23bc22(0x204),'authorizationDescription':_0x23bc22(0x20f),'configParameters':_0x23bc22(0x1fc),'maxRetries':'Max\x20Retries','save':_0x23bc22(0x20d),'saving':_0x23bc22(0x1f2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x23bc22(0x210),'configSaved':_0x23bc22(0x208),'configError':_0x23bc22(0x206),'apiApplyInfo':{'title':_0x23bc22(0x1ee),'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':_0x23bc22(0x1f0),'getStarted':_0x23bc22(0x200)},'validation':{'apiKeyRequired':_0x23bc22(0x1e2),'apiKeyTooShort':_0x23bc22(0x207),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x23bc22(0x1f5),'connecting':'Connecting...','connected':_0x23bc22(0x20c),'failed':_0x23bc22(0x1e7),'retrying':_0x23bc22(0x1e9)},'connectionError':{'unauthorized':_0x23bc22(0x1e8),'sessionOccupied':_0x23bc22(0x1ec),'networkError':_0x23bc22(0x1fb),'maxRetriesExceeded':_0x23bc22(0x1f7)}}},n=e;function _0x53a2(){const _0x19ffc2=['Connected','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','5412978JvOzhu','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','9411aGAkvC','MCP:\x20Session\x20ID\x20Occupied','1500nmHebZ','Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Retrying...','Session\x20ID','880216mFERzT','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1243984VMBVFZ','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','Disconnected','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','236AUwOEw','MCP\x20Connecting...','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','14cdoJxu','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','75955OhQzhI','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','863830evmTRr','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','475386dYGcOD','MCP:\x20Network\x20Error','6dPmZzf'];_0x53a2=function(){return _0x19ffc2;};return _0x53a2();}export{n as default};
@@ -1 +1 @@
1
- function _0x509d(_0x134d4d,_0x208673){const _0xb7569c=_0xb756();return _0x509d=function(_0x509d01,_0x3c0c9d){_0x509d01=_0x509d01-0x10d;let _0x3ab0f5=_0xb7569c[_0x509d01];return _0x3ab0f5;},_0x509d(_0x134d4d,_0x208673);}const _0x40470b=_0x509d;(function(_0x3e10a5,_0x183cda){const _0x431fd6=_0x509d,_0x3e5d6b=_0x3e10a5();while(!![]){try{const _0x3c5d49=parseInt(_0x431fd6(0x126))/0x1+parseInt(_0x431fd6(0x115))/0x2*(-parseInt(_0x431fd6(0x12b))/0x3)+-parseInt(_0x431fd6(0x114))/0x4+-parseInt(_0x431fd6(0x13b))/0x5+-parseInt(_0x431fd6(0x113))/0x6+parseInt(_0x431fd6(0x11a))/0x7+parseInt(_0x431fd6(0x116))/0x8*(parseInt(_0x431fd6(0x121))/0x9);if(_0x3c5d49===_0x183cda)break;else _0x3e5d6b['push'](_0x3e5d6b['shift']());}catch(_0x3a227e){_0x3e5d6b['push'](_0x3e5d6b['shift']());}}}(_0xb756,0x30c4f));function _0xb756(){const _0x3253bd=['复制以下\x20JSON\x20配置','点击连接\x20MCP','几秒钟内获取您的\x20API\x20密钥','MCP:\x20会话\x20ID\x20已被占用','MCP\x20客户端配置','API\x20密钥长度至少需要\x2010\x20位','请输入您的\x20API\x20密钥','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20状态未知','601145AmUObi','最大重试次数','配置保存失败','配置参数:','MCP:\x20网络错误','点击配置\x20MCP','API\x20密钥','启用身份验证','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','会话ID','保存配置','配置保存成功','MCP\x20连接失败','1415088PKwloq','101476vgBeiW','78aWoxuJ','88cjVbeH','什么是\x20API\x20密钥?','未连接','MCP\x20连接中...','381451WJCtkG','保存中...','连接失败','启用身份验证以获得安全连接','Univer\x20AI\x20控制台','将以下配置添加到您的\x20MCP\x20客户端设置中:','超出最大重试次数,请稍后再试','293157HYZcCY','会话\x20ID\x20已被占用,请稍后再试','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20配置','重连中...','275230XqOeQv','MCP:\x20超出最大重试次数','将配置添加到您的\x20MCP\x20客户端设置文件中','已连接','配置更改将立即生效','8217hcupsR','配置步骤:','API\x20密钥不能为空','API\x20密钥无效,请检查密钥是否正确','重启您的\x20MCP\x20客户端以使配置生效','您的\x20API\x20密钥安全存储在本地存储中','连接中...'];_0xb756=function(){return _0x3253bd;};return _0xb756();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x40470b(0x119),'connected':'MCP\x20已连接','failed':_0x40470b(0x112),'retrying':'MCP\x20重连中...','unknown':_0x40470b(0x13a),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x40470b(0x135),'networkError':_0x40470b(0x13f),'maxRetriesExceeded':_0x40470b(0x127),'clickToConnect':_0x40470b(0x133),'clickToConfigure':_0x40470b(0x140)},'mcpConfig':{'title':_0x40470b(0x124),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x40470b(0x141),'apiKeyPlaceholder':_0x40470b(0x138),'apiKeyHint':_0x40470b(0x123),'enableAuth':_0x40470b(0x10d),'enableAuthHint':_0x40470b(0x11d),'connectionInfo':_0x40470b(0x136),'mcpClientConfig':_0x40470b(0x136),'configInstructions':_0x40470b(0x11f),'configStepTitle':_0x40470b(0x12c),'configStep1':_0x40470b(0x132),'configStep2':_0x40470b(0x128),'configStep3':_0x40470b(0x12f),'sessionId':_0x40470b(0x10f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x40470b(0x13e),'maxRetries':_0x40470b(0x13c),'save':_0x40470b(0x110),'saving':_0x40470b(0x11b),'note1':_0x40470b(0x12a),'note2':_0x40470b(0x130),'configSaved':_0x40470b(0x111),'configError':_0x40470b(0x13d),'apiApplyInfo':{'title':_0x40470b(0x117),'description':_0x40470b(0x10e),'univerAiLabel':_0x40470b(0x11e),'getStarted':_0x40470b(0x134)},'validation':{'apiKeyRequired':_0x40470b(0x12d),'apiKeyTooShort':_0x40470b(0x137),'invalidConfig':'配置无效','invalidApiKey':_0x40470b(0x12e)},'connectionStatus':{'disconnected':_0x40470b(0x118),'connecting':_0x40470b(0x131),'connected':_0x40470b(0x129),'failed':_0x40470b(0x11c),'retrying':_0x40470b(0x125)},'connectionError':{'unauthorized':_0x40470b(0x139),'sessionOccupied':_0x40470b(0x122),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x40470b(0x120)}}};export{e as default};
1
+ function _0x2fe1(){const _0x4e29b3=['配置无效','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20重连中...','您的\x20API\x20密钥安全存储在本地存储中','请输入您的\x20API\x20密钥','MCP\x20连接中...','您的\x20API\x20密钥将在此浏览器中本地存储','2784015viGRNO','带有\x20Bearer\x20前缀的\x20API\x20密钥。','14oNWQhS','114mDOXMW','会话\x20ID\x20已被占用,请稍后再试','保存配置','5398TJvEgf','启用身份验证','MCP\x20状态未知','MCP:\x20超出最大重试次数','Univer\x20AI\x20控制台','MCP\x20已断开','会话ID','MCP:\x20未授权','最大重试次数','配置保存成功','将配置添加到您的\x20MCP\x20客户端设置文件中','2123336DInAXy','MCP\x20配置','325747yiLyZM','启用身份验证以获得安全连接','重启您的\x20MCP\x20客户端以使配置生效','将以下配置添加到您的\x20MCP\x20客户端设置中:','已连接','MCP\x20客户端配置','API\x20密钥无效,请检查密钥是否正确','1598548qmNDtI','API\x20密钥不能为空','保存中...','重连中...','连接中...','MCP:\x20网络错误','权限验证失败,请检查您的\x20API\x20密钥','几秒钟内获取您的\x20API\x20密钥','配置保存失败','7222330aHgPDJ','配置步骤:','330qBQHlw','连接失败','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置参数:','13805SmeNzk','超出最大重试次数,请稍后再试','MCP\x20已连接'];_0x2fe1=function(){return _0x4e29b3;};return _0x2fe1();}const _0x150878=_0xed53;(function(_0x9ca0dc,_0x59c678){const _0x210e82=_0xed53,_0x26b936=_0x9ca0dc();while(!![]){try{const _0x2204ac=parseInt(_0x210e82(0x1f9))/0x1+parseInt(_0x210e82(0x1ec))/0x2*(parseInt(_0x210e82(0x1d8))/0x3)+-parseInt(_0x210e82(0x1cd))/0x4+parseInt(_0x210e82(0x1dc))/0x5*(-parseInt(_0x210e82(0x1e9))/0x6)+-parseInt(_0x210e82(0x1e8))/0x7*(-parseInt(_0x210e82(0x1f7))/0x8)+parseInt(_0x210e82(0x1e6))/0x9+-parseInt(_0x210e82(0x1d6))/0xa;if(_0x2204ac===_0x59c678)break;else _0x26b936['push'](_0x26b936['shift']());}catch(_0x52b556){_0x26b936['push'](_0x26b936['shift']());}}}(_0x2fe1,0x466dd));const e={'mcpStatus':{'disconnected':_0x150878(0x1f1),'connecting':_0x150878(0x1e4),'connected':_0x150878(0x1de),'failed':'MCP\x20连接失败','retrying':_0x150878(0x1e1),'unknown':_0x150878(0x1ee),'unauthorized':_0x150878(0x1f3),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x150878(0x1d2),'maxRetriesExceeded':_0x150878(0x1ef),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x150878(0x1f8),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x150878(0x1e3),'apiKeyHint':_0x150878(0x1e5),'enableAuth':_0x150878(0x1ed),'enableAuthHint':_0x150878(0x1fa),'connectionInfo':_0x150878(0x1cb),'mcpClientConfig':_0x150878(0x1cb),'configInstructions':_0x150878(0x1fc),'configStepTitle':_0x150878(0x1d7),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x150878(0x1f6),'configStep3':_0x150878(0x1fb),'sessionId':_0x150878(0x1f2),'sessionIdDescription':_0x150878(0x1da),'authorizationDescription':_0x150878(0x1e7),'configParameters':_0x150878(0x1db),'maxRetries':_0x150878(0x1f4),'save':_0x150878(0x1eb),'saving':_0x150878(0x1cf),'note1':'配置更改将立即生效','note2':_0x150878(0x1e2),'configSaved':_0x150878(0x1f5),'configError':_0x150878(0x1d5),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x150878(0x1e0),'univerAiLabel':_0x150878(0x1f0),'getStarted':_0x150878(0x1d4)},'validation':{'apiKeyRequired':_0x150878(0x1ce),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x150878(0x1df),'invalidApiKey':_0x150878(0x1cc)},'connectionStatus':{'disconnected':'未连接','connecting':_0x150878(0x1d1),'connected':_0x150878(0x1fd),'failed':_0x150878(0x1d9),'retrying':_0x150878(0x1d0)},'connectionError':{'unauthorized':_0x150878(0x1d3),'sessionOccupied':_0x150878(0x1ea),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x150878(0x1dd)}}};function _0xed53(_0x346863,_0x1e4dc0){const _0x2fe143=_0x2fe1();return _0xed53=function(_0xed5351,_0x4f449d){_0xed5351=_0xed5351-0x1cb;let _0x5b07f0=_0x2fe143[_0xed5351];return _0x5b07f0;},_0xed53(_0x346863,_0x1e4dc0);}export{e as default};
@@ -1 +1 @@
1
- function _0x1c36(_0x2efab8,_0x181f78){const _0x3fbc65=_0x3fbc();return _0x1c36=function(_0x1c3650,_0x45bcac){_0x1c3650=_0x1c3650-0x1b7;let _0x320dc2=_0x3fbc65[_0x1c3650];return _0x320dc2;},_0x1c36(_0x2efab8,_0x181f78);}function _0x3fbc(){const _0x475b40=['688700FfHOBq','252RMFysZ','Connection\x20Failed','40rezYNc','81592BYHbAv','Univer\x20AI\x20Console','Configuration\x20Steps:','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1JvvyVz','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','60348ppItfa','MCP:\x20Unauthorized','MCP\x20Connected','Connecting...','Disconnected','1001IqgqmK','3433458tEXdjV','Configuration\x20saved\x20successfully','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','2765452YyBpLK','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','Saving...','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key','Retrying...','10435480cLKTUr','11FjzIrl','998530HnkphB','891pkGJPm','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','MCP\x20Connecting...','Max\x20Retries','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x3fbc=function(){return _0x475b40;};return _0x3fbc();}const _0x4d2ff8=_0x1c36;(function(_0x4537fe,_0x4ecc1e){const _0x275b21=_0x1c36,_0x1075e7=_0x4537fe();while(!![]){try{const _0x30f7f8=-parseInt(_0x275b21(0x1bb))/0x1*(parseInt(_0x275b21(0x1cb))/0x2)+-parseInt(_0x275b21(0x1c7))/0x3+parseInt(_0x275b21(0x1e5))/0x4*(parseInt(_0x275b21(0x1e8))/0x5)+-parseInt(_0x275b21(0x1c1))/0x6*(-parseInt(_0x275b21(0x1c6))/0x7)+-parseInt(_0x275b21(0x1e9))/0x8*(-parseInt(_0x275b21(0x1db))/0x9)+-parseInt(_0x275b21(0x1d8))/0xa*(-parseInt(_0x275b21(0x1d9))/0xb)+parseInt(_0x275b21(0x1e6))/0xc*(-parseInt(_0x275b21(0x1da))/0xd);if(_0x30f7f8===_0x4ecc1e)break;else _0x1075e7['push'](_0x1075e7['shift']());}catch(_0x1c23a1){_0x1075e7['push'](_0x1075e7['shift']());}}}(_0x3fbc,0xb1e91));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4d2ff8(0x1e1),'connected':_0x4d2ff8(0x1c3),'failed':_0x4d2ff8(0x1d3),'retrying':_0x4d2ff8(0x1e3),'unknown':_0x4d2ff8(0x1d0),'unauthorized':_0x4d2ff8(0x1c2),'sessionOccupied':_0x4d2ff8(0x1be),'networkError':_0x4d2ff8(0x1cd),'maxRetriesExceeded':_0x4d2ff8(0x1dc),'clickToConnect':_0x4d2ff8(0x1df),'clickToConfigure':_0x4d2ff8(0x1cf)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4d2ff8(0x1bd),'apiKey':_0x4d2ff8(0x1d6),'apiKeyPlaceholder':_0x4d2ff8(0x1d1),'apiKeyHint':_0x4d2ff8(0x1b9),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4d2ff8(0x1ce),'connectionInfo':_0x4d2ff8(0x1b7),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4d2ff8(0x1cc),'configStepTitle':_0x4d2ff8(0x1eb),'configStep1':_0x4d2ff8(0x1ca),'configStep2':_0x4d2ff8(0x1c0),'configStep3':_0x4d2ff8(0x1d4),'sessionId':_0x4d2ff8(0x1de),'sessionIdDescription':_0x4d2ff8(0x1b8),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4d2ff8(0x1bf),'maxRetries':_0x4d2ff8(0x1e2),'save':'Save\x20Configuration','saving':_0x4d2ff8(0x1d2),'note1':_0x4d2ff8(0x1dd),'note2':_0x4d2ff8(0x1e4),'configSaved':_0x4d2ff8(0x1c8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4d2ff8(0x1ec),'description':_0x4d2ff8(0x1c9),'univerAiLabel':_0x4d2ff8(0x1ea),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d2ff8(0x1e0),'apiKeyTooShort':_0x4d2ff8(0x1ba),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4d2ff8(0x1c5),'connecting':_0x4d2ff8(0x1c4),'connected':'Connected','failed':_0x4d2ff8(0x1e7),'retrying':_0x4d2ff8(0x1d7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4d2ff8(0x1bc),'networkError':_0x4d2ff8(0x1d5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ const _0x58dde4=_0x449d;(function(_0x2e356c,_0x2bfe77){const _0x16bce3=_0x449d,_0x38f6b0=_0x2e356c();while(!![]){try{const _0x469329=parseInt(_0x16bce3(0x77))/0x1+parseInt(_0x16bce3(0x7d))/0x2+parseInt(_0x16bce3(0x9d))/0x3+-parseInt(_0x16bce3(0x97))/0x4+parseInt(_0x16bce3(0x89))/0x5*(parseInt(_0x16bce3(0x9a))/0x6)+parseInt(_0x16bce3(0x84))/0x7*(-parseInt(_0x16bce3(0x79))/0x8)+-parseInt(_0x16bce3(0x99))/0x9;if(_0x469329===_0x2bfe77)break;else _0x38f6b0['push'](_0x38f6b0['shift']());}catch(_0x956991){_0x38f6b0['push'](_0x38f6b0['shift']());}}}(_0x4743,0xb0081));function _0x4743(){const _0x15b297=['MCP\x20Retrying...','Enter\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','Retrying...','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','1372408bEFThu','Connecting...','14456097hXQojb','15486HgtNYd','Configuration\x20Parameters:','MCP\x20Disconnected','3841272cyhEBo','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','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.','Invalid\x20configuration','Configuration\x20saved\x20successfully','API\x20Key','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','194254mQPtXy','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','3466864iEtmvS','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','579002ukwhsV','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20ID\x20Occupied','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','7YyIPys','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','2595LRQtAa','Disconnected','MCP\x20Connection\x20Failed'];_0x4743=function(){return _0x15b297;};return _0x4743();}function _0x449d(_0x5f18ce,_0x185202){const _0x474371=_0x4743();return _0x449d=function(_0x449dec,_0x1f8a20){_0x449dec=_0x449dec-0x74;let _0x4c151d=_0x474371[_0x449dec];return _0x4c151d;},_0x449d(_0x5f18ce,_0x185202);}const e={'mcpStatus':{'disconnected':_0x58dde4(0x9c),'connecting':'MCP\x20Connecting...','connected':_0x58dde4(0xa1),'failed':_0x58dde4(0x8b),'retrying':_0x58dde4(0x8c),'unknown':_0x58dde4(0xa6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x58dde4(0x81),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x58dde4(0x7c),'clickToConnect':_0x58dde4(0x8e),'clickToConfigure':_0x58dde4(0x85)},'mcpConfig':{'title':_0x58dde4(0x7b),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x58dde4(0xa5),'apiKeyPlaceholder':_0x58dde4(0x8d),'apiKeyHint':_0x58dde4(0x92),'enableAuth':_0x58dde4(0x88),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x58dde4(0x7e),'configInstructions':_0x58dde4(0x78),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x58dde4(0x7f),'configStep2':_0x58dde4(0x76),'configStep3':_0x58dde4(0x90),'sessionId':_0x58dde4(0x93),'sessionIdDescription':_0x58dde4(0x83),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x58dde4(0x9b),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x58dde4(0x91),'note1':_0x58dde4(0x9e),'note2':_0x58dde4(0x87),'configSaved':_0x58dde4(0xa4),'configError':_0x58dde4(0x95),'apiApplyInfo':{'title':_0x58dde4(0x9f),'description':_0x58dde4(0xa2),'univerAiLabel':_0x58dde4(0x82),'getStarted':_0x58dde4(0x80)},'validation':{'apiKeyRequired':_0x58dde4(0x96),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x58dde4(0xa3),'invalidApiKey':_0x58dde4(0x86)},'connectionStatus':{'disconnected':_0x58dde4(0x8a),'connecting':_0x58dde4(0x98),'connected':_0x58dde4(0x75),'failed':'Connection\x20Failed','retrying':_0x58dde4(0x94)},'connectionError':{'unauthorized':_0x58dde4(0x8f),'sessionOccupied':_0x58dde4(0x74),'networkError':_0x58dde4(0xa0),'maxRetriesExceeded':_0x58dde4(0x7a)}}},n=e;export{n as default};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2f3b(_0x3a15a0,_0x320b34){var _0x456a53=_0x456a();return _0x2f3b=function(_0x2f3bf8,_0x6aa7dd){_0x2f3bf8=_0x2f3bf8-0x84;var _0x58c81e=_0x456a53[_0x2f3bf8];return _0x58c81e;},_0x2f3b(_0x3a15a0,_0x320b34);}function _0x456a(){var _0x3a51ac=['_initConfigSync','div','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','jsx','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Tooltip','IDialogService','OffLineIcon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_initAutoConnect','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_commandService','univer-flex\x20univer-items-center','prototype','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','mcpConfig.connectionStatus.retrying','Authorization:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_mcpConnectionController','https://console.univer.plus','univer-space-y-4','mcpConfig.validation.apiKeyTooShort','API\x20密钥','showDeveloperTools','MCP\x20客户端配置','clsx','_handleConfigure','merge','registerCommand','clipPath','Copy\x20the\x20JSON\x20configuration\x20below','mcpServerUrl','useObservable','2040EfQQQs','mcpConfig.sessionIdDescription','ILocalStorageService','defineProperty','2783jcnrnv','univer_session_id:','_dialogService','Univer\x20AI\x20控制台','getOwnPropertySymbols','UniverMCPUIPlugin','defIds','Plugin','Input','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','配置更改将立即生效','ILogService','pluginName','string','span','mcpStatus.maxRetriesExceeded','MCP\x20Retrying...','MCP_PLUGIN_CONFIG_KEY','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','重启您的\x20MCP\x20客户端以使配置生效','_messageService','ISocketService','MCP\x20Connected','配置步骤:','点击连接\x20MCP','Connected','NONE','MCP\x20配置','MCP:\x20会话\x20ID\x20已被占用','rxjs','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mask','apiKey','svg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-yellow-500','Click\x20to\x20configure\x20MCP','show','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.connected','attrs','translate(.97)','Connecting...','mcpConfig.apiApplyInfo.title','mcpConfig.connectionStatus.disconnected','bottom','useRef','_localStorageService','289017yUSWbn','univer.ai','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','\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-500','on-line-icon','mcp-ui.command.openConfigPanel','MCPUIMenuController','check-mark-icon','mcp-config-dialog','univer-text-white','IUIPartsService','BuiltInUIPart','MCPConnectionStatus','connectInjector','1em','_blank','MCP:\x20未授权','What\x20is\x20API\x20Key?','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer.plus','RibbonStartGroup','evenodd','mcpStatus.retrying','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcp.apiKey','复制以下\x20JSON\x20配置','Close','univer-flex-shrink-0\x20univer-text-red-500','mcpConfig.configStep1','noopener\x20noreferrer','超出最大重试次数,请稍后再试','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','未连接','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','_injector','map','includes','MCP_UI_PLUGIN','getConfig','什么是\x20API\x20密钥?','path','mcpConfig.connectionInfo','univer-text-xs\x20univer-text-gray-500','UniverIcon','重连中...','MCP:\x20超出最大重试次数','UNAUTHORIZED','_loading$','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','react/jsx-runtime','className','API\x20Key','text','react','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20Connecting...','url(#on-line-icon_clip0_910_349)','univer-min-w-0\x20univer-flex-1','会话\x20ID\x20已被占用,请稍后再试','Enter\x20your\x20API\x20key','__setCustomHeaders','use','jsxs','API\x20密钥不能为空','on-line-icon_clip0_910_349','current','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','white','mcpConfig.apiApplyInfo.univerAiLabel','IMenuManagerService','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20Disconnected','setConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','MCP\x20Client\x20Configuration','Retrying...','RETRYING','_initStatusComponent','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MenuIcon','error','WebSocketService','substring','function','Inject','SESSION_ID_OCCUPIED','5595540gCSdsN','mcpConfig.configParameters','colorChannel1','univer-text-green-500','mcpConfig.saving','COMMAND','sessionId$','univerjs-icon\x20univerjs-icon-','284cSyFNs','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Configuration\x20Steps:','几秒钟内获取您的\x20API\x20密钥','children','random','配置保存失败','@univerjs/ui','univer-flex\x20univer-items-center\x20univer-gap-2','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','启用身份验证以获得安全连接','MCPConfigUIController','close','FAILED','mcpStatus.networkError','MCP\x20连接中...','setItem','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','CONNECTED','将以下配置添加到您的\x20MCP\x20客户端设置中:','NETWORK_ERROR','add','连接失败','round','hasOwnProperty','_mcpCoreConfig$','BUTTON','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-space-y-3','最大重试次数','CONNECTING','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.apiKeyHint','_connectionController','MessageType','@univerjs/design','保存中...','mcpStatus.clickToConfigure','_apiKey$','univer-font-medium','615482mvYaND','MenuItemType','univer-bg-gray-500','exports','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','none','univer-bg-red-500','Disposable','mcpConfig.connectionStatus.connected','replace','56kAkkJv','mcpConfig.note2','HelpSingle','_configService','会话ID','连接中...','mcpConfig.connectionStatus.connecting','javascript:void(0)','indexOf','label','React','connectionError$','xlink:href','DependentOn','@univerjs-pro/mcp','close-small-single','Success','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-gray-400','extend','mcpConfig.note1','warn','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','fill','help-single','univer-text-sm\x20univer-font-medium','_componentManager','off-line-icon_clip0_910_343','register','toString','entries','length','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2442864RUyXth','DISCONNECTED','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.title','call','forEach','subscribeConfigValue$','您的\x20API\x20密钥将在此浏览器中本地存储','_logService','univer-text-red-500','mcpStatus.unauthorized','mcpConfig.configInstructions','showConfigPanel','_menuManagerService','网络连接错误,请检查您的网络连接','API\x20key\x20is\x20required','univer-text-xs\x20univer-text-gray-600','Click\x20to\x20connect\x20MCP','95139fvRIqG','MCP\x20已断开','off','_validateConfig','MAX_RETRIES_EXCEEDED','get','Button','_config','\x20-\x20','removeItem','M0\x200H16V16H0z','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','MCP\x20Configuration','isValid','MCPStatusDisplay','mcpConfig.configStep3','Failed\x20to\x20save\x20configuration','UniverCore','_localeService','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','zhCN','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-blue-600','_uiPartsService','url(#$1','currentColor','mcpConfig.validation.invalidConfig','MCP\x20Connection\x20Failed','defs','已连接','_config$','MCPConfigPanel','_initializeMenus','icon','_initializeCommands','value','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','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','pre','Session\x20ID','MCPConnectionUIController','off-line-icon','getCurrentConfig','onStarting','getOwnPropertyDescriptor','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpStatus.sessionOccupied','mcpConfig.apiApplyInfo.description','displayName','trim','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Injector','保存配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.connectionStatus.failed','mcpConfig.apiKeyPlaceholder','Configuration\x20Notes:','mcpStatus.disconnected','<API_KEY>','BehaviorSubject','配置保存成功','assign','Module','idSuffix','mcpStatus.connecting','mcpConfig.description','OnLineIcon','CloseSmallSingle','concat','MCPConnectionError','Max\x20Retries','IConfigService','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','push','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','CheckMarkIcon','mcpConfig.connectionError.networkError','useCallback','MCP\x20Unknown\x20Status','MCPConnectionController','tag','2110TwhVhh','univer-flex\x20univer-gap-3','MCP:\x20网络错误','forwardRef','univer-bg-blue-500','useDependency','univer-flex-1','next','univer-text-sm\x20univer-text-gray-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-space-y-2','LocaleService','univer-bg-green-500','M5.21243\x2012.287L11.8791\x205.62036','_registerComponent','4218WaCNJI','disposeWithMe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','validateApiKey','API\x20密钥无效,请检查密钥是否正确','_createConfigPanelComponent','_loadStoredApiKey','mcpConfig.configError','mcpStatus.failed','配置参数:','subscribe','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','ComponentManager','registerComponent','MCP:\x20Network\x20Error','mcpConfig.configSaved','0\x200\x2016\x2016','@univerjs/core','mcpStatus.clickToConnect','createElement','Save\x20Configuration','connectionStatus$','_handleConfigSave','http://www.w3.org/2000/svg'];_0x456a=function(){return _0x3a51ac;};return _0x456a();}(function(_0x589d63,_0x4ccb03){var _0xcfb00a=_0x2f3b,_0x3f2275=_0x589d63();while(!![]){try{var _0x2aeb62=-parseInt(_0xcfb00a(0x96))/0x1*(parseInt(_0xcfb00a(0x127))/0x2)+parseInt(_0xcfb00a(0x17d))/0x3+-parseInt(_0xcfb00a(0x11f))/0x4+-parseInt(_0xcfb00a(0x1e3))/0x5*(parseInt(_0xcfb00a(0x1f2))/0x6)+parseInt(_0xcfb00a(0x152))/0x7+-parseInt(_0xcfb00a(0x15c))/0x8*(-parseInt(_0xcfb00a(0xc7))/0x9)+-parseInt(_0xcfb00a(0x92))/0xa*(-parseInt(_0xcfb00a(0x18f))/0xb);if(_0x2aeb62===_0x4ccb03)break;else _0x3f2275['push'](_0x3f2275['shift']());}catch(_0x4b1e11){_0x3f2275['push'](_0x3f2275['shift']());}}}(_0x456a,0xc3798),function(_0x1dea45,_0x2a0171){var _0x130762=_0x2f3b;typeof exports=='object'&&typeof module<'u'?_0x2a0171(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==_0x130762(0x11c)&&define['amd']?define([_0x130762(0x155),_0x130762(0x205),_0x130762(0xf9),_0x130762(0x16a),_0x130762(0x14d),_0x130762(0x12e),_0x130762(0xb3),_0x130762(0xfd),'@univerjs/network'],_0x2a0171):(_0x1dea45=typeof globalThis<'u'?globalThis:_0x1dea45||self,_0x2a0171(_0x1dea45['UniverProMcpUi']={},_0x1dea45[_0x130762(0x1a1)],_0x1dea45[_0x130762(0x166)],_0x1dea45['UniverProMcp'],_0x1dea45['UniverDesign'],_0x1dea45['UniverUi'],_0x1dea45[_0x130762(0xb3)],_0x1dea45[_0x130762(0x166)],_0x1dea45['UniverNetwork']));}(this,function(_0x2f44b2,_0x2d2b72,_0x5894a5,_0x497ef3,_0x2b0681,_0x447b69,_0x3fbafd,_0x59d82d,_0x50e67a){'use strict';var _0x37b30b=_0x2f3b;var _0x7952c6=Object[_0x37b30b(0x95)],_0x35ec7b=(_0x19b828,_0x9efd9f,_0x3b7e0e)=>_0x9efd9f in _0x19b828?_0x7952c6(_0x19b828,_0x9efd9f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b7e0e}):_0x19b828[_0x9efd9f]=_0x3b7e0e,_0x1ab7a2=(_0x329c19,_0x5329e4,_0x133405)=>_0x35ec7b(_0x329c19,typeof _0x5329e4!='symbol'?_0x5329e4+'':_0x5329e4,_0x133405),_0x5a5c27=function(){var _0x41a68f=_0x37b30b;return _0x5a5c27=Object[_0x41a68f(0x1cf)]||function(_0x1ef48b){var _0x42beb6=_0x41a68f;for(var _0x24eff5,_0x308d5f=0x1,_0x4bc15b=arguments[_0x42beb6(0x17b)];_0x308d5f<_0x4bc15b;_0x308d5f++){_0x24eff5=arguments[_0x308d5f];for(var _0x57e058 in _0x24eff5)Object[_0x42beb6(0x219)][_0x42beb6(0x13f)][_0x42beb6(0x181)](_0x24eff5,_0x57e058)&&(_0x1ef48b[_0x57e058]=_0x24eff5[_0x57e058]);}return _0x1ef48b;},_0x5a5c27['apply'](this,arguments);},_0x20265a=function(_0x286552,_0x503f43){var _0x3c5bc5=_0x37b30b,_0x663f2d={};for(var _0x2351b3 in _0x286552)Object[_0x3c5bc5(0x219)][_0x3c5bc5(0x13f)]['call'](_0x286552,_0x2351b3)&&_0x503f43[_0x3c5bc5(0x164)](_0x2351b3)<0x0&&(_0x663f2d[_0x2351b3]=_0x286552[_0x2351b3]);if(_0x286552!=null&&typeof Object[_0x3c5bc5(0x9a)]=='function'){for(var _0x1bbeac=0x0,_0x2351b3=Object['getOwnPropertySymbols'](_0x286552);_0x1bbeac<_0x2351b3[_0x3c5bc5(0x17b)];_0x1bbeac++)_0x503f43[_0x3c5bc5(0x164)](_0x2351b3[_0x1bbeac])<0x0&&Object[_0x3c5bc5(0x219)]['propertyIsEnumerable']['call'](_0x286552,_0x2351b3[_0x1bbeac])&&(_0x663f2d[_0x2351b3[_0x1bbeac]]=_0x286552[_0x2351b3[_0x1bbeac]]);}return _0x663f2d;},_0x334dd2=_0x59d82d[_0x37b30b(0x1e6)](function(_0x46e63c,_0x10fdac){var _0x2e07d7=_0x37b30b,_0x5ead30=_0x46e63c[_0x2e07d7(0x1b1)],_0x316834=_0x46e63c['id'],_0x2071c0=_0x46e63c['className'],_0x4c494f=_0x46e63c[_0x2e07d7(0x16f)],_0x23763b=_0x20265a(_0x46e63c,[_0x2e07d7(0x1b1),'id',_0x2e07d7(0xfa),_0x2e07d7(0x16f)]),_0x255e10=_0x2e07d7(0x126)[_0x2e07d7(0x1d6)](_0x316834,'\x20')['concat'](_0x2071c0||'')[_0x2e07d7(0x1c3)](),_0x449f5f=_0x59d82d[_0x2e07d7(0xc5)]('_'[_0x2e07d7(0x1d6)](_0x151fb7()));return _0x15a245(_0x5ead30,''[_0x2e07d7(0x1d6)](_0x316834),{'defIds':_0x5ead30[_0x2e07d7(0x9c)],'idSuffix':_0x449f5f[_0x2e07d7(0x109)]},_0x5a5c27({'ref':_0x10fdac,'className':_0x255e10},_0x23763b),_0x4c494f);});function _0x15a245(_0x3c7249,_0x24fb21,_0x33b45f,_0x14cd4f,_0x21e96e){var _0x6bc91d=_0x37b30b;return _0x59d82d[_0x6bc91d(0x207)](_0x3c7249[_0x6bc91d(0x1e2)],_0x5a5c27(_0x5a5c27({'key':_0x24fb21},_0x5d4e3d(_0x3c7249,_0x33b45f,_0x21e96e)),_0x14cd4f),(_0xbdcd80(_0x3c7249,_0x33b45f)[_0x6bc91d(0x12b)]||[])[_0x6bc91d(0xeb)](function(_0x27e0c7,_0x9c489){var _0x281232=_0x6bc91d;return _0x15a245(_0x27e0c7,''[_0x281232(0x1d6)](_0x24fb21,'-')[_0x281232(0x1d6)](_0x3c7249[_0x281232(0x1e2)],'-')['concat'](_0x9c489),_0x33b45f,void 0x0,_0x21e96e);}));}function _0x5d4e3d(_0x1d1bbe,_0x21a7ed,_0x77ba4c){var _0x330409=_0x37b30b,_0x595db7=_0x5a5c27({},_0x1d1bbe[_0x330409(0xbf)]);_0x77ba4c!=null&&_0x77ba4c[_0x330409(0x121)]&&_0x595db7[_0x330409(0x173)]==='colorChannel1'&&(_0x595db7[_0x330409(0x173)]=_0x77ba4c[_0x330409(0x121)]),_0x1d1bbe['tag']===_0x330409(0xb5)&&_0x595db7['id']&&(_0x595db7['id']=_0x595db7['id']+_0x21a7ed[_0x330409(0x1d1)]),Object['entries'](_0x595db7)[_0x330409(0x182)](function(_0x127ba0){var _0x4e0ce9=_0x330409,_0x238d63=_0x127ba0[0x0],_0x1c3dd7=_0x127ba0[0x1];_0x238d63==='mask'&&typeof _0x1c3dd7==_0x4e0ce9(0xa3)&&(_0x595db7[_0x238d63]=_0x1c3dd7[_0x4e0ce9(0x15b)](/url\(#(.*)\)/,_0x4e0ce9(0x1a8)['concat'](_0x21a7ed['idSuffix'],')')));});var _0x4f8d28=_0x21a7ed[_0x330409(0x9c)];return!_0x4f8d28||_0x4f8d28[_0x330409(0x17b)]===0x0||(_0x1d1bbe['tag']===_0x330409(0x105)&&_0x595db7[_0x330409(0x168)]&&(_0x595db7[_0x330409(0x168)]=_0x595db7['xlink:href']+_0x21a7ed[_0x330409(0x1d1)]),Object[_0x330409(0x17a)](_0x595db7)[_0x330409(0x182)](function(_0x119075){var _0xed13bf=_0x330409,_0x5e8245=_0x119075[0x0],_0x4b9341=_0x119075[0x1];typeof _0x4b9341==_0xed13bf(0xa3)&&(_0x595db7[_0x5e8245]=_0x4b9341['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x21a7ed[_0xed13bf(0x1d1)],')')));})),_0x595db7;}function _0xbdcd80(_0x4b240b,_0x3ada77){var _0x1b0321=_0x37b30b,_0x13fe3f,_0x4c7974=_0x3ada77['defIds'];return!_0x4c7974||_0x4c7974[_0x1b0321(0x17b)]===0x0?_0x4b240b:_0x4b240b[_0x1b0321(0x1e2)]===_0x1b0321(0x1ac)&&(!((_0x13fe3f=_0x4b240b[_0x1b0321(0x12b)])===null||_0x13fe3f===void 0x0)&&_0x13fe3f[_0x1b0321(0x17b)])?_0x5a5c27(_0x5a5c27({},_0x4b240b),{'children':_0x4b240b['children'][_0x1b0321(0xeb)](function(_0x3cd5d1){var _0x5ac300=_0x1b0321;return typeof _0x3cd5d1[_0x5ac300(0xbf)]['id']==_0x5ac300(0xa3)&&_0x4c7974&&_0x4c7974['includes'](_0x3cd5d1[_0x5ac300(0xbf)]['id'])?_0x5a5c27(_0x5a5c27({},_0x3cd5d1),{'attrs':_0x5a5c27(_0x5a5c27({},_0x3cd5d1['attrs']),{'id':_0x3cd5d1[_0x5ac300(0xbf)]['id']+_0x3ada77[_0x5ac300(0x1d1)]})}):_0x3cd5d1;})}):_0x4b240b;}function _0x151fb7(){var _0x1890d9=_0x37b30b;return Math[_0x1890d9(0x12c)]()[_0x1890d9(0x179)](0x24)[_0x1890d9(0x11b)](0x2,0x8);}_0x334dd2[_0x37b30b(0x1c2)]=_0x37b30b(0xf3);var _0x46e8eb={'tag':_0x37b30b(0xb7),'attrs':{'xmlns':_0x37b30b(0x20b),'fill':'none','viewBox':_0x37b30b(0x204),'width':'1em','height':_0x37b30b(0xd6)},'children':[{'tag':_0x37b30b(0xf0),'attrs':{'fill':_0x37b30b(0x1a9),'d':_0x37b30b(0x1a3),'fillRule':'evenodd','clipRule':_0x37b30b(0xdd)}}]},_0x3d272a=_0x59d82d['forwardRef'](function(_0x39d783,_0x38a8ec){var _0x32fa31=_0x37b30b;return _0x59d82d['createElement'](_0x334dd2,Object[_0x32fa31(0x1cf)]({},_0x39d783,{'id':_0x32fa31(0xcf),'ref':_0x38a8ec,'icon':_0x46e8eb}));});_0x3d272a['displayName']=_0x37b30b(0x1dd);var _0x2631d6={'tag':_0x37b30b(0xb7),'attrs':{'xmlns':_0x37b30b(0x20b),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x37b30b(0xd6),'height':_0x37b30b(0xd6)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':'currentColor','d':_0x37b30b(0x1f0),'strokeLinecap':'round','strokeLinejoin':_0x37b30b(0x13e),'strokeWidth':1.33}}]},_0x24d4e9=_0x59d82d['forwardRef'](function(_0x637391,_0x42b71d){var _0x1dd301=_0x37b30b;return _0x59d82d[_0x1dd301(0x207)](_0x334dd2,Object[_0x1dd301(0x1cf)]({},_0x637391,{'id':_0x1dd301(0x16b),'ref':_0x42b71d,'icon':_0x2631d6}));});_0x24d4e9['displayName']=_0x37b30b(0x1d5);var _0x3bcdeb={'tag':'svg','attrs':{'xmlns':_0x37b30b(0x20b),'fill':_0x37b30b(0x157),'viewBox':'0\x200\x2016\x2016','width':_0x37b30b(0xd6),'height':_0x37b30b(0xd6)},'children':[{'tag':_0x37b30b(0xf0),'attrs':{'fill':_0x37b30b(0x1a9),'d':_0x37b30b(0x112)}},{'tag':_0x37b30b(0xf0),'attrs':{'fill':'currentColor','d':_0x37b30b(0x1dc)}},{'tag':_0x37b30b(0xf0),'attrs':{'fill':_0x37b30b(0x1a9),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x37b30b(0xdd)}}]},_0x21bdb0=_0x59d82d['forwardRef'](function(_0x42cae5,_0x9730ae){var _0x39df99=_0x37b30b;return _0x59d82d[_0x39df99(0x207)](_0x334dd2,Object[_0x39df99(0x1cf)]({},_0x42cae5,{'id':_0x39df99(0x174),'ref':_0x9730ae,'icon':_0x3bcdeb}));});_0x21bdb0[_0x37b30b(0x1c2)]=_0x37b30b(0x15e);var _0x3e995f={'tag':_0x37b30b(0xb7),'attrs':{'xmlns':_0x37b30b(0x20b),'fill':_0x37b30b(0x157),'viewBox':_0x37b30b(0x204),'width':_0x37b30b(0xd6),'height':_0x37b30b(0xd6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x37b30b(0xf0),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x37b30b(0x1ac),'attrs':{},'children':[{'tag':_0x37b30b(0x8e),'attrs':{'id':_0x37b30b(0x177)},'children':[{'tag':_0x37b30b(0xf0),'attrs':{'fill':_0x37b30b(0x10b),'d':_0x37b30b(0x199)}}]}]}],'defIds':[_0x37b30b(0x177)]},_0x111bd=_0x59d82d[_0x37b30b(0x1e6)](function(_0x19fbdf,_0x5acade){var _0x573cff=_0x37b30b;return _0x59d82d[_0x573cff(0x207)](_0x334dd2,Object['assign']({},_0x19fbdf,{'id':_0x573cff(0x1bb),'ref':_0x5acade,'icon':_0x3e995f}));});_0x111bd['displayName']=_0x37b30b(0x213);var _0x195931={'tag':_0x37b30b(0xb7),'attrs':{'xmlns':_0x37b30b(0x20b),'fill':_0x37b30b(0x157),'viewBox':'0\x200\x2017\x2016','width':_0x37b30b(0xd6),'height':_0x37b30b(0xd6)},'children':[{'tag':'g','attrs':{'clipPath':_0x37b30b(0x100)},'children':[{'tag':_0x37b30b(0xf0),'attrs':{'stroke':_0x37b30b(0x1a9),'d':_0x37b30b(0xf8),'strokeLinecap':_0x37b30b(0x13e),'strokeLinejoin':_0x37b30b(0x13e),'strokeWidth':1.2}}]},{'tag':_0x37b30b(0x1ac),'attrs':{},'children':[{'tag':_0x37b30b(0x8e),'attrs':{'id':_0x37b30b(0x108)},'children':[{'tag':_0x37b30b(0xf0),'attrs':{'fill':_0x37b30b(0x10b),'d':_0x37b30b(0x199),'transform':_0x37b30b(0xc0)}}]}]}],'defIds':[_0x37b30b(0x108)]},_0x2646fa=_0x59d82d[_0x37b30b(0x1e6)](function(_0x11f011,_0x29a1fd){var _0x2fc38e=_0x37b30b;return _0x59d82d[_0x2fc38e(0x207)](_0x334dd2,Object[_0x2fc38e(0x1cf)]({},_0x11f011,{'id':_0x2fc38e(0xcc),'ref':_0x29a1fd,'icon':_0x195931}));});_0x2646fa['displayName']=_0x37b30b(0x1d4);function _0xea54ac(_0x60d71f){var _0x2d76ae=_0x37b30b,_0x5a66dc,_0x526bfc;const {mcpCoreConfig:_0x1c294f,onSave:_0x3be38b,loading:_0x5bfa0a=!0x1,config:_0x2b71fa,connectionStatus$:_0x105341,connectionError$:_0x3f8d70,currentApiKey$:_0x4810d9,currentSessionId$:_0x575722}=_0x60d71f,_0x5251aa=_0x447b69[_0x2d76ae(0x1e8)](_0x2d2b72[_0x2d76ae(0x1ee)]),_0x326b4b=_0x447b69[_0x2d76ae(0x91)](_0x105341,_0x497ef3[_0x2d76ae(0xd4)][_0x2d76ae(0x17e)]),_0x215b15=_0x447b69[_0x2d76ae(0x91)](_0x3f8d70,_0x497ef3[_0x2d76ae(0x1d7)][_0x2d76ae(0xb0)]),_0x10e126=_0x447b69[_0x2d76ae(0x91)](_0x575722,''),_0x45d332=_0x447b69['useObservable'](_0x4810d9,''),[_0x58e097,_0x56ff54]=_0x59d82d['useState'](_0x45d332||''),_0x552082=!0x0,_0x342802=_0x2b71fa['showDeveloperTools']&&_0x1c294f[_0x2d76ae(0x90)]&&(_0x1c294f[_0x2d76ae(0x90)][_0x2d76ae(0xec)](_0x2d76ae(0xdb))||_0x1c294f['mcpServerUrl'][_0x2d76ae(0xec)](_0x2d76ae(0xc8))),_0x5ec463=(_0x5a66dc=_0x1c294f[_0x2d76ae(0x90)])==null?void 0x0:_0x5a66dc[_0x2d76ae(0xec)]('univer.plus'),_0x18aed6=(_0x526bfc=_0x1c294f[_0x2d76ae(0x90)])==null?void 0x0:_0x526bfc[_0x2d76ae(0xec)](_0x2d76ae(0xc8)),_0x38ec14=_0x5ec463?_0x2d76ae(0x84):'https://console.univer.ai',_0x4f6d00=_0x2b71fa[_0x2d76ae(0x88)]&&(_0x5ec463||_0x18aed6),[_0xc27f77,_0x7f067c]=_0x59d82d['useState'](!_0x58e097['trim']()),_0xcdd6e7=(_0x97eea8,_0x1e9d8f)=>{var _0x4466b0=_0x2d76ae;if(_0x1e9d8f===_0x497ef3[_0x4466b0(0x1d7)][_0x4466b0(0xf6)])return _0x4466b0(0x111);switch(_0x97eea8){case _0x497ef3[_0x4466b0(0xd4)][_0x4466b0(0x139)]:return _0x4466b0(0x142);case _0x497ef3[_0x4466b0(0xd4)][_0x4466b0(0x146)]:case _0x497ef3[_0x4466b0(0xd4)][_0x4466b0(0x115)]:return _0x4466b0(0x1b5);case _0x497ef3['MCPConnectionStatus'][_0x4466b0(0x134)]:return _0x4466b0(0x111);default:return _0x4466b0(0x148);}},_0x34da55=(_0x239b71,_0x7e744c)=>{var _0x35b38f=_0x2d76ae;if(_0x7e744c===_0x497ef3[_0x35b38f(0x1d7)]['UNAUTHORIZED'])return _0x35b38f(0x158);switch(_0x239b71){case _0x497ef3['MCPConnectionStatus'][_0x35b38f(0x139)]:return _0x35b38f(0x1ef);case _0x497ef3[_0x35b38f(0xd4)][_0x35b38f(0x146)]:case _0x497ef3[_0x35b38f(0xd4)][_0x35b38f(0x115)]:return _0x35b38f(0x1e7);case _0x497ef3['MCPConnectionStatus'][_0x35b38f(0x134)]:return _0x35b38f(0x158);default:return _0x35b38f(0x154);}},_0x397eaa=_0x39e4a2=>{var _0x5349da=_0x2d76ae;switch(_0x39e4a2){case _0x497ef3['MCPConnectionStatus'][_0x5349da(0x139)]:return _0x5251aa['t'](_0x5349da(0x15a));case _0x497ef3[_0x5349da(0xd4)][_0x5349da(0x146)]:return _0x5251aa['t'](_0x5349da(0x162));case _0x497ef3[_0x5349da(0xd4)][_0x5349da(0x134)]:return _0x5251aa['t'](_0x5349da(0x1c8));case _0x497ef3[_0x5349da(0xd4)][_0x5349da(0x115)]:return _0x5251aa['t'](_0x5349da(0x21b));default:return _0x5251aa['t'](_0x5349da(0xc3));}},_0x43c419=_0x530e41=>{var _0x2290e6=_0x2d76ae;switch(_0x530e41){case _0x497ef3[_0x2290e6(0x1d7)]['UNAUTHORIZED']:return _0x5251aa['t']('mcpConfig.connectionError.unauthorized');case _0x497ef3['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x5251aa['t']('mcpConfig.connectionError.sessionOccupied');case _0x497ef3['MCPConnectionError']['NETWORK_ERROR']:return _0x5251aa['t'](_0x2290e6(0x1de));case _0x497ef3[_0x2290e6(0x1d7)][_0x2290e6(0x193)]:return _0x5251aa['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x5e40a8=_0x59d82d[_0x2d76ae(0x1df)](()=>{var _0x4fa2ad=_0x2d76ae;const _0x5d303e={..._0x1c294f,'apiKey':_0x58e097[_0x4fa2ad(0x1c3)](),'enableAuth':_0x552082};_0x3be38b(_0x5d303e);},[_0x1c294f,_0x58e097,_0x552082,_0x3be38b]),_0x53ccf1=_0x58e097[_0x2d76ae(0x1c3)]()[_0x2d76ae(0x17b)]>0x0;return _0x5894a5['jsxs'](_0x2d76ae(0x20d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xda),'children':_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xfe),'children':[_0x5894a5[_0x2d76ae(0x20f)]('div',{'className':_0x2d76ae(0x10e),'children':_0x5894a5['jsx'](_0x2d76ae(0xa4),{'className':_0x2d76ae(0xd1),'children':'⚙'})}),_0x5894a5[_0x2d76ae(0x20f)]('div',{'children':_0x5894a5[_0x2d76ae(0x20f)]('p',{'className':_0x2d76ae(0x1eb),'children':_0x5251aa['t'](_0x2d76ae(0x1d3))})})]})}),_0x5894a5[_0x2d76ae(0x106)]('div',{'className':_0x2d76ae(0x156),'children':[_0x5894a5[_0x2d76ae(0x20f)]('div',{'className':_0x2d76ae(0x1f4)+_0xcdd6e7(_0x326b4b,_0x215b15)+_0x2d76ae(0x17c),'children':_0x5894a5[_0x2d76ae(0x106)]('div',{'className':_0x2d76ae(0x12f),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34da55(_0x326b4b,_0x215b15)+_0x2d76ae(0x214)}),_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'className':_0x2d76ae(0x175),'children':_0x397eaa(_0x326b4b)})]})}),_0x215b15!==_0x497ef3[_0x2d76ae(0x1d7)]['NONE']&&(_0x326b4b===_0x497ef3[_0x2d76ae(0xd4)]['FAILED']||_0x215b15===_0x497ef3[_0x2d76ae(0x1d7)][_0x2d76ae(0xf6)])&&_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x149),'children':_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x147),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'className':_0x2d76ae(0xe3),'children':'⚠️'}),_0x5894a5['jsx']('p',{'className':_0x2d76ae(0x1ec),'children':_0x43c419(_0x215b15)})]})})]}),_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':'univer-space-y-5','children':[_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x1ed),'children':[_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x165),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'children':'🔑'}),'\x20',_0x5251aa['t']('mcpConfig.apiKey'),_0x5894a5['jsx'](_0x2d76ae(0xa4),{'className':_0x2d76ae(0x186),'children':'*'}),_0x342802&&_0x5894a5['jsx']('a',{'href':'javascript:void(0)','onClick':()=>_0x7f067c(!0x0),'className':_0x2d76ae(0x19a),'title':_0x5251aa['t'](_0x2d76ae(0xc2)),'children':_0x5894a5[_0x2d76ae(0x20f)](_0x21bdb0,{})})]}),_0x5894a5[_0x2d76ae(0x20f)](_0x2b0681[_0x2d76ae(0x9e)],{'type':_0x2d76ae(0xfc),'placeholder':_0x5251aa['t'](_0x2d76ae(0x1c9)),'value':_0x58e097,'onChange':_0x56ff54,'disabled':_0x5bfa0a,'autoComplete':_0x2d76ae(0x191)}),_0x5894a5[_0x2d76ae(0x20f)]('p',{'className':_0x2d76ae(0xf2),'children':_0x5251aa['t'](_0x2d76ae(0x14a))})]}),_0x342802&&_0xc27f77&&_0x5894a5['jsxs'](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x130),'children':[_0x5894a5[_0x2d76ae(0x20f)]('a',{'href':_0x2d76ae(0x163),'onClick':()=>_0x7f067c(!0x1),'className':_0x2d76ae(0x216),'title':_0x2d76ae(0xe2),'children':_0x5894a5[_0x2d76ae(0x20f)](_0x24d4e9,{})}),_0x5894a5['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x5894a5['jsx']('div',{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x5894a5[_0x2d76ae(0x20f)]('span',{'className':_0x2d76ae(0x1a6),'children':'🚀'})}),_0x5894a5['jsxs']('div',{'className':_0x2d76ae(0x1e9),'children':[_0x5894a5[_0x2d76ae(0x20f)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x5251aa['t']('mcpConfig.apiApplyInfo.title')}),_0x5894a5[_0x2d76ae(0x20f)]('p',{'className':_0x2d76ae(0x19b),'children':_0x5251aa['t'](_0x2d76ae(0x1c1))}),_0x5894a5[_0x2d76ae(0x20f)]('div',{'className':_0x2d76ae(0xbd),'children':_0x4f6d00&&_0x5894a5[_0x2d76ae(0x106)]('a',{'href':_0x38ec14,'target':_0x2d76ae(0xd7),'rel':_0x2d76ae(0xe5),'className':_0x2d76ae(0x1b4),'children':[_0x5894a5[_0x2d76ae(0x20f)]('span',{'children':'🤖'}),_0x5251aa['t'](_0x2d76ae(0x10c)),_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'className':_0x2d76ae(0x16e),'children':'↗'})]})}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x17f),'children':['✨','\x20',_0x5251aa['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x2b71fa[_0x2d76ae(0x88)]&&_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xa8),'children':[_0x5894a5[_0x2d76ae(0x106)]('h4',{'className':_0x2d76ae(0x1bf),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'children':'🔗'}),'\x20',_0x5251aa['t'](_0x2d76ae(0xf1))]}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x85),'children':[_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':'univer-space-y-3','children':[_0x5894a5[_0x2d76ae(0x20f)]('p',{'className':_0x2d76ae(0x18d),'children':_0x5251aa['t'](_0x2d76ae(0x188))}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x1ed),'children':[_0x5894a5['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5251aa['t']('mcpConfig.configStepTitle')}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x1a5),'children':[_0x5894a5[_0x2d76ae(0x106)]('div',{'className':_0x2d76ae(0x12f),'children':[_0x5894a5['jsx']('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x5251aa['t'](_0x2d76ae(0xe4))]}),_0x5894a5['jsxs'](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x12f),'children':[_0x5894a5['jsx'](_0x2d76ae(0xa4),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x5251aa['t']('mcpConfig.configStep2')]}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x12f),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x5251aa['t'](_0x2d76ae(0x19f))]})]})]})]}),_0x5894a5[_0x2d76ae(0x106)]('div',{'className':_0x2d76ae(0x1ed),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xe7),'children':_0x2d76ae(0x19c)}),_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x1b8),{'className':_0x2d76ae(0x9f),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x10e126+_0x2d76ae(0x21a)+(_0x58e097||_0x2d76ae(0x1cc))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x144),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xe7),'children':_0x5251aa['t'](_0x2d76ae(0x120))}),_0x5894a5['jsxs'](_0x2d76ae(0x20d),{'className':'univer-space-y-2','children':[_0x5894a5[_0x2d76ae(0x106)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xb4)}),_0x5894a5[_0x2d76ae(0x106)]('div',{'className':_0x2d76ae(0x101),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2d76ae(0x97)}),_0x5894a5['jsx'](_0x2d76ae(0x20d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5251aa['t'](_0x2d76ae(0x93))})]})]}),_0x5894a5['jsxs'](_0x2d76ae(0x20d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5894a5['jsx'](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xb4)}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x101),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x138),'children':_0x2d76ae(0x21c)}),_0x5894a5['jsx'](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xf2),'children':_0x5251aa['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x5894a5[_0x2d76ae(0x20f)](_0x2b0681[_0x2d76ae(0x195)],{'onClick':_0x5e40a8,'disabled':!_0x53ccf1||_0x5bfa0a,'className':_0x2d76ae(0xe9),'children':_0x5bfa0a?_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0xa4),{'className':_0x2d76ae(0x12f),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'children':'⟲'}),_0x5251aa['t'](_0x2d76ae(0x123))]}):_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0xa4),{'className':_0x2d76ae(0x12f),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x3d272a,{}),_0x5251aa['t']('mcpConfig.save')]})}),_0x5894a5[_0x2d76ae(0x20f)]('div',{'className':_0x2d76ae(0x128),'children':_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0x1e4),'children':[_0x5894a5[_0x2d76ae(0x20f)](_0x2d76ae(0xa4),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'className':_0x2d76ae(0xc9),'children':[_0x5894a5[_0x2d76ae(0x20f)]('div',{'className':_0x2d76ae(0x151),'children':_0x2d76ae(0x1ca)}),_0x5894a5[_0x2d76ae(0x106)](_0x2d76ae(0x20d),{'children':['•',_0x5251aa['t'](_0x2d76ae(0x170))]}),_0x5894a5[_0x2d76ae(0x106)]('div',{'children':['•',_0x5251aa['t'](_0x2d76ae(0x15d))]})]})]})})]})})]});}const _0x2d0a08='mcp-ui.config',_0x22f26d={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x5814ee=Object[_0x37b30b(0x1be)],_0x30bec7=(_0x115fd4,_0x506217,_0x2e6f90,_0x5f07d9)=>{for(var _0x3e4061=_0x5f07d9>0x1?void 0x0:_0x5f07d9?_0x5814ee(_0x506217,_0x2e6f90):_0x506217,_0x2095ef=_0x115fd4['length']-0x1,_0x564a3f;_0x2095ef>=0x0;_0x2095ef--)(_0x564a3f=_0x115fd4[_0x2095ef])&&(_0x3e4061=_0x564a3f(_0x3e4061)||_0x3e4061);return _0x3e4061;},_0xb1b7fd=(_0x229632,_0x2f4978)=>(_0x5d0fd8,_0x4dde86)=>_0x2f4978(_0x5d0fd8,_0x4dde86,_0x229632);const _0x470a14=_0x37b30b(0xe0),_0x1458e2=_0x37b30b(0xd0);_0x2f44b2[_0x37b30b(0x132)]=class extends _0x2d2b72[_0x37b30b(0x159)]{constructor(_0xb10095,_0x10f40c,_0x467dff,_0x2d9da9,_0x23a79a,_0x3d258d,_0x4508e4,_0x1b02d0,_0x56e614,_0x2500d3){var _0x2a8b06=_0x37b30b;super(),_0x1ab7a2(this,'_loading$',new _0x3fbafd[(_0x2a8b06(0x1cd))](!0x1)),_0x1ab7a2(this,_0x2a8b06(0x140),new _0x3fbafd[(_0x2a8b06(0x1cd))]({})),_0x1ab7a2(this,_0x2a8b06(0x1ae),new _0x3fbafd[(_0x2a8b06(0x1cd))]({})),_0x1ab7a2(this,'_apiKey$',new _0x3fbafd[(_0x2a8b06(0x1cd))]('')),_0x1ab7a2(this,_0x2a8b06(0x20a),async _0x517fd7=>{var _0x25b75b=_0x2a8b06,_0xa5489d,_0x4e2e36;this[_0x25b75b(0xf7)][_0x25b75b(0x1ea)](!0x0);try{const _0x1f11d4=await this[_0x25b75b(0x192)](_0x517fd7);if(!_0x1f11d4[_0x25b75b(0x19d)]){this[_0x25b75b(0xaa)]['show']({'type':_0x2b0681[_0x25b75b(0x14c)]['Error'],'content':_0x1f11d4['errorMessage']||this[_0x25b75b(0x1a2)]['t'](_0x25b75b(0x1aa))});return;}_0x517fd7[_0x25b75b(0xb6)]?await this[_0x25b75b(0xc6)][_0x25b75b(0x137)](_0x470a14,_0x517fd7[_0x25b75b(0xb6)][_0x25b75b(0x1c3)]()):await this['_localStorageService'][_0x25b75b(0x198)](_0x470a14),this['_apiKey$'][_0x25b75b(0x1ea)](((_0xa5489d=_0x517fd7[_0x25b75b(0xb6)])==null?void 0x0:_0xa5489d[_0x25b75b(0x1c3)]())||''),this[_0x25b75b(0x21e)][_0x25b75b(0x104)]({'Authorization':'Bearer\x20'+((_0x4e2e36=_0x517fd7[_0x25b75b(0xb6)])==null?void 0x0:_0x4e2e36[_0x25b75b(0x1c3)]())}),this[_0x25b75b(0xaa)]['show']({'type':_0x2b0681['MessageType'][_0x25b75b(0x16c)],'content':this[_0x25b75b(0x1a2)]['t'](_0x25b75b(0x203))}),setTimeout(()=>{var _0x16eb1d=_0x25b75b;this[_0x16eb1d(0x98)][_0x16eb1d(0x133)](_0x1458e2);},0x320);}catch(_0xf33c37){this[_0x25b75b(0x185)][_0x25b75b(0x119)](_0x25b75b(0x172),_0xf33c37),this[_0x25b75b(0xaa)][_0x25b75b(0xbb)]({'type':_0x2b0681[_0x25b75b(0x14c)]['Error'],'content':this[_0x25b75b(0x1a2)]['t'](_0x25b75b(0x1f9))});}finally{this[_0x25b75b(0xf7)][_0x25b75b(0x1ea)](!0x1);}}),(this['_injector']=_0xb10095,this[_0x2a8b06(0x1a7)]=_0x10f40c,this[_0x2a8b06(0x15f)]=_0x467dff,this[_0x2a8b06(0xc6)]=_0x2d9da9,this['_dialogService']=_0x23a79a,this[_0x2a8b06(0xaa)]=_0x3d258d,this[_0x2a8b06(0x176)]=_0x4508e4,this[_0x2a8b06(0x1a2)]=_0x1b02d0,this[_0x2a8b06(0x185)]=_0x56e614,this[_0x2a8b06(0x21e)]=_0x2500d3,this['_initConfigSync'](),this[_0x2a8b06(0x1f8)](),this[_0x2a8b06(0x1f1)]());}[_0x37b30b(0x189)](){var _0x3293f7=_0x37b30b;const _0x2811d2=this[_0x3293f7(0x15f)][_0x3293f7(0xee)](_0x2d0a08);_0x2811d2!=null&&_0x2811d2[_0x3293f7(0x88)]&&this[_0x3293f7(0x98)]['open']({'id':_0x1458e2,'title':{'title':this['_localeService']['t'](_0x3293f7(0x180))},'children':{'label':_0x3293f7(0x1af)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x436a6a=_0x3293f7;this[_0x436a6a(0x98)][_0x436a6a(0x133)](_0x1458e2);}});}[_0x37b30b(0x1bc)](){var _0x50fecb=_0x37b30b;return this[_0x50fecb(0x140)][_0x50fecb(0x1b3)];}[_0x37b30b(0x1f1)](){var _0x48c136=_0x37b30b;this[_0x48c136(0x1f3)](this[_0x48c136(0x176)][_0x48c136(0x178)](_0x48c136(0x1af),this['_createConfigPanelComponent']()));}[_0x37b30b(0x1f7)](){var _0x371682=_0x37b30b;return _0x447b69[_0x371682(0xd5)](()=>{var _0x4d4896=_0x371682,_0x458777,_0x3dce33,_0x32242d;return _0x5894a5[_0x4d4896(0x20f)](_0xea54ac,{'config':this[_0x4d4896(0x1ae)][_0x4d4896(0x1b3)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x4d4896(0x1b3)],'currentApiKey$':this[_0x4d4896(0x150)],'onSave':this['_handleConfigSave'],'loading':this[_0x4d4896(0xf7)][_0x4d4896(0x1b3)],'connectionStatus$':(_0x458777=this[_0x4d4896(0x21e)])==null?void 0x0:_0x458777[_0x4d4896(0x209)],'connectionError$':(_0x3dce33=this[_0x4d4896(0x21e)])==null?void 0x0:_0x3dce33[_0x4d4896(0x167)],'currentSessionId$':(_0x32242d=this[_0x4d4896(0x21e)])==null?void 0x0:_0x32242d[_0x4d4896(0x125)]});},this[_0x371682(0xea)]);}[_0x37b30b(0x20c)](){var _0xd777f6=_0x37b30b;this[_0xd777f6(0x1f3)](this['_configService'][_0xd777f6(0x183)](_0x497ef3[_0xd777f6(0xa7)])[_0xd777f6(0x1fc)](_0x9f4844=>{var _0x5bca12=_0xd777f6;this[_0x5bca12(0x140)]['next'](_0x9f4844||{});}));const _0x10387d=this['_configService']['getConfig'](_0x497ef3['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$'][_0xd777f6(0x1ea)](_0x10387d||{}),this['disposeWithMe'](this[_0xd777f6(0x15f)][_0xd777f6(0x183)](_0x2d0a08)['subscribe'](_0x28a7c8=>{var _0x48de00=_0xd777f6;this[_0x48de00(0x1ae)]['next'](_0x28a7c8||{});}));const _0x9e8fc7=this[_0xd777f6(0x15f)][_0xd777f6(0xee)](_0x2d0a08);this[_0xd777f6(0x1ae)][_0xd777f6(0x1ea)](_0x9e8fc7||{});}async[_0x37b30b(0x1f8)](){var _0x2e4926=_0x37b30b;const _0x1431ed=this[_0x2e4926(0x15f)][_0x2e4926(0xee)](_0x2d0a08);if(!(_0x1431ed!=null&&_0x1431ed[_0x2e4926(0x88)]))return;const _0x4f597b=await this[_0x2e4926(0xc6)]['getItem'](_0x470a14);_0x4f597b&&(this[_0x2e4926(0x21e)][_0x2e4926(0x104)]({'Authorization':'Bearer\x20'+_0x4f597b}),this['_apiKey$']['next'](_0x4f597b));}async['_validateConfig'](_0x539302){var _0x53abef=_0x37b30b;if(!_0x539302[_0x53abef(0xb6)]||_0x539302['apiKey']['trim']()[_0x53abef(0x17b)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x53abef(0x1a2)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x539302['apiKey'][_0x53abef(0x1c3)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x53abef(0x86))};try{const _0x4456c8=await this[_0x53abef(0xea)][_0x53abef(0x194)](_0x497ef3[_0x53abef(0x1e1)])[_0x53abef(0x1f5)](_0x539302[_0x53abef(0xb6)][_0x53abef(0x1c3)]());return _0x4456c8[_0x53abef(0x19d)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4456c8[_0x53abef(0x119)]||this[_0x53abef(0x1a2)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x4fec6f){return console[_0x53abef(0x171)](_0x53abef(0xbc),_0x4fec6f),{'isValid':!0x0};}}},_0x2f44b2[_0x37b30b(0x132)]=_0x30bec7([_0xb1b7fd(0x0,_0x2d2b72['Inject'](_0x2d2b72[_0x37b30b(0x1c5)])),_0xb1b7fd(0x1,_0x447b69[_0x37b30b(0xd2)]),_0xb1b7fd(0x2,_0x2d2b72['IConfigService']),_0xb1b7fd(0x3,_0x2d2b72[_0x37b30b(0x94)]),_0xb1b7fd(0x4,_0x447b69[_0x37b30b(0x212)]),_0xb1b7fd(0x5,_0x447b69['IMessageService']),_0xb1b7fd(0x6,_0x2d2b72[_0x37b30b(0x11d)](_0x447b69[_0x37b30b(0x200)])),_0xb1b7fd(0x7,_0x2d2b72[_0x37b30b(0x11d)](_0x2d2b72['LocaleService'])),_0xb1b7fd(0x8,_0x2d2b72[_0x37b30b(0xa1)]),_0xb1b7fd(0x9,_0x2d2b72[_0x37b30b(0x11d)](_0x497ef3['MCPConnectionController']))],_0x2f44b2[_0x37b30b(0x132)]);const _0xc26e02={'id':_0x37b30b(0xcd),'type':_0x2d2b72['CommandType'][_0x37b30b(0x124)],'handler':async(_0x446757,_0x2f3e86)=>(_0x446757['get'](_0x2f44b2[_0x37b30b(0x132)])[_0x37b30b(0x189)](),!0x0)};function _0x515ef7(_0x38afd4,_0x2c0780){var _0x30006c=_0x37b30b;switch(_0x38afd4){case _0x497ef3[_0x30006c(0xd4)]['DISCONNECTED']:return _0x30006c(0x1cb);case _0x497ef3[_0x30006c(0xd4)]['CONNECTING']:return _0x30006c(0x1d2);case _0x497ef3['MCPConnectionStatus'][_0x30006c(0x139)]:return _0x30006c(0xbe);case _0x497ef3[_0x30006c(0xd4)][_0x30006c(0x134)]:switch(_0x2c0780){case _0x497ef3[_0x30006c(0x1d7)]['UNAUTHORIZED']:return _0x30006c(0x187);case _0x497ef3[_0x30006c(0x1d7)][_0x30006c(0x11e)]:return _0x30006c(0x1c0);case _0x497ef3[_0x30006c(0x1d7)][_0x30006c(0x13b)]:return _0x30006c(0x135);case _0x497ef3[_0x30006c(0x1d7)][_0x30006c(0x193)]:return _0x30006c(0xa5);default:return _0x30006c(0x1fa);}case _0x497ef3[_0x30006c(0xd4)][_0x30006c(0x115)]:return _0x30006c(0xde);default:return'mcpStatus.unknown';}}function _0x24c54f(_0x5e0257,_0x45f226,_0x380ba8,_0x162708=!0x0){var _0x4b57a9=_0x37b30b;const _0x23adab=_0x515ef7(_0x5e0257,_0x45f226),_0x428822=_0x380ba8['t'](_0x23adab);return _0x162708?_0x5e0257===_0x497ef3[_0x4b57a9(0xd4)][_0x4b57a9(0x17e)]&&_0x45f226===_0x497ef3['MCPConnectionError'][_0x4b57a9(0xf6)]?_0x428822+_0x4b57a9(0x197)+_0x380ba8['t'](_0x4b57a9(0x14f)):_0x5e0257===_0x497ef3[_0x4b57a9(0xd4)][_0x4b57a9(0x139)]?''+_0x428822:_0x5e0257===_0x497ef3[_0x4b57a9(0xd4)][_0x4b57a9(0x17e)]||_0x5e0257===_0x497ef3[_0x4b57a9(0xd4)][_0x4b57a9(0x134)]?_0x428822+'\x20-\x20'+_0x380ba8['t'](_0x4b57a9(0x206)):_0x428822:_0x428822;}function _0x24426b(_0x2ed44d){var _0x5603d2=_0x37b30b;switch(_0x2ed44d){case _0x497ef3['MCPConnectionStatus']['CONNECTED']:return _0x5603d2(0x122);case _0x497ef3[_0x5603d2(0xd4)][_0x5603d2(0x146)]:case _0x497ef3['MCPConnectionStatus'][_0x5603d2(0x115)]:return _0x5603d2(0xb9);case _0x497ef3[_0x5603d2(0xd4)][_0x5603d2(0x134)]:case _0x497ef3[_0x5603d2(0xd4)]['DISCONNECTED']:return _0x5603d2(0x186);default:return _0x5603d2(0xcb);}}function _0xe1e11b(_0x3c5f40){var _0x251407=_0x37b30b;const {status$:_0x26062b,error$:_0x383fa3,onConfigure:_0x437ae2,showClickable:_0x462184=!0x0}=_0x3c5f40,_0x5cdfcd=_0x447b69[_0x251407(0x91)](_0x26062b,_0x497ef3[_0x251407(0xd4)]['DISCONNECTED']),_0x94f28f=_0x447b69[_0x251407(0x91)](_0x383fa3,_0x497ef3[_0x251407(0x1d7)]['NONE']),_0x419caa=_0x447b69[_0x251407(0x1e8)](_0x2d2b72['LocaleService']),_0x46e864=_0x5cdfcd===_0x497ef3['MCPConnectionStatus'][_0x251407(0x139)];_0x5cdfcd===_0x497ef3[_0x251407(0xd4)][_0x251407(0x146)]||_0x497ef3['MCPConnectionStatus'][_0x251407(0x115)];const _0x436fc9=_0x419caa['t'](_0x515ef7(_0x5cdfcd,_0x94f28f)),_0x411526=_0x24c54f(_0x5cdfcd,_0x94f28f,_0x419caa,_0x462184),_0x50763e=_0x24426b(_0x5cdfcd),_0x4b952e=_0x46e864?_0x5894a5[_0x251407(0x20f)](_0x2646fa,{}):_0x5894a5[_0x251407(0x20f)](_0x111bd,{}),_0x44a1c6=_0x59d82d[_0x251407(0x1df)](()=>{_0x462184&&_0x437ae2&&_0x437ae2();},[_0x462184,_0x437ae2]);function _0x1ace0d(){var _0x10a3ca=_0x251407;return _0x5894a5[_0x10a3ca(0x106)](_0x10a3ca(0x20d),{'className':_0x2b0681[_0x10a3ca(0x8a)](_0x10a3ca(0x218),_0x462184&&_0x437ae2&&_0x10a3ca(0xca)),'onClick':_0x462184&&_0x437ae2?_0x44a1c6:void 0x0,'children':[_0x5894a5[_0x10a3ca(0x20f)](_0x10a3ca(0x20d),{'className':_0x2b0681[_0x10a3ca(0x8a)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x50763e),'children':_0x4b952e}),_0x5894a5[_0x10a3ca(0x20f)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x436fc9})]});}return _0x5894a5[_0x251407(0x20f)](_0x2b0681[_0x251407(0x211)],{'title':_0x411526,'placement':_0x251407(0xc4),'children':_0x1ace0d()});}var _0x3f85af=Object['getOwnPropertyDescriptor'],_0x559e7b=(_0x366219,_0x2092d8,_0xf71ae0,_0x1dc68)=>{for(var _0x404715=_0x1dc68>0x1?void 0x0:_0x1dc68?_0x3f85af(_0x2092d8,_0xf71ae0):_0x2092d8,_0x48808c=_0x366219['length']-0x1,_0x4ef0c6;_0x48808c>=0x0;_0x48808c--)(_0x4ef0c6=_0x366219[_0x48808c])&&(_0x404715=_0x4ef0c6(_0x404715)||_0x404715);return _0x404715;},_0x2b7d2=(_0x36b942,_0x50f60f)=>(_0xabd1ef,_0x14a85b)=>_0x50f60f(_0xabd1ef,_0x14a85b,_0x36b942);_0x2f44b2['MCPConnectionUIController']=class extends _0x2d2b72[_0x37b30b(0x159)]{constructor(_0x3cc50a,_0x1d1889,_0x58d744,_0x4e71d3){var _0x37c0ce=_0x37b30b;super(),this['_injector']=_0x3cc50a,this[_0x37c0ce(0x14b)]=_0x1d1889,this['_uiPartsService']=_0x58d744,this[_0x37c0ce(0x15f)]=_0x4e71d3,this['_initAutoConnect'](),this[_0x37c0ce(0x116)]();}[_0x37b30b(0x215)](){var _0x4626e0=_0x37b30b;const _0x579ca1=this['_configService'][_0x4626e0(0xee)](_0x2d0a08);_0x579ca1!=null&&_0x579ca1['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x37b30b(0x116)](){var _0xba83f7=_0x37b30b;const _0xdda602=this[_0xba83f7(0x15f)]['getConfig'](_0x2d0a08);(_0xdda602==null?void 0x0:_0xdda602['showStatus'])!==!0x1&&this[_0xba83f7(0x1f3)](this[_0xba83f7(0x1a7)][_0xba83f7(0x201)](_0x447b69[_0xba83f7(0xd3)]['HEADER_MENU'],()=>{var _0x2029f5=_0xba83f7,_0x2b8a4f;return _0x447b69[_0x2029f5(0xd5)](_0x16c3a5({'status$':this[_0x2029f5(0x14b)][_0x2029f5(0x209)],'error$':this[_0x2029f5(0x14b)][_0x2029f5(0x167)],'onConfigure':()=>this[_0x2029f5(0x8b)](),'showClickable':(_0x2b8a4f=_0xdda602==null?void 0x0:_0xdda602['showDeveloperTools'])!=null?_0x2b8a4f:!0x1}),this[_0x2029f5(0xea)]);}));}[_0x37b30b(0x8b)](){var _0x3a488d=_0x37b30b;this['_injector'][_0x3a488d(0x194)](_0x2f44b2[_0x3a488d(0x132)])[_0x3a488d(0x189)]();}},_0x2f44b2[_0x37b30b(0x1ba)]=_0x559e7b([_0x2b7d2(0x0,_0x2d2b72[_0x37b30b(0x11d)](_0x2d2b72[_0x37b30b(0x1c5)])),_0x2b7d2(0x1,_0x2d2b72[_0x37b30b(0x11d)](_0x497ef3[_0x37b30b(0x1e1)])),_0x2b7d2(0x2,_0x447b69['IUIPartsService']),_0x2b7d2(0x3,_0x2d2b72[_0x37b30b(0x1d9)])],_0x2f44b2['MCPConnectionUIController']);function _0x16c3a5(_0x2f1ac9){const {status$:_0xa11283,error$:_0x3f18ce,onConfigure:_0x11ab8f,showClickable:_0x1325af}=_0x2f1ac9;return function(){return _0x5894a5['jsx'](_0xe1e11b,{'status$':_0xa11283,'error$':_0x3f18ce,'onConfigure':_0x11ab8f,'showClickable':_0x1325af});};}function _0x8a89d4(_0x521b34){var _0x2740e2=_0x37b30b;return{'id':_0xc26e02['id'],'type':_0x447b69[_0x2740e2(0x153)][_0x2740e2(0x141)],'icon':_0x2740e2(0x118),'title':_0x2740e2(0x180),'tooltip':_0x2740e2(0x180)};}const _0x3f94d6={[_0x447b69[_0x37b30b(0xdc)]['OTHERS']]:{[_0xc26e02['id']]:{'order':0xa,'menuItemFactory':_0x8a89d4}}};var _0x53928e=Object[_0x37b30b(0x1be)],_0xb428ef=(_0x318285,_0x2e84d7,_0x48bff8,_0x278e60)=>{var _0x3351cd=_0x37b30b;for(var _0x18bb96=_0x278e60>0x1?void 0x0:_0x278e60?_0x53928e(_0x2e84d7,_0x48bff8):_0x2e84d7,_0xf37853=_0x318285[_0x3351cd(0x17b)]-0x1,_0x3dda7a;_0xf37853>=0x0;_0xf37853--)(_0x3dda7a=_0x318285[_0xf37853])&&(_0x18bb96=_0x3dda7a(_0x18bb96)||_0x18bb96);return _0x18bb96;},_0x3d4367=(_0x29ce86,_0x12c48e)=>(_0x38a634,_0x440b91)=>_0x12c48e(_0x38a634,_0x440b91,_0x29ce86);_0x2f44b2['MCPUIMenuController']=class extends _0x2d2b72[_0x37b30b(0x159)]{constructor(_0x4d93b4,_0x543f76){var _0xe04c45=_0x37b30b;super(),this[_0xe04c45(0x217)]=_0x4d93b4,this[_0xe04c45(0x18a)]=_0x543f76,this['_initializeCommands'](),this['_initializeMenus']();}[_0x37b30b(0x1b2)](){var _0x19ad0d=_0x37b30b;[_0xc26e02][_0x19ad0d(0x182)](_0x293db3=>{var _0x36cecb=_0x19ad0d;this['disposeWithMe'](this[_0x36cecb(0x217)][_0x36cecb(0x8d)](_0x293db3));});}[_0x37b30b(0x1b0)](){var _0x50ff4d=_0x37b30b;this[_0x50ff4d(0x18a)]['mergeMenu'](_0x3f94d6);}},_0x2f44b2[_0x37b30b(0xce)]=_0xb428ef([_0x3d4367(0x0,_0x2d2b72['ICommandService']),_0x3d4367(0x1,_0x447b69[_0x37b30b(0x10d)])],_0x2f44b2['MCPUIMenuController']);const _0x1682db={'mcpStatus':{'disconnected':_0x37b30b(0x10f),'connecting':_0x37b30b(0xff),'connected':_0x37b30b(0xac),'failed':_0x37b30b(0x1ab),'retrying':_0x37b30b(0xa6),'unknown':_0x37b30b(0x1e0),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x37b30b(0x1b7),'networkError':_0x37b30b(0x202),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x37b30b(0x18e),'clickToConfigure':_0x37b30b(0xba)},'mcpConfig':{'title':_0x37b30b(0x19c),'description':_0x37b30b(0x117),'apiKey':_0x37b30b(0xfb),'apiKeyPlaceholder':_0x37b30b(0x103),'apiKeyHint':_0x37b30b(0xb8),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x37b30b(0x113),'mcpClientConfig':_0x37b30b(0x113),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x37b30b(0x129),'configStep1':_0x37b30b(0x8f),'configStep2':_0x37b30b(0x210),'configStep3':_0x37b30b(0x1c4),'sessionId':_0x37b30b(0x1b9),'sessionIdDescription':_0x37b30b(0x1da),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x37b30b(0x1d8),'save':_0x37b30b(0x208),'saving':'Saving...','note1':_0x37b30b(0x20e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x37b30b(0x1b6),'configError':_0x37b30b(0x1a0),'apiApplyInfo':{'title':_0x37b30b(0xd9),'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':_0x37b30b(0x1fe),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x37b30b(0x18c),'apiKeyTooShort':_0x37b30b(0x1ff),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x37b30b(0xc1),'connected':_0x37b30b(0xaf),'failed':'Connection\x20Failed','retrying':_0x37b30b(0x114)},'connectionError':{'unauthorized':_0x37b30b(0x21d),'sessionOccupied':_0x37b30b(0x143),'networkError':_0x37b30b(0x1fd),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x42f658={'mcpStatus':{'disconnected':_0x37b30b(0x190),'connecting':_0x37b30b(0x136),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x37b30b(0xd8),'sessionOccupied':_0x37b30b(0xb2),'networkError':_0x37b30b(0x1e5),'maxRetriesExceeded':_0x37b30b(0xf5),'clickToConnect':_0x37b30b(0xae),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x37b30b(0xb1),'description':_0x37b30b(0x16d),'apiKey':_0x37b30b(0x87),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x37b30b(0x184),'enableAuth':'启用身份验证','enableAuthHint':_0x37b30b(0x131),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x37b30b(0x89),'configInstructions':_0x37b30b(0x13a),'configStepTitle':_0x37b30b(0xad),'configStep1':_0x37b30b(0xe1),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x37b30b(0xa9),'sessionId':_0x37b30b(0x160),'sessionIdDescription':_0x37b30b(0x1c7),'authorizationDescription':_0x37b30b(0xdf),'configParameters':_0x37b30b(0x1fb),'maxRetries':_0x37b30b(0x145),'save':_0x37b30b(0x1c6),'saving':_0x37b30b(0x14e),'note1':_0x37b30b(0xa0),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x37b30b(0x1ce),'configError':_0x37b30b(0x12d),'apiApplyInfo':{'title':_0x37b30b(0xef),'description':_0x37b30b(0x10a),'univerAiLabel':_0x37b30b(0x99),'getStarted':_0x37b30b(0x12a)},'validation':{'apiKeyRequired':_0x37b30b(0x107),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x37b30b(0x1f6)},'connectionStatus':{'disconnected':_0x37b30b(0xe8),'connecting':_0x37b30b(0x161),'connected':_0x37b30b(0x1ad),'failed':_0x37b30b(0x13d),'retrying':_0x37b30b(0xf4)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x37b30b(0x102),'networkError':_0x37b30b(0x18b),'maxRetriesExceeded':_0x37b30b(0xe6)}}};var _0x1fb6b2=Object[_0x37b30b(0x95)],_0x42da40=Object[_0x37b30b(0x1be)],_0x5c6530=(_0x29cf16,_0x30e66a,_0x7e3be5)=>_0x30e66a in _0x29cf16?_0x1fb6b2(_0x29cf16,_0x30e66a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7e3be5}):_0x29cf16[_0x30e66a]=_0x7e3be5,_0x31216a=(_0x3f2b2c,_0x66486b,_0x193980,_0x4b98c2)=>{for(var _0x387707=_0x4b98c2>0x1?void 0x0:_0x4b98c2?_0x42da40(_0x66486b,_0x193980):_0x66486b,_0x5ee5e0=_0x3f2b2c['length']-0x1,_0x5ad258;_0x5ee5e0>=0x0;_0x5ee5e0--)(_0x5ad258=_0x3f2b2c[_0x5ee5e0])&&(_0x387707=_0x5ad258(_0x387707)||_0x387707);return _0x387707;},_0x4d9e94=(_0x8cf797,_0x343051)=>(_0x2fecde,_0x59ae1f)=>_0x343051(_0x2fecde,_0x59ae1f,_0x8cf797),_0x313f32=(_0x3276cd,_0x4f5363,_0x52cb6e)=>_0x5c6530(_0x3276cd,_0x4f5363+'',_0x52cb6e);_0x2f44b2[_0x37b30b(0x9b)]=class extends _0x2d2b72[_0x37b30b(0x9d)]{constructor(_0x3f07f5=_0x22f26d,_0x48dbd4,_0x363668,_0x479dbb,_0x2020dc,_0x48e361){var _0xc07e8d=_0x37b30b;super(),this['_config']=_0x3f07f5,this[_0xc07e8d(0xea)]=_0x48dbd4,this[_0xc07e8d(0x15f)]=_0x363668,this['_uiPartsService']=_0x479dbb,this[_0xc07e8d(0xc6)]=_0x2020dc,this['_localeService']=_0x48e361;const {..._0x478b0e}=_0x2d2b72[_0xc07e8d(0x8c)]({},_0x22f26d,this[_0xc07e8d(0x196)]);this[_0xc07e8d(0x15f)][_0xc07e8d(0x110)](_0x2d0a08,_0x478b0e);}async[_0x37b30b(0x1bd)](){var _0x5abfa6=_0x37b30b;const _0x58b28=[[_0x2f44b2[_0x5abfa6(0x1ba)]],[_0x2f44b2[_0x5abfa6(0x132)]],[_0x2f44b2[_0x5abfa6(0xce)]]];this[_0x5abfa6(0xea)]['has'](_0x50e67a['ISocketService'])||_0x58b28[_0x5abfa6(0x1db)]([_0x50e67a[_0x5abfa6(0xab)],{'useClass':_0x50e67a[_0x5abfa6(0x11a)]}]),_0x58b28[_0x5abfa6(0x182)](_0x365a06=>this[_0x5abfa6(0xea)][_0x5abfa6(0x13c)](_0x365a06)),this[_0x5abfa6(0xea)][_0x5abfa6(0x194)](_0x2f44b2['MCPConnectionUIController']),this[_0x5abfa6(0xea)]['get'](_0x2f44b2['MCPConfigUIController']),this[_0x5abfa6(0xea)][_0x5abfa6(0x194)](_0x2f44b2['MCPUIMenuController']);}},_0x313f32(_0x2f44b2[_0x37b30b(0x9b)],_0x37b30b(0xa2),_0x37b30b(0xed)),_0x2f44b2[_0x37b30b(0x9b)]=_0x31216a([_0x2d2b72[_0x37b30b(0x169)](_0x497ef3['UniverMCPPlugin']),_0x4d9e94(0x1,_0x2d2b72[_0x37b30b(0x11d)](_0x2d2b72[_0x37b30b(0x1c5)])),_0x4d9e94(0x2,_0x2d2b72[_0x37b30b(0x1d9)]),_0x4d9e94(0x3,_0x447b69[_0x37b30b(0xd2)]),_0x4d9e94(0x4,_0x2d2b72[_0x37b30b(0x94)]),_0x4d9e94(0x5,_0x2d2b72[_0x37b30b(0x11d)](_0x2d2b72[_0x37b30b(0x1ee)]))],_0x2f44b2[_0x37b30b(0x9b)]),_0x2f44b2[_0x37b30b(0x1af)]=_0xea54ac,_0x2f44b2[_0x37b30b(0x19e)]=_0xe1e11b,_0x2f44b2['OpenMCPConfigPanelCommand']=_0xc26e02,_0x2f44b2['enUS']=_0x1682db,_0x2f44b2[_0x37b30b(0x1a4)]=_0x42f658,Object[_0x37b30b(0x95)](_0x2f44b2,Symbol['toStringTag'],{'value':_0x37b30b(0x1d0)});}));
1
+ (function(_0x418414,_0xb886fb){var _0x27a8a3=_0x56db,_0x14fc65=_0x418414();while(!![]){try{var _0x3afd7d=parseInt(_0x27a8a3(0xe7))/0x1*(parseInt(_0x27a8a3(0x1cf))/0x2)+parseInt(_0x27a8a3(0x15c))/0x3+-parseInt(_0x27a8a3(0x1d1))/0x4+-parseInt(_0x27a8a3(0x1da))/0x5*(-parseInt(_0x27a8a3(0xbe))/0x6)+parseInt(_0x27a8a3(0x20a))/0x7*(-parseInt(_0x27a8a3(0x161))/0x8)+-parseInt(_0x27a8a3(0xdb))/0x9*(-parseInt(_0x27a8a3(0x158))/0xa)+-parseInt(_0x27a8a3(0xa9))/0xb;if(_0x3afd7d===_0xb886fb)break;else _0x14fc65['push'](_0x14fc65['shift']());}catch(_0x4adc64){_0x14fc65['push'](_0x14fc65['shift']());}}}(_0x1266,0x205f2),function(_0x1aa7e6,_0x7080d3){var _0x7cbd7b=_0x56db;typeof exports==_0x7cbd7b(0xe6)&&typeof module<'u'?_0x7080d3(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==_0x7cbd7b(0x1af)&&define[_0x7cbd7b(0x1bb)]?define(['exports','@univerjs/core','react/jsx-runtime',_0x7cbd7b(0x13d),'@univerjs/design',_0x7cbd7b(0x159),_0x7cbd7b(0x116),_0x7cbd7b(0x224),'@univerjs/network'],_0x7080d3):(_0x1aa7e6=typeof globalThis<'u'?globalThis:_0x1aa7e6||self,_0x7080d3(_0x1aa7e6[_0x7cbd7b(0x142)]={},_0x1aa7e6[_0x7cbd7b(0x1df)],_0x1aa7e6[_0x7cbd7b(0xe0)],_0x1aa7e6[_0x7cbd7b(0x1f3)],_0x1aa7e6[_0x7cbd7b(0x1b1)],_0x1aa7e6[_0x7cbd7b(0x138)],_0x1aa7e6['rxjs'],_0x1aa7e6[_0x7cbd7b(0xe0)],_0x1aa7e6['UniverNetwork']));}(this,function(_0x526763,_0x500e45,_0x35442b,_0x13cda6,_0x52e301,_0x20781d,_0x39358c,_0x1257d6,_0x4b5635){'use strict';var _0x90d58e=_0x56db;var _0x77b19d=Object[_0x90d58e(0x144)],_0x44ac3e=(_0x24a5cd,_0x26c356,_0x1bb157)=>_0x26c356 in _0x24a5cd?_0x77b19d(_0x24a5cd,_0x26c356,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bb157}):_0x24a5cd[_0x26c356]=_0x1bb157,_0x517686=(_0xd9eb0,_0x47d3b2,_0x1b2c47)=>_0x44ac3e(_0xd9eb0,typeof _0x47d3b2!='symbol'?_0x47d3b2+'':_0x47d3b2,_0x1b2c47),_0x1f0567=function(){var _0x2d8864=_0x90d58e;return _0x1f0567=Object['assign']||function(_0x13ce79){var _0x4e0680=_0x56db;for(var _0x4a7312,_0x54b7f3=0x1,_0x112982=arguments[_0x4e0680(0xaa)];_0x54b7f3<_0x112982;_0x54b7f3++){_0x4a7312=arguments[_0x54b7f3];for(var _0x1fd935 in _0x4a7312)Object[_0x4e0680(0x16b)][_0x4e0680(0x156)][_0x4e0680(0xea)](_0x4a7312,_0x1fd935)&&(_0x13ce79[_0x1fd935]=_0x4a7312[_0x1fd935]);}return _0x13ce79;},_0x1f0567[_0x2d8864(0x1fc)](this,arguments);},_0x246adc=function(_0x1519c2,_0x12190d){var _0x29cf54=_0x90d58e,_0x50b41d={};for(var _0x2d080c in _0x1519c2)Object[_0x29cf54(0x16b)][_0x29cf54(0x156)]['call'](_0x1519c2,_0x2d080c)&&_0x12190d[_0x29cf54(0x114)](_0x2d080c)<0x0&&(_0x50b41d[_0x2d080c]=_0x1519c2[_0x2d080c]);if(_0x1519c2!=null&&typeof Object[_0x29cf54(0x15d)]==_0x29cf54(0x1af)){for(var _0x357546=0x0,_0x2d080c=Object['getOwnPropertySymbols'](_0x1519c2);_0x357546<_0x2d080c[_0x29cf54(0xaa)];_0x357546++)_0x12190d[_0x29cf54(0x114)](_0x2d080c[_0x357546])<0x0&&Object[_0x29cf54(0x16b)][_0x29cf54(0xaf)][_0x29cf54(0xea)](_0x1519c2,_0x2d080c[_0x357546])&&(_0x50b41d[_0x2d080c[_0x357546]]=_0x1519c2[_0x2d080c[_0x357546]]);}return _0x50b41d;},_0x2b0d8e=_0x1257d6['forwardRef'](function(_0x5eda94,_0xfac694){var _0x54c589=_0x90d58e,_0x435fad=_0x5eda94[_0x54c589(0x109)],_0x30a753=_0x5eda94['id'],_0x86827d=_0x5eda94[_0x54c589(0x217)],_0x1d301a=_0x5eda94[_0x54c589(0x172)],_0x4f39c0=_0x246adc(_0x5eda94,['icon','id',_0x54c589(0x217),'extend']),_0x5ce523=_0x54c589(0x220)[_0x54c589(0x130)](_0x30a753,'\x20')['concat'](_0x86827d||'')['trim'](),_0xa2ec37=_0x1257d6[_0x54c589(0x171)]('_'['concat'](_0x3bec99()));return _0x12872e(_0x435fad,''['concat'](_0x30a753),{'defIds':_0x435fad[_0x54c589(0x10a)],'idSuffix':_0xa2ec37[_0x54c589(0x106)]},_0x1f0567({'ref':_0xfac694,'className':_0x5ce523},_0x4f39c0),_0x1d301a);});function _0x12872e(_0x3893eb,_0x2f5759,_0xdab340,_0x346e26,_0x2dc22b){var _0x126f73=_0x90d58e;return _0x1257d6[_0x126f73(0x1d7)](_0x3893eb[_0x126f73(0x18b)],_0x1f0567(_0x1f0567({'key':_0x2f5759},_0x524118(_0x3893eb,_0xdab340,_0x2dc22b)),_0x346e26),(_0x21bf67(_0x3893eb,_0xdab340)[_0x126f73(0x216)]||[])[_0x126f73(0x11c)](function(_0xbe1a63,_0x118bc6){var _0x5e811c=_0x126f73;return _0x12872e(_0xbe1a63,''['concat'](_0x2f5759,'-')[_0x5e811c(0x130)](_0x3893eb['tag'],'-')['concat'](_0x118bc6),_0xdab340,void 0x0,_0x2dc22b);}));}function _0x524118(_0x21d150,_0x56ed55,_0x4b1478){var _0x123eec=_0x90d58e,_0x18526b=_0x1f0567({},_0x21d150[_0x123eec(0x14d)]);_0x4b1478!=null&&_0x4b1478[_0x123eec(0xfc)]&&_0x18526b[_0x123eec(0xcf)]===_0x123eec(0xfc)&&(_0x18526b[_0x123eec(0xcf)]=_0x4b1478[_0x123eec(0xfc)]),_0x21d150['tag']===_0x123eec(0x1ed)&&_0x18526b['id']&&(_0x18526b['id']=_0x18526b['id']+_0x56ed55[_0x123eec(0x19a)]),Object['entries'](_0x18526b)[_0x123eec(0xf6)](function(_0x3b8995){var _0x157ef3=_0x123eec,_0x16e28f=_0x3b8995[0x0],_0x338d42=_0x3b8995[0x1];_0x16e28f==='mask'&&typeof _0x338d42==_0x157ef3(0x12d)&&(_0x18526b[_0x16e28f]=_0x338d42['replace'](/url\(#(.*)\)/,_0x157ef3(0xf1)['concat'](_0x56ed55[_0x157ef3(0x19a)],')')));});var _0x47cec3=_0x56ed55[_0x123eec(0x10a)];return!_0x47cec3||_0x47cec3[_0x123eec(0xaa)]===0x0||(_0x21d150[_0x123eec(0x18b)]===_0x123eec(0x127)&&_0x18526b[_0x123eec(0xf5)]&&(_0x18526b['xlink:href']=_0x18526b[_0x123eec(0xf5)]+_0x56ed55[_0x123eec(0x19a)]),Object['entries'](_0x18526b)[_0x123eec(0xf6)](function(_0x3fbb36){var _0x256b02=_0x123eec,_0xda7869=_0x3fbb36[0x0],_0x2bd208=_0x3fbb36[0x1];typeof _0x2bd208=='string'&&(_0x18526b[_0xda7869]=_0x2bd208[_0x256b02(0x125)](/url\(#(.*)\)/,_0x256b02(0xf1)[_0x256b02(0x130)](_0x56ed55[_0x256b02(0x19a)],')')));})),_0x18526b;}function _0x21bf67(_0x2ecaec,_0x23153a){var _0x8e496c=_0x90d58e,_0x859b77,_0x5d2342=_0x23153a[_0x8e496c(0x10a)];return!_0x5d2342||_0x5d2342[_0x8e496c(0xaa)]===0x0?_0x2ecaec:_0x2ecaec['tag']==='defs'&&(!((_0x859b77=_0x2ecaec[_0x8e496c(0x216)])===null||_0x859b77===void 0x0)&&_0x859b77[_0x8e496c(0xaa)])?_0x1f0567(_0x1f0567({},_0x2ecaec),{'children':_0x2ecaec['children'][_0x8e496c(0x11c)](function(_0x5907e3){var _0x5a4738=_0x8e496c;return typeof _0x5907e3[_0x5a4738(0x14d)]['id']==_0x5a4738(0x12d)&&_0x5d2342&&_0x5d2342[_0x5a4738(0x12c)](_0x5907e3[_0x5a4738(0x14d)]['id'])?_0x1f0567(_0x1f0567({},_0x5907e3),{'attrs':_0x1f0567(_0x1f0567({},_0x5907e3[_0x5a4738(0x14d)]),{'id':_0x5907e3[_0x5a4738(0x14d)]['id']+_0x23153a[_0x5a4738(0x19a)]})}):_0x5907e3;})}):_0x2ecaec;}function _0x3bec99(){var _0x53e073=_0x90d58e;return Math[_0x53e073(0xef)]()[_0x53e073(0x176)](0x24)[_0x53e073(0xae)](0x2,0x8);}_0x2b0d8e[_0x90d58e(0x1b5)]=_0x90d58e(0x1c8);var _0x2238c1={'tag':'svg','attrs':{'xmlns':_0x90d58e(0x1d3),'fill':'none','viewBox':_0x90d58e(0x1ca),'width':'1em','height':_0x90d58e(0xb1)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x90d58e(0xe4),'fillRule':_0x90d58e(0xc1),'clipRule':'evenodd'}}]},_0x4ea0bf=_0x1257d6[_0x90d58e(0x183)](function(_0x202ded,_0x5c4301){var _0x5507d6=_0x90d58e;return _0x1257d6[_0x5507d6(0x1d7)](_0x2b0d8e,Object[_0x5507d6(0x120)]({},_0x202ded,{'id':_0x5507d6(0x164),'ref':_0x5c4301,'icon':_0x2238c1}));});_0x4ea0bf['displayName']=_0x90d58e(0x1f4);var _0x12879b={'tag':_0x90d58e(0x147),'attrs':{'xmlns':_0x90d58e(0x1d3),'fill':_0x90d58e(0x135),'viewBox':'0\x200\x2017\x2017','width':_0x90d58e(0xb1),'height':_0x90d58e(0xb1)},'children':[{'tag':_0x90d58e(0x1b7),'attrs':{'stroke':_0x90d58e(0xb9),'d':_0x90d58e(0x20c),'strokeLinecap':_0x90d58e(0x131),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':'currentColor','d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x90d58e(0x131),'strokeLinejoin':'round','strokeWidth':1.33}}]},_0x1bbe5c=_0x1257d6[_0x90d58e(0x183)](function(_0x559ed1,_0x3bb08a){var _0x4a9786=_0x90d58e;return _0x1257d6[_0x4a9786(0x1d7)](_0x2b0d8e,Object[_0x4a9786(0x120)]({},_0x559ed1,{'id':_0x4a9786(0x150),'ref':_0x3bb08a,'icon':_0x12879b}));});_0x1bbe5c[_0x90d58e(0x1b5)]=_0x90d58e(0x110);var _0x3aa8a4={'tag':_0x90d58e(0x147),'attrs':{'xmlns':_0x90d58e(0x1d3),'fill':'none','viewBox':_0x90d58e(0x1ca),'width':_0x90d58e(0xb1),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x90d58e(0xb9),'d':_0x90d58e(0xf8)}},{'tag':_0x90d58e(0x1b7),'attrs':{'fill':'currentColor','d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x90d58e(0x1b7),'attrs':{'fill':_0x90d58e(0xb9),'d':_0x90d58e(0x105),'fillRule':_0x90d58e(0xc1),'clipRule':_0x90d58e(0xc1)}}]},_0x1c64b0=_0x1257d6[_0x90d58e(0x183)](function(_0x549e57,_0xba2a06){var _0x189cb6=_0x90d58e;return _0x1257d6[_0x189cb6(0x1d7)](_0x2b0d8e,Object['assign']({},_0x549e57,{'id':_0x189cb6(0x227),'ref':_0xba2a06,'icon':_0x3aa8a4}));});_0x1c64b0[_0x90d58e(0x1b5)]=_0x90d58e(0xc3);var _0x5a1c67={'tag':_0x90d58e(0x147),'attrs':{'xmlns':_0x90d58e(0x1d3),'fill':_0x90d58e(0x135),'viewBox':'0\x200\x2016\x2016','width':_0x90d58e(0xb1),'height':_0x90d58e(0xb1)},'children':[{'tag':'g','attrs':{'clipPath':_0x90d58e(0xc0)},'children':[{'tag':_0x90d58e(0x1b7),'attrs':{'stroke':'currentColor','d':_0x90d58e(0x145),'strokeLinecap':_0x90d58e(0x131),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x90d58e(0x123),'attrs':{},'children':[{'tag':_0x90d58e(0x19b),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x90d58e(0x1b7),'attrs':{'fill':_0x90d58e(0x1b4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x90d58e(0x1e2)]},_0x3d56dd=_0x1257d6[_0x90d58e(0x183)](function(_0x23c784,_0x3ae99e){var _0x58fab1=_0x90d58e;return _0x1257d6[_0x58fab1(0x1d7)](_0x2b0d8e,Object[_0x58fab1(0x120)]({},_0x23c784,{'id':_0x58fab1(0x1ab),'ref':_0x3ae99e,'icon':_0x5a1c67}));});_0x3d56dd[_0x90d58e(0x1b5)]=_0x90d58e(0xd4);var _0x495e12={'tag':'svg','attrs':{'xmlns':_0x90d58e(0x1d3),'fill':_0x90d58e(0x135),'viewBox':_0x90d58e(0x178),'width':_0x90d58e(0xb1),'height':_0x90d58e(0xb1)},'children':[{'tag':'g','attrs':{'clipPath':_0x90d58e(0x228)},'children':[{'tag':_0x90d58e(0x1b7),'attrs':{'stroke':_0x90d58e(0xb9),'d':_0x90d58e(0x21e),'strokeLinecap':'round','strokeLinejoin':_0x90d58e(0x131),'strokeWidth':1.2}}]},{'tag':_0x90d58e(0x123),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x90d58e(0x1b4),'d':'M0\x200H16V16H0z','transform':_0x90d58e(0x191)}}]}]}],'defIds':[_0x90d58e(0x1bd)]},_0x1d4da4=_0x1257d6[_0x90d58e(0x183)](function(_0x228e4c,_0x19c27d){var _0x5d84ae=_0x90d58e;return _0x1257d6[_0x5d84ae(0x1d7)](_0x2b0d8e,Object[_0x5d84ae(0x120)]({},_0x228e4c,{'id':'on-line-icon','ref':_0x19c27d,'icon':_0x495e12}));});_0x1d4da4[_0x90d58e(0x1b5)]=_0x90d58e(0x186);function _0x16c605(_0x3781f9){var _0x2398f2=_0x90d58e,_0x2d2ffa,_0x460875;const {mcpCoreConfig:_0x8ec14e,onSave:_0x3a31da,loading:_0x2fbeb2=!0x1,config:_0x4b6dc0,connectionStatus$:_0x22add7,connectionError$:_0x4c42be,currentApiKey$:_0x33005a,currentSessionId$:_0x4fc56f}=_0x3781f9,_0x7b0402=_0x20781d['useDependency'](_0x500e45[_0x2398f2(0x16f)]),_0x4355b1=_0x20781d[_0x2398f2(0x9c)](_0x22add7,_0x13cda6[_0x2398f2(0xa1)][_0x2398f2(0x219)]),_0x100301=_0x20781d[_0x2398f2(0x9c)](_0x4c42be,_0x13cda6[_0x2398f2(0x163)]['NONE']),_0x4f4c49=_0x20781d[_0x2398f2(0x9c)](_0x4fc56f,''),_0x4a936a=_0x20781d[_0x2398f2(0x9c)](_0x33005a,''),[_0x3e7a0f,_0x64ca0c]=_0x1257d6['useState'](_0x4a936a||''),_0x1c8b29=!0x0,_0x15a36e=_0x4b6dc0[_0x2398f2(0x196)]&&_0x8ec14e[_0x2398f2(0x1cc)]&&(_0x8ec14e[_0x2398f2(0x1cc)][_0x2398f2(0x12c)](_0x2398f2(0x11e))||_0x8ec14e[_0x2398f2(0x1cc)]['includes']('univer.ai')),_0x16725c=(_0x2d2ffa=_0x8ec14e[_0x2398f2(0x1cc)])==null?void 0x0:_0x2d2ffa[_0x2398f2(0x12c)]('univer.plus'),_0x3c20b4=(_0x460875=_0x8ec14e[_0x2398f2(0x1cc)])==null?void 0x0:_0x460875[_0x2398f2(0x12c)](_0x2398f2(0x124)),_0x275136=_0x16725c?_0x2398f2(0xe2):'https://console.univer.ai',_0x10d6f9=_0x4b6dc0[_0x2398f2(0x196)]&&(_0x16725c||_0x3c20b4),[_0x1ae6d5,_0x28b526]=_0x1257d6[_0x2398f2(0x17d)](!_0x3e7a0f[_0x2398f2(0x13b)]()),_0x1e84b7=(_0x382e07,_0x12bb97)=>{var _0x4a881e=_0x2398f2;if(_0x12bb97===_0x13cda6['MCPConnectionError'][_0x4a881e(0x1ae)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x382e07){case _0x13cda6['MCPConnectionStatus'][_0x4a881e(0xb3)]:return _0x4a881e(0x13a);case _0x13cda6[_0x4a881e(0xa1)]['CONNECTING']:case _0x13cda6[_0x4a881e(0xa1)][_0x4a881e(0x18a)]:return _0x4a881e(0x19c);case _0x13cda6[_0x4a881e(0xa1)][_0x4a881e(0x11b)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x4a881e(0x206);}},_0x209b07=(_0x267214,_0x55df9f)=>{var _0x3af926=_0x2398f2;if(_0x55df9f===_0x13cda6[_0x3af926(0x163)]['UNAUTHORIZED'])return _0x3af926(0x1f7);switch(_0x267214){case _0x13cda6[_0x3af926(0xa1)][_0x3af926(0xb3)]:return _0x3af926(0xce);case _0x13cda6[_0x3af926(0xa1)][_0x3af926(0x9d)]:case _0x13cda6[_0x3af926(0xa1)]['RETRYING']:return _0x3af926(0x100);case _0x13cda6[_0x3af926(0xa1)][_0x3af926(0x11b)]:return _0x3af926(0x1f7);default:return _0x3af926(0x1d8);}},_0x543c55=_0x4c3b74=>{var _0xdcb11f=_0x2398f2;switch(_0x4c3b74){case _0x13cda6[_0xdcb11f(0xa1)][_0xdcb11f(0xb3)]:return _0x7b0402['t'](_0xdcb11f(0x1aa));case _0x13cda6['MCPConnectionStatus'][_0xdcb11f(0x9d)]:return _0x7b0402['t'](_0xdcb11f(0x17c));case _0x13cda6[_0xdcb11f(0xa1)][_0xdcb11f(0x11b)]:return _0x7b0402['t']('mcpConfig.connectionStatus.failed');case _0x13cda6['MCPConnectionStatus'][_0xdcb11f(0x18a)]:return _0x7b0402['t'](_0xdcb11f(0x162));default:return _0x7b0402['t']('mcpConfig.connectionStatus.disconnected');}},_0x12512e=_0x952d92=>{var _0x11b8de=_0x2398f2;switch(_0x952d92){case _0x13cda6[_0x11b8de(0x163)][_0x11b8de(0x1ae)]:return _0x7b0402['t']('mcpConfig.connectionError.unauthorized');case _0x13cda6[_0x11b8de(0x163)][_0x11b8de(0xa2)]:return _0x7b0402['t']('mcpConfig.connectionError.sessionOccupied');case _0x13cda6[_0x11b8de(0x163)]['NETWORK_ERROR']:return _0x7b0402['t'](_0x11b8de(0x1a0));case _0x13cda6['MCPConnectionError'][_0x11b8de(0x17b)]:return _0x7b0402['t'](_0x11b8de(0x14a));default:return'';}},_0x562e92=_0x1257d6['useCallback'](()=>{const _0x24f7f7={..._0x8ec14e,'apiKey':_0x3e7a0f['trim'](),'enableAuth':_0x1c8b29};_0x3a31da(_0x24f7f7);},[_0x8ec14e,_0x3e7a0f,_0x1c8b29,_0x3a31da]),_0x51a9a0=_0x3e7a0f['trim']()[_0x2398f2(0xaa)]>0x0;return _0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1fe),'children':[_0x35442b[_0x2398f2(0x15b)]('div',{'className':_0x2398f2(0x10b),'children':_0x35442b[_0x2398f2(0x1e0)]('div',{'className':_0x2398f2(0x16d),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1d2),'children':_0x35442b['jsx'](_0x2398f2(0x19d),{'className':'univer-text-white','children':'⚙'})}),_0x35442b[_0x2398f2(0x15b)]('div',{'children':_0x35442b[_0x2398f2(0x15b)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x7b0402['t'](_0x2398f2(0x1f5))})})]})}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0xad),'children':[_0x35442b[_0x2398f2(0x15b)]('div',{'className':_0x2398f2(0x1c5)+_0x1e84b7(_0x4355b1,_0x100301)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x35442b[_0x2398f2(0x15b)]('div',{'className':_0x2398f2(0x1c3)+_0x209b07(_0x4355b1,_0x100301)+_0x2398f2(0xe1)}),_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':'univer-text-sm\x20univer-font-medium','children':_0x543c55(_0x4355b1)})]})}),_0x100301!==_0x13cda6[_0x2398f2(0x163)]['NONE']&&(_0x4355b1===_0x13cda6[_0x2398f2(0xa1)][_0x2398f2(0x11b)]||_0x100301===_0x13cda6[_0x2398f2(0x163)][_0x2398f2(0x1ae)])&&_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1dc),'children':_0x35442b['jsxs'](_0x2398f2(0x19f),{'className':_0x2398f2(0x139),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':_0x2398f2(0x1c1),'children':'⚠️'}),_0x35442b['jsx']('p',{'className':_0x2398f2(0x195),'children':_0x12512e(_0x100301)})]})})]}),_0x35442b[_0x2398f2(0x15b)]('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':'univer-space-y-5','children':[_0x35442b[_0x2398f2(0x1e0)]('div',{'className':_0x2398f2(0x9b),'children':[_0x35442b[_0x2398f2(0x1e0)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'children':'🔑'}),'\x20',_0x7b0402['t'](_0x2398f2(0x222)),_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':_0x2398f2(0x225),'children':'*'}),_0x15a36e&&_0x35442b['jsx']('a',{'href':_0x2398f2(0xb2),'onClick':()=>_0x28b526(!0x0),'className':_0x2398f2(0xa8),'title':_0x7b0402['t'](_0x2398f2(0x212)),'children':_0x35442b['jsx'](_0x1c64b0,{})})]}),_0x35442b[_0x2398f2(0x15b)](_0x52e301[_0x2398f2(0x10d)],{'type':_0x2398f2(0x1e3),'placeholder':_0x7b0402['t'](_0x2398f2(0x1ad)),'value':_0x3e7a0f,'onChange':_0x64ca0c,'disabled':_0x2fbeb2,'autoComplete':'off'}),_0x35442b[_0x2398f2(0x15b)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x7b0402['t'](_0x2398f2(0x165))})]}),_0x15a36e&&_0x1ae6d5&&_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1c7),'children':[_0x35442b['jsx']('a',{'href':_0x2398f2(0xb2),'onClick':()=>_0x28b526(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','title':_0x2398f2(0xcc),'children':_0x35442b[_0x2398f2(0x15b)](_0x1bbe5c,{})}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0x223),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0xd2),'children':_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':_0x2398f2(0x1a3),'children':'🚀'})}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0x181),'children':[_0x35442b[_0x2398f2(0x15b)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x7b0402['t']('mcpConfig.apiApplyInfo.title')}),_0x35442b['jsx']('p',{'className':_0x2398f2(0x97),'children':_0x7b0402['t'](_0x2398f2(0xf3))}),_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0xa3),'children':_0x10d6f9&&_0x35442b['jsxs']('a',{'href':_0x275136,'target':'_blank','rel':'noopener\x20noreferrer','className':_0x2398f2(0x210),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'children':'🤖'}),_0x7b0402['t'](_0x2398f2(0x179)),_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':_0x2398f2(0x1ea),'children':'↗'})]})}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x7b0402['t'](_0x2398f2(0x154))]})]})]})]}),_0x4b6dc0[_0x2398f2(0x196)]&&_0x35442b['jsxs'](_0x2398f2(0x19f),{'className':_0x2398f2(0x14b),'children':[_0x35442b[_0x2398f2(0x1e0)]('h4',{'className':_0x2398f2(0x21a),'children':[_0x35442b[_0x2398f2(0x15b)]('span',{'children':'🔗'}),'\x20',_0x7b0402['t'](_0x2398f2(0x1d4))]}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0xa6),'children':[_0x35442b['jsxs']('div',{'className':_0x2398f2(0x1ff),'children':[_0x35442b[_0x2398f2(0x15b)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x7b0402['t']('mcpConfig.configInstructions')}),_0x35442b[_0x2398f2(0x1e0)]('div',{'className':'univer-space-y-2','children':[_0x35442b['jsx'](_0x2398f2(0x19f),{'className':_0x2398f2(0x1f0),'children':_0x7b0402['t']('mcpConfig.configStepTitle')}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x35442b[_0x2398f2(0x1e0)]('div',{'className':_0x2398f2(0x208),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':_0x2398f2(0x152),'children':'1'}),_0x7b0402['t']('mcpConfig.configStep1')]}),_0x35442b['jsxs'](_0x2398f2(0x19f),{'className':_0x2398f2(0x208),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':_0x2398f2(0x152),'children':'2'}),_0x7b0402['t'](_0x2398f2(0x21f))]}),_0x35442b['jsxs'](_0x2398f2(0x19f),{'className':_0x2398f2(0x208),'children':[_0x35442b['jsx'](_0x2398f2(0x19d),{'className':_0x2398f2(0x152),'children':'3'}),_0x7b0402['t'](_0x2398f2(0x146))]})]})]})]}),_0x35442b[_0x2398f2(0x1e0)]('div',{'className':'univer-space-y-2','children':[_0x35442b[_0x2398f2(0x15b)]('div',{'className':_0x2398f2(0x1f0),'children':_0x2398f2(0x1b0)}),_0x35442b['jsx'](_0x2398f2(0x19f),{'className':_0x2398f2(0x1dd),'children':_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x185),{'className':_0x2398f2(0x95),'children':_0x2398f2(0x21d)+_0x4f4c49+_0x2398f2(0x1ec)+(_0x3e7a0f||_0x2398f2(0x1e1))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x35442b[_0x2398f2(0x1e0)]('div',{'className':_0x2398f2(0x1ff),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1f0),'children':_0x7b0402['t'](_0x2398f2(0xff))}),_0x35442b[_0x2398f2(0x1e0)]('div',{'className':_0x2398f2(0x9b),'children':[_0x35442b[_0x2398f2(0x1e0)]('div',{'className':_0x2398f2(0xbc),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1c9)}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0xbf),'children':[_0x35442b[_0x2398f2(0x15b)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2398f2(0x1cd)}),_0x35442b[_0x2398f2(0x15b)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x7b0402['t']('mcpConfig.sessionIdDescription')})]})]}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0xbc),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1c9)}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0xbf),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0x199),'children':_0x2398f2(0xb4)}),_0x35442b['jsx'](_0x2398f2(0x19f),{'className':_0x2398f2(0x20d),'children':_0x7b0402['t'](_0x2398f2(0x155))})]})]})]})]})]})]}),_0x35442b[_0x2398f2(0x15b)](_0x52e301[_0x2398f2(0x18c)],{'onClick':_0x562e92,'disabled':!_0x51a9a0||_0x2fbeb2,'className':_0x2398f2(0x15f),'children':_0x2fbeb2?_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x35442b[_0x2398f2(0x15b)]('span',{'children':'⟲'}),_0x7b0402['t'](_0x2398f2(0x151))]}):_0x35442b['jsxs'](_0x2398f2(0x19d),{'className':_0x2398f2(0x208),'children':[_0x35442b[_0x2398f2(0x15b)](_0x4ea0bf,{}),_0x7b0402['t']('mcpConfig.save')]})}),_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19f),{'className':_0x2398f2(0x1e5),'children':_0x35442b[_0x2398f2(0x1e0)]('div',{'className':_0x2398f2(0x13f),'children':[_0x35442b[_0x2398f2(0x15b)](_0x2398f2(0x19d),{'className':_0x2398f2(0x18e),'children':'💡'}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'className':_0x2398f2(0xeb),'children':[_0x35442b[_0x2398f2(0x15b)]('div',{'className':_0x2398f2(0xd1),'children':_0x2398f2(0x1f8)}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'children':['•',_0x7b0402['t'](_0x2398f2(0xd3))]}),_0x35442b[_0x2398f2(0x1e0)](_0x2398f2(0x19f),{'children':['•',_0x7b0402['t'](_0x2398f2(0xab))]})]})]})})]})})]});}const _0x5644ef=_0x90d58e(0x1f6),_0x38cd84={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x5d279f=Object[_0x90d58e(0x1f2)],_0x4edaff=(_0xf35ed3,_0x348561,_0x3efbab,_0x285069)=>{var _0x2fc071=_0x90d58e;for(var _0x2779cb=_0x285069>0x1?void 0x0:_0x285069?_0x5d279f(_0x348561,_0x3efbab):_0x348561,_0x41b715=_0xf35ed3[_0x2fc071(0xaa)]-0x1,_0x35e3d2;_0x41b715>=0x0;_0x41b715--)(_0x35e3d2=_0xf35ed3[_0x41b715])&&(_0x2779cb=_0x35e3d2(_0x2779cb)||_0x2779cb);return _0x2779cb;},_0x4af98e=(_0x29c210,_0x3eeaf1)=>(_0x373038,_0xe1bc6)=>_0x3eeaf1(_0x373038,_0xe1bc6,_0x29c210);const _0x89e307=_0x90d58e(0xf0),_0x1e2b6e='mcp-config-dialog';_0x526763['MCPConfigUIController']=class extends _0x500e45[_0x90d58e(0x1e8)]{constructor(_0x1ba37c,_0x420205,_0x1003d7,_0x3b455a,_0x19238d,_0x365d68,_0x1a0eec,_0x410029,_0x435d00,_0x3d7274){var _0x5c8cc7=_0x90d58e;super(),_0x517686(this,_0x5c8cc7(0x11d),new _0x39358c['BehaviorSubject'](!0x1)),_0x517686(this,_0x5c8cc7(0xac),new _0x39358c['BehaviorSubject']({})),_0x517686(this,_0x5c8cc7(0x1eb),new _0x39358c[(_0x5c8cc7(0x153))]({})),_0x517686(this,_0x5c8cc7(0xc6),new _0x39358c[(_0x5c8cc7(0x153))]('')),_0x517686(this,_0x5c8cc7(0x1c0),async _0x178df8=>{var _0x2087ee=_0x5c8cc7,_0x128925,_0x5d89b6;this[_0x2087ee(0x11d)]['next'](!0x0);try{const _0x59f374=await this[_0x2087ee(0x14f)](_0x178df8);if(!_0x59f374['isValid']){this[_0x2087ee(0x108)][_0x2087ee(0xed)]({'type':_0x52e301[_0x2087ee(0x1a5)][_0x2087ee(0x1a2)],'content':_0x59f374['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x178df8[_0x2087ee(0x1bf)]?await this['_localStorageService'][_0x2087ee(0x20f)](_0x89e307,_0x178df8[_0x2087ee(0x1bf)][_0x2087ee(0x13b)]()):await this[_0x2087ee(0x221)][_0x2087ee(0xf2)](_0x89e307),this[_0x2087ee(0xc6)]['next'](((_0x128925=_0x178df8[_0x2087ee(0x1bf)])==null?void 0x0:_0x128925[_0x2087ee(0x13b)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x2087ee(0x122)+((_0x5d89b6=_0x178df8['apiKey'])==null?void 0x0:_0x5d89b6['trim']())}),this[_0x2087ee(0x108)][_0x2087ee(0xed)]({'type':_0x52e301['MessageType'][_0x2087ee(0xb7)],'content':this[_0x2087ee(0x10f)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x52b5f5=_0x2087ee;this[_0x52b5f5(0x101)][_0x52b5f5(0x20e)](_0x1e2b6e);},0x320);}catch(_0x239cc2){this[_0x2087ee(0x11a)][_0x2087ee(0x189)](_0x2087ee(0x10e),_0x239cc2),this[_0x2087ee(0x108)][_0x2087ee(0xed)]({'type':_0x52e301[_0x2087ee(0x1a5)][_0x2087ee(0x1a2)],'content':this[_0x2087ee(0x10f)]['t'](_0x2087ee(0x126))});}finally{this[_0x2087ee(0x11d)][_0x2087ee(0xd0)](!0x1);}}),(this[_0x5c8cc7(0x119)]=_0x1ba37c,this[_0x5c8cc7(0xca)]=_0x420205,this[_0x5c8cc7(0x198)]=_0x1003d7,this[_0x5c8cc7(0x221)]=_0x3b455a,this[_0x5c8cc7(0x101)]=_0x19238d,this[_0x5c8cc7(0x108)]=_0x365d68,this[_0x5c8cc7(0x13e)]=_0x1a0eec,this['_localeService']=_0x410029,this[_0x5c8cc7(0x11a)]=_0x435d00,this[_0x5c8cc7(0x1f9)]=_0x3d7274,this[_0x5c8cc7(0xde)](),this[_0x5c8cc7(0x11f)](),this[_0x5c8cc7(0xe5)]());}['showConfigPanel'](){var _0x190691=_0x90d58e;const _0x488fc9=this['_configService'][_0x190691(0x21c)](_0x5644ef);_0x488fc9!=null&&_0x488fc9[_0x190691(0x196)]&&this[_0x190691(0x101)][_0x190691(0x1db)]({'id':_0x1e2b6e,'title':{'title':this[_0x190691(0x10f)]['t'](_0x190691(0xd9))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x244c58=_0x190691;this[_0x244c58(0x101)]['close'](_0x1e2b6e);}});}[_0x90d58e(0xb0)](){var _0x1a0ff2=_0x90d58e;return this[_0x1a0ff2(0xac)][_0x1a0ff2(0x9e)];}[_0x90d58e(0xe5)](){var _0x7ffbed=_0x90d58e;this[_0x7ffbed(0xec)](this[_0x7ffbed(0x13e)]['register'](_0x7ffbed(0x1a6),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){var _0x22e660=_0x90d58e;return _0x20781d[_0x22e660(0x16a)](()=>{var _0x273025=_0x22e660,_0x52140f,_0x5c94c9,_0x557e1b;return _0x35442b['jsx'](_0x16c605,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x273025(0xac)][_0x273025(0x9e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x273025(0x1c0)],'loading':this['_loading$'][_0x273025(0x9e)],'connectionStatus$':(_0x52140f=this[_0x273025(0x1f9)])==null?void 0x0:_0x52140f[_0x273025(0x12f)],'connectionError$':(_0x5c94c9=this[_0x273025(0x1f9)])==null?void 0x0:_0x5c94c9[_0x273025(0x16c)],'currentSessionId$':(_0x557e1b=this[_0x273025(0x1f9)])==null?void 0x0:_0x557e1b[_0x273025(0x94)]});},this[_0x22e660(0x119)]);}[_0x90d58e(0xde)](){var _0x136d46=_0x90d58e;this[_0x136d46(0xec)](this['_configService'][_0x136d46(0x166)](_0x13cda6['MCP_PLUGIN_CONFIG_KEY'])[_0x136d46(0xba)](_0x21940f=>{var _0x438f3c=_0x136d46;this[_0x438f3c(0xac)]['next'](_0x21940f||{});}));const _0x300799=this[_0x136d46(0x198)][_0x136d46(0x21c)](_0x13cda6[_0x136d46(0x21b)]);this['_mcpCoreConfig$'][_0x136d46(0xd0)](_0x300799||{}),this[_0x136d46(0xec)](this[_0x136d46(0x198)][_0x136d46(0x166)](_0x5644ef)[_0x136d46(0xba)](_0x89f660=>{var _0x4c63db=_0x136d46;this[_0x4c63db(0x1eb)][_0x4c63db(0xd0)](_0x89f660||{});}));const _0x3352f7=this[_0x136d46(0x198)][_0x136d46(0x21c)](_0x5644ef);this[_0x136d46(0x1eb)]['next'](_0x3352f7||{});}async[_0x90d58e(0x11f)](){var _0x35b25c=_0x90d58e;const _0xc0dc11=this[_0x35b25c(0x198)][_0x35b25c(0x21c)](_0x5644ef);if(!(_0xc0dc11!=null&&_0xc0dc11[_0x35b25c(0x196)]))return;const _0x1a19c4=await this['_localStorageService'][_0x35b25c(0x129)](_0x89e307);_0x1a19c4&&(this[_0x35b25c(0x1f9)][_0x35b25c(0x1fb)]({'Authorization':_0x35b25c(0x122)+_0x1a19c4}),this[_0x35b25c(0xc6)][_0x35b25c(0xd0)](_0x1a19c4));}async[_0x90d58e(0x14f)](_0x11a123){var _0x22872a=_0x90d58e;if(!_0x11a123[_0x22872a(0x1bf)]||_0x11a123[_0x22872a(0x1bf)][_0x22872a(0x13b)]()[_0x22872a(0xaa)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x22872a(0x10f)]['t'](_0x22872a(0x18d))};if(_0x11a123[_0x22872a(0x1bf)][_0x22872a(0x13b)]()[_0x22872a(0xaa)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x22872a(0xb8))};try{const _0x35452d=await this[_0x22872a(0x119)][_0x22872a(0x9a)](_0x13cda6['MCPConnectionController'])['validateApiKey'](_0x11a123['apiKey'][_0x22872a(0x13b)]());return _0x35452d[_0x22872a(0xcb)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x35452d[_0x22872a(0x189)]||this[_0x22872a(0x10f)]['t'](_0x22872a(0x15a))};}catch(_0x26ada5){return console[_0x22872a(0xe9)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x26ada5),{'isValid':!0x0};}}},_0x526763[_0x90d58e(0x1ef)]=_0x4edaff([_0x4af98e(0x0,_0x500e45['Inject'](_0x500e45[_0x90d58e(0x148)])),_0x4af98e(0x1,_0x20781d[_0x90d58e(0x1f1)]),_0x4af98e(0x2,_0x500e45[_0x90d58e(0xd8)]),_0x4af98e(0x3,_0x500e45[_0x90d58e(0x9f)]),_0x4af98e(0x4,_0x20781d['IDialogService']),_0x4af98e(0x5,_0x20781d[_0x90d58e(0xb5)]),_0x4af98e(0x6,_0x500e45['Inject'](_0x20781d[_0x90d58e(0x187)])),_0x4af98e(0x7,_0x500e45['Inject'](_0x500e45['LocaleService'])),_0x4af98e(0x8,_0x500e45[_0x90d58e(0x14e)]),_0x4af98e(0x9,_0x500e45[_0x90d58e(0xd5)](_0x13cda6[_0x90d58e(0x12e)]))],_0x526763['MCPConfigUIController']);const _0x114f18={'id':'mcp-ui.command.openConfigPanel','type':_0x500e45['CommandType'][_0x90d58e(0x1a8)],'handler':async(_0xe05e25,_0xaa87de)=>(_0xe05e25['get'](_0x526763['MCPConfigUIController'])['showConfigPanel'](),!0x0)};function _0x320f45(_0x117b16,_0xfc23b2){var _0x44e6ed=_0x90d58e;switch(_0x117b16){case _0x13cda6[_0x44e6ed(0xa1)][_0x44e6ed(0x219)]:return _0x44e6ed(0x14c);case _0x13cda6[_0x44e6ed(0xa1)]['CONNECTING']:return _0x44e6ed(0x202);case _0x13cda6[_0x44e6ed(0xa1)][_0x44e6ed(0xb3)]:return _0x44e6ed(0x160);case _0x13cda6[_0x44e6ed(0xa1)][_0x44e6ed(0x11b)]:switch(_0xfc23b2){case _0x13cda6[_0x44e6ed(0x163)][_0x44e6ed(0x1ae)]:return _0x44e6ed(0x1e7);case _0x13cda6[_0x44e6ed(0x163)]['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0x13cda6[_0x44e6ed(0x163)][_0x44e6ed(0x218)]:return _0x44e6ed(0x118);case _0x13cda6['MCPConnectionError'][_0x44e6ed(0x17b)]:return'mcpStatus.maxRetriesExceeded';default:return _0x44e6ed(0x192);}case _0x13cda6[_0x44e6ed(0xa1)]['RETRYING']:return _0x44e6ed(0x170);default:return'mcpStatus.unknown';}}function _0x5e43dd(_0xb68e19,_0xf0f493,_0x3e6fd9,_0x44c7a0=!0x0){var _0x2f27ed=_0x90d58e;const _0x186ea3=_0x320f45(_0xb68e19,_0xf0f493),_0x2324c8=_0x3e6fd9['t'](_0x186ea3);return _0x44c7a0?_0xb68e19===_0x13cda6[_0x2f27ed(0xa1)][_0x2f27ed(0x219)]&&_0xf0f493===_0x13cda6[_0x2f27ed(0x163)][_0x2f27ed(0x1ae)]?_0x2324c8+_0x2f27ed(0x99)+_0x3e6fd9['t'](_0x2f27ed(0x200)):_0xb68e19===_0x13cda6[_0x2f27ed(0xa1)][_0x2f27ed(0xb3)]?''+_0x2324c8:_0xb68e19===_0x13cda6[_0x2f27ed(0xa1)][_0x2f27ed(0x219)]||_0xb68e19===_0x13cda6[_0x2f27ed(0xa1)]['FAILED']?_0x2324c8+_0x2f27ed(0x99)+_0x3e6fd9['t'](_0x2f27ed(0x13c)):_0x2324c8:_0x2324c8;}function _0x6057d7(_0x59ceb4){var _0x565056=_0x90d58e;switch(_0x59ceb4){case _0x13cda6[_0x565056(0xa1)]['CONNECTED']:return'univer-text-green-500';case _0x13cda6[_0x565056(0xa1)][_0x565056(0x9d)]:case _0x13cda6[_0x565056(0xa1)][_0x565056(0x18a)]:return _0x565056(0x211);case _0x13cda6[_0x565056(0xa1)][_0x565056(0x11b)]:case _0x13cda6['MCPConnectionStatus'][_0x565056(0x219)]:return _0x565056(0x225);default:return'univer-text-gray-500';}}function _0x400aa9(_0x3dcc4f){var _0x4b31f4=_0x90d58e;const {status$:_0x1d3eea,error$:_0x2b1059,onConfigure:_0xff30cd,showClickable:_0x470e35=!0x0}=_0x3dcc4f,_0x2f4640=_0x20781d[_0x4b31f4(0x9c)](_0x1d3eea,_0x13cda6[_0x4b31f4(0xa1)][_0x4b31f4(0x219)]),_0x2c245b=_0x20781d[_0x4b31f4(0x9c)](_0x2b1059,_0x13cda6[_0x4b31f4(0x163)]['NONE']),_0x30ecbd=_0x20781d['useDependency'](_0x500e45['LocaleService']),_0x27f88e=_0x2f4640===_0x13cda6[_0x4b31f4(0xa1)][_0x4b31f4(0xb3)];_0x2f4640===_0x13cda6[_0x4b31f4(0xa1)][_0x4b31f4(0x9d)]||_0x13cda6['MCPConnectionStatus']['RETRYING'];const _0x51309c=_0x30ecbd['t'](_0x320f45(_0x2f4640,_0x2c245b)),_0xccdeb=_0x5e43dd(_0x2f4640,_0x2c245b,_0x30ecbd,_0x470e35),_0x5998bf=_0x6057d7(_0x2f4640),_0x5704b2=_0x27f88e?_0x35442b[_0x4b31f4(0x15b)](_0x1d4da4,{}):_0x35442b['jsx'](_0x3d56dd,{}),_0x3963fd=_0x1257d6['useCallback'](()=>{_0x470e35&&_0xff30cd&&_0xff30cd();},[_0x470e35,_0xff30cd]);function _0x126f25(){var _0x31a5b5=_0x4b31f4;return _0x35442b[_0x31a5b5(0x1e0)](_0x31a5b5(0x19f),{'className':_0x52e301['clsx'](_0x31a5b5(0x1d5),_0x470e35&&_0xff30cd&&_0x31a5b5(0x188)),'onClick':_0x470e35&&_0xff30cd?_0x3963fd:void 0x0,'children':[_0x35442b['jsx'](_0x31a5b5(0x19f),{'className':_0x52e301['clsx'](_0x31a5b5(0x17a),_0x5998bf),'children':_0x5704b2}),_0x35442b[_0x31a5b5(0x15b)]('div',{'className':_0x31a5b5(0xc8),'children':_0x51309c})]});}return _0x35442b[_0x4b31f4(0x15b)](_0x52e301[_0x4b31f4(0x19e)],{'title':_0xccdeb,'placement':_0x4b31f4(0xc2),'children':_0x126f25()});}var _0x2d47c1=Object[_0x90d58e(0x1f2)],_0x2e7975=(_0xe069b5,_0x31130a,_0x5249e7,_0x1add5c)=>{var _0x222688=_0x90d58e;for(var _0x416ce2=_0x1add5c>0x1?void 0x0:_0x1add5c?_0x2d47c1(_0x31130a,_0x5249e7):_0x31130a,_0x1cacc4=_0xe069b5[_0x222688(0xaa)]-0x1,_0x47d23b;_0x1cacc4>=0x0;_0x1cacc4--)(_0x47d23b=_0xe069b5[_0x1cacc4])&&(_0x416ce2=_0x47d23b(_0x416ce2)||_0x416ce2);return _0x416ce2;},_0x1457b8=(_0x16139d,_0x44d765)=>(_0xcdae00,_0x51f528)=>_0x44d765(_0xcdae00,_0x51f528,_0x16139d);_0x526763[_0x90d58e(0x1e9)]=class extends _0x500e45[_0x90d58e(0x1e8)]{constructor(_0x276aa9,_0x139202,_0x153fda,_0x4d163f){var _0x5b5e35=_0x90d58e;super(),this[_0x5b5e35(0x119)]=_0x276aa9,this[_0x5b5e35(0x1d0)]=_0x139202,this[_0x5b5e35(0xca)]=_0x153fda,this[_0x5b5e35(0x198)]=_0x4d163f,this[_0x5b5e35(0x175)](),this[_0x5b5e35(0xa7)]();}[_0x90d58e(0x175)](){var _0xbbf06b=_0x90d58e;const _0x131fa1=this['_configService'][_0xbbf06b(0x21c)](_0x5644ef);_0x131fa1!=null&&_0x131fa1['showDeveloperTools']&&(this[_0xbbf06b(0x1d0)]['enableAutoConnect']=!0x1);}['_initStatusComponent'](){var _0x106d02=_0x90d58e;const _0x4136df=this['_configService']['getConfig'](_0x5644ef);(_0x4136df==null?void 0x0:_0x4136df[_0x106d02(0x1a1)])!==!0x1&&this[_0x106d02(0xec)](this[_0x106d02(0xca)]['registerComponent'](_0x20781d['BuiltInUIPart'][_0x106d02(0x12a)],()=>{var _0x52c6d1=_0x106d02,_0xeeeb90;return _0x20781d[_0x52c6d1(0x16a)](_0x400e3c({'status$':this['_connectionController'][_0x52c6d1(0x12f)],'error$':this[_0x52c6d1(0x1d0)]['connectionError$'],'onConfigure':()=>this[_0x52c6d1(0x1ba)](),'showClickable':(_0xeeeb90=_0x4136df==null?void 0x0:_0x4136df[_0x52c6d1(0x196)])!=null?_0xeeeb90:!0x1}),this[_0x52c6d1(0x119)]);}));}[_0x90d58e(0x1ba)](){var _0x38c654=_0x90d58e;this['_injector']['get'](_0x526763[_0x38c654(0x1ef)])['showConfigPanel']();}},_0x526763[_0x90d58e(0x1e9)]=_0x2e7975([_0x1457b8(0x0,_0x500e45[_0x90d58e(0xd5)](_0x500e45[_0x90d58e(0x148)])),_0x1457b8(0x1,_0x500e45[_0x90d58e(0xd5)](_0x13cda6[_0x90d58e(0x12e)])),_0x1457b8(0x2,_0x20781d[_0x90d58e(0x1f1)]),_0x1457b8(0x3,_0x500e45[_0x90d58e(0xd8)])],_0x526763[_0x90d58e(0x1e9)]);function _0x400e3c(_0x465a8f){const {status$:_0x5d00f4,error$:_0x4d76f8,onConfigure:_0x4c7cfd,showClickable:_0x23bdfe}=_0x465a8f;return function(){var _0x18d5fb=_0x56db;return _0x35442b[_0x18d5fb(0x15b)](_0x400aa9,{'status$':_0x5d00f4,'error$':_0x4d76f8,'onConfigure':_0x4c7cfd,'showClickable':_0x23bdfe});};}function _0x5483a3(_0x26d32f){var _0x32552e=_0x90d58e;return{'id':_0x114f18['id'],'type':_0x20781d[_0x32552e(0x1de)][_0x32552e(0x1b9)],'icon':_0x32552e(0x12b),'title':_0x32552e(0xd9),'tooltip':_0x32552e(0xd9)};}const _0x5cbc32={[_0x20781d['RibbonStartGroup'][_0x90d58e(0xc4)]]:{[_0x114f18['id']]:{'order':0xa,'menuItemFactory':_0x5483a3}}};var _0x349f61=Object['getOwnPropertyDescriptor'],_0x38a7e3=(_0x50dda2,_0x4dc3c8,_0x5c6f59,_0x581e7e)=>{var _0x2a3832=_0x90d58e;for(var _0x56442d=_0x581e7e>0x1?void 0x0:_0x581e7e?_0x349f61(_0x4dc3c8,_0x5c6f59):_0x4dc3c8,_0x34cb90=_0x50dda2[_0x2a3832(0xaa)]-0x1,_0x49da63;_0x34cb90>=0x0;_0x34cb90--)(_0x49da63=_0x50dda2[_0x34cb90])&&(_0x56442d=_0x49da63(_0x56442d)||_0x56442d);return _0x56442d;},_0x220d12=(_0x27b35d,_0x23e4a3)=>(_0x13f725,_0x195c50)=>_0x23e4a3(_0x13f725,_0x195c50,_0x27b35d);_0x526763['MCPUIMenuController']=class extends _0x500e45[_0x90d58e(0x1e8)]{constructor(_0x23f731,_0x8de2e5){var _0x1ab228=_0x90d58e;super(),this[_0x1ab228(0x184)]=_0x23f731,this[_0x1ab228(0x182)]=_0x8de2e5,this[_0x1ab228(0xfa)](),this[_0x1ab228(0xd6)]();}[_0x90d58e(0xfa)](){var _0x2d7f0a=_0x90d58e;[_0x114f18][_0x2d7f0a(0xf6)](_0x142d03=>{var _0x4043ca=_0x2d7f0a;this[_0x4043ca(0xec)](this['_commandService'][_0x4043ca(0x133)](_0x142d03));});}[_0x90d58e(0xd6)](){var _0x442356=_0x90d58e;this[_0x442356(0x182)][_0x442356(0x1cb)](_0x5cbc32);}},_0x526763[_0x90d58e(0x1c2)]=_0x38a7e3([_0x220d12(0x0,_0x500e45[_0x90d58e(0xf9)]),_0x220d12(0x1,_0x20781d[_0x90d58e(0x132)])],_0x526763['MCPUIMenuController']);const _0x463f9e={'mcpStatus':{'disconnected':_0x90d58e(0x137),'connecting':_0x90d58e(0x201),'connected':_0x90d58e(0x190),'failed':_0x90d58e(0x98),'retrying':'MCP\x20Retrying...','unknown':_0x90d58e(0x180),'unauthorized':_0x90d58e(0xdd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x90d58e(0x103),'maxRetriesExceeded':_0x90d58e(0x1d9),'clickToConnect':_0x90d58e(0x1e4),'clickToConfigure':_0x90d58e(0x102)},'mcpConfig':{'title':_0x90d58e(0x1b0),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x90d58e(0x113),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x90d58e(0x107),'connectionInfo':_0x90d58e(0xbb),'mcpClientConfig':_0x90d58e(0xbb),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x90d58e(0x136),'configStep1':_0x90d58e(0x226),'configStep2':_0x90d58e(0xc5),'configStep3':_0x90d58e(0x194),'sessionId':'Session\x20ID','sessionIdDescription':_0x90d58e(0x1b2),'authorizationDescription':_0x90d58e(0x168),'configParameters':_0x90d58e(0xbd),'maxRetries':_0x90d58e(0x1fa),'save':'Save\x20Configuration','saving':_0x90d58e(0x1a4),'note1':_0x90d58e(0x157),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x90d58e(0x143),'configError':_0x90d58e(0xe8),'apiApplyInfo':{'title':_0x90d58e(0x207),'description':_0x90d58e(0xdf),'univerAiLabel':_0x90d58e(0xfb),'getStarted':_0x90d58e(0x215)},'validation':{'apiKeyRequired':_0x90d58e(0x140),'apiKeyTooShort':_0x90d58e(0x10c),'invalidConfig':_0x90d58e(0x1a9),'invalidApiKey':_0x90d58e(0xb6)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x90d58e(0x15e),'failed':_0x90d58e(0x1b3),'retrying':_0x90d58e(0xe3)},'connectionError':{'unauthorized':_0x90d58e(0x1ce),'sessionOccupied':_0x90d58e(0xdc),'networkError':_0x90d58e(0xa4),'maxRetriesExceeded':_0x90d58e(0x203)}}},_0x38c5d2={'mcpStatus':{'disconnected':_0x90d58e(0x213),'connecting':'MCP\x20连接中...','connected':_0x90d58e(0x1a7),'failed':_0x90d58e(0x167),'retrying':'MCP\x20重连中...','unknown':_0x90d58e(0x1b6),'unauthorized':_0x90d58e(0x1fd),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x90d58e(0x141),'clickToConfigure':_0x90d58e(0x112)},'mcpConfig':{'title':_0x90d58e(0x121),'description':_0x90d58e(0xcd),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x90d58e(0x197),'apiKeyHint':_0x90d58e(0x117),'enableAuth':_0x90d58e(0x174),'enableAuthHint':_0x90d58e(0x1ee),'connectionInfo':_0x90d58e(0x173),'mcpClientConfig':_0x90d58e(0x173),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x90d58e(0x18f),'configStep1':_0x90d58e(0x214),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x90d58e(0x1c6),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x90d58e(0xee),'configParameters':_0x90d58e(0x1c4),'maxRetries':_0x90d58e(0x177),'save':_0x90d58e(0x111),'saving':_0x90d58e(0x128),'note1':_0x90d58e(0x1d6),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x90d58e(0xfe),'configError':_0x90d58e(0x16e),'apiApplyInfo':{'title':_0x90d58e(0xa5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x90d58e(0xc7),'getStarted':_0x90d58e(0x205)},'validation':{'apiKeyRequired':_0x90d58e(0x1e6),'apiKeyTooShort':_0x90d58e(0x17e),'invalidConfig':_0x90d58e(0xf7),'invalidApiKey':_0x90d58e(0x149)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x90d58e(0xda),'failed':_0x90d58e(0x209),'retrying':_0x90d58e(0x204)},'connectionError':{'unauthorized':_0x90d58e(0x193),'sessionOccupied':_0x90d58e(0x1b8),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x90d58e(0xc9)}}};var _0x1127ce=Object[_0x90d58e(0x144)],_0x5bc0e5=Object[_0x90d58e(0x1f2)],_0x24298f=(_0x12683d,_0x1ddcd7,_0x337660)=>_0x1ddcd7 in _0x12683d?_0x1127ce(_0x12683d,_0x1ddcd7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x337660}):_0x12683d[_0x1ddcd7]=_0x337660,_0x3fa151=(_0x20386b,_0x5d8d9c,_0x1104de,_0x7563b7)=>{for(var _0x4529df=_0x7563b7>0x1?void 0x0:_0x7563b7?_0x5bc0e5(_0x5d8d9c,_0x1104de):_0x5d8d9c,_0x286385=_0x20386b['length']-0x1,_0x14f786;_0x286385>=0x0;_0x286385--)(_0x14f786=_0x20386b[_0x286385])&&(_0x4529df=_0x14f786(_0x4529df)||_0x4529df);return _0x4529df;},_0x38c388=(_0x4002e0,_0x8ca51c)=>(_0x6de69b,_0x303559)=>_0x8ca51c(_0x6de69b,_0x303559,_0x4002e0),_0x553fd1=(_0x3c4e4b,_0x1cbeda,_0x46c95b)=>_0x24298f(_0x3c4e4b,_0x1cbeda+'',_0x46c95b);_0x526763['UniverMCPUIPlugin']=class extends _0x500e45[_0x90d58e(0x169)]{constructor(_0x1213e5=_0x38cd84,_0x174162,_0x5bbee3,_0xcac1b8,_0x488159,_0x4c8411){var _0x1b36e9=_0x90d58e;super(),this[_0x1b36e9(0xfd)]=_0x1213e5,this[_0x1b36e9(0x119)]=_0x174162,this['_configService']=_0x5bbee3,this[_0x1b36e9(0xca)]=_0xcac1b8,this['_localStorageService']=_0x488159,this[_0x1b36e9(0x10f)]=_0x4c8411;const {..._0x3a4fec}=_0x500e45[_0x1b36e9(0x1be)]({},_0x38cd84,this[_0x1b36e9(0xfd)]);this['_configService']['setConfig'](_0x5644ef,_0x3a4fec);}async[_0x90d58e(0x115)](){var _0x349d63=_0x90d58e;const _0x8797ff=[[_0x526763[_0x349d63(0x1e9)]],[_0x526763[_0x349d63(0x1ef)]],[_0x526763[_0x349d63(0x1c2)]]];this[_0x349d63(0x119)][_0x349d63(0x20b)](_0x4b5635['ISocketService'])||_0x8797ff[_0x349d63(0xf4)]([_0x4b5635[_0x349d63(0x1ac)],{'useClass':_0x4b5635['WebSocketService']}]),_0x8797ff[_0x349d63(0xf6)](_0x111372=>this['_injector'][_0x349d63(0x17f)](_0x111372)),this[_0x349d63(0x119)][_0x349d63(0x9a)](_0x526763[_0x349d63(0x1e9)]),this[_0x349d63(0x119)]['get'](_0x526763[_0x349d63(0x1ef)]),this['_injector'][_0x349d63(0x9a)](_0x526763[_0x349d63(0x1c2)]);}},_0x553fd1(_0x526763['UniverMCPUIPlugin'],_0x90d58e(0x1bc),'MCP_UI_PLUGIN'),_0x526763['UniverMCPUIPlugin']=_0x3fa151([_0x500e45['DependentOn'](_0x13cda6[_0x90d58e(0xd7)]),_0x38c388(0x1,_0x500e45[_0x90d58e(0xd5)](_0x500e45[_0x90d58e(0x148)])),_0x38c388(0x2,_0x500e45[_0x90d58e(0xd8)]),_0x38c388(0x3,_0x20781d[_0x90d58e(0x1f1)]),_0x38c388(0x4,_0x500e45[_0x90d58e(0x9f)]),_0x38c388(0x5,_0x500e45[_0x90d58e(0xd5)](_0x500e45['LocaleService']))],_0x526763[_0x90d58e(0x96)]),_0x526763['MCPConfigPanel']=_0x16c605,_0x526763[_0x90d58e(0xa0)]=_0x400aa9,_0x526763['OpenMCPConfigPanelCommand']=_0x114f18,_0x526763[_0x90d58e(0x104)]=_0x463f9e,_0x526763[_0x90d58e(0x134)]=_0x38c5d2,Object['defineProperty'](_0x526763,Symbol['toStringTag'],{'value':'Module'});}));function _0x56db(_0x2c4898,_0x55b03d){var _0x1266e1=_0x1266();return _0x56db=function(_0x56db14,_0x386ab5){_0x56db14=_0x56db14-0x94;var _0x1b1c22=_0x1266e1[_0x56db14];return _0x1b1c22;},_0x56db(_0x2c4898,_0x55b03d);}function _0x1266(){var _0x5cc037=['MCP\x20Connecting...','mcpStatus.connecting','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','重连中...','几秒钟内获取您的\x20API\x20密钥','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','What\x20is\x20API\x20Key?','univer-flex\x20univer-items-center\x20univer-gap-2','连接失败','49SdDKBw','has','M5.21243\x205.62036L11.8791\x2012.287','univer-text-xs\x20univer-text-gray-500','close','setItem','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','univer-text-yellow-500','mcpConfig.apiApplyInfo.title','MCP\x20已断开','复制以下\x20JSON\x20配置','Get\x20your\x20API\x20key\x20in\x20seconds','children','className','NETWORK_ERROR','DISCONNECTED','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP_PLUGIN_CONFIG_KEY','getConfig','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','mcpConfig.configStep2','univerjs-icon\x20univerjs-icon-','_localStorageService','mcpConfig.apiKey','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','react','univer-text-red-500','Copy\x20the\x20JSON\x20configuration\x20below','help-single','url(#on-line-icon_clip0_910_349)','sessionId$','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','UniverMCPUIPlugin','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','MCP\x20Connection\x20Failed','\x20-\x20','get','univer-space-y-2','useObservable','CONNECTING','value','ILocalStorageService','MCPStatusDisplay','MCPConnectionStatus','SESSION_ID_OCCUPIED','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','什么是\x20API\x20密钥?','univer-space-y-4','_initStatusComponent','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','2762485ZlemVz','length','mcpConfig.note2','_mcpCoreConfig$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','substring','propertyIsEnumerable','getCurrentConfig','1em','javascript:void(0)','CONNECTED','Authorization:','IMessageService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Success','mcpConfig.validation.apiKeyTooShort','currentColor','subscribe','MCP\x20Client\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','Configuration\x20Parameters:','60234ylFRzn','univer-min-w-0\x20univer-flex-1','url(#off-line-icon_clip0_910_343)','evenodd','bottom','HelpSingle','OTHERS','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_apiKey$','Univer\x20AI\x20控制台','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','超出最大重试次数,请稍后再试','_uiPartsService','isValid','Close','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-bg-green-500','fill','next','univer-font-medium','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.note1','OffLineIcon','Inject','_initializeMenus','UniverMCPPlugin','IConfigService','mcpConfig.title','已连接','18XaCtCa','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','_initConfigSync','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','React','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','https://console.univer.plus','Retrying...','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','_registerComponent','object','130431PzjcOf','Failed\x20to\x20save\x20configuration','warn','call','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','disposeWithMe','show','带有\x20Bearer\x20前缀的\x20API\x20密钥。','random','mcp.apiKey','url(#$1','removeItem','mcpConfig.apiApplyInfo.description','push','xlink:href','forEach','配置无效','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','ICommandService','_initializeCommands','Univer\x20AI\x20Console','colorChannel1','_config','配置保存成功','mcpConfig.configParameters','univer-bg-blue-500','_dialogService','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','enUS','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','current','Enable\x20authentication\x20for\x20secure\x20connections','_messageService','icon','defIds','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Input','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_localeService','CloseSmallSingle','保存配置','点击配置\x20MCP','API\x20Key','indexOf','onStarting','rxjs','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.networkError','_injector','_logService','FAILED','map','_loading$','univer.plus','_loadStoredApiKey','assign','MCP\x20配置','Bearer\x20','defs','univer.ai','replace','mcpConfig.configError','use','保存中...','getItem','HEADER_MENU','MenuIcon','includes','string','MCPConnectionController','connectionStatus$','concat','round','IMenuManagerService','registerCommand','zhCN','none','Configuration\x20Steps:','MCP\x20Disconnected','UniverUi','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','trim','mcpStatus.clickToConnect','@univerjs-pro/mcp','_componentManager','univer-flex\x20univer-gap-3','API\x20key\x20is\x20required','点击连接\x20MCP','UniverProMcpUi','Configuration\x20saved\x20successfully','defineProperty','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','mcpConfig.configStep3','svg','Injector','API\x20密钥无效,请检查密钥是否正确','mcpConfig.connectionError.maxRetriesExceeded','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpStatus.disconnected','attrs','ILogService','_validateConfig','close-small-single','mcpConfig.saving','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','BehaviorSubject','mcpConfig.apiApplyInfo.getStarted','mcpConfig.authorizationDescription','hasOwnProperty','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','882370imvgYc','@univerjs/ui','mcpConfig.validation.invalidApiKey','jsx','263106gMQFin','getOwnPropertySymbols','Connected','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','mcpStatus.connected','287048jQIlUN','mcpConfig.connectionStatus.retrying','MCPConnectionError','check-mark-icon','mcpConfig.apiKeyHint','subscribeConfigValue$','MCP\x20连接失败','API\x20key\x20with\x20Bearer\x20prefix.','Plugin','connectInjector','prototype','connectionError$','univer-flex\x20univer-items-center\x20univer-gap-3','配置保存失败','LocaleService','mcpStatus.retrying','useRef','extend','MCP\x20客户端配置','启用身份验证','_initAutoConnect','toString','最大重试次数','0\x200\x2017\x2016','mcpConfig.apiApplyInfo.univerAiLabel','univer-mr-2\x20univer-flex\x20univer-text-xl','MAX_RETRIES_EXCEEDED','mcpConfig.connectionStatus.connecting','useState','API\x20密钥长度至少需要\x2010\x20位','add','MCP\x20Unknown\x20Status','univer-flex-1','_menuManagerService','forwardRef','_commandService','pre','OnLineIcon','ComponentManager','\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','error','RETRYING','tag','Button','mcpConfig.validation.apiKeyRequired','univer-flex-shrink-0\x20univer-text-blue-500','配置步骤:','MCP\x20Connected','translate(.97)','mcpStatus.failed','权限验证失败,请检查您的\x20API\x20密钥','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','showDeveloperTools','请输入您的\x20API\x20密钥','_configService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','idSuffix','clipPath','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','span','Tooltip','div','mcpConfig.connectionError.networkError','showStatus','Error','univer-text-blue-600','Saving...','MessageType','MCPConfigPanel','MCP\x20已连接','COMMAND','Invalid\x20configuration','mcpConfig.connectionStatus.connected','off-line-icon','ISocketService','mcpConfig.apiKeyPlaceholder','UNAUTHORIZED','function','MCP\x20Configuration','UniverDesign','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connection\x20Failed','white','displayName','MCP\x20状态未知','path','会话\x20ID\x20已被占用,请稍后再试','BUTTON','_handleConfigure','amd','pluginName','on-line-icon_clip0_910_349','merge','apiKey','_handleConfigSave','univer-flex-shrink-0\x20univer-text-red-500','MCPUIMenuController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','配置参数:','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','会话ID','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','UniverIcon','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','0\x200\x2016\x2016','mergeMenu','mcpServerUrl','univer_session_id:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','4cajFrW','_connectionController','82596DEFjYg','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','http://www.w3.org/2000/svg','mcpConfig.connectionInfo','univer-flex\x20univer-items-center','配置更改将立即生效','createElement','univer-bg-gray-500','MCP:\x20Max\x20Retries\x20Exceeded','65Dwblyp','open','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MenuItemType','UniverCore','jsxs','<API_KEY>','off-line-icon_clip0_910_343','text','Click\x20to\x20connect\x20MCP','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20密钥不能为空','mcpStatus.unauthorized','Disposable','MCPConnectionUIController','univer-text-gray-400','_config$','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','mask','启用身份验证以获得安全连接','MCPConfigUIController','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','IUIPartsService','getOwnPropertyDescriptor','UniverProMcp','CheckMarkIcon','mcpConfig.description','mcp-ui.config','univer-bg-red-500','Configuration\x20Notes:','_mcpConnectionController','Max\x20Retries','__setCustomHeaders','apply','MCP:\x20未授权','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-space-y-3','mcpStatus.clickToConfigure'];_0x1266=function(){return _0x5cc037;};return _0x1266();}
@@ -1 +1 @@
1
- function _0x4984(_0x478f56,_0x4f252b){var _0x469eb5=_0x469e();return _0x4984=function(_0x49847d,_0x5607b5){_0x49847d=_0x49847d-0x14c;var _0x3ea3b5=_0x469eb5[_0x49847d];return _0x3ea3b5;},_0x4984(_0x478f56,_0x4f252b);}function _0x469e(){var _0x58db68=['2psyuts','MCP\x20Configuration','MCP\x20Connected','Configuration\x20Steps:','Max\x20Retries','Connection\x20Failed','3089513YXBnqH','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','object','API\x20Key','7359710XXKcQu','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20ID\x20Occupied','1315cIsTiQ','23696bNjosL','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20saved\x20successfully','2164938yewtBh','Configuration\x20Parameters:','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3770454hiWcFB','315PNxptt','UniverProMcpUiCaES','Session\x20ID','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1271667evbkZT','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','MCP\x20Disconnected','Enter\x20your\x20API\x20key','function','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Saving...','Disconnected','MCP\x20Connection\x20Failed','MCP\x20Connecting...','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','53776EZBTRK','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x469e=function(){return _0x58db68;};return _0x469e();}(function(_0x2a1f18,_0x273bd1){var _0x22b121=_0x4984,_0x5b9f9e=_0x2a1f18();while(!![]){try{var _0x2fa49f=-parseInt(_0x22b121(0x16a))/0x1*(-parseInt(_0x22b121(0x17e))/0x2)+parseInt(_0x22b121(0x163))/0x3+parseInt(_0x22b121(0x15b))/0x4*(-parseInt(_0x22b121(0x15a))/0x5)+parseInt(_0x22b121(0x15f))/0x6+parseInt(_0x22b121(0x151))/0x7+-parseInt(_0x22b121(0x17c))/0x8*(parseInt(_0x22b121(0x164))/0x9)+-parseInt(_0x22b121(0x156))/0xa;if(_0x2fa49f===_0x273bd1)break;else _0x5b9f9e['push'](_0x5b9f9e['shift']());}catch(_0x357444){_0x5b9f9e['push'](_0x5b9f9e['shift']());}}}(_0x469e,0xc3a86),function(_0x168db2,_0x1ab01d){var _0x364e57=_0x4984;typeof exports==_0x364e57(0x154)&&typeof module<'u'?module['exports']=_0x1ab01d():typeof define==_0x364e57(0x16f)&&define['amd']?define(_0x1ab01d):(_0x168db2=typeof globalThis<'u'?globalThis:_0x168db2||self,_0x168db2[_0x364e57(0x165)]=_0x1ab01d());}(this,function(){'use strict';var _0xaced8=_0x4984;return{'mcpStatus':{'disconnected':_0xaced8(0x16d),'connecting':_0xaced8(0x174),'connected':_0xaced8(0x14d),'failed':_0xaced8(0x173),'retrying':'MCP\x20Retrying...','unknown':_0xaced8(0x16b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xaced8(0x159),'networkError':_0xaced8(0x16c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0xaced8(0x167),'clickToConfigure':_0xaced8(0x153)},'mcpConfig':{'title':_0xaced8(0x14c),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xaced8(0x155),'apiKeyPlaceholder':_0xaced8(0x16e),'apiKeyHint':_0xaced8(0x17d),'enableAuth':_0xaced8(0x15c),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xaced8(0x179),'mcpClientConfig':_0xaced8(0x179),'configInstructions':_0xaced8(0x176),'configStepTitle':_0xaced8(0x14e),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xaced8(0x162),'sessionId':_0xaced8(0x166),'sessionIdDescription':_0xaced8(0x17a),'authorizationDescription':_0xaced8(0x152),'configParameters':_0xaced8(0x160),'maxRetries':_0xaced8(0x14f),'save':_0xaced8(0x168),'saving':_0xaced8(0x171),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xaced8(0x169),'configSaved':_0xaced8(0x15e),'configError':_0xaced8(0x157),'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':_0xaced8(0x175),'getStarted':_0xaced8(0x15d)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xaced8(0x178),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0xaced8(0x158)},'connectionStatus':{'disconnected':_0xaced8(0x172),'connecting':_0xaced8(0x161),'connected':_0xaced8(0x177),'failed':_0xaced8(0x150),'retrying':_0xaced8(0x17b)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xaced8(0x170),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};}));
1
+ function _0x2072(_0x34e3d3,_0x281435){var _0xd66d92=_0xd66d();return _0x2072=function(_0x2072d4,_0x472ad0){_0x2072d4=_0x2072d4-0x114;var _0x30fcd8=_0xd66d92[_0x2072d4];return _0x30fcd8;},_0x2072(_0x34e3d3,_0x281435);}function _0xd66d(){var _0x5c9df9=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','MCP:\x20Session\x20ID\x20Occupied','7628920CGlnTZ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','35ebCknG','function','MCP\x20Client\x20Configuration','Invalid\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','Retrying...','15900uthDkt','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Connection\x20Failed','1478190ZXUmmS','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','exports','Configuration\x20Steps:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','1687452BQmAZX','MCP\x20Connected','Click\x20to\x20configure\x20MCP','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','MCP\x20Connecting...','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','1116344LthTAH','Failed\x20to\x20save\x20configuration','object','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Max\x20Retries','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','amd','Save\x20Configuration','111856pgzgRZ','What\x20is\x20API\x20Key?','4249uchiHl','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','5708781uluBMO','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully'];_0xd66d=function(){return _0x5c9df9;};return _0xd66d();}(function(_0x438697,_0x5c9e61){var _0x43a95d=_0x2072,_0xc359b8=_0x438697();while(!![]){try{var _0x4c0ace=-parseInt(_0x43a95d(0x140))/0x1+parseInt(_0x43a95d(0x135))/0x2+-parseInt(_0x43a95d(0x12e))/0x3+-parseInt(_0x43a95d(0x115))/0x4*(parseInt(_0x43a95d(0x123))/0x5)+parseInt(_0x43a95d(0x12a))/0x6*(parseInt(_0x43a95d(0x117))/0x7)+parseInt(_0x43a95d(0x120))/0x8+-parseInt(_0x43a95d(0x11a))/0x9;if(_0x4c0ace===_0x5c9e61)break;else _0xc359b8['push'](_0xc359b8['shift']());}catch(_0x54cd4c){_0xc359b8['push'](_0xc359b8['shift']());}}}(_0xd66d,0xec068),function(_0x3c7fe7,_0x43d806){var _0x381618=_0x2072;typeof exports==_0x381618(0x142)&&typeof module<'u'?module[_0x381618(0x131)]=_0x43d806():typeof define==_0x381618(0x124)&&define[_0x381618(0x14b)]?define(_0x43d806):(_0x3c7fe7=typeof globalThis<'u'?globalThis:_0x3c7fe7||self,_0x3c7fe7['UniverProMcpUiCaES']=_0x43d806());}(this,function(){'use strict';var _0x209472=_0x2072;return{'mcpStatus':{'disconnected':_0x209472(0x149),'connecting':_0x209472(0x13b),'connected':_0x209472(0x136),'failed':'MCP\x20Connection\x20Failed','retrying':_0x209472(0x128),'unknown':_0x209472(0x145),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x209472(0x11f),'networkError':_0x209472(0x13a),'maxRetriesExceeded':_0x209472(0x13e),'clickToConnect':_0x209472(0x138),'clickToConfigure':_0x209472(0x137)},'mcpConfig':{'title':_0x209472(0x13f),'description':_0x209472(0x11d),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x209472(0x11b),'apiKeyHint':_0x209472(0x143),'enableAuth':_0x209472(0x12c),'enableAuthHint':_0x209472(0x139),'connectionInfo':_0x209472(0x125),'mcpClientConfig':_0x209472(0x125),'configInstructions':_0x209472(0x119),'configStepTitle':_0x209472(0x132),'configStep1':_0x209472(0x14a),'configStep2':_0x209472(0x121),'configStep3':_0x209472(0x12b),'sessionId':_0x209472(0x134),'sessionIdDescription':_0x209472(0x133),'authorizationDescription':_0x209472(0x127),'configParameters':_0x209472(0x11e),'maxRetries':_0x209472(0x148),'save':_0x209472(0x114),'saving':_0x209472(0x130),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x209472(0x147),'configSaved':_0x209472(0x11c),'configError':_0x209472(0x141),'apiApplyInfo':{'title':_0x209472(0x116),'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':_0x209472(0x144),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x209472(0x13c),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x209472(0x126),'invalidApiKey':_0x209472(0x13d)},'connectionStatus':{'disconnected':_0x209472(0x122),'connecting':'Connecting...','connected':'Connected','failed':_0x209472(0x12d),'retrying':_0x209472(0x129)},'connectionError':{'unauthorized':_0x209472(0x12f),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x209472(0x118),'maxRetriesExceeded':_0x209472(0x146)}}};}));