@univerjs-pro/mcp-ui 0.10.13-nightly.202510290902 → 0.10.14-nightly.202511031023
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/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.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/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.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/ko-KR.js +1 -1
- package/lib/locale/ru-RU.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/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.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 _0x4d1dd5=_0x593e;(function(_0x5620c6,_0x2077b8){const _0x5b56ff=_0x593e,_0x2f3925=_0x5620c6();while(!![]){try{const _0x37e54c=-parseInt(_0x5b56ff(0x2d1))/0x1*(-parseInt(_0x5b56ff(0x254))/0x2)+-parseInt(_0x5b56ff(0x21f))/0x3*(-parseInt(_0x5b56ff(0x262))/0x4)+-parseInt(_0x5b56ff(0x1fa))/0x5+-parseInt(_0x5b56ff(0x2b0))/0x6*(parseInt(_0x5b56ff(0x1f8))/0x7)+-parseInt(_0x5b56ff(0x24a))/0x8+parseInt(_0x5b56ff(0x2c3))/0x9+-parseInt(_0x5b56ff(0x21c))/0xa;if(_0x37e54c===_0x2077b8)break;else _0x2f3925['push'](_0x2f3925['shift']());}catch(_0x23552c){_0x2f3925['push'](_0x2f3925['shift']());}}}(_0x53df,0x1a379));var Pe=Object[_0x4d1dd5(0x2b9)],Ee=(_0x1cafe6,_0x3ba463,_0x16ffc4)=>_0x3ba463 in _0x1cafe6?Pe(_0x1cafe6,_0x3ba463,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16ffc4}):_0x1cafe6[_0x3ba463]=_0x16ffc4,x=(_0x609ced,_0x5cc3df,_0xa6d65a)=>Ee(_0x609ced,typeof _0x5cc3df!=_0x4d1dd5(0x207)?_0x5cc3df+'':_0x5cc3df,_0xa6d65a);import{LocaleService as _0x408b12,Inject as _0x34e389,Injector as _0x54f8e1,IConfigService as _0x23775e,ILocalStorageService as _0x1ee390,ILogService as _0x37ca18,Disposable as _0x597623,CommandType as _0x391ddb,ICommandService as _0x398280,DependentOn as _0x249ad5,Plugin as _0x300405,merge as _0x7e5e4c}from'@univerjs/core';import{jsxs as _0x3f5fa9,jsx as _0x3769df}from'react/jsx-runtime';import{MCPConnectionStatus as _0x48b73c,MCPConnectionError as _0x35c0c6,MCPConnectionController as _0x267a9e,MCP_PLUGIN_CONFIG_KEY as _0x7b65c8,UniverMCPPlugin as _0x51a3dd}from'@univerjs-pro/mcp';import{clsx as _0x3fcf1e,Input as _0x17e85f,Button as _0x25ca29,MessageType as _0xcd028b,Tooltip as _0x197f74}from'@univerjs/design';import{useDependency as _0x25ce64,useObservable as _0x464025,IUIPartsService as _0x5a2e5c,IDialogService as _0x92f93c,IMessageService as _0x2aa2ba,ComponentManager as _0xe137b3,connectInjector as _0x3ef36b,BuiltInUIPart as _0x36e436,MenuItemType as _0x5b6cd8,RibbonStartGroup as _0x246484,IMenuManagerService as _0x3b3a79}from'@univerjs/ui';import{BehaviorSubject as _0x20d690}from'rxjs';import{useRef as _0x1d5775,createElement as _0x23810,forwardRef as _0x3a4b3a,useState as _0x2c6501,useCallback as _0x12c1e8}from'react';import{ISocketService as _0x43eddd,WebSocketService as _0x3f40b3}from'@univerjs/network';function b({ref:_0xe5a624,..._0x294194}){const _0x521b5b=_0x4d1dd5,{icon:_0x14b07a,id:_0x10d817,className:_0x279cff,extend:_0x326134,..._0x1f3838}=_0x294194,_0x439812=(_0x521b5b(0x1d2)+_0x10d817+'\x20'+(_0x279cff||''))[_0x521b5b(0x2bd)](),_0x4023f0=_0x1d5775('_'+We());return ae(_0x14b07a,''+_0x10d817,{'defIds':_0x14b07a['defIds'],'idSuffix':_0x4023f0[_0x521b5b(0x1b3)]},{'ref':_0xe5a624,'className':_0x439812,..._0x1f3838},_0x326134);}function ae(_0x363a85,_0xc32d03,_0x5af1d2,_0x301776,_0x5b34f0){const _0x3fc120=_0x4d1dd5;return _0x23810(_0x363a85[_0x3fc120(0x21a)],{'key':_0xc32d03,...Ye(_0x363a85,_0x5af1d2,_0x5b34f0),..._0x301776},(Ze(_0x363a85,_0x5af1d2)[_0x3fc120(0x235)]||[])[_0x3fc120(0x256)]((_0x50cebd,_0x2235f7)=>ae(_0x50cebd,_0xc32d03+'-'+_0x363a85['tag']+'-'+_0x2235f7,_0x5af1d2,void 0x0,_0x5b34f0)));}function Ye(_0x2fff4a,_0x2dbe83,_0x4069e9){const _0x4f806f=_0x4d1dd5,_0x2d9e3b={..._0x2fff4a[_0x4f806f(0x2c2)]};_0x4069e9!=null&&_0x4069e9['colorChannel1']&&_0x2d9e3b[_0x4f806f(0x2c9)]===_0x4f806f(0x28c)&&(_0x2d9e3b['fill']=_0x4069e9['colorChannel1']),_0x2fff4a['tag']===_0x4f806f(0x264)&&_0x2d9e3b['id']&&(_0x2d9e3b['id']=_0x2d9e3b['id']+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x55a9fd,_0x1bd28e])=>{const _0x3b9d54=_0x4f806f;_0x55a9fd===_0x3b9d54(0x264)&&typeof _0x1bd28e==_0x3b9d54(0x2bc)&&(_0x2d9e3b[_0x55a9fd]=_0x1bd28e[_0x3b9d54(0x2e7)](/url\(#(.*)\)/,_0x3b9d54(0x270)+_0x2dbe83[_0x3b9d54(0x247)]+')'));});const {defIds:_0x563d69}=_0x2dbe83;return!_0x563d69||_0x563d69['length']===0x0||(_0x2fff4a[_0x4f806f(0x21a)]===_0x4f806f(0x236)&&_0x2d9e3b[_0x4f806f(0x249)]&&(_0x2d9e3b[_0x4f806f(0x249)]=_0x2d9e3b[_0x4f806f(0x249)]+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x4e313e,_0x237767])=>{const _0x38abe0=_0x4f806f;typeof _0x237767==_0x38abe0(0x2bc)&&(_0x2d9e3b[_0x4e313e]=_0x237767[_0x38abe0(0x2e7)](/url\(#(.*)\)/,_0x38abe0(0x270)+_0x2dbe83[_0x38abe0(0x247)]+')'));})),_0x2d9e3b;}function Ze(_0x89de5f,_0x2e0acc){const _0x5ed609=_0x4d1dd5;var _0x47f562;const {defIds:_0x59e9b2}=_0x2e0acc;return!_0x59e9b2||_0x59e9b2['length']===0x0?_0x89de5f:_0x89de5f[_0x5ed609(0x21a)]===_0x5ed609(0x29f)&&((_0x47f562=_0x89de5f[_0x5ed609(0x235)])!=null&&_0x47f562[_0x5ed609(0x255)])?{..._0x89de5f,'children':_0x89de5f[_0x5ed609(0x235)][_0x5ed609(0x256)](_0x1d29fb=>typeof _0x1d29fb[_0x5ed609(0x2c2)]['id']=='string'&&_0x59e9b2&&_0x59e9b2[_0x5ed609(0x2a3)](_0x1d29fb['attrs']['id'])?{..._0x1d29fb,'attrs':{..._0x1d29fb[_0x5ed609(0x2c2)],'id':_0x1d29fb[_0x5ed609(0x2c2)]['id']+_0x2e0acc[_0x5ed609(0x247)]}}:_0x1d29fb)}:_0x89de5f;}function We(){const _0x59c8a2=_0x4d1dd5;return Math[_0x59c8a2(0x20e)]()[_0x59c8a2(0x22a)](0x24)['substring'](0x2,0x8);}b['displayName']=_0x4d1dd5(0x242);const qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x279),'fillRule':_0x4d1dd5(0x2a6),'clipRule':_0x4d1dd5(0x2a6)}}]},le=_0x3a4b3a(function(_0x3ef9b1,_0x2f6290){const _0x3097bc=_0x4d1dd5;return _0x23810(b,Object[_0x3097bc(0x2d7)]({},_0x3ef9b1,{'id':_0x3097bc(0x20c),'ref':_0x2f6290,'icon':qe}));});le[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x253);const Xe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':'1em'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'currentColor','d':_0x4d1dd5(0x219)}}]},ue=_0x3a4b3a(function(_0x3b7e6b,_0x4c8d54){const _0x39a96b=_0x4d1dd5;return _0x23810(b,Object[_0x39a96b(0x2d7)]({},_0x3b7e6b,{'id':_0x39a96b(0x274),'ref':_0x4c8d54,'icon':Xe}));});ue['displayName']=_0x4d1dd5(0x1c7);function _0x593e(_0x3479c7,_0x181a42){const _0x53dfa9=_0x53df();return _0x593e=function(_0x593e9c,_0xf0325){_0x593e9c=_0x593e9c-0x1aa;let _0x3366cc=_0x53dfa9[_0x593e9c];return _0x3366cc;},_0x593e(_0x3479c7,_0x181a42);}const Je={'tag':'svg','attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1cb)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1c5)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4d1dd5(0x2a6),'clipRule':'evenodd'}}]},ve=_0x3a4b3a(function(_0x4a8c86,_0x50c991){const _0x1b3318=_0x4d1dd5;return _0x23810(b,Object[_0x1b3318(0x2d7)]({},_0x4a8c86,{'id':_0x1b3318(0x1e6),'ref':_0x50c991,'icon':Je}));});ve[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x2a4);const Qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1d3)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x294),'strokeLinecap':_0x4d1dd5(0x2b2),'strokeLinejoin':_0x4d1dd5(0x2b2),'strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':_0x4d1dd5(0x2f7)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x2eb),'d':_0x4d1dd5(0x2c8)}}]}]}],'defIds':[_0x4d1dd5(0x2f7)]},de=_0x3a4b3a(function(_0x36b965,_0x9db2d7){const _0x142199=_0x4d1dd5;return _0x23810(b,Object[_0x142199(0x2d7)]({},_0x36b965,{'id':_0x142199(0x25f),'ref':_0x9db2d7,'icon':Qe}));});de[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x1af);const en={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':_0x4d1dd5(0x293),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1e1)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':'currentColor','d':_0x4d1dd5(0x1ef),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x4d1dd5(0x290)]},ge=_0x3a4b3a(function(_0x3b9ce3,_0x22820c){const _0x20f9e4=_0x4d1dd5;return _0x23810(b,Object['assign']({},_0x3b9ce3,{'id':_0x20f9e4(0x1ba),'ref':_0x22820c,'icon':en}));});ge['displayName']=_0x4d1dd5(0x210);function nn(_0x46f1ae){const _0x320b33=_0x4d1dd5;var _0xc07e75,_0x8190a9;const {mcpCoreConfig:_0xff5682,onSave:_0x45f738,loading:_0x47d791=!0x1,config:_0x3d805a,connectionStatus$:_0x1820e7,connectionError$:_0x5013bf,currentApiKey$:_0x2e95d3,currentSessionId$:_0x2b25c0}=_0x46f1ae,_0x233f96=_0x25ce64(_0x408b12),_0x3edbc2=_0x464025(_0x1820e7,_0x48b73c[_0x320b33(0x2c5)]),_0x1a7c75=_0x464025(_0x5013bf,_0x35c0c6[_0x320b33(0x239)]),_0x2893dc=_0x464025(_0x2b25c0,''),_0x1225d1=_0x464025(_0x2e95d3,''),[_0x51716a,_0x5893be]=_0x2c6501(_0x1225d1||''),_0x161dd9=!0x0,_0x2ef91d=_0x3d805a[_0x320b33(0x2ce)]&&_0xff5682[_0x320b33(0x2ff)]&&(_0xff5682[_0x320b33(0x2ff)]['includes']('univer.plus')||_0xff5682[_0x320b33(0x2ff)]['includes'](_0x320b33(0x27b))),_0x3b0110=(_0xc07e75=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0xc07e75[_0x320b33(0x2a3)](_0x320b33(0x28b)),_0x4a97e4=(_0x8190a9=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0x8190a9[_0x320b33(0x2a3)](_0x320b33(0x27b)),_0x199aee=_0x3b0110?_0x320b33(0x1ac):_0x320b33(0x250),_0x598e64=_0x3d805a[_0x320b33(0x2ce)]&&(_0x3b0110||_0x4a97e4),[_0x112b52,_0x4abfdd]=_0x2c6501(!_0x51716a['trim']()),_0x330892=(_0x19d5ca,_0x4c12ff)=>{const _0x1656f3=_0x320b33;if(_0x4c12ff===_0x35c0c6[_0x1656f3(0x2ad)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x19d5ca){case _0x48b73c[_0x1656f3(0x25c)]:return _0x1656f3(0x271);case _0x48b73c[_0x1656f3(0x23c)]:case _0x48b73c[_0x1656f3(0x288)]:return _0x1656f3(0x1f4);case _0x48b73c[_0x1656f3(0x2e4)]:return _0x1656f3(0x298);default:return _0x1656f3(0x1bf);}},_0x1d4dbb=(_0x16a3b3,_0x27b5c8)=>{const _0x548dc7=_0x320b33;if(_0x27b5c8===_0x35c0c6['UNAUTHORIZED'])return _0x548dc7(0x1ee);switch(_0x16a3b3){case _0x48b73c[_0x548dc7(0x25c)]:return _0x548dc7(0x206);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x548dc7(0x288)]:return _0x548dc7(0x27f);case _0x48b73c[_0x548dc7(0x2e4)]:return _0x548dc7(0x1ee);default:return _0x548dc7(0x1b9);}},_0x39af03=_0x3cb69c=>{const _0x112da8=_0x320b33;switch(_0x3cb69c){case _0x48b73c['CONNECTED']:return _0x233f96['t'](_0x112da8(0x1fd));case _0x48b73c['CONNECTING']:return _0x233f96['t'](_0x112da8(0x226));case _0x48b73c['FAILED']:return _0x233f96['t'](_0x112da8(0x26c));case _0x48b73c[_0x112da8(0x288)]:return _0x233f96['t']('mcpConfig.connectionStatus.retrying');default:return _0x233f96['t'](_0x112da8(0x2be));}},_0x20c556=_0x2af9ce=>{const _0x288f33=_0x320b33;switch(_0x2af9ce){case _0x35c0c6[_0x288f33(0x2ad)]:return _0x233f96['t'](_0x288f33(0x275));case _0x35c0c6[_0x288f33(0x20a)]:return _0x233f96['t'](_0x288f33(0x203));case _0x35c0c6[_0x288f33(0x28a)]:return _0x233f96['t'](_0x288f33(0x246));case _0x35c0c6[_0x288f33(0x269)]:return _0x233f96['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4f1774=_0x12c1e8(()=>{const _0x2a70a2=_0x320b33,_0xfd2b1a={..._0xff5682,'apiKey':_0x51716a[_0x2a70a2(0x2bd)](),'enableAuth':_0x161dd9};_0x45f738(_0xfd2b1a);},[_0xff5682,_0x51716a,_0x161dd9,_0x45f738]),_0x2e8bfd=_0x51716a['trim']()['length']>0x0;return _0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e9),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2f9),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x233),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x25d),'children':'⚙'})}),_0x3769df(_0x320b33(0x28d),{'children':_0x3769df('p',{'className':_0x320b33(0x23d),'children':_0x233f96['t'](_0x320b33(0x2c0))})})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x28f),_0x330892(_0x3edbc2,_0x1a7c75)),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x258),_0x1d4dbb(_0x3edbc2,_0x1a7c75))}),_0x3769df('span',{'className':_0x320b33(0x1f1),'children':_0x39af03(_0x3edbc2)})]})}),_0x1a7c75!==_0x35c0c6[_0x320b33(0x239)]&&(_0x3edbc2===_0x48b73c[_0x320b33(0x2e4)]||_0x1a7c75===_0x35c0c6[_0x320b33(0x2ad)])&&_0x3769df('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':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1ca),'children':'⚠️'}),_0x3769df('p',{'className':_0x320b33(0x1c2),'children':_0x20c556(_0x1a7c75)})]})})]}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x213),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-5','children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-2','children':[_0x3f5fa9(_0x320b33(0x278),{'className':_0x320b33(0x240),'children':[_0x3769df('span',{'children':'🔑'}),'\x20',_0x233f96['t'](_0x320b33(0x20d)),_0x3769df(_0x320b33(0x259),{'className':'univer-text-red-500','children':'*'}),_0x2ef91d&&_0x3769df('a',{'className':_0x320b33(0x1c4),'title':_0x233f96['t']('mcpConfig.apiApplyInfo.title'),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x0),'children':_0x3769df(ve,{})})]}),_0x3769df(_0x17e85f,{'type':'text','placeholder':_0x233f96['t'](_0x320b33(0x24f)),'value':_0x51716a,'disabled':_0x47d791,'autoComplete':_0x320b33(0x2ef),'onChange':_0x5893be}),_0x3769df('p',{'className':_0x320b33(0x2a7),'children':_0x233f96['t']('mcpConfig.apiKeyHint')})]}),_0x2ef91d&&_0x112b52&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2ac),'children':[_0x3769df('a',{'className':_0x320b33(0x2fa),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x1),'children':_0x3769df(ue,{'className':'univer-size-4'})}),_0x3f5fa9('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2c6),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x21d),'children':'🚀'})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex-1','children':[_0x3769df('h4',{'className':_0x320b33(0x2d4),'children':_0x233f96['t']('mcpConfig.apiApplyInfo.title')}),_0x3769df('p',{'className':_0x320b33(0x237),'children':_0x233f96['t'](_0x320b33(0x1b5))}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x22b),'children':_0x598e64&&_0x3f5fa9('a',{'className':_0x320b33(0x29e),'href':_0x199aee,'target':_0x320b33(0x2df),'rel':'noopener\x20noreferrer','children':[_0x3769df(_0x320b33(0x259),{'children':'🤖'}),_0x233f96['t'](_0x320b33(0x252)),_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1fc),'children':'↗'})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1c6),'children':['✨','\x20',_0x233f96['t'](_0x320b33(0x2dc))]})]})]})]}),_0x3d805a[_0x320b33(0x2ce)]&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x248),'children':[_0x3f5fa9('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x3769df(_0x320b33(0x259),{'children':'🔗'}),'\x20',_0x233f96['t']('mcpConfig.connectionInfo')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2d0),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1d0),'children':[_0x3769df('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x233f96['t'](_0x320b33(0x2d6))}),_0x3f5fa9('div',{'className':'univer-space-y-2','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x272))}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x25b),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'1'}),_0x233f96['t'](_0x320b33(0x2b3))]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x233f96['t']('mcpConfig.configStep2')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'3'}),_0x233f96['t'](_0x320b33(0x28e))]})]})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x261),'children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x320b33(0x263)}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x1f9),'children':_0x3769df(_0x320b33(0x1ae),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x320b33(0x2a9)]({'mcpServers':{'univer':{'url':_0x320b33(0x2d3)+(_0x2893dc||'<SESSION_ID>'),'type':_0x320b33(0x265),'headers':{'Authorization':_0x320b33(0x297)+(_0x51716a||_0x320b33(0x251))}}}},null,0x2)})})]}),_0x3f5fa9('div',{'className':'univer-space-y-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x1e3))}),_0x3f5fa9('div',{'className':_0x320b33(0x261),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x212),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2cc),'children':_0x320b33(0x1d9)}),_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x233f96['t'](_0x320b33(0x214))})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x283)}),_0x3f5fa9('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x320b33(0x243)}),_0x3769df('div',{'className':_0x320b33(0x2a7),'children':_0x233f96['t'](_0x320b33(0x2a8))})]})]})]})]})]})]}),_0x3769df(_0x25ca29,{'onClick':_0x4f1774,'disabled':!_0x2e8bfd||_0x47d791,'className':_0x320b33(0x221),'children':_0x47d791?_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'children':'⟲'}),_0x233f96['t'](_0x320b33(0x23a))]}):_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(le,{}),_0x233f96['t']('mcpConfig.save')]})}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e3),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x259),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x3f5fa9('div',{'className':_0x320b33(0x2d8),'children':[_0x3769df('div',{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x23e))]}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x2e8))]})]})]})})]})})]});}const y=_0x4d1dd5(0x1c1),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4d1dd5(0x286)],tn=(_0xc6c6ae,_0x5f3c84,_0x2bcdf4,_0x56654a)=>{const _0x59ccf9=_0x4d1dd5;for(var _0x3cc091=_0x56654a>0x1?void 0x0:_0x56654a?rn(_0x5f3c84,_0x2bcdf4):_0x5f3c84,_0x34387a=_0xc6c6ae[_0x59ccf9(0x255)]-0x1,_0x489e4e;_0x34387a>=0x0;_0x34387a--)(_0x489e4e=_0xc6c6ae[_0x34387a])&&(_0x3cc091=_0x489e4e(_0x3cc091)||_0x3cc091);return _0x3cc091;},d=(_0x14529f,_0x2ca950)=>(_0x52e4b7,_0x1c1aa4)=>_0x2ca950(_0x52e4b7,_0x1c1aa4,_0x14529f);const U=_0x4d1dd5(0x26d),L=_0x4d1dd5(0x1b7);let I=class extends _0x597623{constructor(_0x5240f0,_0x38427c,_0x53e971,_0x4911cd,_0x184ea0,_0x3fa2ca,_0x3c1730,_0x405dc7,_0x162f59,_0x52384a){const _0x371b5c=_0x4d1dd5;super(),x(this,_0x371b5c(0x223),new _0x20d690(!0x1)),x(this,_0x371b5c(0x22f),new _0x20d690({})),x(this,_0x371b5c(0x25a),new _0x20d690({})),x(this,_0x371b5c(0x1cc),new _0x20d690('')),x(this,_0x371b5c(0x2e6),async _0xe62755=>{const _0x28778d=_0x371b5c;var _0x1d179c,_0x30f54e;this['_loading$'][_0x28778d(0x2f2)](!0x0);try{const _0x8866d7=await this[_0x28778d(0x216)](_0xe62755);if(!_0x8866d7['isValid']){this[_0x28778d(0x202)]['show']({'type':_0xcd028b['Error'],'content':_0x8866d7[_0x28778d(0x1de)]||this[_0x28778d(0x2cd)]['t'](_0x28778d(0x1c9))});return;}_0xe62755[_0x28778d(0x22d)]?await this[_0x28778d(0x296)][_0x28778d(0x234)](U,_0xe62755[_0x28778d(0x22d)][_0x28778d(0x2bd)]()):await this[_0x28778d(0x296)]['removeItem'](U),this[_0x28778d(0x1cc)][_0x28778d(0x2f2)](((_0x1d179c=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x1d179c['trim']())||''),this[_0x28778d(0x23b)][_0x28778d(0x2ab)]({'Authorization':_0x28778d(0x297)+((_0x30f54e=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x30f54e['trim']())}),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b[_0x28778d(0x1b8)],'content':this['_localeService']['t'](_0x28778d(0x2b8))}),setTimeout(()=>{const _0x15a1ce=_0x28778d;this[_0x15a1ce(0x211)][_0x15a1ce(0x289)](L);},0x320);}catch(_0x12bc90){this[_0x28778d(0x2dd)][_0x28778d(0x26b)](_0x28778d(0x2ba),_0x12bc90),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b['Error'],'content':this[_0x28778d(0x2cd)]['t']('mcpConfig.configError')});}finally{this[_0x28778d(0x223)][_0x28778d(0x2f2)](!0x1);}}),(this[_0x371b5c(0x2fb)]=_0x5240f0,this[_0x371b5c(0x1d1)]=_0x38427c,this['_configService']=_0x53e971,this['_localStorageService']=_0x4911cd,this[_0x371b5c(0x211)]=_0x184ea0,this[_0x371b5c(0x202)]=_0x3fa2ca,this['_componentManager']=_0x3c1730,this['_localeService']=_0x405dc7,this[_0x371b5c(0x2dd)]=_0x162f59,this['_mcpConnectionController']=_0x52384a,this['_initConfigSync'](),this[_0x371b5c(0x1dc)](),this['_registerComponent']());}['showConfigPanel'](){const _0x3ef5c7=_0x4d1dd5,_0x465e91=this[_0x3ef5c7(0x2c1)][_0x3ef5c7(0x20f)](y);_0x465e91!=null&&_0x465e91[_0x3ef5c7(0x2ce)]&&this[_0x3ef5c7(0x211)][_0x3ef5c7(0x2da)]({'id':L,'title':{'title':this[_0x3ef5c7(0x2cd)]['t'](_0x3ef5c7(0x20b))},'children':{'label':_0x3ef5c7(0x2e1)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x272583=_0x3ef5c7;this['_dialogService'][_0x272583(0x289)](L);}});}['getCurrentConfig'](){const _0x3c3bce=_0x4d1dd5;return this[_0x3c3bce(0x22f)][_0x3c3bce(0x238)];}['_registerComponent'](){const _0x33370b=_0x4d1dd5;this[_0x33370b(0x2f0)](this[_0x33370b(0x2f5)][_0x33370b(0x205)](_0x33370b(0x2e1),this[_0x33370b(0x292)]()));}[_0x4d1dd5(0x292)](){const _0x3f4861=_0x4d1dd5;return _0x3ef36b(()=>{const _0x58bcd1=_0x593e;var _0x338a21,_0x16edf6,_0x2225ca;return _0x3769df(nn,{'config':this[_0x58bcd1(0x25a)][_0x58bcd1(0x238)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x58bcd1(0x238)],'currentApiKey$':this[_0x58bcd1(0x1cc)],'onSave':this[_0x58bcd1(0x2e6)],'loading':this[_0x58bcd1(0x223)][_0x58bcd1(0x238)],'connectionStatus$':(_0x338a21=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x338a21[_0x58bcd1(0x222)],'connectionError$':(_0x16edf6=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x16edf6[_0x58bcd1(0x2fe)],'currentSessionId$':(_0x2225ca=this['_mcpConnectionController'])==null?void 0x0:_0x2225ca[_0x58bcd1(0x1db)]});},this[_0x3f4861(0x2fb)]);}[_0x4d1dd5(0x268)](){const _0x1698bd=_0x4d1dd5;this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](_0x7b65c8)[_0x1698bd(0x287)](_0xc1a274=>{const _0x3acc2d=_0x1698bd;this['_mcpCoreConfig$'][_0x3acc2d(0x2f2)](_0xc1a274||{});}));const _0x217723=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](_0x7b65c8);this[_0x1698bd(0x22f)][_0x1698bd(0x2f2)](_0x217723||{}),this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](y)['subscribe'](_0x57845c=>{const _0x4a18d1=_0x1698bd;this[_0x4a18d1(0x25a)][_0x4a18d1(0x2f2)](_0x57845c||{});}));const _0x9bff26=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](y);this[_0x1698bd(0x25a)][_0x1698bd(0x2f2)](_0x9bff26||{});}async[_0x4d1dd5(0x1dc)](){const _0xa8e201=_0x4d1dd5,_0x4b4e97=this[_0xa8e201(0x2c1)]['getConfig'](y);if(!(_0x4b4e97!=null&&_0x4b4e97[_0xa8e201(0x2ce)]))return;const _0x559c42=await this['_localStorageService'][_0xa8e201(0x1aa)](U);_0x559c42&&(this[_0xa8e201(0x23b)][_0xa8e201(0x2ab)]({'Authorization':_0xa8e201(0x297)+_0x559c42}),this[_0xa8e201(0x1cc)][_0xa8e201(0x2f2)](_0x559c42));}async[_0x4d1dd5(0x216)](_0x53a1ed){const _0xd667a5=_0x4d1dd5;if(!_0x53a1ed[_0xd667a5(0x22d)]||_0x53a1ed['apiKey'][_0xd667a5(0x2bd)]()[_0xd667a5(0x255)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0xd667a5(0x2cd)]['t'](_0xd667a5(0x2c7))};try{const _0x55a76c=await this[_0xd667a5(0x2fb)][_0xd667a5(0x2ca)](_0x267a9e)[_0xd667a5(0x2e0)](_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]());return _0x55a76c[_0xd667a5(0x27c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x55a76c[_0xd667a5(0x26b)]||this[_0xd667a5(0x2cd)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x31af76){return console[_0xd667a5(0x2b7)](_0xd667a5(0x1e2),_0x31af76),{'isValid':!0x0};}}};I=tn([d(0x0,_0x34e389(_0x54f8e1)),d(0x1,_0x5a2e5c),d(0x2,_0x23775e),d(0x3,_0x1ee390),d(0x4,_0x92f93c),d(0x5,_0x2aa2ba),d(0x6,_0x34e389(_0xe137b3)),d(0x7,_0x34e389(_0x408b12)),d(0x8,_0x37ca18),d(0x9,_0x34e389(_0x267a9e))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x391ddb[_0x4d1dd5(0x224)],'handler':async(_0x3fb182,_0xe2fd90)=>(_0x3fb182['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x3fe6d3,_0x53052f){const _0xdc98f6=_0x4d1dd5;switch(_0x3fe6d3){case _0x48b73c[_0xdc98f6(0x2c5)]:return _0xdc98f6(0x26f);case _0x48b73c[_0xdc98f6(0x23c)]:return _0xdc98f6(0x1c3);case _0x48b73c[_0xdc98f6(0x25c)]:return _0xdc98f6(0x1ad);case _0x48b73c[_0xdc98f6(0x2e4)]:switch(_0x53052f){case _0x35c0c6[_0xdc98f6(0x2ad)]:return _0xdc98f6(0x295);case _0x35c0c6[_0xdc98f6(0x20a)]:return'mcpStatus.sessionOccupied';case _0x35c0c6[_0xdc98f6(0x28a)]:return _0xdc98f6(0x1f6);case _0x35c0c6[_0xdc98f6(0x269)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x48b73c[_0xdc98f6(0x288)]:return'mcpStatus.retrying';default:return _0xdc98f6(0x2bf);}}function on(_0x24dd44,_0xe7793c,_0x3087fd,_0x17250f=!0x0){const _0x1640bb=_0x4d1dd5,_0xae7032=pe(_0x24dd44,_0xe7793c),_0x2cb3dc=_0x3087fd['t'](_0xae7032);return _0x17250f?_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]&&_0xe7793c===_0x35c0c6[_0x1640bb(0x2ad)]?_0x2cb3dc+'\x20-\x20'+_0x3087fd['t'](_0x1640bb(0x29a)):_0x24dd44===_0x48b73c['CONNECTED']?''+_0x2cb3dc:_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]||_0x24dd44===_0x48b73c[_0x1640bb(0x2e4)]?_0x2cb3dc+_0x1640bb(0x2ae)+_0x3087fd['t']('mcpStatus.clickToConnect'):_0x2cb3dc:_0x2cb3dc;}function sn(_0x457f5d){const _0x592798=_0x4d1dd5;switch(_0x457f5d){case _0x48b73c['CONNECTED']:return _0x592798(0x2d2);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x592798(0x288)]:return'univer-text-yellow-500';case _0x48b73c['FAILED']:case _0x48b73c[_0x592798(0x2c5)]:return _0x592798(0x2ea);default:return _0x592798(0x200);}}function cn(_0x4cd746){const _0x2dbb83=_0x4d1dd5,{status$:_0x4ebb53,error$:_0x497b47,onConfigure:_0x3bdd3f,showClickable:_0x43dd7d=!0x0}=_0x4cd746,_0x31d024=_0x464025(_0x4ebb53,_0x48b73c[_0x2dbb83(0x2c5)]),_0x5e46f1=_0x464025(_0x497b47,_0x35c0c6[_0x2dbb83(0x239)]),_0xb712f0=_0x25ce64(_0x408b12),_0x3ab12b=_0x31d024===_0x48b73c['CONNECTED'];_0x31d024===_0x48b73c[_0x2dbb83(0x23c)]||_0x48b73c[_0x2dbb83(0x288)];const _0x346159=_0xb712f0['t'](pe(_0x31d024,_0x5e46f1)),_0x289ab1=on(_0x31d024,_0x5e46f1,_0xb712f0,_0x43dd7d),_0x385e64=sn(_0x31d024),_0x28a70f=_0x3ab12b?_0x3769df(ge,{}):_0x3769df(de,{}),_0x51253f=_0x12c1e8(()=>{_0x43dd7d&&_0x3bdd3f&&_0x3bdd3f();},[_0x43dd7d,_0x3bdd3f]);function _0x3d538f(){const _0x3d3629=_0x2dbb83;return _0x3f5fa9('div',{'className':_0x3fcf1e('univer-flex\x20univer-items-center',_0x43dd7d&&_0x3bdd3f&&_0x3d3629(0x2b6)),'role':_0x3d3629(0x1e8),'onClick':_0x43dd7d&&_0x3bdd3f?_0x51253f:void 0x0,'children':[_0x3769df(_0x3d3629(0x28d),{'className':_0x3fcf1e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x385e64),'children':_0x28a70f}),_0x3769df(_0x3d3629(0x28d),{'className':_0x3d3629(0x2d5),'children':_0x346159})]});}return _0x3769df(_0x197f74,{'title':_0x289ab1,'placement':_0x2dbb83(0x2b1),'children':_0x3d538f()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x17ac81,_0x1857a5,_0x266c5d,_0x1f1356)=>{const _0x363c0f=_0x4d1dd5;for(var _0x1fe923=_0x1f1356>0x1?void 0x0:_0x1f1356?an(_0x1857a5,_0x266c5d):_0x1857a5,_0x5b2357=_0x17ac81[_0x363c0f(0x255)]-0x1,_0x11ab74;_0x5b2357>=0x0;_0x5b2357--)(_0x11ab74=_0x17ac81[_0x5b2357])&&(_0x1fe923=_0x11ab74(_0x1fe923)||_0x1fe923);return _0x1fe923;},M=(_0x18da6d,_0x315d40)=>(_0x46b144,_0x59b01d)=>_0x315d40(_0x46b144,_0x59b01d,_0x18da6d);function _0x53df(){const _0x4cf681=['MCPConfigPanel','保存中...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','Saving...','_handleConfigSave','replace','mcpConfig.note2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-red-500','white','MCP\x20客户端配置','连接中...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','off','disposeWithMe','displayName','next','连接失败','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_componentManager','MCP\x20Client\x20Configuration','off-line-icon_clip0_910_343','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-items-center\x20univer-gap-3','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','_injector','_commandService','push','connectionError$','mcpServerUrl','getItem','_menuManagerService','https://console.univer.plus','mcpStatus.connected','pre','OffLineIcon','_initializeCommands','MCP\x20Connected','MCP\x20状态未知','current','Connected','mcpConfig.apiApplyInfo.description','BUTTON','mcp-config-dialog','Success','univer-bg-gray-500','on-line-icon','registerCommand','_handleConfigure','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','未连接','mcp-ui.config','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.connecting','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','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CloseIcon','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.validation.invalidConfig','univer-shrink-0\x20univer-text-red-500','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','_apiKey$','Copy\x20the\x20JSON\x20configuration\x20below','clipPath','什么是\x20API\x20密钥?','univer-space-y-3','_uiPartsService','univerjs-icon\x20univerjs-icon-','url(#off-line-icon_clip0_910_343)','MCP\x20连接中...','Configuration\x20saved\x20successfully','pluginName','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer_session_id:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','sessionId$','_loadStoredApiKey','Configuration\x20Steps:','errorMessage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20密钥无效,请检查密钥是否正确','url(#on-line-icon_clip0_910_349)','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.configParameters','http://www.w3.org/2000/svg','API\x20密钥长度至少需要\x2010\x20位','help-icon','Get\x20your\x20API\x20key\x20in\x20seconds','button','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','showConfigPanel','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','univer-bg-red-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','Click\x20to\x20connect\x20MCP','univer-text-sm\x20univer-font-medium','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','0\x200\x2016\x2016','mcpStatus.networkError','entries','21srnGpp','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','987200oYBsAc','MCP\x20Connection\x20Failed','univer-text-gray-400','mcpConfig.connectionStatus.connected','1em','Connection\x20Failed','univer-text-gray-500','MCP\x20连接失败','_messageService','mcpConfig.connectionError.sessionOccupied','Invalid\x20configuration','register','univer-bg-green-500','symbol','showStatus','MCP\x20已连接','SESSION_ID_OCCUPIED','mcpConfig.title','check-mark-icon','mcpConfig.apiKey','random','getConfig','OnLineIcon','_dialogService','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.sessionIdDescription','_connectionController','_validateConfig','What\x20is\x20API\x20Key?','API\x20Key','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','tag','MCP\x20Connecting...','28500fpjwYA','univer-text-blue-600','currentColor','102KUMryU','HEADER_MENU','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','connectionStatus$','_loading$','COMMAND','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.connectionStatus.connecting','MCP:\x20超出最大重试次数','_initStatusComponent','Connecting...','toString','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Disconnected','apiKey','已连接','_mcpCoreConfig$','点击配置\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_config','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','setItem','children','use','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','value','NONE','mcpConfig.saving','_mcpConnectionController','CONNECTING','univer-text-sm\x20univer-text-gray-500','mcpConfig.note1','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Session\x20ID','UniverIcon','Authorization:','最大重试次数','subscribeConfigValue$','mcpConfig.connectionError.networkError','idSuffix','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','xlink:href','132712jEmbDA','您的\x20API\x20密钥安全存储在本地存储中','_initializeMenus','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.apiKeyPlaceholder','https://console.univer.ai','<API_KEY>','mcpConfig.apiApplyInfo.univerAiLabel','CheckMarkIcon','2vTihLg','length','map','Enable\x20Authentication','univer-size-2\x20univer-rounded-full','span','_config$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','CONNECTED','univer-text-white','MenuIcon','off-line-icon','复制以下\x20JSON\x20配置','univer-space-y-2','6124lonRhx','MCP\x20Configuration','mask','http','show','权限验证失败,请检查您的\x20API\x20密钥','_initConfigSync','MAX_RETRIES_EXCEEDED','none','error','mcpConfig.connectionStatus.failed','mcp.apiKey','MCP\x20Retrying...','mcpStatus.disconnected','url(#$1','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.configStepTitle','add','close-icon','mcpConfig.connectionError.unauthorized','配置参数:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','label','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','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer.ai','isValid','Univer\x20AI\x20控制台','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-blue-500','path','配置步骤:','配置保存失败','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Retrying...','Save\x20Configuration','getOwnPropertyDescriptor','subscribe','RETRYING','close','NETWORK_ERROR','univer.plus','colorChannel1','div','mcpConfig.configStep3','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','_createConfigPanelComponent','0\x200\x2017\x2016','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','mcpStatus.unauthorized','_localStorageService','Bearer\x20','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','mcpStatus.clickToConfigure','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20未授权','会话ID','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','defs','配置更改将立即生效','请输入您的\x20API\x20密钥','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','includes','HelpIcon','enableAutoConnect','evenodd','univer-text-xs\x20univer-text-gray-500','mcpConfig.authorizationDescription','stringify','registerComponent','__setCustomHeaders','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','UNAUTHORIZED','\x20-\x20','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','38346uGIpxi','bottom','round','mcpConfig.configStep1','onStarting','Univer\x20AI\x20Console','\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','warn','mcpConfig.configSaved','defineProperty','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Enable\x20authentication\x20for\x20secure\x20connections','string','trim','mcpConfig.connectionStatus.disconnected','mcpStatus.unknown','mcpConfig.description','_configService','attrs','1082133bQUkkI','Failed\x20to\x20save\x20configuration','DISCONNECTED','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.validation.apiKeyTooShort','M0\x200H16V16H0z','fill','get','MCP:\x20网络错误','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','showDeveloperTools','MCP\x20已断开','univer-space-y-4','171146mpdKib','univer-text-green-500','https://mcp.univer.ai/mcp/?univer_session_id=','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.configInstructions','assign','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','forEach','open','svg','mcpConfig.apiApplyInfo.getStarted','_logService','API\x20key\x20with\x20Bearer\x20prefix.','_blank','validateApiKey'];_0x53df=function(){return _0x4cf681;};return _0x53df();}let O=class extends _0x597623{constructor(_0x5378ff,_0x89d2af,_0x54999d,_0x2a949a){const _0x43bdc3=_0x4d1dd5;super(),this[_0x43bdc3(0x2fb)]=_0x5378ff,this[_0x43bdc3(0x215)]=_0x89d2af,this['_uiPartsService']=_0x54999d,this[_0x43bdc3(0x2c1)]=_0x2a949a,this['_initAutoConnect'](),this[_0x43bdc3(0x228)]();}['_initAutoConnect'](){const _0x414383=_0x4d1dd5,_0x45e63e=this['_configService'][_0x414383(0x20f)](y);_0x45e63e!=null&&_0x45e63e[_0x414383(0x2ce)]&&(this[_0x414383(0x215)][_0x414383(0x2a5)]=!0x1);}[_0x4d1dd5(0x228)](){const _0x43b773=_0x4d1dd5,_0xa6827b=this[_0x43b773(0x2c1)][_0x43b773(0x20f)](y);(_0xa6827b==null?void 0x0:_0xa6827b[_0x43b773(0x208)])!==!0x1&&this[_0x43b773(0x2f0)](this[_0x43b773(0x1d1)][_0x43b773(0x2aa)](_0x36e436[_0x43b773(0x220)],()=>{const _0x35bb4b=_0x43b773;var _0x5ae22d;return _0x3ef36b(un({'status$':this[_0x35bb4b(0x215)][_0x35bb4b(0x222)],'error$':this[_0x35bb4b(0x215)][_0x35bb4b(0x2fe)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x5ae22d=_0xa6827b==null?void 0x0:_0xa6827b[_0x35bb4b(0x2ce)])!=null?_0x5ae22d:!0x1}),this[_0x35bb4b(0x2fb)]);}));}[_0x4d1dd5(0x1bc)](){const _0x450d63=_0x4d1dd5;this['_injector'][_0x450d63(0x2ca)](I)[_0x450d63(0x1ea)]();}};O=ln([M(0x0,_0x34e389(_0x54f8e1)),M(0x1,_0x34e389(_0x267a9e)),M(0x2,_0x5a2e5c),M(0x3,_0x23775e)],O);function un(_0x2920e7){const {status$:_0x478d95,error$:_0x912189,onConfigure:_0x27763a,showClickable:_0x3c5841}=_0x2920e7;return function(){return _0x3769df(cn,{'status$':_0x478d95,'error$':_0x912189,'onConfigure':_0x27763a,'showClickable':_0x3c5841});};}function vn(_0x40d320){const _0x24ad98=_0x4d1dd5;return{'id':V['id'],'type':_0x5b6cd8[_0x24ad98(0x1b6)],'icon':_0x24ad98(0x25e),'title':_0x24ad98(0x20b),'tooltip':_0x24ad98(0x20b)};}const dn={[_0x246484['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4d1dd5(0x286)],pn=(_0x2aafff,_0x486d65,_0x1bd55b,_0x3b2a38)=>{const _0x51fc13=_0x4d1dd5;for(var _0x41cb73=_0x3b2a38>0x1?void 0x0:_0x3b2a38?gn(_0x486d65,_0x1bd55b):_0x486d65,_0x4ddea8=_0x2aafff[_0x51fc13(0x255)]-0x1,_0x749e7f;_0x4ddea8>=0x0;_0x4ddea8--)(_0x749e7f=_0x2aafff[_0x4ddea8])&&(_0x41cb73=_0x749e7f(_0x41cb73)||_0x41cb73);return _0x41cb73;},re=(_0x60a77a,_0x7323da)=>(_0x5df267,_0x1b41eb)=>_0x7323da(_0x5df267,_0x1b41eb,_0x60a77a);let D=class extends _0x597623{constructor(_0x3976c5,_0x481717){const _0x52efb3=_0x4d1dd5;super(),this['_commandService']=_0x3976c5,this[_0x52efb3(0x1ab)]=_0x481717,this[_0x52efb3(0x1b0)](),this[_0x52efb3(0x24c)]();}[_0x4d1dd5(0x1b0)](){const _0x11b76c=_0x4d1dd5;[V][_0x11b76c(0x2d9)](_0xbf8ca4=>{const _0x518c45=_0x11b76c;this[_0x518c45(0x2f0)](this[_0x518c45(0x2fc)][_0x518c45(0x1bb)](_0xbf8ca4));});}[_0x4d1dd5(0x24c)](){const _0x575573=_0x4d1dd5;this[_0x575573(0x1ab)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x398280),re(0x1,_0x3b3a79)],D);const Mn={'mcpStatus':{'disconnected':_0x4d1dd5(0x22c),'connecting':_0x4d1dd5(0x21b),'connected':_0x4d1dd5(0x1b1),'failed':_0x4d1dd5(0x1fb),'retrying':_0x4d1dd5(0x26e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4d1dd5(0x1ed),'sessionOccupied':_0x4d1dd5(0x1ec),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4d1dd5(0x1c8),'clickToConnect':_0x4d1dd5(0x1f0),'clickToConfigure':_0x4d1dd5(0x1eb)},'mcpConfig':{'title':_0x4d1dd5(0x263),'description':_0x4d1dd5(0x27e),'apiKey':_0x4d1dd5(0x218),'apiKeyPlaceholder':_0x4d1dd5(0x291),'apiKeyHint':_0x4d1dd5(0x1e9),'enableAuth':_0x4d1dd5(0x257),'enableAuthHint':_0x4d1dd5(0x2bb),'connectionInfo':_0x4d1dd5(0x2f6),'mcpClientConfig':_0x4d1dd5(0x2f6),'configInstructions':_0x4d1dd5(0x1f3),'configStepTitle':_0x4d1dd5(0x1dd),'configStep1':_0x4d1dd5(0x1cd),'configStep2':_0x4d1dd5(0x1f2),'configStep3':_0x4d1dd5(0x2ee),'sessionId':_0x4d1dd5(0x241),'sessionIdDescription':_0x4d1dd5(0x2af),'authorizationDescription':_0x4d1dd5(0x2de),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4d1dd5(0x285),'saving':_0x4d1dd5(0x2e5),'note1':_0x4d1dd5(0x231),'note2':_0x4d1dd5(0x1da),'configSaved':_0x4d1dd5(0x1d5),'configError':_0x4d1dd5(0x2c4),'apiApplyInfo':{'title':_0x4d1dd5(0x217),'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':_0x4d1dd5(0x2b5),'getStarted':_0x4d1dd5(0x1e7)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4d1dd5(0x2f4),'invalidConfig':_0x4d1dd5(0x204),'invalidApiKey':_0x4d1dd5(0x1d8)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1d7),'connecting':_0x4d1dd5(0x229),'connected':_0x4d1dd5(0x1b4),'failed':_0x4d1dd5(0x1ff),'retrying':_0x4d1dd5(0x284)},'connectionError':{'unauthorized':_0x4d1dd5(0x2f8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4d1dd5(0x1df),'maxRetriesExceeded':_0x4d1dd5(0x277)}}},An={'mcpStatus':{'disconnected':_0x4d1dd5(0x2cf),'connecting':_0x4d1dd5(0x1d4),'connected':_0x4d1dd5(0x209),'failed':_0x4d1dd5(0x201),'retrying':'MCP\x20重连中...','unknown':_0x4d1dd5(0x1b2),'unauthorized':_0x4d1dd5(0x29c),'sessionOccupied':_0x4d1dd5(0x1bd),'networkError':_0x4d1dd5(0x2cb),'maxRetriesExceeded':_0x4d1dd5(0x227),'clickToConnect':_0x4d1dd5(0x24d),'clickToConfigure':_0x4d1dd5(0x230)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x4d1dd5(0x2a1),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4d1dd5(0x2ec),'mcpClientConfig':_0x4d1dd5(0x2ec),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4d1dd5(0x281),'configStep1':_0x4d1dd5(0x260),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4d1dd5(0x24e),'sessionId':_0x4d1dd5(0x29d),'sessionIdDescription':_0x4d1dd5(0x2a2),'authorizationDescription':_0x4d1dd5(0x29b),'configParameters':_0x4d1dd5(0x276),'maxRetries':_0x4d1dd5(0x244),'save':'保存配置','saving':_0x4d1dd5(0x2e2),'note1':_0x4d1dd5(0x2a0),'note2':_0x4d1dd5(0x24b),'configSaved':'配置保存成功','configError':_0x4d1dd5(0x282),'apiApplyInfo':{'title':_0x4d1dd5(0x1cf),'description':_0x4d1dd5(0x23f),'univerAiLabel':_0x4d1dd5(0x27d),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4d1dd5(0x1e5),'invalidConfig':'配置无效','invalidApiKey':_0x4d1dd5(0x1e0)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1c0),'connecting':_0x4d1dd5(0x2ed),'connected':_0x4d1dd5(0x22e),'failed':_0x4d1dd5(0x2f3),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x4d1dd5(0x267),'sessionOccupied':_0x4d1dd5(0x225),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x4d1dd5(0x2b9)],hn=Object[_0x4d1dd5(0x286)],Cn=(_0x15db22,_0x4538b4,_0x4f5026)=>_0x4538b4 in _0x15db22?fn(_0x15db22,_0x4538b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f5026}):_0x15db22[_0x4538b4]=_0x4f5026,mn=(_0x5cca55,_0x36f2f9,_0x3c8dc8,_0x2be957)=>{const _0x1f7463=_0x4d1dd5;for(var _0x12c0f0=_0x2be957>0x1?void 0x0:_0x2be957?hn(_0x36f2f9,_0x3c8dc8):_0x36f2f9,_0x1f4e48=_0x5cca55[_0x1f7463(0x255)]-0x1,_0x32340d;_0x1f4e48>=0x0;_0x1f4e48--)(_0x32340d=_0x5cca55[_0x1f4e48])&&(_0x12c0f0=_0x32340d(_0x12c0f0)||_0x12c0f0);return _0x12c0f0;},P=(_0x5e8edb,_0xdac9e5)=>(_0x29453d,_0x3a4d59)=>_0xdac9e5(_0x29453d,_0x3a4d59,_0x5e8edb),_n=(_0x3fa839,_0x14916b,_0x33d75a)=>Cn(_0x3fa839,_0x14916b+'',_0x33d75a);let j=class extends _0x300405{constructor(_0x481092=ie,_0x9b4cd5,_0x50bd7d,_0x6871b9,_0x300ad1,_0x2c59ad){const _0xf86bb3=_0x4d1dd5;super(),this['_config']=_0x481092,this['_injector']=_0x9b4cd5,this['_configService']=_0x50bd7d,this[_0xf86bb3(0x1d1)]=_0x6871b9,this[_0xf86bb3(0x296)]=_0x300ad1,this['_localeService']=_0x2c59ad;const {..._0x584471}=_0x7e5e4c({},ie,this[_0xf86bb3(0x232)]);this['_configService']['setConfig'](y,_0x584471);}async[_0x4d1dd5(0x2b4)](){const _0x48116e=_0x4d1dd5,_0x454b8c=[[O],[I],[D]];this[_0x48116e(0x2fb)]['has'](_0x43eddd)||_0x454b8c[_0x48116e(0x2fd)]([_0x43eddd,{'useClass':_0x3f40b3}]),_0x454b8c['forEach'](_0x438f3f=>this[_0x48116e(0x2fb)][_0x48116e(0x273)](_0x438f3f)),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](O),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](I),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](D);}};_n(j,_0x4d1dd5(0x1d6),'MCP_UI_PLUGIN'),j=mn([_0x249ad5(_0x51a3dd),P(0x1,_0x34e389(_0x54f8e1)),P(0x2,_0x23775e),P(0x3,_0x5a2e5c),P(0x4,_0x1ee390),P(0x5,_0x34e389(_0x408b12))],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 _0x3504c9=_0x418a;(function(_0x2b86e2,_0x4ef7db){const _0x4f2592=_0x418a,_0x5f2c50=_0x2b86e2();while(!![]){try{const _0x167a71=parseInt(_0x4f2592(0x248))/0x1+parseInt(_0x4f2592(0x225))/0x2+-parseInt(_0x4f2592(0x1ee))/0x3+-parseInt(_0x4f2592(0x288))/0x4+-parseInt(_0x4f2592(0x224))/0x5*(parseInt(_0x4f2592(0x17f))/0x6)+-parseInt(_0x4f2592(0x18c))/0x7*(-parseInt(_0x4f2592(0x228))/0x8)+parseInt(_0x4f2592(0x1ec))/0x9*(parseInt(_0x4f2592(0x191))/0xa);if(_0x167a71===_0x4ef7db)break;else _0x5f2c50['push'](_0x5f2c50['shift']());}catch(_0x2f5785){_0x5f2c50['push'](_0x5f2c50['shift']());}}}(_0x1da1,0xea29b));var Pe=Object[_0x3504c9(0x299)],Ee=(_0x1c94df,_0xd3714d,_0x56e2e4)=>_0xd3714d in _0x1c94df?Pe(_0x1c94df,_0xd3714d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56e2e4}):_0x1c94df[_0xd3714d]=_0x56e2e4,x=(_0x5be7f8,_0x4478c5,_0x4c7f1d)=>Ee(_0x5be7f8,typeof _0x4478c5!='symbol'?_0x4478c5+'':_0x4478c5,_0x4c7f1d);import{LocaleService as _0x500816,Inject as _0x22aeb1,Injector as _0x3b20df,IConfigService as _0x967953,ILocalStorageService as _0x493214,ILogService as _0x1b5827,Disposable as _0x422753,CommandType as _0x498394,ICommandService as _0x4ae9c5,DependentOn as _0x3893d1,Plugin as _0xe522b5,merge as _0x52c909}from'@univerjs/core';import{jsxs as _0x26b802,jsx as _0x47d81f}from'react/jsx-runtime';import{MCPConnectionStatus as _0x53b579,MCPConnectionError as _0x1b6dba,MCPConnectionController as _0x2f25e4,MCP_PLUGIN_CONFIG_KEY as _0x2502a4,UniverMCPPlugin as _0x1a183c}from'@univerjs-pro/mcp';import{clsx as _0x2316bb,Input as _0x510951,Button as _0x146f3d,MessageType as _0x3dcc20,Tooltip as _0x1114ec}from'@univerjs/design';import{useDependency as _0x256644,useObservable as _0x478b78,IUIPartsService as _0x5e5a73,IDialogService as _0x1c68c5,IMessageService as _0x52f42d,ComponentManager as _0x25a9b7,connectInjector as _0x3c7794,BuiltInUIPart as _0x4f81ad,MenuItemType as _0xd1e96c,RibbonStartGroup as _0x17a6fa,IMenuManagerService as _0x7041bd}from'@univerjs/ui';import{BehaviorSubject as _0x8a14c2}from'rxjs';import{useRef as _0x114157,createElement as _0x222e2d,forwardRef as _0x1fe796,useState as _0x27f889,useCallback as _0x10851e}from'react';function _0x418a(_0x470a75,_0x1926cc){const _0x1da1ce=_0x1da1();return _0x418a=function(_0x418afc,_0x3837ea){_0x418afc=_0x418afc-0x14c;let _0x7391f8=_0x1da1ce[_0x418afc];return _0x7391f8;},_0x418a(_0x470a75,_0x1926cc);}import{ISocketService as _0x274cf1,WebSocketService as _0x180b24}from'@univerjs/network';function b({ref:_0x38cfa0,..._0x3ea635}){const _0x58c5a4=_0x3504c9,{icon:_0x359bc1,id:_0x54ebf9,className:_0x1a2df2,extend:_0x141502,..._0x54c02b}=_0x3ea635,_0x3571f7=('univerjs-icon\x20univerjs-icon-'+_0x54ebf9+'\x20'+(_0x1a2df2||''))[_0x58c5a4(0x21b)](),_0x50e652=_0x114157('_'+We());return ae(_0x359bc1,''+_0x54ebf9,{'defIds':_0x359bc1[_0x58c5a4(0x297)],'idSuffix':_0x50e652[_0x58c5a4(0x28a)]},{'ref':_0x38cfa0,'className':_0x3571f7,..._0x54c02b},_0x141502);}function ae(_0x3506f2,_0x3f22e2,_0x1e777f,_0x1cc31d,_0x13f755){const _0x549c52=_0x3504c9;return _0x222e2d(_0x3506f2[_0x549c52(0x28c)],{'key':_0x3f22e2,...Ye(_0x3506f2,_0x1e777f,_0x13f755),..._0x1cc31d},(Ze(_0x3506f2,_0x1e777f)[_0x549c52(0x251)]||[])[_0x549c52(0x1a1)]((_0x4a8752,_0x31bd67)=>ae(_0x4a8752,_0x3f22e2+'-'+_0x3506f2[_0x549c52(0x28c)]+'-'+_0x31bd67,_0x1e777f,void 0x0,_0x13f755)));}function Ye(_0x3fe012,_0x4869d6,_0x5a7573){const _0x1de176=_0x3504c9,_0x1eaed9={..._0x3fe012[_0x1de176(0x26f)]};_0x5a7573!=null&&_0x5a7573['colorChannel1']&&_0x1eaed9['fill']===_0x1de176(0x203)&&(_0x1eaed9['fill']=_0x5a7573[_0x1de176(0x203)]),_0x3fe012[_0x1de176(0x28c)]==='mask'&&_0x1eaed9['id']&&(_0x1eaed9['id']=_0x1eaed9['id']+_0x4869d6[_0x1de176(0x196)]),Object[_0x1de176(0x1fa)](_0x1eaed9)['forEach'](([_0x164658,_0x16f018])=>{const _0x139d61=_0x1de176;_0x164658===_0x139d61(0x23e)&&typeof _0x16f018==_0x139d61(0x177)&&(_0x1eaed9[_0x164658]=_0x16f018[_0x139d61(0x253)](/url\(#(.*)\)/,_0x139d61(0x234)+_0x4869d6['idSuffix']+')'));});const {defIds:_0x401506}=_0x4869d6;return!_0x401506||_0x401506['length']===0x0||(_0x3fe012[_0x1de176(0x28c)]===_0x1de176(0x211)&&_0x1eaed9[_0x1de176(0x1b3)]&&(_0x1eaed9['xlink:href']=_0x1eaed9[_0x1de176(0x1b3)]+_0x4869d6[_0x1de176(0x196)]),Object['entries'](_0x1eaed9)[_0x1de176(0x20d)](([_0x4f408c,_0x6dd55c])=>{const _0x27894c=_0x1de176;typeof _0x6dd55c==_0x27894c(0x177)&&(_0x1eaed9[_0x4f408c]=_0x6dd55c[_0x27894c(0x253)](/url\(#(.*)\)/,'url(#$1'+_0x4869d6[_0x27894c(0x196)]+')'));})),_0x1eaed9;}function Ze(_0x2a538b,_0x56897b){const _0x1cf9c3=_0x3504c9;var _0x21695a;const {defIds:_0xa94e1e}=_0x56897b;return!_0xa94e1e||_0xa94e1e['length']===0x0?_0x2a538b:_0x2a538b['tag']===_0x1cf9c3(0x14f)&&((_0x21695a=_0x2a538b[_0x1cf9c3(0x251)])!=null&&_0x21695a[_0x1cf9c3(0x16b)])?{..._0x2a538b,'children':_0x2a538b[_0x1cf9c3(0x251)][_0x1cf9c3(0x1a1)](_0x23c725=>typeof _0x23c725['attrs']['id']==_0x1cf9c3(0x177)&&_0xa94e1e&&_0xa94e1e['includes'](_0x23c725[_0x1cf9c3(0x26f)]['id'])?{..._0x23c725,'attrs':{..._0x23c725[_0x1cf9c3(0x26f)],'id':_0x23c725[_0x1cf9c3(0x26f)]['id']+_0x56897b[_0x1cf9c3(0x196)]}}:_0x23c725)}:_0x2a538b;}function We(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}b['displayName']=_0x3504c9(0x286);function _0x1da1(){const _0x1fbd04=['_mcpCoreConfig$','<API_KEY>','value','add','Bearer\x20','35649KMNrAK','http://www.w3.org/2000/svg','1037733txvsiC','1em','mcpServerUrl','mcpStatus.unknown','Configuration\x20Steps:','MCP\x20Connected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','UNAUTHORIZED','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','translate(.97)','_messageService','on-line-icon','entries','_validateConfig','currentColor','univer-min-w-0\x20univer-flex-1','_config$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','on-line-icon_clip0_910_349','__setCustomHeaders','svg','colorChannel1','mcp-config-dialog','启用身份验证','NONE','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','SESSION_ID_OCCUPIED','includes','univer-bg-blue-500','univer-text-green-500','forEach','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','M0\x200H16V16H0z','Invalid\x20configuration','use','mcpStatus.retrying','off','MCP:\x20Network\x20Error','FAILED','univer-space-y-3','Error','mcpConfig.apiKeyHint','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','registerComponent','trim','show','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','重连中...','点击连接\x20MCP','配置保存失败','stringify','What\x20is\x20API\x20Key?','13775tbAoVy','1235920UipbEP','会话\x20ID\x20已被占用,请稍后再试','网络连接错误,请检查您的网络连接','682544yUithd','mcpConfig.configInstructions','Success','mcpConfig.configStep1','0\x200\x2016\x2016','mcpStatus.clickToConnect','univer-font-medium','_dialogService','最大重试次数','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','path','showConfigPanel','url(#$1','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.configStepTitle','Configuration\x20Parameters:','text','mcpConfig.sessionIdDescription','mcpConfig.connectionError.unauthorized','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','clipPath','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','mask','push','univer-shrink-0\x20univer-text-red-500','mcpConfig.authorizationDescription','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','removeItem','保存配置','white','DISCONNECTED','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1428007BeOkbM','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-space-y-2','univer.plus','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_createConfigPanelComponent','Copy\x20the\x20JSON\x20configuration\x20below','connectionError$','univer-space-y-4','children','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','replace','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.connectionStatus.retrying','univer-text-red-500','_handleConfigSave','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','RETRYING','noopener\x20noreferrer','MCP:\x20Session\x20ID\x20Occupied','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥长度至少需要\x2010\x20位','_logService','Saving...','OTHERS','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Configuration','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','请输入您的\x20API\x20密钥','open','会话ID','evenodd','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','CONNECTED','none','mcpConfig.configStep3','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','_localeService','attrs','_initAutoConnect','univer-size-2\x20univer-rounded-full','mcpStatus.maxRetriesExceeded','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','get','MCP\x20Connecting...','univer-text-white','mcpStatus.failed','registerCommand','mcpConfig.validation.apiKeyRequired','univer-size-4','getCurrentConfig','mcpConfig.configError','将配置添加到您的\x20MCP\x20客户端设置文件中','mcp-ui.command.openConfigPanel','MCP:\x20Max\x20Retries\x20Exceeded','mcp.apiKey','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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','MCP\x20已断开','round','UniverIcon','API\x20key\x20with\x20Bearer\x20prefix.','7159144NTrOkt','BUTTON','current','univer-flex\x20univer-items-center','tag','span','_loading$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.networkError','配置无效','next','univer-bg-gray-500','API\x20密钥','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-yellow-500','defIds','HEADER_MENU','defineProperty','_initConfigSync','bottom','OnLineIcon','MCP\x20连接中...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','您的\x20API\x20密钥安全存储在本地存储中','off-line-icon','defs','mcp-ui.config','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.ai','mcpConfig.title','mcpConfig.connectionStatus.failed','univer-flex\x20univer-items-center\x20univer-gap-3','_loadStoredApiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.connecting','MCP\x20连接失败','univer-text-sm\x20univer-font-medium','mcpConfig.apiApplyInfo.description','univer-shrink-0\x20univer-text-blue-500','启用身份验证以获得安全连接','Max\x20Retries','_config','connectionStatus$','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','warn','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20is\x20required','Univer\x20AI\x20Console','MCP\x20客户端配置','getItem','univer-space-y-5','univer-text-blue-600','length','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','close-icon','连接失败','Configuration\x20Notes:','_localStorageService','_initializeMenus','MAX_RETRIES_EXCEEDED','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','button','displayName','Connection\x20Failed','string','mcpConfig.validation.apiKeyTooShort','MCP\x20Unknown\x20Status','MCP\x20重连中...','API\x20密钥无效,请检查密钥是否正确','univer-text-gray-500','mcpStatus.connecting','MenuIcon','2388vFSwuj','mcpConfig.connectionStatus.connected','MCP\x20配置','pre','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','OffLineIcon','mcpConfig.validation.invalidConfig','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','error','univer-flex\x20univer-items-start\x20univer-gap-2','getOwnPropertyDescriptor','_injector','21hmfCWZ','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.note2','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','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','4770gyTxxS','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','idSuffix','什么是\x20API\x20密钥?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-bg-red-500','Univer\x20AI\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','_registerComponent','mcpConfig.description','close','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','map','univer-text-xs\x20univer-text-gray-500','_mcpConnectionController','disposeWithMe','带有\x20Bearer\x20前缀的\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','url(#on-line-icon_clip0_910_349)','MCP\x20Client\x20Configuration','univer_session_id:','apiKey','Disconnected','subscribe','showDeveloperTools','MCPConfigPanel','onStarting','Session\x20ID','subscribeConfigValue$','MCP:\x20会话\x20ID\x20已被占用','xlink:href','_menuManagerService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','getConfig','mcpStatus.sessionOccupied','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-gap-3','showStatus','MCP:\x20超出最大重试次数','CONNECTING','_uiPartsService','配置参数:','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.apiApplyInfo.title','mcpConfig.apiApplyInfo.getStarted','isValid','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','保存中...','\x20-\x20','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.disconnected','univer-bg-green-500','_initStatusComponent','sessionId$','univer-text-gray-400','Enable\x20Authentication','setItem','mcpConfig.saving','div','assign','mcpStatus.networkError','mcpConfig.apiKey','has','_apiKey$','MCP\x20Disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','NETWORK_ERROR','_connectionController','mcpConfig.connectionError.maxRetriesExceeded','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','0\x200\x2017\x2016','mergeMenu','enableAutoConnect','_initializeCommands','Connected','_handleConfigure','CloseIcon','mcpConfig.connectionError.sessionOccupied'];_0x1da1=function(){return _0x1fbd04;};return _0x1da1();}const qe={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':_0x3504c9(0x1ef),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x18f),'fillRule':_0x3504c9(0x267),'clipRule':_0x3504c9(0x267)}}]},le=_0x1fe796(function(_0x51c5bc,_0x49e1b1){const _0x10ae15=_0x3504c9;return _0x222e2d(b,Object[_0x10ae15(0x1d3)]({},_0x51c5bc,{'id':'check-mark-icon','ref':_0x49e1b1,'icon':qe}));});le['displayName']='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x3504c9(0x1ed),'fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3504c9(0x23d)}}]},ue=_0x1fe796(function(_0x331fcc,_0x9aa9da){const _0x5d5d61=_0x3504c9;return _0x222e2d(b,Object[_0x5d5d61(0x1d3)]({},_0x331fcc,{'id':_0x5d5d61(0x16d),'ref':_0x9aa9da,'icon':Xe}));});ue[_0x3504c9(0x175)]=_0x3504c9(0x1e5);const Je={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':'1em'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x1fc),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x1de)}},{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x1fc),'d':_0x3504c9(0x1a6),'fillRule':_0x3504c9(0x267),'clipRule':'evenodd'}}]},ve=_0x1fe796(function(_0x532e9c,_0x106138){const _0x53b54f=_0x3504c9;return _0x222e2d(b,Object[_0x53b54f(0x1d3)]({},_0x532e9c,{'id':'help-icon','ref':_0x106138,'icon':Je}));});ve[_0x3504c9(0x175)]='HelpIcon';const Qe={'tag':_0x3504c9(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x22c),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'stroke':_0x3504c9(0x1fc),'d':_0x3504c9(0x21e),'strokeLinecap':_0x3504c9(0x285),'strokeLinejoin':_0x3504c9(0x285),'strokeWidth':1.2}}]},{'tag':_0x3504c9(0x14f),'attrs':{},'children':[{'tag':_0x3504c9(0x23c),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3504c9(0x245),'d':_0x3504c9(0x20f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0x1fe796(function(_0x20b9f6,_0x53cce7){const _0x119f06=_0x3504c9;return _0x222e2d(b,Object[_0x119f06(0x1d3)]({},_0x20b9f6,{'id':_0x119f06(0x14e),'ref':_0x53cce7,'icon':Qe}));});de[_0x3504c9(0x175)]=_0x3504c9(0x184);const en={'tag':'svg','attrs':{'xmlns':_0x3504c9(0x1ed),'fill':_0x3504c9(0x26b),'viewBox':_0x3504c9(0x1df),'width':'1em','height':_0x3504c9(0x1ef)},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c9(0x1a7)},'children':[{'tag':_0x3504c9(0x232),'attrs':{'stroke':_0x3504c9(0x1fc),'d':_0x3504c9(0x283),'strokeLinecap':_0x3504c9(0x285),'strokeLinejoin':_0x3504c9(0x285),'strokeWidth':1.2}}]},{'tag':_0x3504c9(0x14f),'attrs':{},'children':[{'tag':_0x3504c9(0x23c),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3504c9(0x232),'attrs':{'fill':_0x3504c9(0x245),'d':_0x3504c9(0x20f),'transform':_0x3504c9(0x1f7)}}]}]}],'defIds':[_0x3504c9(0x200)]},ge=_0x1fe796(function(_0x218977,_0x15e131){const _0x2a471e=_0x3504c9;return _0x222e2d(b,Object[_0x2a471e(0x1d3)]({},_0x218977,{'id':_0x2a471e(0x1f9),'ref':_0x15e131,'icon':en}));});ge['displayName']=_0x3504c9(0x29c);function nn(_0x283731){const _0xa71d99=_0x3504c9;var _0x33d3ec,_0xc2ca5c;const {mcpCoreConfig:_0x34a8d2,onSave:_0x5baf93,loading:_0x4cbef5=!0x1,config:_0x48bb1c,connectionStatus$:_0x970d05,connectionError$:_0x34f186,currentApiKey$:_0x263f24,currentSessionId$:_0x4bd101}=_0x283731,_0x5a6eea=_0x256644(_0x500816),_0x462d5d=_0x478b78(_0x970d05,_0x53b579['DISCONNECTED']),_0x1ebfee=_0x478b78(_0x34f186,_0x1b6dba[_0xa71d99(0x206)]),_0xcdd1b8=_0x478b78(_0x4bd101,''),_0x1b3279=_0x478b78(_0x263f24,''),[_0x27a2be,_0x12a562]=_0x27f889(_0x1b3279||''),_0x1072c=!0x0,_0x352f02=_0x48bb1c[_0xa71d99(0x1ad)]&&_0x34a8d2[_0xa71d99(0x1f0)]&&(_0x34a8d2[_0xa71d99(0x1f0)][_0xa71d99(0x20a)](_0xa71d99(0x24b))||_0x34a8d2[_0xa71d99(0x1f0)][_0xa71d99(0x20a)](_0xa71d99(0x152))),_0x45c65c=(_0x33d3ec=_0x34a8d2[_0xa71d99(0x1f0)])==null?void 0x0:_0x33d3ec[_0xa71d99(0x20a)]('univer.plus'),_0x166c37=(_0xc2ca5c=_0x34a8d2[_0xa71d99(0x1f0)])==null?void 0x0:_0xc2ca5c[_0xa71d99(0x20a)](_0xa71d99(0x152)),_0x53f6af=_0x45c65c?'https://console.univer.plus':'https://console.univer.ai',_0xf45637=_0x48bb1c[_0xa71d99(0x1ad)]&&(_0x45c65c||_0x166c37),[_0x45d8aa,_0x363334]=_0x27f889(!_0x27a2be[_0xa71d99(0x21b)]()),_0x408f56=(_0x24a3fa,_0xacbe5c)=>{const _0x191b32=_0xa71d99;if(_0xacbe5c===_0x1b6dba['UNAUTHORIZED'])return _0x191b32(0x1da);switch(_0x24a3fa){case _0x53b579[_0x191b32(0x26a)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x53b579[_0x191b32(0x1be)]:case _0x53b579[_0x191b32(0x259)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x53b579[_0x191b32(0x215)]:return _0x191b32(0x1da);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x179c7a=(_0x187b21,_0x2507a5)=>{const _0x337c12=_0xa71d99;if(_0x2507a5===_0x1b6dba[_0x337c12(0x1f5)])return _0x337c12(0x199);switch(_0x187b21){case _0x53b579[_0x337c12(0x26a)]:return _0x337c12(0x1cb);case _0x53b579[_0x337c12(0x1be)]:case _0x53b579[_0x337c12(0x259)]:return _0x337c12(0x20b);case _0x53b579['FAILED']:return _0x337c12(0x199);default:return _0x337c12(0x293);}},_0x9563b8=_0x2373a4=>{const _0x548631=_0xa71d99;switch(_0x2373a4){case _0x53b579['CONNECTED']:return _0x5a6eea['t'](_0x548631(0x180));case _0x53b579[_0x548631(0x1be)]:return _0x5a6eea['t'](_0x548631(0x158));case _0x53b579[_0x548631(0x215)]:return _0x5a6eea['t'](_0x548631(0x154));case _0x53b579[_0x548631(0x259)]:return _0x5a6eea['t'](_0x548631(0x255));default:return _0x5a6eea['t']('mcpConfig.connectionStatus.disconnected');}},_0x43e104=_0x5f1d8e=>{const _0x575a12=_0xa71d99;switch(_0x5f1d8e){case _0x1b6dba[_0x575a12(0x1f5)]:return _0x5a6eea['t'](_0x575a12(0x23a));case _0x1b6dba[_0x575a12(0x209)]:return _0x5a6eea['t'](_0x575a12(0x1e6));case _0x1b6dba[_0x575a12(0x1db)]:return _0x5a6eea['t'](_0x575a12(0x290));case _0x1b6dba[_0x575a12(0x172)]:return _0x5a6eea['t'](_0x575a12(0x1dd));default:return'';}},_0xf39519=_0x10851e(()=>{const _0x16d584=_0xa71d99,_0x479bad={..._0x34a8d2,'apiKey':_0x27a2be[_0x16d584(0x21b)](),'enableAuth':_0x1072c};_0x5baf93(_0x479bad);},[_0x34a8d2,_0x27a2be,_0x1072c,_0x5baf93]),_0x5c2208=_0x27a2be['trim']()['length']>0x0;return _0x26b802('div',{'className':_0xa71d99(0x274),'children':[_0x47d81f('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x155),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x157),'children':_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x277),'children':'⚙'})}),_0x47d81f(_0xa71d99(0x1d2),{'children':_0x47d81f('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x5a6eea['t'](_0xa71d99(0x19d))})})]})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x151),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0x2316bb(_0xa71d99(0x1f4),_0x408f56(_0x462d5d,_0x1ebfee)),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0x2316bb(_0xa71d99(0x271),_0x179c7a(_0x462d5d,_0x1ebfee))}),_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x15a),'children':_0x9563b8(_0x462d5d)})]})}),_0x1ebfee!==_0x1b6dba[_0xa71d99(0x206)]&&(_0x462d5d===_0x53b579[_0xa71d99(0x215)]||_0x1ebfee===_0x1b6dba[_0xa71d99(0x1f5)])&&_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x273),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x189),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x240),'children':'⚠️'}),_0x47d81f('p',{'className':_0xa71d99(0x16c),'children':_0x43e104(_0x1ebfee)})]})})]}),_0x47d81f('div',{'className':_0xa71d99(0x1c6),'children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x169),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':'univer-space-y-2','children':[_0x26b802('label',{'className':_0xa71d99(0x23b),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🔑'}),'\x20',_0x5a6eea['t'](_0xa71d99(0x1d5)),_0x47d81f('span',{'className':_0xa71d99(0x256),'children':'*'}),_0x352f02&&_0x47d81f('a',{'className':_0xa71d99(0x1b9),'title':_0x5a6eea['t'](_0xa71d99(0x1c3)),'role':_0xa71d99(0x174),'onClick':()=>_0x363334(!0x0),'children':_0x47d81f(ve,{})})]}),_0x47d81f(_0x510951,{'type':_0xa71d99(0x238),'placeholder':_0x5a6eea['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x27a2be,'disabled':_0x4cbef5,'autoComplete':_0xa71d99(0x213),'onChange':_0x12a562}),_0x47d81f('p',{'className':_0xa71d99(0x1a2),'children':_0x5a6eea['t'](_0xa71d99(0x218))})]}),_0x352f02&&_0x45d8aa&&_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x26d),'children':[_0x47d81f('a',{'className':_0xa71d99(0x242),'role':_0xa71d99(0x174),'onClick':()=>_0x363334(!0x1),'children':_0x47d81f(ue,{'className':_0xa71d99(0x27b)})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x282),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x263),'children':_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x16a),'children':'🚀'})}),_0x26b802('div',{'className':'univer-flex-1','children':[_0x47d81f('h4',{'className':_0xa71d99(0x1ff),'children':_0x5a6eea['t'](_0xa71d99(0x1c3))}),_0x47d81f('p',{'className':_0xa71d99(0x268),'children':_0x5a6eea['t'](_0xa71d99(0x15b))}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0xf45637&&_0x26b802('a',{'className':_0xa71d99(0x19f),'href':_0x53f6af,'target':'_blank','rel':_0xa71d99(0x25a),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🤖'}),_0x5a6eea['t'](_0xa71d99(0x261)),_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x1ce),'children':'↗'})]})}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x231),'children':['✨','\x20',_0x5a6eea['t'](_0xa71d99(0x1c4))]})]})]})]}),_0x48bb1c['showDeveloperTools']&&_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x21d),'children':[_0x26b802('h4',{'className':_0xa71d99(0x249),'children':[_0x47d81f(_0xa71d99(0x28d),{'children':'🔗'}),'\x20',_0x5a6eea['t']('mcpConfig.connectionInfo')]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x250),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x216),'children':[_0x47d81f('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x5a6eea['t'](_0xa71d99(0x229))}),_0x26b802('div',{'className':_0xa71d99(0x24a),'children':[_0x47d81f('div',{'className':_0xa71d99(0x1d9),'children':_0x5a6eea['t'](_0xa71d99(0x236))}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1b6),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x19b),'children':'1'}),_0x5a6eea['t'](_0xa71d99(0x22b))]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x5a6eea['t']('mcpConfig.configStep2')]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x208),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x19b),'children':'3'}),_0x5a6eea['t'](_0xa71d99(0x26c))]})]})]})]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x24a),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xa71d99(0x262)}),_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x28f),'children':_0x47d81f(_0xa71d99(0x182),{'className':_0xa71d99(0x187),'children':JSON[_0xa71d99(0x222)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0xcdd1b8||'<SESSION_ID>'),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x27a2be||_0xa71d99(0x1e8))}}}},null,0x2)})})]}),_0x26b802(_0xa71d99(0x1d2),{'className':'univer-space-y-3','children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1d9),'children':_0x5a6eea['t']('mcpConfig.configParameters')}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x24a),'children':[_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x18d),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x14c)}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1fd),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x20e),'children':_0xa71d99(0x1a9)}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5a6eea['t'](_0xa71d99(0x239))})]})]}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x18d),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x14c)}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1fd),'children':[_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x20e),'children':'Authorization:'}),_0x47d81f(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1a2),'children':_0x5a6eea['t'](_0xa71d99(0x241))})]})]})]})]})]})]}),_0x47d81f(_0x146f3d,{'onClick':_0xf39519,'disabled':!_0x5c2208||_0x4cbef5,'className':_0xa71d99(0x295),'children':_0x4cbef5?_0x26b802(_0xa71d99(0x28d),{'className':_0xa71d99(0x208),'children':[_0x47d81f('span',{'children':'⟲'}),_0x5a6eea['t'](_0xa71d99(0x1d1))]}):_0x26b802(_0xa71d99(0x28d),{'className':_0xa71d99(0x208),'children':[_0x47d81f(le,{}),_0x5a6eea['t']('mcpConfig.save')]})}),_0x47d81f(_0xa71d99(0x1d2),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x1bb),'children':[_0x47d81f(_0xa71d99(0x28d),{'className':_0xa71d99(0x15c),'children':'💡'}),_0x26b802(_0xa71d99(0x1d2),{'className':_0xa71d99(0x183),'children':[_0x47d81f('div',{'className':_0xa71d99(0x22e),'children':_0xa71d99(0x16f)}),_0x26b802(_0xa71d99(0x1d2),{'children':['•',_0x5a6eea['t']('mcpConfig.note1')]}),_0x26b802(_0xa71d99(0x1d2),{'children':['•',_0x5a6eea['t'](_0xa71d99(0x18e))]})]})]})})]})})]});}const y=_0x3504c9(0x150),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3504c9(0x18a)],tn=(_0xc602c1,_0x483573,_0x36ce2a,_0x68a81e)=>{for(var _0x36da5b=_0x68a81e>0x1?void 0x0:_0x68a81e?rn(_0x483573,_0x36ce2a):_0x483573,_0x2fd63d=_0xc602c1['length']-0x1,_0x5b66d0;_0x2fd63d>=0x0;_0x2fd63d--)(_0x5b66d0=_0xc602c1[_0x2fd63d])&&(_0x36da5b=_0x5b66d0(_0x36da5b)||_0x36da5b);return _0x36da5b;},d=(_0x1f83f9,_0x180a52)=>(_0x135573,_0xe12907)=>_0x180a52(_0x135573,_0xe12907,_0x1f83f9);const U=_0x3504c9(0x281),L=_0x3504c9(0x204);let I=class extends _0x422753{constructor(_0x657625,_0x169e26,_0x46fc97,_0x4ff583,_0x1090ae,_0x5265de,_0x380ff1,_0x58ffcf,_0xfbaebb,_0x2708df){const _0x36b526=_0x3504c9;super(),x(this,_0x36b526(0x28e),new _0x8a14c2(!0x1)),x(this,_0x36b526(0x1e7),new _0x8a14c2({})),x(this,_0x36b526(0x1fe),new _0x8a14c2({})),x(this,_0x36b526(0x1d7),new _0x8a14c2('')),x(this,_0x36b526(0x257),async _0x44be91=>{const _0x11cd63=_0x36b526;var _0x38b9f4,_0xd0c211;this['_loading$']['next'](!0x0);try{const _0x1e7fde=await this[_0x11cd63(0x1fb)](_0x44be91);if(!_0x1e7fde[_0x11cd63(0x1c5)]){this[_0x11cd63(0x1f8)]['show']({'type':_0x3dcc20[_0x11cd63(0x217)],'content':_0x1e7fde['errorMessage']||this['_localeService']['t'](_0x11cd63(0x185))});return;}_0x44be91['apiKey']?await this[_0x11cd63(0x170)][_0x11cd63(0x1d0)](U,_0x44be91[_0x11cd63(0x1aa)][_0x11cd63(0x21b)]()):await this[_0x11cd63(0x170)][_0x11cd63(0x243)](U),this[_0x11cd63(0x1d7)]['next'](((_0x38b9f4=_0x44be91['apiKey'])==null?void 0x0:_0x38b9f4['trim']())||''),this[_0x11cd63(0x1a3)][_0x11cd63(0x201)]({'Authorization':_0x11cd63(0x1eb)+((_0xd0c211=_0x44be91['apiKey'])==null?void 0x0:_0xd0c211[_0x11cd63(0x21b)]())}),this['_messageService']['show']({'type':_0x3dcc20[_0x11cd63(0x22a)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x67f2cf=_0x11cd63;this[_0x67f2cf(0x22f)]['close'](L);},0x320);}catch(_0x387ffc){this[_0x11cd63(0x25e)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x387ffc),this[_0x11cd63(0x1f8)][_0x11cd63(0x21c)]({'type':_0x3dcc20[_0x11cd63(0x217)],'content':this[_0x11cd63(0x26e)]['t'](_0x11cd63(0x27d))});}finally{this[_0x11cd63(0x28e)]['next'](!0x1);}}),(this[_0x36b526(0x18b)]=_0x657625,this['_uiPartsService']=_0x169e26,this['_configService']=_0x46fc97,this['_localStorageService']=_0x4ff583,this[_0x36b526(0x22f)]=_0x1090ae,this['_messageService']=_0x5265de,this['_componentManager']=_0x380ff1,this[_0x36b526(0x26e)]=_0x58ffcf,this[_0x36b526(0x25e)]=_0xfbaebb,this[_0x36b526(0x1a3)]=_0x2708df,this[_0x36b526(0x29a)](),this[_0x36b526(0x156)](),this['_registerComponent']());}['showConfigPanel'](){const _0x340b15=_0x3504c9,_0x10a6f0=this['_configService'][_0x340b15(0x1b7)](y);_0x10a6f0!=null&&_0x10a6f0['showDeveloperTools']&&this[_0x340b15(0x22f)][_0x340b15(0x265)]({'id':L,'title':{'title':this[_0x340b15(0x26e)]['t']('mcpConfig.title')},'children':{'label':_0x340b15(0x1ae)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3d8579=_0x340b15;this[_0x3d8579(0x22f)][_0x3d8579(0x19e)](L);}});}[_0x3504c9(0x27c)](){const _0x28423b=_0x3504c9;return this['_mcpCoreConfig$'][_0x28423b(0x1e9)];}[_0x3504c9(0x19c)](){const _0xc257db=_0x3504c9;this[_0xc257db(0x1a4)](this['_componentManager'][_0xc257db(0x1c1)](_0xc257db(0x1ae),this['_createConfigPanelComponent']()));}[_0x3504c9(0x24d)](){const _0x398888=_0x3504c9;return _0x3c7794(()=>{const _0xfd8e17=_0x418a;var _0x3cac0f,_0x24d6fc,_0x524f48;return _0x47d81f(nn,{'config':this[_0xfd8e17(0x1fe)][_0xfd8e17(0x1e9)],'mcpCoreConfig':this[_0xfd8e17(0x1e7)][_0xfd8e17(0x1e9)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0xfd8e17(0x257)],'loading':this['_loading$'][_0xfd8e17(0x1e9)],'connectionStatus$':(_0x3cac0f=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x3cac0f[_0xfd8e17(0x160)],'connectionError$':(_0x24d6fc=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x24d6fc['connectionError$'],'currentSessionId$':(_0x524f48=this[_0xfd8e17(0x1a3)])==null?void 0x0:_0x524f48[_0xfd8e17(0x1cd)]});},this[_0x398888(0x18b)]);}[_0x3504c9(0x29a)](){const _0x4b7fe8=_0x3504c9;this[_0x4b7fe8(0x1a4)](this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b1)](_0x2502a4)[_0x4b7fe8(0x1ac)](_0x44ca85=>{const _0x1556dd=_0x4b7fe8;this[_0x1556dd(0x1e7)][_0x1556dd(0x292)](_0x44ca85||{});}));const _0x4f8dae=this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b7)](_0x2502a4);this[_0x4b7fe8(0x1e7)][_0x4b7fe8(0x292)](_0x4f8dae||{}),this[_0x4b7fe8(0x1a4)](this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b1)](y)[_0x4b7fe8(0x1ac)](_0x82d13a=>{const _0x14a591=_0x4b7fe8;this[_0x14a591(0x1fe)][_0x14a591(0x292)](_0x82d13a||{});}));const _0x3be09e=this[_0x4b7fe8(0x207)][_0x4b7fe8(0x1b7)](y);this['_config$'][_0x4b7fe8(0x292)](_0x3be09e||{});}async[_0x3504c9(0x156)](){const _0x209d14=_0x3504c9,_0x4e07f=this[_0x209d14(0x207)][_0x209d14(0x1b7)](y);if(!(_0x4e07f!=null&&_0x4e07f[_0x209d14(0x1ad)]))return;const _0x2cd740=await this[_0x209d14(0x170)][_0x209d14(0x168)](U);_0x2cd740&&(this[_0x209d14(0x1a3)][_0x209d14(0x201)]({'Authorization':_0x209d14(0x1eb)+_0x2cd740}),this[_0x209d14(0x1d7)][_0x209d14(0x292)](_0x2cd740));}async[_0x3504c9(0x1fb)](_0x3b772b){const _0x31e4ce=_0x3504c9;if(!_0x3b772b['apiKey']||_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x31e4ce(0x26e)]['t'](_0x31e4ce(0x27a))};if(_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]()[_0x31e4ce(0x16b)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x31e4ce(0x26e)]['t'](_0x31e4ce(0x178))};try{const _0x2d4260=await this['_injector'][_0x31e4ce(0x275)](_0x2f25e4)['validateApiKey'](_0x3b772b[_0x31e4ce(0x1aa)][_0x31e4ce(0x21b)]());return _0x2d4260[_0x31e4ce(0x1c5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2d4260[_0x31e4ce(0x188)]||this[_0x31e4ce(0x26e)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0xd68368){return console[_0x31e4ce(0x163)](_0x31e4ce(0x190),_0xd68368),{'isValid':!0x0};}}};I=tn([d(0x0,_0x22aeb1(_0x3b20df)),d(0x1,_0x5e5a73),d(0x2,_0x967953),d(0x3,_0x493214),d(0x4,_0x1c68c5),d(0x5,_0x52f42d),d(0x6,_0x22aeb1(_0x25a9b7)),d(0x7,_0x22aeb1(_0x500816)),d(0x8,_0x1b5827),d(0x9,_0x22aeb1(_0x2f25e4))],I);const V={'id':_0x3504c9(0x27f),'type':_0x498394['COMMAND'],'handler':async(_0x52184e,_0x116fb2)=>(_0x52184e['get'](I)[_0x3504c9(0x233)](),!0x0)};function pe(_0x39c257,_0x2b8dcd){const _0x532eda=_0x3504c9;switch(_0x39c257){case _0x53b579[_0x532eda(0x246)]:return _0x532eda(0x1ca);case _0x53b579[_0x532eda(0x1be)]:return _0x532eda(0x17d);case _0x53b579[_0x532eda(0x26a)]:return'mcpStatus.connected';case _0x53b579[_0x532eda(0x215)]:switch(_0x2b8dcd){case _0x1b6dba['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x1b6dba[_0x532eda(0x209)]:return _0x532eda(0x1b8);case _0x1b6dba[_0x532eda(0x1db)]:return _0x532eda(0x1d4);case _0x1b6dba[_0x532eda(0x172)]:return _0x532eda(0x272);default:return _0x532eda(0x278);}case _0x53b579[_0x532eda(0x259)]:return _0x532eda(0x212);default:return _0x532eda(0x1f1);}}function on(_0x228303,_0x382e58,_0x1bd0b6,_0x5c2c00=!0x0){const _0x2d77aa=_0x3504c9,_0x12676e=pe(_0x228303,_0x382e58),_0x525ad1=_0x1bd0b6['t'](_0x12676e);return _0x5c2c00?_0x228303===_0x53b579[_0x2d77aa(0x246)]&&_0x382e58===_0x1b6dba[_0x2d77aa(0x1f5)]?_0x525ad1+'\x20-\x20'+_0x1bd0b6['t']('mcpStatus.clickToConfigure'):_0x228303===_0x53b579[_0x2d77aa(0x26a)]?''+_0x525ad1:_0x228303===_0x53b579[_0x2d77aa(0x246)]||_0x228303===_0x53b579['FAILED']?_0x525ad1+_0x2d77aa(0x1c8)+_0x1bd0b6['t'](_0x2d77aa(0x22d)):_0x525ad1:_0x525ad1;}function sn(_0x436a14){const _0x4f8e81=_0x3504c9;switch(_0x436a14){case _0x53b579[_0x4f8e81(0x26a)]:return _0x4f8e81(0x20c);case _0x53b579['CONNECTING']:case _0x53b579['RETRYING']:return _0x4f8e81(0x296);case _0x53b579['FAILED']:case _0x53b579['DISCONNECTED']:return _0x4f8e81(0x256);default:return _0x4f8e81(0x17c);}}function cn(_0xa271c){const _0x46f79f=_0x3504c9,{status$:_0x500225,error$:_0x286ed9,onConfigure:_0x1b7df9,showClickable:_0x1eae48=!0x0}=_0xa271c,_0x4c98c2=_0x478b78(_0x500225,_0x53b579[_0x46f79f(0x246)]),_0x45361d=_0x478b78(_0x286ed9,_0x1b6dba[_0x46f79f(0x206)]),_0x563b50=_0x256644(_0x500816),_0x2b197d=_0x4c98c2===_0x53b579[_0x46f79f(0x26a)];_0x4c98c2===_0x53b579[_0x46f79f(0x1be)]||_0x53b579['RETRYING'];const _0x40dec3=_0x563b50['t'](pe(_0x4c98c2,_0x45361d)),_0x5af01a=on(_0x4c98c2,_0x45361d,_0x563b50,_0x1eae48),_0x5c3966=sn(_0x4c98c2),_0x1564bb=_0x2b197d?_0x47d81f(ge,{}):_0x47d81f(de,{}),_0x1a62c4=_0x10851e(()=>{_0x1eae48&&_0x1b7df9&&_0x1b7df9();},[_0x1eae48,_0x1b7df9]);function _0xe649de(){const _0x1a121f=_0x46f79f;return _0x26b802('div',{'className':_0x2316bb(_0x1a121f(0x28b),_0x1eae48&&_0x1b7df9&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x1eae48&&_0x1b7df9?_0x1a62c4:void 0x0,'children':[_0x47d81f('div',{'className':_0x2316bb('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x5c3966),'children':_0x1564bb}),_0x47d81f(_0x1a121f(0x1d2),{'className':_0x1a121f(0x1c2),'children':_0x40dec3})]});}return _0x47d81f(_0x1114ec,{'title':_0x5af01a,'placement':_0x46f79f(0x29b),'children':_0xe649de()});}var an=Object[_0x3504c9(0x18a)],ln=(_0x2c4392,_0x4db0c9,_0x150fe9,_0xc665c2)=>{const _0x1b5813=_0x3504c9;for(var _0x2697fd=_0xc665c2>0x1?void 0x0:_0xc665c2?an(_0x4db0c9,_0x150fe9):_0x4db0c9,_0x2b954b=_0x2c4392[_0x1b5813(0x16b)]-0x1,_0x2a6eee;_0x2b954b>=0x0;_0x2b954b--)(_0x2a6eee=_0x2c4392[_0x2b954b])&&(_0x2697fd=_0x2a6eee(_0x2697fd)||_0x2697fd);return _0x2697fd;},M=(_0x2e466d,_0x1e7be5)=>(_0x871e4,_0x169173)=>_0x1e7be5(_0x871e4,_0x169173,_0x2e466d);let O=class extends _0x422753{constructor(_0x1e647e,_0x12a254,_0x2cdebc,_0x41244e){const _0x461660=_0x3504c9;super(),this[_0x461660(0x18b)]=_0x1e647e,this[_0x461660(0x1dc)]=_0x12a254,this[_0x461660(0x1bf)]=_0x2cdebc,this[_0x461660(0x207)]=_0x41244e,this[_0x461660(0x270)](),this[_0x461660(0x1cc)]();}[_0x3504c9(0x270)](){const _0x438bf7=_0x3504c9,_0x45789d=this[_0x438bf7(0x207)][_0x438bf7(0x1b7)](y);_0x45789d!=null&&_0x45789d['showDeveloperTools']&&(this[_0x438bf7(0x1dc)][_0x438bf7(0x1e1)]=!0x1);}[_0x3504c9(0x1cc)](){const _0x24496a=_0x3504c9,_0x507559=this[_0x24496a(0x207)][_0x24496a(0x1b7)](y);(_0x507559==null?void 0x0:_0x507559[_0x24496a(0x1bc)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x24496a(0x21a)](_0x4f81ad[_0x24496a(0x298)],()=>{const _0x2cc5c9=_0x24496a;var _0x77a6b8;return _0x3c7794(un({'status$':this[_0x2cc5c9(0x1dc)]['connectionStatus$'],'error$':this[_0x2cc5c9(0x1dc)][_0x2cc5c9(0x24f)],'onConfigure':()=>this[_0x2cc5c9(0x1e4)](),'showClickable':(_0x77a6b8=_0x507559==null?void 0x0:_0x507559[_0x2cc5c9(0x1ad)])!=null?_0x77a6b8:!0x1}),this[_0x2cc5c9(0x18b)]);}));}[_0x3504c9(0x1e4)](){const _0x2a1e20=_0x3504c9;this[_0x2a1e20(0x18b)][_0x2a1e20(0x275)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x22aeb1(_0x3b20df)),M(0x1,_0x22aeb1(_0x2f25e4)),M(0x2,_0x5e5a73),M(0x3,_0x967953)],O);function un(_0x1408a3){const {status$:_0x515444,error$:_0x3cab24,onConfigure:_0x5dc6b1,showClickable:_0x51bdba}=_0x1408a3;return function(){return _0x47d81f(cn,{'status$':_0x515444,'error$':_0x3cab24,'onConfigure':_0x5dc6b1,'showClickable':_0x51bdba});};}function vn(_0x4702fd){const _0x24d80d=_0x3504c9;return{'id':V['id'],'type':_0xd1e96c[_0x24d80d(0x289)],'icon':_0x24d80d(0x17e),'title':_0x24d80d(0x153),'tooltip':_0x24d80d(0x153)};}const dn={[_0x17a6fa[_0x3504c9(0x260)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3504c9(0x18a)],pn=(_0x292ee6,_0xd306a9,_0x2b02fd,_0x5165b5)=>{const _0x1ad892=_0x3504c9;for(var _0x43840d=_0x5165b5>0x1?void 0x0:_0x5165b5?gn(_0xd306a9,_0x2b02fd):_0xd306a9,_0x3ac4c8=_0x292ee6[_0x1ad892(0x16b)]-0x1,_0x11c381;_0x3ac4c8>=0x0;_0x3ac4c8--)(_0x11c381=_0x292ee6[_0x3ac4c8])&&(_0x43840d=_0x11c381(_0x43840d)||_0x43840d);return _0x43840d;},re=(_0x448f30,_0x577c13)=>(_0x228292,_0x4269ab)=>_0x577c13(_0x228292,_0x4269ab,_0x448f30);let D=class extends _0x422753{constructor(_0x183b51,_0x1e9168){const _0x3a3152=_0x3504c9;super(),this['_commandService']=_0x183b51,this[_0x3a3152(0x1b4)]=_0x1e9168,this[_0x3a3152(0x1e2)](),this['_initializeMenus']();}[_0x3504c9(0x1e2)](){const _0x58217a=_0x3504c9;[V][_0x58217a(0x20d)](_0x5bcae6=>{const _0x3e2b59=_0x58217a;this[_0x3e2b59(0x1a4)](this['_commandService'][_0x3e2b59(0x279)](_0x5bcae6));});}[_0x3504c9(0x171)](){const _0x5f1922=_0x3504c9;this[_0x5f1922(0x1b4)][_0x5f1922(0x1e0)](dn);}};D=pn([re(0x0,_0x4ae9c5),re(0x1,_0x7041bd)],D);const Mn={'mcpStatus':{'disconnected':_0x3504c9(0x1d8),'connecting':_0x3504c9(0x276),'connected':_0x3504c9(0x1f3),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3504c9(0x179),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3504c9(0x25b),'networkError':_0x3504c9(0x214),'maxRetriesExceeded':_0x3504c9(0x280),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3504c9(0x162)},'mcpConfig':{'title':_0x3504c9(0x262),'description':_0x3504c9(0x247),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3504c9(0x192),'apiKeyHint':_0x3504c9(0x195),'enableAuth':_0x3504c9(0x1cf),'enableAuthHint':_0x3504c9(0x164),'connectionInfo':_0x3504c9(0x1a8),'mcpClientConfig':_0x3504c9(0x1a8),'configInstructions':_0x3504c9(0x173),'configStepTitle':_0x3504c9(0x1f2),'configStep1':_0x3504c9(0x24e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3504c9(0x235),'sessionId':_0x3504c9(0x1b0),'sessionIdDescription':_0x3504c9(0x161),'authorizationDescription':_0x3504c9(0x287),'configParameters':_0x3504c9(0x237),'maxRetries':_0x3504c9(0x15e),'save':'Save\x20Configuration','saving':_0x3504c9(0x25f),'note1':_0x3504c9(0x258),'note2':_0x3504c9(0x1a0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3504c9(0x194),'apiApplyInfo':{'title':_0x3504c9(0x223),'description':_0x3504c9(0x219),'univerAiLabel':_0x3504c9(0x166),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3504c9(0x165),'apiKeyTooShort':_0x3504c9(0x1f6),'invalidConfig':_0x3504c9(0x210),'invalidApiKey':_0x3504c9(0x198)},'connectionStatus':{'disconnected':_0x3504c9(0x1ab),'connecting':'Connecting...','connected':_0x3504c9(0x1e3),'failed':_0x3504c9(0x176),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3504c9(0x1ba),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3504c9(0x24c),'maxRetriesExceeded':_0x3504c9(0x193)}}},An={'mcpStatus':{'disconnected':_0x3504c9(0x284),'connecting':_0x3504c9(0x29d),'connected':'MCP\x20已连接','failed':_0x3504c9(0x159),'retrying':_0x3504c9(0x17a),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3504c9(0x1b2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x3504c9(0x1bd),'clickToConnect':_0x3504c9(0x220),'clickToConfigure':_0x3504c9(0x269)},'mcpConfig':{'title':_0x3504c9(0x181),'description':_0x3504c9(0x186),'apiKey':_0x3504c9(0x294),'apiKeyPlaceholder':_0x3504c9(0x264),'apiKeyHint':_0x3504c9(0x1c9),'enableAuth':_0x3504c9(0x205),'enableAuthHint':_0x3504c9(0x15d),'connectionInfo':_0x3504c9(0x167),'mcpClientConfig':_0x3504c9(0x167),'configInstructions':_0x3504c9(0x25c),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x3504c9(0x27e),'configStep3':_0x3504c9(0x254),'sessionId':_0x3504c9(0x266),'sessionIdDescription':_0x3504c9(0x252),'authorizationDescription':_0x3504c9(0x1a5),'configParameters':_0x3504c9(0x1c0),'maxRetries':_0x3504c9(0x230),'save':_0x3504c9(0x244),'saving':_0x3504c9(0x1c7),'note1':'配置更改将立即生效','note2':_0x3504c9(0x14d),'configSaved':'配置保存成功','configError':_0x3504c9(0x221),'apiApplyInfo':{'title':_0x3504c9(0x197),'description':_0x3504c9(0x1b5),'univerAiLabel':_0x3504c9(0x19a),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x3504c9(0x25d),'invalidConfig':_0x3504c9(0x291),'invalidApiKey':_0x3504c9(0x17b)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':'已连接','failed':_0x3504c9(0x16e),'retrying':_0x3504c9(0x21f)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3504c9(0x226),'networkError':_0x3504c9(0x227),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x3504c9(0x299)],hn=Object[_0x3504c9(0x18a)],Cn=(_0x9850fd,_0x1aeaf1,_0x17b81a)=>_0x1aeaf1 in _0x9850fd?fn(_0x9850fd,_0x1aeaf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17b81a}):_0x9850fd[_0x1aeaf1]=_0x17b81a,mn=(_0x211164,_0x24190e,_0x5c2dcf,_0x5639e2)=>{for(var _0x23b883=_0x5639e2>0x1?void 0x0:_0x5639e2?hn(_0x24190e,_0x5c2dcf):_0x24190e,_0x3c225b=_0x211164['length']-0x1,_0x1fddec;_0x3c225b>=0x0;_0x3c225b--)(_0x1fddec=_0x211164[_0x3c225b])&&(_0x23b883=_0x1fddec(_0x23b883)||_0x23b883);return _0x23b883;},P=(_0x9431f7,_0x44b475)=>(_0x34bbfb,_0x10edc1)=>_0x44b475(_0x34bbfb,_0x10edc1,_0x9431f7),_n=(_0xa7cb3d,_0x58e618,_0x26b387)=>Cn(_0xa7cb3d,_0x58e618+'',_0x26b387);let j=class extends _0xe522b5{constructor(_0x22354c=ie,_0x3c7375,_0x2945a6,_0xdc303b,_0x28f16f,_0x13020c){const _0x5c6f0f=_0x3504c9;super(),this['_config']=_0x22354c,this[_0x5c6f0f(0x18b)]=_0x3c7375,this['_configService']=_0x2945a6,this[_0x5c6f0f(0x1bf)]=_0xdc303b,this['_localStorageService']=_0x28f16f,this[_0x5c6f0f(0x26e)]=_0x13020c;const {..._0x237015}=_0x52c909({},ie,this[_0x5c6f0f(0x15f)]);this[_0x5c6f0f(0x207)]['setConfig'](y,_0x237015);}async[_0x3504c9(0x1af)](){const _0x5597f5=_0x3504c9,_0x1a30ea=[[O],[I],[D]];this['_injector'][_0x5597f5(0x1d6)](_0x274cf1)||_0x1a30ea[_0x5597f5(0x23f)]([_0x274cf1,{'useClass':_0x180b24}]),_0x1a30ea[_0x5597f5(0x20d)](_0x4c67cd=>this[_0x5597f5(0x18b)][_0x5597f5(0x1ea)](_0x4c67cd)),this[_0x5597f5(0x18b)]['get'](O),this[_0x5597f5(0x18b)][_0x5597f5(0x275)](I),this[_0x5597f5(0x18b)][_0x5597f5(0x275)](D);}};_n(j,'pluginName','MCP_UI_PLUGIN'),j=mn([_0x3893d1(_0x1a183c),P(0x1,_0x22aeb1(_0x3b20df)),P(0x2,_0x967953),P(0x3,_0x5e5a73),P(0x4,_0x493214),P(0x5,_0x22aeb1(_0x500816))],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
|
-
const
|
|
1
|
+
const _0x335925=_0x1161;function _0x1161(_0x41e74f,_0x29f0a9){const _0x13a14e=_0x13a1();return _0x1161=function(_0x1161ce,_0x58a12b){_0x1161ce=_0x1161ce-0x10c;let _0x4c467f=_0x13a14e[_0x1161ce];return _0x4c467f;},_0x1161(_0x41e74f,_0x29f0a9);}(function(_0x1aefdb,_0x2c39b4){const _0xba1b5e=_0x1161,_0x537dd9=_0x1aefdb();while(!![]){try{const _0x5451cd=-parseInt(_0xba1b5e(0x13b))/0x1+-parseInt(_0xba1b5e(0x11c))/0x2*(-parseInt(_0xba1b5e(0x127))/0x3)+parseInt(_0xba1b5e(0x114))/0x4*(-parseInt(_0xba1b5e(0x134))/0x5)+-parseInt(_0xba1b5e(0x140))/0x6+-parseInt(_0xba1b5e(0x117))/0x7+-parseInt(_0xba1b5e(0x133))/0x8+parseInt(_0xba1b5e(0x12e))/0x9;if(_0x5451cd===_0x2c39b4)break;else _0x537dd9['push'](_0x537dd9['shift']());}catch(_0x57d4c7){_0x537dd9['push'](_0x537dd9['shift']());}}}(_0x13a1,0x7d1ef));function _0x13a1(){const _0x5549f4=['MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','29816FUbFjs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','1360345XoXqsg','Enable\x20Authentication','Connected','Session\x20ID','Configuration\x20Steps:','115474MebFZF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\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.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','45jwiVcO','Connection\x20Failed','MCP\x20Unknown\x20Status','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Invalid\x20configuration','11844468TamxLB','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','6165728xKePdx','50YIMMEd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Connecting...','What\x20is\x20API\x20Key?','480641iloinX','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','896280HqPgzt','MCP\x20Retrying...','MCP\x20Connection\x20Failed','MCP\x20Configuration'];_0x13a1=function(){return _0x5549f4;};return _0x13a1();}const e={'mcpStatus':{'disconnected':_0x335925(0x13f),'connecting':_0x335925(0x130),'connected':_0x335925(0x12c),'failed':_0x335925(0x142),'retrying':_0x335925(0x141),'unknown':_0x335925(0x129),'unauthorized':_0x335925(0x10d),'sessionOccupied':_0x335925(0x12a),'networkError':_0x335925(0x116),'maxRetriesExceeded':_0x335925(0x112),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x335925(0x12f)},'mcpConfig':{'title':_0x335925(0x10c),'description':_0x335925(0x113),'apiKey':_0x335925(0x13d),'apiKeyPlaceholder':_0x335925(0x137),'apiKeyHint':_0x335925(0x122),'enableAuth':_0x335925(0x118),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x335925(0x125),'mcpClientConfig':_0x335925(0x125),'configInstructions':_0x335925(0x13e),'configStepTitle':_0x335925(0x11b),'configStep1':_0x335925(0x10e),'configStep2':_0x335925(0x131),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x335925(0x11a),'sessionIdDescription':_0x335925(0x123),'authorizationDescription':_0x335925(0x12b),'configParameters':_0x335925(0x124),'maxRetries':_0x335925(0x121),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x335925(0x111),'note2':_0x335925(0x135),'configSaved':_0x335925(0x138),'configError':_0x335925(0x126),'apiApplyInfo':{'title':_0x335925(0x13a),'description':_0x335925(0x11f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x335925(0x13c)},'validation':{'apiKeyRequired':_0x335925(0x110),'apiKeyTooShort':_0x335925(0x11d),'invalidConfig':_0x335925(0x12d),'invalidApiKey':_0x335925(0x136)},'connectionStatus':{'disconnected':_0x335925(0x10f),'connecting':_0x335925(0x139),'connected':_0x335925(0x119),'failed':_0x335925(0x128),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x335925(0x120),'sessionOccupied':_0x335925(0x11e),'networkError':_0x335925(0x115),'maxRetriesExceeded':_0x335925(0x132)}}},n=e;export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a0295=_0x32f1;(function(_0x253658,_0x22571e){const _0x27ca4f=_0x32f1,_0xfb24bb=_0x253658();while(!![]){try{const _0x57020a=parseInt(_0x27ca4f(0x1e4))/0x1+-parseInt(_0x27ca4f(0x1f8))/0x2+parseInt(_0x27ca4f(0x1dd))/0x3*(-parseInt(_0x27ca4f(0x1e0))/0x4)+parseInt(_0x27ca4f(0x1df))/0x5+-parseInt(_0x27ca4f(0x1db))/0x6*(-parseInt(_0x27ca4f(0x1f4))/0x7)+-parseInt(_0x27ca4f(0x1cf))/0x8*(parseInt(_0x27ca4f(0x1ce))/0x9)+parseInt(_0x27ca4f(0x1ef))/0xa;if(_0x57020a===_0x22571e)break;else _0xfb24bb['push'](_0xfb24bb['shift']());}catch(_0x402251){_0xfb24bb['push'](_0xfb24bb['shift']());}}}(_0x1300,0xb9589));const e={'mcpStatus':{'disconnected':_0x5a0295(0x1d7),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5a0295(0x1cc),'retrying':_0x5a0295(0x1e1),'unknown':_0x5a0295(0x1d5),'unauthorized':_0x5a0295(0x1d4),'sessionOccupied':_0x5a0295(0x1fa),'networkError':_0x5a0295(0x1e6),'maxRetriesExceeded':_0x5a0295(0x1d6),'clickToConnect':_0x5a0295(0x1e7),'clickToConfigure':_0x5a0295(0x1fe)},'mcpConfig':{'title':_0x5a0295(0x1cd),'description':_0x5a0295(0x1e5),'apiKey':_0x5a0295(0x1d0),'apiKeyPlaceholder':_0x5a0295(0x1e2),'apiKeyHint':_0x5a0295(0x1f1),'enableAuth':_0x5a0295(0x1ff),'enableAuthHint':_0x5a0295(0x1e3),'connectionInfo':_0x5a0295(0x1fc),'mcpClientConfig':_0x5a0295(0x1fc),'configInstructions':_0x5a0295(0x1eb),'configStepTitle':_0x5a0295(0x1e8),'configStep1':_0x5a0295(0x1d2),'configStep2':_0x5a0295(0x1fb),'configStep3':_0x5a0295(0x1f9),'sessionId':_0x5a0295(0x1d8),'sessionIdDescription':_0x5a0295(0x1f6),'authorizationDescription':_0x5a0295(0x1f3),'configParameters':_0x5a0295(0x1f0),'maxRetries':_0x5a0295(0x1ca),'save':_0x5a0295(0x1cb),'saving':_0x5a0295(0x1ec),'note1':_0x5a0295(0x1dc),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5a0295(0x1ed),'configError':_0x5a0295(0x1d3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5a0295(0x1ee),'univerAiLabel':_0x5a0295(0x1d9),'getStarted':_0x5a0295(0x1f5)},'validation':{'apiKeyRequired':_0x5a0295(0x1da),'apiKeyTooShort':_0x5a0295(0x1ea),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5a0295(0x1f2)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5a0295(0x1de),'connected':'Connected','failed':_0x5a0295(0x1fd),'retrying':_0x5a0295(0x1e9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a0295(0x1d1),'maxRetriesExceeded':_0x5a0295(0x1f7)}}};export{e as default};function _0x32f1(_0x11392d,_0x3fb39f){const _0x130075=_0x1300();return _0x32f1=function(_0x32f1d1,_0xea3660){_0x32f1d1=_0x32f1d1-0x1ca;let _0x3e0fab=_0x130075[_0x32f1d1];return _0x3e0fab;},_0x32f1(_0x11392d,_0x3fb39f);}function _0x1300(){const _0x525037=['Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2102596mHWYOW','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','Connection\x20Failed','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','Max\x20Retries','Save\x20Configuration','MCP\x20Connection\x20Failed','MCP\x20Configuration','4425012yJlqXA','24akLOYw','API\x20Key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','Session\x20ID','Univer\x20AI\x20Console','API\x20key\x20is\x20required','6rpiQvP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','627BVbWsg','Connecting...','4861660EQyhnB','18820ijEhjS','MCP\x20Retrying...','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','1324828xCdUMA','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Configuration\x20saved\x20successfully','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','8197220KDxreh','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','8063594uhVsMW'];_0x1300=function(){return _0x525037;};return _0x1300();}
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x485ab8=_0x3046;function _0x2eb0(){const _0x51b670=['446558AcEpJt','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','2164580AZNYud','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','246WNUmgb','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Disconnected','6097986cEJFdH','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','MCP:\x20Unauthorized','Saving...','7444xSClxx','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','MCP\x20Configuration','24340672FoEZJz','Connecting...','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20configuration','Disconnected','Enable\x20Authentication','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','135114lTACWK','Connection\x20Failed','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Max\x20Retries','API\x20Key','Session\x20ID','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20with\x20Bearer\x20prefix.','1301208JIvXgD'];_0x2eb0=function(){return _0x51b670;};return _0x2eb0();}(function(_0x288282,_0x38c38f){const _0x2b3711=_0x3046,_0x4123eb=_0x288282();while(!![]){try{const _0x32f656=-parseInt(_0x2b3711(0x81))/0x1+-parseInt(_0x2b3711(0x8e))/0x2+-parseInt(_0x2b3711(0x97))/0x3*(parseInt(_0x2b3711(0x72))/0x4)+-parseInt(_0x2b3711(0x92))/0x5+-parseInt(_0x2b3711(0x9a))/0x6+-parseInt(_0x2b3711(0x8f))/0x7+parseInt(_0x2b3711(0x76))/0x8;if(_0x32f656===_0x38c38f)break;else _0x4123eb['push'](_0x4123eb['shift']());}catch(_0x52c18b){_0x4123eb['push'](_0x4123eb['shift']());}}}(_0x2eb0,0x90577));const e={'mcpStatus':{'disconnected':_0x485ab8(0x99),'connecting':_0x485ab8(0x8b),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x485ab8(0x9d),'unknown':_0x485ab8(0x93),'unauthorized':_0x485ab8(0x70),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x485ab8(0x7b),'clickToConnect':_0x485ab8(0x8a),'clickToConfigure':_0x485ab8(0x73)},'mcpConfig':{'title':_0x485ab8(0x75),'description':_0x485ab8(0x7a),'apiKey':_0x485ab8(0x88),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x485ab8(0x7e),'enableAuthHint':_0x485ab8(0x7f),'connectionInfo':_0x485ab8(0x91),'mcpClientConfig':_0x485ab8(0x91),'configInstructions':_0x485ab8(0x79),'configStepTitle':_0x485ab8(0x74),'configStep1':_0x485ab8(0x85),'configStep2':_0x485ab8(0x98),'configStep3':_0x485ab8(0x94),'sessionId':_0x485ab8(0x89),'sessionIdDescription':_0x485ab8(0x86),'authorizationDescription':_0x485ab8(0x8d),'configParameters':_0x485ab8(0x78),'maxRetries':_0x485ab8(0x87),'save':_0x485ab8(0x95),'saving':_0x485ab8(0x71),'note1':_0x485ab8(0x8c),'note2':_0x485ab8(0x9c),'configSaved':_0x485ab8(0x9b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x485ab8(0x96)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x485ab8(0x80),'invalidConfig':_0x485ab8(0x7c),'invalidApiKey':_0x485ab8(0x84)},'connectionStatus':{'disconnected':_0x485ab8(0x7d),'connecting':_0x485ab8(0x77),'connected':'Connected','failed':_0x485ab8(0x82),'retrying':_0x485ab8(0x83)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x485ab8(0x90),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x3046(_0x3a5984,_0x48de8e){const _0x2eb036=_0x2eb0();return _0x3046=function(_0x304670,_0x235131){_0x304670=_0x304670-0x70;let _0x383cda=_0x2eb036[_0x304670];return _0x383cda;},_0x3046(_0x3a5984,_0x48de8e);}export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x120b(){const _0x29dc30=['Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','120PxRfYA','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','118861PFkBfP','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','279594exMomu','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','841522NJqSwA','Session\x20ID','1280985XpBLHA','MCP\x20Client\x20Configuration','MCP\x20Connecting...','126VQnpNb','959864ysJgpr','5VYufwz','297143QwGAzW','Enable\x20authentication\x20for\x20secure\x20connections','231830cwkTdP','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','Saving...','Connection\x20Failed'];_0x120b=function(){return _0x29dc30;};return _0x120b();}const _0x487d06=_0x1295;function _0x1295(_0x3c4f66,_0x481b60){const _0x120ba9=_0x120b();return _0x1295=function(_0x129526,_0x56780f){_0x129526=_0x129526-0xb9;let _0x2f6edd=_0x120ba9[_0x129526];return _0x2f6edd;},_0x1295(_0x3c4f66,_0x481b60);}(function(_0x381d00,_0x41b316){const _0x4e7c2b=_0x1295,_0x1ce935=_0x381d00();while(!![]){try{const _0xd2302=parseInt(_0x4e7c2b(0xca))/0x1+parseInt(_0x4e7c2b(0xdb))/0x2+parseInt(_0x4e7c2b(0xdd))/0x3+parseInt(_0x4e7c2b(0xe1))/0x4*(-parseInt(_0x4e7c2b(0xe2))/0x5)+parseInt(_0x4e7c2b(0xd5))/0x6+parseInt(_0x4e7c2b(0xe3))/0x7*(-parseInt(_0x4e7c2b(0xc5))/0x8)+-parseInt(_0x4e7c2b(0xe0))/0x9*(-parseInt(_0x4e7c2b(0xe5))/0xa);if(_0xd2302===_0x41b316)break;else _0x1ce935['push'](_0x1ce935['shift']());}catch(_0x1a1c77){_0x1ce935['push'](_0x1ce935['shift']());}}}(_0x120b,0x70915));const e={'mcpStatus':{'disconnected':_0x487d06(0xd7),'connecting':_0x487d06(0xdf),'connected':_0x487d06(0xd1),'failed':_0x487d06(0xc8),'retrying':_0x487d06(0xd8),'unknown':_0x487d06(0xce),'unauthorized':_0x487d06(0xc7),'sessionOccupied':_0x487d06(0xcb),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x487d06(0xcc),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x487d06(0xd9)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x487d06(0xd2),'apiKey':_0x487d06(0xd3),'apiKeyPlaceholder':_0x487d06(0xc6),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x487d06(0xbf),'enableAuthHint':_0x487d06(0xe4),'connectionInfo':_0x487d06(0xde),'mcpClientConfig':_0x487d06(0xde),'configInstructions':_0x487d06(0xda),'configStepTitle':_0x487d06(0xbd),'configStep1':_0x487d06(0xc0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x487d06(0xdc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x487d06(0xb9),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x487d06(0xc2),'note1':_0x487d06(0xbe),'note2':_0x487d06(0xc9),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x487d06(0xc1),'apiApplyInfo':{'title':_0x487d06(0xba),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x487d06(0xd0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x487d06(0xbb),'invalidApiKey':_0x487d06(0xc4)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x487d06(0xcf),'failed':_0x487d06(0xc3),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x487d06(0xd4),'sessionOccupied':_0x487d06(0xd6),'networkError':_0x487d06(0xbc),'maxRetriesExceeded':_0x487d06(0xcd)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1f1c98=_0x5ad1;(function(_0x5d3c4a,_0x34383b){const _0x45f2ce=_0x5ad1,_0x11972d=_0x5d3c4a();while(!![]){try{const _0x4782a6=parseInt(_0x45f2ce(0xa3))/0x1*(-parseInt(_0x45f2ce(0xa2))/0x2)+-parseInt(_0x45f2ce(0x9c))/0x3*(parseInt(_0x45f2ce(0xac))/0x4)+-parseInt(_0x45f2ce(0x8a))/0x5+-parseInt(_0x45f2ce(0x92))/0x6+parseInt(_0x45f2ce(0xae))/0x7+-parseInt(_0x45f2ce(0xa4))/0x8+parseInt(_0x45f2ce(0xa5))/0x9*(parseInt(_0x45f2ce(0x8e))/0xa);if(_0x4782a6===_0x34383b)break;else _0x11972d['push'](_0x11972d['shift']());}catch(_0x18d57f){_0x11972d['push'](_0x11972d['shift']());}}}(_0xcf15,0x260e0));function _0xcf15(){const _0x25835a=['MCP\x20Unknown\x20Status','1707rRDiQr','Enable\x20Authentication','Invalid\x20configuration','What\x20is\x20API\x20Key?','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2efoTVc','122564BnHAjf','1693432tPQTPU','3924585VzVucN','Connection\x20Failed','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','420utuvTJ','Retrying...','1774472ywsFPN','MCP\x20Disconnected','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','330910QndjGg','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','Connected','10FVZLCW','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','441114fEtzst','Saving...','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Session\x20ID','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0xcf15=function(){return _0x25835a;};return _0xcf15();}function _0x5ad1(_0x2e91e3,_0x22c56a){const _0xcf1585=_0xcf15();return _0x5ad1=function(_0x5ad1cb,_0x4e51d1){_0x5ad1cb=_0x5ad1cb-0x84;let _0x3f6d72=_0xcf1585[_0x5ad1cb];return _0x3f6d72;},_0x5ad1(_0x2e91e3,_0x22c56a);}const e={'mcpStatus':{'disconnected':_0x1f1c98(0xaf),'connecting':_0x1f1c98(0x91),'connected':'MCP\x20Connected','failed':_0x1f1c98(0x8b),'retrying':'MCP\x20Retrying...','unknown':_0x1f1c98(0x9b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1f1c98(0xa0),'networkError':_0x1f1c98(0xa7),'maxRetriesExceeded':_0x1f1c98(0x84),'clickToConnect':_0x1f1c98(0x99),'clickToConfigure':_0x1f1c98(0x94)},'mcpConfig':{'title':_0x1f1c98(0x89),'description':_0x1f1c98(0x8f),'apiKey':_0x1f1c98(0xa9),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1f1c98(0xaa),'enableAuth':_0x1f1c98(0x9d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1f1c98(0xb0),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1f1c98(0x95),'configStep3':_0x1f1c98(0x86),'sessionId':_0x1f1c98(0x97),'sessionIdDescription':_0x1f1c98(0x85),'authorizationDescription':_0x1f1c98(0x87),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1f1c98(0x96),'save':'Save\x20Configuration','saving':_0x1f1c98(0x93),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x1f1c98(0x8c),'apiApplyInfo':{'title':_0x1f1c98(0x9f),'description':_0x1f1c98(0xa8),'univerAiLabel':_0x1f1c98(0xb2),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1f1c98(0x98),'apiKeyTooShort':_0x1f1c98(0xb1),'invalidConfig':_0x1f1c98(0x9e),'invalidApiKey':_0x1f1c98(0x88)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1f1c98(0x8d),'failed':_0x1f1c98(0xa6),'retrying':_0x1f1c98(0xad)},'connectionError':{'unauthorized':_0x1f1c98(0x9a),'sessionOccupied':_0x1f1c98(0xab),'networkError':_0x1f1c98(0x90),'maxRetriesExceeded':_0x1f1c98(0xa1)}}},n=e;export{n as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3ec7b5=_0x3890;function _0x3890(_0x3c596a,_0x450ea7){const _0x16581c=_0x1658();return _0x3890=function(_0x3890bd,_0x5e433a){_0x3890bd=_0x3890bd-0x172;let _0x65766e=_0x16581c[_0x3890bd];return _0x65766e;},_0x3890(_0x3c596a,_0x450ea7);}(function(_0x2c4a90,_0x148823){const _0x34e365=_0x3890,_0x13245e=_0x2c4a90();while(!![]){try{const _0x4fd569=parseInt(_0x34e365(0x199))/0x1+-parseInt(_0x34e365(0x175))/0x2+-parseInt(_0x34e365(0x19b))/0x3+parseInt(_0x34e365(0x194))/0x4*(-parseInt(_0x34e365(0x17d))/0x5)+parseInt(_0x34e365(0x188))/0x6+parseInt(_0x34e365(0x189))/0x7+-parseInt(_0x34e365(0x182))/0x8*(-parseInt(_0x34e365(0x18f))/0x9);if(_0x4fd569===_0x148823)break;else _0x13245e['push'](_0x13245e['shift']());}catch(_0x3eba42){_0x13245e['push'](_0x13245e['shift']());}}}(_0x1658,0xd524b));function _0x1658(){const _0x2deb67=['Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4518AnpSCN','Disconnected','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8vHWlGy','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','212292NivmtS','What\x20is\x20API\x20Key?','3804882jQJyYm','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Failed\x20to\x20save\x20configuration','491964PTpOAN','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Steps:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2622410gSwxVm','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','10088HjHNQx','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Connection\x20Failed','Retrying...','9025620EjwIKp','7606837LBIdNK'];_0x1658=function(){return _0x2deb67;};return _0x1658();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3ec7b5(0x179),'connected':_0x3ec7b5(0x185),'failed':'MCP\x20Connection\x20Failed','retrying':_0x3ec7b5(0x18c),'unknown':_0x3ec7b5(0x1a1),'unauthorized':_0x3ec7b5(0x195),'sessionOccupied':_0x3ec7b5(0x191),'networkError':_0x3ec7b5(0x180),'maxRetriesExceeded':_0x3ec7b5(0x181),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3ec7b5(0x17f)},'mcpConfig':{'title':_0x3ec7b5(0x176),'description':_0x3ec7b5(0x18b),'apiKey':_0x3ec7b5(0x198),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3ec7b5(0x173),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3ec7b5(0x197),'connectionInfo':_0x3ec7b5(0x17e),'mcpClientConfig':_0x3ec7b5(0x17e),'configInstructions':_0x3ec7b5(0x193),'configStepTitle':_0x3ec7b5(0x17b),'configStep1':_0x3ec7b5(0x184),'configStep2':_0x3ec7b5(0x17c),'configStep3':_0x3ec7b5(0x19e),'sessionId':'Session\x20ID','sessionIdDescription':_0x3ec7b5(0x18d),'authorizationDescription':_0x3ec7b5(0x177),'configParameters':_0x3ec7b5(0x183),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x3ec7b5(0x17a),'note2':_0x3ec7b5(0x196),'configSaved':_0x3ec7b5(0x19c),'configError':_0x3ec7b5(0x174),'apiApplyInfo':{'title':_0x3ec7b5(0x19a),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3ec7b5(0x192),'apiKeyTooShort':_0x3ec7b5(0x18e),'invalidConfig':_0x3ec7b5(0x172),'invalidApiKey':_0x3ec7b5(0x19f)},'connectionStatus':{'disconnected':_0x3ec7b5(0x190),'connecting':'Connecting...','connected':_0x3ec7b5(0x18a),'failed':_0x3ec7b5(0x186),'retrying':_0x3ec7b5(0x187)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3ec7b5(0x19d),'networkError':_0x3ec7b5(0x1a0),'maxRetriesExceeded':_0x3ec7b5(0x178)}}},n=e;export{n as default};
|