@univerjs-pro/mcp-ui 0.15.2-insiders.20260124-12fc7f0 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/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 _0xc70430=_0x2fba;(function(_0x21c83b,_0x205346){const _0x1dac2d=_0x2fba,_0x3290ca=_0x21c83b();while(!![]){try{const _0x4e411f=-parseInt(_0x1dac2d(0x295))/0x1*(-parseInt(_0x1dac2d(0x247))/0x2)+parseInt(_0x1dac2d(0x2ba))/0x3+parseInt(_0x1dac2d(0x1af))/0x4+-parseInt(_0x1dac2d(0x1cb))/0x5+parseInt(_0x1dac2d(0x272))/0x6*(parseInt(_0x1dac2d(0x1f0))/0x7)+parseInt(_0x1dac2d(0x2dd))/0x8*(-parseInt(_0x1dac2d(0x28b))/0x9)+parseInt(_0x1dac2d(0x1b8))/0xa*(parseInt(_0x1dac2d(0x2c1))/0xb);if(_0x4e411f===_0x205346)break;else _0x3290ca['push'](_0x3290ca['shift']());}catch(_0x551a05){_0x3290ca['push'](_0x3290ca['shift']());}}}(_0x22b3,0xed671));var Pe=Object[_0xc70430(0x2c5)],Ee=(_0x14ff4b,_0x1f830d,_0xd51d78)=>_0x1f830d in _0x14ff4b?Pe(_0x14ff4b,_0x1f830d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd51d78}):_0x14ff4b[_0x1f830d]=_0xd51d78,x=(_0x27ee51,_0x5c9c46,_0x47e9e7)=>Ee(_0x27ee51,typeof _0x5c9c46!=_0xc70430(0x2b9)?_0x5c9c46+'':_0x5c9c46,_0x47e9e7);import{LocaleService as _0x3ca3c0,Inject as _0x4ec27f,Injector as _0x2ea9cd,IConfigService as _0x1b1405,ILocalStorageService as _0x119742,ILogService as _0x3e3adb,Disposable as _0xa23c43,CommandType as _0x24bcf0,ICommandService as _0x46583b,DependentOn as _0x370e16,Plugin as _0x366cc9,merge as _0x3c61f2}from'@univerjs/core';import{jsxs as _0x30d051,jsx as _0x2bee5c}from'react/jsx-runtime';function _0x2fba(_0x461b43,_0x349801){_0x461b43=_0x461b43-0x194;const _0x22b31e=_0x22b3();let _0x2fba11=_0x22b31e[_0x461b43];return _0x2fba11;}import{MCPConnectionStatus as _0x1fd146,MCPConnectionError as _0x37cda4,MCPConnectionController as _0x4ccb5d,MCP_PLUGIN_CONFIG_KEY as _0x1aec7d,UniverMCPPlugin as _0x23c55e}from'@univerjs-pro/mcp';import{clsx as _0x29c14e,Input as _0x20ebf9,Button as _0x297c10,MessageType as _0x46b581,Tooltip as _0x315236}from'@univerjs/design';import{useDependency as _0x424c48,useObservable as _0xaeeec6,IUIPartsService as _0xcca592,IDialogService as _0x2d458a,IMessageService as _0x46ab61,ComponentManager as _0x5479c5,connectInjector as _0x2902af,BuiltInUIPart as _0x184ac4,MenuItemType as _0x3968d8,RibbonStartGroup as _0xc7b462,IMenuManagerService as _0x57aeeb}from'@univerjs/ui';import{BehaviorSubject as _0x2b5af2}from'rxjs';import{useRef as _0x3c6c11,createElement as _0x294b23,forwardRef as _0x426ac9,useState as _0x4c231f,useCallback as _0x48e070}from'react';import{ISocketService as _0x1e64d4,WebSocketService as _0x897e1b}from'@univerjs/network';function b({ref:_0x5034ec,..._0x5f10fd}){const _0x456aa1=_0xc70430,{icon:_0x54a2df,id:_0x401f88,className:_0x1775a6,extend:_0x156991,..._0x53662e}=_0x5f10fd,_0x13e5a9=(_0x456aa1(0x1a7)+_0x401f88+'\x20'+(_0x1775a6||''))[_0x456aa1(0x27d)](),_0x85cf97=_0x3c6c11('_'+We());return ae(_0x54a2df,''+_0x401f88,{'defIds':_0x54a2df[_0x456aa1(0x1d1)],'idSuffix':_0x85cf97[_0x456aa1(0x1f8)]},{'ref':_0x5034ec,'className':_0x13e5a9,..._0x53662e},_0x156991);}function ae(_0x142752,_0x251bb5,_0x2569bf,_0x2e35de,_0xffff0b){const _0x4802c3=_0xc70430;return _0x294b23(_0x142752['tag'],{'key':_0x251bb5,...Ye(_0x142752,_0x2569bf,_0xffff0b),..._0x2e35de},(Ze(_0x142752,_0x2569bf)[_0x4802c3(0x2cd)]||[])[_0x4802c3(0x1b0)]((_0x12322c,_0x4482bc)=>ae(_0x12322c,_0x251bb5+'-'+_0x142752[_0x4802c3(0x28f)]+'-'+_0x4482bc,_0x2569bf,void 0x0,_0xffff0b)));}function Ye(_0x1afd1a,_0x224b1d,_0xbb9469){const _0x38f610=_0xc70430,_0x31401f={..._0x1afd1a['attrs']};_0xbb9469!=null&&_0xbb9469[_0x38f610(0x209)]&&_0x31401f[_0x38f610(0x2be)]===_0x38f610(0x209)&&(_0x31401f['fill']=_0xbb9469[_0x38f610(0x209)]),_0x1afd1a[_0x38f610(0x28f)]===_0x38f610(0x1f9)&&_0x31401f['id']&&(_0x31401f['id']=_0x31401f['id']+_0x224b1d[_0x38f610(0x2ca)]),Object[_0x38f610(0x1b4)](_0x31401f)[_0x38f610(0x2c7)](([_0x223b9e,_0x291216])=>{const _0x1ba610=_0x38f610;_0x223b9e===_0x1ba610(0x1f9)&&typeof _0x291216==_0x1ba610(0x280)&&(_0x31401f[_0x223b9e]=_0x291216[_0x1ba610(0x28d)](/url\(#(.*)\)/,_0x1ba610(0x2cb)+_0x224b1d['idSuffix']+')'));});const {defIds:_0x2ec99a}=_0x224b1d;return!_0x2ec99a||_0x2ec99a[_0x38f610(0x1f1)]===0x0||(_0x1afd1a[_0x38f610(0x28f)]===_0x38f610(0x1cc)&&_0x31401f[_0x38f610(0x1fa)]&&(_0x31401f[_0x38f610(0x1fa)]=_0x31401f['xlink:href']+_0x224b1d[_0x38f610(0x2ca)]),Object[_0x38f610(0x1b4)](_0x31401f)['forEach'](([_0x8b7e7e,_0x3c06a6])=>{const _0x436d18=_0x38f610;typeof _0x3c06a6==_0x436d18(0x280)&&(_0x31401f[_0x8b7e7e]=_0x3c06a6[_0x436d18(0x28d)](/url\(#(.*)\)/,_0x436d18(0x2cb)+_0x224b1d[_0x436d18(0x2ca)]+')'));})),_0x31401f;}function Ze(_0x553988,_0x471b6a){const _0x2a011a=_0xc70430;var _0x3a1a0f;const {defIds:_0x5f43dd}=_0x471b6a;return!_0x5f43dd||_0x5f43dd[_0x2a011a(0x1f1)]===0x0?_0x553988:_0x553988[_0x2a011a(0x28f)]===_0x2a011a(0x2db)&&((_0x3a1a0f=_0x553988[_0x2a011a(0x2cd)])!=null&&_0x3a1a0f['length'])?{..._0x553988,'children':_0x553988[_0x2a011a(0x2cd)][_0x2a011a(0x1b0)](_0x1a3d41=>typeof _0x1a3d41[_0x2a011a(0x1c7)]['id']==_0x2a011a(0x280)&&_0x5f43dd&&_0x5f43dd[_0x2a011a(0x223)](_0x1a3d41[_0x2a011a(0x1c7)]['id'])?{..._0x1a3d41,'attrs':{..._0x1a3d41[_0x2a011a(0x1c7)],'id':_0x1a3d41[_0x2a011a(0x1c7)]['id']+_0x471b6a['idSuffix']}}:_0x1a3d41)}:_0x553988;}function We(){const _0x311aba=_0xc70430;return Math['random']()[_0x311aba(0x26e)](0x24)[_0x311aba(0x2bd)](0x2,0x8);}b[_0xc70430(0x2a6)]=_0xc70430(0x229);const qe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':_0xc70430(0x2b0)},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':'evenodd'}}]},le=_0x426ac9(function(_0x84308d,_0x3eb561){const _0x3a3b71=_0xc70430;return _0x294b23(b,Object[_0x3a3b71(0x262)]({},_0x84308d,{'id':_0x3a3b71(0x1db),'ref':_0x3eb561,'icon':qe}));});le[_0xc70430(0x2a6)]=_0xc70430(0x2c3);const Xe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':'1em','height':_0xc70430(0x2b0)},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':_0xc70430(0x1bc)}}]},ue=_0x426ac9(function(_0x24a3c0,_0x11738d){return _0x294b23(b,Object['assign']({},_0x24a3c0,{'id':'close-icon','ref':_0x11738d,'icon':Xe}));});ue[_0xc70430(0x2a6)]=_0xc70430(0x27c);const Je={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0xc70430(0x29c),'d':_0xc70430(0x2d7)}},{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'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':_0xc70430(0x1b5),'clipRule':_0xc70430(0x1b5)}}]},ve=_0x426ac9(function(_0x104906,_0x2bdefc){const _0x55df6d=_0xc70430;return _0x294b23(b,Object['assign']({},_0x104906,{'id':_0x55df6d(0x227),'ref':_0x2bdefc,'icon':Je}));});ve[_0xc70430(0x2a6)]='HelpIcon';const Qe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':_0xc70430(0x2b0)},'children':[{'tag':'g','attrs':{'clipPath':_0xc70430(0x194)},'children':[{'tag':_0xc70430(0x256),'attrs':{'stroke':'currentColor','d':_0xc70430(0x28a),'strokeLinecap':_0xc70430(0x258),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xc70430(0x232),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x207),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xc70430(0x2ee)]},de=_0x426ac9(function(_0x4bf6c2,_0x13aa10){const _0x16e8a3=_0xc70430;return _0x294b23(b,Object['assign']({},_0x4bf6c2,{'id':_0x16e8a3(0x241),'ref':_0x13aa10,'icon':Qe}));});de[_0xc70430(0x2a6)]=_0xc70430(0x25a);const en={'tag':_0xc70430(0x29f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x245),'width':'1em','height':_0xc70430(0x2b0)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xc70430(0x256),'attrs':{'stroke':_0xc70430(0x29c),'d':_0xc70430(0x1a6),'strokeLinecap':_0xc70430(0x258),'strokeLinejoin':_0xc70430(0x258),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':'white','d':_0xc70430(0x1d2),'transform':_0xc70430(0x1b9)}}]}]}],'defIds':[_0xc70430(0x230)]},ge=_0x426ac9(function(_0x5f4778,_0x269b0a){const _0x1b8060=_0xc70430;return _0x294b23(b,Object[_0x1b8060(0x262)]({},_0x5f4778,{'id':'on-line-icon','ref':_0x269b0a,'icon':en}));});ge[_0xc70430(0x2a6)]='OnLineIcon';function nn(_0x1b2f4d){const _0x27b78b=_0xc70430;var _0x109552,_0x5efbb1;const {mcpCoreConfig:_0x772468,onSave:_0xad4bb0,loading:_0x46bcf4=!0x1,config:_0x5613eb,connectionStatus$:_0x5ee0a8,connectionError$:_0x41d782,currentApiKey$:_0x495036,currentSessionId$:_0x204a5d}=_0x1b2f4d,_0x3fe769=_0x424c48(_0x3ca3c0),_0x21315c=_0xaeeec6(_0x5ee0a8,_0x1fd146[_0x27b78b(0x2e8)]),_0x519298=_0xaeeec6(_0x41d782,_0x37cda4['NONE']),_0x5d2b3d=_0xaeeec6(_0x204a5d,''),_0x486bcb=_0xaeeec6(_0x495036,''),[_0x37dd77,_0x4eeced]=_0x4c231f(_0x486bcb||''),_0x4fd668=!0x0,_0xa82e72=_0x5613eb[_0x27b78b(0x1ab)]&&_0x772468[_0x27b78b(0x1e0)]&&(_0x772468[_0x27b78b(0x1e0)][_0x27b78b(0x223)](_0x27b78b(0x1a1))||_0x772468[_0x27b78b(0x1e0)][_0x27b78b(0x223)](_0x27b78b(0x2e5))),_0x484b11=(_0x109552=_0x772468[_0x27b78b(0x1e0)])==null?void 0x0:_0x109552[_0x27b78b(0x223)](_0x27b78b(0x1a1)),_0x2ab238=(_0x5efbb1=_0x772468['mcpServerUrl'])==null?void 0x0:_0x5efbb1[_0x27b78b(0x223)]('univer.ai'),_0x12f83a=_0x484b11?_0x27b78b(0x1f4):_0x27b78b(0x23a),_0x4d85ad=_0x5613eb[_0x27b78b(0x1ab)]&&(_0x484b11||_0x2ab238),[_0x3abf41,_0x2b9fa6]=_0x4c231f(!_0x37dd77['trim']()),_0x118262=(_0x5cc2fb,_0x3ad01e)=>{const _0x547acf=_0x27b78b;if(_0x3ad01e===_0x37cda4[_0x547acf(0x1c3)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5cc2fb){case _0x1fd146['CONNECTED']:return _0x547acf(0x251);case _0x1fd146[_0x547acf(0x1d8)]:case _0x1fd146[_0x547acf(0x1e6)]:return _0x547acf(0x266);case _0x1fd146['FAILED']:return _0x547acf(0x294);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3dbbc3=(_0x48442d,_0x302f7f)=>{const _0x441a7d=_0x27b78b;if(_0x302f7f===_0x37cda4[_0x441a7d(0x1c3)])return _0x441a7d(0x1cf);switch(_0x48442d){case _0x1fd146['CONNECTED']:return'univer-bg-green-500';case _0x1fd146['CONNECTING']:case _0x1fd146['RETRYING']:return _0x441a7d(0x20b);case _0x1fd146[_0x441a7d(0x20c)]:return _0x441a7d(0x1cf);default:return'univer-bg-gray-500';}},_0x46478a=_0x38b55c=>{const _0x4433f1=_0x27b78b;switch(_0x38b55c){case _0x1fd146['CONNECTED']:return _0x3fe769['t'](_0x4433f1(0x260));case _0x1fd146['CONNECTING']:return _0x3fe769['t'](_0x4433f1(0x228));case _0x1fd146[_0x4433f1(0x20c)]:return _0x3fe769['t'](_0x4433f1(0x276));case _0x1fd146['RETRYING']:return _0x3fe769['t']('mcpConfig.connectionStatus.retrying');default:return _0x3fe769['t']('mcpConfig.connectionStatus.disconnected');}},_0x61bc3c=_0x3bd597=>{const _0x4d26e0=_0x27b78b;switch(_0x3bd597){case _0x37cda4[_0x4d26e0(0x1c3)]:return _0x3fe769['t'](_0x4d26e0(0x2d0));case _0x37cda4[_0x4d26e0(0x19f)]:return _0x3fe769['t'](_0x4d26e0(0x1e5));case _0x37cda4['NETWORK_ERROR']:return _0x3fe769['t'](_0x4d26e0(0x208));case _0x37cda4[_0x4d26e0(0x1fb)]:return _0x3fe769['t'](_0x4d26e0(0x242));default:return'';}},_0x11afb4=_0x48e070(()=>{const _0x20d68f=_0x27b78b,_0x4412e4={..._0x772468,'apiKey':_0x37dd77[_0x20d68f(0x27d)](),'enableAuth':_0x4fd668};_0xad4bb0(_0x4412e4);},[_0x772468,_0x37dd77,_0x4fd668,_0xad4bb0]),_0x4a003d=_0x37dd77[_0x27b78b(0x27d)]()['length']>0x0;return _0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1fc),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x246),'children':_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2bee5c('div',{'className':_0x27b78b(0x275),'children':_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x255),'children':'⚙'})}),_0x2bee5c(_0x27b78b(0x1eb),{'children':_0x2bee5c('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3fe769['t'](_0x27b78b(0x291))})})]})}),_0x30d051('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x29c14e(_0x27b78b(0x19c),_0x118262(_0x21315c,_0x519298)),'children':_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x29c14e(_0x27b78b(0x1c1),_0x3dbbc3(_0x21315c,_0x519298))}),_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x20f),'children':_0x46478a(_0x21315c)})]})}),_0x519298!==_0x37cda4['NONE']&&(_0x21315c===_0x1fd146[_0x27b78b(0x20c)]||_0x519298===_0x37cda4['UNAUTHORIZED'])&&_0x2bee5c('div',{'className':_0x27b78b(0x21e),'children':_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x219),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x2a5),'children':'⚠️'}),_0x2bee5c('p',{'className':_0x27b78b(0x22b),'children':_0x61bc3c(_0x519298)})]})})]}),_0x2bee5c('div',{'className':_0x27b78b(0x1d9),'children':_0x30d051('div',{'className':_0x27b78b(0x1cd),'children':[_0x30d051('div',{'className':'univer-space-y-2','children':[_0x30d051('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'🔑'}),'\x20',_0x3fe769['t']('mcpConfig.apiKey'),_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x23f),'children':'*'}),_0xa82e72&&_0x2bee5c('a',{'className':_0x27b78b(0x25c),'title':_0x3fe769['t'](_0x27b78b(0x29b)),'role':_0x27b78b(0x24c),'onClick':()=>_0x2b9fa6(!0x0),'children':_0x2bee5c(ve,{})})]}),_0x2bee5c(_0x20ebf9,{'type':_0x27b78b(0x210),'placeholder':_0x3fe769['t'](_0x27b78b(0x2f0)),'value':_0x37dd77,'disabled':_0x46bcf4,'autoComplete':_0x27b78b(0x220),'onChange':_0x4eeced}),_0x2bee5c('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3fe769['t'](_0x27b78b(0x2f1))})]}),_0xa82e72&&_0x3abf41&&_0x30d051('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x2bee5c('a',{'className':_0x27b78b(0x2e7),'role':_0x27b78b(0x24c),'onClick':()=>_0x2b9fa6(!0x1),'children':_0x2bee5c(ue,{'className':_0x27b78b(0x1ca)})}),_0x30d051('div',{'className':_0x27b78b(0x1ff),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1bd),'children':_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x27a),'children':'🚀'})}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x216),'children':[_0x2bee5c('h4',{'className':_0x27b78b(0x26a),'children':_0x3fe769['t'](_0x27b78b(0x29b))}),_0x2bee5c('p',{'className':_0x27b78b(0x274),'children':_0x3fe769['t']('mcpConfig.apiApplyInfo.description')}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x287),'children':_0x4d85ad&&_0x30d051('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x12f83a,'target':_0x27b78b(0x268),'rel':_0x27b78b(0x1ce),'children':[_0x2bee5c('span',{'children':'🤖'}),_0x3fe769['t'](_0x27b78b(0x293)),_0x2bee5c('span',{'className':_0x27b78b(0x19a),'children':'↗'})]})}),_0x30d051('div',{'className':_0x27b78b(0x271),'children':['✨','\x20',_0x3fe769['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5613eb['showDeveloperTools']&&_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x27f),'children':[_0x30d051('h4',{'className':_0x27b78b(0x298),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'🔗'}),'\x20',_0x3fe769['t'](_0x27b78b(0x217))]}),_0x30d051('div',{'className':_0x27b78b(0x21c),'children':[_0x30d051('div',{'className':_0x27b78b(0x2a7),'children':[_0x2bee5c('p',{'className':_0x27b78b(0x2c0),'children':_0x3fe769['t']('mcpConfig.configInstructions')}),_0x30d051('div',{'className':_0x27b78b(0x224),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x22d),'children':_0x3fe769['t']('mcpConfig.configStepTitle')}),_0x30d051('div',{'className':_0x27b78b(0x26d),'children':[_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x26b),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x253),'children':'1'}),_0x3fe769['t']('mcpConfig.configStep1')]}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x26b),'children':[_0x2bee5c('span',{'className':_0x27b78b(0x253),'children':'2'}),_0x3fe769['t'](_0x27b78b(0x20d))]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x253),'children':'3'}),_0x3fe769['t'](_0x27b78b(0x22f))]})]})]})]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-space-y-2','children':[_0x2bee5c('div',{'className':_0x27b78b(0x22d),'children':'MCP\x20Configuration'}),_0x2bee5c('div',{'className':_0x27b78b(0x2c2),'children':_0x2bee5c(_0x27b78b(0x1e7),{'className':_0x27b78b(0x2ef),'children':JSON[_0x27b78b(0x2ab)]({'mcpServers':{'univer':{'url':_0x27b78b(0x2d3)+(_0x5d2b3d||'<SESSION_ID>'),'type':_0x27b78b(0x24a),'headers':{'Authorization':'Bearer\x20'+(_0x37dd77||'<API_KEY>')}}}},null,0x2)})})]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-space-y-3','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3fe769['t'](_0x27b78b(0x1b3))}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x224),'children':[_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2bee5c('div',{'className':_0x27b78b(0x285)}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1c8),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x2dc),'children':_0x27b78b(0x1ad)}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x25b),'children':_0x3fe769['t'](_0x27b78b(0x2b2))})]})]}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x233),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2bee5c('div',{'className':_0x27b78b(0x2dc),'children':_0x27b78b(0x261)}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x25b),'children':_0x3fe769['t'](_0x27b78b(0x281))})]})]})]})]})]})]}),_0x2bee5c(_0x297c10,{'onClick':_0x11afb4,'disabled':!_0x4a003d||_0x46bcf4,'className':_0x27b78b(0x2d2),'children':_0x46bcf4?_0x30d051('span',{'className':_0x27b78b(0x26b),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'⟲'}),_0x3fe769['t']('mcpConfig.saving')]}):_0x30d051(_0x27b78b(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(le,{}),_0x3fe769['t'](_0x27b78b(0x2bf))]})}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x252),'children':_0x30d051('div',{'className':_0x27b78b(0x198),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x2b7),'children':'💡'}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x2d1),'children':[_0x2bee5c('div',{'className':'univer-font-medium','children':_0x27b78b(0x27e)}),_0x30d051('div',{'children':['•',_0x3fe769['t']('mcpConfig.note1')]}),_0x30d051(_0x27b78b(0x1eb),{'children':['•',_0x3fe769['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0xc70430(0x284),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xc70430(0x23e)],tn=(_0x383523,_0x58fc7b,_0x10451c,_0x3b76f1)=>{const _0x1cd3c0=_0xc70430;for(var _0x580269=_0x3b76f1>0x1?void 0x0:_0x3b76f1?rn(_0x58fc7b,_0x10451c):_0x58fc7b,_0x4c2770=_0x383523[_0x1cd3c0(0x1f1)]-0x1,_0xf1447c;_0x4c2770>=0x0;_0x4c2770--)(_0xf1447c=_0x383523[_0x4c2770])&&(_0x580269=_0xf1447c(_0x580269)||_0x580269);return _0x580269;},d=(_0x3440e9,_0x1c56fc)=>(_0x419f86,_0x1f1b9c)=>_0x1c56fc(_0x419f86,_0x1f1b9c,_0x3440e9);const U=_0xc70430(0x2bc),L='mcp-config-dialog';let I=class extends _0xa23c43{constructor(_0x7c03a,_0x2da6bf,_0x1e8194,_0x4aa54f,_0x38913f,_0x5a3110,_0x44a2b8,_0x303b28,_0x4150bc,_0x28e31d){const _0x43694d=_0xc70430;super(),x(this,_0x43694d(0x1a3),new _0x2b5af2(!0x1)),x(this,'_mcpCoreConfig$',new _0x2b5af2({})),x(this,_0x43694d(0x1e9),new _0x2b5af2({})),x(this,'_apiKey$',new _0x2b5af2('')),x(this,_0x43694d(0x25e),async _0x49d703=>{const _0x571a5d=_0x43694d;var _0x2fcb55,_0xd22f36;this['_loading$'][_0x571a5d(0x19e)](!0x0);try{const _0x53a032=await this[_0x571a5d(0x2e0)](_0x49d703);if(!_0x53a032[_0x571a5d(0x2d9)]){this[_0x571a5d(0x21f)][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x202)],'content':_0x53a032[_0x571a5d(0x243)]||this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x1df))});return;}_0x49d703[_0x571a5d(0x240)]?await this['_localStorageService'][_0x571a5d(0x2c8)](U,_0x49d703[_0x571a5d(0x240)][_0x571a5d(0x27d)]()):await this[_0x571a5d(0x2ed)][_0x571a5d(0x264)](U),this[_0x571a5d(0x2df)]['next'](((_0x2fcb55=_0x49d703[_0x571a5d(0x240)])==null?void 0x0:_0x2fcb55['trim']())||''),this[_0x571a5d(0x24f)][_0x571a5d(0x267)]({'Authorization':_0x571a5d(0x2a9)+((_0xd22f36=_0x49d703[_0x571a5d(0x240)])==null?void 0x0:_0xd22f36[_0x571a5d(0x27d)]())}),this[_0x571a5d(0x21f)][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x289)],'content':this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x1ea))}),setTimeout(()=>{const _0xd38f3=_0x571a5d;this[_0xd38f3(0x1da)]['close'](L);},0x320);}catch(_0x1afc5e){this['_logService']['error'](_0x571a5d(0x1ba),_0x1afc5e),this['_messageService'][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x202)],'content':this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x2b4))});}finally{this['_loading$']['next'](!0x1);}}),(this[_0x43694d(0x2a2)]=_0x7c03a,this['_uiPartsService']=_0x2da6bf,this['_configService']=_0x1e8194,this['_localStorageService']=_0x4aa54f,this[_0x43694d(0x1da)]=_0x38913f,this['_messageService']=_0x5a3110,this[_0x43694d(0x1fd)]=_0x44a2b8,this[_0x43694d(0x1c9)]=_0x303b28,this[_0x43694d(0x1f7)]=_0x4150bc,this['_mcpConnectionController']=_0x28e31d,this['_initConfigSync'](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0xc70430(0x1ef)](){const _0x53c8ff=_0xc70430,_0x447d6a=this['_configService'][_0x53c8ff(0x1b1)](y);_0x447d6a!=null&&_0x447d6a['showDeveloperTools']&&this[_0x53c8ff(0x1da)][_0x53c8ff(0x21b)]({'id':L,'title':{'title':this['_localeService']['t'](_0x53c8ff(0x235))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x47896c=_0x53c8ff;this['_dialogService'][_0x47896c(0x1c4)](L);}});}[_0xc70430(0x21d)](){const _0x2218e5=_0xc70430;return this['_mcpCoreConfig$'][_0x2218e5(0x2b6)];}[_0xc70430(0x2e3)](){const _0x25b8a9=_0xc70430;this[_0x25b8a9(0x29e)](this[_0x25b8a9(0x1fd)][_0x25b8a9(0x2eb)](_0x25b8a9(0x218),this[_0x25b8a9(0x249)]()));}[_0xc70430(0x249)](){const _0x3a83b4=_0xc70430;return _0x2902af(()=>{const _0x114ceb=_0x2fba;var _0x23f496,_0x591529,_0x2927f2;return _0x2bee5c(nn,{'config':this[_0x114ceb(0x1e9)][_0x114ceb(0x2b6)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x114ceb(0x2b6)],'currentApiKey$':this[_0x114ceb(0x2df)],'onSave':this['_handleConfigSave'],'loading':this[_0x114ceb(0x1a3)][_0x114ceb(0x2b6)],'connectionStatus$':(_0x23f496=this['_mcpConnectionController'])==null?void 0x0:_0x23f496[_0x114ceb(0x1a2)],'connectionError$':(_0x591529=this[_0x114ceb(0x24f)])==null?void 0x0:_0x591529['connectionError$'],'currentSessionId$':(_0x2927f2=this[_0x114ceb(0x24f)])==null?void 0x0:_0x2927f2[_0x114ceb(0x259)]});},this[_0x3a83b4(0x2a2)]);}[_0xc70430(0x296)](){const _0x4107cf=_0xc70430;this[_0x4107cf(0x29e)](this[_0x4107cf(0x1e4)][_0x4107cf(0x1ec)](_0x1aec7d)[_0x4107cf(0x283)](_0xbbae7f=>{const _0x41d70d=_0x4107cf;this[_0x41d70d(0x1c0)][_0x41d70d(0x19e)](_0xbbae7f||{});}));const _0x59380b=this[_0x4107cf(0x1e4)][_0x4107cf(0x1b1)](_0x1aec7d);this['_mcpCoreConfig$']['next'](_0x59380b||{}),this[_0x4107cf(0x29e)](this[_0x4107cf(0x1e4)][_0x4107cf(0x1ec)](y)[_0x4107cf(0x283)](_0x22d207=>{const _0x415253=_0x4107cf;this[_0x415253(0x1e9)][_0x415253(0x19e)](_0x22d207||{});}));const _0x4a7320=this[_0x4107cf(0x1e4)][_0x4107cf(0x1b1)](y);this['_config$'][_0x4107cf(0x19e)](_0x4a7320||{});}async[_0xc70430(0x279)](){const _0x2cbd0d=_0xc70430,_0x3cbf5b=this[_0x2cbd0d(0x1e4)][_0x2cbd0d(0x1b1)](y);if(!(_0x3cbf5b!=null&&_0x3cbf5b['showDeveloperTools']))return;const _0xf83c8b=await this[_0x2cbd0d(0x2ed)][_0x2cbd0d(0x2b3)](U);_0xf83c8b&&(this[_0x2cbd0d(0x24f)][_0x2cbd0d(0x267)]({'Authorization':_0x2cbd0d(0x2a9)+_0xf83c8b}),this[_0x2cbd0d(0x2df)][_0x2cbd0d(0x19e)](_0xf83c8b));}async[_0xc70430(0x2e0)](_0x35c8b7){const _0x13fd8a=_0xc70430;if(!_0x35c8b7[_0x13fd8a(0x240)]||_0x35c8b7[_0x13fd8a(0x240)][_0x13fd8a(0x27d)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x2e1))};if(_0x35c8b7['apiKey'][_0x13fd8a(0x27d)]()[_0x13fd8a(0x1f1)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x1dc))};try{const _0x2c4814=await this[_0x13fd8a(0x2a2)]['get'](_0x4ccb5d)[_0x13fd8a(0x22a)](_0x35c8b7[_0x13fd8a(0x240)][_0x13fd8a(0x27d)]());return _0x2c4814[_0x13fd8a(0x2d9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c4814[_0x13fd8a(0x28c)]||this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x19b))};}catch(_0x2ee456){return console[_0x13fd8a(0x2ea)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2ee456),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4ec27f(_0x2ea9cd)),d(0x1,_0xcca592),d(0x2,_0x1b1405),d(0x3,_0x119742),d(0x4,_0x2d458a),d(0x5,_0x46ab61),d(0x6,_0x4ec27f(_0x5479c5)),d(0x7,_0x4ec27f(_0x3ca3c0)),d(0x8,_0x3e3adb),d(0x9,_0x4ec27f(_0x4ccb5d))],I);const V={'id':_0xc70430(0x24b),'type':_0x24bcf0['COMMAND'],'handler':async(_0x1e5c9d,_0x3f3f4b)=>(_0x1e5c9d[_0xc70430(0x20e)](I)[_0xc70430(0x1ef)](),!0x0)};function pe(_0x34734e,_0x1790e5){const _0x345c48=_0xc70430;switch(_0x34734e){case _0x1fd146[_0x345c48(0x2e8)]:return _0x345c48(0x1fe);case _0x1fd146['CONNECTING']:return _0x345c48(0x1b2);case _0x1fd146[_0x345c48(0x2c9)]:return _0x345c48(0x1a8);case _0x1fd146['FAILED']:switch(_0x1790e5){case _0x37cda4['UNAUTHORIZED']:return _0x345c48(0x28e);case _0x37cda4[_0x345c48(0x19f)]:return'mcpStatus.sessionOccupied';case _0x37cda4[_0x345c48(0x1de)]:return'mcpStatus.networkError';case _0x37cda4[_0x345c48(0x1fb)]:return'mcpStatus.maxRetriesExceeded';default:return _0x345c48(0x2e2);}case _0x1fd146[_0x345c48(0x1e6)]:return _0x345c48(0x1a9);default:return'mcpStatus.unknown';}}function on(_0x539fde,_0xffe4cf,_0x5add93,_0x2c0f0d=!0x0){const _0x3b27f3=_0xc70430,_0x5ddf5d=pe(_0x539fde,_0xffe4cf),_0x4598bf=_0x5add93['t'](_0x5ddf5d);return _0x2c0f0d?_0x539fde===_0x1fd146['DISCONNECTED']&&_0xffe4cf===_0x37cda4[_0x3b27f3(0x1c3)]?_0x4598bf+_0x3b27f3(0x22e)+_0x5add93['t'](_0x3b27f3(0x2e9)):_0x539fde===_0x1fd146[_0x3b27f3(0x2c9)]?''+_0x4598bf:_0x539fde===_0x1fd146[_0x3b27f3(0x2e8)]||_0x539fde===_0x1fd146[_0x3b27f3(0x20c)]?_0x4598bf+_0x3b27f3(0x22e)+_0x5add93['t']('mcpStatus.clickToConnect'):_0x4598bf:_0x4598bf;}function _0x22b3(){const _0x3d4272=['univer-text-xs\x20univer-text-gray-500','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','Save\x20Configuration','_handleConfigSave','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.connectionStatus.connected','Authorization:','assign','Connected','removeItem','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','__setCustomHeaders','_blank','重连中...','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-center\x20univer-gap-2','几秒钟内获取您的\x20API\x20密钥','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','toString','MCP\x20Configuration','Univer\x20AI\x20控制台','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','18GeNgIr','启用身份验证','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.failed','registerCommand','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_loadStoredApiKey','univer-text-blue-600','MCP\x20连接中...','CloseIcon','trim','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','string','mcpConfig.authorizationDescription','MCP\x20状态未知','subscribe','mcp-ui.config','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-items-center','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Success','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','306GXdneA','error','replace','mcpStatus.unauthorized','tag','MCP\x20Disconnected','mcpConfig.description','onStarting','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','348fYrwnr','_initConfigSync','setConfig','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','连接失败','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.apiApplyInfo.title','currentColor','配置\x20MCP\x20使用\x20AI\x20操作电子表格','disposeWithMe','svg','push','MCP_UI_PLUGIN','_injector','_initAutoConnect','MCP:\x20Max\x20Retries\x20Exceeded','univer-shrink-0\x20univer-text-red-500','displayName','univer-space-y-3','网络连接错误,请检查您的网络连接','Bearer\x20','MCP\x20Connection\x20Failed','stringify','MCP\x20Unknown\x20Status','HEADER_MENU','API\x20密钥无效,请检查密钥是否正确','univer-text-gray-500','1em','bottom','mcpConfig.sessionIdDescription','getItem','mcpConfig.configError','配置保存成功','value','univer-shrink-0\x20univer-text-blue-500','Saving...','symbol','2315013gRsZVF','什么是\x20API\x20密钥?','mcp.apiKey','substring','fill','mcpConfig.save','univer-text-xs\x20univer-text-gray-600','77LflUZs','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','CheckMarkIcon','您的\x20API\x20密钥将在此浏览器中本地存储','defineProperty','API\x20密钥长度至少需要\x2010\x20位','forEach','setItem','CONNECTED','idSuffix','url(#$1','What\x20is\x20API\x20Key?','children','您的\x20API\x20密钥安全存储在本地存储中','OTHERS','mcpConfig.connectionError.unauthorized','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','https://mcp.univer.ai/mcp/?univer_session_id=','点击配置\x20MCP','最大重试次数','show','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','_initStatusComponent','isValid','会话ID','defs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','124088tZqCkZ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_apiKey$','_validateConfig','mcpConfig.validation.apiKeyRequired','mcpStatus.failed','_registerComponent','_uiPartsService','univer.ai','Session\x20ID','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','DISCONNECTED','mcpStatus.clickToConfigure','warn','register','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_localStorageService','off-line-icon_clip0_910_343','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.apiKeyPlaceholder','mcpConfig.apiKeyHint','Retrying...','url(#off-line-icon_clip0_910_343)','配置保存失败','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','univer-flex\x20univer-gap-3','MCP\x20Connected','univer-text-gray-400','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20Connecting...','next','SESSION_ID_OCCUPIED','NONE','univer.plus','connectionStatus$','_loading$','span','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','univerjs-icon\x20univerjs-icon-','mcpStatus.connected','mcpStatus.retrying','MCP:\x20Unauthorized','showDeveloperTools','0\x200\x2016\x2016','univer_session_id:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','612776yOrNyz','map','getConfig','mcpStatus.connecting','mcpConfig.configParameters','entries','evenodd','Enable\x20Authentication','MCP:\x20Network\x20Error','2140460aeFzvL','translate(.97)','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20超出最大重试次数','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','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_mcpCoreConfig$','univer-size-2\x20univer-rounded-full','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UNAUTHORIZED','close','MCP\x20已连接','MCP:\x20未授权','attrs','univer-min-w-0\x20univer-flex-1','_localeService','univer-size-4','7756425BqHeDT','use','univer-space-y-5','noopener\x20noreferrer','univer-bg-red-500','_connectionController','defIds','M0\x200H16V16H0z','MCP\x20Client\x20Configuration','enableAutoConnect','MCP\x20连接失败','权限验证失败,请检查您的\x20API\x20密钥','univer-text-yellow-500','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_dialogService','check-mark-icon','mcpConfig.validation.apiKeyTooShort','已连接','NETWORK_ERROR','mcpConfig.validation.invalidConfig','mcpServerUrl','未连接','none','_handleConfigure','_configService','mcpConfig.connectionError.sessionOccupied','RETRYING','pre','重启您的\x20MCP\x20客户端以使配置生效','_config$','mcpConfig.configSaved','div','subscribeConfigValue$','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','showConfigPanel','938861PnWzyP','length','_config','_commandService','https://console.univer.plus','Configuration\x20Steps:','Configuration\x20Parameters:','_logService','current','mask','xlink:href','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_componentManager','mcpStatus.disconnected','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','启用身份验证以获得安全连接','connectionError$','Error','超出最大重试次数,请稍后再试','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥不能为空','white','mcpConfig.connectionError.networkError','colorChannel1','配置无效','univer-bg-blue-500','FAILED','mcpConfig.configStep2','get','univer-text-sm\x20univer-font-medium','text','MCP\x20重连中...','保存中...','http://www.w3.org/2000/svg','has','MenuIcon','univer-flex-1','mcpConfig.connectionInfo','MCPConfigPanel','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20key\x20with\x20Bearer\x20prefix.','open','univer-space-y-4','getCurrentConfig','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_messageService','off','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20配置','includes','univer-space-y-2','配置步骤:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','help-icon','mcpConfig.connectionStatus.connecting','UniverIcon','validateApiKey','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','BUTTON','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','\x20-\x20','mcpConfig.configStep3','on-line-icon_clip0_910_349','_menuManagerService','clipPath','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20密钥','mcpConfig.title','Failed\x20to\x20save\x20configuration','_initializeCommands','Disconnected','add','https://console.univer.ai','请输入您的\x20API\x20密钥','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Univer\x20AI\x20Console','getOwnPropertyDescriptor','univer-text-red-500','apiKey','off-line-icon','mcpConfig.connectionError.maxRetriesExceeded','errorMessage','API\x20key\x20is\x20required','0\x200\x2017\x2016','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','1296feupro','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_createConfigPanelComponent','http','mcp-ui.command.openConfigPanel','button','Connection\x20Failed','配置更改将立即生效','_mcpConnectionController','_initializeMenus','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','Click\x20to\x20connect\x20MCP','univer-text-white','path','MCP:\x20网络错误','round','sessionId$','OffLineIcon'];_0x22b3=function(){return _0x3d4272;};return _0x22b3();}function sn(_0x88798a){const _0x7e0530=_0xc70430;switch(_0x88798a){case _0x1fd146[_0x7e0530(0x2c9)]:return'univer-text-green-500';case _0x1fd146['CONNECTING']:case _0x1fd146[_0x7e0530(0x1e6)]:return _0x7e0530(0x1d7);case _0x1fd146[_0x7e0530(0x20c)]:case _0x1fd146['DISCONNECTED']:return'univer-text-red-500';default:return _0x7e0530(0x2af);}}function cn(_0x195878){const _0x11a583=_0xc70430,{status$:_0x1ae3ac,error$:_0x4f9ebd,onConfigure:_0x35c9c8,showClickable:_0x1b6449=!0x0}=_0x195878,_0x1eacd8=_0xaeeec6(_0x1ae3ac,_0x1fd146[_0x11a583(0x2e8)]),_0x1ea81a=_0xaeeec6(_0x4f9ebd,_0x37cda4[_0x11a583(0x1a0)]),_0x121a1d=_0x424c48(_0x3ca3c0),_0x122a31=_0x1eacd8===_0x1fd146['CONNECTED'];_0x1eacd8===_0x1fd146[_0x11a583(0x1d8)]||_0x1fd146[_0x11a583(0x1e6)];const _0x206a8b=_0x121a1d['t'](pe(_0x1eacd8,_0x1ea81a)),_0x389f44=on(_0x1eacd8,_0x1ea81a,_0x121a1d,_0x1b6449),_0x2aeb9e=sn(_0x1eacd8),_0x219194=_0x122a31?_0x2bee5c(ge,{}):_0x2bee5c(de,{}),_0x8ff7=_0x48e070(()=>{_0x1b6449&&_0x35c9c8&&_0x35c9c8();},[_0x1b6449,_0x35c9c8]);function _0x35d98a(){const _0x482357=_0x11a583;return _0x30d051(_0x482357(0x1eb),{'className':_0x29c14e(_0x482357(0x286),_0x1b6449&&_0x35c9c8&&_0x482357(0x23c)),'role':_0x482357(0x24c),'onClick':_0x1b6449&&_0x35c9c8?_0x8ff7:void 0x0,'children':[_0x2bee5c(_0x482357(0x1eb),{'className':_0x29c14e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x2aeb9e),'children':_0x219194}),_0x2bee5c(_0x482357(0x1eb),{'className':_0x482357(0x278),'children':_0x206a8b})]});}return _0x2bee5c(_0x315236,{'title':_0x389f44,'placement':_0x11a583(0x2b1),'children':_0x35d98a()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x257aaf,_0x2baa32,_0x5a9b84,_0x189982)=>{const _0x2f53a7=_0xc70430;for(var _0x33bc12=_0x189982>0x1?void 0x0:_0x189982?an(_0x2baa32,_0x5a9b84):_0x2baa32,_0x341a13=_0x257aaf[_0x2f53a7(0x1f1)]-0x1,_0x3f1de2;_0x341a13>=0x0;_0x341a13--)(_0x3f1de2=_0x257aaf[_0x341a13])&&(_0x33bc12=_0x3f1de2(_0x33bc12)||_0x33bc12);return _0x33bc12;},M=(_0x539000,_0xb306fb)=>(_0xbe93d1,_0x3acab2)=>_0xb306fb(_0xbe93d1,_0x3acab2,_0x539000);let O=class extends _0xa23c43{constructor(_0x13abd7,_0x57742a,_0x5e26e2,_0x544e61){const _0x25cbb5=_0xc70430;super(),this['_injector']=_0x13abd7,this[_0x25cbb5(0x1d0)]=_0x57742a,this[_0x25cbb5(0x2e4)]=_0x5e26e2,this['_configService']=_0x544e61,this[_0x25cbb5(0x2a3)](),this[_0x25cbb5(0x2d8)]();}['_initAutoConnect'](){const _0x169607=_0xc70430,_0x31dfba=this[_0x169607(0x1e4)][_0x169607(0x1b1)](y);_0x31dfba!=null&&_0x31dfba[_0x169607(0x1ab)]&&(this[_0x169607(0x1d0)][_0x169607(0x1d4)]=!0x1);}[_0xc70430(0x2d8)](){const _0x31fcc9=_0xc70430,_0x5b7793=this[_0x31fcc9(0x1e4)][_0x31fcc9(0x1b1)](y);(_0x5b7793==null?void 0x0:_0x5b7793['showStatus'])!==!0x1&&this[_0x31fcc9(0x29e)](this[_0x31fcc9(0x2e4)]['registerComponent'](_0x184ac4[_0x31fcc9(0x2ad)],()=>{const _0xecd3c1=_0x31fcc9;var _0x317f8e;return _0x2902af(un({'status$':this[_0xecd3c1(0x1d0)][_0xecd3c1(0x1a2)],'error$':this['_connectionController'][_0xecd3c1(0x201)],'onConfigure':()=>this[_0xecd3c1(0x1e3)](),'showClickable':(_0x317f8e=_0x5b7793==null?void 0x0:_0x5b7793[_0xecd3c1(0x1ab)])!=null?_0x317f8e:!0x1}),this['_injector']);}));}[_0xc70430(0x1e3)](){const _0x13ae28=_0xc70430;this[_0x13ae28(0x2a2)][_0x13ae28(0x20e)](I)[_0x13ae28(0x1ef)]();}};O=ln([M(0x0,_0x4ec27f(_0x2ea9cd)),M(0x1,_0x4ec27f(_0x4ccb5d)),M(0x2,_0xcca592),M(0x3,_0x1b1405)],O);function un(_0x14a322){const {status$:_0x568e8f,error$:_0x2e1b96,onConfigure:_0x1c1ded,showClickable:_0x323c6a}=_0x14a322;return function(){return _0x2bee5c(cn,{'status$':_0x568e8f,'error$':_0x2e1b96,'onConfigure':_0x1c1ded,'showClickable':_0x323c6a});};}function vn(_0x3cac03){const _0x45fb0d=_0xc70430;return{'id':V['id'],'type':_0x3968d8[_0x45fb0d(0x22c)],'icon':_0x45fb0d(0x215),'title':_0x45fb0d(0x235),'tooltip':_0x45fb0d(0x235)};}const dn={[_0xc7b462[_0xc70430(0x2cf)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0xc70430(0x23e)],pn=(_0x1ca75d,_0x389b9e,_0x569bd1,_0x4c8775)=>{const _0x463c6a=_0xc70430;for(var _0x4d663b=_0x4c8775>0x1?void 0x0:_0x4c8775?gn(_0x389b9e,_0x569bd1):_0x389b9e,_0x47a75c=_0x1ca75d[_0x463c6a(0x1f1)]-0x1,_0x3f5a99;_0x47a75c>=0x0;_0x47a75c--)(_0x3f5a99=_0x1ca75d[_0x47a75c])&&(_0x4d663b=_0x3f5a99(_0x4d663b)||_0x4d663b);return _0x4d663b;},re=(_0xa5984e,_0xd41b36)=>(_0x37698c,_0xafa282)=>_0xd41b36(_0x37698c,_0xafa282,_0xa5984e);let D=class extends _0xa23c43{constructor(_0x37543d,_0x200028){const _0x184d87=_0xc70430;super(),this[_0x184d87(0x1f3)]=_0x37543d,this[_0x184d87(0x231)]=_0x200028,this[_0x184d87(0x237)](),this[_0x184d87(0x250)]();}['_initializeCommands'](){const _0x152ae5=_0xc70430;[V][_0x152ae5(0x2c7)](_0x3c310d=>{const _0x37727a=_0x152ae5;this[_0x37727a(0x29e)](this['_commandService'][_0x37727a(0x277)](_0x3c310d));});}[_0xc70430(0x250)](){const _0xbc0ed7=_0xc70430;this[_0xbc0ed7(0x231)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x46583b),re(0x1,_0x57aeeb)],D);const Mn={'mcpStatus':{'disconnected':_0xc70430(0x290),'connecting':_0xc70430(0x19d),'connected':_0xc70430(0x199),'failed':_0xc70430(0x2aa),'retrying':'MCP\x20Retrying...','unknown':_0xc70430(0x2ac),'unauthorized':_0xc70430(0x1aa),'sessionOccupied':_0xc70430(0x29a),'networkError':_0xc70430(0x1b7),'maxRetriesExceeded':_0xc70430(0x2a4),'clickToConnect':_0xc70430(0x254),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xc70430(0x26f),'description':_0xc70430(0x226),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xc70430(0x25f),'enableAuth':_0xc70430(0x1b6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xc70430(0x1d3),'mcpClientConfig':_0xc70430(0x1d3),'configInstructions':_0xc70430(0x204),'configStepTitle':_0xc70430(0x1f5),'configStep1':_0xc70430(0x1ee),'configStep2':_0xc70430(0x265),'configStep3':_0xc70430(0x2ec),'sessionId':_0xc70430(0x2e6),'sessionIdDescription':_0xc70430(0x2de),'authorizationDescription':_0xc70430(0x21a),'configParameters':_0xc70430(0x1f6),'maxRetries':'Max\x20Retries','save':_0xc70430(0x25d),'saving':_0xc70430(0x2b8),'note1':_0xc70430(0x221),'note2':_0xc70430(0x1a5),'configSaved':_0xc70430(0x1ed),'configError':_0xc70430(0x236),'apiApplyInfo':{'title':_0xc70430(0x2cc),'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':_0xc70430(0x23d),'getStarted':_0xc70430(0x196)},'validation':{'apiKeyRequired':_0xc70430(0x244),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc70430(0x197),'invalidApiKey':_0xc70430(0x1be)},'connectionStatus':{'disconnected':_0xc70430(0x238),'connecting':'Connecting...','connected':_0xc70430(0x263),'failed':_0xc70430(0x24d),'retrying':_0xc70430(0x2f2)},'connectionError':{'unauthorized':_0xc70430(0x1bf),'sessionOccupied':_0xc70430(0x248),'networkError':_0xc70430(0x1c2),'maxRetriesExceeded':_0xc70430(0x288)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xc70430(0x27b),'connected':_0xc70430(0x1c5),'failed':_0xc70430(0x1d5),'retrying':_0xc70430(0x211),'unknown':_0xc70430(0x282),'unauthorized':_0xc70430(0x1c6),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc70430(0x257),'maxRetriesExceeded':_0xc70430(0x1bb),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xc70430(0x2d4)},'mcpConfig':{'title':_0xc70430(0x222),'description':_0xc70430(0x29d),'apiKey':_0xc70430(0x234),'apiKeyPlaceholder':_0xc70430(0x23b),'apiKeyHint':_0xc70430(0x2c4),'enableAuth':_0xc70430(0x273),'enableAuthHint':_0xc70430(0x200),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0xc70430(0x205),'configStepTitle':_0xc70430(0x225),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xc70430(0x1e8),'sessionId':_0xc70430(0x2da),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xc70430(0x1ae),'configParameters':'配置参数:','maxRetries':_0xc70430(0x2d5),'save':'保存配置','saving':_0xc70430(0x212),'note1':_0xc70430(0x24e),'note2':_0xc70430(0x2ce),'configSaved':_0xc70430(0x2b5),'configError':_0xc70430(0x195),'apiApplyInfo':{'title':_0xc70430(0x2bb),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0xc70430(0x270),'getStarted':_0xc70430(0x26c)},'validation':{'apiKeyRequired':_0xc70430(0x206),'apiKeyTooShort':_0xc70430(0x2c6),'invalidConfig':_0xc70430(0x20a),'invalidApiKey':_0xc70430(0x2ae)},'connectionStatus':{'disconnected':_0xc70430(0x1e1),'connecting':'连接中...','connected':_0xc70430(0x1dd),'failed':_0xc70430(0x299),'retrying':_0xc70430(0x269)},'connectionError':{'unauthorized':_0xc70430(0x1d6),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0xc70430(0x2a8),'maxRetriesExceeded':_0xc70430(0x203)}}};var fn=Object[_0xc70430(0x2c5)],hn=Object[_0xc70430(0x23e)],Cn=(_0x51864a,_0x1e31b6,_0x357538)=>_0x1e31b6 in _0x51864a?fn(_0x51864a,_0x1e31b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x357538}):_0x51864a[_0x1e31b6]=_0x357538,mn=(_0x4c53f8,_0x4a8d73,_0x18d015,_0x5ad376)=>{for(var _0x34a2dc=_0x5ad376>0x1?void 0x0:_0x5ad376?hn(_0x4a8d73,_0x18d015):_0x4a8d73,_0x14339e=_0x4c53f8['length']-0x1,_0x230803;_0x14339e>=0x0;_0x14339e--)(_0x230803=_0x4c53f8[_0x14339e])&&(_0x34a2dc=_0x230803(_0x34a2dc)||_0x34a2dc);return _0x34a2dc;},P=(_0x462e50,_0x706166)=>(_0x201ff3,_0x22bb80)=>_0x706166(_0x201ff3,_0x22bb80,_0x462e50),_n=(_0x1696a5,_0x51afad,_0x2caeb9)=>Cn(_0x1696a5,_0x51afad+'',_0x2caeb9);let j=class extends _0x366cc9{constructor(_0x738661=ie,_0x4cd9cc,_0x585803,_0x576c0b,_0x130061,_0x44083e){const _0x2ea431=_0xc70430;super(),this['_config']=_0x738661,this['_injector']=_0x4cd9cc,this[_0x2ea431(0x1e4)]=_0x585803,this[_0x2ea431(0x2e4)]=_0x576c0b,this[_0x2ea431(0x2ed)]=_0x130061,this[_0x2ea431(0x1c9)]=_0x44083e;const {..._0x5050d6}=_0x3c61f2({},ie,this[_0x2ea431(0x1f2)]);this[_0x2ea431(0x1e4)][_0x2ea431(0x297)](y,_0x5050d6);}async[_0xc70430(0x292)](){const _0x4039ab=_0xc70430,_0x113de4=[[O],[I],[D]];this[_0x4039ab(0x2a2)][_0x4039ab(0x214)](_0x1e64d4)||_0x113de4[_0x4039ab(0x2a0)]([_0x1e64d4,{'useClass':_0x897e1b}]),_0x113de4[_0x4039ab(0x2c7)](_0x1e13fd=>this[_0x4039ab(0x2a2)][_0x4039ab(0x239)](_0x1e13fd)),this['_injector'][_0x4039ab(0x20e)](O),this[_0x4039ab(0x2a2)][_0x4039ab(0x20e)](I),this[_0x4039ab(0x2a2)][_0x4039ab(0x20e)](D);}};_n(j,'pluginName',_0xc70430(0x2a1)),j=mn([_0x370e16(_0x23c55e),P(0x1,_0x4ec27f(_0x2ea9cd)),P(0x2,_0x1b1405),P(0x3,_0xcca592),P(0x4,_0x119742),P(0x5,_0x4ec27f(_0x3ca3c0))],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 _0x1681d0=_0x7f9e;(function(_0x4b5109,_0x27f4e9){const _0x3e1d41=_0x7f9e,_0x17e2de=_0x4b5109();while(!![]){try{const _0xeaf983=parseInt(_0x3e1d41(0x139))/0x1*(parseInt(_0x3e1d41(0x13e))/0x2)+-parseInt(_0x3e1d41(0x114))/0x3*(parseInt(_0x3e1d41(0x185))/0x4)+parseInt(_0x3e1d41(0x186))/0x5+parseInt(_0x3e1d41(0x183))/0x6+-parseInt(_0x3e1d41(0x19c))/0x7*(-parseInt(_0x3e1d41(0x19a))/0x8)+-parseInt(_0x3e1d41(0xf4))/0x9*(-parseInt(_0x3e1d41(0x1e4))/0xa)+-parseInt(_0x3e1d41(0x13c))/0xb;if(_0xeaf983===_0x27f4e9)break;else _0x17e2de['push'](_0x17e2de['shift']());}catch(_0x53ceb6){_0x17e2de['push'](_0x17e2de['shift']());}}}(_0x4c93,0xd6ff0));var Pe=Object[_0x1681d0(0x145)],Ee=(_0x35621a,_0x1c9b1f,_0x321651)=>_0x1c9b1f in _0x35621a?Pe(_0x35621a,_0x1c9b1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x321651}):_0x35621a[_0x1c9b1f]=_0x321651,x=(_0x3125b2,_0x442363,_0x2b42d4)=>Ee(_0x3125b2,typeof _0x442363!='symbol'?_0x442363+'':_0x442363,_0x2b42d4);function _0x4c93(){const _0x4678cf=['118372SybaMQ','6868535SOvoiE','register','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','RETRYING','_config$','Max\x20Retries','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','Univer\x20AI\x20Console','univer-bg-red-500','defs','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','API\x20密钥不能为空','点击配置\x20MCP','MCP\x20Connection\x20Failed','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\x20Connecting...','308496uynXGs','mcpConfig.title','203KgbQos','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','_initializeCommands','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcp-config-dialog','Enable\x20Authentication','MCP:\x20网络错误','on-line-icon','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','请输入您的\x20API\x20密钥','BUTTON','连接失败','push','Saving...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置步骤:','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-min-w-0\x20univer-flex-1','启用身份验证以获得安全连接','univer-text-blue-600','Success','点击连接\x20MCP','mcpConfig.connectionStatus.disconnected','MenuIcon','use','attrs','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpStatus.unknown','show','validateApiKey','\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','Session\x20ID','Click\x20to\x20connect\x20MCP','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','CloseIcon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.validation.invalidApiKey','__setCustomHeaders','forEach','https://console.univer.ai','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','setItem','What\x20is\x20API\x20Key?','noopener\x20noreferrer','univer-text-gray-500','_logService','_loading$','mcpStatus.sessionOccupied','_dialogService','Connected','mcpStatus.failed','几秒钟内获取您的\x20API\x20密钥','univer-space-y-4','showConfigPanel','mcpConfig.note1','_uiPartsService','currentColor','_initAutoConnect','Invalid\x20configuration','mcpConfig.saving','<SESSION_ID>','has','CONNECTING','getConfig','MCP\x20Unknown\x20Status','mask','mcpConfig.note2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','未连接','univer-shrink-0\x20univer-text-blue-500','MCP\x20Retrying...','19330iTPBTI','_mcpCoreConfig$','_menuManagerService','mcpConfig.description','Click\x20to\x20configure\x20MCP','mcpConfig.apiKeyHint','http://www.w3.org/2000/svg','univer-text-xs\x20univer-text-gray-500','connectionError$','mcpConfig.connectionStatus.connected','_apiKey$','mcp.apiKey','MCP\x20Disconnected','<API_KEY>','超出最大重试次数,请稍后再试','重连中...','HEADER_MENU','MCP\x20已连接','fill','mcpConfig.configParameters','univer-bg-green-500','MCP:\x20会话\x20ID\x20已被占用','HelpIcon','MCP\x20配置','univerjs-icon\x20univerjs-icon-','mcpStatus.disconnected','path','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1em','showDeveloperTools','OffLineIcon','round','apiKey','xlink:href','Connection\x20Failed','value','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','_componentManager','Save\x20Configuration','toString','assign','error','errorMessage','Connecting...','disposeWithMe','MCP\x20连接失败','tag','NONE','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','stringify','substring','0\x200\x2016\x2016','random','_localStorageService','close','mcpConfig.configSaved','getItem','MCP:\x20Network\x20Error','idSuffix','button','API\x20Key','SESSION_ID_OCCUPIED','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-bg-blue-500','MCP\x20Connected','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_initStatusComponent','_connectionController','pluginName','univer-mt-2\x20univer-text-xs\x20univer-text-gray-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','UniverIcon','div','map','setConfig','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-bg-gray-500','replace','Configuration\x20Parameters:','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_registerComponent','FAILED','MCPConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-2','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','MCP\x20连接中...','https://console.univer.plus','univer-size-4','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','entries','Configuration\x20saved\x20successfully','subscribeConfigValue$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_createConfigPanelComponent','children','url(#on-line-icon_clip0_910_349)','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','mcpStatus.retrying','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.retrying','getOwnPropertyDescriptor','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer_session_id:','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','3141uxfSkb','_initConfigSync','_messageService','_config','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.connectionError.networkError','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.connected','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','mcpConfig.apiKeyPlaceholder','配置保存失败','univer-text-green-500','重启您的\x20MCP\x20客户端以使配置生效','defIds','mcpConfig.apiApplyInfo.getStarted','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','DISCONNECTED','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','COMMAND','open','add','Get\x20your\x20API\x20key\x20in\x20seconds','mcpServerUrl','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','close-icon','_loadStoredApiKey','MCP\x20客户端配置','Bearer\x20','univer-shrink-0\x20univer-text-red-500','getCurrentConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','81oSkLAE','mcpConfig.configError','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionError.sessionOccupied','NETWORK_ERROR','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','subscribe','_configService','\x20-\x20','mcpConfig.apiApplyInfo.univerAiLabel','removeItem','配置保存成功','mcpStatus.unauthorized','evenodd','会话ID','span','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\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','warn','配置无效','https://mcp.univer.ai/mcp/?univer_session_id=','univer-size-2\x20univer-rounded-full','mcpConfig.configStepTitle','get','mcpConfig.validation.apiKeyTooShort','string','univer-text-xs\x20univer-text-gray-600','mcpConfig.sessionIdDescription','univer-text-sm\x20univer-text-gray-500','univer-space-y-3','将配置添加到您的\x20MCP\x20客户端设置文件中','url(#$1','trim','clipPath','white','next','593522xDIrbl','mcpConfig.apiApplyInfo.description','univer-text-white','29712100uVxdfW','mcpStatus.clickToConnect','4ygnrey','_localeService','displayName','MCP:\x20Unauthorized','Enter\x20your\x20API\x20key','MCP\x20Configuration','您的\x20API\x20密钥安全存储在本地存储中','defineProperty','univer-text-yellow-500','mcpConfig.connectionStatus.failed','启用身份验证','univer-space-y-5','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_mcpConnectionController','univer-text-red-500','_handleConfigSave','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','UNAUTHORIZED','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.connectionInfo','_validateConfig','连接中...','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','Configuration\x20Notes:','none','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','on-line-icon_clip0_910_349','length','M0\x200H16V16H0z','includes','OnLineIcon','translate(.97)','mcpConfig.apiKey','colorChannel1','check-mark-icon','API\x20key\x20is\x20required','API\x20密钥长度至少需要\x2010\x20位','isValid','showStatus','Error','_injector','_commandService','配置更改将立即生效','onStarting','mcpStatus.maxRetriesExceeded','_initializeMenus','univer-font-medium','registerComponent','connectionStatus$','mcpStatus.networkError','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpStatus.clickToConfigure','mcpConfig.connectionStatus.connecting','保存中...','svg','_handleConfigure','pre','univer-space-y-2','MCP\x20重连中...','univer-flex-1','您的\x20API\x20密钥将在此浏览器中本地存储','OTHERS','sessionId$','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Disconnected','CONNECTED','CheckMarkIcon','univer-flex\x20univer-items-start\x20univer-gap-3','最大重试次数','162414hWqhvX','univer.ai'];_0x4c93=function(){return _0x4678cf;};return _0x4c93();}import{LocaleService as _0x47faab,Inject as _0x299932,Injector as _0x4bc841,IConfigService as _0x565a2d,ILocalStorageService as _0x429692,ILogService as _0x1b4414,Disposable as _0x54c83b,CommandType as _0x5877f6,ICommandService as _0x19c6f9,DependentOn as _0x13d30f,Plugin as _0xf9d8dd,merge as _0x27bee6}from'@univerjs/core';import{jsxs as _0x2721d6,jsx as _0x3c3529}from'react/jsx-runtime';import{MCPConnectionStatus as _0x466718,MCPConnectionError as _0x501a8f,MCPConnectionController as _0x1423db,MCP_PLUGIN_CONFIG_KEY as _0x5866c4,UniverMCPPlugin as _0x5d3e04}from'@univerjs-pro/mcp';import{clsx as _0x18b9b4,Input as _0x4b0942,Button as _0x42f9b8,MessageType as _0xeb652a,Tooltip as _0x1b89e8}from'@univerjs/design';import{useDependency as _0x4d7014,useObservable as _0x4dd3cc,IUIPartsService as _0x1ec66f,IDialogService as _0x334f21,IMessageService as _0x1f1d7a,ComponentManager as _0x415279,connectInjector as _0xf88177,BuiltInUIPart as _0x591b87,MenuItemType as _0x145960,RibbonStartGroup as _0x264be0,IMenuManagerService as _0x586d6a}from'@univerjs/ui';import{BehaviorSubject as _0x40756f}from'rxjs';import{useRef as _0x53ab49,createElement as _0x19d727,forwardRef as _0xd80221,useState as _0x316cec,useCallback as _0x4c9118}from'react';import{ISocketService as _0x3d7dd1,WebSocketService as _0x573e0f}from'@univerjs/network';function b({ref:_0x16cb73,..._0x35f234}){const _0x5d7fb0=_0x1681d0,{icon:_0x4534a9,id:_0x17be55,className:_0x463c84,extend:_0x114f2b,..._0x32ad69}=_0x35f234,_0x4f6be2=(_0x5d7fb0(0x1fc)+_0x17be55+'\x20'+(_0x463c84||''))['trim'](),_0x39cf7a=_0x53ab49('_'+We());return ae(_0x4534a9,''+_0x17be55,{'defIds':_0x4534a9[_0x5d7fb0(0x101)],'idSuffix':_0x39cf7a['current']},{'ref':_0x16cb73,'className':_0x4f6be2,..._0x32ad69},_0x114f2b);}function ae(_0x31f228,_0x4e1429,_0x5054a9,_0xb327ed,_0x1f3dd8){const _0xd2d979=_0x1681d0;return _0x19d727(_0x31f228[_0xd2d979(0xb6)],{'key':_0x4e1429,...Ye(_0x31f228,_0x5054a9,_0x1f3dd8),..._0xb327ed},(Ze(_0x31f228,_0x5054a9)[_0xd2d979(0xe9)]||[])[_0xd2d979(0xd4)]((_0x475c99,_0x1ec0a3)=>ae(_0x475c99,_0x4e1429+'-'+_0x31f228[_0xd2d979(0xb6)]+'-'+_0x1ec0a3,_0x5054a9,void 0x0,_0x1f3dd8)));}function Ye(_0x994d1c,_0x377745,_0xb6cbb8){const _0x10dc0e=_0x1681d0,_0x42eee9={..._0x994d1c[_0x10dc0e(0x1b5)]};_0xb6cbb8!=null&&_0xb6cbb8[_0x10dc0e(0x15f)]&&_0x42eee9['fill']===_0x10dc0e(0x15f)&&(_0x42eee9[_0x10dc0e(0x1f6)]=_0xb6cbb8[_0x10dc0e(0x15f)]),_0x994d1c[_0x10dc0e(0xb6)]===_0x10dc0e(0x1de)&&_0x42eee9['id']&&(_0x42eee9['id']=_0x42eee9['id']+_0x377745[_0x10dc0e(0xc3)]),Object[_0x10dc0e(0xe4)](_0x42eee9)[_0x10dc0e(0x1c3)](([_0x3d1c5b,_0x23a7b5])=>{const _0x4d2ca4=_0x10dc0e;_0x3d1c5b===_0x4d2ca4(0x1de)&&typeof _0x23a7b5==_0x4d2ca4(0x12e)&&(_0x42eee9[_0x3d1c5b]=_0x23a7b5['replace'](/url\(#(.*)\)/,'url(#$1'+_0x377745[_0x4d2ca4(0xc3)]+')'));});const {defIds:_0x3afa06}=_0x377745;return!_0x3afa06||_0x3afa06[_0x10dc0e(0x159)]===0x0||(_0x994d1c['tag']===_0x10dc0e(0x1b4)&&_0x42eee9['xlink:href']&&(_0x42eee9[_0x10dc0e(0xa9)]=_0x42eee9[_0x10dc0e(0xa9)]+_0x377745[_0x10dc0e(0xc3)]),Object['entries'](_0x42eee9)[_0x10dc0e(0x1c3)](([_0x59ae3c,_0x14c63f])=>{const _0x305924=_0x10dc0e;typeof _0x14c63f=='string'&&(_0x42eee9[_0x59ae3c]=_0x14c63f[_0x305924(0xd8)](/url\(#(.*)\)/,_0x305924(0x134)+_0x377745[_0x305924(0xc3)]+')'));})),_0x42eee9;}function Ze(_0x50f272,_0x6841c4){const _0x1efb68=_0x1681d0;var _0x36e81b;const {defIds:_0x3dce54}=_0x6841c4;return!_0x3dce54||_0x3dce54[_0x1efb68(0x159)]===0x0?_0x50f272:_0x50f272[_0x1efb68(0xb6)]===_0x1efb68(0x192)&&((_0x36e81b=_0x50f272[_0x1efb68(0xe9)])!=null&&_0x36e81b[_0x1efb68(0x159)])?{..._0x50f272,'children':_0x50f272['children'][_0x1efb68(0xd4)](_0x23f0b5=>typeof _0x23f0b5['attrs']['id']==_0x1efb68(0x12e)&&_0x3dce54&&_0x3dce54[_0x1efb68(0x15b)](_0x23f0b5[_0x1efb68(0x1b5)]['id'])?{..._0x23f0b5,'attrs':{..._0x23f0b5['attrs'],'id':_0x23f0b5[_0x1efb68(0x1b5)]['id']+_0x6841c4[_0x1efb68(0xc3)]}}:_0x23f0b5)}:_0x50f272;}function We(){const _0x459624=_0x1681d0;return Math[_0x459624(0xbd)]()[_0x459624(0xaf)](0x24)[_0x459624(0xbb)](0x2,0x8);}b[_0x1681d0(0x140)]=_0x1681d0(0xd2);const qe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1681d0(0x156),'viewBox':'0\x200\x2016\x2016','width':_0x1681d0(0x201),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0x19d),'fillRule':_0x1681d0(0x121),'clipRule':_0x1681d0(0x121)}}]},le=_0xd80221(function(_0x7a1d93,_0x3f9e03){const _0x44b01c=_0x1681d0;return _0x19d727(b,Object[_0x44b01c(0xb0)]({},_0x7a1d93,{'id':_0x44b01c(0x160),'ref':_0x3f9e03,'icon':qe}));});le[_0x1681d0(0x140)]=_0x1681d0(0x180);const Xe={'tag':_0x1681d0(0x174),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1681d0(0x156),'viewBox':_0x1681d0(0xbc),'width':_0x1681d0(0x201),'height':_0x1681d0(0x201)},'children':[{'tag':_0x1681d0(0x1fe),'attrs':{'fill':'currentColor','d':_0x1681d0(0xe3)}}]},ue=_0xd80221(function(_0x206e26,_0x5ec509){const _0x74198f=_0x1681d0;return _0x19d727(b,Object['assign']({},_0x206e26,{'id':_0x74198f(0x10d),'ref':_0x5ec509,'icon':Xe}));});ue[_0x1681d0(0x140)]=_0x1681d0(0x1bf);const Je={'tag':_0x1681d0(0x174),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1681d0(0x156),'viewBox':_0x1681d0(0xbc),'width':'1em','height':_0x1681d0(0x201)},'children':[{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0xd1)}},{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0xac)}},{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0x126),'fillRule':'evenodd','clipRule':'evenodd'}}]},ve=_0xd80221(function(_0x5df54d,_0x24375e){return _0x19d727(b,Object['assign']({},_0x5df54d,{'id':'help-icon','ref':_0x24375e,'icon':Je}));});ve[_0x1681d0(0x140)]=_0x1681d0(0x1fa);const Qe={'tag':_0x1681d0(0x174),'attrs':{'xmlns':_0x1681d0(0x1ea),'fill':_0x1681d0(0x156),'viewBox':_0x1681d0(0xbc),'width':_0x1681d0(0x201),'height':_0x1681d0(0x201)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x1681d0(0x1d5),'d':_0x1681d0(0xdf),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1681d0(0x192),'attrs':{},'children':[{'tag':_0x1681d0(0x136),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x137),'d':_0x1681d0(0x15a)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0xd80221(function(_0x782fbb,_0x53deee){return _0x19d727(b,Object['assign']({},_0x782fbb,{'id':'off-line-icon','ref':_0x53deee,'icon':Qe}));});de[_0x1681d0(0x140)]=_0x1681d0(0xa6);const en={'tag':_0x1681d0(0x174),'attrs':{'xmlns':_0x1681d0(0x1ea),'fill':_0x1681d0(0x156),'viewBox':'0\x200\x2017\x2016','width':_0x1681d0(0x201),'height':_0x1681d0(0x201)},'children':[{'tag':'g','attrs':{'clipPath':_0x1681d0(0xea)},'children':[{'tag':'path','attrs':{'stroke':_0x1681d0(0x1d5),'d':_0x1681d0(0x198),'strokeLinecap':'round','strokeLinejoin':_0x1681d0(0xa7),'strokeWidth':1.2}}]},{'tag':_0x1681d0(0x192),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1681d0(0x158)},'children':[{'tag':'path','attrs':{'fill':_0x1681d0(0x137),'d':_0x1681d0(0x15a),'transform':_0x1681d0(0x15d)}}]}]}],'defIds':[_0x1681d0(0x158)]},ge=_0xd80221(function(_0x54d2cc,_0x5a5734){const _0x39ad8e=_0x1681d0;return _0x19d727(b,Object[_0x39ad8e(0xb0)]({},_0x54d2cc,{'id':_0x39ad8e(0x1a3),'ref':_0x5a5734,'icon':en}));});ge[_0x1681d0(0x140)]=_0x1681d0(0x15c);function nn(_0x2693cc){const _0x5b6ccb=_0x1681d0;var _0x581f76,_0x3d942e;const {mcpCoreConfig:_0x31ddcf,onSave:_0x3f5774,loading:_0x5a33c3=!0x1,config:_0x11adb0,connectionStatus$:_0x225cc9,connectionError$:_0x5aaae9,currentApiKey$:_0x156e07,currentSessionId$:_0x528b01}=_0x2693cc,_0x47836d=_0x4d7014(_0x47faab),_0x32d0e4=_0x4dd3cc(_0x225cc9,_0x466718[_0x5b6ccb(0x104)]),_0x1388cd=_0x4dd3cc(_0x5aaae9,_0x501a8f[_0x5b6ccb(0xb7)]),_0x706427=_0x4dd3cc(_0x528b01,''),_0x5a88fa=_0x4dd3cc(_0x156e07,''),[_0x59f021,_0x341573]=_0x316cec(_0x5a88fa||''),_0x143e40=!0x0,_0x36c0db=_0x11adb0['showDeveloperTools']&&_0x31ddcf[_0x5b6ccb(0x10a)]&&(_0x31ddcf['mcpServerUrl'][_0x5b6ccb(0x15b)]('univer.plus')||_0x31ddcf[_0x5b6ccb(0x10a)][_0x5b6ccb(0x15b)](_0x5b6ccb(0x184))),_0x353103=(_0x581f76=_0x31ddcf[_0x5b6ccb(0x10a)])==null?void 0x0:_0x581f76[_0x5b6ccb(0x15b)]('univer.plus'),_0x4cddbd=(_0x3d942e=_0x31ddcf[_0x5b6ccb(0x10a)])==null?void 0x0:_0x3d942e[_0x5b6ccb(0x15b)](_0x5b6ccb(0x184)),_0x177051=_0x353103?_0x5b6ccb(0xe1):_0x5b6ccb(0x1c4),_0x572eb7=_0x11adb0['showDeveloperTools']&&(_0x353103||_0x4cddbd),[_0x3ff4bd,_0x1440e6]=_0x316cec(!_0x59f021[_0x5b6ccb(0x135)]()),_0x3edbf3=(_0x147c2b,_0x44a93c)=>{const _0x1a2210=_0x5b6ccb;if(_0x44a93c===_0x501a8f[_0x1a2210(0x14f)])return _0x1a2210(0x1ff);switch(_0x147c2b){case _0x466718[_0x1a2210(0x17f)]:return _0x1a2210(0x1be);case _0x466718[_0x1a2210(0x1db)]:case _0x466718[_0x1a2210(0x189)]:return _0x1a2210(0x170);case _0x466718['FAILED']:return _0x1a2210(0x1ff);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1cf86d=(_0x475b5c,_0x566bda)=>{const _0x1e5eb2=_0x5b6ccb;if(_0x566bda===_0x501a8f['UNAUTHORIZED'])return _0x1e5eb2(0x191);switch(_0x475b5c){case _0x466718[_0x1e5eb2(0x17f)]:return _0x1e5eb2(0x1f8);case _0x466718[_0x1e5eb2(0x1db)]:case _0x466718['RETRYING']:return _0x1e5eb2(0xc8);case _0x466718[_0x1e5eb2(0xdc)]:return _0x1e5eb2(0x191);default:return _0x1e5eb2(0xd7);}},_0x383990=_0x46adf1=>{const _0x3b0ea1=_0x5b6ccb;switch(_0x46adf1){case _0x466718[_0x3b0ea1(0x17f)]:return _0x47836d['t'](_0x3b0ea1(0x1ed));case _0x466718[_0x3b0ea1(0x1db)]:return _0x47836d['t'](_0x3b0ea1(0x172));case _0x466718[_0x3b0ea1(0xdc)]:return _0x47836d['t'](_0x3b0ea1(0x147));case _0x466718[_0x3b0ea1(0x189)]:return _0x47836d['t'](_0x3b0ea1(0xef));default:return _0x47836d['t'](_0x3b0ea1(0x1b2));}},_0x55c1fc=_0x3ec7d5=>{const _0x40da17=_0x5b6ccb;switch(_0x3ec7d5){case _0x501a8f[_0x40da17(0x14f)]:return _0x47836d['t']('mcpConfig.connectionError.unauthorized');case _0x501a8f[_0x40da17(0xc6)]:return _0x47836d['t'](_0x40da17(0x117));case _0x501a8f[_0x40da17(0x118)]:return _0x47836d['t'](_0x40da17(0xf9));case _0x501a8f['MAX_RETRIES_EXCEEDED']:return _0x47836d['t'](_0x40da17(0x116));default:return'';}},_0xdc40c=_0x4c9118(()=>{const _0x422c1f=_0x5b6ccb,_0x5568aa={..._0x31ddcf,'apiKey':_0x59f021[_0x422c1f(0x135)](),'enableAuth':_0x143e40};_0x3f5774(_0x5568aa);},[_0x31ddcf,_0x59f021,_0x143e40,_0x3f5774]),_0x568262=_0x59f021['trim']()[_0x5b6ccb(0x159)]>0x0;return _0x2721d6('div',{'className':_0x5b6ccb(0x17d),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x10b),'children':_0x2721d6('div',{'className':_0x5b6ccb(0x150),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xf3),'children':_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x13b),'children':'⚙'})}),_0x3c3529(_0x5b6ccb(0xd3),{'children':_0x3c3529('p',{'className':_0x5b6ccb(0x131),'children':_0x47836d['t'](_0x5b6ccb(0x1e7))})})]})}),_0x2721d6('div',{'className':_0x5b6ccb(0xcb),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x18b9b4(_0x5b6ccb(0x1ac),_0x3edbf3(_0x32d0e4,_0x1388cd)),'children':_0x2721d6('div',{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x18b9b4(_0x5b6ccb(0x12a),_0x1cf86d(_0x32d0e4,_0x1388cd))}),_0x3c3529(_0x5b6ccb(0x123),{'className':'univer-text-sm\x20univer-font-medium','children':_0x383990(_0x32d0e4)})]})}),_0x1388cd!==_0x501a8f[_0x5b6ccb(0xb7)]&&(_0x32d0e4===_0x466718[_0x5b6ccb(0xdc)]||_0x1388cd===_0x501a8f[_0x5b6ccb(0x14f)])&&_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x14e),'children':_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x111),'children':'⚠️'}),_0x3c3529('p',{'className':_0x5b6ccb(0xe7),'children':_0x55c1fc(_0x1388cd)})]})})]}),_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2721d6('div',{'className':_0x5b6ccb(0x149),'children':[_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-space-y-2','children':[_0x2721d6('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3c3529(_0x5b6ccb(0x123),{'children':'🔑'}),'\x20',_0x47836d['t'](_0x5b6ccb(0x15e)),_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x14c),'children':'*'}),_0x36c0db&&_0x3c3529('a',{'className':_0x5b6ccb(0xeb),'title':_0x47836d['t']('mcpConfig.apiApplyInfo.title'),'role':_0x5b6ccb(0xc4),'onClick':()=>_0x1440e6(!0x0),'children':_0x3c3529(ve,{})})]}),_0x3c3529(_0x4b0942,{'type':'text','placeholder':_0x47836d['t'](_0x5b6ccb(0xfd)),'value':_0x59f021,'disabled':_0x5a33c3,'autoComplete':'off','onChange':_0x341573}),_0x3c3529('p',{'className':_0x5b6ccb(0x1eb),'children':_0x47836d['t'](_0x5b6ccb(0x1e9))})]}),_0x36c0db&&_0x3ff4bd&&_0x2721d6('div',{'className':_0x5b6ccb(0x119),'children':[_0x3c3529('a',{'className':'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','role':'button','onClick':()=>_0x1440e6(!0x1),'children':_0x3c3529(ue,{'className':_0x5b6ccb(0xe2)})}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1e0),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xda),'children':_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x1af),'children':'🚀'})}),_0x2721d6('div',{'className':_0x5b6ccb(0x179),'children':[_0x3c3529('h4',{'className':_0x5b6ccb(0x1c5),'children':_0x47836d['t']('mcpConfig.apiApplyInfo.title')}),_0x3c3529('p',{'className':_0x5b6ccb(0xd6),'children':_0x47836d['t'](_0x5b6ccb(0x13a))}),_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xca),'children':_0x572eb7&&_0x2721d6('a',{'className':_0x5b6ccb(0x18f),'href':_0x177051,'target':'_blank','rel':_0x5b6ccb(0x1c8),'children':[_0x3c3529('span',{'children':'🤖'}),_0x47836d['t'](_0x5b6ccb(0x11d)),_0x3c3529(_0x5b6ccb(0x123),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xd0),'children':['✨','\x20',_0x47836d['t'](_0x5b6ccb(0x102))]})]})]})]}),_0x11adb0[_0x5b6ccb(0x202)]&&_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x2721d6('h4',{'className':_0x5b6ccb(0xb9),'children':[_0x3c3529(_0x5b6ccb(0x123),{'children':'🔗'}),'\x20',_0x47836d['t'](_0x5b6ccb(0x151))]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1d1),'children':[_0x2721d6('div',{'className':_0x5b6ccb(0x132),'children':[_0x3c3529('p',{'className':_0x5b6ccb(0x12f),'children':_0x47836d['t']('mcpConfig.configInstructions')}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x177),'children':[_0x3c3529('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x47836d['t'](_0x5b6ccb(0x12b))}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x103),'children':[_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x47836d['t']('mcpConfig.configStep1')]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x154),'children':'2'}),_0x47836d['t']('mcpConfig.configStep2')]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x154),'children':'3'}),_0x47836d['t']('mcpConfig.configStep3')]})]})]})]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x177),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x14a),'children':_0x5b6ccb(0x143)}),_0x3c3529('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x3c3529(_0x5b6ccb(0x176),{'className':_0x5b6ccb(0xfa),'children':JSON[_0x5b6ccb(0xba)]({'mcpServers':{'univer':{'url':_0x5b6ccb(0x129)+(_0x706427||_0x5b6ccb(0x1d9)),'type':'http','headers':{'Authorization':_0x5b6ccb(0x110)+(_0x59f021||_0x5b6ccb(0x1f1))}}}},null,0x2)})})]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x132),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x47836d['t'](_0x5b6ccb(0x1f7))}),_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-space-y-2','children':[_0x2721d6('div',{'className':_0x5b6ccb(0x181),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1ad),'children':[_0x3c3529('div',{'className':_0x5b6ccb(0x1c0),'children':_0x5b6ccb(0xf2)}),_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1eb),'children':_0x47836d['t'](_0x5b6ccb(0x130))})]})]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x181),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xb8)}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1ad),'children':[_0x3c3529('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x47836d['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x3c3529(_0x42f9b8,{'onClick':_0xdc40c,'disabled':!_0x568262||_0x5a33c3,'className':_0x5b6ccb(0xfc),'children':_0x5a33c3?_0x2721d6(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'children':'⟲'}),_0x47836d['t'](_0x5b6ccb(0x1d8))]}):_0x2721d6('span',{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(le,{}),_0x47836d['t']('mcpConfig.save')]})}),_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xc7),'children':_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-flex\x20univer-gap-3','children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x1e2),'children':'💡'}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xed),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x16c),'children':_0x5b6ccb(0x155)}),_0x2721d6(_0x5b6ccb(0xd3),{'children':['•',_0x47836d['t'](_0x5b6ccb(0x1d3))]}),_0x2721d6(_0x5b6ccb(0xd3),{'children':['•',_0x47836d['t'](_0x5b6ccb(0x1df))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x5d8db7,_0x29eca7,_0x23c7fd,_0x560403)=>{const _0x352a07=_0x1681d0;for(var _0x1eda90=_0x560403>0x1?void 0x0:_0x560403?rn(_0x29eca7,_0x23c7fd):_0x29eca7,_0x183af3=_0x5d8db7[_0x352a07(0x159)]-0x1,_0x4adb74;_0x183af3>=0x0;_0x183af3--)(_0x4adb74=_0x5d8db7[_0x183af3])&&(_0x1eda90=_0x4adb74(_0x1eda90)||_0x1eda90);return _0x1eda90;},d=(_0x54c3bd,_0x5852bf)=>(_0x58289c,_0x4f0f2d)=>_0x5852bf(_0x58289c,_0x4f0f2d,_0x54c3bd);const U=_0x1681d0(0x1ef),L=_0x1681d0(0x1a0);let I=class extends _0x54c83b{constructor(_0x7d2c39,_0x1f4559,_0x273a7d,_0x3ca06f,_0x253a77,_0xe01053,_0x3ff566,_0xc856cc,_0x3e7104,_0x51d659){const _0x183e0d=_0x1681d0;super(),x(this,_0x183e0d(0x1cb),new _0x40756f(!0x1)),x(this,'_mcpCoreConfig$',new _0x40756f({})),x(this,_0x183e0d(0x18a),new _0x40756f({})),x(this,_0x183e0d(0x1ee),new _0x40756f('')),x(this,_0x183e0d(0x14d),async _0x27da9f=>{const _0x589c2b=_0x183e0d;var _0x4830b9,_0x909c07;this['_loading$']['next'](!0x0);try{const _0x30e36d=await this['_validateConfig'](_0x27da9f);if(!_0x30e36d[_0x589c2b(0x163)]){this['_messageService'][_0x589c2b(0x1b8)]({'type':_0xeb652a[_0x589c2b(0x165)],'content':_0x30e36d[_0x589c2b(0xb2)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x27da9f[_0x589c2b(0xa8)]?await this[_0x589c2b(0xbe)][_0x589c2b(0x1c6)](U,_0x27da9f[_0x589c2b(0xa8)]['trim']()):await this[_0x589c2b(0xbe)][_0x589c2b(0x11e)](U),this['_apiKey$'][_0x589c2b(0x138)](((_0x4830b9=_0x27da9f[_0x589c2b(0xa8)])==null?void 0x0:_0x4830b9[_0x589c2b(0x135)]())||''),this[_0x589c2b(0x14b)]['__setCustomHeaders']({'Authorization':_0x589c2b(0x110)+((_0x909c07=_0x27da9f['apiKey'])==null?void 0x0:_0x909c07[_0x589c2b(0x135)]())}),this['_messageService']['show']({'type':_0xeb652a[_0x589c2b(0x1b0)],'content':this['_localeService']['t'](_0x589c2b(0xc0))}),setTimeout(()=>{const _0x23575d=_0x589c2b;this[_0x23575d(0x1cd)][_0x23575d(0xbf)](L);},0x320);}catch(_0xe05b46){this[_0x589c2b(0x1ca)][_0x589c2b(0xb1)](_0x589c2b(0x18c),_0xe05b46),this[_0x589c2b(0xf6)]['show']({'type':_0xeb652a['Error'],'content':this[_0x589c2b(0x13f)]['t'](_0x589c2b(0x115))});}finally{this[_0x589c2b(0x1cb)]['next'](!0x1);}}),(this[_0x183e0d(0x166)]=_0x7d2c39,this['_uiPartsService']=_0x1f4559,this[_0x183e0d(0x11b)]=_0x273a7d,this[_0x183e0d(0xbe)]=_0x3ca06f,this[_0x183e0d(0x1cd)]=_0x253a77,this['_messageService']=_0xe01053,this[_0x183e0d(0xad)]=_0x3ff566,this[_0x183e0d(0x13f)]=_0xc856cc,this[_0x183e0d(0x1ca)]=_0x3e7104,this[_0x183e0d(0x14b)]=_0x51d659,this[_0x183e0d(0xf5)](),this[_0x183e0d(0x10e)](),this[_0x183e0d(0xdb)]());}['showConfigPanel'](){const _0x134aa7=_0x1681d0,_0x2ecb24=this['_configService'][_0x134aa7(0x1dc)](y);_0x2ecb24!=null&&_0x2ecb24[_0x134aa7(0x202)]&&this[_0x134aa7(0x1cd)][_0x134aa7(0x107)]({'id':L,'title':{'title':this[_0x134aa7(0x13f)]['t'](_0x134aa7(0x19b))},'children':{'label':_0x134aa7(0xdd)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x57dc00=_0x134aa7;this[_0x57dc00(0x1cd)]['close'](L);}});}[_0x1681d0(0x112)](){const _0x19374d=_0x1681d0;return this[_0x19374d(0x1e5)][_0x19374d(0xab)];}[_0x1681d0(0xdb)](){const _0x1e5185=_0x1681d0;this[_0x1e5185(0xb4)](this[_0x1e5185(0xad)][_0x1e5185(0x187)](_0x1e5185(0xdd),this[_0x1e5185(0xe8)]()));}[_0x1681d0(0xe8)](){const _0x250b60=_0x1681d0;return _0xf88177(()=>{const _0x5f531b=_0x7f9e;var _0x3939de,_0x59ba86,_0x7b78b0;return _0x3c3529(nn,{'config':this['_config$'][_0x5f531b(0xab)],'mcpCoreConfig':this[_0x5f531b(0x1e5)]['value'],'currentApiKey$':this[_0x5f531b(0x1ee)],'onSave':this['_handleConfigSave'],'loading':this[_0x5f531b(0x1cb)]['value'],'connectionStatus$':(_0x3939de=this['_mcpConnectionController'])==null?void 0x0:_0x3939de[_0x5f531b(0x16e)],'connectionError$':(_0x59ba86=this['_mcpConnectionController'])==null?void 0x0:_0x59ba86[_0x5f531b(0x1ec)],'currentSessionId$':(_0x7b78b0=this[_0x5f531b(0x14b)])==null?void 0x0:_0x7b78b0[_0x5f531b(0x17c)]});},this[_0x250b60(0x166)]);}['_initConfigSync'](){const _0x27ab4e=_0x1681d0;this[_0x27ab4e(0xb4)](this['_configService'][_0x27ab4e(0xe6)](_0x5866c4)[_0x27ab4e(0x11a)](_0x2b87a4=>{const _0x1e0f99=_0x27ab4e;this[_0x1e0f99(0x1e5)][_0x1e0f99(0x138)](_0x2b87a4||{});}));const _0x19238b=this[_0x27ab4e(0x11b)]['getConfig'](_0x5866c4);this[_0x27ab4e(0x1e5)][_0x27ab4e(0x138)](_0x19238b||{}),this[_0x27ab4e(0xb4)](this[_0x27ab4e(0x11b)][_0x27ab4e(0xe6)](y)[_0x27ab4e(0x11a)](_0x5b747b=>{const _0x519292=_0x27ab4e;this['_config$'][_0x519292(0x138)](_0x5b747b||{});}));const _0x279e25=this[_0x27ab4e(0x11b)][_0x27ab4e(0x1dc)](y);this['_config$']['next'](_0x279e25||{});}async[_0x1681d0(0x10e)](){const _0x59c4f2=_0x1681d0,_0x31482a=this[_0x59c4f2(0x11b)]['getConfig'](y);if(!(_0x31482a!=null&&_0x31482a[_0x59c4f2(0x202)]))return;const _0x171eec=await this[_0x59c4f2(0xbe)][_0x59c4f2(0xc1)](U);_0x171eec&&(this['_mcpConnectionController'][_0x59c4f2(0x1c2)]({'Authorization':_0x59c4f2(0x110)+_0x171eec}),this[_0x59c4f2(0x1ee)][_0x59c4f2(0x138)](_0x171eec));}async[_0x1681d0(0x152)](_0x54e321){const _0x469190=_0x1681d0;if(!_0x54e321[_0x469190(0xa8)]||_0x54e321[_0x469190(0xa8)]['trim']()[_0x469190(0x159)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x469190(0x13f)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x54e321[_0x469190(0xa8)][_0x469190(0x135)]()[_0x469190(0x159)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x469190(0x13f)]['t'](_0x469190(0x12d))};try{const _0x5a122c=await this[_0x469190(0x166)][_0x469190(0x12c)](_0x1423db)[_0x469190(0x1b9)](_0x54e321['apiKey'][_0x469190(0x135)]());return _0x5a122c[_0x469190(0x163)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5a122c[_0x469190(0xb1)]||this['_localeService']['t'](_0x469190(0x1c1))};}catch(_0x2bbd63){return console[_0x469190(0x127)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2bbd63),{'isValid':!0x0};}}};I=tn([d(0x0,_0x299932(_0x4bc841)),d(0x1,_0x1ec66f),d(0x2,_0x565a2d),d(0x3,_0x429692),d(0x4,_0x334f21),d(0x5,_0x1f1d7a),d(0x6,_0x299932(_0x415279)),d(0x7,_0x299932(_0x47faab)),d(0x8,_0x1b4414),d(0x9,_0x299932(_0x1423db))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x5877f6[_0x1681d0(0x106)],'handler':async(_0x22872e,_0x25566f)=>(_0x22872e[_0x1681d0(0x12c)](I)['showConfigPanel'](),!0x0)};function pe(_0x222ae8,_0x533094){const _0x1256d8=_0x1681d0;switch(_0x222ae8){case _0x466718[_0x1256d8(0x104)]:return _0x1256d8(0x1fd);case _0x466718['CONNECTING']:return'mcpStatus.connecting';case _0x466718[_0x1256d8(0x17f)]:return _0x1256d8(0xfb);case _0x466718['FAILED']:switch(_0x533094){case _0x501a8f[_0x1256d8(0x14f)]:return _0x1256d8(0x120);case _0x501a8f[_0x1256d8(0xc6)]:return _0x1256d8(0x1cc);case _0x501a8f[_0x1256d8(0x118)]:return _0x1256d8(0x16f);case _0x501a8f['MAX_RETRIES_EXCEEDED']:return _0x1256d8(0x16a);default:return _0x1256d8(0x1cf);}case _0x466718['RETRYING']:return _0x1256d8(0xec);default:return _0x1256d8(0x1b7);}}function on(_0x434dae,_0x3887cb,_0x32b460,_0x77aa0b=!0x0){const _0x57924d=_0x1681d0,_0x2de79d=pe(_0x434dae,_0x3887cb),_0x2139bd=_0x32b460['t'](_0x2de79d);return _0x77aa0b?_0x434dae===_0x466718[_0x57924d(0x104)]&&_0x3887cb===_0x501a8f['UNAUTHORIZED']?_0x2139bd+_0x57924d(0x11c)+_0x32b460['t'](_0x57924d(0x171)):_0x434dae===_0x466718['CONNECTED']?''+_0x2139bd:_0x434dae===_0x466718['DISCONNECTED']||_0x434dae===_0x466718[_0x57924d(0xdc)]?_0x2139bd+_0x57924d(0x11c)+_0x32b460['t'](_0x57924d(0x13d)):_0x2139bd:_0x2139bd;}function sn(_0x3780dd){const _0x3183c4=_0x1681d0;switch(_0x3780dd){case _0x466718['CONNECTED']:return _0x3183c4(0xff);case _0x466718[_0x3183c4(0x1db)]:case _0x466718[_0x3183c4(0x189)]:return _0x3183c4(0x146);case _0x466718[_0x3183c4(0xdc)]:case _0x466718[_0x3183c4(0x104)]:return _0x3183c4(0x14c);default:return _0x3183c4(0x1c9);}}function cn(_0x45f876){const _0x10c149=_0x1681d0,{status$:_0x1f7c75,error$:_0x1ebe15,onConfigure:_0x1d3577,showClickable:_0x37ef04=!0x0}=_0x45f876,_0x2e5492=_0x4dd3cc(_0x1f7c75,_0x466718[_0x10c149(0x104)]),_0x33ed66=_0x4dd3cc(_0x1ebe15,_0x501a8f[_0x10c149(0xb7)]),_0x154251=_0x4d7014(_0x47faab),_0x5a2e3b=_0x2e5492===_0x466718[_0x10c149(0x17f)];_0x2e5492===_0x466718['CONNECTING']||_0x466718[_0x10c149(0x189)];const _0x5d7746=_0x154251['t'](pe(_0x2e5492,_0x33ed66)),_0x51f007=on(_0x2e5492,_0x33ed66,_0x154251,_0x37ef04),_0x274f3c=sn(_0x2e5492),_0x354e91=_0x5a2e3b?_0x3c3529(ge,{}):_0x3c3529(de,{}),_0x3d5d94=_0x4c9118(()=>{_0x37ef04&&_0x1d3577&&_0x1d3577();},[_0x37ef04,_0x1d3577]);function _0xe705b(){const _0x51b069=_0x10c149;return _0x2721d6(_0x51b069(0xd3),{'className':_0x18b9b4('univer-flex\x20univer-items-center',_0x37ef04&&_0x1d3577&&_0x51b069(0x1ba)),'role':_0x51b069(0xc4),'onClick':_0x37ef04&&_0x1d3577?_0x3d5d94:void 0x0,'children':[_0x3c3529(_0x51b069(0xd3),{'className':_0x18b9b4(_0x51b069(0x113),_0x274f3c),'children':_0x354e91}),_0x3c3529(_0x51b069(0xd3),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5d7746})]});}return _0x3c3529(_0x1b89e8,{'title':_0x51f007,'placement':'bottom','children':_0xe705b()});}function _0x7f9e(_0x30aae2,_0x508583){_0x30aae2=_0x30aae2-0xa6;const _0x4c93c8=_0x4c93();let _0x7f9e6b=_0x4c93c8[_0x30aae2];return _0x7f9e6b;}var an=Object['getOwnPropertyDescriptor'],ln=(_0x4f6eda,_0x5de69b,_0x55f768,_0x475513)=>{const _0x49da6f=_0x1681d0;for(var _0x226160=_0x475513>0x1?void 0x0:_0x475513?an(_0x5de69b,_0x55f768):_0x5de69b,_0x43d2cf=_0x4f6eda[_0x49da6f(0x159)]-0x1,_0x54e3f2;_0x43d2cf>=0x0;_0x43d2cf--)(_0x54e3f2=_0x4f6eda[_0x43d2cf])&&(_0x226160=_0x54e3f2(_0x226160)||_0x226160);return _0x226160;},M=(_0x589672,_0x1ff97f)=>(_0x38be7a,_0x5c9395)=>_0x1ff97f(_0x38be7a,_0x5c9395,_0x589672);let O=class extends _0x54c83b{constructor(_0x5ec192,_0x55a3e9,_0x527656,_0x39aada){const _0x336cbc=_0x1681d0;super(),this['_injector']=_0x5ec192,this['_connectionController']=_0x55a3e9,this[_0x336cbc(0x1d4)]=_0x527656,this[_0x336cbc(0x11b)]=_0x39aada,this[_0x336cbc(0x1d6)](),this[_0x336cbc(0xcd)]();}[_0x1681d0(0x1d6)](){const _0x16f90d=_0x1681d0,_0xa69a28=this[_0x16f90d(0x11b)][_0x16f90d(0x1dc)](y);_0xa69a28!=null&&_0xa69a28[_0x16f90d(0x202)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x1681d0(0xcd)](){const _0x2b135f=_0x1681d0,_0x41d8c9=this['_configService'][_0x2b135f(0x1dc)](y);(_0x41d8c9==null?void 0x0:_0x41d8c9[_0x2b135f(0x164)])!==!0x1&&this[_0x2b135f(0xb4)](this['_uiPartsService'][_0x2b135f(0x16d)](_0x591b87[_0x2b135f(0x1f4)],()=>{const _0x26ccc4=_0x2b135f;var _0x1ed87c;return _0xf88177(un({'status$':this[_0x26ccc4(0xce)][_0x26ccc4(0x16e)],'error$':this[_0x26ccc4(0xce)][_0x26ccc4(0x1ec)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1ed87c=_0x41d8c9==null?void 0x0:_0x41d8c9[_0x26ccc4(0x202)])!=null?_0x1ed87c:!0x1}),this[_0x26ccc4(0x166)]);}));}[_0x1681d0(0x175)](){const _0x54ff87=_0x1681d0;this['_injector'][_0x54ff87(0x12c)](I)[_0x54ff87(0x1d2)]();}};O=ln([M(0x0,_0x299932(_0x4bc841)),M(0x1,_0x299932(_0x1423db)),M(0x2,_0x1ec66f),M(0x3,_0x565a2d)],O);function un(_0x235951){const {status$:_0x412919,error$:_0x2695b2,onConfigure:_0x52dca6,showClickable:_0x4b4025}=_0x235951;return function(){return _0x3c3529(cn,{'status$':_0x412919,'error$':_0x2695b2,'onConfigure':_0x52dca6,'showClickable':_0x4b4025});};}function vn(_0x15df22){const _0x4219c9=_0x1681d0;return{'id':V['id'],'type':_0x145960[_0x4219c9(0x1a6)],'icon':_0x4219c9(0x1b3),'title':_0x4219c9(0x19b),'tooltip':_0x4219c9(0x19b)};}const dn={[_0x264be0[_0x1681d0(0x17b)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x27cf05,_0x5cee05,_0x2941ec,_0x478a44)=>{const _0x332dca=_0x1681d0;for(var _0xbde8ec=_0x478a44>0x1?void 0x0:_0x478a44?gn(_0x5cee05,_0x2941ec):_0x5cee05,_0x543606=_0x27cf05[_0x332dca(0x159)]-0x1,_0x44d338;_0x543606>=0x0;_0x543606--)(_0x44d338=_0x27cf05[_0x543606])&&(_0xbde8ec=_0x44d338(_0xbde8ec)||_0xbde8ec);return _0xbde8ec;},re=(_0x2299c8,_0xf0c965)=>(_0x540523,_0x1f41bf)=>_0xf0c965(_0x540523,_0x1f41bf,_0x2299c8);let D=class extends _0x54c83b{constructor(_0x52a59d,_0x2003d0){const _0x5084cd=_0x1681d0;super(),this[_0x5084cd(0x167)]=_0x52a59d,this['_menuManagerService']=_0x2003d0,this[_0x5084cd(0x19e)](),this['_initializeMenus']();}[_0x1681d0(0x19e)](){[V]['forEach'](_0x463e8c=>{const _0x2eb458=_0x7f9e;this[_0x2eb458(0xb4)](this[_0x2eb458(0x167)]['registerCommand'](_0x463e8c));});}[_0x1681d0(0x16b)](){const _0x2619b5=_0x1681d0;this[_0x2619b5(0x1e6)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x19c6f9),re(0x1,_0x586d6a)],D);const Mn={'mcpStatus':{'disconnected':_0x1681d0(0x1f0),'connecting':_0x1681d0(0x199),'connected':_0x1681d0(0xc9),'failed':_0x1681d0(0x197),'retrying':_0x1681d0(0x1e3),'unknown':_0x1681d0(0x1dd),'unauthorized':_0x1681d0(0x141),'sessionOccupied':_0x1681d0(0x18e),'networkError':_0x1681d0(0xc2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1681d0(0x1bc),'clickToConfigure':_0x1681d0(0x1e8)},'mcpConfig':{'title':_0x1681d0(0x143),'description':_0x1681d0(0x1a4),'apiKey':_0x1681d0(0xc5),'apiKeyPlaceholder':_0x1681d0(0x142),'apiKeyHint':_0x1681d0(0xf8),'enableAuth':_0x1681d0(0x1a1),'enableAuthHint':_0x1681d0(0x194),'connectionInfo':_0x1681d0(0x18d),'mcpClientConfig':_0x1681d0(0x18d),'configInstructions':_0x1681d0(0x157),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1681d0(0x1bb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1681d0(0xd9),'maxRetries':_0x1681d0(0x18b),'save':_0x1681d0(0xae),'saving':_0x1681d0(0x1a9),'note1':_0x1681d0(0xcc),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1681d0(0xe5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1681d0(0x1c7),'description':_0x1681d0(0x200),'univerAiLabel':_0x1681d0(0x190),'getStarted':_0x1681d0(0x109)},'validation':{'apiKeyRequired':_0x1681d0(0x161),'apiKeyTooShort':_0x1681d0(0x188),'invalidConfig':_0x1681d0(0x1d7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1681d0(0x17e),'connecting':_0x1681d0(0xb3),'connected':_0x1681d0(0x1ce),'failed':_0x1681d0(0xaa),'retrying':_0x1681d0(0x193)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1681d0(0x124),'networkError':_0x1681d0(0xf1),'maxRetriesExceeded':_0x1681d0(0x105)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x1681d0(0xe0),'connected':_0x1681d0(0x1f5),'failed':_0x1681d0(0xb5),'retrying':_0x1681d0(0x178),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x1681d0(0x1f9),'networkError':_0x1681d0(0x1a2),'maxRetriesExceeded':_0x1681d0(0xee),'clickToConnect':_0x1681d0(0x1b1),'clickToConfigure':_0x1681d0(0x196)},'mcpConfig':{'title':_0x1681d0(0x1fb),'description':_0x1681d0(0x19f),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x1681d0(0x1a5),'apiKeyHint':_0x1681d0(0x17a),'enableAuth':_0x1681d0(0x148),'enableAuthHint':_0x1681d0(0x1ae),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x1681d0(0x10f),'configInstructions':_0x1681d0(0x1bd),'configStepTitle':_0x1681d0(0x1ab),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x1681d0(0x133),'configStep3':_0x1681d0(0x100),'sessionId':_0x1681d0(0x122),'sessionIdDescription':_0x1681d0(0x1aa),'authorizationDescription':_0x1681d0(0x1b6),'configParameters':'配置参数:','maxRetries':_0x1681d0(0x182),'save':'保存配置','saving':_0x1681d0(0x173),'note1':_0x1681d0(0x168),'note2':_0x1681d0(0x144),'configSaved':_0x1681d0(0x11f),'configError':_0x1681d0(0xfe),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x1681d0(0x10c),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x1681d0(0x1d0)},'validation':{'apiKeyRequired':_0x1681d0(0x195),'apiKeyTooShort':_0x1681d0(0x162),'invalidConfig':_0x1681d0(0x128),'invalidApiKey':_0x1681d0(0x125)},'connectionStatus':{'disconnected':_0x1681d0(0x1e1),'connecting':_0x1681d0(0x153),'connected':'已连接','failed':_0x1681d0(0x1a7),'retrying':_0x1681d0(0x1f3)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x1681d0(0x1f2)}}};var fn=Object[_0x1681d0(0x145)],hn=Object[_0x1681d0(0xf0)],Cn=(_0x344592,_0xa0bdfe,_0x1935bf)=>_0xa0bdfe in _0x344592?fn(_0x344592,_0xa0bdfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1935bf}):_0x344592[_0xa0bdfe]=_0x1935bf,mn=(_0x360ebb,_0x12a6d3,_0x2f5f48,_0x57205a)=>{const _0xe91b38=_0x1681d0;for(var _0x450d0e=_0x57205a>0x1?void 0x0:_0x57205a?hn(_0x12a6d3,_0x2f5f48):_0x12a6d3,_0x172965=_0x360ebb[_0xe91b38(0x159)]-0x1,_0x47b3e7;_0x172965>=0x0;_0x172965--)(_0x47b3e7=_0x360ebb[_0x172965])&&(_0x450d0e=_0x47b3e7(_0x450d0e)||_0x450d0e);return _0x450d0e;},P=(_0x280311,_0x1cf1b5)=>(_0x21fe3e,_0x4352a1)=>_0x1cf1b5(_0x21fe3e,_0x4352a1,_0x280311),_n=(_0x231417,_0x1b3a0f,_0x2b2908)=>Cn(_0x231417,_0x1b3a0f+'',_0x2b2908);let j=class extends _0xf9d8dd{constructor(_0x1e09d7=ie,_0x23d5e8,_0xff6786,_0x35651a,_0x5a7fc1,_0x364d7a){const _0x4ec11b=_0x1681d0;super(),this['_config']=_0x1e09d7,this[_0x4ec11b(0x166)]=_0x23d5e8,this[_0x4ec11b(0x11b)]=_0xff6786,this[_0x4ec11b(0x1d4)]=_0x35651a,this['_localStorageService']=_0x5a7fc1,this[_0x4ec11b(0x13f)]=_0x364d7a;const {..._0x489189}=_0x27bee6({},ie,this[_0x4ec11b(0xf7)]);this['_configService'][_0x4ec11b(0xd5)](y,_0x489189);}async[_0x1681d0(0x169)](){const _0x262ffe=_0x1681d0,_0x6545b9=[[O],[I],[D]];this[_0x262ffe(0x166)][_0x262ffe(0x1da)](_0x3d7dd1)||_0x6545b9[_0x262ffe(0x1a8)]([_0x3d7dd1,{'useClass':_0x573e0f}]),_0x6545b9[_0x262ffe(0x1c3)](_0x35a052=>this[_0x262ffe(0x166)][_0x262ffe(0x108)](_0x35a052)),this[_0x262ffe(0x166)][_0x262ffe(0x12c)](O),this[_0x262ffe(0x166)][_0x262ffe(0x12c)](I),this[_0x262ffe(0x166)][_0x262ffe(0x12c)](D);}};_n(j,_0x1681d0(0xcf),'MCP_UI_PLUGIN'),j=mn([_0x13d30f(_0x5d3e04),P(0x1,_0x299932(_0x4bc841)),P(0x2,_0x565a2d),P(0x3,_0x1ec66f),P(0x4,_0x429692),P(0x5,_0x299932(_0x47faab))],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 _0x16511d=_0x2085;(function(_0x6bdd51,_0x187f32){const _0x8e0eb5=_0x2085,_0x180b5f=_0x6bdd51();while(!![]){try{const _0x453dcc=-parseInt(_0x8e0eb5(0x1d4))/0x1+-parseInt(_0x8e0eb5(0x1ed))/0x2+parseInt(_0x8e0eb5(0x1c4))/0x3*(parseInt(_0x8e0eb5(0x1e1))/0x4)+-parseInt(_0x8e0eb5(0x1ec))/0x5+parseInt(_0x8e0eb5(0x1c7))/0x6+-parseInt(_0x8e0eb5(0x1dc))/0x7*(-parseInt(_0x8e0eb5(0x1c8))/0x8)+-parseInt(_0x8e0eb5(0x1db))/0x9;if(_0x453dcc===_0x187f32)break;else _0x180b5f['push'](_0x180b5f['shift']());}catch(_0x51861c){_0x180b5f['push'](_0x180b5f['shift']());}}}(_0x144b,0x776b2));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x16511d(0x1e8),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x16511d(0x1d6),'unknown':_0x16511d(0x1c6),'unauthorized':_0x16511d(0x1d2),'sessionOccupied':_0x16511d(0x1cc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x16511d(0x1e2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x16511d(0x1de)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x16511d(0x1cd),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x16511d(0x1e4),'configInstructions':_0x16511d(0x1c5),'configStepTitle':_0x16511d(0x1cb),'configStep1':_0x16511d(0x1d8),'configStep2':_0x16511d(0x1df),'configStep3':_0x16511d(0x1e0),'sessionId':_0x16511d(0x1e9),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x16511d(0x1e6),'configParameters':_0x16511d(0x1d3),'maxRetries':_0x16511d(0x1e7),'save':_0x16511d(0x1d1),'saving':_0x16511d(0x1eb),'note1':_0x16511d(0x1dd),'note2':_0x16511d(0x1d7),'configSaved':'Configuration\x20saved\x20successfully','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':_0x16511d(0x1ea),'getStarted':_0x16511d(0x1ce)},'validation':{'apiKeyRequired':_0x16511d(0x1c9),'apiKeyTooShort':_0x16511d(0x1da),'invalidConfig':_0x16511d(0x1c3),'invalidApiKey':_0x16511d(0x1e5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x16511d(0x1cf),'connected':_0x16511d(0x1e3),'failed':_0x16511d(0x1d5),'retrying':_0x16511d(0x1d0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x16511d(0x1ca),'maxRetriesExceeded':_0x16511d(0x1d9)}}},n=e;export{n as default};function _0x2085(_0x19bf31,_0x57ddce){_0x19bf31=_0x19bf31-0x1c3;const _0x144b5e=_0x144b();let _0x2085a7=_0x144b5e[_0x19bf31];return _0x2085a7;}function _0x144b(){const _0x48dad7=['Univer\x20AI\x20Console','Saving...','3902585xidFRJ','1164352dQaRfV','Invalid\x20configuration','6CXchbP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','5221830nuuJIv','810808mrvuEd','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','Retrying...','Save\x20Configuration','MCP:\x20Unauthorized','Configuration\x20Parameters:','121093AQhdVT','Connection\x20Failed','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1952901TUAwpo','28cknwQy','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1828408luVYIX','MCP:\x20Max\x20Retries\x20Exceeded','Connected','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','MCP\x20Connecting...','Session\x20ID'];_0x144b=function(){return _0x48dad7;};return _0x144b();}
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x54aa(_0x1dda7c,_0x49503f){_0x1dda7c=_0x1dda7c-0x1cd;const _0x51203e=_0x5120();let _0x54aa33=_0x51203e[_0x1dda7c];return _0x54aa33;}const _0x2cbcc6=_0x54aa;(function(_0x4094b7,_0x371402){const _0x39264b=_0x54aa,_0x6c22ec=_0x4094b7();while(!![]){try{const _0x4a0496=-parseInt(_0x39264b(0x1e8))/0x1*(parseInt(_0x39264b(0x1cf))/0x2)+-parseInt(_0x39264b(0x1d7))/0x3+parseInt(_0x39264b(0x1ee))/0x4+-parseInt(_0x39264b(0x1ec))/0x5*(-parseInt(_0x39264b(0x1cd))/0x6)+parseInt(_0x39264b(0x1eb))/0x7+-parseInt(_0x39264b(0x1d4))/0x8+parseInt(_0x39264b(0x1d2))/0x9;if(_0x4a0496===_0x371402)break;else _0x6c22ec['push'](_0x6c22ec['shift']());}catch(_0x208247){_0x6c22ec['push'](_0x6c22ec['shift']());}}}(_0x5120,0xcd0e9));function _0x5120(){const _0xa04bc8=['MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','Click\x20to\x20connect\x20MCP','Connected','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','28atrwJX','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session\x20ID','5535012ZszTBB','638105xnzCkq','Invalid\x20configuration','1435932QoYmtN','Disconnected','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','6fXSdhg','API\x20key\x20is\x20required','21272vVktEj','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','14597424RjxbDE','Failed\x20to\x20save\x20configuration','2990616hjcrUS','API\x20Key','MCP:\x20Network\x20Error','4163124EExxlI','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0x5120=function(){return _0xa04bc8;};return _0x5120();}const e={'mcpStatus':{'disconnected':_0x2cbcc6(0x1f8),'connecting':_0x2cbcc6(0x1e6),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2cbcc6(0x1da),'sessionOccupied':_0x2cbcc6(0x1e0),'networkError':_0x2cbcc6(0x1d6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2cbcc6(0x1e3),'clickToConfigure':_0x2cbcc6(0x1f0)},'mcpConfig':{'title':_0x2cbcc6(0x1dd),'description':_0x2cbcc6(0x1f5),'apiKey':_0x2cbcc6(0x1d5),'apiKeyPlaceholder':_0x2cbcc6(0x1f4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2cbcc6(0x1de),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2cbcc6(0x1d9),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2cbcc6(0x1d1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2cbcc6(0x1ea),'sessionIdDescription':_0x2cbcc6(0x1f7),'authorizationDescription':_0x2cbcc6(0x1f9),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2cbcc6(0x1e2),'save':_0x2cbcc6(0x1f6),'saving':'Saving...','note1':_0x2cbcc6(0x1f3),'note2':_0x2cbcc6(0x1e9),'configSaved':_0x2cbcc6(0x1e5),'configError':_0x2cbcc6(0x1d3),'apiApplyInfo':{'title':_0x2cbcc6(0x1db),'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':_0x2cbcc6(0x1d8),'getStarted':_0x2cbcc6(0x1e1)},'validation':{'apiKeyRequired':_0x2cbcc6(0x1ce),'apiKeyTooShort':_0x2cbcc6(0x1df),'invalidConfig':_0x2cbcc6(0x1ed),'invalidApiKey':_0x2cbcc6(0x1dc)},'connectionStatus':{'disconnected':_0x2cbcc6(0x1ef),'connecting':'Connecting...','connected':_0x2cbcc6(0x1e4),'failed':'Connection\x20Failed','retrying':_0x2cbcc6(0x1f2)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2cbcc6(0x1e7),'networkError':_0x2cbcc6(0x1f1),'maxRetriesExceeded':_0x2cbcc6(0x1d0)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x42b6(_0x1c8776,_0x462dd5){_0x1c8776=_0x1c8776-0x1aa;const _0xd2bc59=_0xd2bc();let _0x42b613=_0xd2bc59[_0x1c8776];return _0x42b613;}const _0x7e4a5=_0x42b6;function _0xd2bc(){const _0xa596f4=['Configuration\x20Parameters:','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','120VlgKkV','Connected','47007CuWFGo','14199fLqgak','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','42FaXgth','724TfnXxO','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','Disconnected','2PVDjaO','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','11piMDxd','4009230NEinQa','MCP\x20Connected','Save\x20Configuration','14571660CZZwQl','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','Connection\x20Failed','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','102035piYRXM','What\x20is\x20API\x20Key?','Enable\x20Authentication','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Invalid\x20configuration','Univer\x20AI\x20Console','7198037kyyLSb','API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20with\x20Bearer\x20prefix.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','15481YcBqCT','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0xd2bc=function(){return _0xa596f4;};return _0xd2bc();}(function(_0x35154,_0x34d648){const _0x1582e6=_0x42b6,_0x174d57=_0x35154();while(!![]){try{const _0x3acfe6=parseInt(_0x1582e6(0x1bc))/0x1*(-parseInt(_0x1582e6(0x1d2))/0x2)+-parseInt(_0x1582e6(0x1ca))/0x3*(-parseInt(_0x1582e6(0x1cd))/0x4)+parseInt(_0x1582e6(0x1ac))/0x5*(-parseInt(_0x1582e6(0x1cc))/0x6)+-parseInt(_0x1582e6(0x1b3))/0x7+parseInt(_0x1582e6(0x1c7))/0x8*(parseInt(_0x1582e6(0x1c9))/0x9)+-parseInt(_0x1582e6(0x1d5))/0xa+-parseInt(_0x1582e6(0x1d4))/0xb*(-parseInt(_0x1582e6(0x1d8))/0xc);if(_0x3acfe6===_0x34d648)break;else _0x174d57['push'](_0x174d57['shift']());}catch(_0x4ff6d9){_0x174d57['push'](_0x174d57['shift']());}}}(_0xd2bc,0x89273));const e={'mcpStatus':{'disconnected':_0x7e4a5(0x1c2),'connecting':_0x7e4a5(0x1dd),'connected':_0x7e4a5(0x1d6),'failed':'MCP\x20Connection\x20Failed','retrying':_0x7e4a5(0x1ce),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x7e4a5(0x1bf),'sessionOccupied':_0x7e4a5(0x1cf),'networkError':_0x7e4a5(0x1c6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x7e4a5(0x1c5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x7e4a5(0x1bb),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x7e4a5(0x1b4),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x7e4a5(0x1be),'enableAuth':_0x7e4a5(0x1ae),'enableAuthHint':_0x7e4a5(0x1ba),'connectionInfo':_0x7e4a5(0x1af),'mcpClientConfig':_0x7e4a5(0x1af),'configInstructions':_0x7e4a5(0x1d9),'configStepTitle':_0x7e4a5(0x1b0),'configStep1':_0x7e4a5(0x1bd),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x7e4a5(0x1cb),'sessionId':_0x7e4a5(0x1ab),'sessionIdDescription':_0x7e4a5(0x1da),'authorizationDescription':_0x7e4a5(0x1b6),'configParameters':_0x7e4a5(0x1c1),'maxRetries':_0x7e4a5(0x1b8),'save':_0x7e4a5(0x1d7),'saving':'Saving...','note1':_0x7e4a5(0x1b5),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x7e4a5(0x1d0),'apiApplyInfo':{'title':_0x7e4a5(0x1ad),'description':_0x7e4a5(0x1aa),'univerAiLabel':_0x7e4a5(0x1b2),'getStarted':_0x7e4a5(0x1b9)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x7e4a5(0x1b1),'invalidApiKey':_0x7e4a5(0x1c4)},'connectionStatus':{'disconnected':_0x7e4a5(0x1d1),'connecting':'Connecting...','connected':_0x7e4a5(0x1c8),'failed':_0x7e4a5(0x1dc),'retrying':_0x7e4a5(0x1db)},'connectionError':{'unauthorized':_0x7e4a5(0x1b7),'sessionOccupied':_0x7e4a5(0x1c3),'networkError':_0x7e4a5(0x1d3),'maxRetriesExceeded':_0x7e4a5(0x1c0)}}},n=e;export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9cc15f=_0x3822;(function(_0x3a19b1,_0x450250){const _0x3a2ada=_0x3822,_0x378e5e=_0x3a19b1();while(!![]){try{const _0x2a52db=parseInt(_0x3a2ada(0xbd))/0x1*(parseInt(_0x3a2ada(0xd8))/0x2)+parseInt(_0x3a2ada(0xc1))/0x3+parseInt(_0x3a2ada(0xc9))/0x4+-parseInt(_0x3a2ada(0xb6))/0x5+-parseInt(_0x3a2ada(0xca))/0x6*(-parseInt(_0x3a2ada(0xaf))/0x7)+-parseInt(_0x3a2ada(0xba))/0x8*(-parseInt(_0x3a2ada(0xdc))/0x9)+-parseInt(_0x3a2ada(0xbe))/0xa*(parseInt(_0x3a2ada(0xb2))/0xb);if(_0x2a52db===_0x450250)break;else _0x378e5e['push'](_0x378e5e['shift']());}catch(_0x47543c){_0x378e5e['push'](_0x378e5e['shift']());}}}(_0x81a2,0xd5b1a));function _0x3822(_0x26c22e,_0x4e0363){_0x26c22e=_0x26c22e-0xab;const _0x81a20=_0x81a2();let _0x38222c=_0x81a20[_0x26c22e];return _0x38222c;}const e={'mcpStatus':{'disconnected':_0x9cc15f(0xce),'connecting':_0x9cc15f(0xb0),'connected':_0x9cc15f(0xcd),'failed':'MCP\x20Connection\x20Failed','retrying':_0x9cc15f(0xc2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x9cc15f(0xd9),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x9cc15f(0xab),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x9cc15f(0xbc),'clickToConfigure':_0x9cc15f(0xbf)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x9cc15f(0xd6),'apiKey':_0x9cc15f(0xb5),'apiKeyPlaceholder':_0x9cc15f(0xd7),'apiKeyHint':_0x9cc15f(0xdb),'enableAuth':_0x9cc15f(0xae),'enableAuthHint':_0x9cc15f(0xc7),'connectionInfo':_0x9cc15f(0xb8),'mcpClientConfig':_0x9cc15f(0xb8),'configInstructions':_0x9cc15f(0xc0),'configStepTitle':_0x9cc15f(0xc4),'configStep1':_0x9cc15f(0xd1),'configStep2':_0x9cc15f(0xb3),'configStep3':_0x9cc15f(0xcf),'sessionId':'Session\x20ID','sessionIdDescription':_0x9cc15f(0xb7),'authorizationDescription':_0x9cc15f(0xb1),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x9cc15f(0xd0),'save':_0x9cc15f(0xbb),'saving':_0x9cc15f(0xc5),'note1':_0x9cc15f(0xcc),'note2':_0x9cc15f(0xac),'configSaved':_0x9cc15f(0xd4),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x9cc15f(0xad),'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':_0x9cc15f(0xc6),'getStarted':_0x9cc15f(0xd5)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x9cc15f(0xda),'invalidApiKey':_0x9cc15f(0xcb)},'connectionStatus':{'disconnected':_0x9cc15f(0xc8),'connecting':_0x9cc15f(0xd2),'connected':_0x9cc15f(0xc3),'failed':_0x9cc15f(0xd3),'retrying':_0x9cc15f(0xb4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x9cc15f(0xb9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};function _0x81a2(){const _0x5143fe=['MCP\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','55uajETK','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','API\x20Key','4566210JhmGAL','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6932496GMTLIx','Save\x20Configuration','Click\x20to\x20connect\x20MCP','938237rqxzFm','4876610oFlpuS','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','3552657jPXNmI','MCP\x20Retrying...','Connected','Configuration\x20Steps:','Saving...','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','Disconnected','3079524PvebBo','1403814KiEduy','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','Connection\x20Failed','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','2RYHPmR','MCP:\x20Unauthorized','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9EzqIrc','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','What\x20is\x20API\x20Key?','Enable\x20Authentication','14tClZXX'];_0x81a2=function(){return _0x5143fe;};return _0x81a2();}
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x271493=_0x4237;(function(_0x2b25c9,_0xfc9f12){const _0x13d9f6=_0x4237,_0x1f0081=_0x2b25c9();while(!![]){try{const _0x34d825=parseInt(_0x13d9f6(0x1d2))/0x1+-parseInt(_0x13d9f6(0x1d4))/0x2*(parseInt(_0x13d9f6(0x1d6))/0x3)+-parseInt(_0x13d9f6(0x1af))/0x4*(parseInt(_0x13d9f6(0x1b0))/0x5)+parseInt(_0x13d9f6(0x1cd))/0x6*(parseInt(_0x13d9f6(0x1d9))/0x7)+parseInt(_0x13d9f6(0x1ac))/0x8+-parseInt(_0x13d9f6(0x1c5))/0x9*(-parseInt(_0x13d9f6(0x1d7))/0xa)+parseInt(_0x13d9f6(0x1cf))/0xb*(-parseInt(_0x13d9f6(0x1d8))/0xc);if(_0x34d825===_0xfc9f12)break;else _0x1f0081['push'](_0x1f0081['shift']());}catch(_0x284815){_0x1f0081['push'](_0x1f0081['shift']());}}}(_0x20e7,0x5f6f8));function _0x4237(_0xb9f864,_0x3e3fca){_0xb9f864=_0xb9f864-0x1a7;const _0x20e7d4=_0x20e7();let _0x4237de=_0x20e7d4[_0xb9f864];return _0x4237de;}const e={'mcpStatus':{'disconnected':_0x271493(0x1d3),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x271493(0x1aa),'retrying':'MCP\x20Retrying...','unknown':_0x271493(0x1c1),'unauthorized':_0x271493(0x1ab),'sessionOccupied':_0x271493(0x1a7),'networkError':_0x271493(0x1cb),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x271493(0x1dd),'description':_0x271493(0x1c4),'apiKey':_0x271493(0x1b1),'apiKeyPlaceholder':_0x271493(0x1d1),'apiKeyHint':_0x271493(0x1c2),'enableAuth':_0x271493(0x1b7),'enableAuthHint':_0x271493(0x1bb),'connectionInfo':_0x271493(0x1dc),'mcpClientConfig':_0x271493(0x1dc),'configInstructions':_0x271493(0x1b8),'configStepTitle':_0x271493(0x1c3),'configStep1':_0x271493(0x1c7),'configStep2':_0x271493(0x1b2),'configStep3':_0x271493(0x1b5),'sessionId':_0x271493(0x1ae),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x271493(0x1ad),'configParameters':_0x271493(0x1ce),'maxRetries':_0x271493(0x1bd),'save':_0x271493(0x1bc),'saving':_0x271493(0x1bf),'note1':_0x271493(0x1be),'note2':_0x271493(0x1c0),'configSaved':_0x271493(0x1b3),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x271493(0x1ba),'description':_0x271493(0x1cc),'univerAiLabel':_0x271493(0x1ca),'getStarted':_0x271493(0x1d0)},'validation':{'apiKeyRequired':_0x271493(0x1c8),'apiKeyTooShort':_0x271493(0x1d5),'invalidConfig':_0x271493(0x1c6),'invalidApiKey':_0x271493(0x1c9)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x271493(0x1b4),'connected':_0x271493(0x1b9),'failed':_0x271493(0x1db),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x271493(0x1da),'sessionOccupied':_0x271493(0x1b6),'networkError':_0x271493(0x1a8),'maxRetriesExceeded':_0x271493(0x1a9)}}},n=e;function _0x20e7(){const _0x44a0eb=['Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','30798YgEjNW','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Univer\x20AI\x20Console','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.','290088LIvmew','Configuration\x20Parameters:','187alvuJO','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','185944ODPcwx','MCP\x20Disconnected','2ahJOPN','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1466646ymUPwM','70rJeCLk','319116nFACVa','77kBDnIl','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','MCP\x20Client\x20Configuration','MCP\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','5596600aOcgRl','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','437736eDdkwI','5mUHhip','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','What\x20is\x20API\x20Key?'];_0x20e7=function(){return _0x44a0eb;};return _0x20e7();}export{n as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x198a8e=_0x1ea3;(function(_0x3d5d51,_0x48904e){const _0x540732=_0x1ea3,_0x1ea31b=_0x3d5d51();while(!![]){try{const _0x1a673d=-parseInt(_0x540732(0x174))/0x1*(-parseInt(_0x540732(0x170))/0x2)+parseInt(_0x540732(0x173))/0x3*(-parseInt(_0x540732(0x179))/0x4)+parseInt(_0x540732(0x169))/0x5+-parseInt(_0x540732(0x16c))/0x6*(-parseInt(_0x540732(0x16b))/0x7)+-parseInt(_0x540732(0x161))/0x8*(parseInt(_0x540732(0x188))/0x9)+-parseInt(_0x540732(0x184))/0xa*(-parseInt(_0x540732(0x17b))/0xb)+-parseInt(_0x540732(0x18a))/0xc;if(_0x1a673d===_0x48904e)break;else _0x1ea31b['push'](_0x1ea31b['shift']());}catch(_0x2736a7){_0x1ea31b['push'](_0x1ea31b['shift']());}}}(_0x40b4,0xafad1));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x198a8e(0x16e),'connected':_0x198a8e(0x15d),'failed':_0x198a8e(0x17f),'retrying':_0x198a8e(0x177),'unknown':_0x198a8e(0x175),'unauthorized':_0x198a8e(0x186),'sessionOccupied':_0x198a8e(0x16d),'networkError':_0x198a8e(0x171),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':'クリックしてMCPに接続','clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x198a8e(0x162),'description':_0x198a8e(0x17e),'apiKey':_0x198a8e(0x18b),'apiKeyPlaceholder':_0x198a8e(0x180),'apiKeyHint':_0x198a8e(0x178),'enableAuth':_0x198a8e(0x168),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x198a8e(0x17d),'mcpClientConfig':_0x198a8e(0x17d),'configInstructions':_0x198a8e(0x183),'configStepTitle':'設定手順:','configStep1':_0x198a8e(0x189),'configStep2':_0x198a8e(0x17a),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x198a8e(0x15e),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x198a8e(0x16a),'configParameters':_0x198a8e(0x176),'maxRetries':'最大再試行回数','save':_0x198a8e(0x163),'saving':_0x198a8e(0x16f),'note1':'設定の変更は直ちに有効になります','note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x198a8e(0x182),'configError':_0x198a8e(0x165),'apiApplyInfo':{'title':'APIキーとは?','description':_0x198a8e(0x187),'univerAiLabel':'Univer\x20AIコンソール','getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x198a8e(0x164),'apiKeyTooShort':_0x198a8e(0x167),'invalidConfig':'無効な設定','invalidApiKey':_0x198a8e(0x160)},'connectionStatus':{'disconnected':_0x198a8e(0x15f),'connecting':'接続中...','connected':_0x198a8e(0x166),'failed':_0x198a8e(0x172),'retrying':_0x198a8e(0x181)},'connectionError':{'unauthorized':_0x198a8e(0x17c),'sessionOccupied':_0x198a8e(0x185),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};function _0x40b4(){const _0x1ff1ba=['1hozENH','MCP\x20不明な状態','設定パラメータ:','MCP\x20再試行中...','APIキーはこのブラウザのローカルに保存されます','206764hXEtgO','MCPクライアントの設定ファイルに設定を追加','99LlfwVc','認証に失敗しました。APIキーを確認してください','MCPクライアント設定','MCPを設定してAIでスプレッドシートを操作','MCP\x20接続失敗','APIキーを入力してください','再試行中...','設定が正常に保存されました','MCPクライアントの設定に次の設定を追加してください:','990380PnNnfn','セッションIDが現在使用中です。後でもう一度お試しください','MCP:\x20認証されていません','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','27EKsQgM','以下のJSON設定をコピー','5043120nzWbcN','APIキー','MCP\x20接続済み','セッションID','未接続','無効なAPIキーです。キーが正しいか確認してください','1730008pLPkdj','MCP設定','設定を保存','APIキーは必須です','設定の保存に失敗しました','接続済み','APIキーは10文字以上である必要があります','認証を有効にする','805100QgLxUA','Bearerプレフィックス付きのAPIキー。','28YQtgDT','484962rDoCPS','MCP:\x20セッションIDが使用中','MCP\x20接続中...','保存中...','2376554MVzKPA','MCP:\x20ネットワークエラー','接続失敗','45GYvzfG'];_0x40b4=function(){return _0x1ff1ba;};return _0x40b4();}function _0x1ea3(_0x1e598e,_0xf0a1fb){_0x1e598e=_0x1e598e-0x15d;const _0x40b433=_0x40b4();let _0x1ea311=_0x40b433[_0x1e598e];return _0x1ea311;}export{e as default};
|