@univerjs-pro/mcp-ui 0.10.12 → 0.10.13

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 (46) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.css +1 -1
  24. package/lib/index.js +1 -1
  25. package/lib/locale/ca-ES.js +1 -1
  26. package/lib/locale/en-US.js +1 -1
  27. package/lib/locale/es-ES.js +1 -1
  28. package/lib/locale/fa-IR.js +1 -1
  29. package/lib/locale/fr-FR.js +1 -1
  30. package/lib/locale/ko-KR.js +1 -1
  31. package/lib/locale/ru-RU.js +1 -1
  32. package/lib/locale/vi-VN.js +1 -1
  33. package/lib/locale/zh-CN.js +1 -1
  34. package/lib/locale/zh-TW.js +1 -1
  35. package/lib/umd/index.js +1 -1
  36. package/lib/umd/locale/ca-ES.js +1 -1
  37. package/lib/umd/locale/en-US.js +1 -1
  38. package/lib/umd/locale/es-ES.js +1 -1
  39. package/lib/umd/locale/fa-IR.js +1 -1
  40. package/lib/umd/locale/fr-FR.js +1 -1
  41. package/lib/umd/locale/ko-KR.js +1 -1
  42. package/lib/umd/locale/ru-RU.js +1 -1
  43. package/lib/umd/locale/vi-VN.js +1 -1
  44. package/lib/umd/locale/zh-CN.js +1 -1
  45. package/lib/umd/locale/zh-TW.js +1 -1
  46. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x103721=_0x4233;(function(_0x3dcc0e,_0x56c218){var _0x39e297=_0x4233,_0x3a3131=_0x3dcc0e();while(!![]){try{var _0x3f8750=parseInt(_0x39e297(0x250))/0x1+-parseInt(_0x39e297(0x232))/0x2+-parseInt(_0x39e297(0x339))/0x3+-parseInt(_0x39e297(0x236))/0x4+-parseInt(_0x39e297(0x2d5))/0x5+-parseInt(_0x39e297(0x223))/0x6*(-parseInt(_0x39e297(0x2a0))/0x7)+parseInt(_0x39e297(0x2bb))/0x8;if(_0x3f8750===_0x56c218)break;else _0x3a3131['push'](_0x3a3131['shift']());}catch(_0x2ac2cf){_0x3a3131['push'](_0x3a3131['shift']());}}}(_0x210c,0x6f705));var we=Object[_0x103721(0x220)],Ee=(_0x13500c,_0x368a85,_0x1da4db)=>_0x368a85 in _0x13500c?we(_0x13500c,_0x368a85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1da4db}):_0x13500c[_0x368a85]=_0x1da4db,S=(_0x4d38af,_0x4d1537,_0x1dc24c)=>Ee(_0x4d38af,typeof _0x4d1537!=_0x103721(0x2f0)?_0x4d1537+'':_0x4d1537,_0x1dc24c);import{LocaleService as _0x1cb48f,Inject as _0x2235fd,Injector as _0x40d19b,IConfigService as _0x4d3163,ILocalStorageService as _0xcab0cf,ILogService as _0x3547f4,Disposable as _0x58601d,CommandType as _0x153d32,ICommandService as _0x2dd78e,DependentOn as _0x17438e,Plugin as _0x57747f,merge as _0x16a3ed}from'@univerjs/core';import{jsxs as _0x2678b2,jsx as _0x2108d8}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5cf9aa,MCPConnectionError as _0x2f0c0c,MCPConnectionController as _0x19e8d5,MCP_PLUGIN_CONFIG_KEY as _0x430f8a,UniverMCPPlugin as _0x4538b1}from'@univerjs-pro/mcp';import{Input as _0x3fb065,Button as _0x6e2211,MessageType as _0xa82ba2,Tooltip as _0x171aed,clsx as _0x3c6797}from'@univerjs/design';import{useDependency as _0x850478,useObservable as _0x2f03e5,IUIPartsService as _0x29d968,IDialogService as _0x15a5f5,IMessageService as _0x5abb6a,ComponentManager as _0x59058c,connectInjector as _0x261a19,BuiltInUIPart as _0x3172b9,MenuItemType as _0x49d67f,RibbonStartGroup as _0x1df899,IMenuManagerService as _0x193d79}from'@univerjs/ui';import{BehaviorSubject as _0x226704}from'rxjs';import{forwardRef as _0x46622c,useRef as _0x485ae7,createElement as _0x3809ab,useState as _0x19fdc5,useCallback as _0x37a6dc}from'react';import{ISocketService as _0x2e09fb,WebSocketService as _0x12b718}from'@univerjs/network';var f=function(){var _0x22e8a8=_0x103721;return f=Object[_0x22e8a8(0x308)]||function(_0x3f69b2){var _0x4109c0=_0x22e8a8;for(var _0x58aefd,_0x3ab4f6=0x1,_0x2f3aff=arguments[_0x4109c0(0x2bf)];_0x3ab4f6<_0x2f3aff;_0x3ab4f6++){_0x58aefd=arguments[_0x3ab4f6];for(var _0x390bdf in _0x58aefd)Object[_0x4109c0(0x233)][_0x4109c0(0x27a)][_0x4109c0(0x1f8)](_0x58aefd,_0x390bdf)&&(_0x3f69b2[_0x390bdf]=_0x58aefd[_0x390bdf]);}return _0x3f69b2;},f[_0x22e8a8(0x284)](this,arguments);},Ye=function(_0x5314ed,_0x1a4ea2){var _0x2b021e=_0x103721,_0x3cf48c={};for(var _0x2ae938 in _0x5314ed)Object[_0x2b021e(0x233)][_0x2b021e(0x27a)]['call'](_0x5314ed,_0x2ae938)&&_0x1a4ea2[_0x2b021e(0x245)](_0x2ae938)<0x0&&(_0x3cf48c[_0x2ae938]=_0x5314ed[_0x2ae938]);if(_0x5314ed!=null&&typeof Object[_0x2b021e(0x1f5)]=='function'){for(var _0x5ec160=0x0,_0x2ae938=Object[_0x2b021e(0x1f5)](_0x5314ed);_0x5ec160<_0x2ae938[_0x2b021e(0x2bf)];_0x5ec160++)_0x1a4ea2['indexOf'](_0x2ae938[_0x5ec160])<0x0&&Object[_0x2b021e(0x233)][_0x2b021e(0x283)][_0x2b021e(0x1f8)](_0x5314ed,_0x2ae938[_0x5ec160])&&(_0x3cf48c[_0x2ae938[_0x5ec160]]=_0x5314ed[_0x2ae938[_0x5ec160]]);}return _0x3cf48c;},w=_0x46622c(function(_0x30c01d,_0x1df286){var _0x5c8d4c=_0x103721,_0x1277cc=_0x30c01d[_0x5c8d4c(0x25a)],_0x355f1b=_0x30c01d['id'],_0x3b9612=_0x30c01d[_0x5c8d4c(0x26a)],_0xfb29f7=_0x30c01d[_0x5c8d4c(0x213)],_0x2b31cb=Ye(_0x30c01d,[_0x5c8d4c(0x25a),'id',_0x5c8d4c(0x26a),_0x5c8d4c(0x213)]),_0x5cc171='univerjs-icon\x20univerjs-icon-'[_0x5c8d4c(0x288)](_0x355f1b,'\x20')['concat'](_0x3b9612||'')[_0x5c8d4c(0x20e)](),_0x3eb49f=_0x485ae7('_'[_0x5c8d4c(0x288)](Xe()));return ue(_0x1277cc,''[_0x5c8d4c(0x288)](_0x355f1b),{'defIds':_0x1277cc['defIds'],'idSuffix':_0x3eb49f['current']},f({'ref':_0x1df286,'className':_0x5cc171},_0x2b31cb),_0xfb29f7);});function ue(_0x1f736e,_0x577423,_0x24335,_0x422718,_0x1637d4){var _0x1d1d21=_0x103721;return _0x3809ab(_0x1f736e['tag'],f(f({'key':_0x577423},Ze(_0x1f736e,_0x24335,_0x1637d4)),_0x422718),(qe(_0x1f736e,_0x24335)[_0x1d1d21(0x1f6)]||[])['map'](function(_0x3cf50e,_0x501e25){var _0x25f818=_0x1d1d21;return ue(_0x3cf50e,''[_0x25f818(0x288)](_0x577423,'-')['concat'](_0x1f736e['tag'],'-')['concat'](_0x501e25),_0x24335,void 0x0,_0x1637d4);}));}function Ze(_0x294742,_0x259017,_0x5af284){var _0x4309f0=_0x103721,_0x459650=f({},_0x294742[_0x4309f0(0x2f2)]);_0x5af284!=null&&_0x5af284[_0x4309f0(0x244)]&&_0x459650['fill']==='colorChannel1'&&(_0x459650['fill']=_0x5af284[_0x4309f0(0x244)]),_0x294742['tag']===_0x4309f0(0x327)&&_0x459650['id']&&(_0x459650['id']=_0x459650['id']+_0x259017[_0x4309f0(0x2b1)]),Object[_0x4309f0(0x2a1)](_0x459650)[_0x4309f0(0x2b5)](function(_0x5ad264){var _0x95492=_0x4309f0,_0xec1ba7=_0x5ad264[0x0],_0x11e9fa=_0x5ad264[0x1];_0xec1ba7===_0x95492(0x327)&&typeof _0x11e9fa==_0x95492(0x2e5)&&(_0x459650[_0xec1ba7]=_0x11e9fa[_0x95492(0x312)](/url\(#(.*)\)/,_0x95492(0x22e)[_0x95492(0x288)](_0x259017[_0x95492(0x2b1)],')')));});var _0x3f04b1=_0x259017[_0x4309f0(0x2e1)];return!_0x3f04b1||_0x3f04b1[_0x4309f0(0x2bf)]===0x0||(_0x294742[_0x4309f0(0x2e6)]==='use'&&_0x459650[_0x4309f0(0x22a)]&&(_0x459650[_0x4309f0(0x22a)]=_0x459650[_0x4309f0(0x22a)]+_0x259017['idSuffix']),Object[_0x4309f0(0x2a1)](_0x459650)[_0x4309f0(0x2b5)](function(_0x440f9c){var _0x1578c3=_0x4309f0,_0x1594f0=_0x440f9c[0x0],_0x56b260=_0x440f9c[0x1];typeof _0x56b260=='string'&&(_0x459650[_0x1594f0]=_0x56b260[_0x1578c3(0x312)](/url\(#(.*)\)/,_0x1578c3(0x22e)['concat'](_0x259017['idSuffix'],')')));})),_0x459650;}function qe(_0x227483,_0x1c9578){var _0x235759=_0x103721,_0x2705d3,_0x50679b=_0x1c9578[_0x235759(0x2e1)];return!_0x50679b||_0x50679b[_0x235759(0x2bf)]===0x0?_0x227483:_0x227483[_0x235759(0x2e6)]===_0x235759(0x25f)&&(!((_0x2705d3=_0x227483[_0x235759(0x1f6)])===null||_0x2705d3===void 0x0)&&_0x2705d3[_0x235759(0x2bf)])?f(f({},_0x227483),{'children':_0x227483[_0x235759(0x1f6)][_0x235759(0x209)](function(_0x591c1a){var _0x3f1232=_0x235759;return typeof _0x591c1a[_0x3f1232(0x2f2)]['id']=='string'&&_0x50679b&&_0x50679b[_0x3f1232(0x31b)](_0x591c1a[_0x3f1232(0x2f2)]['id'])?f(f({},_0x591c1a),{'attrs':f(f({},_0x591c1a[_0x3f1232(0x2f2)]),{'id':_0x591c1a['attrs']['id']+_0x1c9578[_0x3f1232(0x2b1)]})}):_0x591c1a;})}):_0x227483;}function Xe(){var _0x2871b1=_0x103721;return Math[_0x2871b1(0x2eb)]()[_0x2871b1(0x350)](0x24)['substring'](0x2,0x8);}w[_0x103721(0x1ed)]=_0x103721(0x1f4);var Je={'tag':'svg','attrs':{'xmlns':_0x103721(0x25c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x103721(0x351),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x103721(0x325),'clipRule':'evenodd'}}]},le=_0x46622c(function(_0x40ba22,_0x48c5aa){var _0x1930fa=_0x103721;return _0x3809ab(w,Object[_0x1930fa(0x308)]({},_0x40ba22,{'id':_0x1930fa(0x2c7),'ref':_0x48c5aa,'icon':Je}));});le['displayName']=_0x103721(0x2cc);var Qe={'tag':'svg','attrs':{'xmlns':_0x103721(0x25c),'fill':_0x103721(0x2ef),'viewBox':_0x103721(0x293),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x103721(0x28a),'strokeLinecap':_0x103721(0x34f),'strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.33}},{'tag':_0x103721(0x2e0),'attrs':{'stroke':'currentColor','d':_0x103721(0x333),'strokeLinecap':_0x103721(0x34f),'strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.33}}]},ve=_0x46622c(function(_0x304e7d,_0x55cdd9){var _0x4cbf3c=_0x103721;return _0x3809ab(w,Object['assign']({},_0x304e7d,{'id':_0x4cbf3c(0x2c2),'ref':_0x55cdd9,'icon':Qe}));});ve[_0x103721(0x1ed)]=_0x103721(0x29d);var en={'tag':_0x103721(0x2b2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x103721(0x295),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x351),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x351),'d':_0x103721(0x1f1)}},{'tag':_0x103721(0x2e0),'attrs':{'fill':'currentColor','d':_0x103721(0x2d1),'fillRule':_0x103721(0x325),'clipRule':_0x103721(0x325)}}]},de=_0x46622c(function(_0x2e889c,_0x1a8fc7){var _0x3fd263=_0x103721;return _0x3809ab(w,Object[_0x3fd263(0x308)]({},_0x2e889c,{'id':_0x3fd263(0x2c5),'ref':_0x1a8fc7,'icon':en}));});de['displayName']=_0x103721(0x2cf);var nn={'tag':_0x103721(0x2b2),'attrs':{'xmlns':_0x103721(0x25c),'fill':_0x103721(0x2ef),'viewBox':'0\x200\x2016\x2016','width':_0x103721(0x24e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x103721(0x237)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'stroke':_0x103721(0x351),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x103721(0x34f),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x103721(0x25f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x103721(0x1fa)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x310),'d':_0x103721(0x24b)}}]}]}],'defIds':[_0x103721(0x1fa)]},fe=_0x46622c(function(_0xc03575,_0x579b25){var _0x11e7eb=_0x103721;return _0x3809ab(w,Object[_0x11e7eb(0x308)]({},_0xc03575,{'id':'off-line-icon','ref':_0x579b25,'icon':nn}));});fe[_0x103721(0x1ed)]='OffLineIcon';var rn={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x103721(0x2ef),'viewBox':_0x103721(0x2db),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':_0x103721(0x285)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'stroke':_0x103721(0x351),'d':_0x103721(0x215),'strokeLinecap':'round','strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.2}}]},{'tag':_0x103721(0x25f),'attrs':{},'children':[{'tag':_0x103721(0x31c),'attrs':{'id':_0x103721(0x2bc)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x310),'d':_0x103721(0x24b),'transform':_0x103721(0x294)}}]}]}],'defIds':[_0x103721(0x2bc)]},ge=_0x46622c(function(_0x2dd6d1,_0x55a8cf){var _0xa22b66=_0x103721;return _0x3809ab(w,Object[_0xa22b66(0x308)]({},_0x2dd6d1,{'id':'on-line-icon','ref':_0x55a8cf,'icon':rn}));});ge[_0x103721(0x1ed)]=_0x103721(0x23a);function _0x210c(){var _0x27b2ee=['mcpConfig.connectionError.unauthorized','NETWORK_ERROR','Enter\x20your\x20API\x20key','_localStorageService','_messageService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','启用身份验证','mcpStatus.connecting','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-bg-blue-500','round','toString','currentColor','mcpConfig.configStep3','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','displayName','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcp-ui.command.openConfigPanel','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','MCP\x20已断开','MCP\x20连接失败','UniverIcon','getOwnPropertySymbols','children','univer-mr-2\x20univer-flex\x20univer-text-xl','call','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','off-line-icon_clip0_910_343','点击配置\x20MCP','_componentManager','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','bottom','_registerComponent','MAX_RETRIES_EXCEEDED','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','\x20-\x20','API\x20密钥不能为空','mcpConfig.title','univer-text-xs\x20univer-text-gray-600','map','mcpConfig.configSaved','mcpConfig.configInstructions','mcpStatus.clickToConfigure','univer-min-w-0\x20univer-flex-1','trim','next','mcpConfig.connectionInfo','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Unknown\x20Status','extend','univer-text-xs\x20univer-text-gray-500','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-space-y-2','mcpConfig.save','Failed\x20to\x20save\x20configuration','mcpConfig.configParameters','isValid','univer-flex-shrink-0\x20univer-text-blue-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_config$','_logService','MCP\x20Retrying...','defineProperty','mergeMenu','univer-flex\x20univer-flex-wrap\x20univer-gap-2','978TsTxRP','get','_uiPartsService','Retrying...','mcpConfig.validation.invalidApiKey','_localeService','超出最大重试次数,请稍后再试','xlink:href','Click\x20to\x20configure\x20MCP','register','API\x20key\x20is\x20required','url(#$1','mcpConfig.connectionStatus.disconnected','showConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-3','731900ZeISDU','prototype','_config','API\x20密钥','686796WPqcdv','url(#off-line-icon_clip0_910_343)','mcpConfig.description','DISCONNECTED','OnLineIcon','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_initAutoConnect','MCP\x20客户端配置','点击连接\x20MCP','NONE','mcpStatus.connected','colorChannel1','indexOf','univer-text-red-500','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','已连接','M0\x200H16V16H0z','_handleConfigure','univer-text-gray-500','1em','HEADER_MENU','633372VYZNHw','Configuration\x20Steps:','_initStatusComponent','javascript:void(0)','_initializeMenus','UNAUTHORIZED','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.connectionError.networkError','open','保存中...','icon','MCP\x20重连中...','http://www.w3.org/2000/svg','univer-flex\x20univer-gap-3','value','defs','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','showDeveloperTools','_connectionController','univer-text-sm\x20univer-font-medium','mcpStatus.sessionOccupied','MCP\x20Connecting...','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','FAILED','配置更改将立即生效','connectionError$','className','_injector','重连中...','保存配置','__setCustomHeaders','API\x20密钥无效,请检查密钥是否正确','_blank','_dialogService','COMMAND','univer-text-sm\x20univer-text-gray-500','mcpConfig.connectionStatus.failed','_menuManagerService','mcpConfig.note1','https://console.univer.ai','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','hasOwnProperty','mcpConfig.configError','apiKey','subscribe','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','label','将以下配置添加到您的\x20MCP\x20客户端设置中:','Error','propertyIsEnumerable','apply','url(#on-line-icon_clip0_910_349)','off','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','concat','warn','M5.21243\x205.62036L11.8791\x2012.287','MenuIcon','_mcpConnectionController','sessionId$','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.connectionError.sessionOccupied','univer-flex-1','disposeWithMe','connectionStatus$','0\x200\x2017\x2017','translate(.97)','0\x200\x2016\x2016','RETRYING','MCP\x20状态未知','几秒钟内获取您的\x20API\x20密钥','MCP:\x20未授权','mcpConfig.saving','What\x20is\x20API\x20Key?','Authorization:','CloseSmallSingle','_commandService','_createConfigPanelComponent','1939SWaMxj','entries','Max\x20Retries','连接中...','setConfig','mcpStatus.disconnected','网络连接错误,请检查您的网络连接','重启您的\x20MCP\x20客户端以使配置生效','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.validation.invalidConfig','subscribeConfigValue$','univer-flex\x20univer-items-center','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','show','mcpStatus.clickToConnect','univer.ai','idSuffix','svg','Bearer\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','forEach','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.failed','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20key\x20with\x20Bearer\x20prefix.','has','10682768KbARHE','on-line-icon_clip0_910_349','https://console.univer.plus','MCP:\x20Max\x20Retries\x20Exceeded','length','MCPConfigPanel','MCP:\x20Session\x20ID\x20Occupied','close-small-single','mcp-ui.config','mcpConfig.connectionError.maxRetriesExceeded','help-single','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','check-mark-icon','mcpStatus.unknown','_loading$','getConfig','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','CheckMarkIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-text-yellow-500','HelpSingle','_handleConfigSave','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-bg-red-500','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','CONNECTING','3239510QEjCKv','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Disconnected','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','0\x200\x2017\x2016','配置无效','MCP\x20已连接','getItem','Connection\x20Failed','path','defIds','mcpConfig.apiKey','univer-text-green-500','mcpStatus.retrying','string','tag','mcp.apiKey','_mcpCoreConfig$','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpServerUrl','random','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','pre','none','symbol','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','attrs','close','Saving...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.apiKeyHint','复制以下\x20JSON\x20配置','error','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.description','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.retrying','MCP:\x20Unauthorized','add','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.validation.apiKeyTooShort','mcpConfig.configStepTitle','univer-bg-green-500','配置保存成功','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configStep2','Session\x20ID','assign','配置参数:','API\x20Key','Univer\x20AI\x20控制台','OTHERS','_configService','univer-space-y-4','Connecting...','white','Copy\x20the\x20JSON\x20configuration\x20below','replace','getCurrentConfig','连接失败','CONNECTED','univer-font-medium','MCP:\x20网络错误','MCP\x20配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','includes','clipPath','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_loadStoredApiKey','mcpConfig.validation.apiKeyRequired','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP_UI_PLUGIN','mcpConfig.apiApplyInfo.title','您的\x20API\x20密钥安全存储在本地存储中','removeItem','evenodd','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','mask','getOwnPropertyDescriptor','univer.plus','errorMessage','配置步骤:','启用身份验证以获得安全连接','univer-text-blue-600','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','什么是\x20API\x20密钥?','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','div','最大重试次数','M5.21243\x2012.287L11.8791\x205.62036','_apiKey$','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP:\x20超出最大重试次数','BUTTON','SESSION_ID_OCCUPIED','1115595kYAwcW','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','univer-space-y-3','_initializeCommands','mcpConfig.apiKeyPlaceholder','API\x20密钥长度至少需要\x2010\x20位','_initConfigSync','您的\x20API\x20密钥将在此浏览器中本地存储','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','span','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600'];_0x210c=function(){return _0x27b2ee;};return _0x210c();}function tn(_0x730be2){var _0x4f7af9=_0x103721,_0x1cfad1,_0x1b3c11;const {mcpCoreConfig:_0x41186e,onSave:_0x32d938,loading:_0x1c5464=!0x1,config:_0x5e45ea,connectionStatus$:_0xf25ddb,connectionError$:_0x318888,currentApiKey$:_0x53dd1c,currentSessionId$:_0x3ba136}=_0x730be2,_0x1cb510=_0x850478(_0x1cb48f),_0x189393=_0x2f03e5(_0xf25ddb,_0x5cf9aa[_0x4f7af9(0x239)]),_0x1c0d39=_0x2f03e5(_0x318888,_0x2f0c0c[_0x4f7af9(0x242)]),_0x38d782=_0x2f03e5(_0x3ba136,''),_0x190f76=_0x2f03e5(_0x53dd1c,''),[_0x3dea7e,_0x9227c9]=_0x19fdc5(_0x190f76||''),_0x57754d=!0x0,_0x2275fe=_0x5e45ea[_0x4f7af9(0x261)]&&_0x41186e['mcpServerUrl']&&(_0x41186e[_0x4f7af9(0x2ea)][_0x4f7af9(0x31b)](_0x4f7af9(0x329))||_0x41186e['mcpServerUrl'][_0x4f7af9(0x31b)]('univer.ai')),_0x1ba57c=(_0x1cfad1=_0x41186e['mcpServerUrl'])==null?void 0x0:_0x1cfad1['includes'](_0x4f7af9(0x329)),_0x44d54e=(_0x1b3c11=_0x41186e['mcpServerUrl'])==null?void 0x0:_0x1b3c11['includes'](_0x4f7af9(0x2b0)),_0x4f549c=_0x1ba57c?_0x4f7af9(0x2bd):_0x4f7af9(0x277),_0xceadd7=_0x5e45ea[_0x4f7af9(0x261)]&&(_0x1ba57c||_0x44d54e),[_0x4a7fd4,_0x2f04f8]=_0x19fdc5(!_0x3dea7e[_0x4f7af9(0x20e)]()),_0x199131=(_0x5752d1,_0x5b4ad2)=>{var _0x4792c2=_0x4f7af9;if(_0x5b4ad2===_0x2f0c0c['UNAUTHORIZED'])return _0x4792c2(0x256);switch(_0x5752d1){case _0x5cf9aa['CONNECTED']:return _0x4792c2(0x342);case _0x5cf9aa['CONNECTING']:case _0x5cf9aa['RETRYING']:return _0x4792c2(0x34d);case _0x5cf9aa['FAILED']:return _0x4792c2(0x256);default:return _0x4792c2(0x2b4);}},_0x3190b7=(_0x1f3e48,_0xf69ec5)=>{var _0xf48682=_0x4f7af9;if(_0xf69ec5===_0x2f0c0c[_0xf48682(0x255)])return _0xf48682(0x2d2);switch(_0x1f3e48){case _0x5cf9aa[_0xf48682(0x315)]:return _0xf48682(0x302);case _0x5cf9aa[_0xf48682(0x2d4)]:case _0x5cf9aa[_0xf48682(0x296)]:return _0xf48682(0x34e);case _0x5cf9aa[_0xf48682(0x267)]:return _0xf48682(0x2d2);default:return'univer-bg-gray-500';}},_0x109887=_0x303fcb=>{var _0x348354=_0x4f7af9;switch(_0x303fcb){case _0x5cf9aa[_0x348354(0x315)]:return _0x1cb510['t']('mcpConfig.connectionStatus.connected');case _0x5cf9aa[_0x348354(0x2d4)]:return _0x1cb510['t']('mcpConfig.connectionStatus.connecting');case _0x5cf9aa[_0x348354(0x267)]:return _0x1cb510['t'](_0x348354(0x274));case _0x5cf9aa[_0x348354(0x296)]:return _0x1cb510['t'](_0x348354(0x2fc));default:return _0x1cb510['t'](_0x348354(0x22f));}},_0x29fa92=_0x4ede1b=>{var _0x13ee1f=_0x4f7af9;switch(_0x4ede1b){case _0x2f0c0c['UNAUTHORIZED']:return _0x1cb510['t'](_0x13ee1f(0x345));case _0x2f0c0c['SESSION_ID_OCCUPIED']:return _0x1cb510['t'](_0x13ee1f(0x28f));case _0x2f0c0c[_0x13ee1f(0x346)]:return _0x1cb510['t'](_0x13ee1f(0x257));case _0x2f0c0c[_0x13ee1f(0x200)]:return _0x1cb510['t'](_0x13ee1f(0x2c4));default:return'';}},_0x470188=_0x37a6dc(()=>{var _0x62492e=_0x4f7af9;const _0x286d11={..._0x41186e,'apiKey':_0x3dea7e[_0x62492e(0x20e)](),'enableAuth':_0x57754d};_0x32d938(_0x286d11);},[_0x41186e,_0x3dea7e,_0x57754d,_0x32d938]),_0x1e4c1c=_0x3dea7e[_0x4f7af9(0x20e)]()[_0x4f7af9(0x2bf)]>0x0;return _0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x28e),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2f1),'children':_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x231),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x279),'children':_0x2108d8(_0x4f7af9(0x343),{'className':'univer-text-white','children':'⚙'})}),_0x2108d8(_0x4f7af9(0x331),{'children':_0x2108d8('p',{'className':_0x4f7af9(0x273),'children':_0x1cb510['t'](_0x4f7af9(0x238))})})]})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2f5),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x31d)+_0x199131(_0x189393,_0x1c0d39)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x341)+_0x3190b7(_0x189393,_0x1c0d39)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x263),'children':_0x109887(_0x189393)})]})}),_0x1c0d39!==_0x2f0c0c['NONE']&&(_0x189393===_0x5cf9aa[_0x4f7af9(0x267)]||_0x1c0d39===_0x2f0c0c[_0x4f7af9(0x255)])&&_0x2108d8(_0x4f7af9(0x331),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x343),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x2108d8('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x29fa92(_0x1c0d39)})]})})]}),_0x2108d8(_0x4f7af9(0x331),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-space-y-5','children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2678b2(_0x4f7af9(0x280),{'className':_0x4f7af9(0x2e9),'children':[_0x2108d8(_0x4f7af9(0x343),{'children':'🔑'}),'\x20',_0x1cb510['t'](_0x4f7af9(0x2e2)),_0x2108d8('span',{'className':_0x4f7af9(0x246),'children':'*'}),_0x2275fe&&_0x2108d8('a',{'href':_0x4f7af9(0x253),'onClick':()=>_0x2f04f8(!0x0),'className':_0x4f7af9(0x203),'title':_0x1cb510['t'](_0x4f7af9(0x322)),'children':_0x2108d8(de,{})})]}),_0x2108d8(_0x3fb065,{'type':'text','placeholder':_0x1cb510['t'](_0x4f7af9(0x33d)),'value':_0x3dea7e,'onChange':_0x9227c9,'disabled':_0x1c5464,'autoComplete':_0x4f7af9(0x286)}),_0x2108d8('p',{'className':_0x4f7af9(0x214),'children':_0x1cb510['t'](_0x4f7af9(0x2f6))})]}),_0x2275fe&&_0x4a7fd4&&_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x326),'children':[_0x2108d8('a',{'href':_0x4f7af9(0x253),'onClick':()=>_0x2f04f8(!0x1),'className':_0x4f7af9(0x1ec),'title':'Close','children':_0x2108d8(ve,{})}),_0x2678b2('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2b8),'children':_0x2108d8('span',{'className':_0x4f7af9(0x32d),'children':'🚀'})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x290),'children':[_0x2108d8('h4',{'className':_0x4f7af9(0x1ef),'children':_0x1cb510['t'](_0x4f7af9(0x322))}),_0x2108d8('p',{'className':_0x4f7af9(0x2c6),'children':_0x1cb510['t'](_0x4f7af9(0x2fa))}),_0x2108d8('div',{'className':_0x4f7af9(0x222),'children':_0xceadd7&&_0x2678b2('a',{'href':_0x4f549c,'target':_0x4f7af9(0x270),'rel':'noopener\x20noreferrer','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','children':[_0x2108d8(_0x4f7af9(0x343),{'children':'🤖'}),_0x1cb510['t'](_0x4f7af9(0x211)),_0x2108d8(_0x4f7af9(0x343),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2ad),'children':['✨','\x20',_0x1cb510['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5e45ea[_0x4f7af9(0x261)]&&_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x335),'children':[_0x2678b2('h4',{'className':_0x4f7af9(0x2da),'children':[_0x2108d8('span',{'children':'🔗'}),'\x20',_0x1cb510['t'](_0x4f7af9(0x210))]}),_0x2678b2('div',{'className':_0x4f7af9(0x30e),'children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x33b),'children':[_0x2108d8('p',{'className':_0x4f7af9(0x208),'children':_0x1cb510['t'](_0x4f7af9(0x20b))}),_0x2678b2(_0x4f7af9(0x331),{'className':'univer-space-y-2','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':_0x1cb510['t'](_0x4f7af9(0x301))}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2ed),'children':[_0x2678b2('div',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'1'}),_0x1cb510['t']('mcpConfig.configStep1')]}),_0x2678b2('div',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'2'}),_0x1cb510['t'](_0x4f7af9(0x306))]}),_0x2678b2('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'3'}),_0x1cb510['t'](_0x4f7af9(0x352))]})]})]})]}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':'MCP\x20Configuration'}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x1f9),'children':_0x2108d8(_0x4f7af9(0x2ee),{'className':_0x4f7af9(0x1ee),'children':_0x4f7af9(0x2ff)+_0x38d782+_0x4f7af9(0x266)+(_0x3dea7e||'<API_KEY>')+_0x4f7af9(0x33a)})})]}),_0x2678b2('div',{'className':_0x4f7af9(0x33b),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':_0x1cb510['t'](_0x4f7af9(0x219))}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x305),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d3)}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x20d),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x1fd),'children':'univer_session_id:'}),_0x2108d8(_0x4f7af9(0x331),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1cb510['t'](_0x4f7af9(0x2fb))})]})]}),_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d3)}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x20d),'children':[_0x2108d8('div',{'className':_0x4f7af9(0x1fd),'children':_0x4f7af9(0x29c)}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x214),'children':_0x1cb510['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x2108d8(_0x6e2211,{'onClick':_0x470188,'disabled':!_0x1e4c1c||_0x1c5464,'className':_0x4f7af9(0x287),'children':_0x1c5464?_0x2678b2('span',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'children':'⟲'}),_0x1cb510['t'](_0x4f7af9(0x29a))]}):_0x2678b2(_0x4f7af9(0x343),{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(le,{}),_0x1cb510['t'](_0x4f7af9(0x217))]})}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d9),'children':_0x2678b2('div',{'className':_0x4f7af9(0x25d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x21b),'children':'💡'}),_0x2678b2('div',{'className':_0x4f7af9(0x2cd),'children':[_0x2108d8('div',{'className':_0x4f7af9(0x316),'children':_0x4f7af9(0x2d8)}),_0x2678b2('div',{'children':['•',_0x1cb510['t'](_0x4f7af9(0x276))]}),_0x2678b2(_0x4f7af9(0x331),{'children':['•',_0x1cb510['t']('mcpConfig.note2')]})]})]})})]})})]});}const x=_0x103721(0x2c3),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x1b9043,_0x1474db,_0xbc87df,_0xcd1c37)=>{var _0x208d26=_0x103721;for(var _0x363c58=_0xcd1c37>0x1?void 0x0:_0xcd1c37?on(_0x1474db,_0xbc87df):_0x1474db,_0x1d3df7=_0x1b9043[_0x208d26(0x2bf)]-0x1,_0x4a963e;_0x1d3df7>=0x0;_0x1d3df7--)(_0x4a963e=_0x1b9043[_0x1d3df7])&&(_0x363c58=_0x4a963e(_0x363c58)||_0x363c58);return _0x363c58;},g=(_0x42ef9c,_0x5087c7)=>(_0x269d23,_0x4224a9)=>_0x5087c7(_0x269d23,_0x4224a9,_0x42ef9c);function _0x4233(_0x132230,_0x4b7abe){var _0x210cb9=_0x210c();return _0x4233=function(_0x423350,_0x67fbc5){_0x423350=_0x423350-0x1ec;var _0x225a4e=_0x210cb9[_0x423350];return _0x225a4e;},_0x4233(_0x132230,_0x4b7abe);}const j=_0x103721(0x2e7),U='mcp-config-dialog';let I=class extends _0x58601d{constructor(_0x2c1b01,_0x3ef9e2,_0x5b6887,_0xa60970,_0x567aee,_0x2ee659,_0x96e819,_0x205fcd,_0x2dbfc5,_0x3e53b9){var _0x551e8b=_0x103721;super(),S(this,_0x551e8b(0x2c9),new _0x226704(!0x1)),S(this,_0x551e8b(0x2e8),new _0x226704({})),S(this,_0x551e8b(0x21d),new _0x226704({})),S(this,_0x551e8b(0x334),new _0x226704('')),S(this,_0x551e8b(0x2d0),async _0x5d196e=>{var _0x34d33a=_0x551e8b,_0x5e3c8e,_0x1277d1;this[_0x34d33a(0x2c9)][_0x34d33a(0x20f)](!0x0);try{const _0x3f02bf=await this['_validateConfig'](_0x5d196e);if(!_0x3f02bf[_0x34d33a(0x21a)]){this[_0x34d33a(0x349)][_0x34d33a(0x2ae)]({'type':_0xa82ba2[_0x34d33a(0x282)],'content':_0x3f02bf[_0x34d33a(0x32a)]||this['_localeService']['t'](_0x34d33a(0x2a9))});return;}_0x5d196e[_0x34d33a(0x27c)]?await this[_0x34d33a(0x348)]['setItem'](j,_0x5d196e[_0x34d33a(0x27c)]['trim']()):await this[_0x34d33a(0x348)][_0x34d33a(0x324)](j),this[_0x34d33a(0x334)][_0x34d33a(0x20f)](((_0x5e3c8e=_0x5d196e[_0x34d33a(0x27c)])==null?void 0x0:_0x5e3c8e[_0x34d33a(0x20e)]())||''),this[_0x34d33a(0x28c)][_0x34d33a(0x26e)]({'Authorization':_0x34d33a(0x2b3)+((_0x1277d1=_0x5d196e['apiKey'])==null?void 0x0:_0x1277d1[_0x34d33a(0x20e)]())}),this[_0x34d33a(0x349)][_0x34d33a(0x2ae)]({'type':_0xa82ba2['Success'],'content':this[_0x34d33a(0x228)]['t'](_0x34d33a(0x20a))}),setTimeout(()=>{var _0x5ad4bb=_0x34d33a;this[_0x5ad4bb(0x271)][_0x5ad4bb(0x2f3)](U);},0x320);}catch(_0x3844f9){this[_0x34d33a(0x21e)][_0x34d33a(0x2f8)](_0x34d33a(0x21c),_0x3844f9),this['_messageService']['show']({'type':_0xa82ba2[_0x34d33a(0x282)],'content':this['_localeService']['t'](_0x34d33a(0x27b))});}finally{this[_0x34d33a(0x2c9)]['next'](!0x1);}}),(this[_0x551e8b(0x26b)]=_0x2c1b01,this[_0x551e8b(0x225)]=_0x3ef9e2,this['_configService']=_0x5b6887,this[_0x551e8b(0x348)]=_0xa60970,this[_0x551e8b(0x271)]=_0x567aee,this['_messageService']=_0x2ee659,this[_0x551e8b(0x1fc)]=_0x96e819,this[_0x551e8b(0x228)]=_0x205fcd,this[_0x551e8b(0x21e)]=_0x2dbfc5,this[_0x551e8b(0x28c)]=_0x3e53b9,this[_0x551e8b(0x33f)](),this[_0x551e8b(0x31e)](),this['_registerComponent']());}[_0x103721(0x230)](){var _0x5cf760=_0x103721;const _0x27883e=this[_0x5cf760(0x30d)][_0x5cf760(0x2ca)](x);_0x27883e!=null&&_0x27883e[_0x5cf760(0x261)]&&this[_0x5cf760(0x271)][_0x5cf760(0x258)]({'id':U,'title':{'title':this[_0x5cf760(0x228)]['t'](_0x5cf760(0x207))},'children':{'label':_0x5cf760(0x2c0)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x485339=_0x5cf760;this[_0x485339(0x271)][_0x485339(0x2f3)](U);}});}[_0x103721(0x313)](){var _0x5120df=_0x103721;return this[_0x5120df(0x2e8)][_0x5120df(0x25e)];}[_0x103721(0x1ff)](){var _0x2d0274=_0x103721;this[_0x2d0274(0x291)](this[_0x2d0274(0x1fc)][_0x2d0274(0x22c)](_0x2d0274(0x2c0),this[_0x2d0274(0x29f)]()));}[_0x103721(0x29f)](){var _0x324467=_0x103721;return _0x261a19(()=>{var _0x461e27=_0x4233,_0x239332,_0x337998,_0xe1fe73;return _0x2108d8(tn,{'config':this[_0x461e27(0x21d)][_0x461e27(0x25e)],'mcpCoreConfig':this[_0x461e27(0x2e8)][_0x461e27(0x25e)],'currentApiKey$':this[_0x461e27(0x334)],'onSave':this[_0x461e27(0x2d0)],'loading':this[_0x461e27(0x2c9)][_0x461e27(0x25e)],'connectionStatus$':(_0x239332=this[_0x461e27(0x28c)])==null?void 0x0:_0x239332[_0x461e27(0x292)],'connectionError$':(_0x337998=this[_0x461e27(0x28c)])==null?void 0x0:_0x337998[_0x461e27(0x269)],'currentSessionId$':(_0xe1fe73=this[_0x461e27(0x28c)])==null?void 0x0:_0xe1fe73[_0x461e27(0x28d)]});},this[_0x324467(0x26b)]);}['_initConfigSync'](){var _0x309985=_0x103721;this[_0x309985(0x291)](this['_configService'][_0x309985(0x2aa)](_0x430f8a)[_0x309985(0x27d)](_0x4a4341=>{var _0x365b35=_0x309985;this[_0x365b35(0x2e8)]['next'](_0x4a4341||{});}));const _0x5eac97=this[_0x309985(0x30d)][_0x309985(0x2ca)](_0x430f8a);this['_mcpCoreConfig$'][_0x309985(0x20f)](_0x5eac97||{}),this[_0x309985(0x291)](this[_0x309985(0x30d)][_0x309985(0x2aa)](x)[_0x309985(0x27d)](_0x320887=>{var _0x4dfad5=_0x309985;this[_0x4dfad5(0x21d)]['next'](_0x320887||{});}));const _0x2926fd=this['_configService'][_0x309985(0x2ca)](x);this[_0x309985(0x21d)][_0x309985(0x20f)](_0x2926fd||{});}async['_loadStoredApiKey'](){var _0x529b2b=_0x103721;const _0x41fba6=this[_0x529b2b(0x30d)][_0x529b2b(0x2ca)](x);if(!(_0x41fba6!=null&&_0x41fba6['showDeveloperTools']))return;const _0x5e618e=await this[_0x529b2b(0x348)][_0x529b2b(0x2de)](j);_0x5e618e&&(this[_0x529b2b(0x28c)][_0x529b2b(0x26e)]({'Authorization':_0x529b2b(0x2b3)+_0x5e618e}),this[_0x529b2b(0x334)][_0x529b2b(0x20f)](_0x5e618e));}async['_validateConfig'](_0x48f4e5){var _0x30ba14=_0x103721;if(!_0x48f4e5[_0x30ba14(0x27c)]||_0x48f4e5[_0x30ba14(0x27c)][_0x30ba14(0x20e)]()[_0x30ba14(0x2bf)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x30ba14(0x31f))};if(_0x48f4e5[_0x30ba14(0x27c)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x30ba14(0x300))};try{const _0x4cfdd8=await this[_0x30ba14(0x26b)]['get'](_0x19e8d5)[_0x30ba14(0x247)](_0x48f4e5[_0x30ba14(0x27c)]['trim']());return _0x4cfdd8[_0x30ba14(0x21a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4cfdd8[_0x30ba14(0x2f8)]||this[_0x30ba14(0x228)]['t'](_0x30ba14(0x227))};}catch(_0x227dee){return console[_0x30ba14(0x289)](_0x30ba14(0x330),_0x227dee),{'isValid':!0x0};}}};I=sn([g(0x0,_0x2235fd(_0x40d19b)),g(0x1,_0x29d968),g(0x2,_0x4d3163),g(0x3,_0xcab0cf),g(0x4,_0x15a5f5),g(0x5,_0x5abb6a),g(0x6,_0x2235fd(_0x59058c)),g(0x7,_0x2235fd(_0x1cb48f)),g(0x8,_0x3547f4),g(0x9,_0x2235fd(_0x19e8d5))],I);const V={'id':_0x103721(0x1f0),'type':_0x153d32[_0x103721(0x272)],'handler':async(_0x464329,_0x234637)=>(_0x464329[_0x103721(0x224)](I)['showConfigPanel'](),!0x0)};function pe(_0x2c9311,_0x474488){var _0x5c2ad5=_0x103721;switch(_0x2c9311){case _0x5cf9aa[_0x5c2ad5(0x239)]:return _0x5c2ad5(0x2a5);case _0x5cf9aa[_0x5c2ad5(0x2d4)]:return _0x5c2ad5(0x34c);case _0x5cf9aa[_0x5c2ad5(0x315)]:return _0x5c2ad5(0x243);case _0x5cf9aa['FAILED']:switch(_0x474488){case _0x2f0c0c[_0x5c2ad5(0x255)]:return'mcpStatus.unauthorized';case _0x2f0c0c[_0x5c2ad5(0x338)]:return _0x5c2ad5(0x264);case _0x2f0c0c[_0x5c2ad5(0x346)]:return'mcpStatus.networkError';case _0x2f0c0c[_0x5c2ad5(0x200)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5c2ad5(0x2b7);}case _0x5cf9aa[_0x5c2ad5(0x296)]:return _0x5c2ad5(0x2e4);default:return _0x5c2ad5(0x2c8);}}function cn(_0x275b89,_0x4355dd,_0x543590,_0x42f66=!0x0){var _0x30b130=_0x103721;const _0x3641ca=pe(_0x275b89,_0x4355dd),_0x31b1d5=_0x543590['t'](_0x3641ca);return _0x42f66?_0x275b89===_0x5cf9aa[_0x30b130(0x239)]&&_0x4355dd===_0x2f0c0c[_0x30b130(0x255)]?_0x31b1d5+_0x30b130(0x205)+_0x543590['t'](_0x30b130(0x20c)):_0x275b89===_0x5cf9aa[_0x30b130(0x315)]?''+_0x31b1d5:_0x275b89===_0x5cf9aa['DISCONNECTED']||_0x275b89===_0x5cf9aa[_0x30b130(0x267)]?_0x31b1d5+'\x20-\x20'+_0x543590['t'](_0x30b130(0x2af)):_0x31b1d5:_0x31b1d5;}function an(_0x3f40f5){var _0x55c032=_0x103721;switch(_0x3f40f5){case _0x5cf9aa['CONNECTED']:return _0x55c032(0x2e3);case _0x5cf9aa[_0x55c032(0x2d4)]:case _0x5cf9aa[_0x55c032(0x296)]:return _0x55c032(0x2ce);case _0x5cf9aa['FAILED']:case _0x5cf9aa[_0x55c032(0x239)]:return _0x55c032(0x246);default:return _0x55c032(0x24d);}}function un(_0x2d2646){var _0x51d765=_0x103721;const {status$:_0x1b40fa,error$:_0x4aeabd,onConfigure:_0x3d8ac6,showClickable:_0x557bae=!0x0}=_0x2d2646,_0x43606d=_0x2f03e5(_0x1b40fa,_0x5cf9aa[_0x51d765(0x239)]),_0x54118=_0x2f03e5(_0x4aeabd,_0x2f0c0c[_0x51d765(0x242)]),_0x2408ff=_0x850478(_0x1cb48f),_0x4b84ab=_0x43606d===_0x5cf9aa[_0x51d765(0x315)];_0x43606d===_0x5cf9aa[_0x51d765(0x2d4)]||_0x5cf9aa[_0x51d765(0x296)];const _0x3b7e40=_0x2408ff['t'](pe(_0x43606d,_0x54118)),_0x2af719=cn(_0x43606d,_0x54118,_0x2408ff,_0x557bae),_0x3ee373=an(_0x43606d),_0x3a85c1=_0x4b84ab?_0x2108d8(ge,{}):_0x2108d8(fe,{}),_0x25278c=_0x37a6dc(()=>{_0x557bae&&_0x3d8ac6&&_0x3d8ac6();},[_0x557bae,_0x3d8ac6]);function _0x58aa13(){var _0x4dced0=_0x51d765;return _0x2678b2(_0x4dced0(0x331),{'className':_0x3c6797(_0x4dced0(0x2ab),_0x557bae&&_0x3d8ac6&&'\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'),'onClick':_0x557bae&&_0x3d8ac6?_0x25278c:void 0x0,'children':[_0x2108d8(_0x4dced0(0x331),{'className':_0x3c6797(_0x4dced0(0x1f7),_0x3ee373),'children':_0x3a85c1}),_0x2108d8(_0x4dced0(0x331),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3b7e40})]});}return _0x2108d8(_0x171aed,{'title':_0x2af719,'placement':_0x51d765(0x1fe),'children':_0x58aa13()});}var ln=Object['getOwnPropertyDescriptor'],vn=(_0x2b0a68,_0x1c9261,_0x2e11ef,_0x118b03)=>{for(var _0x572838=_0x118b03>0x1?void 0x0:_0x118b03?ln(_0x1c9261,_0x2e11ef):_0x1c9261,_0x4af9c8=_0x2b0a68['length']-0x1,_0xb7d619;_0x4af9c8>=0x0;_0x4af9c8--)(_0xb7d619=_0x2b0a68[_0x4af9c8])&&(_0x572838=_0xb7d619(_0x572838)||_0x572838);return _0x572838;},A=(_0x1ee585,_0x3d4d1e)=>(_0x1d38cc,_0x7de9a9)=>_0x3d4d1e(_0x1d38cc,_0x7de9a9,_0x1ee585);let O=class extends _0x58601d{constructor(_0xfea851,_0x172c1f,_0x29773c,_0x5e3cf6){var _0x50c510=_0x103721;super(),this['_injector']=_0xfea851,this['_connectionController']=_0x172c1f,this[_0x50c510(0x225)]=_0x29773c,this[_0x50c510(0x30d)]=_0x5e3cf6,this[_0x50c510(0x23f)](),this[_0x50c510(0x252)]();}[_0x103721(0x23f)](){var _0x3b292c=_0x103721;const _0x475196=this[_0x3b292c(0x30d)][_0x3b292c(0x2ca)](x);_0x475196!=null&&_0x475196['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x103721(0x252)](){var _0xd805d1=_0x103721;const _0x411ba3=this['_configService'][_0xd805d1(0x2ca)](x);(_0x411ba3==null?void 0x0:_0x411ba3['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0xd805d1(0x225)]['registerComponent'](_0x3172b9[_0xd805d1(0x24f)],()=>{var _0x3aed0c=_0xd805d1,_0x40d9f5;return _0x261a19(dn({'status$':this[_0x3aed0c(0x262)]['connectionStatus$'],'error$':this['_connectionController'][_0x3aed0c(0x269)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x40d9f5=_0x411ba3==null?void 0x0:_0x411ba3[_0x3aed0c(0x261)])!=null?_0x40d9f5:!0x1}),this[_0x3aed0c(0x26b)]);}));}[_0x103721(0x24c)](){var _0x4996ff=_0x103721;this[_0x4996ff(0x26b)][_0x4996ff(0x224)](I)[_0x4996ff(0x230)]();}};O=vn([A(0x0,_0x2235fd(_0x40d19b)),A(0x1,_0x2235fd(_0x19e8d5)),A(0x2,_0x29d968),A(0x3,_0x4d3163)],O);function dn(_0x321229){const {status$:_0x196c83,error$:_0x511b73,onConfigure:_0x1a5137,showClickable:_0x11ec3d}=_0x321229;return function(){return _0x2108d8(un,{'status$':_0x196c83,'error$':_0x511b73,'onConfigure':_0x1a5137,'showClickable':_0x11ec3d});};}function fn(_0x24a618){var _0x418f0e=_0x103721;return{'id':V['id'],'type':_0x49d67f[_0x418f0e(0x337)],'icon':_0x418f0e(0x28b),'title':_0x418f0e(0x207),'tooltip':_0x418f0e(0x207)};}const gn={[_0x1df899[_0x103721(0x30c)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object['getOwnPropertyDescriptor'],hn=(_0x28b50b,_0x309707,_0x9f7b93,_0x30fd7b)=>{var _0x46cd0e=_0x103721;for(var _0x3b18b9=_0x30fd7b>0x1?void 0x0:_0x30fd7b?pn(_0x309707,_0x9f7b93):_0x309707,_0xc5488b=_0x28b50b[_0x46cd0e(0x2bf)]-0x1,_0x4d74da;_0xc5488b>=0x0;_0xc5488b--)(_0x4d74da=_0x28b50b[_0xc5488b])&&(_0x3b18b9=_0x4d74da(_0x3b18b9)||_0x3b18b9);return _0x3b18b9;},te=(_0x5b2968,_0x1d24b3)=>(_0x3a9c74,_0x1c3465)=>_0x1d24b3(_0x3a9c74,_0x1c3465,_0x5b2968);let k=class extends _0x58601d{constructor(_0x4832e4,_0x2e7da2){var _0x49f1c2=_0x103721;super(),this[_0x49f1c2(0x29e)]=_0x4832e4,this[_0x49f1c2(0x275)]=_0x2e7da2,this['_initializeCommands'](),this[_0x49f1c2(0x254)]();}[_0x103721(0x33c)](){[V]['forEach'](_0x459f3b=>{var _0x40615b=_0x4233;this[_0x40615b(0x291)](this['_commandService']['registerCommand'](_0x459f3b));});}['_initializeMenus'](){var _0xba67ac=_0x103721;this[_0xba67ac(0x275)][_0xba67ac(0x221)](gn);}};k=hn([te(0x0,_0x2dd78e),te(0x1,_0x193d79)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x103721(0x265),'connected':'MCP\x20Connected','failed':_0x103721(0x249),'retrying':_0x103721(0x21f),'unknown':_0x103721(0x212),'unauthorized':_0x103721(0x2fd),'sessionOccupied':_0x103721(0x2c1),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x103721(0x2be),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x103721(0x22b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x103721(0x260),'apiKey':_0x103721(0x30a),'apiKeyPlaceholder':_0x103721(0x347),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x103721(0x27e),'enableAuthHint':_0x103721(0x2b6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x103721(0x202),'configInstructions':_0x103721(0x319),'configStepTitle':_0x103721(0x251),'configStep1':_0x103721(0x311),'configStep2':_0x103721(0x248),'configStep3':_0x103721(0x2cb),'sessionId':_0x103721(0x307),'sessionIdDescription':_0x103721(0x2a8),'authorizationDescription':_0x103721(0x2b9),'configParameters':_0x103721(0x201),'maxRetries':_0x103721(0x2a2),'save':_0x103721(0x23b),'saving':_0x103721(0x2f4),'note1':_0x103721(0x304),'note2':_0x103721(0x204),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x103721(0x218),'apiApplyInfo':{'title':_0x103721(0x29b),'description':_0x103721(0x23e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x103721(0x278)},'validation':{'apiKeyRequired':_0x103721(0x22d),'apiKeyTooShort':_0x103721(0x23c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x103721(0x2d7),'connecting':_0x103721(0x30f),'connected':'Connected','failed':_0x103721(0x2df),'retrying':_0x103721(0x226)},'connectionError':{'unauthorized':_0x103721(0x34a),'sessionOccupied':_0x103721(0x2ec),'networkError':_0x103721(0x27f),'maxRetriesExceeded':_0x103721(0x320)}}},kn={'mcpStatus':{'disconnected':_0x103721(0x1f2),'connecting':'MCP\x20连接中...','connected':_0x103721(0x2dd),'failed':_0x103721(0x1f3),'retrying':_0x103721(0x25b),'unknown':_0x103721(0x297),'unauthorized':_0x103721(0x299),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x103721(0x317),'maxRetriesExceeded':_0x103721(0x336),'clickToConnect':_0x103721(0x241),'clickToConfigure':_0x103721(0x1fb)},'mcpConfig':{'title':_0x103721(0x318),'description':_0x103721(0x2d6),'apiKey':_0x103721(0x235),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x103721(0x340),'enableAuth':_0x103721(0x34b),'enableAuthHint':_0x103721(0x32c),'connectionInfo':_0x103721(0x240),'mcpClientConfig':_0x103721(0x240),'configInstructions':_0x103721(0x281),'configStepTitle':_0x103721(0x32b),'configStep1':_0x103721(0x2f7),'configStep2':_0x103721(0x2ac),'configStep3':_0x103721(0x2a7),'sessionId':'会话ID','sessionIdDescription':_0x103721(0x31a),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x103721(0x309),'maxRetries':_0x103721(0x332),'save':_0x103721(0x26d),'saving':_0x103721(0x259),'note1':_0x103721(0x268),'note2':_0x103721(0x323),'configSaved':_0x103721(0x303),'configError':'配置保存失败','apiApplyInfo':{'title':_0x103721(0x32f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x103721(0x30b),'getStarted':_0x103721(0x298)},'validation':{'apiKeyRequired':_0x103721(0x206),'apiKeyTooShort':_0x103721(0x33e),'invalidConfig':_0x103721(0x2dc),'invalidApiKey':_0x103721(0x26f)},'connectionStatus':{'disconnected':'未连接','connecting':_0x103721(0x2a3),'connected':_0x103721(0x24a),'failed':_0x103721(0x314),'retrying':_0x103721(0x26c)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x103721(0x2f9),'networkError':_0x103721(0x2a6),'maxRetriesExceeded':_0x103721(0x229)}}};var mn=Object[_0x103721(0x220)],Cn=Object[_0x103721(0x328)],yn=(_0x970f5d,_0x22f5b8,_0x410547)=>_0x22f5b8 in _0x970f5d?mn(_0x970f5d,_0x22f5b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x410547}):_0x970f5d[_0x22f5b8]=_0x410547,_n=(_0x4a86e8,_0x3c52f5,_0x33d73a,_0x40d8df)=>{var _0x2bca59=_0x103721;for(var _0x2396eb=_0x40d8df>0x1?void 0x0:_0x40d8df?Cn(_0x3c52f5,_0x33d73a):_0x3c52f5,_0x217cd1=_0x4a86e8[_0x2bca59(0x2bf)]-0x1,_0x53d218;_0x217cd1>=0x0;_0x217cd1--)(_0x53d218=_0x4a86e8[_0x217cd1])&&(_0x2396eb=_0x53d218(_0x2396eb)||_0x2396eb);return _0x2396eb;},E=(_0x2fdd76,_0x1632c2)=>(_0x33d649,_0x376967)=>_0x1632c2(_0x33d649,_0x376967,_0x2fdd76),xn=(_0x2fe070,_0xc60af9,_0x3419fe)=>yn(_0x2fe070,_0xc60af9+'',_0x3419fe);let L=class extends _0x57747f{constructor(_0x682aff=re,_0x43f7b8,_0x197710,_0x4922cd,_0x5dcebb,_0x2a899b){var _0x3824d5=_0x103721;super(),this[_0x3824d5(0x234)]=_0x682aff,this['_injector']=_0x43f7b8,this[_0x3824d5(0x30d)]=_0x197710,this['_uiPartsService']=_0x4922cd,this[_0x3824d5(0x348)]=_0x5dcebb,this[_0x3824d5(0x228)]=_0x2a899b;const {..._0x38515d}=_0x16a3ed({},re,this[_0x3824d5(0x234)]);this[_0x3824d5(0x30d)][_0x3824d5(0x2a4)](x,_0x38515d);}async['onStarting'](){var _0x2390c3=_0x103721;const _0x4a0f16=[[O],[I],[k]];this[_0x2390c3(0x26b)][_0x2390c3(0x2ba)](_0x2e09fb)||_0x4a0f16['push']([_0x2e09fb,{'useClass':_0x12b718}]),_0x4a0f16[_0x2390c3(0x2b5)](_0x49ea34=>this[_0x2390c3(0x26b)][_0x2390c3(0x2fe)](_0x49ea34)),this[_0x2390c3(0x26b)][_0x2390c3(0x224)](O),this[_0x2390c3(0x26b)][_0x2390c3(0x224)](I),this[_0x2390c3(0x26b)]['get'](k);}};xn(L,'pluginName',_0x103721(0x321)),L=_n([_0x17438e(_0x4538b1),E(0x1,_0x2235fd(_0x40d19b)),E(0x2,_0x4d3163),E(0x3,_0x29d968),E(0x4,_0xcab0cf),E(0x5,_0x2235fd(_0x1cb48f))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ const _0x2bf1b1=_0x4cba;(function(_0x4355fd,_0x272879){const _0x937c02=_0x4cba,_0x5e57fa=_0x4355fd();while(!![]){try{const _0x369c3e=-parseInt(_0x937c02(0x1a3))/0x1+-parseInt(_0x937c02(0x15b))/0x2*(-parseInt(_0x937c02(0x133))/0x3)+-parseInt(_0x937c02(0x1ab))/0x4*(-parseInt(_0x937c02(0x227))/0x5)+-parseInt(_0x937c02(0x21d))/0x6+-parseInt(_0x937c02(0x176))/0x7+-parseInt(_0x937c02(0x159))/0x8+parseInt(_0x937c02(0x1d4))/0x9;if(_0x369c3e===_0x272879)break;else _0x5e57fa['push'](_0x5e57fa['shift']());}catch(_0x2cca7a){_0x5e57fa['push'](_0x5e57fa['shift']());}}}(_0x1c25,0x68843));var Pe=Object[_0x2bf1b1(0x152)],Ee=(_0x2d1ba9,_0x3f2e08,_0x33d22e)=>_0x3f2e08 in _0x2d1ba9?Pe(_0x2d1ba9,_0x3f2e08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33d22e}):_0x2d1ba9[_0x3f2e08]=_0x33d22e,x=(_0x24b4f8,_0x33d3a4,_0xf2cf21)=>Ee(_0x24b4f8,typeof _0x33d3a4!=_0x2bf1b1(0x135)?_0x33d3a4+'':_0x33d3a4,_0xf2cf21);import{LocaleService as _0xd0be8d,Inject as _0x26dbdd,Injector as _0x4b393b,IConfigService as _0xb51bf0,ILocalStorageService as _0x4d166b,ILogService as _0x39a88e,Disposable as _0x4e59e4,CommandType as _0x4900d6,ICommandService as _0x3e86ed,DependentOn as _0x48ca9a,Plugin as _0x3d9051,merge as _0x2d2539}from'@univerjs/core';import{jsxs as _0x10850c,jsx as _0x20a502}from'react/jsx-runtime';function _0x1c25(){const _0x46aa8e=['mcpConfig.validation.apiKeyTooShort','MCP\x20状态未知','MCP\x20重连中...','value','Copy\x20the\x20JSON\x20configuration\x20below','mcpStatus.unknown','removeItem','univer.ai','mcpConfig.save','MCP\x20Configuration','mcpConfig.note1','showConfigPanel','MCP\x20已连接','Error','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','https://console.univer.ai','univer-flex-1','mcpConfig.configStep3','mcpConfig.configSaved','univerjs-icon\x20univerjs-icon-','currentColor','_uiPartsService','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','clipPath','next','getCurrentConfig','text','Connecting...','FAILED','mcpStatus.connected','NETWORK_ERROR','help-icon','RETRYING','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','CONNECTED','_componentManager','on-line-icon_clip0_910_349','url(#off-line-icon_clip0_910_343)','_handleConfigSave','1em','univer-text-xs\x20univer-text-gray-500','UNAUTHORIZED','MCP\x20配置','noopener\x20noreferrer','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionInfo','univer-flex\x20univer-items-center\x20univer-gap-3','attrs','MCP\x20Connection\x20Failed','forEach','UniverIcon','Enter\x20your\x20API\x20key','https://mcp.univer.ai/mcp/?univer_session_id=','button','getOwnPropertyDescriptor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','mcpConfig.title','_localStorageService','univer-text-blue-600','Invalid\x20configuration','map','Session\x20ID','2972220IAqbTw','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','<API_KEY>','CONNECTING','label','mcpConfig.validation.apiKeyRequired','svg','Saving...','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.apiApplyInfo.getStarted','1585nJKajz','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionStatus.connecting','univer-space-y-3','_initConfigSync','validateApiKey','https://console.univer.plus','_connectionController','univer-min-w-0\x20univer-flex-1','onStarting','mcpConfig.configParameters','MCP:\x20网络错误','span','univer.plus','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','Click\x20to\x20configure\x20MCP','DISCONNECTED','_apiKey$','univer-space-y-4','什么是\x20API\x20密钥?','_logService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigure','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.clickToConnect','mcpStatus.retrying','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.failed','保存中...','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','show','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','M0\x200H16V16H0z','add','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','OTHERS','MenuIcon','displayName','mcpStatus.unauthorized','请输入您的\x20API\x20密钥','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mask','将配置添加到您的\x20MCP\x20客户端设置文件中','_commandService','MCP\x20Connecting...','univer-text-sm\x20univer-font-medium','univer-text-white','\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','mcpConfig.validation.invalidApiKey','_messageService','mcpConfig.note2','univer-bg-red-500','mcpStatus.clickToConfigure','Connection\x20Failed','MCP\x20连接失败','includes','SESSION_ID_OCCUPIED','getConfig','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.connectionStatus.disconnected','length','white','您的\x20API\x20密钥安全存储在本地存储中','会话\x20ID\x20已被占用,请稍后再试','Configuration\x20saved\x20successfully','bottom','Get\x20your\x20API\x20key\x20in\x20seconds','stringify','univer-bg-gray-500','enableAutoConnect','__setCustomHeaders','Univer\x20AI\x20控制台','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_configService','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','Enable\x20Authentication','NONE','带有\x20Bearer\x20前缀的\x20API\x20密钥。','未连接','Configuration\x20Parameters:','API\x20Key','push','点击配置\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','showDeveloperTools','_config$','xlink:href','281601lOmCfP','mcpServerUrl','symbol','配置保存成功','fill','mcp-ui.command.openConfigPanel','univer-text-yellow-500','配置无效','univer-space-y-5','_validateConfig','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcp.apiKey','MCP\x20连接中...','MCP\x20Retrying...','配置更改将立即生效','_localeService','_mcpConnectionController','Connected','children','COMMAND','evenodd','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Network\x20Error','_registerComponent','启用身份验证以获得安全连接','getItem','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','defineProperty','errorMessage','What\x20is\x20API\x20Key?','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','pluginName','_loadStoredApiKey','univer-text-red-500','4021168uSccpq','none','10dXfoVD','API\x20key\x20is\x20required','tag','register','warn','url(#on-line-icon_clip0_910_349)','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','defIds','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_injector','MCP:\x20Session\x20ID\x20Occupied','univer-text-gray-400','setItem','mcpConfig.connectionStatus.retrying','MCP\x20客户端配置','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_dialogService','mcpConfig.connectionError.maxRetriesExceeded','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20密钥长度至少需要\x2010\x20位','\x20-\x20','url(#$1','univer_session_id:','5125582fvShUW','配置保存失败','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.configStep2','colorChannel1','OnLineIcon','MCP:\x20未授权','univer-flex\x20univer-flex-wrap\x20univer-gap-2','replace','MCP\x20Unknown\x20Status','off-line-icon','string','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','HEADER_MENU','保存配置','Enable\x20authentication\x20for\x20secure\x20connections','div','_initAutoConnect','univer-flex\x20univer-items-center','path','mcpConfig.connectionStatus.failed','API\x20key\x20with\x20Bearer\x20prefix.','最大重试次数','disposeWithMe','registerCommand','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_initializeCommands','mcpConfig.apiApplyInfo.title','univer-bg-blue-500','_loading$','mcpConfig.description','Success','mcpStatus.connecting','mcpConfig.configStepTitle','_mcpCoreConfig$','check-mark-icon','mcpStatus.networkError','MCP:\x20Unauthorized','defs','close-icon','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','error','open','trim','API\x20密钥','481460tupHLF','Bearer\x20','Configuration\x20Notes:','subscribeConfigValue$','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mergeMenu','_initializeMenus','480segcWi','connectionStatus$','_menuManagerService','Disconnected','配置\x20MCP\x20使用\x20AI\x20操作电子表格','0\x200\x2016\x2016','idSuffix','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','http://www.w3.org/2000/svg','Configuration\x20Steps:','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','连接中...','round','mcpConfig.saving','MCP\x20Client\x20Configuration','univer-bg-green-500','MCPConfigPanel','配置参数:','MAX_RETRIES_EXCEEDED','pre','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','random','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','current','网络连接错误,请检查您的网络连接','subscribe','get','mcpConfig.connectionError.networkError','您的\x20API\x20密钥将在此浏览器中本地存储','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','apiKey','CloseIcon','_createConfigPanelComponent','会话ID','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_config','API\x20密钥不能为空','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','assign','off','19191834ztRdcN','registerComponent','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-space-y-2','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.validation.invalidConfig','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OffLineIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'];_0x1c25=function(){return _0x46aa8e;};return _0x1c25();}import{MCPConnectionStatus as _0x565980,MCPConnectionError as _0x1af6f2,MCPConnectionController as _0x15de46,MCP_PLUGIN_CONFIG_KEY as _0x3c192a,UniverMCPPlugin as _0x510c1c}from'@univerjs-pro/mcp';import{clsx as _0x1253e2,Input as _0x2fba3f,Button as _0x1077ba,MessageType as _0xeb15c5,Tooltip as _0x5afcee}from'@univerjs/design';import{useDependency as _0x49e503,useObservable as _0x1b7a0e,IUIPartsService as _0x5e8716,IDialogService as _0x591717,IMessageService as _0x536ebf,ComponentManager as _0x5f0b45,connectInjector as _0x26c801,BuiltInUIPart as _0x1166eb,MenuItemType as _0x3b50c1,RibbonStartGroup as _0x1bee11,IMenuManagerService as _0x51d18a}from'@univerjs/ui';import{BehaviorSubject as _0x1a9c67}from'rxjs';import{useRef as _0x5192b8,createElement as _0x2449eb,forwardRef as _0x54a9ab,useState as _0x4f9296,useCallback as _0x17df3a}from'react';import{ISocketService as _0x17de95,WebSocketService as _0x2bec1d}from'@univerjs/network';function b({ref:_0x3080db,..._0x50568f}){const _0x23b297=_0x2bf1b1,{icon:_0x76ad81,id:_0x41f15c,className:_0x260124,extend:_0x839cc8,..._0x43e90a}=_0x50568f,_0x2a72ec=(_0x23b297(0x1f1)+_0x41f15c+'\x20'+(_0x260124||''))[_0x23b297(0x1a1)](),_0x5a59c7=_0x5192b8('_'+We());return ae(_0x76ad81,''+_0x41f15c,{'defIds':_0x76ad81[_0x23b297(0x162)],'idSuffix':_0x5a59c7[_0x23b297(0x1c3)]},{'ref':_0x3080db,'className':_0x2a72ec,..._0x43e90a},_0x839cc8);}function ae(_0x5b7e16,_0x4a3326,_0x2810cc,_0x1e0003,_0x5e69a2){const _0x186e0f=_0x2bf1b1;return _0x2449eb(_0x5b7e16['tag'],{'key':_0x4a3326,...Ye(_0x5b7e16,_0x2810cc,_0x5e69a2),..._0x1e0003},(Ze(_0x5b7e16,_0x2810cc)[_0x186e0f(0x145)]||[])[_0x186e0f(0x21b)]((_0x2ebe72,_0x262983)=>ae(_0x2ebe72,_0x4a3326+'-'+_0x5b7e16[_0x186e0f(0x15d)]+'-'+_0x262983,_0x2810cc,void 0x0,_0x5e69a2)));}function Ye(_0x22d88b,_0x30703b,_0xd44d23){const _0x4f04f7=_0x2bf1b1,_0x150436={..._0x22d88b[_0x4f04f7(0x20d)]};_0xd44d23!=null&&_0xd44d23[_0x4f04f7(0x17a)]&&_0x150436[_0x4f04f7(0x137)]===_0x4f04f7(0x17a)&&(_0x150436[_0x4f04f7(0x137)]=_0xd44d23[_0x4f04f7(0x17a)]),_0x22d88b[_0x4f04f7(0x15d)]===_0x4f04f7(0x251)&&_0x150436['id']&&(_0x150436['id']=_0x150436['id']+_0x30703b[_0x4f04f7(0x1b1)]),Object[_0x4f04f7(0x216)](_0x150436)[_0x4f04f7(0x20f)](([_0x5c557f,_0x131290])=>{const _0x39364a=_0x4f04f7;_0x5c557f===_0x39364a(0x251)&&typeof _0x131290==_0x39364a(0x181)&&(_0x150436[_0x5c557f]=_0x131290['replace'](/url\(#(.*)\)/,_0x39364a(0x174)+_0x30703b['idSuffix']+')'));});const {defIds:_0x4d9803}=_0x30703b;return!_0x4d9803||_0x4d9803['length']===0x0||(_0x22d88b[_0x4f04f7(0x15d)]==='use'&&_0x150436[_0x4f04f7(0x132)]&&(_0x150436[_0x4f04f7(0x132)]=_0x150436[_0x4f04f7(0x132)]+_0x30703b[_0x4f04f7(0x1b1)]),Object[_0x4f04f7(0x216)](_0x150436)[_0x4f04f7(0x20f)](([_0x1ab0fa,_0x4eefa4])=>{const _0x2d50ae=_0x4f04f7;typeof _0x4eefa4==_0x2d50ae(0x181)&&(_0x150436[_0x1ab0fa]=_0x4eefa4[_0x2d50ae(0x17e)](/url\(#(.*)\)/,_0x2d50ae(0x174)+_0x30703b[_0x2d50ae(0x1b1)]+')'));})),_0x150436;}function Ze(_0x23d2c8,_0x19680e){const _0x17b053=_0x2bf1b1;var _0x4d91de;const {defIds:_0x325e07}=_0x19680e;return!_0x325e07||_0x325e07['length']===0x0?_0x23d2c8:_0x23d2c8[_0x17b053(0x15d)]===_0x17b053(0x19c)&&((_0x4d91de=_0x23d2c8[_0x17b053(0x145)])!=null&&_0x4d91de['length'])?{..._0x23d2c8,'children':_0x23d2c8[_0x17b053(0x145)][_0x17b053(0x21b)](_0x52b7f9=>typeof _0x52b7f9['attrs']['id']==_0x17b053(0x181)&&_0x325e07&&_0x325e07[_0x17b053(0x25f)](_0x52b7f9[_0x17b053(0x20d)]['id'])?{..._0x52b7f9,'attrs':{..._0x52b7f9[_0x17b053(0x20d)],'id':_0x52b7f9['attrs']['id']+_0x19680e[_0x17b053(0x1b1)]}}:_0x52b7f9)}:_0x23d2c8;}function We(){const _0x2ffadc=_0x2bf1b1;return Math[_0x2ffadc(0x1c1)]()['toString'](0x24)['substring'](0x2,0x8);}b[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x210);const qe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2bf1b1(0x1b0),'width':'1em','height':_0x2bf1b1(0x205)},'children':[{'tag':'path','attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x21e),'fillRule':_0x2bf1b1(0x147),'clipRule':_0x2bf1b1(0x147)}}]},le=_0x54a9ab(function(_0x10ee44,_0x10cb6c){const _0x22e877=_0x2bf1b1;return _0x2449eb(b,Object[_0x22e877(0x1d2)]({},_0x10ee44,{'id':_0x22e877(0x199),'ref':_0x10cb6c,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':_0x2bf1b1(0x1b0),'width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x1f2),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x54a9ab(function(_0x288c9a,_0x5c7e18){const _0x380f7f=_0x2bf1b1;return _0x2449eb(b,Object[_0x380f7f(0x1d2)]({},_0x288c9a,{'id':_0x380f7f(0x19d),'ref':_0x5c7e18,'icon':Xe}));});ue['displayName']=_0x2bf1b1(0x1cb);const Je={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x14b)}},{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x247),'fillRule':'evenodd','clipRule':_0x2bf1b1(0x147)}}]},ve=_0x54a9ab(function(_0x205ba3,_0xd23834){const _0x38cc5d=_0x2bf1b1;return _0x2449eb(b,Object[_0x38cc5d(0x1d2)]({},_0x205ba3,{'id':_0x38cc5d(0x1fd),'ref':_0xd23834,'icon':Je}));});ve[_0x2bf1b1(0x24d)]='HelpIcon';const Qe={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':_0x2bf1b1(0x1b0),'width':_0x2bf1b1(0x205),'height':_0x2bf1b1(0x205)},'children':[{'tag':'g','attrs':{'clipPath':_0x2bf1b1(0x203)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'stroke':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x1c9),'strokeLinecap':_0x2bf1b1(0x1b7),'strokeLinejoin':_0x2bf1b1(0x1b7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2bf1b1(0x1f5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x265),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2bf1b1(0x1bf)]},de=_0x54a9ab(function(_0x767041,_0x512062){const _0x588f5f=_0x2bf1b1;return _0x2449eb(b,Object[_0x588f5f(0x1d2)]({},_0x767041,{'id':_0x588f5f(0x180),'ref':_0x512062,'icon':Qe}));});de[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x1db);const en={'tag':_0x2bf1b1(0x223),'attrs':{'xmlns':_0x2bf1b1(0x1b3),'fill':_0x2bf1b1(0x15a),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x2bf1b1(0x205)},'children':[{'tag':'g','attrs':{'clipPath':_0x2bf1b1(0x160)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'stroke':_0x2bf1b1(0x1f2),'d':_0x2bf1b1(0x1a7),'strokeLinecap':_0x2bf1b1(0x1b7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2bf1b1(0x19c),'attrs':{},'children':[{'tag':_0x2bf1b1(0x1f5),'attrs':{'id':_0x2bf1b1(0x202)},'children':[{'tag':_0x2bf1b1(0x189),'attrs':{'fill':_0x2bf1b1(0x265),'d':_0x2bf1b1(0x248),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2bf1b1(0x202)]},ge=_0x54a9ab(function(_0x638416,_0x1edc1c){const _0x242b38=_0x2bf1b1;return _0x2449eb(b,Object[_0x242b38(0x1d2)]({},_0x638416,{'id':'on-line-icon','ref':_0x1edc1c,'icon':en}));});ge[_0x2bf1b1(0x24d)]=_0x2bf1b1(0x17b);function nn(_0x5cd2c8){const _0x12e711=_0x2bf1b1;var _0x3c577c,_0x382a10;const {mcpCoreConfig:_0x1fb8c6,onSave:_0x16d590,loading:_0x2aed9d=!0x1,config:_0x34510c,connectionStatus$:_0x3a5974,connectionError$:_0x38545d,currentApiKey$:_0x49c10c,currentSessionId$:_0x1d5473}=_0x5cd2c8,_0x39fc5a=_0x49e503(_0xd0be8d),_0x376590=_0x1b7a0e(_0x3a5974,_0x565980[_0x12e711(0x237)]),_0x37f93b=_0x1b7a0e(_0x38545d,_0x1af6f2[_0x12e711(0x128)]),_0x22121e=_0x1b7a0e(_0x1d5473,''),_0x4fd8be=_0x1b7a0e(_0x49c10c,''),[_0x36634b,_0x4458b0]=_0x4f9296(_0x4fd8be||''),_0x1e6c7f=!0x0,_0xa08ef1=_0x34510c[_0x12e711(0x130)]&&_0x1fb8c6[_0x12e711(0x134)]&&(_0x1fb8c6[_0x12e711(0x134)][_0x12e711(0x25f)](_0x12e711(0x234))||_0x1fb8c6[_0x12e711(0x134)][_0x12e711(0x25f)](_0x12e711(0x1e5))),_0xcd8837=(_0x3c577c=_0x1fb8c6[_0x12e711(0x134)])==null?void 0x0:_0x3c577c[_0x12e711(0x25f)](_0x12e711(0x234)),_0x901702=(_0x382a10=_0x1fb8c6['mcpServerUrl'])==null?void 0x0:_0x382a10[_0x12e711(0x25f)]('univer.ai'),_0x380d98=_0xcd8837?_0x12e711(0x22d):_0x12e711(0x1ed),_0x16d5f4=_0x34510c[_0x12e711(0x130)]&&(_0xcd8837||_0x901702),[_0x5e0b6a,_0x6b5ab6]=_0x4f9296(!_0x36634b[_0x12e711(0x1a1)]()),_0x209665=(_0x366e00,_0x5e5622)=>{const _0x320bec=_0x12e711;if(_0x5e5622===_0x1af6f2[_0x320bec(0x207)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x366e00){case _0x565980['CONNECTED']:return _0x320bec(0x155);case _0x565980[_0x320bec(0x220)]:case _0x565980[_0x320bec(0x1fe)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x565980[_0x320bec(0x1fa)]:return _0x320bec(0x244);default:return _0x320bec(0x18f);}},_0x25127a=(_0x169cfd,_0x1caf39)=>{const _0x5109b5=_0x12e711;if(_0x1caf39===_0x1af6f2['UNAUTHORIZED'])return _0x5109b5(0x25b);switch(_0x169cfd){case _0x565980[_0x5109b5(0x200)]:return _0x5109b5(0x1ba);case _0x565980['CONNECTING']:case _0x565980['RETRYING']:return _0x5109b5(0x192);case _0x565980['FAILED']:return _0x5109b5(0x25b);default:return _0x5109b5(0x26c);}},_0x430e28=_0x318367=>{const _0x23ff6c=_0x12e711;switch(_0x318367){case _0x565980[_0x23ff6c(0x200)]:return _0x39fc5a['t'](_0x23ff6c(0x16b));case _0x565980[_0x23ff6c(0x220)]:return _0x39fc5a['t'](_0x23ff6c(0x229));case _0x565980['FAILED']:return _0x39fc5a['t'](_0x23ff6c(0x18a));case _0x565980[_0x23ff6c(0x1fe)]:return _0x39fc5a['t'](_0x23ff6c(0x168));default:return _0x39fc5a['t'](_0x23ff6c(0x263));}},_0x6f59ce=_0x5a23=>{const _0x33e950=_0x12e711;switch(_0x5a23){case _0x1af6f2['UNAUTHORIZED']:return _0x39fc5a['t']('mcpConfig.connectionError.unauthorized');case _0x1af6f2[_0x33e950(0x260)]:return _0x39fc5a['t']('mcpConfig.connectionError.sessionOccupied');case _0x1af6f2[_0x33e950(0x1fc)]:return _0x39fc5a['t'](_0x33e950(0x1c7));case _0x1af6f2[_0x33e950(0x1bd)]:return _0x39fc5a['t'](_0x33e950(0x170));default:return'';}},_0x25cfbb=_0x17df3a(()=>{const _0x26e520=_0x12e711,_0x21f4e8={..._0x1fb8c6,'apiKey':_0x36634b[_0x26e520(0x1a1)](),'enableAuth':_0x1e6c7f};_0x16d590(_0x21f4e8);},[_0x1fb8c6,_0x36634b,_0x1e6c7f,_0x16d590]),_0x511fdb=_0x36634b['trim']()[_0x12e711(0x264)]>0x0;return _0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x171),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1ec),'children':_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x20c),'children':[_0x20a502('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x256),'children':'⚙'})}),_0x20a502('div',{'children':_0x20a502('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x39fc5a['t'](_0x12e711(0x194))})})]})}),_0x10850c('div',{'className':_0x12e711(0x13d),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x1253e2(_0x12e711(0x245),_0x209665(_0x376590,_0x37f93b)),'children':_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x225),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x1253e2('univer-size-2\x20univer-rounded-full',_0x25127a(_0x376590,_0x37f93b))}),_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x255),'children':_0x430e28(_0x376590)})]})}),_0x37f93b!==_0x1af6f2['NONE']&&(_0x376590===_0x565980[_0x12e711(0x1fa)]||_0x37f93b===_0x1af6f2[_0x12e711(0x207)])&&_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1a8),'children':_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x20a502('p',{'className':_0x12e711(0x19e),'children':_0x6f59ce(_0x37f93b)})]})})]}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x163),'children':_0x10850c('div',{'className':_0x12e711(0x13b),'children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d7),'children':[_0x10850c(_0x12e711(0x221),{'className':_0x12e711(0x14c),'children':[_0x20a502('span',{'children':'🔑'}),'\x20',_0x39fc5a['t']('mcpConfig.apiKey'),_0x20a502('span',{'className':_0x12e711(0x158),'children':'*'}),_0xa08ef1&&_0x20a502('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x39fc5a['t'](_0x12e711(0x191)),'role':_0x12e711(0x213),'onClick':()=>_0x6b5ab6(!0x0),'children':_0x20a502(ve,{})})]}),_0x20a502(_0x2fba3f,{'type':_0x12e711(0x1f8),'placeholder':_0x39fc5a['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x36634b,'disabled':_0x2aed9d,'autoComplete':_0x12e711(0x1d3),'onChange':_0x4458b0}),_0x20a502('p',{'className':_0x12e711(0x206),'children':_0x39fc5a['t']('mcpConfig.apiKeyHint')})]}),_0xa08ef1&&_0x5e0b6a&&_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d6),'children':[_0x20a502('a',{'className':_0x12e711(0x126),'role':'button','onClick':()=>_0x6b5ab6(!0x1),'children':_0x20a502(ue,{'className':'univer-size-4'})}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x12f),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1f4),'children':_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x219),'children':'🚀'})}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1ee),'children':[_0x20a502('h4',{'className':_0x12e711(0x23c),'children':_0x39fc5a['t'](_0x12e711(0x191))}),_0x20a502('p',{'className':_0x12e711(0x16e),'children':_0x39fc5a['t']('mcpConfig.apiApplyInfo.description')}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x17d),'children':_0x16d5f4&&_0x10850c('a',{'className':_0x12e711(0x235),'href':_0x380d98,'target':'_blank','rel':_0x12e711(0x209),'children':[_0x20a502(_0x12e711(0x233),{'children':'🤖'}),_0x39fc5a['t'](_0x12e711(0x241)),_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x166),'children':'↗'})]})}),_0x10850c(_0x12e711(0x186),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x39fc5a['t'](_0x12e711(0x226))]})]})]})]}),_0x34510c[_0x12e711(0x130)]&&_0x10850c(_0x12e711(0x186),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x10850c('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x20a502(_0x12e711(0x233),{'children':'🔗'}),'\x20',_0x39fc5a['t'](_0x12e711(0x20b))]}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x239),'children':[_0x10850c('div',{'className':_0x12e711(0x22a),'children':[_0x20a502('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x39fc5a['t']('mcpConfig.configInstructions')}),_0x10850c(_0x12e711(0x186),{'className':'univer-space-y-2','children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x20a),'children':_0x39fc5a['t'](_0x12e711(0x197))}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1dc),'children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x225),'children':[_0x20a502(_0x12e711(0x233),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x39fc5a['t']('mcpConfig.configStep1')]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':_0x12e711(0x1c2),'children':'2'}),_0x39fc5a['t'](_0x12e711(0x179))]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x39fc5a['t'](_0x12e711(0x1ef))]})]})]})]}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d7),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x20a),'children':_0x12e711(0x1e7)}),_0x20a502(_0x12e711(0x186),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x20a502(_0x12e711(0x1be),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x12e711(0x26b)]({'mcpServers':{'univer':{'url':_0x12e711(0x212)+(_0x22121e||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x12e711(0x1a4)+(_0x36634b||_0x12e711(0x21f))}}}},null,0x2)})})]}),_0x10850c('div',{'className':_0x12e711(0x22a),'children':[_0x20a502('div',{'className':_0x12e711(0x20a),'children':_0x39fc5a['t'](_0x12e711(0x231))}),_0x10850c(_0x12e711(0x186),{'className':'univer-space-y-2','children':[_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x1d8),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1dd)}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x22f),'children':[_0x20a502(_0x12e711(0x186),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x12e711(0x175)}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x206),'children':_0x39fc5a['t']('mcpConfig.sessionIdDescription')})]})]}),_0x10850c(_0x12e711(0x186),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1dd)}),_0x10850c(_0x12e711(0x186),{'className':_0x12e711(0x22f),'children':[_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x1b2),'children':'Authorization:'}),_0x20a502('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x39fc5a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x20a502(_0x1077ba,{'onClick':_0x25cfbb,'disabled':!_0x511fdb||_0x2aed9d,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x2aed9d?_0x10850c('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a502(_0x12e711(0x233),{'children':'⟲'}),_0x39fc5a['t'](_0x12e711(0x1b8))]}):_0x10850c('span',{'className':_0x12e711(0x225),'children':[_0x20a502(le,{}),_0x39fc5a['t'](_0x12e711(0x1e6))]})}),_0x20a502(_0x12e711(0x186),{'className':_0x12e711(0x161),'children':_0x10850c('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x20a502(_0x12e711(0x233),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x10850c('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x20a502(_0x12e711(0x186),{'className':'univer-font-medium','children':_0x12e711(0x1a5)}),_0x10850c(_0x12e711(0x186),{'children':['•',_0x39fc5a['t'](_0x12e711(0x1e8))]}),_0x10850c(_0x12e711(0x186),{'children':['•',_0x39fc5a['t'](_0x12e711(0x25a))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x3bd905,_0x2a5109,_0x1cfc1d,_0x22babf)=>{const _0x1378b5=_0x2bf1b1;for(var _0x29af1c=_0x22babf>0x1?void 0x0:_0x22babf?rn(_0x2a5109,_0x1cfc1d):_0x2a5109,_0x3f685d=_0x3bd905[_0x1378b5(0x264)]-0x1,_0x357ff8;_0x3f685d>=0x0;_0x3f685d--)(_0x357ff8=_0x3bd905[_0x3f685d])&&(_0x29af1c=_0x357ff8(_0x29af1c)||_0x29af1c);return _0x29af1c;},d=(_0x160ba9,_0x5b03af)=>(_0x2104e6,_0x50a84b)=>_0x5b03af(_0x2104e6,_0x50a84b,_0x160ba9);const U=_0x2bf1b1(0x13e),L='mcp-config-dialog';let I=class extends _0x4e59e4{constructor(_0x32a8f3,_0x36c48a,_0x4e1270,_0x435fc1,_0x521b6b,_0x494c12,_0x29b777,_0x3e0661,_0x446ac0,_0x3e72bc){const _0x599691=_0x2bf1b1;super(),x(this,_0x599691(0x193),new _0x1a9c67(!0x1)),x(this,'_mcpCoreConfig$',new _0x1a9c67({})),x(this,_0x599691(0x131),new _0x1a9c67({})),x(this,'_apiKey$',new _0x1a9c67('')),x(this,_0x599691(0x204),async _0x327b64=>{const _0x796924=_0x599691;var _0x3bf74f,_0x3d1660;this[_0x796924(0x193)][_0x796924(0x1f6)](!0x0);try{const _0x348153=await this[_0x796924(0x13c)](_0x327b64);if(!_0x348153['isValid']){this['_messageService'][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x1eb)],'content':_0x348153[_0x796924(0x153)]||this['_localeService']['t'](_0x796924(0x1d9))});return;}_0x327b64['apiKey']?await this[_0x796924(0x218)][_0x796924(0x167)](U,_0x327b64[_0x796924(0x1ca)][_0x796924(0x1a1)]()):await this[_0x796924(0x218)][_0x796924(0x1e4)](U),this[_0x796924(0x238)][_0x796924(0x1f6)](((_0x3bf74f=_0x327b64['apiKey'])==null?void 0x0:_0x3bf74f[_0x796924(0x1a1)]())||''),this[_0x796924(0x143)][_0x796924(0x122)]({'Authorization':_0x796924(0x1a4)+((_0x3d1660=_0x327b64[_0x796924(0x1ca)])==null?void 0x0:_0x3d1660['trim']())}),this[_0x796924(0x259)][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x195)],'content':this[_0x796924(0x142)]['t'](_0x796924(0x1f0))}),setTimeout(()=>{const _0x3cb03b=_0x796924;this[_0x3cb03b(0x16f)]['close'](L);},0x320);}catch(_0x46a93b){this[_0x796924(0x23b)][_0x796924(0x19f)](_0x796924(0x124),_0x46a93b),this[_0x796924(0x259)][_0x796924(0x246)]({'type':_0xeb15c5[_0x796924(0x1eb)],'content':this[_0x796924(0x142)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x796924(0x1f6)](!0x1);}}),(this[_0x599691(0x164)]=_0x32a8f3,this[_0x599691(0x1f3)]=_0x36c48a,this['_configService']=_0x4e1270,this['_localStorageService']=_0x435fc1,this[_0x599691(0x16f)]=_0x521b6b,this[_0x599691(0x259)]=_0x494c12,this[_0x599691(0x201)]=_0x29b777,this['_localeService']=_0x3e0661,this[_0x599691(0x23b)]=_0x446ac0,this[_0x599691(0x143)]=_0x3e72bc,this[_0x599691(0x22b)](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0x2bf1b1(0x1e9)](){const _0x2f30e7=_0x2bf1b1,_0x40d291=this[_0x2f30e7(0x125)][_0x2f30e7(0x261)](y);_0x40d291!=null&&_0x40d291[_0x2f30e7(0x130)]&&this['_dialogService'][_0x2f30e7(0x1a0)]({'id':L,'title':{'title':this[_0x2f30e7(0x142)]['t'](_0x2f30e7(0x217))},'children':{'label':_0x2f30e7(0x1bb)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4ad2f6=_0x2f30e7;this[_0x4ad2f6(0x16f)]['close'](L);}});}[_0x2bf1b1(0x1f7)](){const _0x3bbe1a=_0x2bf1b1;return this[_0x3bbe1a(0x198)][_0x3bbe1a(0x1e1)];}[_0x2bf1b1(0x14e)](){const _0x47221a=_0x2bf1b1;this[_0x47221a(0x18d)](this['_componentManager'][_0x47221a(0x15e)](_0x47221a(0x1bb),this[_0x47221a(0x1cc)]()));}[_0x2bf1b1(0x1cc)](){return _0x26c801(()=>{const _0x185bec=_0x4cba;var _0x4f09ff,_0x546d02,_0x1740e1;return _0x20a502(nn,{'config':this[_0x185bec(0x131)]['value'],'mcpCoreConfig':this[_0x185bec(0x198)]['value'],'currentApiKey$':this[_0x185bec(0x238)],'onSave':this[_0x185bec(0x204)],'loading':this[_0x185bec(0x193)]['value'],'connectionStatus$':(_0x4f09ff=this[_0x185bec(0x143)])==null?void 0x0:_0x4f09ff[_0x185bec(0x1ac)],'connectionError$':(_0x546d02=this['_mcpConnectionController'])==null?void 0x0:_0x546d02['connectionError$'],'currentSessionId$':(_0x1740e1=this[_0x185bec(0x143)])==null?void 0x0:_0x1740e1['sessionId$']});},this['_injector']);}[_0x2bf1b1(0x22b)](){const _0x3c80da=_0x2bf1b1;this[_0x3c80da(0x18d)](this[_0x3c80da(0x125)][_0x3c80da(0x1a6)](_0x3c192a)[_0x3c80da(0x1c5)](_0x161f65=>{const _0x3a48f0=_0x3c80da;this[_0x3a48f0(0x198)][_0x3a48f0(0x1f6)](_0x161f65||{});}));const _0x4f746c=this['_configService'][_0x3c80da(0x261)](_0x3c192a);this['_mcpCoreConfig$'][_0x3c80da(0x1f6)](_0x4f746c||{}),this[_0x3c80da(0x18d)](this[_0x3c80da(0x125)]['subscribeConfigValue$'](y)[_0x3c80da(0x1c5)](_0x5c2d2a=>{const _0x3d88e3=_0x3c80da;this[_0x3d88e3(0x131)][_0x3d88e3(0x1f6)](_0x5c2d2a||{});}));const _0x421492=this[_0x3c80da(0x125)][_0x3c80da(0x261)](y);this[_0x3c80da(0x131)]['next'](_0x421492||{});}async[_0x2bf1b1(0x157)](){const _0x4e013b=_0x2bf1b1,_0x5264cc=this['_configService'][_0x4e013b(0x261)](y);if(!(_0x5264cc!=null&&_0x5264cc[_0x4e013b(0x130)]))return;const _0x33eff1=await this[_0x4e013b(0x218)][_0x4e013b(0x150)](U);_0x33eff1&&(this[_0x4e013b(0x143)][_0x4e013b(0x122)]({'Authorization':'Bearer\x20'+_0x33eff1}),this[_0x4e013b(0x238)]['next'](_0x33eff1));}async[_0x2bf1b1(0x13c)](_0x48cd99){const _0x549a8b=_0x2bf1b1;if(!_0x48cd99['apiKey']||_0x48cd99[_0x549a8b(0x1ca)][_0x549a8b(0x1a1)]()[_0x549a8b(0x264)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x549a8b(0x142)]['t'](_0x549a8b(0x222))};if(_0x48cd99['apiKey'][_0x549a8b(0x1a1)]()[_0x549a8b(0x264)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x549a8b(0x142)]['t'](_0x549a8b(0x1de))};try{const _0x140377=await this['_injector'][_0x549a8b(0x1c6)](_0x15de46)[_0x549a8b(0x22c)](_0x48cd99[_0x549a8b(0x1ca)][_0x549a8b(0x1a1)]());return _0x140377['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x140377[_0x549a8b(0x19f)]||this[_0x549a8b(0x142)]['t'](_0x549a8b(0x258))};}catch(_0x1fff66){return console[_0x549a8b(0x15f)](_0x549a8b(0x182),_0x1fff66),{'isValid':!0x0};}}};I=tn([d(0x0,_0x26dbdd(_0x4b393b)),d(0x1,_0x5e8716),d(0x2,_0xb51bf0),d(0x3,_0x4d166b),d(0x4,_0x591717),d(0x5,_0x536ebf),d(0x6,_0x26dbdd(_0x5f0b45)),d(0x7,_0x26dbdd(_0xd0be8d)),d(0x8,_0x39a88e),d(0x9,_0x26dbdd(_0x15de46))],I);const V={'id':_0x2bf1b1(0x138),'type':_0x4900d6[_0x2bf1b1(0x146)],'handler':async(_0x5e901,_0x39c130)=>(_0x5e901[_0x2bf1b1(0x1c6)](I)[_0x2bf1b1(0x1e9)](),!0x0)};function pe(_0x56a2ef,_0x21acc1){const _0x258a81=_0x2bf1b1;switch(_0x56a2ef){case _0x565980[_0x258a81(0x237)]:return'mcpStatus.disconnected';case _0x565980[_0x258a81(0x220)]:return _0x258a81(0x196);case _0x565980[_0x258a81(0x200)]:return _0x258a81(0x1fb);case _0x565980['FAILED']:switch(_0x21acc1){case _0x1af6f2['UNAUTHORIZED']:return _0x258a81(0x24e);case _0x1af6f2[_0x258a81(0x260)]:return'mcpStatus.sessionOccupied';case _0x1af6f2[_0x258a81(0x1fc)]:return _0x258a81(0x19a);case _0x1af6f2[_0x258a81(0x1bd)]:return'mcpStatus.maxRetriesExceeded';default:return _0x258a81(0x242);}case _0x565980[_0x258a81(0x1fe)]:return _0x258a81(0x240);default:return _0x258a81(0x1e3);}}function on(_0x5f2da4,_0x375b86,_0x403ee3,_0x489e06=!0x0){const _0x31c6b6=_0x2bf1b1,_0x4b3766=pe(_0x5f2da4,_0x375b86),_0x11f958=_0x403ee3['t'](_0x4b3766);return _0x489e06?_0x5f2da4===_0x565980[_0x31c6b6(0x237)]&&_0x375b86===_0x1af6f2[_0x31c6b6(0x207)]?_0x11f958+_0x31c6b6(0x173)+_0x403ee3['t'](_0x31c6b6(0x25c)):_0x5f2da4===_0x565980[_0x31c6b6(0x200)]?''+_0x11f958:_0x5f2da4===_0x565980[_0x31c6b6(0x237)]||_0x5f2da4===_0x565980[_0x31c6b6(0x1fa)]?_0x11f958+'\x20-\x20'+_0x403ee3['t'](_0x31c6b6(0x23f)):_0x11f958:_0x11f958;}function sn(_0x19b1a9){const _0x4d1435=_0x2bf1b1;switch(_0x19b1a9){case _0x565980['CONNECTED']:return'univer-text-green-500';case _0x565980[_0x4d1435(0x220)]:case _0x565980[_0x4d1435(0x1fe)]:return _0x4d1435(0x139);case _0x565980[_0x4d1435(0x1fa)]:case _0x565980['DISCONNECTED']:return _0x4d1435(0x158);default:return'univer-text-gray-500';}}function cn(_0xbb392d){const _0x3e3068=_0x2bf1b1,{status$:_0x2b6c2b,error$:_0x24d648,onConfigure:_0x43022d,showClickable:_0x3b49c2=!0x0}=_0xbb392d,_0x5ad02a=_0x1b7a0e(_0x2b6c2b,_0x565980[_0x3e3068(0x237)]),_0x2b3980=_0x1b7a0e(_0x24d648,_0x1af6f2[_0x3e3068(0x128)]),_0xd52f11=_0x49e503(_0xd0be8d),_0x1d0a40=_0x5ad02a===_0x565980[_0x3e3068(0x200)];_0x5ad02a===_0x565980['CONNECTING']||_0x565980[_0x3e3068(0x1fe)];const _0x35bfd1=_0xd52f11['t'](pe(_0x5ad02a,_0x2b3980)),_0x59cfd6=on(_0x5ad02a,_0x2b3980,_0xd52f11,_0x3b49c2),_0x1abe0b=sn(_0x5ad02a),_0x5cf9ca=_0x1d0a40?_0x20a502(ge,{}):_0x20a502(de,{}),_0x22208b=_0x17df3a(()=>{_0x3b49c2&&_0x43022d&&_0x43022d();},[_0x3b49c2,_0x43022d]);function _0x2ff710(){const _0xe51334=_0x3e3068;return _0x10850c(_0xe51334(0x186),{'className':_0x1253e2(_0xe51334(0x188),_0x3b49c2&&_0x43022d&&_0xe51334(0x257)),'role':_0xe51334(0x213),'onClick':_0x3b49c2&&_0x43022d?_0x22208b:void 0x0,'children':[_0x20a502(_0xe51334(0x186),{'className':_0x1253e2('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x1abe0b),'children':_0x5cf9ca}),_0x20a502(_0xe51334(0x186),{'className':_0xe51334(0x215),'children':_0x35bfd1})]});}return _0x20a502(_0x5afcee,{'title':_0x59cfd6,'placement':_0x3e3068(0x269),'children':_0x2ff710()});}var an=Object[_0x2bf1b1(0x214)],ln=(_0x486f1f,_0x392419,_0x38ee50,_0x29d030)=>{const _0x11005b=_0x2bf1b1;for(var _0x1d1860=_0x29d030>0x1?void 0x0:_0x29d030?an(_0x392419,_0x38ee50):_0x392419,_0x37bbe6=_0x486f1f[_0x11005b(0x264)]-0x1,_0x1baf6f;_0x37bbe6>=0x0;_0x37bbe6--)(_0x1baf6f=_0x486f1f[_0x37bbe6])&&(_0x1d1860=_0x1baf6f(_0x1d1860)||_0x1d1860);return _0x1d1860;},M=(_0xaea0a1,_0x22c0cf)=>(_0x146e86,_0x402bdc)=>_0x22c0cf(_0x146e86,_0x402bdc,_0xaea0a1);let O=class extends _0x4e59e4{constructor(_0x1c9f46,_0x3a3602,_0x29de82,_0x61db93){const _0x4c3fae=_0x2bf1b1;super(),this[_0x4c3fae(0x164)]=_0x1c9f46,this[_0x4c3fae(0x22e)]=_0x3a3602,this['_uiPartsService']=_0x29de82,this[_0x4c3fae(0x125)]=_0x61db93,this[_0x4c3fae(0x187)](),this['_initStatusComponent']();}[_0x2bf1b1(0x187)](){const _0x468b6e=_0x2bf1b1,_0x253c3d=this['_configService'][_0x468b6e(0x261)](y);_0x253c3d!=null&&_0x253c3d['showDeveloperTools']&&(this[_0x468b6e(0x22e)][_0x468b6e(0x121)]=!0x1);}['_initStatusComponent'](){const _0xf9b8aa=_0x2bf1b1,_0x4313be=this[_0xf9b8aa(0x125)][_0xf9b8aa(0x261)](y);(_0x4313be==null?void 0x0:_0x4313be['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0xf9b8aa(0x1d5)](_0x1166eb[_0xf9b8aa(0x183)],()=>{const _0x20b5c9=_0xf9b8aa;var _0x35cf47;return _0x26c801(un({'status$':this[_0x20b5c9(0x22e)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x20b5c9(0x23d)](),'showClickable':(_0x35cf47=_0x4313be==null?void 0x0:_0x4313be[_0x20b5c9(0x130)])!=null?_0x35cf47:!0x1}),this[_0x20b5c9(0x164)]);}));}[_0x2bf1b1(0x23d)](){const _0x37ad54=_0x2bf1b1;this[_0x37ad54(0x164)][_0x37ad54(0x1c6)](I)[_0x37ad54(0x1e9)]();}};O=ln([M(0x0,_0x26dbdd(_0x4b393b)),M(0x1,_0x26dbdd(_0x15de46)),M(0x2,_0x5e8716),M(0x3,_0xb51bf0)],O);function _0x4cba(_0x21cfa1,_0x4a9e1c){const _0x1c259a=_0x1c25();return _0x4cba=function(_0x4cba41,_0x33ac7b){_0x4cba41=_0x4cba41-0x121;let _0x2f76d3=_0x1c259a[_0x4cba41];return _0x2f76d3;},_0x4cba(_0x21cfa1,_0x4a9e1c);}function un(_0x25e79e){const {status$:_0x524417,error$:_0x16ed7c,onConfigure:_0x1a7749,showClickable:_0x86ea9a}=_0x25e79e;return function(){return _0x20a502(cn,{'status$':_0x524417,'error$':_0x16ed7c,'onConfigure':_0x1a7749,'showClickable':_0x86ea9a});};}function vn(_0x5933d6){const _0x2191cd=_0x2bf1b1;return{'id':V['id'],'type':_0x3b50c1['BUTTON'],'icon':_0x2191cd(0x24c),'title':'mcpConfig.title','tooltip':_0x2191cd(0x217)};}const dn={[_0x1bee11[_0x2bf1b1(0x24b)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x448c3c,_0x204640,_0x3e31ae,_0x37c8b3)=>{for(var _0x1407a2=_0x37c8b3>0x1?void 0x0:_0x37c8b3?gn(_0x204640,_0x3e31ae):_0x204640,_0x576b82=_0x448c3c['length']-0x1,_0x224c89;_0x576b82>=0x0;_0x576b82--)(_0x224c89=_0x448c3c[_0x576b82])&&(_0x1407a2=_0x224c89(_0x1407a2)||_0x1407a2);return _0x1407a2;},re=(_0x2f1fb5,_0x4003ce)=>(_0x5bfb8a,_0x192fe2)=>_0x4003ce(_0x5bfb8a,_0x192fe2,_0x2f1fb5);let D=class extends _0x4e59e4{constructor(_0x571f87,_0xb51d82){const _0x59be3a=_0x2bf1b1;super(),this[_0x59be3a(0x253)]=_0x571f87,this[_0x59be3a(0x1ad)]=_0xb51d82,this[_0x59be3a(0x190)](),this[_0x59be3a(0x1aa)]();}[_0x2bf1b1(0x190)](){const _0x5461db=_0x2bf1b1;[V][_0x5461db(0x20f)](_0xf01787=>{const _0x3375bf=_0x5461db;this['disposeWithMe'](this['_commandService'][_0x3375bf(0x18e)](_0xf01787));});}[_0x2bf1b1(0x1aa)](){const _0x1fbb92=_0x2bf1b1;this[_0x1fbb92(0x1ad)][_0x1fbb92(0x1a9)](dn);}};D=pn([re(0x0,_0x3e86ed),re(0x1,_0x51d18a)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2bf1b1(0x254),'connected':_0x2bf1b1(0x16d),'failed':_0x2bf1b1(0x20e),'retrying':_0x2bf1b1(0x140),'unknown':_0x2bf1b1(0x17f),'unauthorized':_0x2bf1b1(0x19b),'sessionOccupied':_0x2bf1b1(0x165),'networkError':_0x2bf1b1(0x14d),'maxRetriesExceeded':_0x2bf1b1(0x14a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2bf1b1(0x236)},'mcpConfig':{'title':_0x2bf1b1(0x1e7),'description':_0x2bf1b1(0x16c),'apiKey':_0x2bf1b1(0x12c),'apiKeyPlaceholder':_0x2bf1b1(0x211),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2bf1b1(0x127),'enableAuthHint':_0x2bf1b1(0x185),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2bf1b1(0x1b9),'configInstructions':_0x2bf1b1(0x262),'configStepTitle':_0x2bf1b1(0x1b4),'configStep1':_0x2bf1b1(0x1e2),'configStep2':_0x2bf1b1(0x151),'configStep3':_0x2bf1b1(0x24a),'sessionId':_0x2bf1b1(0x21c),'sessionIdDescription':_0x2bf1b1(0x23e),'authorizationDescription':_0x2bf1b1(0x18b),'configParameters':_0x2bf1b1(0x12b),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2bf1b1(0x224),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2bf1b1(0x228),'configSaved':_0x2bf1b1(0x268),'configError':_0x2bf1b1(0x1c0),'apiApplyInfo':{'title':_0x2bf1b1(0x154),'description':_0x2bf1b1(0x1ce),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2bf1b1(0x26a)},'validation':{'apiKeyRequired':_0x2bf1b1(0x15c),'apiKeyTooShort':_0x2bf1b1(0x1d1),'invalidConfig':_0x2bf1b1(0x21a),'invalidApiKey':_0x2bf1b1(0x178)},'connectionStatus':{'disconnected':_0x2bf1b1(0x1ae),'connecting':_0x2bf1b1(0x1f9),'connected':_0x2bf1b1(0x144),'failed':_0x2bf1b1(0x25d),'retrying':_0x2bf1b1(0x148)},'connectionError':{'unauthorized':_0x2bf1b1(0x250),'sessionOccupied':_0x2bf1b1(0x1ff),'networkError':_0x2bf1b1(0x149),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x2bf1b1(0x13f),'connected':_0x2bf1b1(0x1ea),'failed':_0x2bf1b1(0x25e),'retrying':_0x2bf1b1(0x1e0),'unknown':_0x2bf1b1(0x1df),'unauthorized':_0x2bf1b1(0x17c),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x2bf1b1(0x232),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2bf1b1(0x12e)},'mcpConfig':{'title':_0x2bf1b1(0x208),'description':_0x2bf1b1(0x1af),'apiKey':_0x2bf1b1(0x1a2),'apiKeyPlaceholder':_0x2bf1b1(0x24f),'apiKeyHint':_0x2bf1b1(0x1c8),'enableAuth':'启用身份验证','enableAuthHint':_0x2bf1b1(0x14f),'connectionInfo':_0x2bf1b1(0x169),'mcpClientConfig':_0x2bf1b1(0x169),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2bf1b1(0x252),'configStep3':_0x2bf1b1(0x16a),'sessionId':_0x2bf1b1(0x1cd),'sessionIdDescription':_0x2bf1b1(0x1da),'authorizationDescription':_0x2bf1b1(0x129),'configParameters':_0x2bf1b1(0x1bc),'maxRetries':_0x2bf1b1(0x18c),'save':_0x2bf1b1(0x184),'saving':_0x2bf1b1(0x243),'note1':_0x2bf1b1(0x141),'note2':_0x2bf1b1(0x266),'configSaved':_0x2bf1b1(0x136),'configError':_0x2bf1b1(0x177),'apiApplyInfo':{'title':_0x2bf1b1(0x23a),'description':_0x2bf1b1(0x1b5),'univerAiLabel':_0x2bf1b1(0x123),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2bf1b1(0x1d0),'apiKeyTooShort':_0x2bf1b1(0x172),'invalidConfig':_0x2bf1b1(0x13a),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x2bf1b1(0x12a),'connecting':_0x2bf1b1(0x1b6),'connected':'已连接','failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x2bf1b1(0x267),'networkError':_0x2bf1b1(0x1c4),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x2bf1b1(0x152)],hn=Object[_0x2bf1b1(0x214)],Cn=(_0x56eeba,_0x4e2f5b,_0x3c080a)=>_0x4e2f5b in _0x56eeba?fn(_0x56eeba,_0x4e2f5b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c080a}):_0x56eeba[_0x4e2f5b]=_0x3c080a,mn=(_0x39d1ba,_0xc6c08b,_0x11d0aa,_0x2e4c62)=>{for(var _0x102582=_0x2e4c62>0x1?void 0x0:_0x2e4c62?hn(_0xc6c08b,_0x11d0aa):_0xc6c08b,_0x4d16d4=_0x39d1ba['length']-0x1,_0x33e509;_0x4d16d4>=0x0;_0x4d16d4--)(_0x33e509=_0x39d1ba[_0x4d16d4])&&(_0x102582=_0x33e509(_0x102582)||_0x102582);return _0x102582;},P=(_0x386295,_0x270f74)=>(_0x378e77,_0x27ba56)=>_0x270f74(_0x378e77,_0x27ba56,_0x386295),_n=(_0x1b4305,_0x3f0724,_0x918b44)=>Cn(_0x1b4305,_0x3f0724+'',_0x918b44);let j=class extends _0x3d9051{constructor(_0x3fe424=ie,_0x14e0b8,_0x544704,_0x366753,_0xdc8424,_0x391448){const _0x87477b=_0x2bf1b1;super(),this[_0x87477b(0x1cf)]=_0x3fe424,this[_0x87477b(0x164)]=_0x14e0b8,this[_0x87477b(0x125)]=_0x544704,this[_0x87477b(0x1f3)]=_0x366753,this[_0x87477b(0x218)]=_0xdc8424,this['_localeService']=_0x391448;const {..._0x5b7fc4}=_0x2d2539({},ie,this[_0x87477b(0x1cf)]);this[_0x87477b(0x125)]['setConfig'](y,_0x5b7fc4);}async[_0x2bf1b1(0x230)](){const _0x4f9850=_0x2bf1b1,_0x50cab8=[[O],[I],[D]];this[_0x4f9850(0x164)]['has'](_0x17de95)||_0x50cab8[_0x4f9850(0x12d)]([_0x17de95,{'useClass':_0x2bec1d}]),_0x50cab8[_0x4f9850(0x20f)](_0x2cbd8e=>this[_0x4f9850(0x164)][_0x4f9850(0x249)](_0x2cbd8e)),this[_0x4f9850(0x164)][_0x4f9850(0x1c6)](O),this[_0x4f9850(0x164)][_0x4f9850(0x1c6)](I),this['_injector'][_0x4f9850(0x1c6)](D);}};_n(j,_0x2bf1b1(0x156),'MCP_UI_PLUGIN'),j=mn([_0x48ca9a(_0x510c1c),P(0x1,_0x26dbdd(_0x4b393b)),P(0x2,_0xb51bf0),P(0x3,_0x5e8716),P(0x4,_0x4d166b),P(0x5,_0x26dbdd(_0xd0be8d))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- function _0x1641(_0x2415c2,_0x118e87){const _0x627354=_0x6273();return _0x1641=function(_0x1641ec,_0x1c387e){_0x1641ec=_0x1641ec-0x145;let _0x414de4=_0x627354[_0x1641ec];return _0x414de4;},_0x1641(_0x2415c2,_0x118e87);}const _0x4d37d7=_0x1641;(function(_0x446a1a,_0x445032){const _0x76b0f2=_0x1641,_0x14aca5=_0x446a1a();while(!![]){try{const _0xa46c8c=parseInt(_0x76b0f2(0x15b))/0x1+-parseInt(_0x76b0f2(0x151))/0x2+parseInt(_0x76b0f2(0x175))/0x3*(-parseInt(_0x76b0f2(0x14f))/0x4)+-parseInt(_0x76b0f2(0x167))/0x5*(parseInt(_0x76b0f2(0x16d))/0x6)+parseInt(_0x76b0f2(0x155))/0x7+parseInt(_0x76b0f2(0x163))/0x8*(-parseInt(_0x76b0f2(0x16c))/0x9)+parseInt(_0x76b0f2(0x14e))/0xa;if(_0xa46c8c===_0x445032)break;else _0x14aca5['push'](_0x14aca5['shift']());}catch(_0x3807d1){_0x14aca5['push'](_0x14aca5['shift']());}}}(_0x6273,0xb7685));function _0x6273(){const _0x57661e=['Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','311606zdJmvE','Max\x20Retries','MCP\x20Configuration','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','16OVDfmw','What\x20is\x20API\x20Key?','Connecting...','Enter\x20your\x20API\x20key','5GRrYHQ','Enable\x20Authentication','Configuration\x20Parameters:','MCP\x20Connecting...','Configuration\x20saved\x20successfully','632538edKnzm','2330070wfUGbv','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','9djMXmA','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Invalid\x20configuration','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','10458000qSqlUP','647188weSCde','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2086502TVfbWl','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','10159674sGrOLb','MCP\x20Connected'];_0x6273=function(){return _0x57661e;};return _0x6273();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4d37d7(0x16a),'connected':_0x4d37d7(0x156),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4d37d7(0x153),'unknown':_0x4d37d7(0x14b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4d37d7(0x15f),'networkError':_0x4d37d7(0x158),'maxRetriesExceeded':_0x4d37d7(0x14c),'clickToConnect':_0x4d37d7(0x179),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4d37d7(0x15d),'description':_0x4d37d7(0x178),'apiKey':_0x4d37d7(0x177),'apiKeyPlaceholder':_0x4d37d7(0x166),'apiKeyHint':_0x4d37d7(0x176),'enableAuth':_0x4d37d7(0x168),'enableAuthHint':_0x4d37d7(0x157),'connectionInfo':_0x4d37d7(0x149),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4d37d7(0x161),'configStepTitle':_0x4d37d7(0x15e),'configStep1':_0x4d37d7(0x173),'configStep2':_0x4d37d7(0x145),'configStep3':_0x4d37d7(0x147),'sessionId':_0x4d37d7(0x159),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4d37d7(0x15a),'configParameters':_0x4d37d7(0x169),'maxRetries':_0x4d37d7(0x15c),'save':'Save\x20Configuration','saving':_0x4d37d7(0x16e),'note1':_0x4d37d7(0x154),'note2':_0x4d37d7(0x152),'configSaved':_0x4d37d7(0x16b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4d37d7(0x164),'description':_0x4d37d7(0x148),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4d37d7(0x172)},'validation':{'apiKeyRequired':_0x4d37d7(0x160),'apiKeyTooShort':_0x4d37d7(0x14d),'invalidConfig':_0x4d37d7(0x14a),'invalidApiKey':_0x4d37d7(0x16f)},'connectionStatus':{'disconnected':_0x4d37d7(0x162),'connecting':_0x4d37d7(0x165),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4d37d7(0x146)},'connectionError':{'unauthorized':_0x4d37d7(0x170),'sessionOccupied':_0x4d37d7(0x174),'networkError':_0x4d37d7(0x150),'maxRetriesExceeded':_0x4d37d7(0x171)}}},n=e;export{n as default};
1
+ const _0x346677=_0x251e;(function(_0x5bf380,_0x30eb50){const _0x24944b=_0x251e,_0x454090=_0x5bf380();while(!![]){try{const _0x26cfd7=-parseInt(_0x24944b(0x72))/0x1*(-parseInt(_0x24944b(0x90))/0x2)+-parseInt(_0x24944b(0x9e))/0x3*(parseInt(_0x24944b(0x85))/0x4)+parseInt(_0x24944b(0x7e))/0x5+parseInt(_0x24944b(0x86))/0x6*(parseInt(_0x24944b(0x7a))/0x7)+-parseInt(_0x24944b(0x9a))/0x8*(-parseInt(_0x24944b(0x9b))/0x9)+parseInt(_0x24944b(0x89))/0xa+-parseInt(_0x24944b(0x6f))/0xb*(parseInt(_0x24944b(0x8b))/0xc);if(_0x26cfd7===_0x30eb50)break;else _0x454090['push'](_0x454090['shift']());}catch(_0x4875b4){_0x454090['push'](_0x454090['shift']());}}}(_0x1dfb,0x379eb));const e={'mcpStatus':{'disconnected':_0x346677(0x88),'connecting':_0x346677(0x78),'connected':_0x346677(0x70),'failed':_0x346677(0x80),'retrying':_0x346677(0x9d),'unknown':_0x346677(0xa1),'unauthorized':_0x346677(0x8f),'sessionOccupied':_0x346677(0xa3),'networkError':_0x346677(0x93),'maxRetriesExceeded':_0x346677(0x76),'clickToConnect':_0x346677(0x8d),'clickToConfigure':_0x346677(0x8a)},'mcpConfig':{'title':_0x346677(0x98),'description':_0x346677(0x97),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x346677(0xa2),'apiKeyHint':_0x346677(0x99),'enableAuth':_0x346677(0x7b),'enableAuthHint':_0x346677(0xa5),'connectionInfo':_0x346677(0x7c),'mcpClientConfig':_0x346677(0x7c),'configInstructions':_0x346677(0x83),'configStepTitle':_0x346677(0x73),'configStep1':_0x346677(0x79),'configStep2':_0x346677(0x7d),'configStep3':_0x346677(0x95),'sessionId':_0x346677(0x96),'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':_0x346677(0x8c),'note1':_0x346677(0x94),'note2':_0x346677(0x8e),'configSaved':_0x346677(0xa0),'configError':_0x346677(0x9c),'apiApplyInfo':{'title':_0x346677(0x9f),'description':_0x346677(0x74),'univerAiLabel':_0x346677(0x6d),'getStarted':_0x346677(0x87)},'validation':{'apiKeyRequired':_0x346677(0x7f),'apiKeyTooShort':_0x346677(0x92),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x346677(0x82)},'connectionStatus':{'disconnected':_0x346677(0x71),'connecting':_0x346677(0x84),'connected':_0x346677(0x77),'failed':_0x346677(0x75),'retrying':_0x346677(0x6e)},'connectionError':{'unauthorized':_0x346677(0x91),'sessionOccupied':_0x346677(0x81),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x346677(0xa4)}}},n=e;function _0x251e(_0xbf1821,_0x335a58){const _0x1dfbaf=_0x1dfb();return _0x251e=function(_0x251e3b,_0x10323d){_0x251e3b=_0x251e3b-0x6d;let _0x4075a6=_0x1dfbaf[_0x251e3b];return _0x4075a6;},_0x251e(_0xbf1821,_0x335a58);}function _0x1dfb(){const _0x2918f6=['Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Retrying...','9949786LhkaAX','MCP\x20Connected','Disconnected','91426tYeuoq','Configuration\x20Steps:','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','MCP:\x20Max\x20Retries\x20Exceeded','Connected','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','63EfFEnB','Enable\x20Authentication','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1620085AHsxPd','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','133108afNJRq','174054cOuYCK','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','2583910XBaIiq','Click\x20to\x20configure\x20MCP','12OqswVH','Saving...','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','8wiUHct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8UsecGk','3201777VsmHfG','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','39CzzJnL','What\x20is\x20API\x20Key?','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x1dfb=function(){return _0x2918f6;};return _0x1dfb();}export{n as default};
@@ -1 +1 @@
1
- const _0x49348c=_0x89fa;function _0x5e0f(){const _0xd4a87e=['Invalid\x20configuration','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Max\x20Retries','Save\x20Configuration','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','126hyIgPZ','312vzQlMu','MCP:\x20Session\x20ID\x20Occupied','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','30KoNvOH','22uZTbCv','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','13582348KUgAhN','65526jlRFqe','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.','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','Configuration\x20Steps:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','64022UstePG','MCP\x20Connection\x20Failed','257410dQdaJj','11362vmejuT','Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','605373pZLVQn','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','14uVahNG','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','1287636pYFxzB','MCP\x20Unknown\x20Status','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','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4kyOaOi'];_0x5e0f=function(){return _0xd4a87e;};return _0x5e0f();}(function(_0x45406e,_0x2a022c){const _0x343294=_0x89fa,_0x388deb=_0x45406e();while(!![]){try{const _0x1eb3a5=-parseInt(_0x343294(0x9d))/0x1*(parseInt(_0x343294(0x74))/0x2)+parseInt(_0x343294(0x71))/0x3*(-parseInt(_0x343294(0x7d))/0x4)+parseInt(_0x343294(0x8d))/0x5*(-parseInt(_0x343294(0x91))/0x6)+-parseInt(_0x343294(0x9a))/0x7*(parseInt(_0x343294(0x89))/0x8)+parseInt(_0x343294(0x88))/0x9*(-parseInt(_0x343294(0x9c))/0xa)+parseInt(_0x343294(0x8e))/0xb*(parseInt(_0x343294(0x78))/0xc)+parseInt(_0x343294(0x90))/0xd;if(_0x1eb3a5===_0x2a022c)break;else _0x388deb['push'](_0x388deb['shift']());}catch(_0x49de69){_0x388deb['push'](_0x388deb['shift']());}}}(_0x5e0f,0x2fb9b));const e={'mcpStatus':{'disconnected':_0x49348c(0x92),'connecting':'MCP\x20Connecting...','connected':_0x49348c(0x77),'failed':_0x49348c(0x9b),'retrying':_0x49348c(0x99),'unknown':_0x49348c(0x79),'unauthorized':_0x49348c(0x75),'sessionOccupied':_0x49348c(0x8a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x49348c(0x72),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x49348c(0x6f)},'mcpConfig':{'title':_0x49348c(0x7f),'description':_0x49348c(0x80),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x49348c(0x70),'apiKeyHint':_0x49348c(0x7b),'enableAuth':_0x49348c(0x94),'enableAuthHint':_0x49348c(0x87),'connectionInfo':_0x49348c(0x83),'mcpClientConfig':_0x49348c(0x83),'configInstructions':_0x49348c(0x73),'configStepTitle':_0x49348c(0x97),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x49348c(0x98),'sessionId':'Session\x20ID','sessionIdDescription':_0x49348c(0x7a),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x49348c(0x96),'maxRetries':_0x49348c(0x84),'save':_0x49348c(0x85),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x49348c(0x76),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x49348c(0x95),'apiApplyInfo':{'title':_0x49348c(0x82),'description':_0x49348c(0x93),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x49348c(0x7e),'invalidApiKey':_0x49348c(0x7c)},'connectionStatus':{'disconnected':_0x49348c(0x8b),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x49348c(0x86)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x49348c(0x81),'networkError':_0x49348c(0x8c),'maxRetriesExceeded':_0x49348c(0x8f)}}};function _0x89fa(_0x40d125,_0x4e11d7){const _0x5e0f6b=_0x5e0f();return _0x89fa=function(_0x89fad4,_0x55c0e2){_0x89fad4=_0x89fad4-0x6f;let _0x20f7c4=_0x5e0f6b[_0x89fad4];return _0x20f7c4;},_0x89fa(_0x40d125,_0x4e11d7);}export{e as default};
1
+ function _0x4a48(_0x1ea6e0,_0x2979c2){const _0x1cd8f8=_0x1cd8();return _0x4a48=function(_0x4a4846,_0x4a95c8){_0x4a4846=_0x4a4846-0x1c2;let _0x551f19=_0x1cd8f8[_0x4a4846];return _0x551f19;},_0x4a48(_0x1ea6e0,_0x2979c2);}const _0x248146=_0x4a48;(function(_0x50aa34,_0x1e919c){const _0x2ba868=_0x4a48,_0x500507=_0x50aa34();while(!![]){try{const _0x4a606b=parseInt(_0x2ba868(0x1d3))/0x1*(parseInt(_0x2ba868(0x1e9))/0x2)+parseInt(_0x2ba868(0x1f2))/0x3*(parseInt(_0x2ba868(0x1e8))/0x4)+-parseInt(_0x2ba868(0x1f6))/0x5+parseInt(_0x2ba868(0x1db))/0x6+-parseInt(_0x2ba868(0x1d4))/0x7*(parseInt(_0x2ba868(0x1e4))/0x8)+parseInt(_0x2ba868(0x1c5))/0x9+-parseInt(_0x2ba868(0x1ef))/0xa*(parseInt(_0x2ba868(0x1ca))/0xb);if(_0x4a606b===_0x1e919c)break;else _0x500507['push'](_0x500507['shift']());}catch(_0x4ff686){_0x500507['push'](_0x500507['shift']());}}}(_0x1cd8,0x69536));function _0x1cd8(){const _0x422d63=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','1334184nlZjFz','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8UsaqCR','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','24GsiBhU','566QrepIX','Enter\x20your\x20API\x20key','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','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.','7653560NxAbts','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','410871sksGaJ','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','1495045IBUcku','Configuration\x20Parameters:','Connection\x20Failed','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','5522706cLTswN','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Retrying...','MCP\x20Connection\x20Failed','11viCSxm','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','214iLvpyD','1557661wqxbZV','Configuration\x20Steps:','Save\x20Configuration','Invalid\x20configuration','API\x20key\x20is\x20required'];_0x1cd8=function(){return _0x422d63;};return _0x1cd8();}const e={'mcpStatus':{'disconnected':_0x248146(0x1ed),'connecting':'MCP\x20Connecting...','connected':_0x248146(0x1cd),'failed':_0x248146(0x1c9),'retrying':_0x248146(0x1df),'unknown':_0x248146(0x1de),'unauthorized':_0x248146(0x1c6),'sessionOccupied':_0x248146(0x1f4),'networkError':_0x248146(0x1f3),'maxRetriesExceeded':_0x248146(0x1e0),'clickToConnect':_0x248146(0x1f5),'clickToConfigure':_0x248146(0x1cb)},'mcpConfig':{'title':_0x248146(0x1eb),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x248146(0x1cf),'apiKeyPlaceholder':_0x248146(0x1ea),'apiKeyHint':_0x248146(0x1d0),'enableAuth':_0x248146(0x1cc),'enableAuthHint':_0x248146(0x1ec),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x248146(0x1e3),'configStepTitle':_0x248146(0x1d5),'configStep1':_0x248146(0x1c4),'configStep2':_0x248146(0x1ce),'configStep3':_0x248146(0x1dd),'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':_0x248146(0x1d1),'configParameters':_0x248146(0x1f7),'maxRetries':'Max\x20Retries','save':_0x248146(0x1d6),'saving':_0x248146(0x1e7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x248146(0x1d2),'configSaved':_0x248146(0x1c7),'configError':_0x248146(0x1e1),'apiApplyInfo':{'title':_0x248146(0x1e2),'description':_0x248146(0x1ee),'univerAiLabel':_0x248146(0x1f1),'getStarted':_0x248146(0x1da)},'validation':{'apiKeyRequired':_0x248146(0x1d8),'apiKeyTooShort':_0x248146(0x1e5),'invalidConfig':_0x248146(0x1d7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x248146(0x1dc),'connecting':_0x248146(0x1c3),'connected':'Connected','failed':_0x248146(0x1c2),'retrying':_0x248146(0x1c8)},'connectionError':{'unauthorized':_0x248146(0x1d9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x248146(0x1f0),'maxRetriesExceeded':_0x248146(0x1e6)}}};export{e as default};
@@ -1 +1 @@
1
- const _0x2b233d=_0x504a;(function(_0x9b0c3f,_0x224ff1){const _0x30a459=_0x504a,_0x3d5b4b=_0x9b0c3f();while(!![]){try{const _0x129d0a=-parseInt(_0x30a459(0x82))/0x1+parseInt(_0x30a459(0x94))/0x2+-parseInt(_0x30a459(0x84))/0x3+-parseInt(_0x30a459(0x97))/0x4+parseInt(_0x30a459(0x77))/0x5+-parseInt(_0x30a459(0x89))/0x6*(parseInt(_0x30a459(0x85))/0x7)+parseInt(_0x30a459(0x75))/0x8*(parseInt(_0x30a459(0x98))/0x9);if(_0x129d0a===_0x224ff1)break;else _0x3d5b4b['push'](_0x3d5b4b['shift']());}catch(_0x301cb0){_0x3d5b4b['push'](_0x3d5b4b['shift']());}}}(_0x3012,0xb4a9d));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2b233d(0x73),'connected':'MCP\x20Connected','failed':_0x2b233d(0x96),'retrying':_0x2b233d(0x87),'unknown':_0x2b233d(0x9a),'unauthorized':_0x2b233d(0x88),'sessionOccupied':_0x2b233d(0x7f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2b233d(0x8a),'clickToConnect':_0x2b233d(0x76),'clickToConfigure':_0x2b233d(0x9c)},'mcpConfig':{'title':_0x2b233d(0x72),'description':_0x2b233d(0x95),'apiKey':_0x2b233d(0x7c),'apiKeyPlaceholder':_0x2b233d(0x9d),'apiKeyHint':_0x2b233d(0x90),'enableAuth':_0x2b233d(0x91),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2b233d(0x8e),'configInstructions':_0x2b233d(0x80),'configStepTitle':_0x2b233d(0x71),'configStep1':_0x2b233d(0x8d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2b233d(0x86),'sessionId':'Session\x20ID','sessionIdDescription':_0x2b233d(0x74),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2b233d(0x70),'save':'Save\x20Configuration','saving':_0x2b233d(0x92),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x2b233d(0x83),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2b233d(0x8f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2b233d(0x7e)},'validation':{'apiKeyRequired':_0x2b233d(0x81),'apiKeyTooShort':_0x2b233d(0x99),'invalidConfig':_0x2b233d(0x7a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2b233d(0x8b),'connecting':_0x2b233d(0x93),'connected':_0x2b233d(0x7b),'failed':_0x2b233d(0x8c),'retrying':_0x2b233d(0x78)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2b233d(0x7d),'networkError':_0x2b233d(0x9b),'maxRetriesExceeded':_0x2b233d(0x79)}}},n=e;export{n as default};function _0x504a(_0x47981a,_0x4aac6e){const _0x301243=_0x3012();return _0x504a=function(_0x504ace,_0x18e33){_0x504ace=_0x504ace-0x70;let _0x23272f=_0x301243[_0x504ace];return _0x23272f;},_0x504a(_0x47981a,_0x4aac6e);}function _0x3012(){const _0x237ba7=['Click\x20to\x20configure\x20MCP','Enter\x20your\x20API\x20key','Max\x20Retries','Configuration\x20Steps:','MCP\x20Configuration','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','64vGOuaf','Click\x20to\x20connect\x20MCP','1210870BJcbgR','Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','Connected','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','560050ocFfJF','Failed\x20to\x20save\x20configuration','1208529JpbwDE','49wuCTuT','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','MCP:\x20Unauthorized','31998viPuuG','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\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.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','Saving...','Connecting...','1704376HjfSJt','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','582292bxxNUd','890361KwtKpB','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x3012=function(){return _0x237ba7;};return _0x3012();}
1
+ const _0x20da86=_0x578c;function _0x1532(){const _0x5793c6=['API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','15881211wDCkFI','2318050rLMIrk','MCP:\x20Network\x20Error','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','Configuration\x20saved\x20successfully','Connection\x20Failed','5603880nuJsLg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','689590kbwHEY','MCP\x20Disconnected','130mcuKPc','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','904108nwyHCW','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Unknown\x20Status','Max\x20Retries','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','8mYDAJu','Connecting...','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','6693464lmrYaV','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','Retrying...','Enable\x20Authentication','Configuration\x20Parameters:','API\x20Key','5VYtGjL','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3609254fvNuTG','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3OXYnUB','MCP\x20Connecting...'];_0x1532=function(){return _0x5793c6;};return _0x1532();}(function(_0x4b6046,_0x34d8d6){const _0x5128f7=_0x578c,_0x33d115=_0x4b6046();while(!![]){try{const _0x378501=parseInt(_0x5128f7(0x154))/0x1+parseInt(_0x5128f7(0x15b))/0x2*(parseInt(_0x5128f7(0x145))/0x3)+parseInt(_0x5128f7(0x16d))/0x4*(parseInt(_0x5128f7(0x174))/0x5)+parseInt(_0x5128f7(0x152))/0x6+-parseInt(_0x5128f7(0x14a))/0x7+-parseInt(_0x5128f7(0x168))/0x8*(-parseInt(_0x5128f7(0x149))/0x9)+parseInt(_0x5128f7(0x156))/0xa*(-parseInt(_0x5128f7(0x176))/0xb);if(_0x378501===_0x34d8d6)break;else _0x33d115['push'](_0x33d115['shift']());}catch(_0x4874c3){_0x33d115['push'](_0x33d115['shift']());}}}(_0x1532,0xdfdc9));const e={'mcpStatus':{'disconnected':_0x20da86(0x155),'connecting':_0x20da86(0x146),'connected':'MCP\x20Connected','failed':_0x20da86(0x16a),'retrying':'MCP\x20Retrying...','unknown':_0x20da86(0x160),'unauthorized':_0x20da86(0x14c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x20da86(0x14b),'maxRetriesExceeded':_0x20da86(0x163),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x20da86(0x142),'description':_0x20da86(0x165),'apiKey':_0x20da86(0x173),'apiKeyPlaceholder':_0x20da86(0x16c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x20da86(0x171),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x20da86(0x167),'configInstructions':_0x20da86(0x14d),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x20da86(0x148),'configStep2':_0x20da86(0x175),'configStep3':_0x20da86(0x144),'sessionId':_0x20da86(0x157),'sessionIdDescription':_0x20da86(0x153),'authorizationDescription':_0x20da86(0x143),'configParameters':_0x20da86(0x172),'maxRetries':_0x20da86(0x161),'save':_0x20da86(0x162),'saving':_0x20da86(0x15e),'note1':_0x20da86(0x14e),'note2':_0x20da86(0x15c),'configSaved':_0x20da86(0x150),'configError':_0x20da86(0x16f),'apiApplyInfo':{'title':_0x20da86(0x166),'description':_0x20da86(0x16e),'univerAiLabel':_0x20da86(0x16b),'getStarted':_0x20da86(0x158)},'validation':{'apiKeyRequired':_0x20da86(0x147),'apiKeyTooShort':_0x20da86(0x15f),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x20da86(0x141)},'connectionStatus':{'disconnected':_0x20da86(0x15d),'connecting':_0x20da86(0x169),'connected':_0x20da86(0x14f),'failed':_0x20da86(0x151),'retrying':_0x20da86(0x170)},'connectionError':{'unauthorized':_0x20da86(0x15a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x20da86(0x164),'maxRetriesExceeded':_0x20da86(0x159)}}},n=e;function _0x578c(_0x1bc9b2,_0x19a9d5){const _0x15323c=_0x1532();return _0x578c=function(_0x578c5c,_0x964ac7){_0x578c5c=_0x578c5c-0x141;let _0x227325=_0x15323c[_0x578c5c];return _0x227325;},_0x578c(_0x1bc9b2,_0x19a9d5);}export{n as default};
@@ -1 +1 @@
1
- const _0xf3240f=_0x4976;function _0x4976(_0x26e165,_0x3c53f4){const _0x2a64ee=_0x2a64();return _0x4976=function(_0x497602,_0x187fb7){_0x497602=_0x497602-0xf5;let _0x135653=_0x2a64ee[_0x497602];return _0x135653;},_0x4976(_0x26e165,_0x3c53f4);}(function(_0x2a4511,_0x5b4bf9){const _0x573809=_0x4976,_0x3bd430=_0x2a4511();while(!![]){try{const _0x3a3a41=parseInt(_0x573809(0x117))/0x1*(-parseInt(_0x573809(0x118))/0x2)+parseInt(_0x573809(0x11d))/0x3+-parseInt(_0x573809(0x120))/0x4+-parseInt(_0x573809(0x101))/0x5+-parseInt(_0x573809(0x104))/0x6+-parseInt(_0x573809(0x10a))/0x7*(parseInt(_0x573809(0x11f))/0x8)+parseInt(_0x573809(0xfe))/0x9;if(_0x3a3a41===_0x5b4bf9)break;else _0x3bd430['push'](_0x3bd430['shift']());}catch(_0x40a48c){_0x3bd430['push'](_0x3bd430['shift']());}}}(_0x2a64,0xbb6e5));const e={'mcpStatus':{'disconnected':_0xf3240f(0x107),'connecting':_0xf3240f(0xff),'connected':_0xf3240f(0x112),'failed':_0xf3240f(0x123),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xf3240f(0x11b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xf3240f(0x10c),'maxRetriesExceeded':_0xf3240f(0x10b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xf3240f(0x100)},'mcpConfig':{'title':_0xf3240f(0x11a),'description':_0xf3240f(0x111),'apiKey':_0xf3240f(0x122),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xf3240f(0x105),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xf3240f(0x114),'connectionInfo':_0xf3240f(0x124),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xf3240f(0xfa),'configStepTitle':_0xf3240f(0x115),'configStep1':_0xf3240f(0xf9),'configStep2':_0xf3240f(0x10d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xf3240f(0x106),'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':_0xf3240f(0x10e),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0xf3240f(0xf8),'note1':_0xf3240f(0x11e),'note2':_0xf3240f(0x103),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xf3240f(0x125),'apiApplyInfo':{'title':_0xf3240f(0x113),'description':_0xf3240f(0x11c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xf3240f(0xf7)},'validation':{'apiKeyRequired':_0xf3240f(0x109),'apiKeyTooShort':_0xf3240f(0x10f),'invalidConfig':_0xf3240f(0x119),'invalidApiKey':_0xf3240f(0xfd)},'connectionStatus':{'disconnected':_0xf3240f(0x102),'connecting':_0xf3240f(0xf5),'connected':_0xf3240f(0xfc),'failed':_0xf3240f(0x121),'retrying':_0xf3240f(0x116)},'connectionError':{'unauthorized':_0xf3240f(0x108),'sessionOccupied':_0xf3240f(0xf6),'networkError':_0xf3240f(0x110),'maxRetriesExceeded':_0xf3240f(0xfb)}}},n=e;function _0x2a64(){const _0x292845=['Connection\x20Failed','API\x20Key','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','39299823xONXEc','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','5726420DWwaJV','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','8238990QYyaxg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','3955805atmYew','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','Retrying...','247gzOiZe','6888idRcav','Invalid\x20configuration','MCP\x20Configuration','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2991330NUfQap','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','16mHtUVU','386772yailTF'];_0x2a64=function(){return _0x292845;};return _0x2a64();}export{n as default};
1
+ const _0x483fee=_0x15ab;function _0x15ab(_0x4dcb1d,_0x128162){const _0x720f0=_0x720f();return _0x15ab=function(_0x15abc3,_0x3e73bc){_0x15abc3=_0x15abc3-0x148;let _0x33c19e=_0x720f0[_0x15abc3];return _0x33c19e;},_0x15ab(_0x4dcb1d,_0x128162);}(function(_0xb2d4be,_0xc2ff6){const _0x1c07e5=_0x15ab,_0x5a78d4=_0xb2d4be();while(!![]){try{const _0x5a5f4f=-parseInt(_0x1c07e5(0x163))/0x1*(parseInt(_0x1c07e5(0x14c))/0x2)+parseInt(_0x1c07e5(0x152))/0x3+-parseInt(_0x1c07e5(0x16e))/0x4+parseInt(_0x1c07e5(0x15c))/0x5+parseInt(_0x1c07e5(0x150))/0x6*(-parseInt(_0x1c07e5(0x170))/0x7)+parseInt(_0x1c07e5(0x14b))/0x8*(-parseInt(_0x1c07e5(0x166))/0x9)+parseInt(_0x1c07e5(0x16d))/0xa;if(_0x5a5f4f===_0xc2ff6)break;else _0x5a78d4['push'](_0x5a78d4['shift']());}catch(_0x17c3bb){_0x5a78d4['push'](_0x5a78d4['shift']());}}}(_0x720f,0x1b60d));const e={'mcpStatus':{'disconnected':_0x483fee(0x153),'connecting':_0x483fee(0x157),'connected':_0x483fee(0x16c),'failed':'MCP\x20Connection\x20Failed','retrying':_0x483fee(0x176),'unknown':_0x483fee(0x14e),'unauthorized':_0x483fee(0x162),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x483fee(0x175),'maxRetriesExceeded':_0x483fee(0x149),'clickToConnect':_0x483fee(0x14a),'clickToConfigure':_0x483fee(0x165)},'mcpConfig':{'title':_0x483fee(0x151),'description':_0x483fee(0x15b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x483fee(0x14d),'apiKeyHint':_0x483fee(0x169),'enableAuth':_0x483fee(0x160),'enableAuthHint':_0x483fee(0x178),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x483fee(0x168),'configStepTitle':_0x483fee(0x156),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x483fee(0x177),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x483fee(0x158),'sessionIdDescription':_0x483fee(0x16f),'authorizationDescription':_0x483fee(0x159),'configParameters':_0x483fee(0x167),'maxRetries':'Max\x20Retries','save':_0x483fee(0x164),'saving':_0x483fee(0x179),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x483fee(0x171),'configError':_0x483fee(0x155),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x483fee(0x15f),'univerAiLabel':_0x483fee(0x173),'getStarted':_0x483fee(0x15e)},'validation':{'apiKeyRequired':_0x483fee(0x148),'apiKeyTooShort':_0x483fee(0x14f),'invalidConfig':_0x483fee(0x172),'invalidApiKey':_0x483fee(0x15d)},'connectionStatus':{'disconnected':_0x483fee(0x15a),'connecting':_0x483fee(0x174),'connected':_0x483fee(0x161),'failed':_0x483fee(0x16b),'retrying':_0x483fee(0x154)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x483fee(0x16a)}}},n=e;function _0x720f(){const _0x3c3fec=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','32RFWyqo','10QJELeh','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1116846KQGcVM','MCP\x20Configuration','219711ZjvamZ','MCP\x20Disconnected','Retrying...','Failed\x20to\x20save\x20configuration','Configuration\x20Steps:','MCP\x20Connecting...','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','405335gdogxa','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20Authentication','Connected','MCP:\x20Unauthorized','38273yFxmrK','Save\x20Configuration','Click\x20to\x20configure\x20MCP','492939HcTBZy','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Connected','6664510CViZis','448096sOYAwh','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','7ngWDPX','Configuration\x20saved\x20successfully','Invalid\x20configuration','Univer\x20AI\x20Console','Connecting...','MCP:\x20Network\x20Error','MCP\x20Retrying...'];_0x720f=function(){return _0x3c3fec;};return _0x720f();}export{n as default};
@@ -1 +1 @@
1
- const _0x5288cb=_0x15f9;(function(_0x4ecc9c,_0x208292){const _0x2e8b45=_0x15f9,_0x173c6c=_0x4ecc9c();while(!![]){try{const _0x16fb46=-parseInt(_0x2e8b45(0x139))/0x1*(parseInt(_0x2e8b45(0x148))/0x2)+parseInt(_0x2e8b45(0x125))/0x3*(parseInt(_0x2e8b45(0x136))/0x4)+-parseInt(_0x2e8b45(0x121))/0x5+-parseInt(_0x2e8b45(0x13b))/0x6+-parseInt(_0x2e8b45(0x144))/0x7*(-parseInt(_0x2e8b45(0x12c))/0x8)+parseInt(_0x2e8b45(0x12b))/0x9*(-parseInt(_0x2e8b45(0x13a))/0xa)+parseInt(_0x2e8b45(0x13c))/0xb;if(_0x16fb46===_0x208292)break;else _0x173c6c['push'](_0x173c6c['shift']());}catch(_0x3f4e72){_0x173c6c['push'](_0x173c6c['shift']());}}}(_0x36c0,0x5221f));const e={'mcpStatus':{'disconnected':_0x5288cb(0x131),'connecting':_0x5288cb(0x11f),'connected':_0x5288cb(0x128),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5288cb(0x13f),'unknown':_0x5288cb(0x14d),'unauthorized':_0x5288cb(0x150),'sessionOccupied':_0x5288cb(0x145),'networkError':_0x5288cb(0x14b),'maxRetriesExceeded':_0x5288cb(0x12d),'clickToConnect':_0x5288cb(0x141),'clickToConfigure':_0x5288cb(0x151)},'mcpConfig':{'title':_0x5288cb(0x12a),'description':_0x5288cb(0x137),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5288cb(0x126),'enableAuth':_0x5288cb(0x142),'enableAuthHint':_0x5288cb(0x153),'connectionInfo':_0x5288cb(0x14e),'mcpClientConfig':_0x5288cb(0x14e),'configInstructions':_0x5288cb(0x154),'configStepTitle':_0x5288cb(0x147),'configStep1':_0x5288cb(0x12e),'configStep2':_0x5288cb(0x12f),'configStep3':_0x5288cb(0x130),'sessionId':_0x5288cb(0x13d),'sessionIdDescription':_0x5288cb(0x146),'authorizationDescription':_0x5288cb(0x132),'configParameters':_0x5288cb(0x122),'maxRetries':_0x5288cb(0x134),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x5288cb(0x13e),'note2':_0x5288cb(0x123),'configSaved':_0x5288cb(0x14a),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5288cb(0x120),'description':_0x5288cb(0x149),'univerAiLabel':_0x5288cb(0x143),'getStarted':_0x5288cb(0x152)},'validation':{'apiKeyRequired':_0x5288cb(0x140),'apiKeyTooShort':_0x5288cb(0x124),'invalidConfig':_0x5288cb(0x135),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5288cb(0x133),'connecting':_0x5288cb(0x14c),'connected':_0x5288cb(0x129),'failed':'Connection\x20Failed','retrying':_0x5288cb(0x14f)},'connectionError':{'unauthorized':_0x5288cb(0x138),'sessionOccupied':_0x5288cb(0x127),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x15f9(_0x12fe5c,_0x2e7bac){const _0x36c01b=_0x36c0();return _0x15f9=function(_0x15f945,_0x240154){_0x15f945=_0x15f945-0x11f;let _0x457200=_0x36c01b[_0x15f945];return _0x457200;},_0x15f9(_0x12fe5c,_0x2e7bac);}function _0x36c0(){const _0xe292f=['Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','Connecting...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Retrying...','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','What\x20is\x20API\x20Key?','2073955rHTwDG','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','14199KCQrnw','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','Connected','MCP\x20Configuration','243dhxMSp','260016JuyUGY','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Max\x20Retries','Invalid\x20configuration','344SSiJvN','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','105538DTYRNU','244120BSvOZO','1873326zbkPQw','15274039GgATuF','Session\x20ID','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Retrying...','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','Univer\x20AI\x20Console','7VDadzU','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','2mtsabe','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x36c0=function(){return _0xe292f;};return _0x36c0();}export{n as default};
1
+ const _0x12a37a=_0x29fa;function _0xadaa(){const _0x5b27c4=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','Connected','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','Session\x20ID','33675037YfPXLD','API\x20key\x20is\x20required','Connecting...','Connection\x20Failed','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2iLYzpw','Failed\x20to\x20save\x20configuration','18LDIitu','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Max\x20Retries','7671920PVYmuv','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','144999KqEwiW','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3670203rvJiLu','Enable\x20authentication\x20for\x20secure\x20connections','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1598640oVYCxv','5911928GGCXKc','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','584WYrtLG','MCP:\x20Session\x20ID\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','10pkkZwC','MCP\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','MCP\x20Disconnected','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','Retrying...','187628xbjeUV','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully'];_0xadaa=function(){return _0x5b27c4;};return _0xadaa();}(function(_0x48ed87,_0x4eb998){const _0x10947a=_0x29fa,_0x2b96cc=_0x48ed87();while(!![]){try{const _0x3c4ca0=-parseInt(_0x10947a(0x186))/0x1+-parseInt(_0x10947a(0x174))/0x2*(-parseInt(_0x10947a(0x183))/0x3)+-parseInt(_0x10947a(0x187))/0x4+-parseInt(_0x10947a(0x17d))/0x5+-parseInt(_0x10947a(0x176))/0x6*(-parseInt(_0x10947a(0x199))/0x7)+-parseInt(_0x10947a(0x18c))/0x8*(-parseInt(_0x10947a(0x181))/0x9)+parseInt(_0x10947a(0x18f))/0xa*(parseInt(_0x10947a(0x1a2))/0xb);if(_0x3c4ca0===_0x4eb998)break;else _0x2b96cc['push'](_0x2b96cc['shift']());}catch(_0xbdcdc6){_0x2b96cc['push'](_0x2b96cc['shift']());}}}(_0xadaa,0xe31e5));function _0x29fa(_0x4f0eee,_0xf6e20){const _0xadaa90=_0xadaa();return _0x29fa=function(_0x29faa1,_0x178409){_0x29faa1=_0x29faa1-0x172;let _0x5ab04f=_0xadaa90[_0x29faa1];return _0x5ab04f;},_0x29fa(_0x4f0eee,_0xf6e20);}const e={'mcpStatus':{'disconnected':_0x12a37a(0x193),'connecting':_0x12a37a(0x178),'connected':_0x12a37a(0x18a),'failed':'MCP\x20Connection\x20Failed','retrying':_0x12a37a(0x19f),'unknown':_0x12a37a(0x189),'unauthorized':_0x12a37a(0x172),'sessionOccupied':_0x12a37a(0x18d),'networkError':_0x12a37a(0x197),'maxRetriesExceeded':_0x12a37a(0x17e),'clickToConnect':_0x12a37a(0x188),'clickToConfigure':_0x12a37a(0x1a0)},'mcpConfig':{'title':_0x12a37a(0x190),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x12a37a(0x184),'connectionInfo':_0x12a37a(0x180),'mcpClientConfig':_0x12a37a(0x180),'configInstructions':_0x12a37a(0x191),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x12a37a(0x18b),'configStep3':_0x12a37a(0x195),'sessionId':_0x12a37a(0x1a1),'sessionIdDescription':_0x12a37a(0x173),'authorizationDescription':_0x12a37a(0x196),'configParameters':_0x12a37a(0x17b),'maxRetries':_0x12a37a(0x17c),'save':'Save\x20Configuration','saving':_0x12a37a(0x192),'note1':_0x12a37a(0x19c),'note2':_0x12a37a(0x182),'configSaved':_0x12a37a(0x19b),'configError':_0x12a37a(0x175),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x12a37a(0x18e),'univerAiLabel':_0x12a37a(0x194),'getStarted':_0x12a37a(0x19d)},'validation':{'apiKeyRequired':_0x12a37a(0x1a3),'apiKeyTooShort':_0x12a37a(0x177),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x12a37a(0x19a)},'connectionStatus':{'disconnected':_0x12a37a(0x179),'connecting':_0x12a37a(0x1a4),'connected':_0x12a37a(0x19e),'failed':_0x12a37a(0x1a5),'retrying':_0x12a37a(0x198)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x12a37a(0x185),'networkError':_0x12a37a(0x17a),'maxRetriesExceeded':_0x12a37a(0x17f)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x411240=_0x3075;(function(_0x1f8dae,_0x4ebac7){const _0x56bebd=_0x3075,_0x4ed4ef=_0x1f8dae();while(!![]){try{const _0x150119=-parseInt(_0x56bebd(0x182))/0x1*(-parseInt(_0x56bebd(0x1a0))/0x2)+parseInt(_0x56bebd(0x1a2))/0x3*(-parseInt(_0x56bebd(0x199))/0x4)+parseInt(_0x56bebd(0x185))/0x5*(-parseInt(_0x56bebd(0x193))/0x6)+-parseInt(_0x56bebd(0x17a))/0x7+-parseInt(_0x56bebd(0x1a8))/0x8*(parseInt(_0x56bebd(0x1b0))/0x9)+parseInt(_0x56bebd(0x1a7))/0xa+-parseInt(_0x56bebd(0x1ae))/0xb*(-parseInt(_0x56bebd(0x17e))/0xc);if(_0x150119===_0x4ebac7)break;else _0x4ed4ef['push'](_0x4ed4ef['shift']());}catch(_0x3f9e48){_0x4ed4ef['push'](_0x4ed4ef['shift']());}}}(_0x3224,0x94da8));const e={'mcpStatus':{'disconnected':_0x411240(0x19b),'connecting':_0x411240(0x1a4),'connected':_0x411240(0x186),'failed':_0x411240(0x19f),'retrying':_0x411240(0x1a6),'unknown':_0x411240(0x17b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x411240(0x190),'networkError':_0x411240(0x17d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x411240(0x1ab),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x411240(0x189),'description':_0x411240(0x18d),'apiKey':_0x411240(0x19d),'apiKeyPlaceholder':_0x411240(0x18a),'apiKeyHint':_0x411240(0x1b1),'enableAuth':_0x411240(0x19e),'enableAuthHint':_0x411240(0x17f),'connectionInfo':_0x411240(0x180),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x411240(0x1a3),'configStep1':_0x411240(0x19c),'configStep2':_0x411240(0x1a9),'configStep3':_0x411240(0x18f),'sessionId':_0x411240(0x188),'sessionIdDescription':_0x411240(0x1a5),'authorizationDescription':_0x411240(0x195),'configParameters':_0x411240(0x192),'maxRetries':_0x411240(0x187),'save':_0x411240(0x18b),'saving':_0x411240(0x196),'note1':_0x411240(0x1aa),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x411240(0x183),'apiApplyInfo':{'title':_0x411240(0x1af),'description':_0x411240(0x198),'univerAiLabel':_0x411240(0x19a),'getStarted':_0x411240(0x184)},'validation':{'apiKeyRequired':_0x411240(0x1a1),'apiKeyTooShort':_0x411240(0x18e),'invalidConfig':_0x411240(0x1ac),'invalidApiKey':_0x411240(0x18c)},'connectionStatus':{'disconnected':_0x411240(0x191),'connecting':'Connecting...','connected':_0x411240(0x17c),'failed':_0x411240(0x181),'retrying':_0x411240(0x194)},'connectionError':{'unauthorized':_0x411240(0x197),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x411240(0x1ad),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x3224(){const _0x1bdffd=['API\x20key\x20with\x20Bearer\x20prefix.','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2720Pdeyuv','Univer\x20AI\x20Console','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','Enable\x20Authentication','MCP\x20Connection\x20Failed','4vGEoUR','API\x20key\x20is\x20required','3957qHLgct','Configuration\x20Steps:','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','3243790blVPBk','3570584NuMMxj','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','25971qfvPJv','What\x20is\x20API\x20Key?','9UkTeif','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2467507hzVKzM','MCP\x20Unknown\x20Status','Connected','MCP:\x20Network\x20Error','9012MbUioS','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Connection\x20Failed','243792mLWZSS','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','10MckYRM','MCP\x20Connected','Max\x20Retries','Session\x20ID','MCP\x20Configuration','Enter\x20your\x20API\x20key','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Disconnected','Configuration\x20Parameters:','838878oYSvzG','Retrying...'];_0x3224=function(){return _0x1bdffd;};return _0x3224();}function _0x3075(_0x56bd27,_0x3e0f07){const _0x3224ac=_0x3224();return _0x3075=function(_0x3075d2,_0x4b6440){_0x3075d2=_0x3075d2-0x17a;let _0x4ee946=_0x3224ac[_0x3075d2];return _0x4ee946;},_0x3075(_0x56bd27,_0x3e0f07);}export{n as default};
1
+ function _0x258f(_0x245eea,_0x590ee4){const _0x1777f3=_0x1777();return _0x258f=function(_0x258f42,_0xa2a567){_0x258f42=_0x258f42-0x191;let _0x21cfc6=_0x1777f3[_0x258f42];return _0x21cfc6;},_0x258f(_0x245eea,_0x590ee4);}function _0x1777(){const _0x5a79f7=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20is\x20required','118536WzebTU','27XUXBqk','Enable\x20authentication\x20for\x20secure\x20connections','What\x20is\x20API\x20Key?','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Steps:','414199DoHDwb','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','Connection\x20Failed','MCP\x20Retrying...','MCP\x20Connection\x20Failed','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4151200MlMbut','Connected','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','3839192DIaupG','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','12410973lLekgw','35ATgsjZ','Saving...','2323272RLZaVt','20376YiBiJM','MCP:\x20Session\x20ID\x20Occupied'];_0x1777=function(){return _0x5a79f7;};return _0x1777();}const _0x1ee5c2=_0x258f;(function(_0x852eaa,_0x377d79){const _0x19ba2d=_0x258f,_0x33e670=_0x852eaa();while(!![]){try{const _0x1ae8c7=-parseInt(_0x19ba2d(0x1a6))/0x1+parseInt(_0x19ba2d(0x197))/0x2*(parseInt(_0x19ba2d(0x1a0))/0x3)+-parseInt(_0x19ba2d(0x196))/0x4+-parseInt(_0x19ba2d(0x194))/0x5*(parseInt(_0x19ba2d(0x19f))/0x6)+parseInt(_0x19ba2d(0x191))/0x7+-parseInt(_0x19ba2d(0x1b2))/0x8+parseInt(_0x19ba2d(0x193))/0x9;if(_0x1ae8c7===_0x377d79)break;else _0x33e670['push'](_0x33e670['shift']());}catch(_0x5d6b9c){_0x33e670['push'](_0x33e670['shift']());}}}(_0x1777,0x59958));const e={'mcpStatus':{'disconnected':_0x1ee5c2(0x1b0),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x1ee5c2(0x1ad),'retrying':_0x1ee5c2(0x1ac),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1ee5c2(0x198),'networkError':_0x1ee5c2(0x19c),'maxRetriesExceeded':_0x1ee5c2(0x19d),'clickToConnect':_0x1ee5c2(0x1a9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1ee5c2(0x1aa),'description':_0x1ee5c2(0x1a8),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x1ee5c2(0x1ae),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1ee5c2(0x1a1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1ee5c2(0x1b6),'configInstructions':_0x1ee5c2(0x1b1),'configStepTitle':_0x1ee5c2(0x1a5),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1ee5c2(0x1b5),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x1ee5c2(0x199),'authorizationDescription':_0x1ee5c2(0x1a7),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x1ee5c2(0x195),'note1':_0x1ee5c2(0x192),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x1ee5c2(0x1b4),'apiApplyInfo':{'title':_0x1ee5c2(0x1a2),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1ee5c2(0x19e),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1ee5c2(0x19a),'invalidApiKey':_0x1ee5c2(0x1a4)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1ee5c2(0x1b3),'failed':_0x1ee5c2(0x1ab),'retrying':_0x1ee5c2(0x1a3)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1ee5c2(0x19b),'networkError':_0x1ee5c2(0x1af),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};