@univerjs-pro/mcp-ui 0.25.1 → 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/views/components/mcp-config.d.ts +1 -1
  41. package/lib/types/views/components/mcp-status.d.ts +1 -1
  42. package/lib/umd/index.js +1 -1
  43. package/lib/umd/locale/ca-ES.js +1 -1
  44. package/lib/umd/locale/en-US.js +1 -1
  45. package/lib/umd/locale/es-ES.js +1 -1
  46. package/lib/umd/locale/fa-IR.js +1 -1
  47. package/lib/umd/locale/fr-FR.js +1 -1
  48. package/lib/umd/locale/ja-JP.js +1 -1
  49. package/lib/umd/locale/ko-KR.js +1 -1
  50. package/lib/umd/locale/ru-RU.js +1 -1
  51. package/lib/umd/locale/sk-SK.js +1 -1
  52. package/lib/umd/locale/vi-VN.js +1 -1
  53. package/lib/umd/locale/zh-CN.js +1 -1
  54. package/lib/umd/locale/zh-TW.js +1 -1
  55. package/package.json +12 -12
@@ -1 +1 @@
1
- const _0x8e837f=_0x446e;(function(_0x4b2c07,_0x4db832){const _0x1e2e86=_0x446e,_0x717f3f=_0x4b2c07();while(!![]){try{const _0x2213d5=-parseInt(_0x1e2e86(0xa2))/0x1+parseInt(_0x1e2e86(0x94))/0x2+parseInt(_0x1e2e86(0x9f))/0x3+-parseInt(_0x1e2e86(0xb5))/0x4+parseInt(_0x1e2e86(0x9e))/0x5*(-parseInt(_0x1e2e86(0xad))/0x6)+-parseInt(_0x1e2e86(0xb1))/0x7*(parseInt(_0x1e2e86(0xb9))/0x8)+parseInt(_0x1e2e86(0x9c))/0x9*(parseInt(_0x1e2e86(0x97))/0xa);if(_0x2213d5===_0x4db832)break;else _0x717f3f['push'](_0x717f3f['shift']());}catch(_0x41d11f){_0x717f3f['push'](_0x717f3f['shift']());}}}(_0x3363,0x1e412));function _0x3363(){const _0x5f1207=['API\x20key\x20is\x20required','Univer\x20AI\x20Console','MCP\x20Disconnected','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','78216wnMIuy','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','Connecting...','428596bHRwPn','Save\x20Configuration','Invalid\x20configuration','MCP\x20Connecting...','133096MKQmVq','Failed\x20to\x20save\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','16ZPoDtn','MCP\x20Connection\x20Failed','MCP\x20Connected','MCP\x20Retrying...','Disconnected','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','109838YmpYdC','Max\x20Retries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2955220imycNL','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','18ZbtCkT','API\x20Key','65ImFojb','104781SfMvGM','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','231770nmuOIL','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully'];_0x3363=function(){return _0x5f1207;};return _0x3363();}function _0x446e(_0x1f3e08,_0x1d9b43){_0x1f3e08=_0x1f3e08-0x8f;const _0x3363a8=_0x3363();let _0x446e39=_0x3363a8[_0x1f3e08];return _0x446e39;}const e={'mcpStatus':{'disconnected':_0x8e837f(0xa8),'connecting':_0x8e837f(0xb4),'connected':_0x8e837f(0xbb),'failed':_0x8e837f(0xba),'retrying':_0x8e837f(0xbc),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x8e837f(0x92),'sessionOccupied':_0x8e837f(0xa4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x8e837f(0x9b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x8e837f(0xac),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x8e837f(0x9d),'apiKeyPlaceholder':_0x8e837f(0xbe),'apiKeyHint':_0x8e837f(0x99),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x8e837f(0xa0),'connectionInfo':_0x8e837f(0xaf),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x8e837f(0x9a),'configStepTitle':_0x8e837f(0x8f),'configStep1':_0x8e837f(0x91),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x8e837f(0x93),'sessionId':'Session\x20ID','sessionIdDescription':_0x8e837f(0xae),'authorizationDescription':_0x8e837f(0xa3),'configParameters':_0x8e837f(0xa9),'maxRetries':_0x8e837f(0x95),'save':_0x8e837f(0xb2),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x8e837f(0x90),'configSaved':_0x8e837f(0xa5),'configError':_0x8e837f(0xb6),'apiApplyInfo':{'title':_0x8e837f(0xb8),'description':_0x8e837f(0x96),'univerAiLabel':_0x8e837f(0xa7),'getStarted':_0x8e837f(0xbf)},'validation':{'apiKeyRequired':_0x8e837f(0xa6),'apiKeyTooShort':_0x8e837f(0xa1),'invalidConfig':_0x8e837f(0xb3),'invalidApiKey':_0x8e837f(0xab)},'connectionStatus':{'disconnected':_0x8e837f(0xbd),'connecting':_0x8e837f(0xb0),'connected':'Connected','failed':_0x8e837f(0x98),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x8e837f(0xaa),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x8e837f(0xb7)}}};export{e as default};
1
+ function _0xb64b(_0x38c5f8,_0x4fac42){_0x38c5f8=_0x38c5f8-0xd1;const _0x5e2a93=_0x5e2a();let _0xb64be5=_0x5e2a93[_0x38c5f8];return _0xb64be5;}(function(_0x352591,_0x513bce){const _0x2af0b2=_0xb64b,_0x134319=_0x352591();while(!![]){try{const _0xfadf5a=-parseInt(_0x2af0b2(0xd5))/0x1*(-parseInt(_0x2af0b2(0xd8))/0x2)+parseInt(_0x2af0b2(0xd3))/0x3*(parseInt(_0x2af0b2(0xd7))/0x4)+parseInt(_0x2af0b2(0xda))/0x5*(-parseInt(_0x2af0b2(0xd4))/0x6)+-parseInt(_0x2af0b2(0xd6))/0x7+parseInt(_0x2af0b2(0xd1))/0x8+parseInt(_0x2af0b2(0xd9))/0x9+-parseInt(_0x2af0b2(0xd2))/0xa;if(_0xfadf5a===_0x513bce)break;else _0x134319['push'](_0x134319['shift']());}catch(_0x3f9032){_0x134319['push'](_0x134319['shift']());}}}(_0x5e2a,0x7d007));function _0x5e2a(){const _0xbe4fb=['384ZaAYAm','101447JavvEr','3449243BViYYH','288WNLzin','12APkbjv','4294206mwQGGg','42650EZRcRK','6997688qHlbTM','5354190HDPexe','5232lqjsWW'];_0x5e2a=function(){return _0xbe4fb;};return _0x5e2a();}import _0x5b1fbf from'./en-US.js';const t=_0x5b1fbf;export{t as default};
@@ -1 +1 @@
1
- const _0x5b98d2=_0x41ea;function _0x41ea(_0x56c11e,_0x48d1f9){_0x56c11e=_0x56c11e-0x94;const _0x43685d=_0x4368();let _0x41ea50=_0x43685d[_0x56c11e];return _0x41ea50;}function _0x4368(){const _0x34a6be=['Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Pripojené','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Univer\x20AI\x20konzola','MCP\x20neznámy\x20stav','327432yGGKlK','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','803133XLfZMU','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','MCP:\x20ID\x20relácie\x20je\x20obsadené','Parametre\x20konfigurácie:','Skúša\x20sa\x20znova...','2179gUWSSH','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Konfigurácia\x20klienta\x20MCP','MCP:\x20Sieťová\x20chyba','Kliknite\x20na\x20konfiguráciu\x20MCP','495652qntodR','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','API\x20kľúč\x20je\x20povinný','1587850RaSwUk','3CIEPjV','MCP:\x20Prekročený\x20počet\x20pokusov','Odpojené','Kroky\x20konfigurácie:','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','Povoliť\x20overenie','API\x20kľúč','Konfigurácia\x20bola\x20úspešne\x20uložená','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','MCP:\x20Neautorizované','MCP\x20opakuje\x20pokus...','MCP\x20pripojené','4692ZhPWNb','API\x20kľúč\x20s\x20prefixom\x20Bearer.','556JprlDn','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','Zadajte\x20svoj\x20API\x20kľúč','4812vnjVhW','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Pripojenie\x20zlyhalo','40fPkoNm','Ukladá\x20sa...','MCP\x20odpojené','2807kWoOKe','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','ID\x20relácie','21604ycHTrc','MCP\x20sa\x20pripája...','Kliknite\x20na\x20pripojenie\x20MCP'];_0x4368=function(){return _0x34a6be;};return _0x4368();}(function(_0x41b176,_0x5258cc){const _0x16a6d9=_0x41ea,_0x399cb9=_0x41b176();while(!![]){try{const _0x525b95=-parseInt(_0x16a6d9(0x9a))/0x1*(parseInt(_0x16a6d9(0xb1))/0x2)+-parseInt(_0x16a6d9(0xa3))/0x3*(parseInt(_0x16a6d9(0x9f))/0x4)+-parseInt(_0x16a6d9(0xa2))/0x5+parseInt(_0x16a6d9(0xb4))/0x6*(parseInt(_0x16a6d9(0xba))/0x7)+-parseInt(_0x16a6d9(0xc6))/0x8+-parseInt(_0x16a6d9(0x94))/0x9*(-parseInt(_0x16a6d9(0xb7))/0xa)+-parseInt(_0x16a6d9(0xbd))/0xb*(-parseInt(_0x16a6d9(0xaf))/0xc);if(_0x525b95===_0x5258cc)break;else _0x399cb9['push'](_0x399cb9['shift']());}catch(_0x375b0f){_0x399cb9['push'](_0x399cb9['shift']());}}}(_0x4368,0x5779c));const e={'mcpStatus':{'disconnected':_0x5b98d2(0xb9),'connecting':_0x5b98d2(0xbe),'connected':_0x5b98d2(0xae),'failed':'Pripojenie\x20MCP\x20zlyhalo','retrying':_0x5b98d2(0xad),'unknown':_0x5b98d2(0xc5),'unauthorized':_0x5b98d2(0xac),'sessionOccupied':_0x5b98d2(0x97),'networkError':_0x5b98d2(0x9d),'maxRetriesExceeded':_0x5b98d2(0xa4),'clickToConnect':_0x5b98d2(0xbf),'clickToConfigure':_0x5b98d2(0x9e)},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':_0x5b98d2(0xc3),'apiKey':_0x5b98d2(0xa9),'apiKeyPlaceholder':_0x5b98d2(0xb3),'apiKeyHint':'Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','enableAuth':_0x5b98d2(0xa8),'enableAuthHint':_0x5b98d2(0x96),'connectionInfo':_0x5b98d2(0x9c),'mcpClientConfig':'Konfigurácia\x20klienta\x20MCP','configInstructions':_0x5b98d2(0xab),'configStepTitle':_0x5b98d2(0xa6),'configStep1':'Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','configStep2':_0x5b98d2(0xc7),'configStep3':_0x5b98d2(0xc0),'sessionId':_0x5b98d2(0xbc),'sessionIdDescription':_0x5b98d2(0xb5),'authorizationDescription':_0x5b98d2(0xb0),'configParameters':_0x5b98d2(0x98),'maxRetries':'Maximálny\x20počet\x20pokusov','save':'Uložiť\x20konfiguráciu','saving':_0x5b98d2(0xb8),'note1':_0x5b98d2(0x95),'note2':_0x5b98d2(0xc2),'configSaved':_0x5b98d2(0xaa),'configError':'Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','apiApplyInfo':{'title':'Čo\x20je\x20API\x20kľúč?','description':_0x5b98d2(0xb2),'univerAiLabel':_0x5b98d2(0xc4),'getStarted':'Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd'},'validation':{'apiKeyRequired':_0x5b98d2(0xa1),'apiKeyTooShort':'API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':_0x5b98d2(0x9b)},'connectionStatus':{'disconnected':_0x5b98d2(0xa5),'connecting':'Pripája\x20sa...','connected':_0x5b98d2(0xc1),'failed':_0x5b98d2(0xb6),'retrying':_0x5b98d2(0x99)},'connectionError':{'unauthorized':'Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','sessionOccupied':_0x5b98d2(0xa0),'networkError':_0x5b98d2(0xbb),'maxRetriesExceeded':_0x5b98d2(0xa7)}}};export{e as default};
1
+ const _0x10cc93=_0x57c2;function _0x16d0(){const _0x18c322=['Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','623tPVCNl','MCP:\x20Sieťová\x20chyba','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Povoliť\x20overenie','4735065OHCwHj','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Zadajte\x20svoj\x20API\x20kľúč','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Uložiť\x20konfiguráciu','MCP\x20pripojené','MCP\x20odpojené','4230916FFnKfH','MCP:\x20Neautorizované','Maximálny\x20počet\x20pokusov','748774BiSIsU','API\x20kľúč\x20je\x20povinný','954640ncJYJr','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Pripája\x20sa...','51330dVeYnC','MCP:\x20Prekročený\x20počet\x20pokusov','4645680CQsIUz','Pripojené','API\x20kľúč','MCP:\x20ID\x20relácie\x20je\x20obsadené','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Čo\x20je\x20API\x20kľúč?','Neplatná\x20konfigurácia','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Konfigurácia\x20klienta\x20MCP','ID\x20relácie','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Kliknite\x20na\x20pripojenie\x20MCP','Parametre\x20konfigurácie:','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','4064739vjLTxG','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','Konfigurácia\x20bola\x20úspešne\x20uložená','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Pripojenie\x20zlyhalo','Univer\x20AI\x20konzola','Pripojenie\x20MCP\x20zlyhalo','Odpojené','Skúša\x20sa\x20znova...','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami'];_0x16d0=function(){return _0x18c322;};return _0x16d0();}(function(_0x1cccf5,_0x5b3cbd){const _0x45e248=_0x57c2,_0x520b69=_0x1cccf5();while(!![]){try{const _0x5ef6c7=parseInt(_0x45e248(0xea))/0x1+-parseInt(_0x45e248(0xe8))/0x2+parseInt(_0x45e248(0xfd))/0x3+parseInt(_0x45e248(0xe5))/0x4+-parseInt(_0x45e248(0xdd))/0x5+-parseInt(_0x45e248(0xed))/0x6*(parseInt(_0x45e248(0xd9))/0x7)+-parseInt(_0x45e248(0xef))/0x8;if(_0x5ef6c7===_0x5b3cbd)break;else _0x520b69['push'](_0x520b69['shift']());}catch(_0x147108){_0x520b69['push'](_0x520b69['shift']());}}}(_0x16d0,0xabd21));const e={'mcpStatus':{'disconnected':_0x10cc93(0xe4),'connecting':'MCP\x20sa\x20pripája...','connected':_0x10cc93(0xe3),'failed':_0x10cc93(0xd4),'retrying':'MCP\x20opakuje\x20pokus...','unknown':'MCP\x20neznámy\x20stav','unauthorized':_0x10cc93(0xe6),'sessionOccupied':_0x10cc93(0xf2),'networkError':_0x10cc93(0xda),'maxRetriesExceeded':_0x10cc93(0xee),'clickToConnect':_0x10cc93(0xfa),'clickToConfigure':'Kliknite\x20na\x20konfiguráciu\x20MCP'},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':_0x10cc93(0xd7),'apiKey':_0x10cc93(0xf1),'apiKeyPlaceholder':_0x10cc93(0xe0),'apiKeyHint':_0x10cc93(0xf3),'enableAuth':_0x10cc93(0xdc),'enableAuthHint':_0x10cc93(0xd8),'connectionInfo':_0x10cc93(0xf7),'mcpClientConfig':_0x10cc93(0xf7),'configInstructions':_0x10cc93(0xdb),'configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x10cc93(0xfe),'configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':_0x10cc93(0xf6),'sessionId':_0x10cc93(0xf8),'sessionIdDescription':'Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':_0x10cc93(0xfb),'maxRetries':_0x10cc93(0xe7),'save':_0x10cc93(0xe2),'saving':'Ukladá\x20sa...','note1':'Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','note2':'Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','configSaved':_0x10cc93(0x100),'configError':_0x10cc93(0xd1),'apiApplyInfo':{'title':_0x10cc93(0xf4),'description':_0x10cc93(0xfc),'univerAiLabel':_0x10cc93(0xd3),'getStarted':_0x10cc93(0xe1)},'validation':{'apiKeyRequired':_0x10cc93(0xe9),'apiKeyTooShort':_0x10cc93(0xeb),'invalidConfig':_0x10cc93(0xf5),'invalidApiKey':_0x10cc93(0xdf)},'connectionStatus':{'disconnected':_0x10cc93(0xd5),'connecting':_0x10cc93(0xec),'connected':_0x10cc93(0xf0),'failed':_0x10cc93(0xd2),'retrying':_0x10cc93(0xd6)},'connectionError':{'unauthorized':'Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','sessionOccupied':_0x10cc93(0xf9),'networkError':_0x10cc93(0xde),'maxRetriesExceeded':_0x10cc93(0xff)}}};function _0x57c2(_0x4b2523,_0x3f2fb7){_0x4b2523=_0x4b2523-0xd1;const _0x16d005=_0x16d0();let _0x57c27a=_0x16d005[_0x4b2523];return _0x57c27a;}export{e as default};
@@ -1 +1 @@
1
- function _0x4673(){const _0x219dcd=['Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Đã\x20kết\x20nối','MCP\x20Kết\x20nối\x20thất\x20bại','Tham\x20số\x20cấu\x20hình:','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Đã\x20kết\x20nối','2myWOXt','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','4172166jrCBQd','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','ID\x20phiên','Nhấp\x20để\x20cấu\x20hình\x20MCP','Đang\x20lưu...','728237CPzHYX','652MSvSUs','Nhập\x20khóa\x20API\x20của\x20bạn','Đã\x20ngắt\x20kết\x20nối','Đang\x20kết\x20nối...','408yuBCqg','2381448hDYBtc','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','610fdWoYy','Các\x20bước\x20cấu\x20hình:','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Khóa\x20API','1296219SQfwuz','Yêu\x20cầu\x20khóa\x20API','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','MCP\x20Đang\x20kết\x20nối...','8011810JDsHxn','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Bảng\x20điều\x20khiển\x20Univer\x20AI','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','MCP:\x20Không\x20được\x20phép','Bật\x20xác\x20thực','Cấu\x20hình\x20không\x20hợp\x20lệ','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','10493utHxNR','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Khóa\x20API\x20là\x20gì?','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Cấu\x20hình\x20MCP','Đang\x20thử\x20lại...'];_0x4673=function(){return _0x219dcd;};return _0x4673();}const _0x1555e8=_0x4834;(function(_0x5410d6,_0x5f336a){const _0x1f0778=_0x4834,_0x218350=_0x5410d6();while(!![]){try{const _0x28ab23=-parseInt(_0x1f0778(0x167))/0x1+parseInt(_0x1f0778(0x160))/0x2*(parseInt(_0x1f0778(0x175))/0x3)+-parseInt(_0x1f0778(0x168))/0x4*(parseInt(_0x1f0778(0x171))/0x5)+-parseInt(_0x1f0778(0x16d))/0x6+-parseInt(_0x1f0778(0x151))/0x7*(parseInt(_0x1f0778(0x16c))/0x8)+parseInt(_0x1f0778(0x162))/0x9+parseInt(_0x1f0778(0x179))/0xa;if(_0x28ab23===_0x5f336a)break;else _0x218350['push'](_0x218350['shift']());}catch(_0x3d8ed3){_0x218350['push'](_0x218350['shift']());}}}(_0x4673,0x740d4));const e={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x1555e8(0x178),'connected':_0x1555e8(0x15f),'failed':_0x1555e8(0x15c),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x1555e8(0x17b),'unauthorized':_0x1555e8(0x14d),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':_0x1555e8(0x150),'clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x1555e8(0x165)},'mcpConfig':{'title':_0x1555e8(0x158),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x1555e8(0x174),'apiKeyPlaceholder':_0x1555e8(0x169),'apiKeyHint':_0x1555e8(0x17a),'enableAuth':_0x1555e8(0x14e),'enableAuthHint':_0x1555e8(0x170),'connectionInfo':_0x1555e8(0x15e),'mcpClientConfig':_0x1555e8(0x15e),'configInstructions':_0x1555e8(0x173),'configStepTitle':_0x1555e8(0x172),'configStep1':_0x1555e8(0x17c),'configStep2':_0x1555e8(0x16e),'configStep3':_0x1555e8(0x177),'sessionId':_0x1555e8(0x164),'sessionIdDescription':_0x1555e8(0x154),'authorizationDescription':_0x1555e8(0x157),'configParameters':_0x1555e8(0x15d),'maxRetries':_0x1555e8(0x153),'save':'Lưu\x20cấu\x20hình','saving':_0x1555e8(0x166),'note1':_0x1555e8(0x152),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':_0x1555e8(0x163),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x1555e8(0x156),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x1555e8(0x17d),'getStarted':_0x1555e8(0x14b)},'validation':{'apiKeyRequired':_0x1555e8(0x176),'apiKeyTooShort':_0x1555e8(0x16f),'invalidConfig':_0x1555e8(0x14f),'invalidApiKey':_0x1555e8(0x155)},'connectionStatus':{'disconnected':_0x1555e8(0x16a),'connecting':_0x1555e8(0x16b),'connected':_0x1555e8(0x15b),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x1555e8(0x159)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':_0x1555e8(0x15a),'networkError':_0x1555e8(0x161),'maxRetriesExceeded':_0x1555e8(0x14c)}}};function _0x4834(_0x126363,_0x5d3c80){_0x126363=_0x126363-0x14b;const _0x4673f3=_0x4673();let _0x4834e3=_0x4673f3[_0x126363];return _0x4834e3;}export{e as default};
1
+ const _0x1f47c0=_0x1715;function _0x2baa(){const _0x122f29=['Đang\x20thử\x20lại...','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Cấu\x20hình\x20MCP','MCP:\x20Lỗi\x20mạng','Khóa\x20API','Bảng\x20điều\x20khiển\x20Univer\x20AI','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','MCP\x20Kết\x20nối\x20thất\x20bại','Đang\x20lưu...','Khóa\x20API\x20là\x20gì?','971082bRRJdb','807324TmiLGE','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','449364jAyIUL','33tQflkw','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','1409755ndyoqU','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','MCP\x20Đang\x20thử\x20lại...','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Nhấp\x20để\x20cấu\x20hình\x20MCP','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Đã\x20kết\x20nối','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Bật\x20xác\x20thực','ID\x20phiên','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Tham\x20số\x20cấu\x20hình:','MCP:\x20Không\x20được\x20phép','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Các\x20bước\x20cấu\x20hình:','Nhập\x20khóa\x20API\x20của\x20bạn','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','4382rKAwKE','Lưu\x20cấu\x20hình\x20thất\x20bại','Yêu\x20cầu\x20khóa\x20API','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','357960iwKdkL','MCP\x20Đang\x20kết\x20nối...','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Đang\x20kết\x20nối...','3709000FARGnz','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Lưu\x20cấu\x20hình'];_0x2baa=function(){return _0x122f29;};return _0x2baa();}function _0x1715(_0x1b3ed5,_0x58bf84){_0x1b3ed5=_0x1b3ed5-0xed;const _0x2baa2e=_0x2baa();let _0x1715a3=_0x2baa2e[_0x1b3ed5];return _0x1715a3;}(function(_0x3b6a72,_0x36b0cc){const _0x2ed69a=_0x1715,_0x60218e=_0x3b6a72();while(!![]){try{const _0x1b342c=-parseInt(_0x2ed69a(0x111))/0x1*(-parseInt(_0x2ed69a(0xf4))/0x2)+-parseInt(_0x2ed69a(0x110))/0x3+parseInt(_0x2ed69a(0xf8))/0x4+-parseInt(_0x2ed69a(0x113))/0x5+-parseInt(_0x2ed69a(0x10d))/0x6+parseInt(_0x2ed69a(0x10e))/0x7+parseInt(_0x2ed69a(0xfc))/0x8;if(_0x1b342c===_0x36b0cc)break;else _0x60218e['push'](_0x60218e['shift']());}catch(_0x3f8705){_0x60218e['push'](_0x60218e['shift']());}}}(_0x2baa,0x23edc));const e={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x1f47c0(0xf9),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x1f47c0(0x10a),'retrying':_0x1f47c0(0x115),'unknown':_0x1f47c0(0xff),'unauthorized':_0x1f47c0(0xef),'sessionOccupied':_0x1f47c0(0x109),'networkError':_0x1f47c0(0x106),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x1f47c0(0x117)},'mcpConfig':{'title':_0x1f47c0(0x105),'description':_0x1f47c0(0xf7),'apiKey':_0x1f47c0(0x107),'apiKeyPlaceholder':_0x1f47c0(0xf2),'apiKeyHint':_0x1f47c0(0x114),'enableAuth':_0x1f47c0(0x11c),'enableAuthHint':_0x1f47c0(0x103),'connectionInfo':_0x1f47c0(0xfe),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x1f47c0(0x104),'configStepTitle':_0x1f47c0(0xf1),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x1f47c0(0x11e),'configStep3':_0x1f47c0(0x10f),'sessionId':_0x1f47c0(0x11d),'sessionIdDescription':_0x1f47c0(0xfa),'authorizationDescription':_0x1f47c0(0x100),'configParameters':_0x1f47c0(0xee),'maxRetries':_0x1f47c0(0x116),'save':_0x1f47c0(0x101),'saving':_0x1f47c0(0x10b),'note1':_0x1f47c0(0xed),'note2':_0x1f47c0(0x112),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x1f47c0(0xf5),'apiApplyInfo':{'title':_0x1f47c0(0x10c),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x1f47c0(0x108),'getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x1f47c0(0xf6),'apiKeyTooShort':_0x1f47c0(0x119),'invalidConfig':_0x1f47c0(0x118),'invalidApiKey':_0x1f47c0(0xf0)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x1f47c0(0xfb),'connected':_0x1f47c0(0x11a),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x1f47c0(0x102)},'connectionError':{'unauthorized':_0x1f47c0(0xf3),'sessionOccupied':_0x1f47c0(0xfd),'networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0x1f47c0(0x11b)}}};export{e as default};
@@ -1 +1 @@
1
- function _0x5b54(_0x141e50,_0x26335){_0x141e50=_0x141e50-0xbf;const _0x4a9e96=_0x4a9e();let _0x5b5471=_0x4a9e96[_0x141e50];return _0x5b5471;}const _0x1237ff=_0x5b54;function _0x4a9e(){const _0x4b881a=['几秒钟内获取您的\x20API\x20密钥','点击连接\x20MCP','启用身份验证','2429802CcyKTm','启用身份验证以获得安全连接','MCP\x20重连中...','50390vEcKFm','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20连接中...','超出最大重试次数,请稍后再试','复制以下\x20JSON\x20配置','您的\x20API\x20密钥安全存储在本地存储中','56IyOcvK','3457184rqUiIe','6ZpKREC','MCP\x20连接失败','12688360ejfeNa','点击配置\x20MCP','API\x20密钥长度至少需要\x2010\x20','MCP\x20配置','权限验证失败,请检查您的\x20API\x20密钥','带有\x20Bearer\x20前缀的\x20API\x20密钥。','连接中...','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20网络错误','2202242aPfABQ','保存配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥无效,请检查密钥是否正确','最大重试次数','连接失败','什么是\x20API\x20密钥?','MCP\x20客户端配置','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置更改将立即生效','6vKhvnD','未连接','MCP\x20已断开','MCP:\x20超出最大重试次数','345684KsvXrM','93251AlhUPX','已连接','配置参数:','MCP:\x20未授权'];_0x4a9e=function(){return _0x4b881a;};return _0x4a9e();}(function(_0x363855,_0x5afe93){const _0x2525d8=_0x5b54,_0x4bf510=_0x363855();while(!![]){try{const _0x4a1696=parseInt(_0x2525d8(0xce))/0x1*(-parseInt(_0x2525d8(0xe0))/0x2)+parseInt(_0x2525d8(0xcd))/0x3+parseInt(_0x2525d8(0xde))/0x4*(parseInt(_0x2525d8(0xd8))/0x5)+-parseInt(_0x2525d8(0xc9))/0x6*(parseInt(_0x2525d8(0xbf))/0x7)+-parseInt(_0x2525d8(0xdf))/0x8+-parseInt(_0x2525d8(0xd5))/0x9+parseInt(_0x2525d8(0xe2))/0xa;if(_0x4a1696===_0x5afe93)break;else _0x4bf510['push'](_0x4bf510['shift']());}catch(_0x28deca){_0x4bf510['push'](_0x4bf510['shift']());}}}(_0x4a9e,0x37d3f));const e={'mcpStatus':{'disconnected':_0x1237ff(0xcb),'connecting':_0x1237ff(0xda),'connected':'MCP\x20已连接','failed':_0x1237ff(0xe1),'retrying':_0x1237ff(0xd7),'unknown':'MCP\x20状态未知','unauthorized':_0x1237ff(0xd1),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x1237ff(0xea),'maxRetriesExceeded':_0x1237ff(0xcc),'clickToConnect':_0x1237ff(0xd3),'clickToConfigure':_0x1237ff(0xe3)},'mcpConfig':{'title':_0x1237ff(0xe5),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1237ff(0xd4),'enableAuthHint':_0x1237ff(0xd6),'connectionInfo':_0x1237ff(0xc6),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1237ff(0xe9),'configStepTitle':'配置步骤:','configStep1':_0x1237ff(0xdc),'configStep2':_0x1237ff(0xd9),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x1237ff(0xc1),'authorizationDescription':_0x1237ff(0xe7),'configParameters':_0x1237ff(0xd0),'maxRetries':_0x1237ff(0xc3),'save':_0x1237ff(0xc0),'saving':'保存中...','note1':_0x1237ff(0xc8),'note2':_0x1237ff(0xdd),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x1237ff(0xc5),'description':_0x1237ff(0xc7),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x1237ff(0xd2)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x1237ff(0xe4),'invalidConfig':'配置无效','invalidApiKey':_0x1237ff(0xc2)},'connectionStatus':{'disconnected':_0x1237ff(0xca),'connecting':_0x1237ff(0xe8),'connected':_0x1237ff(0xcf),'failed':_0x1237ff(0xc4),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x1237ff(0xe6),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x1237ff(0xdb)}}};export{e as default};
1
+ function _0x3314(_0x818e13,_0x1f22b8){_0x818e13=_0x818e13-0x122;const _0x2e681d=_0x2e68();let _0x331438=_0x2e681d[_0x818e13];return _0x331438;}const _0x3568a7=_0x3314;function _0x2e68(){const _0x1e3569=['超出最大重试次数,请稍后再试','点击配置\x20MCP','重连中...','配置无效','API\x20密钥长度至少需要\x2010\x20位','MCP\x20状态未知','MCP:\x20超出最大重试次数','1189056jHKxnc','已连接','连接失败','API\x20密钥无效,请检查密钥是否正确','将配置添加到您的\x20MCP\x20客户端设置文件中','609504pZCLMo','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','复制以下\x20JSON\x20配置','保存配置','464438Axdwdv','您的\x20API\x20密钥安全存储在本地存储中','配置参数:','配置保存成功','会话ID','5193825GJVobI','点击连接\x20MCP','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20客户端配置','权限验证失败,请检查您的\x20API\x20密钥','120310bhXRBU','网络连接错误,请检查您的网络连接','配置步骤:','MCP\x20已断开','MCP\x20连接失败','API\x20密钥不能为空','1081775cNWgwp','重启您的\x20MCP\x20客户端以使配置生效','您的\x20API\x20密钥将在此浏览器中本地存储','761404fvPuXo','API\x20密钥','MCP:\x20会话\x20ID\x20已被占用','几秒钟内获取您的\x20API\x20密钥','什么是\x20API\x20密钥?','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','带有\x20Bearer\x20前缀的\x20API\x20密钥。','请输入您的\x20API\x20密钥','最大重试次数'];_0x2e68=function(){return _0x1e3569;};return _0x2e68();}(function(_0x26bab0,_0x5b622e){const _0x9dd040=_0x3314,_0x233af6=_0x26bab0();while(!![]){try{const _0x5aac0d=parseInt(_0x9dd040(0x143))/0x1+-parseInt(_0x9dd040(0x139))/0x2+-parseInt(_0x9dd040(0x135))/0x3+-parseInt(_0x9dd040(0x14c))/0x4+-parseInt(_0x9dd040(0x149))/0x5+parseInt(_0x9dd040(0x130))/0x6+parseInt(_0x9dd040(0x13e))/0x7;if(_0x5aac0d===_0x5b622e)break;else _0x233af6['push'](_0x233af6['shift']());}catch(_0x2c194f){_0x233af6['push'](_0x233af6['shift']());}}}(_0x2e68,0x35500));const e={'mcpStatus':{'disconnected':_0x3568a7(0x146),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x3568a7(0x147),'retrying':'MCP\x20重连中...','unknown':_0x3568a7(0x12e),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3568a7(0x14e),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3568a7(0x12f),'clickToConnect':_0x3568a7(0x13f),'clickToConfigure':_0x3568a7(0x12a)},'mcpConfig':{'title':'MCP\x20配置','description':_0x3568a7(0x140),'apiKey':_0x3568a7(0x14d),'apiKeyPlaceholder':_0x3568a7(0x127),'apiKeyHint':_0x3568a7(0x14b),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3568a7(0x141),'mcpClientConfig':_0x3568a7(0x141),'configInstructions':_0x3568a7(0x124),'configStepTitle':_0x3568a7(0x145),'configStep1':_0x3568a7(0x137),'configStep2':_0x3568a7(0x134),'configStep3':_0x3568a7(0x14a),'sessionId':_0x3568a7(0x13d),'sessionIdDescription':_0x3568a7(0x136),'authorizationDescription':_0x3568a7(0x126),'configParameters':_0x3568a7(0x13b),'maxRetries':_0x3568a7(0x128),'save':_0x3568a7(0x138),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x3568a7(0x13a),'configSaved':_0x3568a7(0x13c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x3568a7(0x123),'description':_0x3568a7(0x125),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3568a7(0x122)},'validation':{'apiKeyRequired':_0x3568a7(0x148),'apiKeyTooShort':_0x3568a7(0x12d),'invalidConfig':_0x3568a7(0x12c),'invalidApiKey':_0x3568a7(0x133)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x3568a7(0x131),'failed':_0x3568a7(0x132),'retrying':_0x3568a7(0x12b)},'connectionError':{'unauthorized':_0x3568a7(0x142),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x3568a7(0x144),'maxRetriesExceeded':_0x3568a7(0x129)}}};export{e as default};
@@ -1 +1 @@
1
- const _0x3a8060=_0xd671;(function(_0x40bb67,_0x24c968){const _0x5b82d6=_0xd671,_0x252df5=_0x40bb67();while(!![]){try{const _0x56de24=parseInt(_0x5b82d6(0x1aa))/0x1*(-parseInt(_0x5b82d6(0x1b0))/0x2)+parseInt(_0x5b82d6(0x1c7))/0x3+-parseInt(_0x5b82d6(0x1b4))/0x4*(parseInt(_0x5b82d6(0x1cb))/0x5)+-parseInt(_0x5b82d6(0x1a7))/0x6*(-parseInt(_0x5b82d6(0x1a4))/0x7)+parseInt(_0x5b82d6(0x1ca))/0x8+parseInt(_0x5b82d6(0x1ab))/0x9+-parseInt(_0x5b82d6(0x1d1))/0xa;if(_0x56de24===_0x24c968)break;else _0x252df5['push'](_0x252df5['shift']());}catch(_0x1b4b6c){_0x252df5['push'](_0x252df5['shift']());}}}(_0x534d,0x236d5));const e={'mcpStatus':{'disconnected':_0x3a8060(0x1b9),'connecting':_0x3a8060(0x1bf),'connected':_0x3a8060(0x1cc),'failed':_0x3a8060(0x1af),'retrying':_0x3a8060(0x1c2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3a8060(0x1a9),'sessionOccupied':_0x3a8060(0x1ba),'networkError':_0x3a8060(0x1bc),'maxRetriesExceeded':_0x3a8060(0x1ad),'clickToConnect':_0x3a8060(0x1a3),'clickToConfigure':_0x3a8060(0x1c4)},'mcpConfig':{'title':_0x3a8060(0x1b8),'description':_0x3a8060(0x1b6),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3a8060(0x1b3),'apiKeyHint':_0x3a8060(0x1a8),'enableAuth':_0x3a8060(0x1b2),'enableAuthHint':_0x3a8060(0x1b5),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3a8060(0x1bb),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3a8060(0x1be),'configStep3':_0x3a8060(0x1b1),'sessionId':_0x3a8060(0x1a5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3a8060(0x1c8),'maxRetries':'Max\x20Retries','save':_0x3a8060(0x1c3),'saving':_0x3a8060(0x1ac),'note1':_0x3a8060(0x1c1),'note2':_0x3a8060(0x1a2),'configSaved':_0x3a8060(0x1b7),'configError':_0x3a8060(0x1ae),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3a8060(0x1c9),'univerAiLabel':_0x3a8060(0x1c0),'getStarted':_0x3a8060(0x1c6)},'validation':{'apiKeyRequired':_0x3a8060(0x1d2),'apiKeyTooShort':_0x3a8060(0x1cd),'invalidConfig':_0x3a8060(0x1d0),'invalidApiKey':_0x3a8060(0x1bd)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3a8060(0x1c5),'retrying':_0x3a8060(0x1cf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3a8060(0x1ce),'networkError':_0x3a8060(0x1a6),'maxRetriesExceeded':_0x3a8060(0x1d3)}}};function _0x534d(){const _0x4bf595=['Configuration\x20saved\x20successfully','MCP\x20Configuration','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connecting...','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Retrying...','Save\x20Configuration','Click\x20to\x20configure\x20MCP','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','373512lSQvUu','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1690360wOqzfR','135065ltelTu','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Retrying...','Invalid\x20configuration','3859210aTbPsW','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20connect\x20MCP','607901wRkxwK','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','18RLKGOm','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Unauthorized','1PTypTM','2293731jlXyMC','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','100054KKxZWW','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Enter\x20your\x20API\x20key','40UJGwBF','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0x534d=function(){return _0x4bf595;};return _0x534d();}function _0xd671(_0x23375d,_0x5487b2){_0x23375d=_0x23375d-0x1a2;const _0x534d1a=_0x534d();let _0xd67122=_0x534d1a[_0x23375d];return _0xd67122;}export{e as default};
1
+ function _0x30e3(_0x9e7519,_0x3bc82c){_0x9e7519=_0x9e7519-0x186;const _0x1161fe=_0x1161();let _0x30e3ab=_0x1161fe[_0x9e7519];return _0x30e3ab;}(function(_0x251b2c,_0x2425ed){const _0x5a202c=_0x30e3,_0x2b9955=_0x251b2c();while(!![]){try{const _0x2d5c6f=parseInt(_0x5a202c(0x18d))/0x1+-parseInt(_0x5a202c(0x189))/0x2+-parseInt(_0x5a202c(0x18e))/0x3*(parseInt(_0x5a202c(0x186))/0x4)+parseInt(_0x5a202c(0x188))/0x5*(-parseInt(_0x5a202c(0x187))/0x6)+parseInt(_0x5a202c(0x18b))/0x7+-parseInt(_0x5a202c(0x18c))/0x8+-parseInt(_0x5a202c(0x18a))/0x9;if(_0x2d5c6f===_0x2425ed)break;else _0x2b9955['push'](_0x2b9955['shift']());}catch(_0x39886e){_0x2b9955['push'](_0x2b9955['shift']());}}}(_0x1161,0x9d46d));import _0x4efa63 from'./en-US.js';const t=_0x4efa63;export{t as default};function _0x1161(){const _0x240a8f=['347376uHSsYa','665217vraMAF','7591143ASitZw','6412976PGCqYx','867417utDlQF','9381oPWxoM','128pYVRUQ','12VJZwbX','395935PXjejo'];_0x1161=function(){return _0x240a8f;};return _0x1161();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x349f38=_0x100b;(function(_0x3f3bf0,_0x458e94){const _0xd76345=_0x100b,_0x292124=_0x3f3bf0();while(!![]){try{const _0x3f138f=parseInt(_0xd76345(0x196))/0x1*(-parseInt(_0xd76345(0x202))/0x2)+parseInt(_0xd76345(0x279))/0x3*(-parseInt(_0xd76345(0x1bb))/0x4)+-parseInt(_0xd76345(0x242))/0x5+-parseInt(_0xd76345(0x261))/0x6+parseInt(_0xd76345(0x20c))/0x7*(parseInt(_0xd76345(0x1e2))/0x8)+parseInt(_0xd76345(0x187))/0x9+parseInt(_0xd76345(0x190))/0xa*(parseInt(_0xd76345(0x25d))/0xb);if(_0x3f138f===_0x458e94)break;else _0x292124['push'](_0x292124['shift']());}catch(_0x2d9b0b){_0x292124['push'](_0x292124['shift']());}}}(_0x24d2,0x53960));import{CommandType as _0x406843,DependentOn as _0x1cb994,Disposable as _0x5f07cd,ICommandService as _0x58a53f,IConfigService as _0x2b4b65,ILocalStorageService as _0x504129,ILogService as _0x5466f8,Inject as _0x5ab4cd,Injector as _0x52106a,LocaleService as _0x2a4117,Plugin as _0x281e21,merge as _0x31de54}from'@univerjs/core';import{MCPConnectionController as _0xa07734,MCPConnectionError as _0x4f4eca,MCPConnectionStatus as _0x22b515,MCP_PLUGIN_CONFIG_KEY as _0x46f5fe,UniverMCPPlugin as _0x4fc106}from'@univerjs-pro/mcp';import{Button as _0x281a3f,Input as _0xb5960,MessageType as _0x3d27a9,Tooltip as _0x42e742,clsx as _0x5161dc}from'@univerjs/design';import{BuiltInUIPart as _0x150bb3,ComponentManager as _0x517ccd,IDialogService as _0x179317,IMenuManagerService as _0x481c09,IMessageService as _0x459a62,IUIPartsService as _0x19a644,MenuItemType as _0x4562b8,RibbonStartGroup as _0xa20e1c,connectInjector as _0x277d2c,useDependency as _0x1b601f,useObservable as _0x22b380}from'@univerjs/ui';import{BehaviorSubject as _0x56b14b}from'rxjs';import{CheckMarkIcon as _0x2b54e9,CloseIcon as _0x914b78,HelpIcon as _0x180a71,OffLineIcon as _0x46e5cb,OnLineIcon as _0x32786a}from'@univerjs/icons';import{useCallback as _0x2c1554,useState as _0x12cec2}from'react';import{jsx as _0x17a7ec,jsxs as _0x1fe9f9}from'react/jsx-runtime';import{ISocketService as _0x14f887,WebSocketService as _0x29f53e}from'@univerjs/network';function z(_0x2bee8a){const _0x21a784=_0x100b;var _0x25207e,_0x2f8602;let {mcpCoreConfig:_0x4de57f,onSave:_0x32b4b4,loading:_0x5638d5=!0x1,config:_0x58f6a8,connectionStatus$:_0x7f9402,connectionError$:_0x4de8bb,currentApiKey$:_0xaa1eb5,currentSessionId$:_0x2c6c77}=_0x2bee8a,_0x1d3675=_0x1b601f(_0x2a4117),_0x391b16=_0x22b380(_0x7f9402,_0x22b515['DISCONNECTED']),_0x23c598=_0x22b380(_0x4de8bb,_0x4f4eca[_0x21a784(0x1d4)]),_0xc7eca0=_0x22b380(_0x2c6c77,''),[_0x45a398,_0x18f2d9]=_0x12cec2(_0x22b380(_0xaa1eb5,'')||''),_0x4c4861=_0x58f6a8[_0x21a784(0x262)]&&_0x4de57f[_0x21a784(0x20d)]&&(_0x4de57f[_0x21a784(0x20d)]['includes'](_0x21a784(0x24b))||_0x4de57f[_0x21a784(0x20d)][_0x21a784(0x1e3)](_0x21a784(0x1e8))),_0xba5e0a=(_0x25207e=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x25207e[_0x21a784(0x1e3)](_0x21a784(0x24b)),_0xbfcc22=(_0x2f8602=_0x4de57f[_0x21a784(0x20d)])==null?void 0x0:_0x2f8602[_0x21a784(0x1e3)](_0x21a784(0x1e8)),_0x34a6ac=_0xba5e0a?_0x21a784(0x220):_0x21a784(0x1ca),_0x44e4f0=_0x58f6a8['showDeveloperTools']&&(_0xba5e0a||_0xbfcc22),[_0x3f9460,_0x1a0716]=_0x12cec2(!_0x45a398[_0x21a784(0x290)]()),_0x31de11=(_0x4898e2,_0x184818)=>{const _0x308f1e=_0x21a784;if(_0x184818===_0x4f4eca['UNAUTHORIZED'])return _0x308f1e(0x1f0);switch(_0x4898e2){case _0x22b515[_0x308f1e(0x1f7)]:return _0x308f1e(0x23d);case _0x22b515['CONNECTING']:case _0x22b515[_0x308f1e(0x23a)]:return _0x308f1e(0x23c);case _0x22b515['FAILED']:return _0x308f1e(0x1f0);default:return _0x308f1e(0x1f9);}},_0x31309d=(_0x693879,_0x436c4e)=>{const _0x31cd69=_0x21a784;if(_0x436c4e===_0x4f4eca[_0x31cd69(0x223)])return _0x31cd69(0x26d);switch(_0x693879){case _0x22b515[_0x31cd69(0x1f7)]:return'univer-bg-green-500';case _0x22b515[_0x31cd69(0x1ea)]:case _0x22b515[_0x31cd69(0x23a)]:return _0x31cd69(0x23f);case _0x22b515[_0x31cd69(0x25b)]:return'univer-bg-red-500';default:return _0x31cd69(0x293);}},_0xf47ff6=_0x3a445e=>{const _0x1a51c6=_0x21a784;switch(_0x3a445e){case _0x22b515[_0x1a51c6(0x1f7)]:return _0x1d3675['t']('mcpConfig.connectionStatus.connected');case _0x22b515[_0x1a51c6(0x1ea)]:return _0x1d3675['t'](_0x1a51c6(0x1ed));case _0x22b515['FAILED']:return _0x1d3675['t'](_0x1a51c6(0x268));case _0x22b515['RETRYING']:return _0x1d3675['t'](_0x1a51c6(0x17e));default:return _0x1d3675['t'](_0x1a51c6(0x288));}},_0x24d7fe=_0x5a15e9=>{const _0x12a228=_0x21a784;switch(_0x5a15e9){case _0x4f4eca['UNAUTHORIZED']:return _0x1d3675['t'](_0x12a228(0x1ee));case _0x4f4eca[_0x12a228(0x26e)]:return _0x1d3675['t'](_0x12a228(0x263));case _0x4f4eca[_0x12a228(0x278)]:return _0x1d3675['t'](_0x12a228(0x1c7));case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x1d3675['t'](_0x12a228(0x28e));default:return'';}},_0x2d243f=_0x2c1554(()=>{const _0x21a3e8=_0x21a784;_0x32b4b4({..._0x4de57f,'apiKey':_0x45a398[_0x21a3e8(0x290)](),'enableAuth':!0x0});},[_0x4de57f,_0x45a398,!0x0,_0x32b4b4]),_0x3fe736=_0x45a398[_0x21a784(0x290)]()['length']>0x0;return _0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1cd),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x22b),'children':_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-white','children':'⚙'})}),_0x17a7ec(_0x21a784(0x26b),{'children':_0x17a7ec('p',{'className':_0x21a784(0x189),'children':_0x1d3675['t'](_0x21a784(0x234))})})]})}),_0x1fe9f9('div',{'className':_0x21a784(0x232),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x31de11(_0x391b16,_0x23c598)),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x5161dc(_0x21a784(0x298),_0x31309d(_0x391b16,_0x23c598))}),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-sm\x20univer-font-medium','children':_0xf47ff6(_0x391b16)})]})}),_0x23c598!==_0x4f4eca[_0x21a784(0x1d4)]&&(_0x391b16===_0x22b515['FAILED']||_0x23c598===_0x4f4eca[_0x21a784(0x223)])&&_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x18e),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27c),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x1d8),'children':'⚠️'}),_0x17a7ec('p',{'className':_0x21a784(0x22f),'children':_0x24d7fe(_0x23c598)})]})})]}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1eb),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x198),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x173),{'className':_0x21a784(0x213),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🔑'}),'\x20',_0x1d3675['t'](_0x21a784(0x1a6)),_0x17a7ec(_0x21a784(0x18b),{'className':'univer-text-red-500','children':'*'}),_0x4c4861&&_0x17a7ec('a',{'className':_0x21a784(0x25e),'title':_0x1d3675['t'](_0x21a784(0x22c)),'role':'button','onClick':()=>_0x1a0716(!0x0),'children':_0x17a7ec(_0x180a71,{})})]}),_0x17a7ec(_0xb5960,{'type':_0x21a784(0x269),'placeholder':_0x1d3675['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x45a398,'disabled':_0x5638d5,'autoComplete':_0x21a784(0x206),'onChange':_0x18f2d9}),_0x17a7ec('p',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x256))})]}),_0x4c4861&&_0x3f9460&&_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x27a),'children':[_0x17a7ec('a',{'className':_0x21a784(0x229),'role':'button','onClick':()=>_0x1a0716(!0x1),'children':_0x17a7ec(_0x914b78,{'className':'univer-size-4'})}),_0x1fe9f9('div',{'className':_0x21a784(0x1ac),'children':[_0x17a7ec('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x17a7ec('span',{'className':_0x21a784(0x1c0),'children':'🚀'})}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x210),'children':[_0x17a7ec('h4',{'className':_0x21a784(0x1fe),'children':_0x1d3675['t'](_0x21a784(0x22c))}),_0x17a7ec('p',{'className':_0x21a784(0x1fc),'children':_0x1d3675['t'](_0x21a784(0x170))}),_0x17a7ec('div',{'className':_0x21a784(0x21a),'children':_0x44e4f0&&_0x1fe9f9('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x34a6ac,'target':_0x21a784(0x1bd),'rel':_0x21a784(0x224),'children':[_0x17a7ec(_0x21a784(0x18b),{'children':'🤖'}),_0x1d3675['t'](_0x21a784(0x17f)),_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x21e),'children':'↗'})]})}),_0x1fe9f9('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1d3675['t'](_0x21a784(0x272))]})]})]})]}),_0x58f6a8[_0x21a784(0x262)]&&_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1fe9f9('h4',{'className':_0x21a784(0x1e5),'children':[_0x17a7ec('span',{'children':'🔗'}),'\x20',_0x1d3675['t'](_0x21a784(0x1e4))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d6),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-space-y-3','children':[_0x17a7ec('p',{'className':_0x21a784(0x20b),'children':_0x1d3675['t'](_0x21a784(0x1c2))}),_0x1fe9f9('div',{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x17c),'children':_0x1d3675['t'](_0x21a784(0x211))}),_0x1fe9f9('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1fe9f9('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x17a7ec('span',{'className':_0x21a784(0x236),'children':'1'}),_0x1d3675['t']('mcpConfig.configStep1')]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1d3675['t'](_0x21a784(0x1de))]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x236),'children':'3'}),_0x1d3675['t']('mcpConfig.configStep3')]})]})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x21a784(0x1df)}),_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1fb),'children':_0x17a7ec(_0x21a784(0x21c),{'className':_0x21a784(0x1a0),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x21a784(0x216)+(_0xc7eca0||'<SESSION_ID>'),'type':_0x21a784(0x282),'headers':{'Authorization':_0x21a784(0x194)+(_0x45a398||_0x21a784(0x1cc))}}}},null,0x2)})})]}),_0x1fe9f9('div',{'className':_0x21a784(0x296),'children':[_0x17a7ec('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d3675['t']('mcpConfig.configParameters')}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x1d7),'children':[_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1c8)}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x1f4),'children':_0x21a784(0x1b7)}),_0x17a7ec('div',{'className':_0x21a784(0x1cf),'children':_0x1d3675['t'](_0x21a784(0x217))})]})]}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x191),'children':[_0x17a7ec('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1fe9f9(_0x21a784(0x26b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x17a7ec('div',{'className':_0x21a784(0x1f4),'children':'Authorization:'}),_0x17a7ec(_0x21a784(0x26b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1d3675['t'](_0x21a784(0x237))})]})]})]})]})]})]}),_0x17a7ec(_0x281a3f,{'onClick':_0x2d243f,'disabled':!_0x3fe736||_0x5638d5,'className':_0x21a784(0x297),'children':_0x5638d5?_0x1fe9f9(_0x21a784(0x18b),{'className':_0x21a784(0x218),'children':[_0x17a7ec('span',{'children':'⟲'}),_0x1d3675['t'](_0x21a784(0x1bf))]}):_0x1fe9f9('span',{'className':_0x21a784(0x218),'children':[_0x17a7ec(_0x2b54e9,{}),_0x1d3675['t'](_0x21a784(0x26c))]})}),_0x17a7ec('div',{'className':_0x21a784(0x260),'children':_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x267),'children':[_0x17a7ec(_0x21a784(0x18b),{'className':_0x21a784(0x22e),'children':'💡'}),_0x1fe9f9(_0x21a784(0x26b),{'className':_0x21a784(0x21f),'children':[_0x17a7ec(_0x21a784(0x26b),{'className':_0x21a784(0x208),'children':_0x21a784(0x25f)}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x22d))]}),_0x1fe9f9(_0x21a784(0x26b),{'children':['•',_0x1d3675['t'](_0x21a784(0x1e1))]})]})]})})]})})]});}const B=_0x349f38(0x257),V={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x24d2(){const _0x4b56ae=['mcpConfig.configStepTitle','removeItem','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','getConfig','mcpStatus.retrying','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.sessionIdDescription','univer-flex\x20univer-items-center\x20univer-gap-2','_componentManager','univer-flex\x20univer-flex-wrap\x20univer-gap-2','string','pre','univer-text-gray-500','univer-text-gray-400','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','https://console.univer.plus','几秒钟内获取您的\x20API\x20密钥','packageName','UNAUTHORIZED','noopener\x20noreferrer','mcp-ui.command.openConfigPanel','MCP\x20客户端配置','MCP\x20Connection\x20Failed','什么是\x20API\x20密钥?','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.validation.invalidConfig','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.title','mcpConfig.note1','univer-shrink-0\x20univer-text-blue-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','subscribeConfigValue$','_config$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.description','MCP_UI_PLUGIN','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.authorizationDescription','Click\x20to\x20configure\x20MCP','showConfigPanel','RETRYING','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','get','univer-bg-blue-500','启用身份验证以获得安全连接','close','3277640GmyZZd','add','_initAutoConnect','iterator','_injector','object','您的\x20API\x20密钥安全存储在本地存储中','Configuration\x20Parameters:','_localeService','univer.plus','_apiKey$','_dialogService','启用身份验证','将配置添加到您的\x20MCP\x20客户端设置文件中','call','_handleConfigSave','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','超出最大重试次数,请稍后再试','Click\x20to\x20connect\x20MCP','API\x20Key','mcpConfig.apiKeyHint','mcp-ui.config','symbol','Connecting...','mcpStatus.sessionOccupied','FAILED','_validateConfig','2370291JDXmiF','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','219630qnFOQy','showDeveloperTools','mcpConfig.connectionError.sessionOccupied','_connectionController','配置保存成功','配置更改将立即生效','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.failed','text','Save\x20Configuration','div','mcpConfig.save','univer-bg-red-500','SESSION_ID_OCCUPIED','Copy\x20the\x20JSON\x20configuration\x20below','prototype','复制以下\x20JSON\x20配置','mcpConfig.apiApplyInfo.getStarted','error','COMMAND','Error','_logService','mcpStatus.disconnected','NETWORK_ERROR','3WmyyfE','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Unknown\x20Status','function','会话\x20ID\x20已被占用,请稍后再试','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.maxRetriesExceeded','http','__setCustomHeaders','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','push','MCPConfigPanel','mcpConfig.connectionStatus.disconnected','_uiPartsService','DISCONNECTED','连接中...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','open','mcpConfig.connectionError.maxRetriesExceeded','会话ID','trim','registerComponent','mcpConfig.configSaved','univer-bg-gray-500','未连接','errorMessage','univer-space-y-3','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-size-2\x20univer-rounded-full','getOwnPropertyDescriptor','Get\x20your\x20API\x20key\x20in\x20seconds','mcp.apiKey','decorate','mcpConfig.apiApplyInfo.description','validateApiKey','MCP\x20重连中...','label','Configuration\x20saved\x20successfully','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP\x20连接失败','pluginName','Disconnected','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','connectionStatus$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','register','mcpConfig.connectionStatus.retrying','mcpConfig.apiApplyInfo.univerAiLabel','_mcpCoreConfig$','MCP\x20Client\x20Configuration','OTHERS','_createConfigPanelComponent','apiKey','univer-flex\x20univer-items-center','MCP:\x20Max\x20Retries\x20Exceeded','2058939usdpmo','MCP\x20已断开','univer-text-sm\x20univer-text-gray-500','API\x20密钥不能为空','span','mcpStatus.unauthorized','univer-text-green-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','50ufdvOc','univer-flex\x20univer-items-start\x20univer-gap-3','show','_mcpConnectionController','Bearer\x20','Success','2xNMpWR','MCP\x20Connecting...','univer-space-y-5','showStatus','mcpConfig.configError','_initConfigSync','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_initStatusComponent','\x20-\x20','setConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','已连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','has','MCP\x20Retrying...','mcpConfig.apiKey','enableAutoConnect','mcpStatus.unknown','disposeWithMe','权限验证失败,请检查您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','warn','Connected','MCP:\x20未授权','_initializeMenus','Failed\x20to\x20save\x20configuration','BUTTON','mergeMenu','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.clickToConfigure','重连中...','univer_session_id:','mcpConfig.title','mcp-config-dialog','Saving...','498124xBmDwz','univer-text-red-500','_blank','getItem','mcpConfig.saving','univer-text-blue-600','sessionId$','mcpConfig.configInstructions','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_handleConfigure','mcpStatus.failed','MCP:\x20Network\x20Error','mcpConfig.connectionError.networkError','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_config','https://console.univer.ai','_loading$','<API_KEY>','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','请输入您的\x20API\x20密钥','univer-text-xs\x20univer-text-gray-500','mcpConfig.validation.invalidApiKey','配置参数:','_localStorageService','isValid','NONE','subscribe','univer-space-y-4','univer-space-y-2','univer-shrink-0\x20univer-text-red-500','_commandService','API\x20密钥长度至少需要\x2010\x20位','length','Enable\x20Authentication','配置步骤:','mcpConfig.configStep2','MCP\x20Configuration','next','mcpConfig.note2','20704etgRYD','includes','mcpConfig.connectionInfo','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥','connectionError$','univer.ai','defineProperty','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','最大重试次数','mcpConfig.connectionStatus.connecting','mcpConfig.connectionError.unauthorized','0.25.1','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_configService','_loadStoredApiKey','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_messageService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','getCurrentConfig','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','setItem','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','连接失败','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.apiKeyRequired','点击连接\x20MCP','MenuIcon','180788wYkBVs','MCP\x20连接中...','保存配置','Enter\x20your\x20API\x20key','off','value','univer-font-medium','constructor','version','univer-text-xs\x20univer-text-gray-600','91VZdEDG','mcpServerUrl','MCP:\x20会话\x20ID\x20已被占用','HEADER_MENU','univer-flex-1'];_0x24d2=function(){return _0x4b56ae;};return _0x24d2();}function H(_0x10c6b1){'@babel/helpers - typeof';const _0x1b0209=_0x349f38;return H=typeof Symbol==_0x1b0209(0x27e)&&typeof Symbol[_0x1b0209(0x245)]=='symbol'?function(_0x2dfa17){return typeof _0x2dfa17;}:function(_0x5e7f9a){const _0x3b2554=_0x1b0209;return _0x5e7f9a&&typeof Symbol==_0x3b2554(0x27e)&&_0x5e7f9a[_0x3b2554(0x209)]===Symbol&&_0x5e7f9a!==Symbol[_0x3b2554(0x270)]?_0x3b2554(0x258):typeof _0x5e7f9a;},H(_0x10c6b1);}function oe(_0x24de2d,_0x1bc569){const _0x1edbc7=_0x349f38;if(H(_0x24de2d)!=_0x1edbc7(0x247)||!_0x24de2d)return _0x24de2d;var _0x6ea2cb=_0x24de2d[Symbol['toPrimitive']];if(_0x6ea2cb!==void 0x0){var _0x562613=_0x6ea2cb[_0x1edbc7(0x250)](_0x24de2d,_0x1bc569||'default');if(H(_0x562613)!=_0x1edbc7(0x247))return _0x562613;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1bc569===_0x1edbc7(0x21b)?String:Number)(_0x24de2d);}function se(_0x2fe064){const _0x3e8254=_0x349f38;var _0x37a438=oe(_0x2fe064,'string');return H(_0x37a438)==_0x3e8254(0x258)?_0x37a438:_0x37a438+'';}function U(_0x57cbbd,_0xd4f952,_0x500e11){const _0x1cfd3b=_0x349f38;return(_0xd4f952=se(_0xd4f952))in _0x57cbbd?Object[_0x1cfd3b(0x1e9)](_0x57cbbd,_0xd4f952,{'value':_0x500e11,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57cbbd[_0xd4f952]=_0x500e11,_0x57cbbd;}function W(_0x47b003,_0x187f63){return function(_0x227ebc,_0x50addf){_0x187f63(_0x227ebc,_0x50addf,_0x47b003);};}function G(_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a){const _0x21d3c7=_0x349f38;var _0x396866=arguments['length'],_0x8c49e1=_0x396866<0x3?_0x2d1d12:_0x58bc1a===null?_0x58bc1a=Object[_0x21d3c7(0x16c)](_0x2d1d12,_0x5d2dcd):_0x58bc1a,_0x5e1270;if(typeof Reflect==_0x21d3c7(0x247)&&typeof Reflect[_0x21d3c7(0x16f)]==_0x21d3c7(0x27e))_0x8c49e1=Reflect[_0x21d3c7(0x16f)](_0x3096cb,_0x2d1d12,_0x5d2dcd,_0x58bc1a);else{for(var _0x5e7024=_0x3096cb['length']-0x1;_0x5e7024>=0x0;_0x5e7024--)(_0x5e1270=_0x3096cb[_0x5e7024])&&(_0x8c49e1=(_0x396866<0x3?_0x5e1270(_0x8c49e1):_0x396866>0x3?_0x5e1270(_0x2d1d12,_0x5d2dcd,_0x8c49e1):_0x5e1270(_0x2d1d12,_0x5d2dcd))||_0x8c49e1);}return _0x396866>0x3&&_0x8c49e1&&Object[_0x21d3c7(0x1e9)](_0x2d1d12,_0x5d2dcd,_0x8c49e1),_0x8c49e1;}const K=_0x349f38(0x16e),q=_0x349f38(0x1b9);let J=class extends _0x5f07cd{constructor(_0x2210c8,_0xb195a5,_0x2440ad,_0x564bc7,_0x3e66e7,_0x1bbf86,_0x3b966d,_0x3b9c84,_0x47e96a,_0x231a85){const _0x412fcf=_0x349f38;super(),this[_0x412fcf(0x246)]=_0x2210c8,this[_0x412fcf(0x289)]=_0xb195a5,this[_0x412fcf(0x1f1)]=_0x2440ad,this[_0x412fcf(0x1d2)]=_0x564bc7,this[_0x412fcf(0x24d)]=_0x3e66e7,this[_0x412fcf(0x1f5)]=_0x1bbf86,this[_0x412fcf(0x219)]=_0x3b966d,this['_localeService']=_0x3b9c84,this[_0x412fcf(0x276)]=_0x47e96a,this[_0x412fcf(0x193)]=_0x231a85,U(this,'_loading$',new _0x56b14b(!0x1)),U(this,'_mcpCoreConfig$',new _0x56b14b({})),U(this,_0x412fcf(0x231),new _0x56b14b({})),U(this,_0x412fcf(0x24c),new _0x56b14b('')),U(this,'_handleConfigSave',async _0x2d7587=>{const _0x35606b=_0x412fcf;this[_0x35606b(0x1cb)]['next'](!0x0);try{var _0x58c308,_0x23da9c;let _0x2d12d6=await this[_0x35606b(0x25c)](_0x2d7587);if(!_0x2d12d6[_0x35606b(0x1d3)]){this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9['Error'],'content':_0x2d12d6[_0x35606b(0x295)]||this[_0x35606b(0x24a)]['t'](_0x35606b(0x22a))});return;}_0x2d7587[_0x35606b(0x184)]?await this['_localStorageService'][_0x35606b(0x1fa)](K,_0x2d7587[_0x35606b(0x184)][_0x35606b(0x290)]()):await this[_0x35606b(0x1d2)][_0x35606b(0x212)](K),this[_0x35606b(0x24c)][_0x35606b(0x1e0)](((_0x58c308=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x58c308[_0x35606b(0x290)]())||''),this[_0x35606b(0x193)]['__setCustomHeaders']({'Authorization':_0x35606b(0x194)+((_0x23da9c=_0x2d7587[_0x35606b(0x184)])==null?void 0x0:_0x23da9c[_0x35606b(0x290)]())}),this[_0x35606b(0x1f5)][_0x35606b(0x192)]({'type':_0x3d27a9[_0x35606b(0x195)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x292))}),setTimeout(()=>{const _0x48e96c=_0x35606b;this[_0x48e96c(0x24d)][_0x48e96c(0x241)](q);},0x320);}catch(_0x3eb94f){this[_0x35606b(0x276)][_0x35606b(0x273)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3eb94f),this[_0x35606b(0x1f5)]['show']({'type':_0x3d27a9[_0x35606b(0x275)],'content':this[_0x35606b(0x24a)]['t'](_0x35606b(0x19a))});}finally{this[_0x35606b(0x1cb)]['next'](!0x1);}}),this['_initConfigSync'](),this[_0x412fcf(0x1f2)](),this[_0x412fcf(0x18f)]();}[_0x349f38(0x239)](){const _0x349705=_0x349f38;let _0x371990=this[_0x349705(0x1f1)][_0x349705(0x214)](B);_0x371990!=null&&_0x371990[_0x349705(0x262)]&&this[_0x349705(0x24d)][_0x349705(0x28d)]({'id':q,'title':{'title':this[_0x349705(0x24a)]['t'](_0x349705(0x1b8))},'children':{'label':_0x349705(0x287)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x51addc=_0x349705;this[_0x51addc(0x24d)][_0x51addc(0x241)](q);}});}[_0x349f38(0x1f8)](){return this['_mcpCoreConfig$']['value'];}[_0x349f38(0x18f)](){const _0x16b593=_0x349f38;this['disposeWithMe'](this[_0x16b593(0x219)][_0x16b593(0x17d)](_0x16b593(0x287),this[_0x16b593(0x183)]()));}[_0x349f38(0x183)](){return _0x277d2c(()=>{const _0x3156e4=_0x100b;var _0x25bfda,_0x3a3694,_0xeb7f3b;return _0x17a7ec(z,{'config':this[_0x3156e4(0x231)][_0x3156e4(0x207)],'mcpCoreConfig':this[_0x3156e4(0x180)][_0x3156e4(0x207)],'currentApiKey$':this[_0x3156e4(0x24c)],'onSave':this[_0x3156e4(0x251)],'loading':this['_loading$'][_0x3156e4(0x207)],'connectionStatus$':(_0x25bfda=this['_mcpConnectionController'])==null?void 0x0:_0x25bfda[_0x3156e4(0x17b)],'connectionError$':(_0x3a3694=this[_0x3156e4(0x193)])==null?void 0x0:_0x3a3694[_0x3156e4(0x1e7)],'currentSessionId$':(_0xeb7f3b=this[_0x3156e4(0x193)])==null?void 0x0:_0xeb7f3b[_0x3156e4(0x1c1)]});},this['_injector']);}[_0x349f38(0x19b)](){const _0x34c9a3=_0x349f38;this[_0x34c9a3(0x1a9)](this['_configService'][_0x34c9a3(0x230)](_0x46f5fe)[_0x34c9a3(0x1d5)](_0x591f2c=>{const _0x24b8f5=_0x34c9a3;this[_0x24b8f5(0x180)][_0x24b8f5(0x1e0)](_0x591f2c||{});}));let _0x3a495c=this['_configService'][_0x34c9a3(0x214)](_0x46f5fe);this['_mcpCoreConfig$']['next'](_0x3a495c||{}),this[_0x34c9a3(0x1a9)](this[_0x34c9a3(0x1f1)]['subscribeConfigValue$'](B)[_0x34c9a3(0x1d5)](_0x17f203=>{const _0x116bec=_0x34c9a3;this[_0x116bec(0x231)][_0x116bec(0x1e0)](_0x17f203||{});}));let _0x11d63a=this[_0x34c9a3(0x1f1)][_0x34c9a3(0x214)](B);this[_0x34c9a3(0x231)]['next'](_0x11d63a||{});}async[_0x349f38(0x1f2)](){const _0xae08d4=_0x349f38;let _0x18e459=this[_0xae08d4(0x1f1)][_0xae08d4(0x214)](B);if(!(_0x18e459!=null&&_0x18e459[_0xae08d4(0x262)]))return;let _0x135e7a=await this[_0xae08d4(0x1d2)][_0xae08d4(0x1be)](K);_0x135e7a&&(this[_0xae08d4(0x193)][_0xae08d4(0x283)]({'Authorization':_0xae08d4(0x194)+_0x135e7a}),this[_0xae08d4(0x24c)][_0xae08d4(0x1e0)](_0x135e7a));}async['_validateConfig'](_0x357d7b){const _0x1f2742=_0x349f38;if(!_0x357d7b[_0x1f2742(0x184)]||_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()[_0x1f2742(0x1db)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1ff))};if(_0x357d7b[_0x1f2742(0x184)][_0x1f2742(0x290)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1f2742(0x24a)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x185c69=await this[_0x1f2742(0x246)]['get'](_0xa07734)[_0x1f2742(0x171)](_0x357d7b['apiKey']['trim']());return _0x185c69[_0x1f2742(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x185c69[_0x1f2742(0x273)]||this[_0x1f2742(0x24a)]['t'](_0x1f2742(0x1d0))};}catch(_0xb0b18a){return console[_0x1f2742(0x1ad)](_0x1f2742(0x175),_0xb0b18a),{'isValid':!0x0};}}};J=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x19a644),W(0x2,_0x2b4b65),W(0x3,_0x504129),W(0x4,_0x179317),W(0x5,_0x459a62),W(0x6,_0x5ab4cd(_0x517ccd)),W(0x7,_0x5ab4cd(_0x2a4117)),W(0x8,_0x5466f8),W(0x9,_0x5ab4cd(_0xa07734))],J);const Y={'id':_0x349f38(0x225),'type':_0x406843[_0x349f38(0x274)],'handler':async(_0x2afc2b,_0x1fdd78)=>(_0x2afc2b[_0x349f38(0x23e)](J)[_0x349f38(0x239)](),!0x0)};function X(_0x114b2d,_0x36fb23){const _0x78e4a3=_0x349f38;switch(_0x114b2d){case _0x22b515[_0x78e4a3(0x28a)]:return _0x78e4a3(0x277);case _0x22b515['CONNECTING']:return'mcpStatus.connecting';case _0x22b515[_0x78e4a3(0x1f7)]:return'mcpStatus.connected';case _0x22b515['FAILED']:switch(_0x36fb23){case _0x4f4eca[_0x78e4a3(0x223)]:return _0x78e4a3(0x18c);case _0x4f4eca[_0x78e4a3(0x26e)]:return _0x78e4a3(0x25a);case _0x4f4eca['NETWORK_ERROR']:return'mcpStatus.networkError';case _0x4f4eca['MAX_RETRIES_EXCEEDED']:return _0x78e4a3(0x281);default:return _0x78e4a3(0x1c5);}case _0x22b515[_0x78e4a3(0x23a)]:return _0x78e4a3(0x215);default:return _0x78e4a3(0x1a8);}}function _0x100b(_0x3b4dd3,_0x1b5b2c){_0x3b4dd3=_0x3b4dd3-0x16c;const _0x24d259=_0x24d2();let _0x100b57=_0x24d259[_0x3b4dd3];return _0x100b57;}function ce(_0x11edc8,_0x5f24cd,_0x2edeca,_0x223c52=!0x0){const _0x4abc33=_0x349f38;let _0xe46f7a=X(_0x11edc8,_0x5f24cd),_0x488602=_0x2edeca['t'](_0xe46f7a);return _0x223c52?_0x11edc8===_0x22b515[_0x4abc33(0x28a)]&&_0x5f24cd===_0x4f4eca['UNAUTHORIZED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t'](_0x4abc33(0x1b5)):_0x11edc8===_0x22b515[_0x4abc33(0x1f7)]?''+_0x488602:_0x11edc8===_0x22b515[_0x4abc33(0x28a)]||_0x11edc8===_0x22b515['FAILED']?_0x488602+_0x4abc33(0x19e)+_0x2edeca['t']('mcpStatus.clickToConnect'):_0x488602:_0x488602;}function le(_0x5dbdea){const _0x7ff7ed=_0x349f38;switch(_0x5dbdea){case _0x22b515[_0x7ff7ed(0x1f7)]:return _0x7ff7ed(0x18d);case _0x22b515[_0x7ff7ed(0x1ea)]:case _0x22b515[_0x7ff7ed(0x23a)]:return'univer-text-yellow-500';case _0x22b515['FAILED']:case _0x22b515[_0x7ff7ed(0x28a)]:return _0x7ff7ed(0x1bc);default:return _0x7ff7ed(0x21d);}}function ue(_0x152244){const _0x2a7187=_0x349f38;let {status$:_0x5ac207,error$:_0x1be9f5,onConfigure:_0x4ac8e7,showClickable:_0x85eac2=!0x0}=_0x152244,_0x1372b3=_0x22b380(_0x5ac207,_0x22b515['DISCONNECTED']),_0x2bc02a=_0x22b380(_0x1be9f5,_0x4f4eca[_0x2a7187(0x1d4)]),_0x496ef7=_0x1b601f(_0x2a4117),_0x34e12e=_0x1372b3===_0x22b515[_0x2a7187(0x1f7)];_0x1372b3===_0x22b515[_0x2a7187(0x1ea)]||_0x22b515[_0x2a7187(0x23a)];let _0x1c1805=_0x496ef7['t'](X(_0x1372b3,_0x2bc02a)),_0x36f08d=ce(_0x1372b3,_0x2bc02a,_0x496ef7,_0x85eac2),_0x407a19=le(_0x1372b3),_0x3563f2=_0x17a7ec(_0x34e12e?_0x32786a:_0x46e5cb,{}),_0x2703e2=_0x2c1554(()=>{_0x85eac2&&_0x4ac8e7&&_0x4ac8e7();},[_0x85eac2,_0x4ac8e7]);function _0x512b4d(){const _0x23bb92=_0x2a7187;return _0x1fe9f9('div',{'className':_0x5161dc(_0x23bb92(0x185),_0x85eac2&&_0x4ac8e7&&'\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'),'role':'button','onClick':_0x85eac2&&_0x4ac8e7?_0x2703e2:void 0x0,'children':[_0x17a7ec(_0x23bb92(0x26b),{'className':_0x5161dc(_0x23bb92(0x27b),_0x407a19),'children':_0x3563f2}),_0x17a7ec(_0x23bb92(0x26b),{'className':_0x23bb92(0x280),'children':_0x1c1805})]});}return _0x17a7ec(_0x42e742,{'title':_0x36f08d,'placement':'bottom','children':_0x512b4d()});}let Z=class extends _0x5f07cd{constructor(_0x346cdf,_0x211f99,_0x5b521a,_0x2a80e3){const _0x19bedc=_0x349f38;super(),this[_0x19bedc(0x246)]=_0x346cdf,this[_0x19bedc(0x264)]=_0x211f99,this[_0x19bedc(0x289)]=_0x5b521a,this[_0x19bedc(0x1f1)]=_0x2a80e3,this['_initAutoConnect'](),this[_0x19bedc(0x19d)]();}[_0x349f38(0x244)](){const _0x1e43fe=_0x349f38;let _0x5b1fce=this[_0x1e43fe(0x1f1)][_0x1e43fe(0x214)](B);_0x5b1fce!=null&&_0x5b1fce[_0x1e43fe(0x262)]&&(this[_0x1e43fe(0x264)][_0x1e43fe(0x1a7)]=!0x1);}[_0x349f38(0x19d)](){const _0x4a7122=_0x349f38;let _0x45fac1=this[_0x4a7122(0x1f1)][_0x4a7122(0x214)](B);(_0x45fac1==null?void 0x0:_0x45fac1[_0x4a7122(0x199)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x4a7122(0x291)](_0x150bb3[_0x4a7122(0x20f)],()=>{const _0x3e56ce=_0x4a7122;var _0xbda99;return _0x277d2c(de({'status$':this[_0x3e56ce(0x264)][_0x3e56ce(0x17b)],'error$':this[_0x3e56ce(0x264)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xbda99=_0x45fac1==null?void 0x0:_0x45fac1[_0x3e56ce(0x262)])==null?!0x1:_0xbda99}),this[_0x3e56ce(0x246)]);}));}[_0x349f38(0x1c4)](){const _0x11e9f1=_0x349f38;this['_injector'][_0x11e9f1(0x23e)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x5ab4cd(_0x52106a)),W(0x1,_0x5ab4cd(_0xa07734)),W(0x2,_0x19a644),W(0x3,_0x2b4b65)],Z);function de(_0x4e40dc){let {status$:_0xf7c9bd,error$:_0x51af1e,onConfigure:_0x2feca5,showClickable:_0x33e29d}=_0x4e40dc;return function(){return _0x17a7ec(ue,{'status$':_0xf7c9bd,'error$':_0x51af1e,'onConfigure':_0x2feca5,'showClickable':_0x33e29d});};}function fe(_0x4251cc){const _0x1f6fcf=_0x349f38;return{'id':Y['id'],'type':_0x4562b8[_0x1f6fcf(0x1b2)],'icon':_0x1f6fcf(0x201),'title':_0x1f6fcf(0x1b8),'tooltip':'mcpConfig.title'};}const pe={[_0xa20e1c[_0x349f38(0x182)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x5f07cd{constructor(_0x57f3cc,_0x44063c){const _0x1e726e=_0x349f38;super(),this[_0x1e726e(0x1d9)]=_0x57f3cc,this['_menuManagerService']=_0x44063c,this['_initializeCommands'](),this[_0x1e726e(0x1b0)]();}['_initializeCommands'](){[Y]['forEach'](_0x20842e=>{const _0x29ba5a=_0x100b;this[_0x29ba5a(0x1a9)](this[_0x29ba5a(0x1d9)]['registerCommand'](_0x20842e));});}[_0x349f38(0x1b0)](){const _0x2d8274=_0x349f38;this['_menuManagerService'][_0x2d8274(0x1b3)](pe);}};Q=G([W(0x0,_0x58a53f),W(0x1,_0x481c09)],Q);const me={'mcpStatus':{'disconnected':_0x349f38(0x179),'connecting':_0x349f38(0x197),'connected':_0x349f38(0x284),'failed':_0x349f38(0x227),'retrying':_0x349f38(0x1a5),'unknown':_0x349f38(0x27d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x349f38(0x233),'networkError':_0x349f38(0x1c6),'maxRetriesExceeded':_0x349f38(0x186),'clickToConnect':_0x349f38(0x254),'clickToConfigure':_0x349f38(0x238)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x349f38(0x1a3),'apiKey':_0x349f38(0x255),'apiKeyPlaceholder':_0x349f38(0x205),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x349f38(0x1dc),'enableAuthHint':_0x349f38(0x1b4),'connectionInfo':_0x349f38(0x181),'mcpClientConfig':_0x349f38(0x181),'configInstructions':_0x349f38(0x1ab),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x349f38(0x26f),'configStep2':_0x349f38(0x1c3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x349f38(0x1a1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x349f38(0x249),'maxRetries':'Max\x20Retries','save':_0x349f38(0x26a),'saving':_0x349f38(0x1ba),'note1':_0x349f38(0x28c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x349f38(0x174),'configError':_0x349f38(0x1b1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x349f38(0x17a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x349f38(0x16d)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x349f38(0x285),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x349f38(0x19c)},'connectionStatus':{'disconnected':_0x349f38(0x178),'connecting':_0x349f38(0x259),'connected':_0x349f38(0x1ae),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x349f38(0x1f6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x349f38(0x252)}}},he={'mcpStatus':{'disconnected':_0x349f38(0x188),'connecting':_0x349f38(0x203),'connected':'MCP\x20已连接','failed':_0x349f38(0x176),'retrying':_0x349f38(0x172),'unknown':'MCP\x20状态未知','unauthorized':_0x349f38(0x1af),'sessionOccupied':_0x349f38(0x20e),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x349f38(0x200),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x349f38(0x1e6),'apiKeyPlaceholder':_0x349f38(0x1ce),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x349f38(0x24e),'enableAuthHint':_0x349f38(0x240),'connectionInfo':_0x349f38(0x226),'mcpClientConfig':_0x349f38(0x226),'configInstructions':_0x349f38(0x23b),'configStepTitle':_0x349f38(0x1dd),'configStep1':_0x349f38(0x271),'configStep2':_0x349f38(0x24f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x349f38(0x28f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x349f38(0x1d1),'maxRetries':_0x349f38(0x1ec),'save':_0x349f38(0x204),'saving':'保存中...','note1':_0x349f38(0x266),'note2':_0x349f38(0x248),'configSaved':_0x349f38(0x265),'configError':'配置保存失败','apiApplyInfo':{'title':_0x349f38(0x228),'description':_0x349f38(0x1f3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x349f38(0x221)},'validation':{'apiKeyRequired':_0x349f38(0x18a),'apiKeyTooShort':_0x349f38(0x1da),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x349f38(0x294),'connecting':_0x349f38(0x28b),'connected':_0x349f38(0x1a2),'failed':_0x349f38(0x1fd),'retrying':_0x349f38(0x1b6)},'connectionError':{'unauthorized':_0x349f38(0x1aa),'sessionOccupied':_0x349f38(0x27f),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x349f38(0x253)}}};var ge='@univerjs-pro/mcp-ui',_e=_0x349f38(0x1ef);let $=class extends _0x281e21{constructor(_0x2771b8=V,_0x20c65a,_0x3d8a97,_0x579aab,_0x3dffdf,_0x139d20){const _0x161f3b=_0x349f38;super(),this['_config']=_0x2771b8,this['_injector']=_0x20c65a,this[_0x161f3b(0x1f1)]=_0x3d8a97,this['_uiPartsService']=_0x579aab,this[_0x161f3b(0x1d2)]=_0x3dffdf,this['_localeService']=_0x139d20;let {..._0x52bcfc}=_0x31de54({},V,this[_0x161f3b(0x1c9)]);this[_0x161f3b(0x1f1)][_0x161f3b(0x19f)](B,_0x52bcfc);}async['onStarting'](){const _0x16e2a5=_0x349f38;let _0x5b0143=[[Z],[J],[Q]];this[_0x16e2a5(0x246)][_0x16e2a5(0x1a4)](_0x14f887)||_0x5b0143[_0x16e2a5(0x286)]([_0x14f887,{'useClass':_0x29f53e}]),_0x5b0143['forEach'](_0x1f29ce=>this[_0x16e2a5(0x246)][_0x16e2a5(0x243)](_0x1f29ce)),this['_injector'][_0x16e2a5(0x23e)](Z),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](J),this[_0x16e2a5(0x246)][_0x16e2a5(0x23e)](Q);}};U($,_0x349f38(0x177),_0x349f38(0x235)),U($,_0x349f38(0x222),ge),U($,_0x349f38(0x20a),_e),$=G([_0x1cb994(_0x4fc106),W(0x1,_0x5ab4cd(_0x52106a)),W(0x2,_0x2b4b65),W(0x3,_0x19a644),W(0x4,_0x504129),W(0x5,_0x5ab4cd(_0x2a4117))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
1
+ const _0x5b386b=_0x26a5;(function(_0x5167eb,_0x32576f){const _0x35e351=_0x26a5,_0x4bafaf=_0x5167eb();while(!![]){try{const _0x5cca18=-parseInt(_0x35e351(0x1e0))/0x1+parseInt(_0x35e351(0x2a5))/0x2*(parseInt(_0x35e351(0x1d4))/0x3)+-parseInt(_0x35e351(0x23c))/0x4*(-parseInt(_0x35e351(0x22e))/0x5)+parseInt(_0x35e351(0x21e))/0x6+-parseInt(_0x35e351(0x23e))/0x7+parseInt(_0x35e351(0x214))/0x8+-parseInt(_0x35e351(0x206))/0x9*(parseInt(_0x35e351(0x222))/0xa);if(_0x5cca18===_0x32576f)break;else _0x4bafaf['push'](_0x4bafaf['shift']());}catch(_0x412f8d){_0x4bafaf['push'](_0x4bafaf['shift']());}}}(_0x1683,0x22f8a));import _0x161449 from'./locale/en-US.js';import _0x397a8e from'./locale/zh-CN.js';import{CommandType as _0x593979,DependentOn as _0x492c3b,Disposable as _0x36bc9e,ICommandService as _0x4bda18,IConfigService as _0x20fb6a,ILocalStorageService as _0x154cb1,ILogService as _0x1ebe22,Inject as _0x5289d4,Injector as _0xbbbf4b,LocaleService as _0x51f592,Plugin as _0x3e8439,merge as _0x354f9c}from'@univerjs/core';function _0x26a5(_0x22ada1,_0x432410){_0x22ada1=_0x22ada1-0x1c8;const _0x16831d=_0x1683();let _0x26a59c=_0x16831d[_0x22ada1];return _0x26a59c;}import{MCPConnectionController as _0x4b7493,MCPConnectionError as _0x8f97d4,MCPConnectionStatus as _0xd1ea3a,MCP_PLUGIN_CONFIG_KEY as _0x2eedd5,UniverMCPPlugin as _0x5d8c82}from'@univerjs-pro/mcp';import{Button as _0x24b75f,Input as _0x4619da,MessageType as _0x169226,Tooltip as _0x20c901,clsx as _0xa49791}from'@univerjs/design';import{BuiltInUIPart as _0x209d4c,ComponentManager as _0x368ca5,IDialogService as _0x15974b,IMenuManagerService as _0x27ead3,IMessageService as _0x181e42,IUIPartsService as _0x2e6601,MenuItemType as _0x53c3c0,RibbonStartGroup as _0x15a128,connectInjector as _0x30c1f6,useDependency as _0x15c776,useObservable as _0x6ce075}from'@univerjs/ui';import{BehaviorSubject as _0x1d736b}from'rxjs';import{CheckMarkIcon as _0x43bc65,CloseIcon as _0x51a9d2,HelpIcon as _0x168b18,OffLineIcon as _0x1ecc57,OnLineIcon as _0x3ef954}from'@univerjs/icons';import{useCallback as _0x2ae2c6,useState as _0x2054c5}from'react';import{jsx as _0x18af1c,jsxs as _0x362d0c}from'react/jsx-runtime';import{ISocketService as _0x429c47,WebSocketService as _0x27c201}from'@univerjs/network';function R(_0x529ae8){const _0xd12f9c=_0x26a5;var _0x45df0c,_0x352f80;let {mcpCoreConfig:_0x533d24,onSave:_0x13e0d4,loading:_0x475938=!0x1,config:_0x4c4e5b,connectionStatus$:_0x3c5014,connectionError$:_0x598d64,currentApiKey$:_0x3e944e,currentSessionId$:_0xfba125}=_0x529ae8,_0x25f614=_0x15c776(_0x51f592),_0x56f284=_0x6ce075(_0x3c5014,_0xd1ea3a[_0xd12f9c(0x1c8)]),_0x4b89d0=_0x6ce075(_0x598d64,_0x8f97d4[_0xd12f9c(0x283)]),_0x25d9de=_0x6ce075(_0xfba125,''),[_0xa4acf2,_0x1a7c5a]=_0x2054c5(_0x6ce075(_0x3e944e,'')||''),_0x1216c7=_0x4c4e5b[_0xd12f9c(0x282)]&&_0x533d24['mcpServerUrl']&&(_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20b))||_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20f))),_0x588a5c=(_0x45df0c=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x45df0c['includes'](_0xd12f9c(0x20b)),_0x10f46c=(_0x352f80=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x352f80[_0xd12f9c(0x24f)](_0xd12f9c(0x20f)),_0x361b03=_0x588a5c?_0xd12f9c(0x241):'https://console.univer.ai',_0x5d323b=_0x4c4e5b[_0xd12f9c(0x282)]&&(_0x588a5c||_0x10f46c),[_0x3fa0e2,_0x44502b]=_0x2054c5(!_0xa4acf2[_0xd12f9c(0x237)]()),_0x34c0ff=(_0x1acb3a,_0xab883)=>{const _0x571d37=_0xd12f9c;if(_0xab883===_0x8f97d4['UNAUTHORIZED'])return _0x571d37(0x1e4);switch(_0x1acb3a){case _0xd1ea3a['CONNECTED']:return _0x571d37(0x265);case _0xd1ea3a[_0x571d37(0x230)]:case _0xd1ea3a['RETRYING']:return _0x571d37(0x1ea);case _0xd1ea3a[_0x571d37(0x1fa)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x571d37(0x1ce);}},_0x2a704c=(_0x3c5fb6,_0x155e2a)=>{const _0x169d31=_0xd12f9c;if(_0x155e2a===_0x8f97d4['UNAUTHORIZED'])return _0x169d31(0x239);switch(_0x3c5fb6){case _0xd1ea3a[_0x169d31(0x296)]:return _0x169d31(0x242);case _0xd1ea3a['CONNECTING']:case _0xd1ea3a[_0x169d31(0x1e2)]:return _0x169d31(0x1de);case _0xd1ea3a[_0x169d31(0x1fa)]:return _0x169d31(0x239);default:return _0x169d31(0x26a);}},_0x31d294=_0xfbef80=>{const _0x5c8afd=_0xd12f9c;switch(_0xfbef80){case _0xd1ea3a[_0x5c8afd(0x296)]:return _0x25f614['t'](_0x5c8afd(0x1dc));case _0xd1ea3a[_0x5c8afd(0x230)]:return _0x25f614['t'](_0x5c8afd(0x1da));case _0xd1ea3a[_0x5c8afd(0x1fa)]:return _0x25f614['t'](_0x5c8afd(0x1ca));case _0xd1ea3a['RETRYING']:return _0x25f614['t'](_0x5c8afd(0x1f7));default:return _0x25f614['t'](_0x5c8afd(0x213));}},_0xc6ff83=_0x42748e=>{const _0x5c205b=_0xd12f9c;switch(_0x42748e){case _0x8f97d4[_0x5c205b(0x236)]:return _0x25f614['t'](_0x5c205b(0x26c));case _0x8f97d4[_0x5c205b(0x1d3)]:return _0x25f614['t'](_0x5c205b(0x218));case _0x8f97d4[_0x5c205b(0x1f0)]:return _0x25f614['t']('mcpConfig.connectionError.networkError');case _0x8f97d4[_0x5c205b(0x285)]:return _0x25f614['t'](_0x5c205b(0x274));default:return'';}},_0x153faa=_0x2ae2c6(()=>{const _0x432424=_0xd12f9c;_0x13e0d4({..._0x533d24,'apiKey':_0xa4acf2[_0x432424(0x237)](),'enableAuth':!0x0});},[_0x533d24,_0xa4acf2,!0x0,_0x13e0d4]),_0x49ecac=_0xa4acf2[_0xd12f9c(0x237)]()['length']>0x0;return _0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x284),'children':_0x362d0c('div',{'className':_0xd12f9c(0x1e5),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x25e),'children':_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x244),'children':'⚙'})}),_0x18af1c(_0xd12f9c(0x1e6),{'children':_0x18af1c('p',{'className':_0xd12f9c(0x29a),'children':_0x25f614['t']('mcpConfig.description')})})]})}),_0x362d0c('div',{'className':_0xd12f9c(0x24c),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x288),_0x34c0ff(_0x56f284,_0x4b89d0)),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x215),_0x2a704c(_0x56f284,_0x4b89d0))}),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x261),'children':_0x31d294(_0x56f284)})]})}),_0x4b89d0!==_0x8f97d4[_0xd12f9c(0x283)]&&(_0x56f284===_0xd1ea3a[_0xd12f9c(0x1fa)]||_0x4b89d0===_0x8f97d4[_0xd12f9c(0x236)])&&_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x252),'children':_0x362d0c('div',{'className':_0xd12f9c(0x298),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x293),'children':'⚠️'}),_0x18af1c('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xc6ff83(_0x4b89d0)})]})})]}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x24b),'children':_0x362d0c('div',{'className':_0xd12f9c(0x289),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x362d0c(_0xd12f9c(0x272),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔑'}),'\x20',_0x25f614['t']('mcpConfig.apiKey'),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x201),'children':'*'}),_0x1216c7&&_0x18af1c('a',{'className':_0xd12f9c(0x267),'title':_0x25f614['t'](_0xd12f9c(0x21a)),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x0),'children':_0x18af1c(_0x168b18,{})})]}),_0x18af1c(_0x4619da,{'type':_0xd12f9c(0x27f),'placeholder':_0x25f614['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xa4acf2,'disabled':_0x475938,'autoComplete':_0xd12f9c(0x26f),'onChange':_0x1a7c5a}),_0x18af1c('p',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f2))})]}),_0x1216c7&&_0x3fa0e2&&_0x362d0c('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x18af1c('a',{'className':_0xd12f9c(0x229),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x1),'children':_0x18af1c(_0x51a9d2,{'className':_0xd12f9c(0x1d7)})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x286),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x27a),'children':_0x18af1c('span',{'className':_0xd12f9c(0x22a),'children':'🚀'})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex-1','children':[_0x18af1c('h4',{'className':_0xd12f9c(0x292),'children':_0x25f614['t']('mcpConfig.apiApplyInfo.title')}),_0x18af1c('p',{'className':_0xd12f9c(0x234),'children':_0x25f614['t'](_0xd12f9c(0x290))}),_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5d323b&&_0x362d0c('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x361b03,'target':_0xd12f9c(0x204),'rel':_0xd12f9c(0x2a8),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🤖'}),_0x25f614['t'](_0xd12f9c(0x22b)),_0x18af1c('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20d),'children':['✨','\x20',_0x25f614['t'](_0xd12f9c(0x2a0))]})]})]})]}),_0x4c4e5b[_0xd12f9c(0x282)]&&_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x362d0c('h4',{'className':_0xd12f9c(0x24d),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔗'}),'\x20',_0x25f614['t'](_0xd12f9c(0x2a2))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x281),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x226),'children':[_0x18af1c('p',{'className':_0xd12f9c(0x2a3),'children':_0x25f614['t']('mcpConfig.configInstructions')}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x25f614['t'](_0xd12f9c(0x25f))}),_0x362d0c('div',{'className':_0xd12f9c(0x25c),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'1'}),_0x25f614['t'](_0xd12f9c(0x200))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'2'}),_0x25f614['t'](_0xd12f9c(0x26e))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x202),'children':'3'}),_0x25f614['t'](_0xd12f9c(0x21f))]})]})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x20c),'children':_0xd12f9c(0x278)}),_0x18af1c('div',{'className':_0xd12f9c(0x1f3),'children':_0x18af1c('pre',{'className':_0xd12f9c(0x28b),'children':JSON[_0xd12f9c(0x257)]({'mcpServers':{'univer':{'url':_0xd12f9c(0x26d)+(_0x25d9de||_0xd12f9c(0x28e)),'type':_0xd12f9c(0x243),'headers':{'Authorization':_0xd12f9c(0x24e)+(_0xa4acf2||_0xd12f9c(0x209))}}}},null,0x2)})})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x226),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20c),'children':_0x25f614['t'](_0xd12f9c(0x2a1))}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x23d),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x231)}),_0x18af1c('div',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x23f))})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x18af1c('div',{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x232)}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f5))})]})]})]})]})]})]}),_0x18af1c(_0x24b75f,{'onClick':_0x153faa,'disabled':!_0x49ecac||_0x475938,'className':_0xd12f9c(0x208),'children':_0x475938?_0x362d0c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'⟲'}),_0x25f614['t'](_0xd12f9c(0x27e))]}):_0x362d0c(_0xd12f9c(0x1ec),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x18af1c(_0x43bc65,{}),_0x25f614['t'](_0xd12f9c(0x275))]})}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x2a7),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21b),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x1ed),'children':'💡'}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x18af1c('div',{'className':_0xd12f9c(0x295),'children':_0xd12f9c(0x26b)}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x1e7))]}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x227))]})]})]})})]})})]});}const z='mcp-ui.config',B={'showDeveloperTools':!0x1,'showStatus':!0x0};function V(_0x305e66){'@babel/helpers - typeof';const _0x39e552=_0x26a5;return V=typeof Symbol==_0x39e552(0x250)&&typeof Symbol[_0x39e552(0x224)]==_0x39e552(0x260)?function(_0x24ddc1){return typeof _0x24ddc1;}:function(_0x1010a7){const _0x19d758=_0x39e552;return _0x1010a7&&typeof Symbol==_0x19d758(0x250)&&_0x1010a7[_0x19d758(0x1e1)]===Symbol&&_0x1010a7!==Symbol[_0x19d758(0x22d)]?_0x19d758(0x260):typeof _0x1010a7;},V(_0x305e66);}function le(_0x349133,_0x35aa36){const _0x1b7465=_0x26a5;if(V(_0x349133)!=_0x1b7465(0x255)||!_0x349133)return _0x349133;var _0x543647=_0x349133[Symbol[_0x1b7465(0x22c)]];if(_0x543647!==void 0x0){var _0x5a545c=_0x543647[_0x1b7465(0x20a)](_0x349133,_0x35aa36||'default');if(V(_0x5a545c)!=_0x1b7465(0x255))return _0x5a545c;throw TypeError(_0x1b7465(0x1d2));}return(_0x35aa36===_0x1b7465(0x216)?String:Number)(_0x349133);}function ue(_0x2352d5){const _0x436c5d=_0x26a5;var _0x1e26c3=le(_0x2352d5,_0x436c5d(0x216));return V(_0x1e26c3)==_0x436c5d(0x260)?_0x1e26c3:_0x1e26c3+'';}function H(_0x7c03f9,_0x5a1a3d,_0x36d9a8){const _0x1d4842=_0x26a5;return(_0x5a1a3d=ue(_0x5a1a3d))in _0x7c03f9?Object[_0x1d4842(0x233)](_0x7c03f9,_0x5a1a3d,{'value':_0x36d9a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7c03f9[_0x5a1a3d]=_0x36d9a8,_0x7c03f9;}function U(_0x287273,_0x9332ab){return function(_0x5aadb9,_0x3df309){_0x9332ab(_0x5aadb9,_0x3df309,_0x287273);};}function W(_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69){const _0x34b335=_0x26a5;var _0x2a9fca=arguments[_0x34b335(0x28a)],_0x180ccc=_0x2a9fca<0x3?_0x4100e6:_0x27eb69===null?_0x27eb69=Object[_0x34b335(0x248)](_0x4100e6,_0x581ae5):_0x27eb69,_0x8f56ae;if(typeof Reflect==_0x34b335(0x255)&&typeof Reflect[_0x34b335(0x1f8)]==_0x34b335(0x250))_0x180ccc=Reflect[_0x34b335(0x1f8)](_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69);else{for(var _0x41f8a4=_0x5e6206[_0x34b335(0x28a)]-0x1;_0x41f8a4>=0x0;_0x41f8a4--)(_0x8f56ae=_0x5e6206[_0x41f8a4])&&(_0x180ccc=(_0x2a9fca<0x3?_0x8f56ae(_0x180ccc):_0x2a9fca>0x3?_0x8f56ae(_0x4100e6,_0x581ae5,_0x180ccc):_0x8f56ae(_0x4100e6,_0x581ae5))||_0x180ccc);}return _0x2a9fca>0x3&&_0x180ccc&&Object[_0x34b335(0x233)](_0x4100e6,_0x581ae5,_0x180ccc),_0x180ccc;}const G=_0x5b386b(0x28f),K='mcp-config-dialog';let q=class extends _0x36bc9e{constructor(_0xc8dc65,_0x1de6e8,_0xe31107,_0x4e1398,_0x2dd3c4,_0x367b86,_0x536adb,_0x3f7775,_0x1a488e,_0x28182c){const _0x47b937=_0x5b386b;super(),this['_injector']=_0xc8dc65,this[_0x47b937(0x1fe)]=_0x1de6e8,this['_configService']=_0xe31107,this['_localStorageService']=_0x4e1398,this[_0x47b937(0x27d)]=_0x2dd3c4,this[_0x47b937(0x23a)]=_0x367b86,this[_0x47b937(0x1f6)]=_0x536adb,this[_0x47b937(0x1e3)]=_0x3f7775,this['_logService']=_0x1a488e,this[_0x47b937(0x247)]=_0x28182c,H(this,_0x47b937(0x1ff),new _0x1d736b(!0x1)),H(this,_0x47b937(0x219),new _0x1d736b({})),H(this,_0x47b937(0x280),new _0x1d736b({})),H(this,_0x47b937(0x268),new _0x1d736b('')),H(this,_0x47b937(0x1f4),async _0x2e95ec=>{const _0x5d88dd=_0x47b937;this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x0);try{var _0x1de00a,_0x8cf87f;let _0xcbba43=await this[_0x5d88dd(0x299)](_0x2e95ec);if(!_0xcbba43[_0x5d88dd(0x223)]){this[_0x5d88dd(0x23a)][_0x5d88dd(0x1f1)]({'type':_0x169226[_0x5d88dd(0x1d1)],'content':_0xcbba43[_0x5d88dd(0x212)]||this[_0x5d88dd(0x1e3)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2e95ec['apiKey']?await this[_0x5d88dd(0x277)]['setItem'](G,_0x2e95ec[_0x5d88dd(0x262)][_0x5d88dd(0x237)]()):await this['_localStorageService']['removeItem'](G),this[_0x5d88dd(0x268)][_0x5d88dd(0x1d0)](((_0x1de00a=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x1de00a[_0x5d88dd(0x237)]())||''),this[_0x5d88dd(0x247)][_0x5d88dd(0x238)]({'Authorization':_0x5d88dd(0x24e)+((_0x8cf87f=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x8cf87f[_0x5d88dd(0x237)]())}),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x294)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x27b))}),setTimeout(()=>{const _0x3c62c2=_0x5d88dd;this['_dialogService'][_0x3c62c2(0x23b)](K);},0x320);}catch(_0x4e150e){this[_0x5d88dd(0x203)][_0x5d88dd(0x21d)](_0x5d88dd(0x24a),_0x4e150e),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x1d1)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x211))});}finally{this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x1);}}),this[_0x47b937(0x217)](),this[_0x47b937(0x29d)](),this[_0x47b937(0x253)]();}['showConfigPanel'](){const _0x20755e=_0x5b386b;let _0x388c03=this['_configService']['getConfig'](z);_0x388c03!=null&&_0x388c03['showDeveloperTools']&&this['_dialogService']['open']({'id':K,'title':{'title':this[_0x20755e(0x1e3)]['t'](_0x20755e(0x2a4))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x9d52d4=_0x20755e;this[_0x9d52d4(0x27d)][_0x9d52d4(0x23b)](K);}});}['getCurrentConfig'](){const _0x3b041f=_0x5b386b;return this[_0x3b041f(0x219)][_0x3b041f(0x29c)];}[_0x5b386b(0x253)](){const _0x3ebba7=_0x5b386b;this['disposeWithMe'](this[_0x3ebba7(0x1f6)][_0x3ebba7(0x263)]('MCPConfigPanel',this[_0x3ebba7(0x29b)]()));}['_createConfigPanelComponent'](){const _0x5bbb92=_0x5b386b;return _0x30c1f6(()=>{const _0x52bec7=_0x26a5;var _0x4a2d19,_0x19fe61,_0x4e6706;return _0x18af1c(R,{'config':this[_0x52bec7(0x280)][_0x52bec7(0x29c)],'mcpCoreConfig':this[_0x52bec7(0x219)][_0x52bec7(0x29c)],'currentApiKey$':this[_0x52bec7(0x268)],'onSave':this[_0x52bec7(0x1f4)],'loading':this[_0x52bec7(0x1ff)][_0x52bec7(0x29c)],'connectionStatus$':(_0x4a2d19=this[_0x52bec7(0x247)])==null?void 0x0:_0x4a2d19['connectionStatus$'],'connectionError$':(_0x19fe61=this[_0x52bec7(0x247)])==null?void 0x0:_0x19fe61['connectionError$'],'currentSessionId$':(_0x4e6706=this['_mcpConnectionController'])==null?void 0x0:_0x4e6706[_0x52bec7(0x271)]});},this[_0x5bbb92(0x240)]);}[_0x5b386b(0x217)](){const _0x31e407=_0x5b386b;this[_0x31e407(0x1d8)](this['_configService']['subscribeConfigValue$'](_0x2eedd5)[_0x31e407(0x225)](_0x3532ff=>{this['_mcpCoreConfig$']['next'](_0x3532ff||{});}));let _0x31889f=this['_configService'][_0x31e407(0x20e)](_0x2eedd5);this[_0x31e407(0x219)][_0x31e407(0x1d0)](_0x31889f||{}),this[_0x31e407(0x1d8)](this[_0x31e407(0x1ee)]['subscribeConfigValue$'](z)[_0x31e407(0x225)](_0x808664=>{const _0xa8fcd9=_0x31e407;this['_config$'][_0xa8fcd9(0x1d0)](_0x808664||{});}));let _0x4322c3=this['_configService'][_0x31e407(0x20e)](z);this[_0x31e407(0x280)][_0x31e407(0x1d0)](_0x4322c3||{});}async['_loadStoredApiKey'](){const _0x111bfc=_0x5b386b;let _0x4ff80b=this[_0x111bfc(0x1ee)][_0x111bfc(0x20e)](z);if(!(_0x4ff80b!=null&&_0x4ff80b[_0x111bfc(0x282)]))return;let _0x237c87=await this[_0x111bfc(0x277)][_0x111bfc(0x266)](G);_0x237c87&&(this[_0x111bfc(0x247)][_0x111bfc(0x238)]({'Authorization':_0x111bfc(0x24e)+_0x237c87}),this[_0x111bfc(0x268)][_0x111bfc(0x1d0)](_0x237c87));}async[_0x5b386b(0x299)](_0x175811){const _0xf4b28a=_0x5b386b;if(!_0x175811[_0xf4b28a(0x262)]||_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t'](_0xf4b28a(0x1cb))};if(_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x50280f=await this['_injector'][_0xf4b28a(0x1ef)](_0x4b7493)[_0xf4b28a(0x287)](_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]());return _0x50280f[_0xf4b28a(0x223)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x50280f[_0xf4b28a(0x21d)]||this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x427054){return console[_0xf4b28a(0x29e)](_0xf4b28a(0x258),_0x427054),{'isValid':!0x0};}}};q=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x2e6601),U(0x2,_0x20fb6a),U(0x3,_0x154cb1),U(0x4,_0x15974b),U(0x5,_0x181e42),U(0x6,_0x5289d4(_0x368ca5)),U(0x7,_0x5289d4(_0x51f592)),U(0x8,_0x1ebe22),U(0x9,_0x5289d4(_0x4b7493))],q);const J={'id':'mcp-ui.command.openConfigPanel','type':_0x593979['COMMAND'],'handler':async(_0x2b5c5a,_0x45a285)=>(_0x2b5c5a[_0x5b386b(0x1ef)](q)[_0x5b386b(0x1eb)](),!0x0)};function Y(_0x455cae,_0x3c48bd){const _0x50786b=_0x5b386b;switch(_0x455cae){case _0xd1ea3a['DISCONNECTED']:return _0x50786b(0x1d9);case _0xd1ea3a[_0x50786b(0x230)]:return'mcpStatus.connecting';case _0xd1ea3a['CONNECTED']:return _0x50786b(0x205);case _0xd1ea3a[_0x50786b(0x1fa)]:switch(_0x3c48bd){case _0x8f97d4[_0x50786b(0x236)]:return'mcpStatus.unauthorized';case _0x8f97d4[_0x50786b(0x1d3)]:return _0x50786b(0x259);case _0x8f97d4[_0x50786b(0x1f0)]:return _0x50786b(0x235);case _0x8f97d4[_0x50786b(0x285)]:return _0x50786b(0x27c);default:return _0x50786b(0x28c);}case _0xd1ea3a[_0x50786b(0x1e2)]:return _0x50786b(0x291);default:return'mcpStatus.unknown';}}function de(_0x2590cb,_0x4c5cdb,_0x19a3c2,_0xa20008=!0x0){const _0x269dc6=_0x5b386b;let _0x430f19=Y(_0x2590cb,_0x4c5cdb),_0x41f045=_0x19a3c2['t'](_0x430f19);return _0xa20008?_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]&&_0x4c5cdb===_0x8f97d4['UNAUTHORIZED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x2a6)):_0x2590cb===_0xd1ea3a[_0x269dc6(0x296)]?''+_0x41f045:_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]||_0x2590cb===_0xd1ea3a['FAILED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x264)):_0x41f045:_0x41f045;}function _0x1683(){const _0x11e54a=['registerComponent','OTHERS','univer-size-4','disposeWithMe','mcpStatus.disconnected','mcpConfig.connectionStatus.connecting','has','mcpConfig.connectionStatus.connected','registerCommand','univer-bg-blue-500','_handleConfigure','126730MSIWXo','constructor','RETRYING','_localeService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-items-center\x20univer-gap-3','div','mcpConfig.note1','_config','_initializeCommands','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','showConfigPanel','span','univer-shrink-0\x20univer-text-blue-500','_configService','get','NETWORK_ERROR','show','mcpConfig.apiKeyHint','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_handleConfigSave','mcpConfig.authorizationDescription','_componentManager','mcpConfig.connectionStatus.retrying','decorate','1.0.0-alpha.1','FAILED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','@univerjs-pro/mcp-ui','_uiPartsService','_loading$','mcpConfig.configStep1','univer-text-red-500','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_logService','_blank','mcpStatus.connected','9gPnHhq','_initializeMenus','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','<API_KEY>','call','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','getConfig','univer.ai','_menuManagerService','mcpConfig.configError','errorMessage','mcpConfig.connectionStatus.disconnected','227520fwJgTk','univer-size-2\x20univer-rounded-full','string','_initConfigSync','mcpConfig.connectionError.sessionOccupied','_mcpCoreConfig$','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-text-gray-500','error','741528nIPQOs','mcpConfig.configStep3','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','1453560HgAlEF','isValid','iterator','subscribe','univer-space-y-3','mcpConfig.note2','showStatus','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-text-blue-600','mcpConfig.apiApplyInfo.univerAiLabel','toPrimitive','prototype','5DqYuBa','forEach','CONNECTING','univer_session_id:','Authorization:','defineProperty','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.networkError','UNAUTHORIZED','trim','__setCustomHeaders','univer-bg-red-500','_messageService','close','306068DZXiDn','univer-min-w-0\x20univer-flex-1','616588HPdMWb','mcpConfig.sessionIdDescription','_injector','https://console.univer.plus','univer-bg-green-500','http','univer-text-white','connectionError$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','getOwnPropertyDescriptor','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Bearer\x20','includes','function','bottom','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','_initAutoConnect','object','pluginName','stringify','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpStatus.sessionOccupied','button','univer-flex\x20univer-items-center','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','enableAutoConnect','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.configStepTitle','symbol','univer-text-sm\x20univer-font-medium','apiKey','register','mcpStatus.clickToConnect','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','getItem','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','_apiKey$','univer-text-yellow-500','univer-bg-gray-500','Configuration\x20Notes:','mcpConfig.connectionError.unauthorized','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep2','off','onStarting','sessionId$','label','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.save','MenuIcon','_localStorageService','MCP\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configSaved','mcpStatus.maxRetriesExceeded','_dialogService','mcpConfig.saving','text','_config$','univer-space-y-4','showDeveloperTools','NONE','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','validateApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-5','length','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.failed','mcpServerUrl','<SESSION_ID>','mcp.apiKey','mcpConfig.apiApplyInfo.description','mcpStatus.retrying','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-shrink-0\x20univer-text-red-500','Success','univer-font-medium','CONNECTED','_commandService','univer-flex\x20univer-items-start\x20univer-gap-2','_validateConfig','univer-text-sm\x20univer-text-gray-500','_createConfigPanelComponent','value','_loadStoredApiKey','warn','_initStatusComponent','mcpConfig.apiApplyInfo.getStarted','mcpConfig.configParameters','mcpConfig.connectionInfo','univer-text-xs\x20univer-text-gray-600','mcpConfig.title','2pLGPbd','mcpStatus.clickToConfigure','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','DISCONNECTED','_connectionController','mcpConfig.connectionStatus.failed','mcpConfig.validation.apiKeyRequired','univer-text-green-500','push','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mergeMenu','next','Error','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SESSION_ID_OCCUPIED','824601gAAcaQ'];_0x1683=function(){return _0x11e54a;};return _0x1683();}function fe(_0x1d3583){const _0x3737f8=_0x5b386b;switch(_0x1d3583){case _0xd1ea3a['CONNECTED']:return _0x3737f8(0x1cc);case _0xd1ea3a[_0x3737f8(0x230)]:case _0xd1ea3a[_0x3737f8(0x1e2)]:return _0x3737f8(0x269);case _0xd1ea3a['FAILED']:case _0xd1ea3a['DISCONNECTED']:return _0x3737f8(0x201);default:return'univer-text-gray-500';}}function X(_0x286f1f){const _0x1719b0=_0x5b386b;let {status$:_0x5b4279,error$:_0x584f6f,onConfigure:_0x441f1c,showClickable:_0x61431e=!0x0}=_0x286f1f,_0x45fbf7=_0x6ce075(_0x5b4279,_0xd1ea3a['DISCONNECTED']),_0x10bb4e=_0x6ce075(_0x584f6f,_0x8f97d4[_0x1719b0(0x283)]),_0x2c5e95=_0x15c776(_0x51f592),_0x524ac7=_0x45fbf7===_0xd1ea3a[_0x1719b0(0x296)];_0x45fbf7===_0xd1ea3a['CONNECTING']||_0xd1ea3a[_0x1719b0(0x1e2)];let _0x3f0101=_0x2c5e95['t'](Y(_0x45fbf7,_0x10bb4e)),_0x146fe0=de(_0x45fbf7,_0x10bb4e,_0x2c5e95,_0x61431e),_0x4a7955=fe(_0x45fbf7),_0x446289=_0x18af1c(_0x524ac7?_0x3ef954:_0x1ecc57,{}),_0x5614ed=_0x2ae2c6(()=>{_0x61431e&&_0x441f1c&&_0x441f1c();},[_0x61431e,_0x441f1c]);function _0x301867(){const _0x5f457a=_0x1719b0;return _0x362d0c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x25b),_0x61431e&&_0x441f1c&&'univer-cursor-pointer\x20hover:univer-opacity-80'),'role':_0x5f457a(0x25a),'onClick':_0x61431e&&_0x441f1c?_0x5614ed:void 0x0,'children':[_0x18af1c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x221),_0x4a7955),'children':_0x446289}),_0x18af1c(_0x5f457a(0x1e6),{'className':_0x5f457a(0x1fb),'children':_0x3f0101})]});}return _0x18af1c(_0x20c901,{'title':_0x146fe0,'placement':_0x1719b0(0x251),'children':_0x301867()});}let Z=class extends _0x36bc9e{constructor(_0x24b23a,_0x1b9398,_0x1f2754,_0x26bc44){const _0x16e31b=_0x5b386b;super(),this[_0x16e31b(0x240)]=_0x24b23a,this[_0x16e31b(0x1c9)]=_0x1b9398,this['_uiPartsService']=_0x1f2754,this['_configService']=_0x26bc44,this[_0x16e31b(0x254)](),this[_0x16e31b(0x29f)]();}[_0x5b386b(0x254)](){const _0x4c16be=_0x5b386b;let _0x4043e2=this[_0x4c16be(0x1ee)][_0x4c16be(0x20e)](z);_0x4043e2!=null&&_0x4043e2['showDeveloperTools']&&(this[_0x4c16be(0x1c9)][_0x4c16be(0x25d)]=!0x1);}[_0x5b386b(0x29f)](){const _0x445587=_0x5b386b;let _0x1323b9=this[_0x445587(0x1ee)][_0x445587(0x20e)](z);(_0x1323b9==null?void 0x0:_0x1323b9[_0x445587(0x228)])!==!0x1&&this['disposeWithMe'](this[_0x445587(0x1fe)][_0x445587(0x1d5)](_0x209d4c['HEADER_MENU'],()=>{const _0x5af502=_0x445587;var _0x36e6b3;return _0x30c1f6(pe({'status$':this[_0x5af502(0x1c9)]['connectionStatus$'],'error$':this[_0x5af502(0x1c9)][_0x5af502(0x245)],'onConfigure':()=>this[_0x5af502(0x1df)](),'showClickable':(_0x36e6b3=_0x1323b9==null?void 0x0:_0x1323b9[_0x5af502(0x282)])==null?!0x1:_0x36e6b3}),this['_injector']);}));}[_0x5b386b(0x1df)](){const _0xdf00df=_0x5b386b;this[_0xdf00df(0x240)][_0xdf00df(0x1ef)](q)['showConfigPanel']();}};Z=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x5289d4(_0x4b7493)),U(0x2,_0x2e6601),U(0x3,_0x20fb6a)],Z);function pe(_0x3d7f5a){let {status$:_0x1424dc,error$:_0x49ce84,onConfigure:_0x2b1cfa,showClickable:_0x51ca9b}=_0x3d7f5a;return function(){return _0x18af1c(X,{'status$':_0x1424dc,'error$':_0x49ce84,'onConfigure':_0x2b1cfa,'showClickable':_0x51ca9b});};}function me(_0x180c4d){const _0x4d227e=_0x5b386b;return{'id':J['id'],'type':_0x53c3c0['BUTTON'],'icon':_0x4d227e(0x276),'title':_0x4d227e(0x2a4),'tooltip':_0x4d227e(0x2a4)};}const he={[_0x15a128[_0x5b386b(0x1d6)]]:{[J['id']]:{'order':0xa,'menuItemFactory':me}}};let Q=class extends _0x36bc9e{constructor(_0x115ccc,_0x3ab81f){const _0x10ec34=_0x5b386b;super(),this[_0x10ec34(0x297)]=_0x115ccc,this[_0x10ec34(0x210)]=_0x3ab81f,this[_0x10ec34(0x1e9)](),this[_0x10ec34(0x207)]();}['_initializeCommands'](){const _0x4ca115=_0x5b386b;[J][_0x4ca115(0x22f)](_0x34d06e=>{const _0x4b7d95=_0x4ca115;this[_0x4b7d95(0x1d8)](this['_commandService'][_0x4b7d95(0x1dd)](_0x34d06e));});}['_initializeMenus'](){const _0x581c1b=_0x5b386b;this['_menuManagerService'][_0x581c1b(0x1cf)](he);}};Q=W([U(0x0,_0x4bda18),U(0x1,_0x27ead3)],Q);var ge=_0x5b386b(0x1fd),_e=_0x5b386b(0x1f9);let $=class extends _0x3e8439{constructor(_0x1ba424=B,_0x339013,_0x26da5a,_0x2e3470,_0x2b63cb,_0xde7eea){const _0x2bd8b6=_0x5b386b;super(),this[_0x2bd8b6(0x1e8)]=_0x1ba424,this[_0x2bd8b6(0x240)]=_0x339013,this[_0x2bd8b6(0x1ee)]=_0x26da5a,this[_0x2bd8b6(0x1fe)]=_0x2e3470,this['_localStorageService']=_0x2b63cb,this[_0x2bd8b6(0x1e3)]=_0xde7eea;let {..._0x4633d8}=_0x354f9c({},B,this[_0x2bd8b6(0x1e8)]);this[_0x2bd8b6(0x1ee)][_0x2bd8b6(0x220)](z,_0x4633d8);}async[_0x5b386b(0x270)](){const _0x2d937b=_0x5b386b;let _0x5ab5a4=[[Z],[q],[Q]];this[_0x2d937b(0x240)][_0x2d937b(0x1db)](_0x429c47)||_0x5ab5a4[_0x2d937b(0x1cd)]([_0x429c47,{'useClass':_0x27c201}]),_0x5ab5a4[_0x2d937b(0x22f)](_0x440ad0=>this[_0x2d937b(0x240)]['add'](_0x440ad0)),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Z),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](q),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Q);}};H($,_0x5b386b(0x256),'MCP_UI_PLUGIN'),H($,'packageName',ge),H($,'version',_e),$=W([_0x492c3b(_0x5d8c82),U(0x1,_0x5289d4(_0xbbbf4b)),U(0x2,_0x20fb6a),U(0x3,_0x2e6601),U(0x4,_0x154cb1),U(0x5,_0x5289d4(_0x51f592))],$);export{R as MCPConfigPanel,q as MCPConfigUIController,Z as MCPConnectionUIController,X as MCPStatusDisplay,Q as MCPUIMenuController,J as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,_0x161449 as enUS,_0x397a8e as zhCN};
@@ -1 +1 @@
1
- function _0x1e8b(_0x404f13,_0x151fc0){_0x404f13=_0x404f13-0x19c;const _0x1fcd5c=_0x1fcd();let _0x1e8bb4=_0x1fcd5c[_0x404f13];return _0x1e8bb4;}function _0x1fcd(){const _0x1b8e70=['Get\x20your\x20API\x20key\x20in\x20seconds','2iCEEoN','MCP:\x20Unauthorized','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','29135293APLrbO','524050xbWwHq','MCP\x20Retrying...','2631282DQnvZu','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','Connection\x20Failed','6206669xllqHv','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','120HyrTCq','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','45JuXMyF','67170zUEMvn','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','613723rxIvYc','API\x20Key','Configuration\x20Steps:','Connecting...','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:\x20Network\x20Error','12DKLSbR','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','8nskxKs','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','2611698vWcljr','Retrying...'];_0x1fcd=function(){return _0x1b8e70;};return _0x1fcd();}const _0x420bc5=_0x1e8b;(function(_0x54d612,_0x395856){const _0x2545e3=_0x1e8b,_0x5ad3b8=_0x54d612();while(!![]){try{const _0x50b4a6=-parseInt(_0x2545e3(0x19d))/0x1+-parseInt(_0x2545e3(0x1b7))/0x2*(parseInt(_0x2545e3(0x1b4))/0x3)+-parseInt(_0x2545e3(0x1c7))/0x4*(parseInt(_0x2545e3(0x1cd))/0x5)+parseInt(_0x2545e3(0x1bd))/0x6+parseInt(_0x2545e3(0x1c3))/0x7*(-parseInt(_0x2545e3(0x1af))/0x8)+-parseInt(_0x2545e3(0x1cc))/0x9*(-parseInt(_0x2545e3(0x1bb))/0xa)+-parseInt(_0x2545e3(0x1ba))/0xb*(-parseInt(_0x2545e3(0x1a3))/0xc);if(_0x50b4a6===_0x395856)break;else _0x5ad3b8['push'](_0x5ad3b8['shift']());}catch(_0x3b0f81){_0x5ad3b8['push'](_0x5ad3b8['shift']());}}}(_0x1fcd,0x8c71b));const e={'mcpStatus':{'disconnected':_0x420bc5(0x1be),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x420bc5(0x1c0),'retrying':_0x420bc5(0x1bc),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x420bc5(0x1b8),'sessionOccupied':_0x420bc5(0x1ac),'networkError':_0x420bc5(0x1a2),'maxRetriesExceeded':_0x420bc5(0x1ad),'clickToConnect':_0x420bc5(0x1a9),'clickToConfigure':_0x420bc5(0x1c5)},'mcpConfig':{'title':_0x420bc5(0x1c6),'description':_0x420bc5(0x1b0),'apiKey':_0x420bc5(0x19e),'apiKeyPlaceholder':_0x420bc5(0x1b1),'apiKeyHint':_0x420bc5(0x1b9),'enableAuth':_0x420bc5(0x1a6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x420bc5(0x1c8),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x420bc5(0x19f),'configStep1':_0x420bc5(0x1ca),'configStep2':_0x420bc5(0x1ce),'configStep3':_0x420bc5(0x1a5),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x420bc5(0x19c),'note1':_0x420bc5(0x1a7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x420bc5(0x1c9),'configError':_0x420bc5(0x1b3),'apiApplyInfo':{'title':_0x420bc5(0x1c1),'description':_0x420bc5(0x1a1),'univerAiLabel':_0x420bc5(0x1ae),'getStarted':_0x420bc5(0x1b6)},'validation':{'apiKeyRequired':_0x420bc5(0x1a4),'apiKeyTooShort':_0x420bc5(0x1b2),'invalidConfig':_0x420bc5(0x1cb),'invalidApiKey':_0x420bc5(0x1a8)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x420bc5(0x1a0),'connected':_0x420bc5(0x1ab),'failed':_0x420bc5(0x1c2),'retrying':_0x420bc5(0x1b5)},'connectionError':{'unauthorized':_0x420bc5(0x1c4),'sessionOccupied':_0x420bc5(0x1aa),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x420bc5(0x1bf)}}};export{e as default};
1
+ function _0x538f(_0x188c15,_0x319aa1){_0x188c15=_0x188c15-0x96;const _0x4cfb67=_0x4cfb();let _0x538fe6=_0x4cfb67[_0x188c15];return _0x538fe6;}(function(_0x23a7b5,_0x156346){const _0x180b59=_0x538f,_0x4b02e2=_0x23a7b5();while(!![]){try{const _0x11dc3e=parseInt(_0x180b59(0x9a))/0x1*(parseInt(_0x180b59(0x9b))/0x2)+-parseInt(_0x180b59(0x9e))/0x3+parseInt(_0x180b59(0x9d))/0x4+parseInt(_0x180b59(0x98))/0x5*(parseInt(_0x180b59(0x9c))/0x6)+parseInt(_0x180b59(0x96))/0x7+-parseInt(_0x180b59(0x99))/0x8+-parseInt(_0x180b59(0x97))/0x9;if(_0x11dc3e===_0x156346)break;else _0x4b02e2['push'](_0x4b02e2['shift']());}catch(_0x433342){_0x4b02e2['push'](_0x4b02e2['shift']());}}}(_0x4cfb,0x68de0));function _0x4cfb(){const _0x592bec=['2831408MpDbZB','28vBUMUE','33358VvIaOT','6qGhzjb','243780jmxrue','2010924oHzfQc','5476884yffmWe','2798397XSecGa','2271670TKYapF'];_0x4cfb=function(){return _0x592bec;};return _0x4cfb();}import _0xbbacae from'./en-US.js';const t=_0xbbacae;export{t as default};
@@ -1 +1 @@
1
- function _0x891f(_0x434604,_0x35e69f){_0x434604=_0x434604-0x19f;const _0x436ff0=_0x436f();let _0x891f5c=_0x436ff0[_0x434604];return _0x891f5c;}const _0x3b16f9=_0x891f;function _0x436f(){const _0x12c512=['Univer\x20AI\x20Console','MCP\x20Connected','MCP\x20Configuration','1884778DCOpIN','26cVoidu','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Retrying...','351852feDzGz','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','MCP\x20Connecting...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','622775vhIYLx','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','6934344ScRFfn','96180NYIEYN','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','19005hmUOwY','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Connection\x20Failed','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','283453VgDgGB','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x436f=function(){return _0x12c512;};return _0x436f();}(function(_0x1505ab,_0xa613a3){const _0x347b15=_0x891f,_0x24ec5d=_0x1505ab();while(!![]){try{const _0x48096e=-parseInt(_0x347b15(0x1b6))/0x1+-parseInt(_0x347b15(0x1bc))/0x2*(-parseInt(_0x347b15(0x1a9))/0x3)+-parseInt(_0x347b15(0x1c1))/0x4+-parseInt(_0x347b15(0x1cc))/0x5+parseInt(_0x347b15(0x1a6))/0x6+-parseInt(_0x347b15(0x1bb))/0x7+parseInt(_0x347b15(0x1a5))/0x8;if(_0x48096e===_0xa613a3)break;else _0x24ec5d['push'](_0x24ec5d['shift']());}catch(_0x4cb92b){_0x24ec5d['push'](_0x24ec5d['shift']());}}}(_0x436f,0x30d11));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3b16f9(0x1c9),'connected':_0x3b16f9(0x1b9),'failed':_0x3b16f9(0x1a8),'retrying':_0x3b16f9(0x1a4),'unknown':_0x3b16f9(0x1ca),'unauthorized':_0x3b16f9(0x1c8),'sessionOccupied':_0x3b16f9(0x1b2),'networkError':_0x3b16f9(0x1ae),'maxRetriesExceeded':_0x3b16f9(0x1a3),'clickToConnect':_0x3b16f9(0x1b5),'clickToConfigure':_0x3b16f9(0x1ac)},'mcpConfig':{'title':_0x3b16f9(0x1ba),'description':_0x3b16f9(0x1a1),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3b16f9(0x1aa),'apiKeyHint':_0x3b16f9(0x1b3),'enableAuth':_0x3b16f9(0x1c6),'enableAuthHint':_0x3b16f9(0x19f),'connectionInfo':_0x3b16f9(0x1cb),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3b16f9(0x1a7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3b16f9(0x1af),'configStep2':_0x3b16f9(0x1bd),'configStep3':_0x3b16f9(0x1c3),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3b16f9(0x1a0),'maxRetries':_0x3b16f9(0x1b1),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3b16f9(0x1c7),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3b16f9(0x1bf),'description':_0x3b16f9(0x1b0),'univerAiLabel':_0x3b16f9(0x1b8),'getStarted':_0x3b16f9(0x1c5)},'validation':{'apiKeyRequired':_0x3b16f9(0x1ab),'apiKeyTooShort':_0x3b16f9(0x1c4),'invalidConfig':_0x3b16f9(0x1a2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3b16f9(0x1ad),'retrying':_0x3b16f9(0x1c0)},'connectionError':{'unauthorized':_0x3b16f9(0x1c2),'sessionOccupied':_0x3b16f9(0x1be),'networkError':_0x3b16f9(0x1b4),'maxRetriesExceeded':_0x3b16f9(0x1b7)}}};export{e as default};
1
+ const _0x9583fd=_0x5a20;(function(_0x52cfa1,_0x67ce9f){const _0x1f860a=_0x5a20,_0x1dca41=_0x52cfa1();while(!![]){try{const _0x3a27fd=-parseInt(_0x1f860a(0x1c5))/0x1+-parseInt(_0x1f860a(0x1b7))/0x2+parseInt(_0x1f860a(0x1af))/0x3*(-parseInt(_0x1f860a(0x1bb))/0x4)+-parseInt(_0x1f860a(0x1ac))/0x5+-parseInt(_0x1f860a(0x19e))/0x6+-parseInt(_0x1f860a(0x1bc))/0x7*(-parseInt(_0x1f860a(0x1a7))/0x8)+parseInt(_0x1f860a(0x1c0))/0x9;if(_0x3a27fd===_0x67ce9f)break;else _0x1dca41['push'](_0x1dca41['shift']());}catch(_0x205bba){_0x1dca41['push'](_0x1dca41['shift']());}}}(_0x173a,0x8443a));const e={'mcpStatus':{'disconnected':_0x9583fd(0x1bf),'connecting':_0x9583fd(0x1b2),'connected':_0x9583fd(0x1a9),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x9583fd(0x1b6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x9583fd(0x1ae),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x9583fd(0x1b3)},'mcpConfig':{'title':_0x9583fd(0x1c3),'description':_0x9583fd(0x1b5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x9583fd(0x1aa),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x9583fd(0x1a2),'connectionInfo':_0x9583fd(0x1a8),'mcpClientConfig':_0x9583fd(0x1a8),'configInstructions':_0x9583fd(0x1a1),'configStepTitle':_0x9583fd(0x1a0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x9583fd(0x1b8),'configStep3':_0x9583fd(0x19f),'sessionId':_0x9583fd(0x19d),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x9583fd(0x1b9),'maxRetries':_0x9583fd(0x1c2),'save':_0x9583fd(0x1a6),'saving':'Saving...','note1':_0x9583fd(0x1c7),'note2':_0x9583fd(0x1a5),'configSaved':_0x9583fd(0x1bd),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x9583fd(0x1be),'univerAiLabel':_0x9583fd(0x1c6),'getStarted':_0x9583fd(0x1c1)},'validation':{'apiKeyRequired':_0x9583fd(0x1a4),'apiKeyTooShort':_0x9583fd(0x1b0),'invalidConfig':_0x9583fd(0x1a3),'invalidApiKey':_0x9583fd(0x1c8)},'connectionStatus':{'disconnected':_0x9583fd(0x1b4),'connecting':_0x9583fd(0x1c9),'connected':'Connected','failed':_0x9583fd(0x1ba),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x9583fd(0x1b1),'sessionOccupied':_0x9583fd(0x1ad),'networkError':_0x9583fd(0x1c4),'maxRetriesExceeded':_0x9583fd(0x1ab)}}};function _0x5a20(_0xc41961,_0x56bc0c){_0xc41961=_0xc41961-0x19d;const _0x173a4e=_0x173a();let _0x5a202e=_0x173a4e[_0xc41961];return _0x5a202e;}function _0x173a(){const _0x5b7837=['Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','3379065arOJkX','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','3iwhVTr','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','910788KGLctb','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Connection\x20Failed','748740eKblLQ','170443dIYxNV','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.','MCP\x20Disconnected','28278378nDdqFW','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','899778gppjRs','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','Session\x20ID','2584896NSnNnU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','16ehtihH','MCP\x20Client\x20Configuration','MCP\x20Connected','Enter\x20your\x20API\x20key'];_0x173a=function(){return _0x5b7837;};return _0x173a();}export{e as default};
@@ -1 +1 @@
1
- const _0x5a1552=_0x39d0;function _0x39d0(_0x15ad18,_0x35f5ae){_0x15ad18=_0x15ad18-0xad;const _0x25dfc9=_0x25df();let _0x39d0e7=_0x25dfc9[_0x15ad18];return _0x39d0e7;}(function(_0x2289ac,_0x11816d){const _0x3f41bd=_0x39d0,_0x45225a=_0x2289ac();while(!![]){try{const _0x2fc945=-parseInt(_0x3f41bd(0xba))/0x1+-parseInt(_0x3f41bd(0xb5))/0x2*(-parseInt(_0x3f41bd(0xcd))/0x3)+parseInt(_0x3f41bd(0xc4))/0x4+parseInt(_0x3f41bd(0xd6))/0x5+parseInt(_0x3f41bd(0xbe))/0x6+parseInt(_0x3f41bd(0xad))/0x7+-parseInt(_0x3f41bd(0xb3))/0x8;if(_0x2fc945===_0x11816d)break;else _0x45225a['push'](_0x45225a['shift']());}catch(_0x2ec1f5){_0x45225a['push'](_0x45225a['shift']());}}}(_0x25df,0xbe988));const e={'mcpStatus':{'disconnected':_0x5a1552(0xc3),'connecting':_0x5a1552(0xb1),'connected':_0x5a1552(0xc0),'failed':_0x5a1552(0xb8),'retrying':_0x5a1552(0xb6),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5a1552(0xb7),'clickToConnect':_0x5a1552(0xc5),'clickToConfigure':_0x5a1552(0xd4)},'mcpConfig':{'title':_0x5a1552(0xcf),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5a1552(0xb9),'apiKeyPlaceholder':_0x5a1552(0xc8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5a1552(0xc6),'enableAuthHint':_0x5a1552(0xc7),'connectionInfo':_0x5a1552(0xaf),'mcpClientConfig':_0x5a1552(0xaf),'configInstructions':_0x5a1552(0xd3),'configStepTitle':_0x5a1552(0xcb),'configStep1':_0x5a1552(0xbf),'configStep2':_0x5a1552(0xbc),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5a1552(0xd8),'sessionIdDescription':_0x5a1552(0xd5),'authorizationDescription':_0x5a1552(0xae),'configParameters':_0x5a1552(0xc1),'maxRetries':_0x5a1552(0xd9),'save':_0x5a1552(0xcc),'saving':_0x5a1552(0xb0),'note1':_0x5a1552(0xda),'note2':_0x5a1552(0xc2),'configSaved':_0x5a1552(0xce),'configError':_0x5a1552(0xb2),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5a1552(0xd0),'univerAiLabel':_0x5a1552(0xc9),'getStarted':_0x5a1552(0xb4)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5a1552(0xbd),'invalidConfig':_0x5a1552(0xdb),'invalidApiKey':_0x5a1552(0xd1)},'connectionStatus':{'disconnected':_0x5a1552(0xd7),'connecting':'Connecting...','connected':_0x5a1552(0xdd),'failed':'Connection\x20Failed','retrying':_0x5a1552(0xdc)},'connectionError':{'unauthorized':_0x5a1552(0xca),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a1552(0xbb),'maxRetriesExceeded':_0x5a1552(0xd2)}}};function _0x25df(){const _0x113e0b=['Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Univer\x20AI\x20Console','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Save\x20Configuration','4498077rJiKLX','Configuration\x20saved\x20successfully','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','5577280QECCsf','Disconnected','Session\x20ID','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Retrying...','Connected','62209NDRaDj','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','Saving...','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','21690048NiZkTU','Get\x20your\x20API\x20key\x20in\x20seconds','2CyIMRo','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','API\x20Key','1549165SdcceB','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','8838432espaXQ','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','3777308ByhXyw','Click\x20to\x20connect\x20MCP','Enable\x20Authentication'];_0x25df=function(){return _0x113e0b;};return _0x25df();}export{e as default};
1
+ (function(_0x5603d1,_0x49a4c2){const _0x56bab2=_0x1e9c,_0x538b81=_0x5603d1();while(!![]){try{const _0x3e4ed2=parseInt(_0x56bab2(0x80))/0x1*(-parseInt(_0x56bab2(0x87))/0x2)+-parseInt(_0x56bab2(0x7e))/0x3*(-parseInt(_0x56bab2(0x82))/0x4)+parseInt(_0x56bab2(0x8a))/0x5*(-parseInt(_0x56bab2(0x8b))/0x6)+-parseInt(_0x56bab2(0x84))/0x7*(parseInt(_0x56bab2(0x86))/0x8)+-parseInt(_0x56bab2(0x89))/0x9*(-parseInt(_0x56bab2(0x81))/0xa)+-parseInt(_0x56bab2(0x83))/0xb*(-parseInt(_0x56bab2(0x7f))/0xc)+-parseInt(_0x56bab2(0x85))/0xd*(-parseInt(_0x56bab2(0x88))/0xe);if(_0x3e4ed2===_0x49a4c2)break;else _0x538b81['push'](_0x538b81['shift']());}catch(_0x576f1d){_0x538b81['push'](_0x538b81['shift']());}}}(_0x5180,0xc5da1));import _0x376a77 from'./en-US.js';const t=_0x376a77;function _0x5180(){const _0x9367c9=['1987gnqIsA','10ugInMe','4MobEeM','4284269qscvLt','7357quptEf','273YLMGmY','9480xreKGe','422ERkAsI','1313060LMdBxd','8669061cZMUQI','5oFVgwb','5367048tFEHhV','141909fPRSaB','12CVpiNT'];_0x5180=function(){return _0x9367c9;};return _0x5180();}function _0x1e9c(_0x3950be,_0x283a1d){_0x3950be=_0x3950be-0x7e;const _0x5180ef=_0x5180();let _0x1e9ca8=_0x5180ef[_0x3950be];return _0x1e9ca8;}export{t as default};
@@ -1 +1 @@
1
- function _0x4a8a(_0x2d046d,_0x2e5999){_0x2d046d=_0x2d046d-0xfe;const _0x1f8f30=_0x1f8f();let _0x4a8aa0=_0x1f8f30[_0x2d046d];return _0x4a8aa0;}const _0xd1a1e2=_0x4a8a;(function(_0xacc2a6,_0x4409a3){const _0x1daca4=_0x4a8a,_0x26f309=_0xacc2a6();while(!![]){try{const _0x584a65=parseInt(_0x1daca4(0x113))/0x1*(-parseInt(_0x1daca4(0x11c))/0x2)+parseInt(_0x1daca4(0x109))/0x3+parseInt(_0x1daca4(0x106))/0x4+parseInt(_0x1daca4(0x101))/0x5+-parseInt(_0x1daca4(0x10d))/0x6*(-parseInt(_0x1daca4(0x12c))/0x7)+parseInt(_0x1daca4(0x12a))/0x8*(-parseInt(_0x1daca4(0xfe))/0x9)+parseInt(_0x1daca4(0x10f))/0xa;if(_0x584a65===_0x4409a3)break;else _0x26f309['push'](_0x26f309['shift']());}catch(_0x320504){_0x26f309['push'](_0x26f309['shift']());}}}(_0x1f8f,0x30731));const e={'mcpStatus':{'disconnected':_0xd1a1e2(0x12b),'connecting':_0xd1a1e2(0x122),'connected':_0xd1a1e2(0x11a),'failed':_0xd1a1e2(0x12d),'retrying':_0xd1a1e2(0x117),'unknown':_0xd1a1e2(0x100),'unauthorized':_0xd1a1e2(0x123),'sessionOccupied':_0xd1a1e2(0xff),'networkError':_0xd1a1e2(0x107),'maxRetriesExceeded':_0xd1a1e2(0x120),'clickToConnect':_0xd1a1e2(0x11d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xd1a1e2(0x110),'description':_0xd1a1e2(0x104),'apiKey':_0xd1a1e2(0x118),'apiKeyPlaceholder':_0xd1a1e2(0x115),'apiKeyHint':_0xd1a1e2(0x10b),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xd1a1e2(0x10c),'connectionInfo':_0xd1a1e2(0x108),'mcpClientConfig':_0xd1a1e2(0x108),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xd1a1e2(0x121),'configStep1':_0xd1a1e2(0x11e),'configStep2':_0xd1a1e2(0x11f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0xd1a1e2(0x12f),'authorizationDescription':_0xd1a1e2(0x102),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xd1a1e2(0x10e),'save':'Save\x20Configuration','saving':_0xd1a1e2(0x129),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xd1a1e2(0x124),'configSaved':_0xd1a1e2(0x127),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xd1a1e2(0x11b),'description':_0xd1a1e2(0x105),'univerAiLabel':_0xd1a1e2(0x10a),'getStarted':_0xd1a1e2(0x128)},'validation':{'apiKeyRequired':_0xd1a1e2(0x126),'apiKeyTooShort':_0xd1a1e2(0x119),'invalidConfig':_0xd1a1e2(0x103),'invalidApiKey':_0xd1a1e2(0x116)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xd1a1e2(0x12e),'connected':'Connected','failed':_0xd1a1e2(0x112),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xd1a1e2(0x125),'sessionOccupied':_0xd1a1e2(0x114),'networkError':_0xd1a1e2(0x111),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};function _0x1f8f(){const _0x48abda=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','What\x20is\x20API\x20Key?','77608tOAtgP','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','MCP\x20Connecting...','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','1454176vSssue','MCP\x20Disconnected','154bWmyBf','MCP\x20Connection\x20Failed','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','18KwsQHv','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Unknown\x20Status','1408705gaSpzp','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','587680tRlRAT','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','16182MSwGoo','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','2922kxoqhz','Max\x20Retries','1948320kEkcWw','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','2HpYfvi'];_0x1f8f=function(){return _0x48abda;};return _0x1f8f();}
1
+ (function(_0xa89362,_0x433615){const _0x22469f=_0x4e16,_0x98c369=_0xa89362();while(!![]){try{const _0x182296=parseInt(_0x22469f(0x97))/0x1*(parseInt(_0x22469f(0x96))/0x2)+-parseInt(_0x22469f(0x95))/0x3+parseInt(_0x22469f(0x91))/0x4*(-parseInt(_0x22469f(0x93))/0x5)+parseInt(_0x22469f(0x98))/0x6+parseInt(_0x22469f(0x92))/0x7+parseInt(_0x22469f(0x99))/0x8+-parseInt(_0x22469f(0x94))/0x9;if(_0x182296===_0x433615)break;else _0x98c369['push'](_0x98c369['shift']());}catch(_0xc34afb){_0x98c369['push'](_0x98c369['shift']());}}}(_0x899e,0x1f111));import _0x2c8e24 from'./en-US.js';const t=_0x2c8e24;function _0x4e16(_0x2612ef,_0x1d75ab){_0x2612ef=_0x2612ef-0x91;const _0x899e7e=_0x899e();let _0x4e16b6=_0x899e7e[_0x2612ef];return _0x4e16b6;}function _0x899e(){const _0x235c62=['5bhvWCf','1471662UIhCZI','497997GIddjU','441778Iaxaro','1IJnJSg','264750wQhtoZ','1487912WixHPr','338592VdwEHe','632877nBUTAi'];_0x899e=function(){return _0x235c62;};return _0x899e();}export{t as default};
@@ -1 +1 @@
1
- const _0x385613=_0x50e2;function _0x218b(){const _0x543293=['MCP:\x20Unauthorized','2ZvDGpj','Max\x20Retries','MCP\x20Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Session\x20ID','Failed\x20to\x20save\x20configuration','Saving...','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','11rUbtKB','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.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','Univer\x20AI\x20Console','1374047rwddza','Click\x20to\x20configure\x20MCP','2435916oucbpn','Disconnected','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10350918HlRxdn','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Unknown\x20Status','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','11312kcSgEg','Configuration\x20saved\x20successfully','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','38083670folrHk','20RlaOFy','Configuration\x20Steps:','5403230gGguzF','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','7929AppUCe','1616884PtdnPW','What\x20is\x20API\x20Key?'];_0x218b=function(){return _0x543293;};return _0x218b();}(function(_0x592bdb,_0x214c88){const _0x44aa78=_0x50e2,_0x530843=_0x592bdb();while(!![]){try{const _0x6a922b=-parseInt(_0x44aa78(0x9e))/0x1+-parseInt(_0x44aa78(0xbb))/0x2*(-parseInt(_0x44aa78(0xa0))/0x3)+parseInt(_0x44aa78(0xb8))/0x4*(parseInt(_0x44aa78(0xb3))/0x5)+parseInt(_0x44aa78(0xa4))/0x6+parseInt(_0x44aa78(0xb5))/0x7+parseInt(_0x44aa78(0xa9))/0x8*(parseInt(_0x44aa78(0xb7))/0x9)+-parseInt(_0x44aa78(0xb2))/0xa*(parseInt(_0x44aa78(0xc9))/0xb);if(_0x6a922b===_0x214c88)break;else _0x530843['push'](_0x530843['shift']());}catch(_0x25a21d){_0x530843['push'](_0x530843['shift']());}}}(_0x218b,0xf1823));function _0x50e2(_0x403fc3,_0xaf09cd){_0x403fc3=_0x403fc3-0x9c;const _0x218bca=_0x218b();let _0x50e2e7=_0x218bca[_0x403fc3];return _0x50e2e7;}const e={'mcpStatus':{'disconnected':_0x385613(0xa7),'connecting':_0x385613(0xbd),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x385613(0xc6),'unknown':_0x385613(0xa6),'unauthorized':_0x385613(0xba),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x385613(0xc8),'clickToConnect':_0x385613(0xa8),'clickToConfigure':_0x385613(0x9f)},'mcpConfig':{'title':_0x385613(0xc0),'description':_0x385613(0xcd),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x385613(0xae),'apiKeyHint':_0x385613(0xcc),'enableAuth':_0x385613(0xaf),'enableAuthHint':_0x385613(0xca),'connectionInfo':_0x385613(0xac),'mcpClientConfig':_0x385613(0xac),'configInstructions':_0x385613(0xad),'configStepTitle':_0x385613(0xb4),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x385613(0xbf),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x385613(0xc3),'sessionIdDescription':_0x385613(0xcb),'authorizationDescription':_0x385613(0xb0),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x385613(0xbc),'save':'Save\x20Configuration','saving':_0x385613(0xc5),'note1':_0x385613(0xa5),'note2':_0x385613(0xb6),'configSaved':_0x385613(0xaa),'configError':_0x385613(0xc4),'apiApplyInfo':{'title':_0x385613(0xb9),'description':_0x385613(0xc1),'univerAiLabel':_0x385613(0x9d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x385613(0xbe),'invalidConfig':_0x385613(0xb1),'invalidApiKey':_0x385613(0xab)},'connectionStatus':{'disconnected':_0x385613(0xa1),'connecting':_0x385613(0xa2),'connected':'Connected','failed':_0x385613(0xc2),'retrying':_0x385613(0x9c)},'connectionError':{'unauthorized':_0x385613(0xa3),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x385613(0xc7),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
1
+ (function(_0x2cc7f0,_0x1af231){const _0x51c60=_0x4441,_0x2372c9=_0x2cc7f0();while(!![]){try{const _0x31171d=parseInt(_0x51c60(0x156))/0x1+-parseInt(_0x51c60(0x155))/0x2+parseInt(_0x51c60(0x15a))/0x3*(parseInt(_0x51c60(0x154))/0x4)+parseInt(_0x51c60(0x158))/0x5+-parseInt(_0x51c60(0x159))/0x6+parseInt(_0x51c60(0x152))/0x7*(parseInt(_0x51c60(0x151))/0x8)+-parseInt(_0x51c60(0x157))/0x9*(parseInt(_0x51c60(0x153))/0xa);if(_0x31171d===_0x1af231)break;else _0x2372c9['push'](_0x2372c9['shift']());}catch(_0x936881){_0x2372c9['push'](_0x2372c9['shift']());}}}(_0x6566,0x5cfb7));import _0x458b53 from'./en-US.js';function _0x6566(){const _0xb59625=['119298sKNmRj','16344TugpCi','1917490SQxYUN','2797644CCCPGa','25689NxavfQ','304QFQQBx','107569TZOWPr','1630hzBHBz','48gVASuc','92722LrTaBf'];_0x6566=function(){return _0xb59625;};return _0x6566();}const t=_0x458b53;function _0x4441(_0x1bb9a1,_0x1c00b5){_0x1bb9a1=_0x1bb9a1-0x151;const _0x656698=_0x6566();let _0x44414f=_0x656698[_0x1bb9a1];return _0x44414f;}export{t as default};
@@ -1 +1 @@
1
- const _0xbbed32=_0x4924;(function(_0x1aa564,_0x2f741f){const _0x151a6b=_0x4924,_0xc39433=_0x1aa564();while(!![]){try{const _0x3cf384=parseInt(_0x151a6b(0x9b))/0x1+parseInt(_0x151a6b(0xb7))/0x2+-parseInt(_0x151a6b(0xab))/0x3*(parseInt(_0x151a6b(0xb5))/0x4)+parseInt(_0x151a6b(0x9f))/0x5+-parseInt(_0x151a6b(0xb9))/0x6*(parseInt(_0x151a6b(0xa6))/0x7)+-parseInt(_0x151a6b(0xaf))/0x8+parseInt(_0x151a6b(0xa4))/0x9;if(_0x3cf384===_0x2f741f)break;else _0xc39433['push'](_0xc39433['shift']());}catch(_0x9312a3){_0xc39433['push'](_0xc39433['shift']());}}}(_0x1b4e,0x4c23b));function _0x4924(_0x152251,_0x2ca021){_0x152251=_0x152251-0x96;const _0x1b4ea2=_0x1b4e();let _0x4924ef=_0x1b4ea2[_0x152251];return _0x4924ef;}const e={'mcpStatus':{'disconnected':_0xbbed32(0xb6),'connecting':'MCP\x20接続中...','connected':_0xbbed32(0xa9),'failed':'MCP\x20接続失敗','retrying':_0xbbed32(0xbd),'unknown':'MCP\x20不明な状態','unauthorized':_0xbbed32(0x9d),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0xbbed32(0xb1),'maxRetriesExceeded':_0xbbed32(0x97),'clickToConnect':_0xbbed32(0x9e),'clickToConfigure':_0xbbed32(0xbc)},'mcpConfig':{'title':'MCP設定','description':_0xbbed32(0xac),'apiKey':'APIキー','apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0xbbed32(0xa1),'enableAuth':_0xbbed32(0x98),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':_0xbbed32(0xb0),'configInstructions':_0xbbed32(0x9c),'configStepTitle':_0xbbed32(0xa2),'configStep1':_0xbbed32(0xaa),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0xbbed32(0xb2),'sessionId':_0xbbed32(0x96),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0xbbed32(0xa3),'configParameters':_0xbbed32(0xb3),'maxRetries':_0xbbed32(0xa5),'save':_0xbbed32(0xad),'saving':'保存中...','note1':_0xbbed32(0xbb),'note2':_0xbbed32(0x9a),'configSaved':_0xbbed32(0xae),'configError':_0xbbed32(0x99),'apiApplyInfo':{'title':'APIキーとは?','description':_0xbbed32(0xa7),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0xbbed32(0xb8)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0xbbed32(0xb4),'invalidConfig':'無効な設定','invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':'未接続','connecting':_0xbbed32(0xbe),'connected':_0xbbed32(0xba),'failed':'接続失敗','retrying':'再試行中...'},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0xbbed32(0xa0),'networkError':_0xbbed32(0xa8),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};function _0x1b4e(){const _0x589ec9=['942423lrOEXs','MCPを設定してAIでスプレッドシートを操作','設定を保存','設定が正常に保存されました','2970864yQzMeX','MCPクライアント設定','MCP:\x20ネットワークエラー','MCPクライアントを再起動して設定を適用','設定パラメータ:','APIキーは10文字以上である必要があります','4EEIAuZ','MCP\x20未接続','1045894ctEqGw','数秒でAPIキーを取得','381162hEisdS','接続済み','設定の変更は直ちに有効になります','クリックしてMCPを設定','MCP\x20再試行中...','接続中...','セッションID','MCP:\x20最大再試行回数を超過','認証を有効にする','設定の保存に失敗しました','APIキーはローカルストレージに安全に保存されます','297018XyODZU','MCPクライアントの設定に次の設定を追加してください:','MCP:\x20認証されていません','クリックしてMCPに接続','1752915GoIdBl','セッションIDが現在使用中です。後でもう一度お試しください','APIキーはこのブラウザのローカルに保存されます','設定手順:','Bearerプレフィックス付きのAPIキー。','2443563yhZPpm','最大再試行回数','49AtBiRx','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','ネットワーク接続エラー。インターネット接続を確認してください','MCP\x20接続済み','以下のJSON設定をコピー'];_0x1b4e=function(){return _0x589ec9;};return _0x1b4e();}export{e as default};
1
+ const _0x31e151=_0x3f18;(function(_0x522534,_0xfcfbcb){const _0x22e1e7=_0x3f18,_0x3b2a20=_0x522534();while(!![]){try{const _0x2c980c=parseInt(_0x22e1e7(0x1d1))/0x1*(parseInt(_0x22e1e7(0x1d5))/0x2)+parseInt(_0x22e1e7(0x1cd))/0x3*(parseInt(_0x22e1e7(0x1e5))/0x4)+parseInt(_0x22e1e7(0x1c6))/0x5*(-parseInt(_0x22e1e7(0x1dd))/0x6)+-parseInt(_0x22e1e7(0x1e0))/0x7+-parseInt(_0x22e1e7(0x1cb))/0x8*(parseInt(_0x22e1e7(0x1cc))/0x9)+-parseInt(_0x22e1e7(0x1bb))/0xa+parseInt(_0x22e1e7(0x1b6))/0xb;if(_0x2c980c===_0xfcfbcb)break;else _0x3b2a20['push'](_0x3b2a20['shift']());}catch(_0x337fec){_0x3b2a20['push'](_0x3b2a20['shift']());}}}(_0x103a,0x4d8f5));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x31e151(0x1e2),'connected':_0x31e151(0x1ba),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x31e151(0x1b7),'unauthorized':_0x31e151(0x1d8),'sessionOccupied':_0x31e151(0x1db),'networkError':_0x31e151(0x1be),'maxRetriesExceeded':_0x31e151(0x1b8),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x31e151(0x1d7)},'mcpConfig':{'title':_0x31e151(0x1ca),'description':_0x31e151(0x1d0),'apiKey':_0x31e151(0x1bd),'apiKeyPlaceholder':_0x31e151(0x1c9),'apiKeyHint':_0x31e151(0x1c2),'enableAuth':_0x31e151(0x1c3),'enableAuthHint':_0x31e151(0x1de),'connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x31e151(0x1c0),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x31e151(0x1e4),'sessionId':_0x31e151(0x1d3),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x31e151(0x1b4),'configParameters':_0x31e151(0x1cf),'maxRetries':_0x31e151(0x1df),'save':'設定を保存','saving':_0x31e151(0x1d9),'note1':_0x31e151(0x1c7),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x31e151(0x1c8),'description':_0x31e151(0x1d4),'univerAiLabel':_0x31e151(0x1e3),'getStarted':_0x31e151(0x1d2)},'validation':{'apiKeyRequired':_0x31e151(0x1ce),'apiKeyTooShort':_0x31e151(0x1b9),'invalidConfig':'無効な設定','invalidApiKey':_0x31e151(0x1d6)},'connectionStatus':{'disconnected':_0x31e151(0x1da),'connecting':_0x31e151(0x1bf),'connected':_0x31e151(0x1c5),'failed':_0x31e151(0x1bc),'retrying':_0x31e151(0x1c4)},'connectionError':{'unauthorized':_0x31e151(0x1b5),'sessionOccupied':_0x31e151(0x1c1),'networkError':_0x31e151(0x1dc),'maxRetriesExceeded':_0x31e151(0x1e1)}}};function _0x3f18(_0x48240e,_0x47e62b){_0x48240e=_0x48240e-0x1b4;const _0x103ad1=_0x103a();let _0x3f181c=_0x103ad1[_0x48240e];return _0x3f181c;}function _0x103a(){const _0x859a97=['認証を有効にする','再試行中...','接続済み','5515vrtELh','設定の変更は直ちに有効になります','APIキーとは?','APIキーを入力してください','MCP設定','8tNAyJE','4126401kOOicm','9rFQuex','APIキーは必須です','設定パラメータ:','MCPを設定してAIでスプレッドシートを操作','282134OKqEZA','数秒でAPIキーを取得','セッションID','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','4SBwpye','無効なAPIキーです。キーが正しいか確認してください','クリックしてMCPを設定','MCP:\x20認証されていません','保存中...','未接続','MCP:\x20セッションIDが使用中','ネットワーク接続エラー。インターネット接続を確認してください','3018zaKCLl','セキュアな接続のために認証を有効にする','最大再試行回数','892899yXwENF','最大再試行回数を超過しました。後でもう一度お試しください','MCP\x20接続中...','Univer\x20AIコンソール','MCPクライアントを再起動して設定を適用','841004EClbAR','Bearerプレフィックス付きのAPIキー。','認証に失敗しました。APIキーを確認してください','9155894eczTYB','MCP\x20不明な状態','MCP:\x20最大再試行回数を超過','APIキーは10文字以上である必要があります','MCP\x20接続済み','5688350jczfyt','接続失敗','APIキー','MCP:\x20ネットワークエラー','接続中...','設定手順:','セッションIDが現在使用中です。後でもう一度お試しください','APIキーはこのブラウザのローカルに保存されます'];_0x103a=function(){return _0x859a97;};return _0x103a();}export{e as default};