@univerjs-pro/mcp-ui 0.15.4 → 0.15.5
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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3d1f73=_0x1a3e;(function(_0x353957,_0x1279a3){const _0x36a1d9=_0x1a3e,_0x5030f8=_0x353957();while(!![]){try{const _0x5254ff=-parseInt(_0x36a1d9(0x27b))/0x1*(-parseInt(_0x36a1d9(0x235))/0x2)+-parseInt(_0x36a1d9(0x17b))/0x3*(-parseInt(_0x36a1d9(0x1fb))/0x4)+-parseInt(_0x36a1d9(0x230))/0x5+-parseInt(_0x36a1d9(0x1bd))/0x6+parseInt(_0x36a1d9(0x224))/0x7*(-parseInt(_0x36a1d9(0x24b))/0x8)+-parseInt(_0x36a1d9(0x1ac))/0x9*(-parseInt(_0x36a1d9(0x247))/0xa)+parseInt(_0x36a1d9(0x1ec))/0xb;if(_0x5254ff===_0x1279a3)break;else _0x5030f8['push'](_0x5030f8['shift']());}catch(_0x250d6c){_0x5030f8['push'](_0x5030f8['shift']());}}}(_0x4331,0x6c9ab));var Pe=Object['defineProperty'],Ee=(_0x7f2a3e,_0x546c66,_0x558ea7)=>_0x546c66 in _0x7f2a3e?Pe(_0x7f2a3e,_0x546c66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558ea7}):_0x7f2a3e[_0x546c66]=_0x558ea7,x=(_0x3f8e5a,_0x384ffd,_0x588a1c)=>Ee(_0x3f8e5a,typeof _0x384ffd!=_0x3d1f73(0x250)?_0x384ffd+'':_0x384ffd,_0x588a1c);import{LocaleService as _0x59138c,Inject as _0x239ee7,Injector as _0x53009c,Disposable as _0x2a5236,IConfigService as _0x47eded,ILocalStorageService as _0x8ee795,ILogService as _0x4b764d,CommandType as _0xf974da,ICommandService as _0x17a58e,DependentOn as _0x3951f0,Plugin as _0x5bf17b,merge as _0x2d62e4}from'@univerjs/core';import{jsxs as _0x4b442f,jsx as _0x20a6ac}from'react/jsx-runtime';import{MCPConnectionStatus as _0x291e3f,MCPConnectionError as _0x19f996,MCPConnectionController as _0x5bc65c,MCP_PLUGIN_CONFIG_KEY as _0x3d4e37,UniverMCPPlugin as _0x38e135}from'@univerjs-pro/mcp';import{clsx as _0x52a931,Input as _0x55acfd,Button as _0x553381,MessageType as _0x1f5a43,Tooltip as _0x47833d}from'@univerjs/design';import{useDependency as _0x1671ca,useObservable as _0x1d42f3,ComponentManager as _0x2f2c61,connectInjector as _0x2e489a,IUIPartsService as _0x436320,IDialogService as _0x41daf9,IMessageService as _0x5d1b2b,BuiltInUIPart as _0x5cc78a,MenuItemType as _0xc76b71,RibbonStartGroup as _0x47099c,IMenuManagerService as _0x10488c}from'@univerjs/ui';import{BehaviorSubject as _0x109788}from'rxjs';import{useRef as _0x4f5dd4,createElement as _0x17eed1,forwardRef as _0x8d23ab,useState as _0x2889e0,useCallback as _0x2be0fd}from'react';import{ISocketService as _0x33978c,WebSocketService as _0x15ecd1}from'@univerjs/network';function b({ref:_0xfc59b5,..._0x42cefd}){const _0x5137e4=_0x3d1f73,{icon:_0x5813bd,id:_0x1e084f,className:_0x48ab86,extend:_0x22d72c,..._0x48cc21}=_0x42cefd,_0x45c966=(_0x5137e4(0x201)+_0x1e084f+'\x20'+(_0x48ab86||''))[_0x5137e4(0x1e8)](),_0x18cc15=_0x4f5dd4('_'+We());return ae(_0x5813bd,''+_0x1e084f,{'defIds':_0x5813bd[_0x5137e4(0x1dc)],'idSuffix':_0x18cc15[_0x5137e4(0x282)]},{'ref':_0xfc59b5,'className':_0x45c966,..._0x48cc21},_0x22d72c);}function ae(_0x59dc7d,_0xd13404,_0x19183c,_0x5b883f,_0x25926b){const _0x1cf8f0=_0x3d1f73;return _0x17eed1(_0x59dc7d['tag'],{'key':_0xd13404,...Ye(_0x59dc7d,_0x19183c,_0x25926b),..._0x5b883f},(Ze(_0x59dc7d,_0x19183c)['children']||[])[_0x1cf8f0(0x25f)]((_0x110942,_0x3d23d9)=>ae(_0x110942,_0xd13404+'-'+_0x59dc7d[_0x1cf8f0(0x1d6)]+'-'+_0x3d23d9,_0x19183c,void 0x0,_0x25926b)));}function Ye(_0x41f14a,_0xe353f9,_0x3f7cbf){const _0xebfe55=_0x3d1f73,_0x5342fd={..._0x41f14a[_0xebfe55(0x1d5)]};_0x3f7cbf!=null&&_0x3f7cbf[_0xebfe55(0x21f)]&&_0x5342fd['fill']===_0xebfe55(0x21f)&&(_0x5342fd[_0xebfe55(0x1af)]=_0x3f7cbf['colorChannel1']),_0x41f14a[_0xebfe55(0x1d6)]==='mask'&&_0x5342fd['id']&&(_0x5342fd['id']=_0x5342fd['id']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0x4d82f1,_0x1a110a])=>{const _0x38d387=_0xebfe55;_0x4d82f1===_0x38d387(0x192)&&typeof _0x1a110a==_0x38d387(0x243)&&(_0x5342fd[_0x4d82f1]=_0x1a110a['replace'](/url\(#(.*)\)/,_0x38d387(0x295)+_0xe353f9[_0x38d387(0x1b4)]+')'));});const {defIds:_0x1a64ab}=_0xe353f9;return!_0x1a64ab||_0x1a64ab[_0xebfe55(0x2b5)]===0x0||(_0x41f14a[_0xebfe55(0x1d6)]==='use'&&_0x5342fd[_0xebfe55(0x195)]&&(_0x5342fd[_0xebfe55(0x195)]=_0x5342fd['xlink:href']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0xce46c8,_0x4769f2])=>{const _0x411de1=_0xebfe55;typeof _0x4769f2==_0x411de1(0x243)&&(_0x5342fd[_0xce46c8]=_0x4769f2[_0x411de1(0x1e1)](/url\(#(.*)\)/,'url(#$1'+_0xe353f9[_0x411de1(0x1b4)]+')'));})),_0x5342fd;}function Ze(_0xde389a,_0x41b40b){const _0x1c7d28=_0x3d1f73;var _0xd7b66c;const {defIds:_0x39631b}=_0x41b40b;return!_0x39631b||_0x39631b[_0x1c7d28(0x2b5)]===0x0?_0xde389a:_0xde389a[_0x1c7d28(0x1d6)]===_0x1c7d28(0x1bf)&&((_0xd7b66c=_0xde389a[_0x1c7d28(0x25b)])!=null&&_0xd7b66c[_0x1c7d28(0x2b5)])?{..._0xde389a,'children':_0xde389a[_0x1c7d28(0x25b)][_0x1c7d28(0x25f)](_0x3894be=>typeof _0x3894be['attrs']['id']==_0x1c7d28(0x243)&&_0x39631b&&_0x39631b[_0x1c7d28(0x1ff)](_0x3894be[_0x1c7d28(0x1d5)]['id'])?{..._0x3894be,'attrs':{..._0x3894be['attrs'],'id':_0x3894be[_0x1c7d28(0x1d5)]['id']+_0x41b40b[_0x1c7d28(0x1b4)]}}:_0x3894be)}:_0xde389a;}function We(){const _0x3f5ca7=_0x3d1f73;return Math[_0x3f5ca7(0x28d)]()[_0x3f5ca7(0x20e)](0x24)['substring'](0x2,0x8);}b[_0x3d1f73(0x173)]='UniverIcon';const qe={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':_0x3d1f73(0x175),'viewBox':'0\x200\x2016\x2016','width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x17a),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},le=_0x8d23ab(function(_0xb746eb,_0x4db213){const _0x472adb=_0x3d1f73;return _0x17eed1(b,Object[_0x472adb(0x29e)]({},_0xb746eb,{'id':_0x472adb(0x264),'ref':_0x4db213,'icon':qe}));});le[_0x3d1f73(0x173)]=_0x3d1f73(0x268);const Xe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x212)}}]},ue=_0x8d23ab(function(_0x2bafd5,_0x206ac1){const _0x18a97f=_0x3d1f73;return _0x17eed1(b,Object[_0x18a97f(0x29e)]({},_0x2bafd5,{'id':'close-icon','ref':_0x206ac1,'icon':Xe}));});ue[_0x3d1f73(0x173)]=_0x3d1f73(0x1cd);const Je={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x190)}},{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x28c),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},ve=_0x8d23ab(function(_0x9cd70,_0x37b108){return _0x17eed1(b,Object['assign']({},_0x9cd70,{'id':'help-icon','ref':_0x37b108,'icon':Je}));});ve[_0x3d1f73(0x173)]='HelpIcon';const Qe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x21e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'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':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':_0x3d1f73(0x1fe)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3d1f73(0x1fe)]},de=_0x8d23ab(function(_0x570725,_0x5121c7){const _0x182568=_0x3d1f73;return _0x17eed1(b,Object[_0x182568(0x29e)]({},_0x570725,{'id':_0x182568(0x2b4),'ref':_0x5121c7,'icon':Qe}));});de[_0x3d1f73(0x173)]=_0x3d1f73(0x29c);const en={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d1f73(0x175),'viewBox':_0x3d1f73(0x27e),'width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x16e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'d':_0x3d1f73(0x237),'strokeLinecap':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':_0x3d1f73(0x1bf),'attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x211),'d':_0x3d1f73(0x206),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3d1f73(0x286)]},ge=_0x8d23ab(function(_0x11c3c6,_0x54fbc4){const _0x36278b=_0x3d1f73;return _0x17eed1(b,Object[_0x36278b(0x29e)]({},_0x11c3c6,{'id':_0x36278b(0x2bf),'ref':_0x54fbc4,'icon':en}));});ge[_0x3d1f73(0x173)]=_0x3d1f73(0x219);function nn(_0x2f1851){const _0xf7ee9=_0x3d1f73;var _0x8d553,_0x168a5a;const {mcpCoreConfig:_0x1a35f3,onSave:_0xbfe02f,loading:_0x4214aa=!0x1,config:_0xb99a9c,connectionStatus$:_0x2900d7,connectionError$:_0x1c8369,currentApiKey$:_0x3450a5,currentSessionId$:_0x32b681}=_0x2f1851,_0x3cae8c=_0x1671ca(_0x59138c),_0x3a99de=_0x1d42f3(_0x2900d7,_0x291e3f[_0xf7ee9(0x2b8)]),_0x28836c=_0x1d42f3(_0x1c8369,_0x19f996['NONE']),_0x54c4bb=_0x1d42f3(_0x32b681,''),_0x2316a3=_0x1d42f3(_0x3450a5,''),[_0x426336,_0x3b49ea]=_0x2889e0(_0x2316a3||''),_0x2c075c=!0x0,_0x5221f9=_0xb99a9c['showDeveloperTools']&&_0x1a35f3[_0xf7ee9(0x258)]&&(_0x1a35f3[_0xf7ee9(0x258)]['includes'](_0xf7ee9(0x1cc))||_0x1a35f3['mcpServerUrl']['includes'](_0xf7ee9(0x1c9))),_0x5d43e9=(_0x8d553=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x8d553['includes'](_0xf7ee9(0x1cc)),_0x2f2ad6=(_0x168a5a=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x168a5a[_0xf7ee9(0x1ff)](_0xf7ee9(0x1c9)),_0x1a7004=_0x5d43e9?'https://console.univer.plus':_0xf7ee9(0x270),_0x1a40a9=_0xb99a9c['showDeveloperTools']&&(_0x5d43e9||_0x2f2ad6),[_0x2f2602,_0x331754]=_0x2889e0(!_0x426336[_0xf7ee9(0x1e8)]()),_0x143b83=(_0x562724,_0x62f2e4)=>{const _0x86f0ac=_0xf7ee9;if(_0x62f2e4===_0x19f996[_0x86f0ac(0x234)])return _0x86f0ac(0x240);switch(_0x562724){case _0x291e3f['CONNECTED']:return _0x86f0ac(0x25a);case _0x291e3f[_0x86f0ac(0x21b)]:case _0x291e3f[_0x86f0ac(0x261)]:return _0x86f0ac(0x1c8);case _0x291e3f[_0x86f0ac(0x18e)]:return _0x86f0ac(0x240);default:return _0x86f0ac(0x2c4);}},_0x482bcf=(_0x4fa2fd,_0x1e986d)=>{const _0x226868=_0xf7ee9;if(_0x1e986d===_0x19f996[_0x226868(0x234)])return _0x226868(0x210);switch(_0x4fa2fd){case _0x291e3f[_0x226868(0x280)]:return _0x226868(0x1d7);case _0x291e3f[_0x226868(0x21b)]:case _0x291e3f['RETRYING']:return _0x226868(0x225);case _0x291e3f[_0x226868(0x18e)]:return _0x226868(0x210);default:return _0x226868(0x1d9);}},_0xd9fa4e=_0x12bac8=>{const _0x2fb572=_0xf7ee9;switch(_0x12bac8){case _0x291e3f['CONNECTED']:return _0x3cae8c['t']('mcpConfig.connectionStatus.connected');case _0x291e3f[_0x2fb572(0x21b)]:return _0x3cae8c['t'](_0x2fb572(0x1ce));case _0x291e3f[_0x2fb572(0x18e)]:return _0x3cae8c['t']('mcpConfig.connectionStatus.failed');case _0x291e3f['RETRYING']:return _0x3cae8c['t']('mcpConfig.connectionStatus.retrying');default:return _0x3cae8c['t'](_0x2fb572(0x256));}},_0x42cb84=_0x426ca2=>{const _0x42fbee=_0xf7ee9;switch(_0x426ca2){case _0x19f996[_0x42fbee(0x234)]:return _0x3cae8c['t'](_0x42fbee(0x267));case _0x19f996[_0x42fbee(0x24e)]:return _0x3cae8c['t'](_0x42fbee(0x194));case _0x19f996[_0x42fbee(0x244)]:return _0x3cae8c['t'](_0x42fbee(0x2b1));case _0x19f996[_0x42fbee(0x2ab)]:return _0x3cae8c['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x1824c7=_0x2be0fd(()=>{const _0xcebef4=_0xf7ee9,_0x2a7073={..._0x1a35f3,'apiKey':_0x426336[_0xcebef4(0x1e8)](),'enableAuth':_0x2c075c};_0xbfe02f(_0x2a7073);},[_0x1a35f3,_0x426336,_0x2c075c,_0xbfe02f]),_0xe4a366=_0x426336['trim']()['length']>0x0;return _0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x254),'children':_0x4b442f('div',{'className':_0xf7ee9(0x220),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x16d),'children':_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1d2),'children':'⚙'})}),_0x20a6ac(_0xf7ee9(0x1c2),{'children':_0x20a6ac('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3cae8c['t'](_0xf7ee9(0x1e9))})})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x21d),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x1f7),_0x143b83(_0x3a99de,_0x28836c)),'children':_0x4b442f('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x171),_0x482bcf(_0x3a99de,_0x28836c))}),_0x20a6ac('span',{'className':_0xf7ee9(0x20f),'children':_0xd9fa4e(_0x3a99de)})]})}),_0x28836c!==_0x19f996['NONE']&&(_0x3a99de===_0x291e3f[_0xf7ee9(0x18e)]||_0x28836c===_0x19f996['UNAUTHORIZED'])&&_0x20a6ac('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x222),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x24c),'children':'⚠️'}),_0x20a6ac('p',{'className':_0xf7ee9(0x19c),'children':_0x42cb84(_0x28836c)})]})})]}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c7),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x260),'children':[_0x4b442f('div',{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x292),{'className':_0xf7ee9(0x253),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔑'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x1c4)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-red-500','children':'*'}),_0x5221f9&&_0x20a6ac('a',{'className':_0xf7ee9(0x203),'title':_0x3cae8c['t'](_0xf7ee9(0x1f4)),'role':_0xf7ee9(0x2b6),'onClick':()=>_0x331754(!0x0),'children':_0x20a6ac(ve,{})})]}),_0x20a6ac(_0x55acfd,{'type':_0xf7ee9(0x1a6),'placeholder':_0x3cae8c['t'](_0xf7ee9(0x2be)),'value':_0x426336,'disabled':_0x4214aa,'autoComplete':_0xf7ee9(0x2c1),'onChange':_0x3b49ea}),_0x20a6ac('p',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.apiKeyHint')})]}),_0x5221f9&&_0x2f2602&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1a8),'children':[_0x20a6ac('a',{'className':_0xf7ee9(0x2bc),'role':'button','onClick':()=>_0x331754(!0x1),'children':_0x20a6ac(ue,{'className':_0xf7ee9(0x298)})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1e6),'children':[_0x20a6ac('div',{'className':_0xf7ee9(0x191),'children':_0x20a6ac('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex-1','children':[_0x20a6ac('h4',{'className':_0xf7ee9(0x200),'children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.title')}),_0x20a6ac('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.description')}),_0x20a6ac('div',{'className':_0xf7ee9(0x2a1),'children':_0x1a40a9&&_0x4b442f('a',{'className':_0xf7ee9(0x2a6),'href':_0x1a7004,'target':_0xf7ee9(0x213),'rel':_0xf7ee9(0x26b),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🤖'}),_0x3cae8c['t'](_0xf7ee9(0x2a0)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x22a),'children':['✨','\x20',_0x3cae8c['t'](_0xf7ee9(0x1a1))]})]})]})]}),_0xb99a9c[_0xf7ee9(0x27d)]&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x25e),'children':[_0x4b442f('h4',{'className':_0xf7ee9(0x1b2),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔗'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x205))]}),_0x4b442f('div',{'className':'univer-space-y-4','children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2aa),'children':[_0x20a6ac('p',{'className':_0xf7ee9(0x2b2),'children':_0x3cae8c['t'](_0xf7ee9(0x2c3))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-2','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x281))}),_0x4b442f('div',{'className':_0xf7ee9(0x289),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x3cae8c['t'](_0xf7ee9(0x1f0))]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1de),'children':'2'}),_0x3cae8c['t'](_0xf7ee9(0x287))]}),_0x4b442f('div',{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'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'}),_0x3cae8c['t'](_0xf7ee9(0x23b))]})]})]})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':'MCP\x20Configuration'}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x20a6ac(_0xf7ee9(0x2bb),{'className':_0xf7ee9(0x269),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xf7ee9(0x23c)+(_0x54c4bb||_0xf7ee9(0x1a3)),'type':_0xf7ee9(0x242),'headers':{'Authorization':_0xf7ee9(0x1e7)+(_0x426336||_0xf7ee9(0x2a3))}}}},null,0x2)})})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-3','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x29f))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xf7ee9(0x193)}),_0x20a6ac('div',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4b442f('div',{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x178),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b0),'children':_0xf7ee9(0x285)}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t'](_0xf7ee9(0x27f))})]})]})]})]})]})]}),_0x20a6ac(_0x553381,{'onClick':_0x1824c7,'disabled':!_0xe4a366||_0x4214aa,'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':_0x4214aa?_0x4b442f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'⟲'}),_0x3cae8c['t'](_0xf7ee9(0x262))]}):_0x4b442f(_0xf7ee9(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(le,{}),_0x3cae8c['t'](_0xf7ee9(0x184))]})}),_0x20a6ac('div',{'className':_0xf7ee9(0x26a),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-gap-3','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4b442f('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x296),'children':'Configuration\x20Notes:'}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t'](_0xf7ee9(0x1b7))]}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x3d1f73(0x2b9),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3d1f73(0x1ee)],tn=(_0x5bc31d,_0x349ccc,_0x4e676b,_0x42ff6b)=>{const _0x3bf606=_0x3d1f73;for(var _0x2a7c32=_0x42ff6b>0x1?void 0x0:_0x42ff6b?rn(_0x349ccc,_0x4e676b):_0x349ccc,_0x5ed067=_0x5bc31d[_0x3bf606(0x2b5)]-0x1,_0x23143f;_0x5ed067>=0x0;_0x5ed067--)(_0x23143f=_0x5bc31d[_0x5ed067])&&(_0x2a7c32=_0x23143f(_0x2a7c32)||_0x2a7c32);return _0x2a7c32;},d=(_0x1d9e1b,_0x27bf53)=>(_0x2216df,_0x3d6f63)=>_0x27bf53(_0x2216df,_0x3d6f63,_0x1d9e1b);const U=_0x3d1f73(0x16f),L=_0x3d1f73(0x2b3);let I=class extends _0x2a5236{constructor(_0x1a1ebc,_0x408a2e,_0x1626a1,_0x3129ea,_0x3d742c,_0x4ee375,_0x23861d,_0x160740,_0x12b67b,_0x151bb5){const _0x2d87bc=_0x3d1f73;super(),x(this,_0x2d87bc(0x23f),new _0x109788(!0x1)),x(this,_0x2d87bc(0x1b5),new _0x109788({})),x(this,_0x2d87bc(0x2ad),new _0x109788({})),x(this,_0x2d87bc(0x2ac),new _0x109788('')),x(this,_0x2d87bc(0x1ba),async _0x21f6be=>{const _0x3a72e4=_0x2d87bc;var _0x52f734,_0x38be29;this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x0);try{const _0x37f087=await this[_0x3a72e4(0x28e)](_0x21f6be);if(!_0x37f087[_0x3a72e4(0x233)]){this['_messageService']['show']({'type':_0x1f5a43[_0x3a72e4(0x22f)],'content':_0x37f087[_0x3a72e4(0x1fa)]||this['_localeService']['t'](_0x3a72e4(0x239))});return;}_0x21f6be[_0x3a72e4(0x1ca)]?await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x183)](U,_0x21f6be[_0x3a72e4(0x1ca)][_0x3a72e4(0x1e8)]()):await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x1d8)](U),this[_0x3a72e4(0x2ac)]['next'](((_0x52f734=_0x21f6be['apiKey'])==null?void 0x0:_0x52f734[_0x3a72e4(0x1e8)]())||''),this['_mcpConnectionController'][_0x3a72e4(0x2c2)]({'Authorization':_0x3a72e4(0x1e7)+((_0x38be29=_0x21f6be[_0x3a72e4(0x1ca)])==null?void 0x0:_0x38be29['trim']())}),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43[_0x3a72e4(0x19e)],'content':this[_0x3a72e4(0x251)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x95ffbb=_0x3a72e4;this[_0x95ffbb(0x1d4)][_0x95ffbb(0x1c6)](L);},0x320);}catch(_0x39e925){this[_0x3a72e4(0x284)][_0x3a72e4(0x227)](_0x3a72e4(0x19a),_0x39e925),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43['Error'],'content':this[_0x3a72e4(0x251)]['t'](_0x3a72e4(0x21a))});}finally{this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x1);}}),(this[_0x2d87bc(0x1f8)]=_0x1a1ebc,this[_0x2d87bc(0x24a)]=_0x408a2e,this[_0x2d87bc(0x1e4)]=_0x1626a1,this[_0x2d87bc(0x2ba)]=_0x3129ea,this[_0x2d87bc(0x1d4)]=_0x3d742c,this['_messageService']=_0x4ee375,this['_componentManager']=_0x23861d,this[_0x2d87bc(0x251)]=_0x160740,this['_logService']=_0x12b67b,this[_0x2d87bc(0x299)]=_0x151bb5,this[_0x2d87bc(0x186)](),this[_0x2d87bc(0x1a0)](),this[_0x2d87bc(0x2b0)]());}[_0x3d1f73(0x22e)](){const _0xa26563=_0x3d1f73,_0x185615=this['_configService'][_0xa26563(0x185)](y);_0x185615!=null&&_0x185615[_0xa26563(0x27d)]&&this[_0xa26563(0x1d4)][_0xa26563(0x1db)]({'id':L,'title':{'title':this['_localeService']['t'](_0xa26563(0x272))},'children':{'label':_0xa26563(0x1e2)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x171873=_0xa26563;this[_0x171873(0x1d4)][_0x171873(0x1c6)](L);}});}['getCurrentConfig'](){const _0x49fc50=_0x3d1f73;return this[_0x49fc50(0x1b5)]['value'];}['_registerComponent'](){const _0x13c3e3=_0x3d1f73;this['disposeWithMe'](this[_0x13c3e3(0x188)][_0x13c3e3(0x273)](_0x13c3e3(0x1e2),this['_createConfigPanelComponent']()));}[_0x3d1f73(0x187)](){return _0x2e489a(()=>{const _0x4289a9=_0x1a3e;var _0x51b745,_0x46b609,_0xd27838;return _0x20a6ac(nn,{'config':this[_0x4289a9(0x2ad)][_0x4289a9(0x23d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x4289a9(0x23d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x4289a9(0x1ba)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x51b745=this[_0x4289a9(0x299)])==null?void 0x0:_0x51b745[_0x4289a9(0x17f)],'connectionError$':(_0x46b609=this['_mcpConnectionController'])==null?void 0x0:_0x46b609[_0x4289a9(0x27c)],'currentSessionId$':(_0xd27838=this['_mcpConnectionController'])==null?void 0x0:_0xd27838[_0x4289a9(0x2b7)]});},this['_injector']);}[_0x3d1f73(0x186)](){const _0x49dfe8=_0x3d1f73;this['disposeWithMe'](this[_0x49dfe8(0x1e4)][_0x49dfe8(0x1a5)](_0x3d4e37)[_0x49dfe8(0x26f)](_0x397b45=>{this['_mcpCoreConfig$']['next'](_0x397b45||{});}));const _0x4cd795=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](_0x3d4e37);this[_0x49dfe8(0x1b5)]['next'](_0x4cd795||{}),this['disposeWithMe'](this['_configService'][_0x49dfe8(0x1a5)](y)['subscribe'](_0x3c4845=>{const _0x3f81eb=_0x49dfe8;this[_0x3f81eb(0x2ad)][_0x3f81eb(0x2a8)](_0x3c4845||{});}));const _0xabb4ad=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](y);this['_config$']['next'](_0xabb4ad||{});}async['_loadStoredApiKey'](){const _0x37eb9d=_0x3d1f73,_0x462aaa=this[_0x37eb9d(0x1e4)][_0x37eb9d(0x185)](y);if(!(_0x462aaa!=null&&_0x462aaa[_0x37eb9d(0x27d)]))return;const _0x426adf=await this['_localStorageService'][_0x37eb9d(0x2c0)](U);_0x426adf&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x37eb9d(0x1e7)+_0x426adf}),this[_0x37eb9d(0x2ac)][_0x37eb9d(0x2a8)](_0x426adf));}async[_0x3d1f73(0x28e)](_0x1378c9){const _0x2fd501=_0x3d1f73;if(!_0x1378c9['apiKey']||_0x1378c9['apiKey'][_0x2fd501(0x1e8)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x1378c9[_0x2fd501(0x1ca)][_0x2fd501(0x1e8)]()[_0x2fd501(0x2b5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t'](_0x2fd501(0x1e3))};try{const _0x495f38=await this[_0x2fd501(0x1f8)]['get'](_0x5bc65c)[_0x2fd501(0x23e)](_0x1378c9['apiKey']['trim']());return _0x495f38[_0x2fd501(0x233)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x495f38[_0x2fd501(0x227)]||this[_0x2fd501(0x251)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x35dbd3){return console[_0x2fd501(0x1a7)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x35dbd3),{'isValid':!0x0};}}};I=tn([d(0x0,_0x239ee7(_0x53009c)),d(0x1,_0x436320),d(0x2,_0x47eded),d(0x3,_0x8ee795),d(0x4,_0x41daf9),d(0x5,_0x5d1b2b),d(0x6,_0x239ee7(_0x2f2c61)),d(0x7,_0x239ee7(_0x59138c)),d(0x8,_0x4b764d),d(0x9,_0x239ee7(_0x5bc65c))],I);function _0x4331(){const _0x1689dd=['Enable\x20Authentication','mcpStatus.clickToConnect','_uiPartsService','14032gGaOrZ','univer-shrink-0\x20univer-text-red-500','push','SESSION_ID_OCCUPIED','已连接','symbol','_localeService','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','配置无效','mcpConfig.connectionStatus.disconnected','Retrying...','mcpServerUrl','Max\x20Retries','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','children','MCP\x20配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','map','univer-space-y-5','RETRYING','mcpConfig.saving','http://www.w3.org/2000/svg','check-mark-icon','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.unauthorized','CheckMarkIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','API\x20key\x20is\x20required','_initAutoConnect','registerCommand','subscribe','https://console.univer.ai','disposeWithMe','mcpConfig.title','register','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','BUTTON','配置参数:','svg','MCP:\x20Max\x20Retries\x20Exceeded','最大重试次数','530WPPWWt','connectionError$','showDeveloperTools','0\x200\x2017\x2016','mcpConfig.authorizationDescription','CONNECTED','mcpConfig.configStepTitle','current','0\x200\x2016\x2016','_logService','Authorization:','on-line-icon_clip0_910_349','mcpConfig.configStep2','您的\x20API\x20密钥安全存储在本地存储中','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','您的\x20API\x20密钥将在此浏览器中本地存储','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','random','_validateConfig','OTHERS','几秒钟内获取您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','label','What\x20is\x20API\x20Key?','MCP\x20Retrying...','url(#$1','univer-font-medium','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-size-4','_mcpConnectionController','Enable\x20authentication\x20for\x20secure\x20connections','mergeMenu','OffLineIcon','MCP\x20重连中...','assign','mcpConfig.configParameters','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Client\x20Configuration','<API_KEY>','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-flex\x20univer-items-start\x20univer-gap-3','next','mcpStatus.networkError','univer-space-y-3','MAX_RETRIES_EXCEEDED','_apiKey$','_config$','请输入您的\x20API\x20密钥','mcpStatus.maxRetriesExceeded','_registerComponent','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-text-gray-600','mcp-config-dialog','off-line-icon','length','button','sessionId$','DISCONNECTED','mcp-ui.config','_localStorageService','pre','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','连接失败','mcpConfig.apiKeyPlaceholder','on-line-icon','getItem','off','__setCustomHeaders','mcpConfig.configInstructions','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','url(#on-line-icon_clip0_910_349)','mcp.apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-size-2\x20univer-rounded-full','MCP\x20已断开','displayName','会话\x20ID\x20已被占用,请稍后再试','none','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-xs\x20univer-text-gray-500','univer-min-w-0\x20univer-flex-1','网络连接错误,请检查您的网络连接','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','138zYswXt','API\x20密钥长度至少需要\x2010\x20位','Univer\x20AI\x20Console','API\x20密钥不能为空','connectionStatus$','Configuration\x20Parameters:','保存中...','forEach','setItem','mcpConfig.save','getConfig','_initConfigSync','_createConfigPanelComponent','_componentManager','univer-space-y-2','enableAutoConnect','mcp-ui.command.openConfigPanel','get','API\x20Key','FAILED','MCP\x20Connection\x20Failed','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mask','univer_session_id:','mcpConfig.connectionError.sessionOccupied','xlink:href','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','保存配置','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_commandService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','复制以下\x20JSON\x20配置','Success','_connectionController','_loadStoredApiKey','mcpConfig.apiApplyInfo.getStarted','mcpStatus.sessionOccupied','<SESSION_ID>','show','subscribeConfigValue$','text','warn','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','API\x20密钥','MCP:\x20未授权','MCP\x20Configuration','7660377WbhpxZ','clipPath','mcpStatus.retrying','fill','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置步骤:','idSuffix','_mcpCoreConfig$','_handleConfigure','mcpConfig.note1','span','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_handleConfigSave','API\x20密钥无效,请检查密钥是否正确','pluginName','4915884rtGHuK','currentColor','defs','启用身份验证以获得安全连接','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','div','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.apiKey','_initStatusComponent','close','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer.ai','apiKey','点击连接\x20MCP','univer.plus','CloseIcon','mcpConfig.connectionStatus.connecting','round','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','univer-text-white','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_dialogService','attrs','tag','univer-bg-green-500','removeItem','univer-bg-gray-500','onStarting','open','defIds','\x20-\x20','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','_initializeMenus','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','replace','MCPConfigPanel','mcpConfig.validation.apiKeyTooShort','_configService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Bearer\x20','trim','mcpConfig.description','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-red-500','12536667OkDyja','mcpStatus.unauthorized','getOwnPropertyDescriptor','重连中...','mcpConfig.configStep1','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.failed','MCP\x20Disconnected','mcpConfig.apiApplyInfo.title','启用身份验证','未连接','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_injector','MCP\x20已连接','errorMessage','35268WlZHBa','showStatus','\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','off-line-icon_clip0_910_343','includes','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univerjs-icon\x20univerjs-icon-','Configuration\x20saved\x20successfully','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','Invalid\x20configuration','mcpConfig.connectionInfo','M0\x200H16V16H0z','MCP\x20客户端配置','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config','evenodd','Connecting...','HEADER_MENU','toString','univer-text-sm\x20univer-font-medium','univer-bg-red-500','white','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','_blank','MCP\x20Connected','univer-text-yellow-500','path','点击配置\x20MCP','Univer\x20AI\x20控制台','OnLineIcon','mcpConfig.configError','CONNECTING','1em','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','url(#off-line-icon_clip0_910_343)','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-3','NONE','univer-flex\x20univer-items-start\x20univer-gap-2','配置保存失败','1883uJqbJF','univer-bg-blue-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','error','_menuManagerService','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20连接失败','Disconnected','univer-text-gray-500','showConfigPanel','Error','4036295qeWRwk','超出最大重试次数,请稍后再试','MCP\x20连接中...','isValid','UNAUTHORIZED','554RlZytX','MCP:\x20Session\x20ID\x20Occupied','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','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.validation.invalidConfig','entries','mcpConfig.configStep3','https://mcp.univer.ai/mcp/?univer_session_id=','value','validateApiKey','_loading$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','http','string','NETWORK_ERROR','配置更改将立即生效','MCP:\x20网络错误','10alzHnw'];_0x4331=function(){return _0x1689dd;};return _0x4331();}function _0x1a3e(_0x1159a7,_0x2225f0){_0x1159a7=_0x1159a7-0x16d;const _0x4331bc=_0x4331();let _0x1a3eed=_0x4331bc[_0x1159a7];return _0x1a3eed;}const V={'id':_0x3d1f73(0x18b),'type':_0xf974da['COMMAND'],'handler':async(_0x33e629,_0x4c0347)=>(_0x33e629[_0x3d1f73(0x18c)](I)[_0x3d1f73(0x22e)](),!0x0)};function pe(_0x431f28,_0x2b3bc0){const _0x586aa0=_0x3d1f73;switch(_0x431f28){case _0x291e3f[_0x586aa0(0x2b8)]:return'mcpStatus.disconnected';case _0x291e3f[_0x586aa0(0x21b)]:return _0x586aa0(0x252);case _0x291e3f['CONNECTED']:return'mcpStatus.connected';case _0x291e3f[_0x586aa0(0x18e)]:switch(_0x2b3bc0){case _0x19f996['UNAUTHORIZED']:return _0x586aa0(0x1ed);case _0x19f996[_0x586aa0(0x24e)]:return _0x586aa0(0x1a2);case _0x19f996['NETWORK_ERROR']:return _0x586aa0(0x2a9);case _0x19f996[_0x586aa0(0x2ab)]:return _0x586aa0(0x2af);default:return _0x586aa0(0x1f2);}case _0x291e3f[_0x586aa0(0x261)]:return _0x586aa0(0x1ae);default:return'mcpStatus.unknown';}}function on(_0x784ae1,_0x1514ab,_0x33a05c,_0x4773a7=!0x0){const _0x5b7a19=_0x3d1f73,_0x81235a=pe(_0x784ae1,_0x1514ab),_0x52c052=_0x33a05c['t'](_0x81235a);return _0x4773a7?_0x784ae1===_0x291e3f[_0x5b7a19(0x2b8)]&&_0x1514ab===_0x19f996[_0x5b7a19(0x234)]?_0x52c052+_0x5b7a19(0x1dd)+_0x33a05c['t']('mcpStatus.clickToConfigure'):_0x784ae1===_0x291e3f['CONNECTED']?''+_0x52c052:_0x784ae1===_0x291e3f['DISCONNECTED']||_0x784ae1===_0x291e3f[_0x5b7a19(0x18e)]?_0x52c052+'\x20-\x20'+_0x33a05c['t'](_0x5b7a19(0x249)):_0x52c052:_0x52c052;}function sn(_0x174c6a){const _0x2b4f22=_0x3d1f73;switch(_0x174c6a){case _0x291e3f['CONNECTED']:return'univer-text-green-500';case _0x291e3f[_0x2b4f22(0x21b)]:case _0x291e3f['RETRYING']:return _0x2b4f22(0x215);case _0x291e3f[_0x2b4f22(0x18e)]:case _0x291e3f[_0x2b4f22(0x2b8)]:return _0x2b4f22(0x1eb);default:return _0x2b4f22(0x22d);}}function cn(_0x36728e){const _0x2c36af=_0x3d1f73,{status$:_0x3184c4,error$:_0x33ea99,onConfigure:_0xebe26a,showClickable:_0x50f0de=!0x0}=_0x36728e,_0x27a9c3=_0x1d42f3(_0x3184c4,_0x291e3f[_0x2c36af(0x2b8)]),_0x21b908=_0x1d42f3(_0x33ea99,_0x19f996[_0x2c36af(0x221)]),_0x338c7e=_0x1671ca(_0x59138c),_0xd8ecd1=_0x27a9c3===_0x291e3f[_0x2c36af(0x280)];_0x27a9c3===_0x291e3f['CONNECTING']||_0x291e3f[_0x2c36af(0x261)];const _0x56c13f=_0x338c7e['t'](pe(_0x27a9c3,_0x21b908)),_0x1bb650=on(_0x27a9c3,_0x21b908,_0x338c7e,_0x50f0de),_0x14cbb8=sn(_0x27a9c3),_0x4f86b4=_0xd8ecd1?_0x20a6ac(ge,{}):_0x20a6ac(de,{}),_0x11f25b=_0x2be0fd(()=>{_0x50f0de&&_0xebe26a&&_0xebe26a();},[_0x50f0de,_0xebe26a]);function _0x562bd4(){const _0x17be3c=_0x2c36af;return _0x4b442f(_0x17be3c(0x1c2),{'className':_0x52a931('univer-flex\x20univer-items-center',_0x50f0de&&_0xebe26a&&_0x17be3c(0x1fd)),'role':_0x17be3c(0x2b6),'onClick':_0x50f0de&&_0xebe26a?_0x11f25b:void 0x0,'children':[_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x52a931(_0x17be3c(0x1c3),_0x14cbb8),'children':_0x4f86b4}),_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x17be3c(0x196),'children':_0x56c13f})]});}return _0x20a6ac(_0x47833d,{'title':_0x1bb650,'placement':'bottom','children':_0x562bd4()});}var an=Object[_0x3d1f73(0x1ee)],ln=(_0x5dc1da,_0x349303,_0x488f55,_0x22dfc9)=>{const _0x3d6504=_0x3d1f73;for(var _0x156a7b=_0x22dfc9>0x1?void 0x0:_0x22dfc9?an(_0x349303,_0x488f55):_0x349303,_0x682a48=_0x5dc1da[_0x3d6504(0x2b5)]-0x1,_0x10b69e;_0x682a48>=0x0;_0x682a48--)(_0x10b69e=_0x5dc1da[_0x682a48])&&(_0x156a7b=_0x10b69e(_0x156a7b)||_0x156a7b);return _0x156a7b;},M=(_0x204959,_0x57bc2c)=>(_0x1506f5,_0x55b280)=>_0x57bc2c(_0x1506f5,_0x55b280,_0x204959);let O=class extends _0x2a5236{constructor(_0x3be0ee,_0x1d7c7f,_0xc8a729,_0x302c7e){const _0x1d4406=_0x3d1f73;super(),this['_injector']=_0x3be0ee,this[_0x1d4406(0x19f)]=_0x1d7c7f,this[_0x1d4406(0x24a)]=_0xc8a729,this[_0x1d4406(0x1e4)]=_0x302c7e,this[_0x1d4406(0x26d)](),this[_0x1d4406(0x1c5)]();}[_0x3d1f73(0x26d)](){const _0x5c93fc=_0x3d1f73,_0x4b4281=this['_configService'][_0x5c93fc(0x185)](y);_0x4b4281!=null&&_0x4b4281[_0x5c93fc(0x27d)]&&(this['_connectionController'][_0x5c93fc(0x18a)]=!0x1);}['_initStatusComponent'](){const _0x3a7f0c=_0x3d1f73,_0x3d4141=this['_configService'][_0x3a7f0c(0x185)](y);(_0x3d4141==null?void 0x0:_0x3d4141[_0x3a7f0c(0x1fc)])!==!0x1&&this[_0x3a7f0c(0x271)](this[_0x3a7f0c(0x24a)]['registerComponent'](_0x5cc78a[_0x3a7f0c(0x20d)],()=>{const _0x3c6309=_0x3a7f0c;var _0x1d18b8;return _0x2e489a(un({'status$':this[_0x3c6309(0x19f)]['connectionStatus$'],'error$':this[_0x3c6309(0x19f)][_0x3c6309(0x27c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1d18b8=_0x3d4141==null?void 0x0:_0x3d4141['showDeveloperTools'])!=null?_0x1d18b8:!0x1}),this['_injector']);}));}[_0x3d1f73(0x1b6)](){const _0x4234d3=_0x3d1f73;this[_0x4234d3(0x1f8)][_0x4234d3(0x18c)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x239ee7(_0x53009c)),M(0x1,_0x239ee7(_0x5bc65c)),M(0x2,_0x436320),M(0x3,_0x47eded)],O);function un(_0x1471a2){const {status$:_0x311ec3,error$:_0x1baee1,onConfigure:_0x2fa392,showClickable:_0x57e6ea}=_0x1471a2;return function(){return _0x20a6ac(cn,{'status$':_0x311ec3,'error$':_0x1baee1,'onConfigure':_0x2fa392,'showClickable':_0x57e6ea});};}function vn(_0x54660d){const _0x301763=_0x3d1f73;return{'id':V['id'],'type':_0xc76b71[_0x301763(0x276)],'icon':'MenuIcon','title':_0x301763(0x272),'tooltip':_0x301763(0x272)};}const dn={[_0x47099c[_0x3d1f73(0x28f)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3d1f73(0x1ee)],pn=(_0x99891f,_0x473c05,_0x2243c5,_0x1aba29)=>{const _0x34c562=_0x3d1f73;for(var _0x4dd756=_0x1aba29>0x1?void 0x0:_0x1aba29?gn(_0x473c05,_0x2243c5):_0x473c05,_0x154b30=_0x99891f[_0x34c562(0x2b5)]-0x1,_0x4ab761;_0x154b30>=0x0;_0x154b30--)(_0x4ab761=_0x99891f[_0x154b30])&&(_0x4dd756=_0x4ab761(_0x4dd756)||_0x4dd756);return _0x4dd756;},re=(_0x11a3c7,_0x2aba66)=>(_0x237969,_0x372b88)=>_0x2aba66(_0x237969,_0x372b88,_0x11a3c7);let D=class extends _0x2a5236{constructor(_0x34c922,_0x20985c){const _0xdcefa9=_0x3d1f73;super(),this[_0xdcefa9(0x19b)]=_0x34c922,this[_0xdcefa9(0x228)]=_0x20985c,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x155187=_0x3d1f73;[V][_0x155187(0x182)](_0x18082f=>{const _0x307aca=_0x155187;this[_0x307aca(0x271)](this['_commandService'][_0x307aca(0x26e)](_0x18082f));});}[_0x3d1f73(0x1df)](){const _0x37c04f=_0x3d1f73;this[_0x37c04f(0x228)][_0x37c04f(0x29b)](dn);}};D=pn([re(0x0,_0x17a58e),re(0x1,_0x10488c)],D);const Mn={'mcpStatus':{'disconnected':_0x3d1f73(0x1f3),'connecting':'MCP\x20Connecting...','connected':_0x3d1f73(0x214),'failed':_0x3d1f73(0x18f),'retrying':_0x3d1f73(0x294),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3d1f73(0x236),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3d1f73(0x279),'clickToConnect':_0x3d1f73(0x1e5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d1f73(0x1ab),'description':_0x3d1f73(0x297),'apiKey':_0x3d1f73(0x18d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3d1f73(0x1b9),'enableAuth':_0x3d1f73(0x248),'enableAuthHint':_0x3d1f73(0x29a),'connectionInfo':_0x3d1f73(0x2a2),'mcpClientConfig':_0x3d1f73(0x2a2),'configInstructions':_0x3d1f73(0x1e0),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3d1f73(0x274),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3d1f73(0x265),'sessionId':'Session\x20ID','sessionIdDescription':_0x3d1f73(0x2a5),'authorizationDescription':_0x3d1f73(0x1f1),'configParameters':_0x3d1f73(0x180),'maxRetries':_0x3d1f73(0x259),'save':'Save\x20Configuration','saving':_0x3d1f73(0x208),'note1':_0x3d1f73(0x2a4),'note2':_0x3d1f73(0x1d3),'configSaved':_0x3d1f73(0x202),'configError':_0x3d1f73(0x1d1),'apiApplyInfo':{'title':_0x3d1f73(0x293),'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':_0x3d1f73(0x17d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3d1f73(0x26c),'apiKeyTooShort':_0x3d1f73(0x170),'invalidConfig':_0x3d1f73(0x204),'invalidApiKey':_0x3d1f73(0x1d0)},'connectionStatus':{'disconnected':_0x3d1f73(0x22c),'connecting':_0x3d1f73(0x20c),'connected':'Connected','failed':_0x3d1f73(0x199),'retrying':_0x3d1f73(0x257)},'connectionError':{'unauthorized':_0x3d1f73(0x209),'sessionOccupied':_0x3d1f73(0x226),'networkError':_0x3d1f73(0x198),'maxRetriesExceeded':_0x3d1f73(0x28a)}}},An={'mcpStatus':{'disconnected':_0x3d1f73(0x172),'connecting':_0x3d1f73(0x232),'connected':_0x3d1f73(0x1f9),'failed':_0x3d1f73(0x22b),'retrying':_0x3d1f73(0x29d),'unknown':'MCP\x20状态未知','unauthorized':_0x3d1f73(0x1aa),'sessionOccupied':_0x3d1f73(0x229),'networkError':_0x3d1f73(0x246),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x3d1f73(0x1cb),'clickToConfigure':_0x3d1f73(0x217)},'mcpConfig':{'title':_0x3d1f73(0x25c),'description':_0x3d1f73(0x176),'apiKey':_0x3d1f73(0x1a9),'apiKeyPlaceholder':_0x3d1f73(0x2ae),'apiKeyHint':_0x3d1f73(0x28b),'enableAuth':_0x3d1f73(0x1f5),'enableAuthHint':_0x3d1f73(0x1c0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3d1f73(0x207),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3d1f73(0x1b3),'configStep1':_0x3d1f73(0x19d),'configStep2':_0x3d1f73(0x238),'configStep3':_0x3d1f73(0x291),'sessionId':'会话ID','sessionIdDescription':_0x3d1f73(0x25d),'authorizationDescription':_0x3d1f73(0x1ea),'configParameters':_0x3d1f73(0x277),'maxRetries':_0x3d1f73(0x27a),'save':_0x3d1f73(0x197),'saving':_0x3d1f73(0x181),'note1':_0x3d1f73(0x245),'note2':_0x3d1f73(0x288),'configSaved':'配置保存成功','configError':_0x3d1f73(0x223),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x3d1f73(0x266),'univerAiLabel':_0x3d1f73(0x218),'getStarted':_0x3d1f73(0x290)},'validation':{'apiKeyRequired':_0x3d1f73(0x17e),'apiKeyTooShort':_0x3d1f73(0x17c),'invalidConfig':_0x3d1f73(0x255),'invalidApiKey':_0x3d1f73(0x1bb)},'connectionStatus':{'disconnected':_0x3d1f73(0x1f6),'connecting':'连接中...','connected':_0x3d1f73(0x24f),'failed':_0x3d1f73(0x2bd),'retrying':_0x3d1f73(0x1ef)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3d1f73(0x174),'networkError':_0x3d1f73(0x179),'maxRetriesExceeded':_0x3d1f73(0x231)}}};var fn=Object[_0x3d1f73(0x241)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x40a645,_0xe4a032,_0x42c177)=>_0xe4a032 in _0x40a645?fn(_0x40a645,_0xe4a032,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42c177}):_0x40a645[_0xe4a032]=_0x42c177,mn=(_0x2be425,_0x1e739e,_0x28c91e,_0x5248d1)=>{const _0x10d2fa=_0x3d1f73;for(var _0x58c36a=_0x5248d1>0x1?void 0x0:_0x5248d1?hn(_0x1e739e,_0x28c91e):_0x1e739e,_0x44d4d9=_0x2be425[_0x10d2fa(0x2b5)]-0x1,_0x138a3d;_0x44d4d9>=0x0;_0x44d4d9--)(_0x138a3d=_0x2be425[_0x44d4d9])&&(_0x58c36a=_0x138a3d(_0x58c36a)||_0x58c36a);return _0x58c36a;},P=(_0x582a2e,_0x26e751)=>(_0x564970,_0x4e6077)=>_0x26e751(_0x564970,_0x4e6077,_0x582a2e),_n=(_0x1fbfcc,_0x1098d2,_0x56d432)=>Cn(_0x1fbfcc,_0x1098d2+'',_0x56d432);let j=class extends _0x5bf17b{constructor(_0x2fc2cb=ie,_0x1a9aee,_0x25ca7b,_0x35ef71,_0x723f67,_0x3beb59){const _0x3f3588=_0x3d1f73;super(),this['_config']=_0x2fc2cb,this[_0x3f3588(0x1f8)]=_0x1a9aee,this['_configService']=_0x25ca7b,this[_0x3f3588(0x24a)]=_0x35ef71,this['_localStorageService']=_0x723f67,this['_localeService']=_0x3beb59;const {..._0x332faa}=_0x2d62e4({},ie,this[_0x3f3588(0x20a)]);this[_0x3f3588(0x1e4)]['setConfig'](y,_0x332faa);}async[_0x3d1f73(0x1da)](){const _0x142c83=_0x3d1f73,_0x39a90e=[[O],[I],[D]];this['_injector']['has'](_0x33978c)||_0x39a90e[_0x142c83(0x24d)]([_0x33978c,{'useClass':_0x15ecd1}]),_0x39a90e[_0x142c83(0x182)](_0x4d96d8=>this[_0x142c83(0x1f8)]['add'](_0x4d96d8)),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](O),this['_injector']['get'](I),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](D);}};_n(j,_0x3d1f73(0x1bc),'MCP_UI_PLUGIN'),j=mn([_0x3951f0(_0x38e135),P(0x1,_0x239ee7(_0x53009c)),P(0x2,_0x47eded),P(0x3,_0x436320),P(0x4,_0x8ee795),P(0x5,_0x239ee7(_0x59138c))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0xc1882f=_0x2b73;(function(_0x27aedd,_0x5aa6b3){const _0x3d4f33=_0x2b73,_0x5f211f=_0x27aedd();while(!![]){try{const _0x4295c5=parseInt(_0x3d4f33(0x1ab))/0x1*(-parseInt(_0x3d4f33(0x1dc))/0x2)+-parseInt(_0x3d4f33(0x130))/0x3+parseInt(_0x3d4f33(0x129))/0x4+-parseInt(_0x3d4f33(0x1cf))/0x5*(-parseInt(_0x3d4f33(0x147))/0x6)+-parseInt(_0x3d4f33(0x1ee))/0x7+-parseInt(_0x3d4f33(0x23b))/0x8+parseInt(_0x3d4f33(0x194))/0x9;if(_0x4295c5===_0x5aa6b3)break;else _0x5f211f['push'](_0x5f211f['shift']());}catch(_0x66d560){_0x5f211f['push'](_0x5f211f['shift']());}}}(_0x4918,0x33f7a));var Pe=Object['defineProperty'],Ee=(_0x45addc,_0x66245b,_0x10fbf1)=>_0x66245b in _0x45addc?Pe(_0x45addc,_0x66245b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10fbf1}):_0x45addc[_0x66245b]=_0x10fbf1,x=(_0x27f3a8,_0xdd03ff,_0x57911e)=>Ee(_0x27f3a8,typeof _0xdd03ff!=_0xc1882f(0x269)?_0xdd03ff+'':_0xdd03ff,_0x57911e);import{LocaleService as _0x1e89fe,Inject as _0xc0b699,Injector as _0x3b274d,Disposable as _0x2595b1,IConfigService as _0x27ee87,ILocalStorageService as _0x1c57e0,ILogService as _0x30322e,CommandType as _0x4ccdae,ICommandService as _0x5911d4,DependentOn as _0x28f4fc,Plugin as _0x59c2b1,merge as _0x4d7e38}from'@univerjs/core';import{jsxs as _0x4c6a3d,jsx as _0x28c207}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4b36b6,MCPConnectionError as _0x1d2c28,MCPConnectionController as _0x14ed3b,MCP_PLUGIN_CONFIG_KEY as _0x10d630,UniverMCPPlugin as _0x4a0391}from'@univerjs-pro/mcp';import{clsx as _0x3a12a5,Input as _0x33ea26,Button as _0x45b7b7,MessageType as _0x284621,Tooltip as _0x1cb187}from'@univerjs/design';import{useDependency as _0x2ca0d6,useObservable as _0xdb40c8,ComponentManager as _0x849cd3,connectInjector as _0x176dad,IUIPartsService as _0x3377e8,IDialogService as _0x58dfdb,IMessageService as _0x3b7f20,BuiltInUIPart as _0x3ffd53,MenuItemType as _0x393433,RibbonStartGroup as _0xf870d5,IMenuManagerService as _0x3db316}from'@univerjs/ui';function _0x4918(){const _0x22a675=['univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_config$','MCP\x20连接失败','univer.ai','idSuffix','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','UniverIcon','mask','1720656vHWceb','has','网络连接错误,请检查您的网络连接','mcpStatus.unauthorized','assign','MCP\x20配置','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-bg-blue-500','mcpConfig.note2','url(#$1','mcpConfig.connectionStatus.failed','disposeWithMe','mcpStatus.clickToConnect','enableAutoConnect','API\x20密钥不能为空','univer-space-y-3','off','UNAUTHORIZED','mcpStatus.retrying','children','MCP\x20Retrying...','mcpConfig.apiApplyInfo.description','mcpConfig.apiKey','CheckMarkIcon','defs','NETWORK_ERROR','Authorization:','_commandService','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','mcp-ui.config','mcpConfig.apiApplyInfo.title','重启您的\x20MCP\x20客户端以使配置生效','Save\x20Configuration','_loadStoredApiKey','<SESSION_ID>','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','https://mcp.univer.ai/mcp/?univer_session_id=','_initializeCommands','connectionStatus$','path','univer-text-red-500','_apiKey$','univer-flex\x20univer-gap-3','_mcpCoreConfig$','mcpStatus.disconnected','_localStorageService','symbol','currentColor','mcpConfig.connectionInfo','Max\x20Retries','MCP\x20客户端配置','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','MAX_RETRIES_EXCEEDED','MCP:\x20Max\x20Retries\x20Exceeded','配置步骤:','length','univer-text-yellow-500','add','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','API\x20key\x20is\x20required','univer-text-blue-600','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionStatus.retrying','MenuIcon','close-icon','59084ISGLlc','trim','DISCONNECTED','Copy\x20the\x20JSON\x20configuration\x20below','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-items-center','string','1140039mdkMzY','mcpConfig.authorizationDescription','mcpConfig.apiApplyInfo.getStarted','error','mcpStatus.unknown','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStep3','mcpConfig.validation.invalidApiKey','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-4','点击连接\x20MCP','univerjs-icon\x20univerjs-icon-','1em','Univer\x20AI\x20Console','univer-space-y-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_uiPartsService','mcp.apiKey','_injector','setItem','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','6vyUOuz','复制以下\x20JSON\x20配置','round','MCP\x20Disconnected','mcpConfig.note1','MCPConfigPanel','use','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-sm\x20univer-text-gray-500','div','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','您的\x20API\x20密钥将在此浏览器中本地存储','univer-shrink-0\x20univer-text-red-500','forEach','univer-flex-1','_componentManager','mcpConfig.connectionStatus.connecting','启用身份验证以获得安全连接','defIds','mcpConfig.apiApplyInfo.univerAiLabel','on-line-icon','sessionId$','OnLineIcon','RETRYING','_initStatusComponent','getConfig','COMMAND','open','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_dialogService','_messageService','mcpConfig.configStep1','点击配置\x20MCP','next','evenodd','_loading$','_menuManagerService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','check-mark-icon','__setCustomHeaders','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20状态未知','https://console.univer.plus','univer-text-xs\x20univer-text-gray-500','_config','NONE','会话\x20ID\x20已被占用,请稍后再试','_connectionController','MCP\x20Connected','close','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpStatus.maxRetriesExceeded','univer_session_id:','MCP\x20连接中...','mcpConfig.saving','0\x200\x2016\x2016','BUTTON','API\x20密钥无效,请检查密钥是否正确','mcpConfig.description','bottom','univer-flex\x20univer-items-start\x20univer-gap-3','label','mcpConfig.configParameters','_initConfigSync','subscribeConfigValue$','displayName','配置无效','保存中...','univer-font-medium','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','mcpConfig.connectionError.maxRetriesExceeded','_handleConfigSave','保存配置','includes','univer-shrink-0\x20univer-text-blue-500','5964327SElGjq','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','CloseIcon','MCP\x20已连接','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.configError','substring','show','xlink:href','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','请输入您的\x20API\x20密钥','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','apiKey','CONNECTED','univer-text-green-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','removeItem','Get\x20your\x20API\x20key\x20in\x20seconds','_logService','svg','123926cQJyax','errorMessage','mcpConfig.apiKeyPlaceholder','OffLineIcon','mcpConfig.apiKeyHint','CONNECTING','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','已连接','mcp-ui.command.openConfigPanel','mcp-config-dialog','univer-min-w-0\x20univer-flex-1','Click\x20to\x20configure\x20MCP','mcpStatus.connecting','最大重试次数','_registerComponent','register','span','registerComponent','MCP\x20已断开','mergeMenu','Bearer\x20','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','replace','Invalid\x20configuration','getOwnPropertyDescriptor','mcpStatus.sessionOccupied','showStatus','mcpStatus.connected','subscribe','FAILED','pre','_mcpConnectionController','entries','What\x20is\x20API\x20Key?','univer-text-gray-400','\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','1397465SmbJPu','univer.plus','none','Success','isValid','Configuration\x20Steps:','push','权限验证失败,请检查您的\x20API\x20密钥','connectionError$','mcpConfig.validation.apiKeyRequired','MCP\x20Configuration','<API_KEY>','http://www.w3.org/2000/svg','2idjrdD','Error','registerCommand','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.title','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','mcpConfig.connectionError.unauthorized','0\x200\x2017\x2016','fill','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','重连中...','univer-size-2\x20univer-rounded-full','colorChannel1','http','几秒钟内获取您的\x20API\x20密钥','Click\x20to\x20connect\x20MCP','\x20-\x20','MCP\x20Unknown\x20Status','175616eeHtWy','showDeveloperTools','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connected','_createConfigPanelComponent','MCP:\x20超出最大重试次数','univer-size-4','getCurrentConfig','Retrying...','MCP\x20Connection\x20Failed','mcpStatus.networkError','连接失败','_initializeMenus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP_UI_PLUGIN','M0\x200H16V16H0z','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','tag','univer-bg-gray-500','配置保存失败','get','clipPath','MCP:\x20网络错误','_blank','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-items-center\x20univer-gap-2','连接中...','mcpConfig.connectionError.sessionOccupied','univer-space-y-2','mcpConfig.sessionIdDescription','attrs','Configuration\x20Parameters:','off-line-icon','mcpServerUrl','_configService','SESSION_ID_OCCUPIED','translate(.97)','univer-text-sm\x20univer-font-medium','white','配置更改将立即生效','mcpConfig.configStepTitle','Univer\x20AI\x20控制台','map','setConfig','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','showConfigPanel','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_handleConfigure','value','Configuration\x20Notes:','noopener\x20noreferrer','HelpIcon','onStarting','超出最大重试次数,请稍后再试','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.validation.apiKeyTooShort','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','text','univer-bg-red-500','_localeService','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','button','未连接','mcpConfig.configSaved','random','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:'];_0x4918=function(){return _0x22a675;};return _0x4918();}import{BehaviorSubject as _0x5e871f}from'rxjs';import{useRef as _0x59237c,createElement as _0x439406,forwardRef as _0x8e738c,useState as _0x47f360,useCallback as _0x3300f8}from'react';import{ISocketService as _0x50d983,WebSocketService as _0x3a96fd}from'@univerjs/network';function b({ref:_0x1d7443,..._0x512420}){const _0x13c918=_0xc1882f,{icon:_0x2ffcec,id:_0x3c5223,className:_0x2ed273,extend:_0x72e4e1,..._0x57bc60}=_0x512420,_0x1318d7=(_0x13c918(0x13c)+_0x3c5223+'\x20'+(_0x2ed273||''))[_0x13c918(0x12a)](),_0x2c198c=_0x59237c('_'+We());return ae(_0x2ffcec,''+_0x3c5223,{'defIds':_0x2ffcec[_0x13c918(0x159)],'idSuffix':_0x2c198c['current']},{'ref':_0x1d7443,'className':_0x1318d7,..._0x57bc60},_0x72e4e1);}function ae(_0xcf7f72,_0x58ab49,_0x25c14c,_0x5abb01,_0x3b231d){const _0x5da8fe=_0xc1882f;return _0x439406(_0xcf7f72[_0x5da8fe(0x1ff)],{'key':_0x58ab49,...Ye(_0xcf7f72,_0x25c14c,_0x3b231d),..._0x5abb01},(Ze(_0xcf7f72,_0x25c14c)[_0x5da8fe(0x24e)]||[])['map']((_0x2c132c,_0x78002c)=>ae(_0x2c132c,_0x58ab49+'-'+_0xcf7f72['tag']+'-'+_0x78002c,_0x25c14c,void 0x0,_0x3b231d)));}function Ye(_0x72ac8b,_0xf5cde,_0x3909e8){const _0x22be0c=_0xc1882f,_0x4fc469={..._0x72ac8b[_0x22be0c(0x20c)]};_0x3909e8!=null&&_0x3909e8[_0x22be0c(0x1e8)]&&_0x4fc469['fill']===_0x22be0c(0x1e8)&&(_0x4fc469[_0x22be0c(0x1e4)]=_0x3909e8[_0x22be0c(0x1e8)]),_0x72ac8b['tag']===_0x22be0c(0x23a)&&_0x4fc469['id']&&(_0x4fc469['id']=_0x4fc469['id']+_0xf5cde[_0x22be0c(0x236)]),Object[_0x22be0c(0x1cb)](_0x4fc469)['forEach'](([_0x189e8f,_0x58d452])=>{const _0x126041=_0x22be0c;_0x189e8f===_0x126041(0x23a)&&typeof _0x58d452==_0x126041(0x12f)&&(_0x4fc469[_0x189e8f]=_0x58d452[_0x126041(0x1c1)](/url\(#(.*)\)/,_0x126041(0x244)+_0xf5cde['idSuffix']+')'));});const {defIds:_0x4795ba}=_0xf5cde;return!_0x4795ba||_0x4795ba[_0x22be0c(0x275)]===0x0||(_0x72ac8b[_0x22be0c(0x1ff)]===_0x22be0c(0x14d)&&_0x4fc469[_0x22be0c(0x19e)]&&(_0x4fc469[_0x22be0c(0x19e)]=_0x4fc469[_0x22be0c(0x19e)]+_0xf5cde['idSuffix']),Object[_0x22be0c(0x1cb)](_0x4fc469)[_0x22be0c(0x154)](([_0x59071f,_0x3d859f])=>{const _0x3cbea7=_0x22be0c;typeof _0x3d859f==_0x3cbea7(0x12f)&&(_0x4fc469[_0x59071f]=_0x3d859f[_0x3cbea7(0x1c1)](/url\(#(.*)\)/,_0x3cbea7(0x244)+_0xf5cde['idSuffix']+')'));})),_0x4fc469;}function Ze(_0x20be2b,_0x3b6942){const _0xc7a401=_0xc1882f;var _0x335468;const {defIds:_0xbb473a}=_0x3b6942;return!_0xbb473a||_0xbb473a[_0xc7a401(0x275)]===0x0?_0x20be2b:_0x20be2b[_0xc7a401(0x1ff)]===_0xc7a401(0x253)&&((_0x335468=_0x20be2b[_0xc7a401(0x24e)])!=null&&_0x335468[_0xc7a401(0x275)])?{..._0x20be2b,'children':_0x20be2b[_0xc7a401(0x24e)][_0xc7a401(0x218)](_0x46254d=>typeof _0x46254d[_0xc7a401(0x20c)]['id']==_0xc7a401(0x12f)&&_0xbb473a&&_0xbb473a[_0xc7a401(0x192)](_0x46254d['attrs']['id'])?{..._0x46254d,'attrs':{..._0x46254d[_0xc7a401(0x20c)],'id':_0x46254d['attrs']['id']+_0x3b6942[_0xc7a401(0x236)]}}:_0x46254d)}:_0x20be2b;}function We(){const _0x8ae4ee=_0xc1882f;return Math[_0x8ae4ee(0x230)]()['toString'](0x24)[_0x8ae4ee(0x19c)](0x2,0x8);}b[_0xc1882f(0x188)]=_0xc1882f(0x239);const qe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':'evenodd'}}]},le=_0x8e738c(function(_0x3ee43d,_0x350f43){const _0x4846bc=_0xc1882f;return _0x439406(b,Object[_0x4846bc(0x23f)]({},_0x3ee43d,{'id':_0x4846bc(0x16d),'ref':_0x350f43,'icon':qe}));});le[_0xc1882f(0x188)]=_0xc1882f(0x252);const Xe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':'none','viewBox':_0xc1882f(0x17e),'width':'1em','height':_0xc1882f(0x13d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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=_0x8e738c(function(_0x5717c0,_0xacab94){const _0x4d1803=_0xc1882f;return _0x439406(b,Object[_0x4d1803(0x23f)]({},_0x5717c0,{'id':_0x4d1803(0x27f),'ref':_0xacab94,'icon':Xe}));});ue[_0xc1882f(0x188)]=_0xc1882f(0x197);const Je={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x26a),'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':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x26a),'d':_0xc1882f(0x1e1)}},{'tag':_0xc1882f(0x262),'attrs':{'fill':'currentColor','d':_0xc1882f(0x25e),'fillRule':'evenodd','clipRule':_0xc1882f(0x169)}}]},ve=_0x8e738c(function(_0x50d59e,_0x2416a7){return _0x439406(b,Object['assign']({},_0x50d59e,{'id':'help-icon','ref':_0x2416a7,'icon':Je}));});ve['displayName']=_0xc1882f(0x221);const Qe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'stroke':_0xc1882f(0x26a),'d':_0xc1882f(0x21a),'strokeLinecap':_0xc1882f(0x149),'strokeLinejoin':_0xc1882f(0x149),'strokeWidth':1.2}}]},{'tag':_0xc1882f(0x253),'attrs':{},'children':[{'tag':_0xc1882f(0x203),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x214),'d':_0xc1882f(0x1fd)}}]}]}],'defIds':[_0xc1882f(0x195)]},de=_0x8e738c(function(_0x2a3d77,_0x44cc16){const _0x4caa9f=_0xc1882f;return _0x439406(b,Object['assign']({},_0x2a3d77,{'id':_0x4caa9f(0x20e),'ref':_0x44cc16,'icon':Qe}));});de[_0xc1882f(0x188)]=_0xc1882f(0x1ae);const en={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x1e3),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'stroke':'currentColor','d':_0xc1882f(0x1a6),'strokeLinecap':_0xc1882f(0x149),'strokeLinejoin':_0xc1882f(0x149),'strokeWidth':1.2}}]},{'tag':_0xc1882f(0x253),'attrs':{},'children':[{'tag':_0xc1882f(0x203),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x214),'d':_0xc1882f(0x1fd),'transform':_0xc1882f(0x212)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x8e738c(function(_0x36f6e8,_0x29f4e6){const _0x559e49=_0xc1882f;return _0x439406(b,Object[_0x559e49(0x23f)]({},_0x36f6e8,{'id':_0x559e49(0x15b),'ref':_0x29f4e6,'icon':en}));});ge[_0xc1882f(0x188)]=_0xc1882f(0x15d);function nn(_0xfb0a8e){const _0xfa9459=_0xc1882f;var _0x175e75,_0x175fe4;const {mcpCoreConfig:_0x58bec3,onSave:_0x3b9778,loading:_0x5d3034=!0x1,config:_0x10c721,connectionStatus$:_0x3ad27d,connectionError$:_0x57826d,currentApiKey$:_0xbb4358,currentSessionId$:_0x720bea}=_0xfb0a8e,_0x2fd2c3=_0x2ca0d6(_0x1e89fe),_0x568121=_0xdb40c8(_0x3ad27d,_0x4b36b6[_0xfa9459(0x12b)]),_0x46cfa5=_0xdb40c8(_0x57826d,_0x1d2c28[_0xfa9459(0x174)]),_0x29e8a2=_0xdb40c8(_0x720bea,''),_0xba196e=_0xdb40c8(_0xbb4358,''),[_0x4af113,_0x157a17]=_0x47f360(_0xba196e||''),_0x433556=!0x0,_0x56fd9f=_0x10c721[_0xfa9459(0x1ef)]&&_0x58bec3['mcpServerUrl']&&(_0x58bec3['mcpServerUrl']['includes'](_0xfa9459(0x1d0))||_0x58bec3[_0xfa9459(0x20f)][_0xfa9459(0x192)](_0xfa9459(0x235))),_0x53723c=(_0x175e75=_0x58bec3['mcpServerUrl'])==null?void 0x0:_0x175e75['includes'](_0xfa9459(0x1d0)),_0x55291a=(_0x175fe4=_0x58bec3[_0xfa9459(0x20f)])==null?void 0x0:_0x175fe4[_0xfa9459(0x192)](_0xfa9459(0x235)),_0x4bc47a=_0x53723c?_0xfa9459(0x171):'https://console.univer.ai',_0x32f209=_0x10c721[_0xfa9459(0x1ef)]&&(_0x53723c||_0x55291a),[_0xa1afb0,_0xa80a14]=_0x47f360(!_0x4af113[_0xfa9459(0x12a)]()),_0x31684e=(_0x16bb3d,_0x1dd5f1)=>{const _0x2f34e9=_0xfa9459;if(_0x1dd5f1===_0x1d2c28[_0x2f34e9(0x24c)])return _0x2f34e9(0x270);switch(_0x16bb3d){case _0x4b36b6['CONNECTED']:return _0x2f34e9(0x146);case _0x4b36b6['CONNECTING']:case _0x4b36b6[_0x2f34e9(0x15e)]:return _0x2f34e9(0x16f);case _0x4b36b6[_0x2f34e9(0x1c8)]:return _0x2f34e9(0x270);default:return _0x2f34e9(0x27b);}},_0x1aedee=(_0x59f965,_0x1f1f4b)=>{const _0x22784a=_0xfa9459;if(_0x1f1f4b===_0x1d2c28['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x59f965){case _0x4b36b6[_0x22784a(0x1a4)]:return'univer-bg-green-500';case _0x4b36b6[_0x22784a(0x1b0)]:case _0x4b36b6[_0x22784a(0x15e)]:return _0x22784a(0x242);case _0x4b36b6[_0x22784a(0x1c8)]:return _0x22784a(0x228);default:return _0x22784a(0x200);}},_0x1efb93=_0x1135a2=>{const _0x525072=_0xfa9459;switch(_0x1135a2){case _0x4b36b6[_0x525072(0x1a4)]:return _0x2fd2c3['t'](_0x525072(0x1f1));case _0x4b36b6[_0x525072(0x1b0)]:return _0x2fd2c3['t'](_0x525072(0x157));case _0x4b36b6[_0x525072(0x1c8)]:return _0x2fd2c3['t'](_0x525072(0x245));case _0x4b36b6[_0x525072(0x15e)]:return _0x2fd2c3['t'](_0x525072(0x27d));default:return _0x2fd2c3['t']('mcpConfig.connectionStatus.disconnected');}},_0x1c3f1b=_0x1b81a2=>{const _0x33c6ce=_0xfa9459;switch(_0x1b81a2){case _0x1d2c28[_0x33c6ce(0x24c)]:return _0x2fd2c3['t'](_0x33c6ce(0x1e2));case _0x1d2c28[_0x33c6ce(0x211)]:return _0x2fd2c3['t'](_0x33c6ce(0x209));case _0x1d2c28['NETWORK_ERROR']:return _0x2fd2c3['t']('mcpConfig.connectionError.networkError');case _0x1d2c28['MAX_RETRIES_EXCEEDED']:return _0x2fd2c3['t'](_0x33c6ce(0x18f));default:return'';}},_0x2192cf=_0x3300f8(()=>{const _0x281934={..._0x58bec3,'apiKey':_0x4af113['trim'](),'enableAuth':_0x433556};_0x3b9778(_0x281934);},[_0x58bec3,_0x4af113,_0x433556,_0x3b9778]),_0x51ada3=_0x4af113[_0xfa9459(0x12a)]()[_0xfa9459(0x275)]>0x0;return _0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1b1),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x26e),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x232),'children':_0x28c207(_0xfa9459(0x1bb),{'className':'univer-text-white','children':'⚙'})}),_0x28c207(_0xfa9459(0x150),{'children':_0x28c207('p',{'className':_0xfa9459(0x14f),'children':_0x2fd2c3['t'](_0xfa9459(0x181))})})]})}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x140),'children':[_0x28c207('div',{'className':_0x3a12a5('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x31684e(_0x568121,_0x46cfa5)),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x28c207(_0xfa9459(0x150),{'className':_0x3a12a5(_0xfa9459(0x1e7),_0x1aedee(_0x568121,_0x46cfa5))}),_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x213),'children':_0x1efb93(_0x568121)})]})}),_0x46cfa5!==_0x1d2c28['NONE']&&(_0x568121===_0x4b36b6[_0xfa9459(0x1c8)]||_0x46cfa5===_0x1d2c28[_0xfa9459(0x24c)])&&_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x163),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x26f),'children':[_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x153),'children':'⚠️'}),_0x28c207('p',{'className':_0xfa9459(0x21c),'children':_0x1c3f1b(_0x46cfa5)})]})})]}),_0x28c207(_0xfa9459(0x150),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x13f),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x4c6a3d(_0xfa9459(0x184),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x28c207('span',{'children':'🔑'}),'\x20',_0x2fd2c3['t'](_0xfa9459(0x251)),_0x28c207('span',{'className':'univer-text-red-500','children':'*'}),_0x56fd9f&&_0x28c207('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':_0x2fd2c3['t'](_0xfa9459(0x259)),'role':'button','onClick':()=>_0xa80a14(!0x0),'children':_0x28c207(ve,{})})]}),_0x28c207(_0x33ea26,{'type':_0xfa9459(0x227),'placeholder':_0x2fd2c3['t'](_0xfa9459(0x1ad)),'value':_0x4af113,'disabled':_0x5d3034,'autoComplete':_0xfa9459(0x24b),'onChange':_0x157a17}),_0x28c207('p',{'className':_0xfa9459(0x172),'children':_0x2fd2c3['t'](_0xfa9459(0x1af))})]}),_0x56fd9f&&_0xa1afb0&&_0x4c6a3d('div',{'className':_0xfa9459(0x271),'children':[_0x28c207('a',{'className':_0xfa9459(0x257),'role':'button','onClick':()=>_0xa80a14(!0x1),'children':_0x28c207(ue,{'className':_0xfa9459(0x1f4)})}),_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x27a),'children':'🚀'})}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x155),'children':[_0x28c207('h4',{'className':_0xfa9459(0x141),'children':_0x2fd2c3['t'](_0xfa9459(0x259))}),_0x28c207('p',{'className':_0xfa9459(0x135),'children':_0x2fd2c3['t'](_0xfa9459(0x250))}),_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x22a),'children':_0x32f209&&_0x4c6a3d('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x4bc47a,'target':_0xfa9459(0x205),'rel':_0xfa9459(0x220),'children':[_0x28c207('span',{'children':'🤖'}),_0x2fd2c3['t'](_0xfa9459(0x15a)),_0x28c207('span',{'className':_0xfa9459(0x1cd),'children':'↗'})]})}),_0x4c6a3d('div',{'className':_0xfa9459(0x27c),'children':['✨','\x20',_0x2fd2c3['t'](_0xfa9459(0x132))]})]})]})]}),_0x10c721[_0xfa9459(0x1ef)]&&_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x4c6a3d('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x28c207(_0xfa9459(0x1bb),{'children':'🔗'}),'\x20',_0x2fd2c3['t'](_0xfa9459(0x26b))]}),_0x4c6a3d('div',{'className':_0xfa9459(0x13a),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x24a),'children':[_0x28c207('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x2fd2c3['t']('mcpConfig.configInstructions')}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x28c207('div',{'className':_0xfa9459(0x22c),'children':_0x2fd2c3['t'](_0xfa9459(0x216))}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1f0),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x207),'children':[_0x28c207(_0xfa9459(0x1bb),{'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'}),_0x2fd2c3['t'](_0xfa9459(0x166))]}),_0x4c6a3d('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x28c207('span',{'className':_0xfa9459(0x206),'children':'2'}),_0x2fd2c3['t']('mcpConfig.configStep2')]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x207),'children':[_0x28c207('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x2fd2c3['t'](_0xfa9459(0x137))]})]})]})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x28c207('div',{'className':_0xfa9459(0x241),'children':_0x28c207(_0xfa9459(0x1c9),{'className':_0xfa9459(0x278),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xfa9459(0x25f)+(_0x29e8a2||_0xfa9459(0x25d)),'type':_0xfa9459(0x1e9),'headers':{'Authorization':'Bearer\x20'+(_0x4af113||_0xfa9459(0x1da))}}}},null,0x2)})})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x24a),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x22c),'children':_0x2fd2c3['t'](_0xfa9459(0x185))}),_0x4c6a3d('div',{'className':_0xfa9459(0x20a),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x28c207('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x1fb),'children':_0xfa9459(0x17b)}),_0x28c207('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2fd2c3['t'](_0xfa9459(0x20b))})]})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x183),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1b5),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xfa9459(0x255)}),_0x28c207('div',{'className':_0xfa9459(0x172),'children':_0x2fd2c3['t'](_0xfa9459(0x131))})]})]})]})]})]})]}),_0x28c207(_0x45b7b7,{'onClick':_0x2192cf,'disabled':!_0x51ada3||_0x5d3034,'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':_0x5d3034?_0x4c6a3d(_0xfa9459(0x1bb),{'className':_0xfa9459(0x207),'children':[_0x28c207(_0xfa9459(0x1bb),{'children':'⟲'}),_0x2fd2c3['t'](_0xfa9459(0x17d))]}):_0x4c6a3d(_0xfa9459(0x1bb),{'className':_0xfa9459(0x207),'children':[_0x28c207(le,{}),_0x2fd2c3['t']('mcpConfig.save')]})}),_0x28c207(_0xfa9459(0x150),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x265),'children':[_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x193),'children':'💡'}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x179),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x18b),'children':_0xfa9459(0x21f)}),_0x4c6a3d(_0xfa9459(0x150),{'children':['•',_0x2fd2c3['t'](_0xfa9459(0x14b))]}),_0x4c6a3d(_0xfa9459(0x150),{'children':['•',_0x2fd2c3['t'](_0xfa9459(0x243))]})]})]})})]})})]});}const y=_0xc1882f(0x258),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xc1882f(0x1c3)],tn=(_0x328e23,_0x351438,_0x1d7d22,_0x4d3c98)=>{const _0x561155=_0xc1882f;for(var _0x4bf5f4=_0x4d3c98>0x1?void 0x0:_0x4d3c98?rn(_0x351438,_0x1d7d22):_0x351438,_0x55925b=_0x328e23[_0x561155(0x275)]-0x1,_0x48f9da;_0x55925b>=0x0;_0x55925b--)(_0x48f9da=_0x328e23[_0x55925b])&&(_0x4bf5f4=_0x48f9da(_0x4bf5f4)||_0x4bf5f4);return _0x4bf5f4;},d=(_0x3b99b9,_0x18a9bd)=>(_0x384a9f,_0x1a0ead)=>_0x18a9bd(_0x384a9f,_0x1a0ead,_0x3b99b9);const U=_0xc1882f(0x143),L=_0xc1882f(0x1b4);let I=class extends _0x2595b1{constructor(_0x360f95,_0x4806b0,_0x4c4a13,_0x22ee49,_0x2a223f,_0x1a8a65,_0x26a76d,_0x4f2769,_0x191c67,_0x2f492a){const _0x48c98d=_0xc1882f;super(),x(this,_0x48c98d(0x16a),new _0x5e871f(!0x1)),x(this,_0x48c98d(0x266),new _0x5e871f({})),x(this,_0x48c98d(0x233),new _0x5e871f({})),x(this,_0x48c98d(0x264),new _0x5e871f('')),x(this,_0x48c98d(0x190),async _0x492bd2=>{const _0x523a51=_0x48c98d;var _0x1d5172,_0x5757fa;this[_0x523a51(0x16a)]['next'](!0x0);try{const _0x2877af=await this['_validateConfig'](_0x492bd2);if(!_0x2877af[_0x523a51(0x1d3)]){this[_0x523a51(0x165)][_0x523a51(0x19d)]({'type':_0x284621[_0x523a51(0x1dd)],'content':_0x2877af[_0x523a51(0x1ac)]||this[_0x523a51(0x229)]['t'](_0x523a51(0x22b))});return;}_0x492bd2[_0x523a51(0x1a3)]?await this[_0x523a51(0x268)][_0x523a51(0x145)](U,_0x492bd2[_0x523a51(0x1a3)][_0x523a51(0x12a)]()):await this[_0x523a51(0x268)][_0x523a51(0x1a7)](U),this[_0x523a51(0x264)]['next'](((_0x1d5172=_0x492bd2[_0x523a51(0x1a3)])==null?void 0x0:_0x1d5172[_0x523a51(0x12a)]())||''),this['_mcpConnectionController'][_0x523a51(0x16e)]({'Authorization':_0x523a51(0x1bf)+((_0x5757fa=_0x492bd2[_0x523a51(0x1a3)])==null?void 0x0:_0x5757fa[_0x523a51(0x12a)]())}),this[_0x523a51(0x165)][_0x523a51(0x19d)]({'type':_0x284621[_0x523a51(0x1d2)],'content':this['_localeService']['t'](_0x523a51(0x22f))}),setTimeout(()=>{const _0x1c4b5d=_0x523a51;this['_dialogService'][_0x1c4b5d(0x178)](L);},0x320);}catch(_0x5ab084){this[_0x523a51(0x1a9)][_0x523a51(0x133)](_0x523a51(0x231),_0x5ab084),this[_0x523a51(0x165)]['show']({'type':_0x284621[_0x523a51(0x1dd)],'content':this[_0x523a51(0x229)]['t'](_0x523a51(0x19b))});}finally{this[_0x523a51(0x16a)]['next'](!0x1);}}),(this['_injector']=_0x360f95,this['_uiPartsService']=_0x4806b0,this[_0x48c98d(0x210)]=_0x4c4a13,this[_0x48c98d(0x268)]=_0x22ee49,this[_0x48c98d(0x164)]=_0x2a223f,this[_0x48c98d(0x165)]=_0x1a8a65,this[_0x48c98d(0x156)]=_0x26a76d,this[_0x48c98d(0x229)]=_0x4f2769,this['_logService']=_0x191c67,this['_mcpConnectionController']=_0x2f492a,this[_0x48c98d(0x186)](),this[_0x48c98d(0x25c)](),this[_0x48c98d(0x1b9)]());}[_0xc1882f(0x21b)](){const _0x43e149=_0xc1882f,_0x5c6c10=this[_0x43e149(0x210)][_0x43e149(0x160)](y);_0x5c6c10!=null&&_0x5c6c10[_0x43e149(0x1ef)]&&this[_0x43e149(0x164)][_0x43e149(0x162)]({'id':L,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x43e149(0x14c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3cd214=_0x43e149;this[_0x3cd214(0x164)][_0x3cd214(0x178)](L);}});}[_0xc1882f(0x1f5)](){const _0x2279e5=_0xc1882f;return this[_0x2279e5(0x266)]['value'];}[_0xc1882f(0x1b9)](){const _0x8b657f=_0xc1882f;this[_0x8b657f(0x246)](this[_0x8b657f(0x156)][_0x8b657f(0x1ba)](_0x8b657f(0x14c),this['_createConfigPanelComponent']()));}[_0xc1882f(0x1f2)](){const _0x299bbf=_0xc1882f;return _0x176dad(()=>{const _0x196bf6=_0x2b73;var _0x1c97f0,_0x299ecb,_0x7d304b;return _0x28c207(nn,{'config':this[_0x196bf6(0x233)][_0x196bf6(0x21e)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x196bf6(0x21e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x196bf6(0x190)],'loading':this[_0x196bf6(0x16a)]['value'],'connectionStatus$':(_0x1c97f0=this['_mcpConnectionController'])==null?void 0x0:_0x1c97f0[_0x196bf6(0x261)],'connectionError$':(_0x299ecb=this[_0x196bf6(0x1ca)])==null?void 0x0:_0x299ecb[_0x196bf6(0x1d7)],'currentSessionId$':(_0x7d304b=this['_mcpConnectionController'])==null?void 0x0:_0x7d304b[_0x196bf6(0x15c)]});},this[_0x299bbf(0x144)]);}[_0xc1882f(0x186)](){const _0x239eaf=_0xc1882f;this['disposeWithMe'](this[_0x239eaf(0x210)][_0x239eaf(0x187)](_0x10d630)[_0x239eaf(0x1c7)](_0x4c952=>{const _0x1237ca=_0x239eaf;this[_0x1237ca(0x266)][_0x1237ca(0x168)](_0x4c952||{});}));const _0x152e73=this[_0x239eaf(0x210)][_0x239eaf(0x160)](_0x10d630);this[_0x239eaf(0x266)][_0x239eaf(0x168)](_0x152e73||{}),this['disposeWithMe'](this['_configService'][_0x239eaf(0x187)](y)['subscribe'](_0x57d93d=>{const _0x4f5873=_0x239eaf;this[_0x4f5873(0x233)]['next'](_0x57d93d||{});}));const _0x5bb2c1=this[_0x239eaf(0x210)][_0x239eaf(0x160)](y);this[_0x239eaf(0x233)][_0x239eaf(0x168)](_0x5bb2c1||{});}async[_0xc1882f(0x25c)](){const _0x1162e9=_0xc1882f,_0x35b3a5=this[_0x1162e9(0x210)]['getConfig'](y);if(!(_0x35b3a5!=null&&_0x35b3a5['showDeveloperTools']))return;const _0x5f0e92=await this[_0x1162e9(0x268)]['getItem'](U);_0x5f0e92&&(this[_0x1162e9(0x1ca)][_0x1162e9(0x16e)]({'Authorization':'Bearer\x20'+_0x5f0e92}),this[_0x1162e9(0x264)]['next'](_0x5f0e92));}async['_validateConfig'](_0x34ef57){const _0x128bbd=_0xc1882f;if(!_0x34ef57[_0x128bbd(0x1a3)]||_0x34ef57['apiKey'][_0x128bbd(0x12a)]()[_0x128bbd(0x275)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x128bbd(0x229)]['t'](_0x128bbd(0x1d8))};if(_0x34ef57[_0x128bbd(0x1a3)][_0x128bbd(0x12a)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x128bbd(0x229)]['t'](_0x128bbd(0x225))};try{const _0x328b8e=await this['_injector']['get'](_0x14ed3b)['validateApiKey'](_0x34ef57[_0x128bbd(0x1a3)][_0x128bbd(0x12a)]());return _0x328b8e[_0x128bbd(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x328b8e[_0x128bbd(0x133)]||this['_localeService']['t'](_0x128bbd(0x138))};}catch(_0x2e51b9){return console['warn'](_0x128bbd(0x19f),_0x2e51b9),{'isValid':!0x0};}}};I=tn([d(0x0,_0xc0b699(_0x3b274d)),d(0x1,_0x3377e8),d(0x2,_0x27ee87),d(0x3,_0x1c57e0),d(0x4,_0x58dfdb),d(0x5,_0x3b7f20),d(0x6,_0xc0b699(_0x849cd3)),d(0x7,_0xc0b699(_0x1e89fe)),d(0x8,_0x30322e),d(0x9,_0xc0b699(_0x14ed3b))],I);const V={'id':_0xc1882f(0x1b3),'type':_0x4ccdae[_0xc1882f(0x161)],'handler':async(_0x50bb48,_0x4db04e)=>(_0x50bb48['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x4707d5,_0x26e1c1){const _0xa0a408=_0xc1882f;switch(_0x4707d5){case _0x4b36b6['DISCONNECTED']:return _0xa0a408(0x267);case _0x4b36b6[_0xa0a408(0x1b0)]:return _0xa0a408(0x1b7);case _0x4b36b6[_0xa0a408(0x1a4)]:return _0xa0a408(0x1c6);case _0x4b36b6[_0xa0a408(0x1c8)]:switch(_0x26e1c1){case _0x1d2c28[_0xa0a408(0x24c)]:return _0xa0a408(0x23e);case _0x1d2c28[_0xa0a408(0x211)]:return _0xa0a408(0x1c4);case _0x1d2c28[_0xa0a408(0x254)]:return _0xa0a408(0x1f8);case _0x1d2c28[_0xa0a408(0x272)]:return _0xa0a408(0x17a);default:return'mcpStatus.failed';}case _0x4b36b6[_0xa0a408(0x15e)]:return _0xa0a408(0x24d);default:return _0xa0a408(0x134);}}function on(_0x358b2e,_0x231a67,_0x369783,_0x421968=!0x0){const _0x21079c=_0xc1882f,_0x31b0d3=pe(_0x358b2e,_0x231a67),_0x45ccf0=_0x369783['t'](_0x31b0d3);return _0x421968?_0x358b2e===_0x4b36b6[_0x21079c(0x12b)]&&_0x231a67===_0x1d2c28[_0x21079c(0x24c)]?_0x45ccf0+_0x21079c(0x1ec)+_0x369783['t']('mcpStatus.clickToConfigure'):_0x358b2e===_0x4b36b6[_0x21079c(0x1a4)]?''+_0x45ccf0:_0x358b2e===_0x4b36b6[_0x21079c(0x12b)]||_0x358b2e===_0x4b36b6['FAILED']?_0x45ccf0+_0x21079c(0x1ec)+_0x369783['t'](_0x21079c(0x247)):_0x45ccf0:_0x45ccf0;}function sn(_0x22fb1b){const _0x12cc34=_0xc1882f;switch(_0x22fb1b){case _0x4b36b6[_0x12cc34(0x1a4)]:return _0x12cc34(0x1a5);case _0x4b36b6['CONNECTING']:case _0x4b36b6[_0x12cc34(0x15e)]:return _0x12cc34(0x276);case _0x4b36b6[_0x12cc34(0x1c8)]:case _0x4b36b6[_0x12cc34(0x12b)]:return _0x12cc34(0x263);default:return'univer-text-gray-500';}}function cn(_0x16b680){const _0x5e568b=_0xc1882f,{status$:_0x5017d3,error$:_0x85225f,onConfigure:_0x2538bb,showClickable:_0x4f3c49=!0x0}=_0x16b680,_0x27bded=_0xdb40c8(_0x5017d3,_0x4b36b6[_0x5e568b(0x12b)]),_0xe7e660=_0xdb40c8(_0x85225f,_0x1d2c28['NONE']),_0x3e7153=_0x2ca0d6(_0x1e89fe),_0x20fa68=_0x27bded===_0x4b36b6[_0x5e568b(0x1a4)];_0x27bded===_0x4b36b6['CONNECTING']||_0x4b36b6[_0x5e568b(0x15e)];const _0x127f06=_0x3e7153['t'](pe(_0x27bded,_0xe7e660)),_0x48b086=on(_0x27bded,_0xe7e660,_0x3e7153,_0x4f3c49),_0x4e8b4f=sn(_0x27bded),_0x2ca821=_0x20fa68?_0x28c207(ge,{}):_0x28c207(de,{}),_0x16c3a0=_0x3300f8(()=>{_0x4f3c49&&_0x2538bb&&_0x2538bb();},[_0x4f3c49,_0x2538bb]);function _0x5e0636(){const _0x5ab5dd=_0x5e568b;return _0x4c6a3d(_0x5ab5dd(0x150),{'className':_0x3a12a5(_0x5ab5dd(0x12e),_0x4f3c49&&_0x2538bb&&_0x5ab5dd(0x1ce)),'role':_0x5ab5dd(0x22d),'onClick':_0x4f3c49&&_0x2538bb?_0x16c3a0:void 0x0,'children':[_0x28c207(_0x5ab5dd(0x150),{'className':_0x3a12a5(_0x5ab5dd(0x14e),_0x4e8b4f),'children':_0x2ca821}),_0x28c207(_0x5ab5dd(0x150),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x127f06})]});}return _0x28c207(_0x1cb187,{'title':_0x48b086,'placement':_0x5e568b(0x182),'children':_0x5e0636()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x409cbb,_0x42b852,_0x209a66,_0x3a2f27)=>{const _0xeade54=_0xc1882f;for(var _0xfbe352=_0x3a2f27>0x1?void 0x0:_0x3a2f27?an(_0x42b852,_0x209a66):_0x42b852,_0x9e4bf=_0x409cbb[_0xeade54(0x275)]-0x1,_0x593138;_0x9e4bf>=0x0;_0x9e4bf--)(_0x593138=_0x409cbb[_0x9e4bf])&&(_0xfbe352=_0x593138(_0xfbe352)||_0xfbe352);return _0xfbe352;},M=(_0x120bfa,_0x45ef6f)=>(_0x2b3334,_0x390043)=>_0x45ef6f(_0x2b3334,_0x390043,_0x120bfa);let O=class extends _0x2595b1{constructor(_0x41fd68,_0x4af2aa,_0x371d90,_0x2283ef){const _0x425931=_0xc1882f;super(),this[_0x425931(0x144)]=_0x41fd68,this[_0x425931(0x176)]=_0x4af2aa,this[_0x425931(0x142)]=_0x371d90,this[_0x425931(0x210)]=_0x2283ef,this['_initAutoConnect'](),this[_0x425931(0x15f)]();}['_initAutoConnect'](){const _0x48f041=_0xc1882f,_0x46b88e=this[_0x48f041(0x210)][_0x48f041(0x160)](y);_0x46b88e!=null&&_0x46b88e[_0x48f041(0x1ef)]&&(this['_connectionController'][_0x48f041(0x248)]=!0x1);}[_0xc1882f(0x15f)](){const _0x132e58=_0xc1882f,_0x9bb0ca=this['_configService']['getConfig'](y);(_0x9bb0ca==null?void 0x0:_0x9bb0ca[_0x132e58(0x1c5)])!==!0x1&&this[_0x132e58(0x246)](this['_uiPartsService'][_0x132e58(0x1bc)](_0x3ffd53['HEADER_MENU'],()=>{const _0xcd344f=_0x132e58;var _0x4eaa6a;return _0x176dad(un({'status$':this['_connectionController'][_0xcd344f(0x261)],'error$':this[_0xcd344f(0x176)]['connectionError$'],'onConfigure':()=>this[_0xcd344f(0x21d)](),'showClickable':(_0x4eaa6a=_0x9bb0ca==null?void 0x0:_0x9bb0ca[_0xcd344f(0x1ef)])!=null?_0x4eaa6a:!0x1}),this[_0xcd344f(0x144)]);}));}[_0xc1882f(0x21d)](){const _0x3440e8=_0xc1882f;this[_0x3440e8(0x144)][_0x3440e8(0x202)](I)[_0x3440e8(0x21b)]();}};O=ln([M(0x0,_0xc0b699(_0x3b274d)),M(0x1,_0xc0b699(_0x14ed3b)),M(0x2,_0x3377e8),M(0x3,_0x27ee87)],O);function un(_0x3aac29){const {status$:_0x5d5e2c,error$:_0xe1fa67,onConfigure:_0x3ae0df,showClickable:_0x38b1e1}=_0x3aac29;return function(){return _0x28c207(cn,{'status$':_0x5d5e2c,'error$':_0xe1fa67,'onConfigure':_0x3ae0df,'showClickable':_0x38b1e1});};}function vn(_0x11e8f4){const _0x1bb919=_0xc1882f;return{'id':V['id'],'type':_0x393433[_0x1bb919(0x17f)],'icon':_0x1bb919(0x27e),'title':_0x1bb919(0x1e0),'tooltip':_0x1bb919(0x1e0)};}const dn={[_0xf870d5['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x5ae9fb,_0x32de9e,_0x556d81,_0x32c8cb)=>{for(var _0x24f236=_0x32c8cb>0x1?void 0x0:_0x32c8cb?gn(_0x32de9e,_0x556d81):_0x32de9e,_0x15a076=_0x5ae9fb['length']-0x1,_0xb563eb;_0x15a076>=0x0;_0x15a076--)(_0xb563eb=_0x5ae9fb[_0x15a076])&&(_0x24f236=_0xb563eb(_0x24f236)||_0x24f236);return _0x24f236;},re=(_0x51ef73,_0x1240b9)=>(_0x18adea,_0x2ddf8e)=>_0x1240b9(_0x18adea,_0x2ddf8e,_0x51ef73);let D=class extends _0x2595b1{constructor(_0x6ec3c5,_0x2366d0){const _0x4c9841=_0xc1882f;super(),this[_0x4c9841(0x256)]=_0x6ec3c5,this['_menuManagerService']=_0x2366d0,this['_initializeCommands'](),this[_0x4c9841(0x1fa)]();}[_0xc1882f(0x260)](){const _0x2cfb05=_0xc1882f;[V][_0x2cfb05(0x154)](_0x305083=>{const _0x4295e5=_0x2cfb05;this[_0x4295e5(0x246)](this[_0x4295e5(0x256)][_0x4295e5(0x1de)](_0x305083));});}[_0xc1882f(0x1fa)](){const _0x3cbfd7=_0xc1882f;this[_0x3cbfd7(0x16b)][_0x3cbfd7(0x1be)](dn);}};D=pn([re(0x0,_0x5911d4),re(0x1,_0x3db316)],D);const Mn={'mcpStatus':{'disconnected':_0xc1882f(0x14a),'connecting':'MCP\x20Connecting...','connected':_0xc1882f(0x177),'failed':_0xc1882f(0x1f7),'retrying':_0xc1882f(0x24f),'unknown':_0xc1882f(0x1ed),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xc1882f(0x224),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xc1882f(0x273),'clickToConnect':_0xc1882f(0x1eb),'clickToConfigure':_0xc1882f(0x1b6)},'mcpConfig':{'title':_0xc1882f(0x1d9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xc1882f(0x226),'enableAuth':_0xc1882f(0x238),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xc1882f(0x199),'mcpClientConfig':_0xc1882f(0x199),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xc1882f(0x1d4),'configStep1':_0xc1882f(0x12c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xc1882f(0x237),'sessionId':_0xc1882f(0x1a1),'sessionIdDescription':_0xc1882f(0x19a),'authorizationDescription':_0xc1882f(0x1a2),'configParameters':_0xc1882f(0x20d),'maxRetries':_0xc1882f(0x26c),'save':_0xc1882f(0x25b),'saving':_0xc1882f(0x18e),'note1':_0xc1882f(0x1e5),'note2':_0xc1882f(0x1c0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xc1882f(0x196),'apiApplyInfo':{'title':_0xc1882f(0x1cc),'description':_0xc1882f(0x16c),'univerAiLabel':_0xc1882f(0x13e),'getStarted':_0xc1882f(0x1a8)},'validation':{'apiKeyRequired':_0xc1882f(0x279),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc1882f(0x1c2),'invalidApiKey':_0xc1882f(0x139)},'connectionStatus':{'disconnected':_0xc1882f(0x18c),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0xc1882f(0x1f6)},'connectionError':{'unauthorized':_0xc1882f(0x151),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xc1882f(0x18d)}}},An={'mcpStatus':{'disconnected':_0xc1882f(0x1bd),'connecting':_0xc1882f(0x17c),'connected':_0xc1882f(0x198),'failed':_0xc1882f(0x234),'retrying':'MCP\x20重连中...','unknown':_0xc1882f(0x170),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc1882f(0x204),'maxRetriesExceeded':_0xc1882f(0x1f3),'clickToConnect':_0xc1882f(0x13b),'clickToConfigure':_0xc1882f(0x167)},'mcpConfig':{'title':_0xc1882f(0x240),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0xc1882f(0x1a0),'apiKeyHint':_0xc1882f(0x152),'enableAuth':'启用身份验证','enableAuthHint':_0xc1882f(0x158),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xc1882f(0x26d),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0xc1882f(0x274),'configStep1':_0xc1882f(0x148),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xc1882f(0x25a),'sessionId':'会话ID','sessionIdDescription':_0xc1882f(0x1fe),'authorizationDescription':_0xc1882f(0x136),'configParameters':'配置参数:','maxRetries':_0xc1882f(0x1b8),'save':_0xc1882f(0x191),'saving':_0xc1882f(0x18a),'note1':_0xc1882f(0x215),'note2':_0xc1882f(0x12d),'configSaved':'配置保存成功','configError':_0xc1882f(0x201),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0xc1882f(0x217),'getStarted':_0xc1882f(0x1ea)},'validation':{'apiKeyRequired':_0xc1882f(0x249),'apiKeyTooShort':_0xc1882f(0x1df),'invalidConfig':_0xc1882f(0x189),'invalidApiKey':_0xc1882f(0x180)},'connectionStatus':{'disconnected':_0xc1882f(0x22e),'connecting':_0xc1882f(0x208),'connected':_0xc1882f(0x1b2),'failed':_0xc1882f(0x1f9),'retrying':_0xc1882f(0x1e6)},'connectionError':{'unauthorized':_0xc1882f(0x1d6),'sessionOccupied':_0xc1882f(0x175),'networkError':_0xc1882f(0x23d),'maxRetriesExceeded':_0xc1882f(0x223)}}};var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x3e9f0a,_0x3a8fdb,_0x1c980d)=>_0x3a8fdb in _0x3e9f0a?fn(_0x3e9f0a,_0x3a8fdb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c980d}):_0x3e9f0a[_0x3a8fdb]=_0x1c980d,mn=(_0x35fec3,_0x265eeb,_0x39efa4,_0x3bdd26)=>{const _0x12eeb8=_0xc1882f;for(var _0x1b48b5=_0x3bdd26>0x1?void 0x0:_0x3bdd26?hn(_0x265eeb,_0x39efa4):_0x265eeb,_0x47624f=_0x35fec3[_0x12eeb8(0x275)]-0x1,_0x7e8575;_0x47624f>=0x0;_0x47624f--)(_0x7e8575=_0x35fec3[_0x47624f])&&(_0x1b48b5=_0x7e8575(_0x1b48b5)||_0x1b48b5);return _0x1b48b5;},P=(_0x435430,_0x2afb2a)=>(_0x4a59b8,_0x2ff6ce)=>_0x2afb2a(_0x4a59b8,_0x2ff6ce,_0x435430),_n=(_0xbd3c01,_0x350559,_0x536bbe)=>Cn(_0xbd3c01,_0x350559+'',_0x536bbe);function _0x2b73(_0x4cd2a5,_0x47a36b){_0x4cd2a5=_0x4cd2a5-0x129;const _0x4918f8=_0x4918();let _0x2b7328=_0x4918f8[_0x4cd2a5];return _0x2b7328;}let j=class extends _0x59c2b1{constructor(_0x15d8b5=ie,_0xaaafc3,_0x2735de,_0x469a78,_0x593208,_0x348abc){const _0x270948=_0xc1882f;super(),this[_0x270948(0x173)]=_0x15d8b5,this['_injector']=_0xaaafc3,this[_0x270948(0x210)]=_0x2735de,this['_uiPartsService']=_0x469a78,this['_localStorageService']=_0x593208,this['_localeService']=_0x348abc;const {..._0x341112}=_0x4d7e38({},ie,this[_0x270948(0x173)]);this[_0x270948(0x210)][_0x270948(0x219)](y,_0x341112);}async[_0xc1882f(0x222)](){const _0x280286=_0xc1882f,_0x3d7bfc=[[O],[I],[D]];this[_0x280286(0x144)][_0x280286(0x23c)](_0x50d983)||_0x3d7bfc[_0x280286(0x1d5)]([_0x50d983,{'useClass':_0x3a96fd}]),_0x3d7bfc['forEach'](_0x49577e=>this[_0x280286(0x144)][_0x280286(0x277)](_0x49577e)),this[_0x280286(0x144)]['get'](O),this[_0x280286(0x144)][_0x280286(0x202)](I),this[_0x280286(0x144)][_0x280286(0x202)](D);}};_n(j,'pluginName',_0xc1882f(0x1fc)),j=mn([_0x28f4fc(_0x4a0391),P(0x1,_0xc0b699(_0x3b274d)),P(0x2,_0x27ee87),P(0x3,_0x3377e8),P(0x4,_0x1c57e0),P(0x5,_0xc0b699(_0x1e89fe))],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};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x57ee(){const _0x1f9ead=['Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6TRorOg','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','MCP\x20Disconnected','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','Invalid\x20configuration','15213PFRtrQ','Configuration\x20saved\x20successfully','15970ogfvGg','Session\x20ID','3891783pwajGA','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','Failed\x20to\x20save\x20configuration','337417kBQvun','Enable\x20Authentication','Univer\x20AI\x20Console','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','Save\x20Configuration','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','1645325FdUSrh','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Saving...','1192fmRoll','Connection\x20Failed','4098xkXNYQ','7469680SOGRsd','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4xbxpJB','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','739314XGZIvV','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x57ee=function(){return _0x1f9ead;};return _0x57ee();}const _0xfb25df=_0x201b;(function(_0x5bb265,_0x5489fa){const _0x3e60f4=_0x201b,_0xc52e75=_0x5bb265();while(!![]){try{const _0x1d15c8=-parseInt(_0x3e60f4(0x115))/0x1+-parseInt(_0x3e60f4(0xf3))/0x2*(-parseInt(_0x3e60f4(0xf5))/0x3)+parseInt(_0x3e60f4(0xf9))/0x4*(-parseInt(_0x3e60f4(0x123))/0x5)+-parseInt(_0x3e60f4(0x103))/0x6*(parseInt(_0x3e60f4(0x111))/0x7)+-parseInt(_0x3e60f4(0xf6))/0x8+-parseInt(_0x3e60f4(0xfc))/0x9+-parseInt(_0x3e60f4(0x10f))/0xa*(-parseInt(_0x3e60f4(0x10d))/0xb);if(_0x1d15c8===_0x5489fa)break;else _0xc52e75['push'](_0xc52e75['shift']());}catch(_0x3f3b27){_0xc52e75['push'](_0xc52e75['shift']());}}}(_0x57ee,0xbf860));const e={'mcpStatus':{'disconnected':_0xfb25df(0x107),'connecting':_0xfb25df(0x127),'connected':_0xfb25df(0x108),'failed':_0xfb25df(0x11c),'retrying':_0xfb25df(0x120),'unknown':_0xfb25df(0xf7),'unauthorized':_0xfb25df(0x11b),'sessionOccupied':_0xfb25df(0x124),'networkError':_0xfb25df(0xfa),'maxRetriesExceeded':_0xfb25df(0x11a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xfb25df(0x11e)},'mcpConfig':{'title':_0xfb25df(0x10b),'description':_0xfb25df(0x126),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xfb25df(0xf0),'apiKeyHint':_0xfb25df(0xfb),'enableAuth':_0xfb25df(0x116),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xfb25df(0x113),'mcpClientConfig':_0xfb25df(0x113),'configInstructions':_0xfb25df(0x109),'configStepTitle':_0xfb25df(0x106),'configStep1':_0xfb25df(0x122),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xfb25df(0x105),'sessionId':_0xfb25df(0x110),'sessionIdDescription':_0xfb25df(0x11f),'authorizationDescription':_0xfb25df(0xfe),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xfb25df(0x121),'save':_0xfb25df(0x11d),'saving':_0xfb25df(0xf2),'note1':_0xfb25df(0x10a),'note2':_0xfb25df(0x102),'configSaved':_0xfb25df(0x10e),'configError':_0xfb25df(0x114),'apiApplyInfo':{'title':_0xfb25df(0xf1),'description':_0xfb25df(0x112),'univerAiLabel':_0xfb25df(0x117),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0xfb25df(0x128),'apiKeyTooShort':_0xfb25df(0x125),'invalidConfig':_0xfb25df(0x10c),'invalidApiKey':_0xfb25df(0xf8)},'connectionStatus':{'disconnected':_0xfb25df(0x119),'connecting':'Connecting...','connected':_0xfb25df(0x101),'failed':_0xfb25df(0xf4),'retrying':_0xfb25df(0xff)},'connectionError':{'unauthorized':_0xfb25df(0x118),'sessionOccupied':_0xfb25df(0x100),'networkError':_0xfb25df(0x104),'maxRetriesExceeded':_0xfb25df(0xfd)}}},n=e;function _0x201b(_0xb51fe3,_0x592146){_0xb51fe3=_0xb51fe3-0xf0;const _0x57ee4b=_0x57ee();let _0x201b39=_0x57ee4b[_0xb51fe3];return _0x201b39;}export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1f180c=_0x3c59;(function(_0x3161c5,_0x10f0ac){const _0x3da811=_0x3c59,_0x216312=_0x3161c5();while(!![]){try{const _0x33bb22=parseInt(_0x3da811(0x1d0))/0x1+-parseInt(_0x3da811(0x1be))/0x2+-parseInt(_0x3da811(0x1c5))/0x3+parseInt(_0x3da811(0x1c3))/0x4*(parseInt(_0x3da811(0x1d5))/0x5)+parseInt(_0x3da811(0x1c4))/0x6*(parseInt(_0x3da811(0x1b6))/0x7)+-parseInt(_0x3da811(0x1d8))/0x8+parseInt(_0x3da811(0x1ce))/0x9;if(_0x33bb22===_0x10f0ac)break;else _0x216312['push'](_0x216312['shift']());}catch(_0x32ca62){_0x216312['push'](_0x216312['shift']());}}}(_0x54c5,0xdb26d));function _0x54c5(){const _0x5ae923=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3444266nQLcMx','API\x20Key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1776JUGKgN','3138QLksqw','2018319qDnnkB','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','Session\x20ID','Connecting...','MCP\x20Client\x20Configuration','MCP\x20Disconnected','MCP\x20Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','9995085dqwkyC','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1062995hiuddh','MCP\x20Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','660dZuQLR','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','6272tlSZdL','Max\x20Retries','MCP\x20Connection\x20Failed','Disconnected','MCP\x20Connected','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Saving...','Connected','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','Save\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','14203moqbiU','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x54c5=function(){return _0x5ae923;};return _0x54c5();}function _0x3c59(_0x4c7490,_0x152be3){_0x4c7490=_0x4c7490-0x1b1;const _0x54c57e=_0x54c5();let _0x3c5918=_0x54c57e[_0x4c7490];return _0x3c5918;}const e={'mcpStatus':{'disconnected':_0x1f180c(0x1cb),'connecting':_0x1f180c(0x1d1),'connected':_0x1f180c(0x1dc),'failed':_0x1f180c(0x1da),'retrying':_0x1f180c(0x1cc),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1f180c(0x1bb),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1f180c(0x1d2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1f180c(0x1d3)},'mcpConfig':{'title':_0x1f180c(0x1b2),'description':_0x1f180c(0x1cd),'apiKey':_0x1f180c(0x1bf),'apiKeyPlaceholder':_0x1f180c(0x1b5),'apiKeyHint':_0x1f180c(0x1cf),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1f180c(0x1b4),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1f180c(0x1ca),'configInstructions':_0x1f180c(0x1d7),'configStepTitle':_0x1f180c(0x1e2),'configStep1':_0x1f180c(0x1b9),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1f180c(0x1bc),'sessionId':_0x1f180c(0x1c8),'sessionIdDescription':_0x1f180c(0x1c6),'authorizationDescription':_0x1f180c(0x1e3),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1f180c(0x1d9),'save':_0x1f180c(0x1b3),'saving':_0x1f180c(0x1e0),'note1':_0x1f180c(0x1df),'note2':_0x1f180c(0x1de),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1f180c(0x1c7),'apiApplyInfo':{'title':_0x1f180c(0x1d4),'description':_0x1f180c(0x1bd),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1f180c(0x1b1)},'validation':{'apiKeyRequired':_0x1f180c(0x1dd),'apiKeyTooShort':_0x1f180c(0x1d6),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1f180c(0x1c1)},'connectionStatus':{'disconnected':_0x1f180c(0x1db),'connecting':_0x1f180c(0x1c9),'connected':_0x1f180c(0x1e1),'failed':'Connection\x20Failed','retrying':_0x1f180c(0x1ba)},'connectionError':{'unauthorized':_0x1f180c(0x1c2),'sessionOccupied':_0x1f180c(0x1c0),'networkError':_0x1f180c(0x1b8),'maxRetriesExceeded':_0x1f180c(0x1b7)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1a743f=_0x486f;function _0x486f(_0x11034d,_0x4849e3){_0x11034d=_0x11034d-0x179;const _0x3eb697=_0x3eb6();let _0x486ff5=_0x3eb697[_0x11034d];return _0x486ff5;}(function(_0x32aa24,_0x2d2f9d){const _0x326012=_0x486f,_0xc14451=_0x32aa24();while(!![]){try{const _0x56fe16=parseInt(_0x326012(0x194))/0x1+parseInt(_0x326012(0x18d))/0x2*(-parseInt(_0x326012(0x17a))/0x3)+parseInt(_0x326012(0x1ad))/0x4*(-parseInt(_0x326012(0x1a2))/0x5)+-parseInt(_0x326012(0x18e))/0x6*(parseInt(_0x326012(0x1a5))/0x7)+parseInt(_0x326012(0x19b))/0x8*(-parseInt(_0x326012(0x186))/0x9)+parseInt(_0x326012(0x17f))/0xa+parseInt(_0x326012(0x193))/0xb;if(_0x56fe16===_0x2d2f9d)break;else _0xc14451['push'](_0xc14451['shift']());}catch(_0x4ccd87){_0xc14451['push'](_0xc14451['shift']());}}}(_0x3eb6,0x79956));const e={'mcpStatus':{'disconnected':_0x1a743f(0x19d),'connecting':'MCP\x20Connecting...','connected':_0x1a743f(0x1a1),'failed':_0x1a743f(0x17c),'retrying':_0x1a743f(0x192),'unknown':_0x1a743f(0x191),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1a743f(0x184),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1a743f(0x183),'clickToConnect':_0x1a743f(0x187),'clickToConfigure':_0x1a743f(0x17b)},'mcpConfig':{'title':_0x1a743f(0x18a),'description':_0x1a743f(0x1aa),'apiKey':_0x1a743f(0x196),'apiKeyPlaceholder':_0x1a743f(0x18f),'apiKeyHint':_0x1a743f(0x195),'enableAuth':_0x1a743f(0x180),'enableAuthHint':_0x1a743f(0x179),'connectionInfo':_0x1a743f(0x190),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1a743f(0x1a4),'configStepTitle':_0x1a743f(0x18c),'configStep1':_0x1a743f(0x1ac),'configStep2':_0x1a743f(0x198),'configStep3':_0x1a743f(0x1a8),'sessionId':_0x1a743f(0x19a),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1a743f(0x1ae),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1a743f(0x1a0),'save':_0x1a743f(0x185),'saving':'Saving...','note1':_0x1a743f(0x1a9),'note2':_0x1a743f(0x17d),'configSaved':_0x1a743f(0x17e),'configError':_0x1a743f(0x1ab),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1a743f(0x182),'univerAiLabel':_0x1a743f(0x189),'getStarted':_0x1a743f(0x188)},'validation':{'apiKeyRequired':_0x1a743f(0x19f),'apiKeyTooShort':_0x1a743f(0x19c),'invalidConfig':_0x1a743f(0x1a6),'invalidApiKey':_0x1a743f(0x199)},'connectionStatus':{'disconnected':_0x1a743f(0x1a3),'connecting':_0x1a743f(0x18b),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x1a743f(0x1a7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1a743f(0x197),'networkError':_0x1a743f(0x19e),'maxRetriesExceeded':_0x1a743f(0x181)}}},n=e;export{n as default};function _0x3eb6(){const _0x457bf1=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','182288bXqDgI','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','Max\x20Retries','MCP\x20Connected','3011895zaUnPA','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','7VnQciW','Invalid\x20configuration','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','4ZJsGRT','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','1590918oNMWNx','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','4104590eSZtwa','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','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:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','Save\x20Configuration','126afsFPH','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','MCP\x20Configuration','Connecting...','Configuration\x20Steps:','2wGNOle','5527182jCShsY','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','MCP\x20Retrying...','18281351KGuxBK','798492KkUsxz','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key'];_0x3eb6=function(){return _0x457bf1;};return _0x3eb6();}
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18a106=_0x4629;function _0x34ec(){const _0x156939=['MCP:\x20Network\x20Error','184400OlYXRJ','MCP\x20Connecting...','2550332OvAKkT','Max\x20Retries','3694257eAQASt','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','68562270sRxUKQ','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','1518066LOTJlS','API\x20Key','145OTkACQ','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Univer\x20AI\x20Console','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','4031598QvVDLc','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','MCP\x20Connection\x20Failed','Connection\x20Failed','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','8jwhujS','Save\x20Configuration','14xOPeKG','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1283419KFqNuI','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration'];_0x34ec=function(){return _0x156939;};return _0x34ec();}function _0x4629(_0x4e199a,_0x54940c){_0x4e199a=_0x4e199a-0x8d;const _0x34ec01=_0x34ec();let _0x4629d3=_0x34ec01[_0x4e199a];return _0x4629d3;}(function(_0x42d3dc,_0xf20342){const _0x50411d=_0x4629,_0x3a17e4=_0x42d3dc();while(!![]){try{const _0x55283d=-parseInt(_0x50411d(0x9b))/0x1+-parseInt(_0x50411d(0xa4))/0x2+-parseInt(_0x50411d(0xad))/0x3+parseInt(_0x50411d(0xa2))/0x4*(-parseInt(_0x50411d(0xaf))/0x5)+parseInt(_0x50411d(0xb7))/0x6*(-parseInt(_0x50411d(0x95))/0x7)+parseInt(_0x50411d(0x93))/0x8*(-parseInt(_0x50411d(0xa6))/0x9)+parseInt(_0x50411d(0xa9))/0xa;if(_0x55283d===_0xf20342)break;else _0x3a17e4['push'](_0x3a17e4['shift']());}catch(_0x2011ac){_0x3a17e4['push'](_0x3a17e4['shift']());}}}(_0x34ec,0xaafdd));const e={'mcpStatus':{'disconnected':_0x18a106(0xb4),'connecting':_0x18a106(0xa3),'connected':_0x18a106(0x99),'failed':_0x18a106(0x8d),'retrying':_0x18a106(0xb2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x18a106(0xaa),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x18a106(0xa1),'maxRetriesExceeded':_0x18a106(0x9f),'clickToConnect':_0x18a106(0xab),'clickToConfigure':_0x18a106(0x8f)},'mcpConfig':{'title':_0x18a106(0x9d),'description':_0x18a106(0xa8),'apiKey':_0x18a106(0xae),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x18a106(0x97),'enableAuth':_0x18a106(0xb0),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x18a106(0xa0),'mcpClientConfig':_0x18a106(0xa0),'configInstructions':_0x18a106(0x9a),'configStepTitle':_0x18a106(0xbb),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x18a106(0xb6),'sessionId':_0x18a106(0xa7),'sessionIdDescription':_0x18a106(0x91),'authorizationDescription':_0x18a106(0x9c),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x18a106(0xa5),'save':_0x18a106(0x94),'saving':_0x18a106(0x92),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x18a106(0xb5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x18a106(0x96),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x18a106(0xba),'univerAiLabel':_0x18a106(0xb3),'getStarted':_0x18a106(0xb1)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x18a106(0xb9),'invalidConfig':_0x18a106(0xac),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x18a106(0x8e),'retrying':_0x18a106(0x9e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x18a106(0x98),'networkError':_0x18a106(0x90),'maxRetriesExceeded':_0x18a106(0xb8)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5de6(_0x2a2b54,_0x342dc5){_0x2a2b54=_0x2a2b54-0xe7;const _0x189b11=_0x189b();let _0x5de68f=_0x189b11[_0x2a2b54];return _0x5de68f;}const _0x51137d=_0x5de6;(function(_0xc12089,_0xe2624a){const _0x1c6581=_0x5de6,_0x3f38b8=_0xc12089();while(!![]){try{const _0x5696dc=-parseInt(_0x1c6581(0x103))/0x1+-parseInt(_0x1c6581(0xf9))/0x2*(parseInt(_0x1c6581(0xea))/0x3)+parseInt(_0x1c6581(0x110))/0x4+-parseInt(_0x1c6581(0x100))/0x5+parseInt(_0x1c6581(0xe8))/0x6+-parseInt(_0x1c6581(0x116))/0x7+parseInt(_0x1c6581(0xff))/0x8*(parseInt(_0x1c6581(0x104))/0x9);if(_0x5696dc===_0xe2624a)break;else _0x3f38b8['push'](_0x3f38b8['shift']());}catch(_0x1824fb){_0x3f38b8['push'](_0x3f38b8['shift']());}}}(_0x189b,0x5caef));function _0x189b(){const _0x2dd651=['MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','Session\x20ID','MCP\x20Connecting...','2ntssYw','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','264yqVmFH','3542265FhikIc','Configuration\x20saved\x20successfully','Save\x20Configuration','279865UOQSwY','342675EXqblV','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','2495248WRzIQH','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Disconnected','MCP\x20Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','5169276IPHKVr','Configuration\x20Parameters:','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2032758bdUERt','MCP:\x20Unauthorized','337989hMVqTA','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...'];_0x189b=function(){return _0x2dd651;};return _0x189b();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x51137d(0xf8),'connected':_0x51137d(0x10f),'failed':'MCP\x20Connection\x20Failed','retrying':_0x51137d(0x114),'unknown':_0x51137d(0x111),'unauthorized':_0x51137d(0xe9),'sessionOccupied':_0x51137d(0x108),'networkError':_0x51137d(0x118),'maxRetriesExceeded':_0x51137d(0xfa),'clickToConnect':_0x51137d(0xf6),'clickToConfigure':_0x51137d(0x10b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x51137d(0xe7),'apiKey':_0x51137d(0x109),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x51137d(0xeb),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x51137d(0xfc),'connectionInfo':_0x51137d(0xf1),'mcpClientConfig':_0x51137d(0xf1),'configInstructions':_0x51137d(0xee),'configStepTitle':_0x51137d(0x107),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x51137d(0xfe),'configStep3':_0x51137d(0xf2),'sessionId':_0x51137d(0xf7),'sessionIdDescription':_0x51137d(0xfd),'authorizationDescription':_0x51137d(0x10c),'configParameters':_0x51137d(0x117),'maxRetries':'Max\x20Retries','save':_0x51137d(0x102),'saving':_0x51137d(0xed),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x51137d(0x101),'configError':_0x51137d(0x105),'apiApplyInfo':{'title':_0x51137d(0x106),'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':_0x51137d(0x112),'getStarted':_0x51137d(0xf3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x51137d(0x115),'invalidConfig':_0x51137d(0xf5),'invalidApiKey':_0x51137d(0xef)},'connectionStatus':{'disconnected':_0x51137d(0x113),'connecting':_0x51137d(0xf0),'connected':_0x51137d(0xec),'failed':'Connection\x20Failed','retrying':_0x51137d(0xfb)},'connectionError':{'unauthorized':_0x51137d(0x10a),'sessionOccupied':_0x51137d(0x10d),'networkError':_0x51137d(0xf4),'maxRetriesExceeded':_0x51137d(0x10e)}}},n=e;export{n as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3b38(){const _0x166a48=['APIキーはこのブラウザのローカルに保存されます','未接続','564tpxVnz','接続済み','58984MCxBXE','無効なAPIキーです。キーが正しいか確認してください','2922484acCxsn','MCP設定','ネットワーク接続エラー。インターネット接続を確認してください','APIキーはローカルストレージに安全に保存されます','90zYUJOb','設定手順:','4008600FXFCXi','接続失敗','24630MxAPMV','954347sCjHxa','セッションIDが現在使用中です。後でもう一度お試しください','以下のJSON設定をコピー','MCPクライアント設定','APIキーを入力してください','702786Koaelo','設定が正常に保存されました','MCP:\x20最大再試行回数を超過','設定の変更は直ちに有効になります','セッションID','Univer\x20AIコンソール','APIキーは必須です','MCP\x20不明な状態','2DWvlRP','MCP\x20接続中...','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','設定を保存','設定パラメータ:','MCP:\x20ネットワークエラー','再試行中...','Bearerプレフィックス付きのAPIキー。','クリックしてMCPを設定','接続中...','最大再試行回数','APIキーは10文字以上である必要があります','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','数秒でAPIキーを取得','MCPを設定してAIでスプレッドシートを操作','MCP:\x20認証されていません','MCPクライアントの設定ファイルに設定を追加','MCP\x20接続済み','MCP:\x20セッションIDが使用中','MCPクライアントを再起動して設定を適用','最大再試行回数を超過しました。後でもう一度お試しください','4106925ZzTeSJ','APIキー','無効な設定'];_0x3b38=function(){return _0x166a48;};return _0x3b38();}const _0x3c5f5f=_0xcd8f;function _0xcd8f(_0xab39c9,_0x1c7d60){_0xab39c9=_0xab39c9-0xff;const _0x3b38ff=_0x3b38();let _0xcd8f2=_0x3b38ff[_0xab39c9];return _0xcd8f2;}(function(_0x163d9f,_0x1fab93){const _0x443dc5=_0xcd8f,_0x221efd=_0x163d9f();while(!![]){try{const _0x347e63=-parseInt(_0x443dc5(0x129))/0x1*(parseInt(_0x443dc5(0x102))/0x2)+parseInt(_0x443dc5(0x117))/0x3+-parseInt(_0x443dc5(0x120))/0x4+parseInt(_0x443dc5(0x128))/0x5*(parseInt(_0x443dc5(0x11c))/0x6)+parseInt(_0x443dc5(0x12e))/0x7+-parseInt(_0x443dc5(0x11e))/0x8*(-parseInt(_0x443dc5(0x124))/0x9)+parseInt(_0x443dc5(0x126))/0xa;if(_0x347e63===_0x1fab93)break;else _0x221efd['push'](_0x221efd['shift']());}catch(_0x4c52a1){_0x221efd['push'](_0x221efd['shift']());}}}(_0x3b38,0xb0477));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x3c5f5f(0x103),'connected':_0x3c5f5f(0x113),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x3c5f5f(0x101),'unauthorized':_0x3c5f5f(0x111),'sessionOccupied':_0x3c5f5f(0x114),'networkError':_0x3c5f5f(0x107),'maxRetriesExceeded':_0x3c5f5f(0x130),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x3c5f5f(0x10a)},'mcpConfig':{'title':_0x3c5f5f(0x121),'description':_0x3c5f5f(0x110),'apiKey':_0x3c5f5f(0x118),'apiKeyPlaceholder':_0x3c5f5f(0x12d),'apiKeyHint':_0x3c5f5f(0x11a),'enableAuth':'認証を有効にする','enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x3c5f5f(0x12c),'mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x3c5f5f(0x125),'configStep1':_0x3c5f5f(0x12b),'configStep2':_0x3c5f5f(0x112),'configStep3':_0x3c5f5f(0x115),'sessionId':_0x3c5f5f(0x132),'sessionIdDescription':_0x3c5f5f(0x10e),'authorizationDescription':_0x3c5f5f(0x109),'configParameters':_0x3c5f5f(0x106),'maxRetries':_0x3c5f5f(0x10c),'save':_0x3c5f5f(0x105),'saving':'保存中...','note1':_0x3c5f5f(0x131),'note2':_0x3c5f5f(0x123),'configSaved':_0x3c5f5f(0x12f),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':'APIキーとは?','description':_0x3c5f5f(0x104),'univerAiLabel':_0x3c5f5f(0xff),'getStarted':_0x3c5f5f(0x10f)},'validation':{'apiKeyRequired':_0x3c5f5f(0x100),'apiKeyTooShort':_0x3c5f5f(0x10d),'invalidConfig':_0x3c5f5f(0x119),'invalidApiKey':_0x3c5f5f(0x11f)},'connectionStatus':{'disconnected':_0x3c5f5f(0x11b),'connecting':_0x3c5f5f(0x10b),'connected':_0x3c5f5f(0x11d),'failed':_0x3c5f5f(0x127),'retrying':_0x3c5f5f(0x108)},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x3c5f5f(0x12a),'networkError':_0x3c5f5f(0x122),'maxRetriesExceeded':_0x3c5f5f(0x116)}}};export{e as default};
|