@univerjs-pro/mcp-ui 0.15.2-insiders.20260122-b1556b1 → 0.15.2-insiders.20260124-12fc7f0
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 +6 -6
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5ec4ee=_0x2e68;(function(_0x4994e3,_0x42ceda){const _0x294453=_0x2e68,_0x38b4d5=_0x4994e3();while(!![]){try{const _0xf25bf4=-parseInt(_0x294453(0x271))/0x1+-parseInt(_0x294453(0x2b7))/0x2*(-parseInt(_0x294453(0x2c6))/0x3)+parseInt(_0x294453(0x208))/0x4+-parseInt(_0x294453(0x1b7))/0x5+-parseInt(_0x294453(0x238))/0x6*(-parseInt(_0x294453(0x1bd))/0x7)+parseInt(_0x294453(0x249))/0x8*(parseInt(_0x294453(0x294))/0x9)+-parseInt(_0x294453(0x20a))/0xa;if(_0xf25bf4===_0x42ceda)break;else _0x38b4d5['push'](_0x38b4d5['shift']());}catch(_0x373dac){_0x38b4d5['push'](_0x38b4d5['shift']());}}}(_0x2bf6,0xd786e));var Pe=Object['defineProperty'],Ee=(_0xdad545,_0x43af65,_0x78e2df)=>_0x43af65 in _0xdad545?Pe(_0xdad545,_0x43af65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x78e2df}):_0xdad545[_0x43af65]=_0x78e2df,x=(_0x16cd9a,_0x16f34b,_0x55660c)=>Ee(_0x16cd9a,typeof _0x16f34b!='symbol'?_0x16f34b+'':_0x16f34b,_0x55660c);import{LocaleService as _0x4eb6bc,Inject as _0xf0d1df,Injector as _0x212aa2,IConfigService as _0x1784e7,ILocalStorageService as _0x1d36ed,ILogService as _0x47214e,Disposable as _0x101057,CommandType as _0x39da2a,ICommandService as _0x28695c,DependentOn as _0xa8ea9b,Plugin as _0x5071e1,merge as _0x4e4b64}from'@univerjs/core';import{jsxs as _0x5f529d,jsx as _0x44f7f0}from'react/jsx-runtime';import{MCPConnectionStatus as _0x7b3927,MCPConnectionError as _0x545a65,MCPConnectionController as _0x4ee547,MCP_PLUGIN_CONFIG_KEY as _0x37bfd7,UniverMCPPlugin as _0x56711f}from'@univerjs-pro/mcp';import{clsx as _0x3d3441,Input as _0x7e027f,Button as _0x2ffbf6,MessageType as _0x4d7fe7,Tooltip as _0x541d3e}from'@univerjs/design';import{useDependency as _0x25f537,useObservable as _0x247ff5,IUIPartsService as _0x99b350,IDialogService as _0x382679,IMessageService as _0x50b4de,ComponentManager as _0x3626a3,connectInjector as _0x25d47b,BuiltInUIPart as _0x33e4e4,MenuItemType as _0x2c0545,RibbonStartGroup as _0x3d8145,IMenuManagerService as _0x3ab4bb}from'@univerjs/ui';import{BehaviorSubject as _0x267383}from'rxjs';import{useRef as _0x256568,createElement as _0xdbd60f,forwardRef as _0x4a9d14,useState as _0x157135,useCallback as _0x5dca21}from'react';import{ISocketService as _0x16030e,WebSocketService as _0x595390}from'@univerjs/network';function b({ref:_0x32beef,..._0x23b662}){const {icon:_0x102f8c,id:_0x4575ab,className:_0x1343bd,extend:_0x335c1d,..._0x2dc575}=_0x23b662,_0x51d367=('univerjs-icon\x20univerjs-icon-'+_0x4575ab+'\x20'+(_0x1343bd||''))['trim'](),_0x5e28af=_0x256568('_'+We());return ae(_0x102f8c,''+_0x4575ab,{'defIds':_0x102f8c['defIds'],'idSuffix':_0x5e28af['current']},{'ref':_0x32beef,'className':_0x51d367,..._0x2dc575},_0x335c1d);}function ae(_0x1fd50d,_0x3a732d,_0x16d58d,_0x3a1af4,_0x114c10){const _0x4e9bc6=_0x2e68;return _0xdbd60f(_0x1fd50d[_0x4e9bc6(0x219)],{'key':_0x3a732d,...Ye(_0x1fd50d,_0x16d58d,_0x114c10),..._0x3a1af4},(Ze(_0x1fd50d,_0x16d58d)[_0x4e9bc6(0x197)]||[])[_0x4e9bc6(0x248)]((_0x282c2e,_0x370f22)=>ae(_0x282c2e,_0x3a732d+'-'+_0x1fd50d[_0x4e9bc6(0x219)]+'-'+_0x370f22,_0x16d58d,void 0x0,_0x114c10)));}function Ye(_0x1bfc04,_0x2c4d77,_0x4ac75c){const _0x2e06a9=_0x2e68,_0x543ba8={..._0x1bfc04[_0x2e06a9(0x1aa)]};_0x4ac75c!=null&&_0x4ac75c[_0x2e06a9(0x225)]&&_0x543ba8[_0x2e06a9(0x1ac)]===_0x2e06a9(0x225)&&(_0x543ba8[_0x2e06a9(0x1ac)]=_0x4ac75c[_0x2e06a9(0x225)]),_0x1bfc04[_0x2e06a9(0x219)]===_0x2e06a9(0x254)&&_0x543ba8['id']&&(_0x543ba8['id']=_0x543ba8['id']+_0x2c4d77['idSuffix']),Object['entries'](_0x543ba8)['forEach'](([_0x1804c8,_0x16e742])=>{const _0x58e2e2=_0x2e06a9;_0x1804c8===_0x58e2e2(0x254)&&typeof _0x16e742=='string'&&(_0x543ba8[_0x1804c8]=_0x16e742[_0x58e2e2(0x2d0)](/url\(#(.*)\)/,_0x58e2e2(0x2c1)+_0x2c4d77['idSuffix']+')'));});const {defIds:_0x902dd3}=_0x2c4d77;return!_0x902dd3||_0x902dd3[_0x2e06a9(0x287)]===0x0||(_0x1bfc04['tag']===_0x2e06a9(0x240)&&_0x543ba8[_0x2e06a9(0x194)]&&(_0x543ba8[_0x2e06a9(0x194)]=_0x543ba8[_0x2e06a9(0x194)]+_0x2c4d77['idSuffix']),Object['entries'](_0x543ba8)[_0x2e06a9(0x1fe)](([_0x4d2ccd,_0x5a1cb6])=>{const _0x1e9a79=_0x2e06a9;typeof _0x5a1cb6=='string'&&(_0x543ba8[_0x4d2ccd]=_0x5a1cb6[_0x1e9a79(0x2d0)](/url\(#(.*)\)/,_0x1e9a79(0x2c1)+_0x2c4d77['idSuffix']+')'));})),_0x543ba8;}function Ze(_0x3d2a29,_0x19eca9){const _0x2da1c6=_0x2e68;var _0x408913;const {defIds:_0x11b80a}=_0x19eca9;return!_0x11b80a||_0x11b80a['length']===0x0?_0x3d2a29:_0x3d2a29[_0x2da1c6(0x219)]===_0x2da1c6(0x28b)&&((_0x408913=_0x3d2a29[_0x2da1c6(0x197)])!=null&&_0x408913[_0x2da1c6(0x287)])?{..._0x3d2a29,'children':_0x3d2a29[_0x2da1c6(0x197)][_0x2da1c6(0x248)](_0x1c6e19=>typeof _0x1c6e19[_0x2da1c6(0x1aa)]['id']==_0x2da1c6(0x224)&&_0x11b80a&&_0x11b80a[_0x2da1c6(0x1b4)](_0x1c6e19['attrs']['id'])?{..._0x1c6e19,'attrs':{..._0x1c6e19[_0x2da1c6(0x1aa)],'id':_0x1c6e19['attrs']['id']+_0x19eca9[_0x2da1c6(0x1a9)]}}:_0x1c6e19)}:_0x3d2a29;}function We(){const _0x3288f7=_0x2e68;return Math[_0x3288f7(0x1a4)]()[_0x3288f7(0x2b2)](0x24)['substring'](0x2,0x8);}b[_0x5ec4ee(0x222)]=_0x5ec4ee(0x246);const qe={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':_0x5ec4ee(0x268),'fill':'none','viewBox':_0x5ec4ee(0x1f7),'width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':'path','attrs':{'fill':_0x5ec4ee(0x2c2),'d':_0x5ec4ee(0x2b1),'fillRule':_0x5ec4ee(0x26f),'clipRule':_0x5ec4ee(0x26f)}}]},le=_0x4a9d14(function(_0x5491f1,_0x7f43cf){const _0x2a1824=_0x5ec4ee;return _0xdbd60f(b,Object[_0x2a1824(0x297)]({},_0x5491f1,{'id':'check-mark-icon','ref':_0x7f43cf,'icon':qe}));});le[_0x5ec4ee(0x222)]=_0x5ec4ee(0x193);const Xe={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':_0x5ec4ee(0x268),'fill':_0x5ec4ee(0x2a4),'viewBox':'0\x200\x2016\x2016','width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'fill':'currentColor','d':_0x5ec4ee(0x288)}}]},ue=_0x4a9d14(function(_0x41cdce,_0x219f18){const _0x24e3b5=_0x5ec4ee;return _0xdbd60f(b,Object[_0x24e3b5(0x297)]({},_0x41cdce,{'id':'close-icon','ref':_0x219f18,'icon':Xe}));});ue[_0x5ec4ee(0x222)]='CloseIcon';const Je={'tag':'svg','attrs':{'xmlns':_0x5ec4ee(0x268),'fill':_0x5ec4ee(0x2a4),'viewBox':_0x5ec4ee(0x1f7),'width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'fill':'currentColor','d':_0x5ec4ee(0x2b8)}},{'tag':'path','attrs':{'fill':_0x5ec4ee(0x2c2),'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':_0x5ec4ee(0x2c5),'attrs':{'fill':_0x5ec4ee(0x2c2),'d':_0x5ec4ee(0x18e),'fillRule':_0x5ec4ee(0x26f),'clipRule':_0x5ec4ee(0x26f)}}]},ve=_0x4a9d14(function(_0xe42c03,_0x5ed132){const _0xe80b57=_0x5ec4ee;return _0xdbd60f(b,Object[_0xe80b57(0x297)]({},_0xe42c03,{'id':_0xe80b57(0x1d1),'ref':_0x5ed132,'icon':Je}));});ve['displayName']=_0x5ec4ee(0x19b);const Qe={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5ec4ee(0x2a4),'viewBox':_0x5ec4ee(0x1f7),'width':_0x5ec4ee(0x24b),'height':_0x5ec4ee(0x24b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'stroke':'currentColor','d':_0x5ec4ee(0x26b),'strokeLinecap':_0x5ec4ee(0x21f),'strokeLinejoin':_0x5ec4ee(0x21f),'strokeWidth':1.2}}]},{'tag':_0x5ec4ee(0x28b),'attrs':{},'children':[{'tag':_0x5ec4ee(0x260),'attrs':{'id':_0x5ec4ee(0x1a5)},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'fill':_0x5ec4ee(0x2a9),'d':_0x5ec4ee(0x24c)}}]}]}],'defIds':[_0x5ec4ee(0x1a5)]},de=_0x4a9d14(function(_0x27ac71,_0x203665){const _0xa16e8d=_0x5ec4ee;return _0xdbd60f(b,Object[_0xa16e8d(0x297)]({},_0x27ac71,{'id':_0xa16e8d(0x1f1),'ref':_0x203665,'icon':Qe}));});de[_0x5ec4ee(0x222)]=_0x5ec4ee(0x2ac);const en={'tag':_0x5ec4ee(0x2c3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5ec4ee(0x25a),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x5ec4ee(0x2c5),'attrs':{'stroke':_0x5ec4ee(0x2c2),'d':_0x5ec4ee(0x1d2),'strokeLinecap':'round','strokeLinejoin':_0x5ec4ee(0x21f),'strokeWidth':1.2}}]},{'tag':_0x5ec4ee(0x28b),'attrs':{},'children':[{'tag':_0x5ec4ee(0x260),'attrs':{'id':_0x5ec4ee(0x28c)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x5ec4ee(0x28c)]},ge=_0x4a9d14(function(_0x161e9a,_0x1849f8){const _0x21dda5=_0x5ec4ee;return _0xdbd60f(b,Object[_0x21dda5(0x297)]({},_0x161e9a,{'id':_0x21dda5(0x1e8),'ref':_0x1849f8,'icon':en}));});ge[_0x5ec4ee(0x222)]=_0x5ec4ee(0x21b);function nn(_0x26a9cd){const _0x2e66e8=_0x5ec4ee;var _0x4ace09,_0x424b18;const {mcpCoreConfig:_0x446ce9,onSave:_0x1daf8e,loading:_0x5a46a8=!0x1,config:_0x455a03,connectionStatus$:_0x5538ef,connectionError$:_0xe1441c,currentApiKey$:_0x3f50e0,currentSessionId$:_0x54596c}=_0x26a9cd,_0x375efb=_0x25f537(_0x4eb6bc),_0x435e61=_0x247ff5(_0x5538ef,_0x7b3927[_0x2e66e8(0x293)]),_0x399fe3=_0x247ff5(_0xe1441c,_0x545a65['NONE']),_0x3e46c6=_0x247ff5(_0x54596c,''),_0x459f30=_0x247ff5(_0x3f50e0,''),[_0x2cd8c3,_0x65c98f]=_0x157135(_0x459f30||''),_0x410fcb=!0x0,_0x190e85=_0x455a03['showDeveloperTools']&&_0x446ce9[_0x2e66e8(0x1b2)]&&(_0x446ce9[_0x2e66e8(0x1b2)][_0x2e66e8(0x1b4)](_0x2e66e8(0x241))||_0x446ce9[_0x2e66e8(0x1b2)][_0x2e66e8(0x1b4)](_0x2e66e8(0x1d3))),_0x44ed9a=(_0x4ace09=_0x446ce9['mcpServerUrl'])==null?void 0x0:_0x4ace09['includes'](_0x2e66e8(0x241)),_0x5735c7=(_0x424b18=_0x446ce9[_0x2e66e8(0x1b2)])==null?void 0x0:_0x424b18[_0x2e66e8(0x1b4)](_0x2e66e8(0x1d3)),_0x296a47=_0x44ed9a?_0x2e66e8(0x2d3):'https://console.univer.ai',_0x5e638d=_0x455a03['showDeveloperTools']&&(_0x44ed9a||_0x5735c7),[_0x17db14,_0x5f067f]=_0x157135(!_0x2cd8c3[_0x2e66e8(0x1fd)]()),_0x5d1986=(_0x45683a,_0x264082)=>{const _0x16bd04=_0x2e66e8;if(_0x264082===_0x545a65[_0x16bd04(0x19c)])return _0x16bd04(0x1e9);switch(_0x45683a){case _0x7b3927[_0x16bd04(0x1e3)]:return _0x16bd04(0x272);case _0x7b3927[_0x16bd04(0x27e)]:case _0x7b3927[_0x16bd04(0x236)]:return _0x16bd04(0x1d5);case _0x7b3927[_0x16bd04(0x1c8)]:return _0x16bd04(0x1e9);default:return _0x16bd04(0x285);}},_0x54c3e7=(_0x441b4a,_0xe13e0f)=>{const _0x1d5da3=_0x2e66e8;if(_0xe13e0f===_0x545a65[_0x1d5da3(0x19c)])return _0x1d5da3(0x284);switch(_0x441b4a){case _0x7b3927[_0x1d5da3(0x1e3)]:return'univer-bg-green-500';case _0x7b3927[_0x1d5da3(0x27e)]:case _0x7b3927[_0x1d5da3(0x236)]:return'univer-bg-blue-500';case _0x7b3927[_0x1d5da3(0x1c8)]:return _0x1d5da3(0x284);default:return'univer-bg-gray-500';}},_0x2b8040=_0x30605c=>{const _0x5c6bdd=_0x2e66e8;switch(_0x30605c){case _0x7b3927[_0x5c6bdd(0x1e3)]:return _0x375efb['t'](_0x5c6bdd(0x2ca));case _0x7b3927[_0x5c6bdd(0x27e)]:return _0x375efb['t'](_0x5c6bdd(0x286));case _0x7b3927[_0x5c6bdd(0x1c8)]:return _0x375efb['t'](_0x5c6bdd(0x216));case _0x7b3927[_0x5c6bdd(0x236)]:return _0x375efb['t'](_0x5c6bdd(0x1b0));default:return _0x375efb['t'](_0x5c6bdd(0x23a));}},_0x32634f=_0x2c8052=>{const _0x1e5506=_0x2e66e8;switch(_0x2c8052){case _0x545a65['UNAUTHORIZED']:return _0x375efb['t'](_0x1e5506(0x25b));case _0x545a65['SESSION_ID_OCCUPIED']:return _0x375efb['t'](_0x1e5506(0x21a));case _0x545a65[_0x1e5506(0x18c)]:return _0x375efb['t'](_0x1e5506(0x296));case _0x545a65[_0x1e5506(0x29d)]:return _0x375efb['t'](_0x1e5506(0x299));default:return'';}},_0xb87ac6=_0x5dca21(()=>{const _0x1b4cd5={..._0x446ce9,'apiKey':_0x2cd8c3['trim'](),'enableAuth':_0x410fcb};_0x1daf8e(_0x1b4cd5);},[_0x446ce9,_0x2cd8c3,_0x410fcb,_0x1daf8e]),_0x409478=_0x2cd8c3['trim']()[_0x2e66e8(0x287)]>0x0;return _0x5f529d('div',{'className':_0x2e66e8(0x290),'children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1e5),'children':_0x5f529d('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x239),'children':_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x1e4),'children':'⚙'})}),_0x44f7f0('div',{'children':_0x44f7f0('p',{'className':_0x2e66e8(0x1dc),'children':_0x375efb['t'](_0x2e66e8(0x291))})})]})}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1ba),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x3d3441('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x5d1986(_0x435e61,_0x399fe3)),'children':_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x3d3441(_0x2e66e8(0x252),_0x54c3e7(_0x435e61,_0x399fe3))}),_0x44f7f0('span',{'className':'univer-text-sm\x20univer-font-medium','children':_0x2b8040(_0x435e61)})]})}),_0x399fe3!==_0x545a65['NONE']&&(_0x435e61===_0x7b3927[_0x2e66e8(0x1c8)]||_0x399fe3===_0x545a65[_0x2e66e8(0x19c)])&&_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2a5),'children':_0x5f529d('div',{'className':_0x2e66e8(0x23c),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x25d),'children':'⚠️'}),_0x44f7f0('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x32634f(_0x399fe3)})]})})]}),_0x44f7f0('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1cb),'children':[_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x220),'children':[_0x5f529d('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x44f7f0(_0x2e66e8(0x20e),{'children':'🔑'}),'\x20',_0x375efb['t'](_0x2e66e8(0x27d)),_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x1c1),'children':'*'}),_0x190e85&&_0x44f7f0('a',{'className':_0x2e66e8(0x1bb),'title':_0x375efb['t'](_0x2e66e8(0x19d)),'role':_0x2e66e8(0x231),'onClick':()=>_0x5f067f(!0x0),'children':_0x44f7f0(ve,{})})]}),_0x44f7f0(_0x7e027f,{'type':'text','placeholder':_0x375efb['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x2cd8c3,'disabled':_0x5a46a8,'autoComplete':_0x2e66e8(0x1e7),'onChange':_0x65c98f}),_0x44f7f0('p',{'className':_0x2e66e8(0x1fc),'children':_0x375efb['t']('mcpConfig.apiKeyHint')})]}),_0x190e85&&_0x17db14&&_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2a8),'children':[_0x44f7f0('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':_0x2e66e8(0x231),'onClick':()=>_0x5f067f(!0x1),'children':_0x44f7f0(ue,{'className':'univer-size-4'})}),_0x5f529d('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x29e),'children':'🚀'})}),_0x5f529d('div',{'className':'univer-flex-1','children':[_0x44f7f0('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x375efb['t'](_0x2e66e8(0x19d))}),_0x44f7f0('p',{'className':_0x2e66e8(0x1e6),'children':_0x375efb['t']('mcpConfig.apiApplyInfo.description')}),_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x20b),'children':_0x5e638d&&_0x5f529d('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':_0x296a47,'target':'_blank','rel':_0x2e66e8(0x18f),'children':[_0x44f7f0('span',{'children':'🤖'}),_0x375efb['t'](_0x2e66e8(0x26c)),_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x233),'children':'↗'})]})}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x22b),'children':['✨','\x20',_0x375efb['t'](_0x2e66e8(0x2b6))]})]})]})]}),_0x455a03[_0x2e66e8(0x265)]&&_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1ed),'children':[_0x5f529d('h4',{'className':_0x2e66e8(0x2ab),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'children':'🔗'}),'\x20',_0x375efb['t'](_0x2e66e8(0x1be))]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2c7),'children':[_0x5f529d('div',{'className':_0x2e66e8(0x2bd),'children':[_0x44f7f0('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x375efb['t'](_0x2e66e8(0x1a3))}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-2','children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1c4),'children':_0x375efb['t'](_0x2e66e8(0x22f))}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x5f529d('div',{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2a0),'children':'1'}),_0x375efb['t'](_0x2e66e8(0x1ea))]}),_0x5f529d('div',{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2a0),'children':'2'}),_0x375efb['t'](_0x2e66e8(0x201))]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2a0),'children':'3'}),_0x375efb['t'](_0x2e66e8(0x2ba))]})]})]})]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x220),'children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1c4),'children':_0x2e66e8(0x28f)}),_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1f9),'children':_0x44f7f0(_0x2e66e8(0x2d5),{'className':_0x2e66e8(0x276),'children':JSON[_0x2e66e8(0x227)]({'mcpServers':{'univer':{'url':_0x2e66e8(0x29a)+(_0x3e46c6||_0x2e66e8(0x1f3)),'type':'http','headers':{'Authorization':_0x2e66e8(0x250)+(_0x2cd8c3||_0x2e66e8(0x1c7))}}}},null,0x2)})})]}),_0x5f529d('div',{'className':_0x2e66e8(0x2bd),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1c4),'children':_0x375efb['t'](_0x2e66e8(0x25c))}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-2','children':[_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x44f7f0('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x206),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x2b9),'children':'univer_session_id:'}),_0x44f7f0('div',{'className':_0x2e66e8(0x1fc),'children':_0x375efb['t'](_0x2e66e8(0x1eb))})]})]}),_0x5f529d(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x26a),'children':[_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x1c3)}),_0x5f529d('div',{'className':_0x2e66e8(0x206),'children':[_0x44f7f0('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2e66e8(0x256)}),_0x44f7f0('div',{'className':_0x2e66e8(0x1fc),'children':_0x375efb['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x44f7f0(_0x2ffbf6,{'onClick':_0xb87ac6,'disabled':!_0x409478||_0x5a46a8,'className':_0x2e66e8(0x2b5),'children':_0x5a46a8?_0x5f529d(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(_0x2e66e8(0x20e),{'children':'⟲'}),_0x375efb['t']('mcpConfig.saving')]}):_0x5f529d(_0x2e66e8(0x20e),{'className':_0x2e66e8(0x2cf),'children':[_0x44f7f0(le,{}),_0x375efb['t'](_0x2e66e8(0x190))]})}),_0x44f7f0(_0x2e66e8(0x22a),{'className':_0x2e66e8(0x29f),'children':_0x5f529d('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x44f7f0('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x5f529d(_0x2e66e8(0x22a),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x44f7f0('div',{'className':_0x2e66e8(0x1ae),'children':_0x2e66e8(0x274)}),_0x5f529d(_0x2e66e8(0x22a),{'children':['•',_0x375efb['t'](_0x2e66e8(0x283))]}),_0x5f529d(_0x2e66e8(0x22a),{'children':['•',_0x375efb['t'](_0x2e66e8(0x19a))]})]})]})})]})})]});}const y=_0x5ec4ee(0x2c0),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5ec4ee(0x255)],tn=(_0x4caf41,_0x5234be,_0x543923,_0x1b930b)=>{const _0x128f5c=_0x5ec4ee;for(var _0x4edd93=_0x1b930b>0x1?void 0x0:_0x1b930b?rn(_0x5234be,_0x543923):_0x5234be,_0x39103c=_0x4caf41[_0x128f5c(0x287)]-0x1,_0x4cc15c;_0x39103c>=0x0;_0x39103c--)(_0x4cc15c=_0x4caf41[_0x39103c])&&(_0x4edd93=_0x4cc15c(_0x4edd93)||_0x4edd93);return _0x4edd93;},d=(_0xb3da1a,_0x3ea6cf)=>(_0x781eb9,_0x1ed0a2)=>_0x3ea6cf(_0x781eb9,_0x1ed0a2,_0xb3da1a);const U=_0x5ec4ee(0x27a),L=_0x5ec4ee(0x1b9);function _0x2e68(_0x26084f,_0x5a9f75){_0x26084f=_0x26084f-0x18c;const _0x2bf6a2=_0x2bf6();let _0x2e683e=_0x2bf6a2[_0x26084f];return _0x2e683e;}let I=class extends _0x101057{constructor(_0x5f5401,_0x1e7c40,_0x2f023d,_0x40e6e8,_0x463f71,_0x3ad553,_0x4cb963,_0x1fb02b,_0x16107d,_0x5f00b3){const _0x26323b=_0x5ec4ee;super(),x(this,_0x26323b(0x200),new _0x267383(!0x1)),x(this,'_mcpCoreConfig$',new _0x267383({})),x(this,_0x26323b(0x1ec),new _0x267383({})),x(this,_0x26323b(0x232),new _0x267383('')),x(this,_0x26323b(0x27f),async _0x2974d0=>{const _0x3dd688=_0x26323b;var _0x83c2e1,_0xb5f67c;this[_0x3dd688(0x200)][_0x3dd688(0x1e0)](!0x0);try{const _0x518ff3=await this[_0x3dd688(0x24e)](_0x2974d0);if(!_0x518ff3[_0x3dd688(0x1c9)]){this[_0x3dd688(0x2a6)][_0x3dd688(0x2be)]({'type':_0x4d7fe7[_0x3dd688(0x282)],'content':_0x518ff3['errorMessage']||this[_0x3dd688(0x270)]['t'](_0x3dd688(0x2a7))});return;}_0x2974d0['apiKey']?await this['_localStorageService'][_0x3dd688(0x2c4)](U,_0x2974d0['apiKey']['trim']()):await this['_localStorageService']['removeItem'](U),this[_0x3dd688(0x232)][_0x3dd688(0x1e0)](((_0x83c2e1=_0x2974d0[_0x3dd688(0x234)])==null?void 0x0:_0x83c2e1[_0x3dd688(0x1fd)]())||''),this[_0x3dd688(0x1c5)][_0x3dd688(0x1f6)]({'Authorization':_0x3dd688(0x250)+((_0xb5f67c=_0x2974d0[_0x3dd688(0x234)])==null?void 0x0:_0xb5f67c[_0x3dd688(0x1fd)]())}),this['_messageService'][_0x3dd688(0x2be)]({'type':_0x4d7fe7['Success'],'content':this[_0x3dd688(0x270)]['t'](_0x3dd688(0x262))}),setTimeout(()=>{const _0x19af68=_0x3dd688;this['_dialogService'][_0x19af68(0x213)](L);},0x320);}catch(_0x2bb5cf){this['_logService'][_0x3dd688(0x235)](_0x3dd688(0x1c2),_0x2bb5cf),this['_messageService'][_0x3dd688(0x2be)]({'type':_0x4d7fe7[_0x3dd688(0x282)],'content':this['_localeService']['t'](_0x3dd688(0x1d0))});}finally{this[_0x3dd688(0x200)][_0x3dd688(0x1e0)](!0x1);}}),(this[_0x26323b(0x223)]=_0x5f5401,this['_uiPartsService']=_0x1e7c40,this['_configService']=_0x2f023d,this[_0x26323b(0x229)]=_0x40e6e8,this[_0x26323b(0x211)]=_0x463f71,this['_messageService']=_0x3ad553,this[_0x26323b(0x253)]=_0x4cb963,this['_localeService']=_0x1fb02b,this[_0x26323b(0x1db)]=_0x16107d,this[_0x26323b(0x1c5)]=_0x5f00b3,this[_0x26323b(0x21d)](),this[_0x26323b(0x1c6)](),this[_0x26323b(0x24d)]());}[_0x5ec4ee(0x1da)](){const _0x3deea1=_0x5ec4ee,_0x2d76a5=this[_0x3deea1(0x199)]['getConfig'](y);_0x2d76a5!=null&&_0x2d76a5[_0x3deea1(0x265)]&&this['_dialogService'][_0x3deea1(0x2d6)]({'id':L,'title':{'title':this['_localeService']['t'](_0x3deea1(0x23f))},'children':{'label':_0x3deea1(0x26d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x387ccf=_0x3deea1;this[_0x387ccf(0x211)]['close'](L);}});}[_0x5ec4ee(0x1d6)](){const _0x72cde6=_0x5ec4ee;return this[_0x72cde6(0x26e)][_0x72cde6(0x1a0)];}[_0x5ec4ee(0x24d)](){const _0x332ce3=_0x5ec4ee;this[_0x332ce3(0x1b8)](this[_0x332ce3(0x253)][_0x332ce3(0x2d4)](_0x332ce3(0x26d),this[_0x332ce3(0x269)]()));}['_createConfigPanelComponent'](){const _0x2ccd26=_0x5ec4ee;return _0x25d47b(()=>{const _0x44a8b3=_0x2e68;var _0x356fca,_0x3cabed,_0x58b47f;return _0x44f7f0(nn,{'config':this[_0x44a8b3(0x1ec)][_0x44a8b3(0x1a0)],'mcpCoreConfig':this[_0x44a8b3(0x26e)]['value'],'currentApiKey$':this[_0x44a8b3(0x232)],'onSave':this['_handleConfigSave'],'loading':this[_0x44a8b3(0x200)][_0x44a8b3(0x1a0)],'connectionStatus$':(_0x356fca=this['_mcpConnectionController'])==null?void 0x0:_0x356fca[_0x44a8b3(0x1ce)],'connectionError$':(_0x3cabed=this[_0x44a8b3(0x1c5)])==null?void 0x0:_0x3cabed[_0x44a8b3(0x25f)],'currentSessionId$':(_0x58b47f=this[_0x44a8b3(0x1c5)])==null?void 0x0:_0x58b47f[_0x44a8b3(0x1a7)]});},this[_0x2ccd26(0x223)]);}['_initConfigSync'](){const _0x55e7fa=_0x5ec4ee;this['disposeWithMe'](this[_0x55e7fa(0x199)][_0x55e7fa(0x18d)](_0x37bfd7)[_0x55e7fa(0x1ff)](_0x47a4a4=>{this['_mcpCoreConfig$']['next'](_0x47a4a4||{});}));const _0x249523=this['_configService']['getConfig'](_0x37bfd7);this[_0x55e7fa(0x26e)][_0x55e7fa(0x1e0)](_0x249523||{}),this[_0x55e7fa(0x1b8)](this[_0x55e7fa(0x199)][_0x55e7fa(0x18d)](y)['subscribe'](_0x2c231b=>{const _0x771b7e=_0x55e7fa;this[_0x771b7e(0x1ec)][_0x771b7e(0x1e0)](_0x2c231b||{});}));const _0x34c71f=this[_0x55e7fa(0x199)][_0x55e7fa(0x191)](y);this[_0x55e7fa(0x1ec)][_0x55e7fa(0x1e0)](_0x34c71f||{});}async[_0x5ec4ee(0x1c6)](){const _0x26542e=_0x5ec4ee,_0x44d307=this[_0x26542e(0x199)][_0x26542e(0x191)](y);if(!(_0x44d307!=null&&_0x44d307[_0x26542e(0x265)]))return;const _0x4f995f=await this[_0x26542e(0x229)][_0x26542e(0x289)](U);_0x4f995f&&(this[_0x26542e(0x1c5)][_0x26542e(0x1f6)]({'Authorization':_0x26542e(0x250)+_0x4f995f}),this[_0x26542e(0x232)][_0x26542e(0x1e0)](_0x4f995f));}async[_0x5ec4ee(0x24e)](_0x44f599){const _0x45be62=_0x5ec4ee;if(!_0x44f599[_0x45be62(0x234)]||_0x44f599[_0x45be62(0x234)][_0x45be62(0x1fd)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x45be62(0x270)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x44f599[_0x45be62(0x234)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x45be62(0x270)]['t'](_0x45be62(0x1d8))};try{const _0x242447=await this[_0x45be62(0x223)]['get'](_0x4ee547)[_0x45be62(0x263)](_0x44f599[_0x45be62(0x234)][_0x45be62(0x1fd)]());return _0x242447[_0x45be62(0x1c9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x242447[_0x45be62(0x235)]||this[_0x45be62(0x270)]['t'](_0x45be62(0x1ab))};}catch(_0xb58be2){return console[_0x45be62(0x25e)](_0x45be62(0x1ad),_0xb58be2),{'isValid':!0x0};}}};I=tn([d(0x0,_0xf0d1df(_0x212aa2)),d(0x1,_0x99b350),d(0x2,_0x1784e7),d(0x3,_0x1d36ed),d(0x4,_0x382679),d(0x5,_0x50b4de),d(0x6,_0xf0d1df(_0x3626a3)),d(0x7,_0xf0d1df(_0x4eb6bc)),d(0x8,_0x47214e),d(0x9,_0xf0d1df(_0x4ee547))],I);const V={'id':_0x5ec4ee(0x207),'type':_0x39da2a[_0x5ec4ee(0x1cf)],'handler':async(_0x5cc238,_0x514c9c)=>(_0x5cc238[_0x5ec4ee(0x1ee)](I)['showConfigPanel'](),!0x0)};function pe(_0x4dbe16,_0x105098){const _0x3883b3=_0x5ec4ee;switch(_0x4dbe16){case _0x7b3927[_0x3883b3(0x293)]:return'mcpStatus.disconnected';case _0x7b3927['CONNECTING']:return _0x3883b3(0x221);case _0x7b3927[_0x3883b3(0x1e3)]:return'mcpStatus.connected';case _0x7b3927[_0x3883b3(0x1c8)]:switch(_0x105098){case _0x545a65[_0x3883b3(0x19c)]:return _0x3883b3(0x202);case _0x545a65[_0x3883b3(0x2c9)]:return _0x3883b3(0x24a);case _0x545a65[_0x3883b3(0x18c)]:return _0x3883b3(0x247);case _0x545a65[_0x3883b3(0x29d)]:return _0x3883b3(0x226);default:return _0x3883b3(0x2a1);}case _0x7b3927['RETRYING']:return'mcpStatus.retrying';default:return _0x3883b3(0x1d4);}}function on(_0x4c6aa8,_0x42fcb9,_0x41ca1b,_0x164805=!0x0){const _0x159880=_0x5ec4ee,_0x47c882=pe(_0x4c6aa8,_0x42fcb9),_0x456dae=_0x41ca1b['t'](_0x47c882);return _0x164805?_0x4c6aa8===_0x7b3927['DISCONNECTED']&&_0x42fcb9===_0x545a65['UNAUTHORIZED']?_0x456dae+_0x159880(0x243)+_0x41ca1b['t'](_0x159880(0x267)):_0x4c6aa8===_0x7b3927[_0x159880(0x1e3)]?''+_0x456dae:_0x4c6aa8===_0x7b3927[_0x159880(0x293)]||_0x4c6aa8===_0x7b3927[_0x159880(0x1c8)]?_0x456dae+_0x159880(0x243)+_0x41ca1b['t'](_0x159880(0x2d2)):_0x456dae:_0x456dae;}function sn(_0x2dab45){const _0x2cb2fa=_0x5ec4ee;switch(_0x2dab45){case _0x7b3927[_0x2cb2fa(0x1e3)]:return'univer-text-green-500';case _0x7b3927[_0x2cb2fa(0x27e)]:case _0x7b3927[_0x2cb2fa(0x236)]:return'univer-text-yellow-500';case _0x7b3927[_0x2cb2fa(0x1c8)]:case _0x7b3927[_0x2cb2fa(0x293)]:return'univer-text-red-500';default:return _0x2cb2fa(0x214);}}function cn(_0x10ce45){const _0x157042=_0x5ec4ee,{status$:_0x143272,error$:_0x24c82b,onConfigure:_0x523c6b,showClickable:_0x45e44d=!0x0}=_0x10ce45,_0x5284f7=_0x247ff5(_0x143272,_0x7b3927[_0x157042(0x293)]),_0x58f5b0=_0x247ff5(_0x24c82b,_0x545a65['NONE']),_0x1da3e9=_0x25f537(_0x4eb6bc),_0x23cf9a=_0x5284f7===_0x7b3927[_0x157042(0x1e3)];_0x5284f7===_0x7b3927[_0x157042(0x27e)]||_0x7b3927[_0x157042(0x236)];const _0x3ef2be=_0x1da3e9['t'](pe(_0x5284f7,_0x58f5b0)),_0x2f2c29=on(_0x5284f7,_0x58f5b0,_0x1da3e9,_0x45e44d),_0x2f92d2=sn(_0x5284f7),_0xbbf7de=_0x23cf9a?_0x44f7f0(ge,{}):_0x44f7f0(de,{}),_0x5f30c7=_0x5dca21(()=>{_0x45e44d&&_0x523c6b&&_0x523c6b();},[_0x45e44d,_0x523c6b]);function _0x4a08fa(){const _0x111e4f=_0x157042;return _0x5f529d(_0x111e4f(0x22a),{'className':_0x3d3441(_0x111e4f(0x1d7),_0x45e44d&&_0x523c6b&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x111e4f(0x231),'onClick':_0x45e44d&&_0x523c6b?_0x5f30c7:void 0x0,'children':[_0x44f7f0(_0x111e4f(0x22a),{'className':_0x3d3441(_0x111e4f(0x2a3),_0x2f92d2),'children':_0xbbf7de}),_0x44f7f0(_0x111e4f(0x22a),{'className':_0x111e4f(0x2b3),'children':_0x3ef2be})]});}return _0x44f7f0(_0x541d3e,{'title':_0x2f2c29,'placement':_0x157042(0x259),'children':_0x4a08fa()});}var an=Object[_0x5ec4ee(0x255)],ln=(_0x1d4870,_0x273a51,_0x5d6d14,_0xdac83e)=>{const _0x552968=_0x5ec4ee;for(var _0x14197b=_0xdac83e>0x1?void 0x0:_0xdac83e?an(_0x273a51,_0x5d6d14):_0x273a51,_0x33c7cf=_0x1d4870[_0x552968(0x287)]-0x1,_0xbf0388;_0x33c7cf>=0x0;_0x33c7cf--)(_0xbf0388=_0x1d4870[_0x33c7cf])&&(_0x14197b=_0xbf0388(_0x14197b)||_0x14197b);return _0x14197b;},M=(_0x3b911e,_0x41398a)=>(_0x531bc6,_0x327333)=>_0x41398a(_0x531bc6,_0x327333,_0x3b911e);let O=class extends _0x101057{constructor(_0x3fdf58,_0x491df9,_0x4389a8,_0x194d82){const _0x40e39c=_0x5ec4ee;super(),this[_0x40e39c(0x223)]=_0x3fdf58,this[_0x40e39c(0x1fa)]=_0x491df9,this[_0x40e39c(0x279)]=_0x4389a8,this[_0x40e39c(0x199)]=_0x194d82,this[_0x40e39c(0x1d9)](),this[_0x40e39c(0x1f0)]();}['_initAutoConnect'](){const _0x23c950=_0x5ec4ee,_0x6372db=this['_configService'][_0x23c950(0x191)](y);_0x6372db!=null&&_0x6372db['showDeveloperTools']&&(this['_connectionController'][_0x23c950(0x273)]=!0x1);}[_0x5ec4ee(0x1f0)](){const _0x3e460a=_0x5ec4ee,_0x3219ca=this['_configService'][_0x3e460a(0x191)](y);(_0x3219ca==null?void 0x0:_0x3219ca[_0x3e460a(0x20d)])!==!0x1&&this[_0x3e460a(0x1b8)](this['_uiPartsService']['registerComponent'](_0x33e4e4[_0x3e460a(0x1ca)],()=>{const _0x4ee7ca=_0x3e460a;var _0x5baf51;return _0x25d47b(un({'status$':this[_0x4ee7ca(0x1fa)]['connectionStatus$'],'error$':this[_0x4ee7ca(0x1fa)][_0x4ee7ca(0x25f)],'onConfigure':()=>this[_0x4ee7ca(0x1bf)](),'showClickable':(_0x5baf51=_0x3219ca==null?void 0x0:_0x3219ca[_0x4ee7ca(0x265)])!=null?_0x5baf51:!0x1}),this[_0x4ee7ca(0x223)]);}));}['_handleConfigure'](){const _0x32edbb=_0x5ec4ee;this[_0x32edbb(0x223)][_0x32edbb(0x1ee)](I)[_0x32edbb(0x1da)]();}};O=ln([M(0x0,_0xf0d1df(_0x212aa2)),M(0x1,_0xf0d1df(_0x4ee547)),M(0x2,_0x99b350),M(0x3,_0x1784e7)],O);function un(_0x54960c){const {status$:_0x2c87e5,error$:_0x524cca,onConfigure:_0x25a6f7,showClickable:_0x427207}=_0x54960c;return function(){return _0x44f7f0(cn,{'status$':_0x2c87e5,'error$':_0x524cca,'onConfigure':_0x25a6f7,'showClickable':_0x427207});};}function vn(_0x417a4d){const _0x2f774b=_0x5ec4ee;return{'id':V['id'],'type':_0x2c0545[_0x2f774b(0x19e)],'icon':_0x2f774b(0x280),'title':_0x2f774b(0x23f),'tooltip':_0x2f774b(0x23f)};}const dn={[_0x3d8145['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x291751,_0x341885,_0x58d80c,_0x41437b)=>{const _0x478ee3=_0x5ec4ee;for(var _0x198cc0=_0x41437b>0x1?void 0x0:_0x41437b?gn(_0x341885,_0x58d80c):_0x341885,_0x12512c=_0x291751[_0x478ee3(0x287)]-0x1,_0x5ecd05;_0x12512c>=0x0;_0x12512c--)(_0x5ecd05=_0x291751[_0x12512c])&&(_0x198cc0=_0x5ecd05(_0x198cc0)||_0x198cc0);return _0x198cc0;},re=(_0x3b7baf,_0x1b5634)=>(_0x31ce6e,_0x5c6581)=>_0x1b5634(_0x31ce6e,_0x5c6581,_0x3b7baf);let D=class extends _0x101057{constructor(_0x4d8b9e,_0x1ab51f){const _0x57e5ca=_0x5ec4ee;super(),this[_0x57e5ca(0x1df)]=_0x4d8b9e,this['_menuManagerService']=_0x1ab51f,this[_0x57e5ca(0x1a8)](),this['_initializeMenus']();}[_0x5ec4ee(0x1a8)](){const _0x42de1c=_0x5ec4ee;[V][_0x42de1c(0x1fe)](_0x3ef3a5=>{const _0x242770=_0x42de1c;this[_0x242770(0x1b8)](this[_0x242770(0x1df)][_0x242770(0x20c)](_0x3ef3a5));});}[_0x5ec4ee(0x198)](){const _0x34b2e3=_0x5ec4ee;this[_0x34b2e3(0x230)][_0x34b2e3(0x281)](dn);}};D=pn([re(0x0,_0x28695c),re(0x1,_0x3ab4bb)],D);const Mn={'mcpStatus':{'disconnected':_0x5ec4ee(0x277),'connecting':_0x5ec4ee(0x22d),'connected':_0x5ec4ee(0x204),'failed':_0x5ec4ee(0x258),'retrying':_0x5ec4ee(0x2af),'unknown':_0x5ec4ee(0x28d),'unauthorized':_0x5ec4ee(0x209),'sessionOccupied':_0x5ec4ee(0x215),'networkError':_0x5ec4ee(0x27b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5ec4ee(0x196),'clickToConfigure':_0x5ec4ee(0x1a1)},'mcpConfig':{'title':_0x5ec4ee(0x28f),'description':_0x5ec4ee(0x19f),'apiKey':_0x5ec4ee(0x1af),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5ec4ee(0x22e),'enableAuth':_0x5ec4ee(0x28e),'enableAuthHint':_0x5ec4ee(0x261),'connectionInfo':_0x5ec4ee(0x1e1),'mcpClientConfig':_0x5ec4ee(0x1e1),'configInstructions':_0x5ec4ee(0x23d),'configStepTitle':_0x5ec4ee(0x2b4),'configStep1':_0x5ec4ee(0x1cc),'configStep2':_0x5ec4ee(0x264),'configStep3':_0x5ec4ee(0x244),'sessionId':_0x5ec4ee(0x228),'sessionIdDescription':_0x5ec4ee(0x1b1),'authorizationDescription':_0x5ec4ee(0x1c0),'configParameters':_0x5ec4ee(0x1de),'maxRetries':_0x5ec4ee(0x218),'save':_0x5ec4ee(0x1bc),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5ec4ee(0x1f4),'configSaved':_0x5ec4ee(0x22c),'configError':_0x5ec4ee(0x2b0),'apiApplyInfo':{'title':_0x5ec4ee(0x2ae),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5ec4ee(0x205),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5ec4ee(0x266)},'connectionStatus':{'disconnected':_0x5ec4ee(0x2bb),'connecting':'Connecting...','connected':_0x5ec4ee(0x2aa),'failed':_0x5ec4ee(0x2cc),'retrying':_0x5ec4ee(0x29c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5ec4ee(0x192),'networkError':_0x5ec4ee(0x1f8),'maxRetriesExceeded':_0x5ec4ee(0x210)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x5ec4ee(0x278),'retrying':_0x5ec4ee(0x1fb),'unknown':_0x5ec4ee(0x2bc),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5ec4ee(0x2ad),'networkError':_0x5ec4ee(0x195),'maxRetriesExceeded':_0x5ec4ee(0x1b6),'clickToConnect':_0x5ec4ee(0x1e2),'clickToConfigure':_0x5ec4ee(0x292)},'mcpConfig':{'title':_0x5ec4ee(0x251),'description':_0x5ec4ee(0x1a2),'apiKey':_0x5ec4ee(0x2cb),'apiKeyPlaceholder':_0x5ec4ee(0x2cd),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5ec4ee(0x1f5),'enableAuthHint':_0x5ec4ee(0x237),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5ec4ee(0x2bf),'configInstructions':_0x5ec4ee(0x295),'configStepTitle':_0x5ec4ee(0x2a2),'configStep1':_0x5ec4ee(0x21e),'configStep2':_0x5ec4ee(0x1b3),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x5ec4ee(0x2d1),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5ec4ee(0x203),'configParameters':_0x5ec4ee(0x242),'maxRetries':'最大重试次数','save':_0x5ec4ee(0x24f),'saving':_0x5ec4ee(0x20f),'note1':_0x5ec4ee(0x27c),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x5ec4ee(0x23e),'configError':_0x5ec4ee(0x1a6),'apiApplyInfo':{'title':_0x5ec4ee(0x275),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x5ec4ee(0x1b5),'getStarted':_0x5ec4ee(0x28a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x5ec4ee(0x217)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':'已连接','failed':_0x5ec4ee(0x212),'retrying':_0x5ec4ee(0x298)},'connectionError':{'unauthorized':_0x5ec4ee(0x29b),'sessionOccupied':_0x5ec4ee(0x2c8),'networkError':_0x5ec4ee(0x1ef),'maxRetriesExceeded':_0x5ec4ee(0x257)}}};function _0x2bf6(){const _0x59628c=['_createConfigPanelComponent','univer-flex\x20univer-items-start\x20univer-gap-3','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','mcpConfig.apiApplyInfo.univerAiLabel','MCPConfigPanel','_mcpCoreConfig$','evenodd','_localeService','1592543oAclKp','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','enableAutoConnect','Configuration\x20Notes:','什么是\x20API\x20密钥?','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP\x20Disconnected','MCP\x20连接失败','_uiPartsService','mcp.apiKey','MCP:\x20Network\x20Error','配置更改将立即生效','mcpConfig.apiKey','CONNECTING','_handleConfigSave','MenuIcon','mergeMenu','Error','mcpConfig.note1','univer-bg-red-500','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.connectionStatus.connecting','length','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','getItem','几秒钟内获取您的\x20API\x20密钥','defs','on-line-icon_clip0_910_349','MCP\x20Unknown\x20Status','Enable\x20Authentication','MCP\x20Configuration','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.description','点击配置\x20MCP','DISCONNECTED','81MDNXdg','将以下配置添加到您的\x20MCP\x20客户端设置中:','mcpConfig.connectionError.networkError','assign','重连中...','mcpConfig.connectionError.maxRetriesExceeded','https://mcp.univer.ai/mcp/?univer_session_id=','权限验证失败,请检查您的\x20API\x20密钥','Retrying...','MAX_RETRIES_EXCEEDED','univer-text-blue-600','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','mcpStatus.failed','配置步骤:','univer-mr-2\x20univer-flex\x20univer-text-xl','none','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_messageService','mcpConfig.validation.invalidConfig','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','white','Connected','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','OffLineIcon','MCP:\x20会话\x20ID\x20已被占用','What\x20is\x20API\x20Key?','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','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','toString','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Configuration\x20Steps:','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.apiApplyInfo.getStarted','3154378KxBDen','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.configStep3','Disconnected','MCP\x20状态未知','univer-space-y-3','show','MCP\x20客户端配置','mcp-ui.config','url(#$1','currentColor','svg','setItem','path','3gcfzsg','univer-space-y-4','会话\x20ID\x20已被占用,请稍后再试','SESSION_ID_OCCUPIED','mcpConfig.connectionStatus.connected','API\x20密钥','Connection\x20Failed','请输入您的\x20API\x20密钥','pluginName','univer-flex\x20univer-items-center\x20univer-gap-2','replace','会话ID','mcpStatus.clickToConnect','https://console.univer.plus','register','pre','open','NETWORK_ERROR','subscribeConfigValue$','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','noopener\x20noreferrer','mcpConfig.save','getConfig','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','CheckMarkIcon','xlink:href','MCP:\x20网络错误','Click\x20to\x20connect\x20MCP','children','_initializeMenus','_configService','mcpConfig.note2','HelpIcon','UNAUTHORIZED','mcpConfig.apiApplyInfo.title','BUTTON','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','value','Click\x20to\x20configure\x20MCP','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.configInstructions','random','off-line-icon_clip0_910_343','配置保存失败','sessionId$','_initializeCommands','idSuffix','attrs','mcpConfig.validation.invalidApiKey','fill','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-font-medium','API\x20Key','mcpConfig.connectionStatus.retrying','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpServerUrl','将配置添加到您的\x20MCP\x20客户端设置文件中','includes','Univer\x20AI\x20控制台','MCP:\x20超出最大重试次数','481330JzEADH','disposeWithMe','mcp-config-dialog','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','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','42iKBbfM','mcpConfig.connectionInfo','_handleConfigure','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-red-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_mcpConnectionController','_loadStoredApiKey','<API_KEY>','FAILED','isValid','HEADER_MENU','univer-space-y-5','Copy\x20the\x20JSON\x20configuration\x20below','has','connectionStatus$','COMMAND','mcpConfig.configError','help-icon','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer.ai','mcpStatus.unknown','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','getCurrentConfig','univer-flex\x20univer-items-center','mcpConfig.validation.apiKeyTooShort','_initAutoConnect','showConfigPanel','_logService','univer-text-sm\x20univer-text-gray-500','setConfig','Configuration\x20Parameters:','_commandService','next','MCP\x20Client\x20Configuration','点击连接\x20MCP','CONNECTED','univer-text-white','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','off','on-line-icon','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.configStep1','mcpConfig.sessionIdDescription','_config$','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','get','网络连接错误,请检查您的网络连接','_initStatusComponent','off-line-icon','_config','<SESSION_ID>','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','启用身份验证','__setCustomHeaders','0\x200\x2016\x2016','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_connectionController','MCP\x20重连中...','univer-text-xs\x20univer-text-gray-500','trim','forEach','subscribe','_loading$','mcpConfig.configStep2','mcpStatus.unauthorized','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-min-w-0\x20univer-flex-1','mcp-ui.command.openConfigPanel','728748UXcEMb','MCP:\x20Unauthorized','5107930DCyDtW','univer-flex\x20univer-flex-wrap\x20univer-gap-2','registerCommand','showStatus','span','保存中...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_dialogService','连接失败','close','univer-text-gray-500','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.connectionStatus.failed','API\x20密钥无效,请检查密钥是否正确','Max\x20Retries','tag','mcpConfig.connectionError.sessionOccupied','OnLineIcon','MCP_UI_PLUGIN','_initConfigSync','复制以下\x20JSON\x20配置','round','univer-space-y-2','mcpStatus.connecting','displayName','_injector','string','colorChannel1','mcpStatus.maxRetriesExceeded','stringify','Session\x20ID','_localStorageService','div','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.configStepTitle','_menuManagerService','button','_apiKey$','univer-text-gray-400','apiKey','error','RETRYING','启用身份验证以获得安全连接','627414meRaaF','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.disconnected','onStarting','univer-flex\x20univer-items-start\x20univer-gap-2','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','配置保存成功','mcpConfig.title','use','univer.plus','配置参数:','\x20-\x20','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','add','UniverIcon','mcpStatus.networkError','map','618320whlGWc','mcpStatus.sessionOccupied','1em','M0\x200H16V16H0z','_registerComponent','_validateConfig','保存配置','Bearer\x20','MCP\x20配置','univer-size-2\x20univer-rounded-full','_componentManager','mask','getOwnPropertyDescriptor','Authorization:','超出最大重试次数,请稍后再试','MCP\x20Connection\x20Failed','bottom','0\x200\x2017\x2016','mcpConfig.connectionError.unauthorized','mcpConfig.configParameters','univer-shrink-0\x20univer-text-red-500','warn','connectionError$','clipPath','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.configSaved','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','showDeveloperTools','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpStatus.clickToConfigure','http://www.w3.org/2000/svg'];_0x2bf6=function(){return _0x59628c;};return _0x2bf6();}var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x1dd5d5,_0x529adb,_0x450dd4)=>_0x529adb in _0x1dd5d5?fn(_0x1dd5d5,_0x529adb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x450dd4}):_0x1dd5d5[_0x529adb]=_0x450dd4,mn=(_0x73e4c9,_0xd5871e,_0x4a8552,_0x3ffa49)=>{for(var _0x261e58=_0x3ffa49>0x1?void 0x0:_0x3ffa49?hn(_0xd5871e,_0x4a8552):_0xd5871e,_0x2a4096=_0x73e4c9['length']-0x1,_0x1ad64f;_0x2a4096>=0x0;_0x2a4096--)(_0x1ad64f=_0x73e4c9[_0x2a4096])&&(_0x261e58=_0x1ad64f(_0x261e58)||_0x261e58);return _0x261e58;},P=(_0x29a16a,_0x460a05)=>(_0x338a83,_0x22760c)=>_0x460a05(_0x338a83,_0x22760c,_0x29a16a),_n=(_0x12a9d7,_0x2abe50,_0x26a1a7)=>Cn(_0x12a9d7,_0x2abe50+'',_0x26a1a7);let j=class extends _0x5071e1{constructor(_0x59a054=ie,_0x27e529,_0x4a8b42,_0x47dc90,_0x2b1868,_0x5959ee){const _0x269255=_0x5ec4ee;super(),this['_config']=_0x59a054,this[_0x269255(0x223)]=_0x27e529,this['_configService']=_0x4a8b42,this[_0x269255(0x279)]=_0x47dc90,this[_0x269255(0x229)]=_0x2b1868,this[_0x269255(0x270)]=_0x5959ee;const {..._0x30074d}=_0x4e4b64({},ie,this[_0x269255(0x1f2)]);this[_0x269255(0x199)][_0x269255(0x1dd)](y,_0x30074d);}async[_0x5ec4ee(0x23b)](){const _0x501806=_0x5ec4ee,_0x396200=[[O],[I],[D]];this[_0x501806(0x223)][_0x501806(0x1cd)](_0x16030e)||_0x396200['push']([_0x16030e,{'useClass':_0x595390}]),_0x396200[_0x501806(0x1fe)](_0x41d235=>this[_0x501806(0x223)][_0x501806(0x245)](_0x41d235)),this[_0x501806(0x223)][_0x501806(0x1ee)](O),this[_0x501806(0x223)][_0x501806(0x1ee)](I),this['_injector'][_0x501806(0x1ee)](D);}};_n(j,_0x5ec4ee(0x2ce),_0x5ec4ee(0x21c)),j=mn([_0xa8ea9b(_0x56711f),P(0x1,_0xf0d1df(_0x212aa2)),P(0x2,_0x1784e7),P(0x3,_0x99b350),P(0x4,_0x1d36ed),P(0x5,_0xf0d1df(_0x4eb6bc))],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 _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};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1642b8=_0x3a9f;(function(_0xce2bb6,_0x41409a){const _0x4709cd=_0x3a9f,_0x19f4dd=_0xce2bb6();while(!![]){try{const _0x45f566=parseInt(_0x4709cd(0xa6))/0x1+parseInt(_0x4709cd(0x9f))/0x2+-parseInt(_0x4709cd(0xa5))/0x3+parseInt(_0x4709cd(0xbc))/0x4*(parseInt(_0x4709cd(0xa0))/0x5)+parseInt(_0x4709cd(0xaf))/0x6+parseInt(_0x4709cd(0xa9))/0x7*(-parseInt(_0x4709cd(0xcb))/0x8)+-parseInt(_0x4709cd(0xb9))/0x9*(parseInt(_0x4709cd(0xc5))/0xa);if(_0x45f566===_0x41409a)break;else _0x19f4dd['push'](_0x19f4dd['shift']());}catch(_0x1938f1){_0x19f4dd['push'](_0x19f4dd['shift']());}}}(_0x2f25,0xef190));function _0x2f25(){const _0x408a56=['Failed\x20to\x20save\x20configuration','15356061TbudtX','Configuration\x20saved\x20successfully','Retrying...','172zRMSil','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','Invalid\x20configuration','10ScHDHv','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','8669288IorLWZ','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','Connecting...','MCP:\x20Network\x20Error','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1469438KZczYa','125695CKmyeT','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','4241565NFSxNs','1649045jZDdXU','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','7SXfqri','Enter\x20your\x20API\x20key','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','10310088XCmGtp','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','MCP\x20Retrying...','MCP\x20Connection\x20Failed','Configuration\x20Steps:','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x2f25=function(){return _0x408a56;};return _0x2f25();}function _0x3a9f(_0xfd3bb1,_0xe7909d){_0xfd3bb1=_0xfd3bb1-0x9d;const _0x2f25fe=_0x2f25();let _0x3a9ffd=_0x2f25fe[_0xfd3bb1];return _0x3a9ffd;}const e={'mcpStatus':{'disconnected':_0x1642b8(0xcc),'connecting':_0x1642b8(0xa7),'connected':_0x1642b8(0xab),'failed':_0x1642b8(0xb4),'retrying':_0x1642b8(0xb3),'unknown':_0x1642b8(0xd2),'unauthorized':_0x1642b8(0xbd),'sessionOccupied':_0x1642b8(0xca),'networkError':_0x1642b8(0xd4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1642b8(0xcf),'clickToConfigure':_0x1642b8(0xd0)},'mcpConfig':{'title':_0x1642b8(0xc9),'description':_0x1642b8(0xc6),'apiKey':_0x1642b8(0xae),'apiKeyPlaceholder':_0x1642b8(0xaa),'apiKeyHint':_0x1642b8(0xd1),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1642b8(0xc8),'connectionInfo':_0x1642b8(0xc1),'mcpClientConfig':_0x1642b8(0xc1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1642b8(0xb5),'configStep1':_0x1642b8(0xad),'configStep2':_0x1642b8(0xac),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x1642b8(0x9e),'authorizationDescription':_0x1642b8(0xbe),'configParameters':_0x1642b8(0xb0),'maxRetries':_0x1642b8(0x9d),'save':_0x1642b8(0xa2),'saving':'Saving...','note1':_0x1642b8(0xbf),'note2':_0x1642b8(0xc2),'configSaved':_0x1642b8(0xba),'configError':_0x1642b8(0xb8),'apiApplyInfo':{'title':_0x1642b8(0xa3),'description':_0x1642b8(0xc7),'univerAiLabel':_0x1642b8(0xb2),'getStarted':_0x1642b8(0xb7)},'validation':{'apiKeyRequired':_0x1642b8(0xc3),'apiKeyTooShort':_0x1642b8(0xc0),'invalidConfig':_0x1642b8(0xc4),'invalidApiKey':_0x1642b8(0xa1)},'connectionStatus':{'disconnected':_0x1642b8(0xb6),'connecting':_0x1642b8(0xd3),'connected':_0x1642b8(0xce),'failed':'Connection\x20Failed','retrying':_0x1642b8(0xbb)},'connectionError':{'unauthorized':_0x1642b8(0xa8),'sessionOccupied':_0x1642b8(0xcd),'networkError':_0x1642b8(0xb1),'maxRetriesExceeded':_0x1642b8(0xa4)}}},n=e;export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x138f(){const _0x500c47=['MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','3634156ZBbBAD','1910127LmFZds','Disconnected','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','14776sShxOm','MCP:\x20Unauthorized','Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','31469200NvHZwY','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','97062zONFVm','Configuration\x20Steps:','API\x20key\x20is\x20required','2lXdxfm','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','Retrying...','API\x20Key','4257thVPve','384iXUFvB','949155qLAjSp','797444kiDtfl'];_0x138f=function(){return _0x500c47;};return _0x138f();}const _0x2371ea=_0x1795;function _0x1795(_0x463ab6,_0xdef435){_0x463ab6=_0x463ab6-0xa9;const _0x138f62=_0x138f();let _0x17952b=_0x138f62[_0x463ab6];return _0x17952b;}(function(_0xc5ef8,_0xc434e9){const _0x5046a6=_0x1795,_0x17afdc=_0xc5ef8();while(!![]){try{const _0x229af3=-parseInt(_0x5046a6(0xb8))/0x1*(parseInt(_0x5046a6(0xc9))/0x2)+-parseInt(_0x5046a6(0xcd))/0x3+-parseInt(_0x5046a6(0xcc))/0x4+-parseInt(_0x5046a6(0xc8))/0x5+-parseInt(_0x5046a6(0xc7))/0x6*(parseInt(_0x5046a6(0xb5))/0x7)+-parseInt(_0x5046a6(0xd7))/0x8*(-parseInt(_0x5046a6(0xc6))/0x9)+parseInt(_0x5046a6(0xaa))/0xa;if(_0x229af3===_0xc434e9)break;else _0x17afdc['push'](_0x17afdc['shift']());}catch(_0x469b87){_0x17afdc['push'](_0x17afdc['shift']());}}}(_0x138f,0x92a1c));const e={'mcpStatus':{'disconnected':_0x2371ea(0xad),'connecting':_0x2371ea(0xd5),'connected':'MCP\x20Connected','failed':_0x2371ea(0xb2),'retrying':'MCP\x20Retrying...','unknown':_0x2371ea(0xca),'unauthorized':_0x2371ea(0xd8),'sessionOccupied':_0x2371ea(0xd1),'networkError':_0x2371ea(0xd0),'maxRetriesExceeded':_0x2371ea(0xbe),'clickToConnect':_0x2371ea(0xd6),'clickToConfigure':_0x2371ea(0xb3)},'mcpConfig':{'title':_0x2371ea(0xbd),'description':_0x2371ea(0xb1),'apiKey':_0x2371ea(0xc5),'apiKeyPlaceholder':_0x2371ea(0xcf),'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':_0x2371ea(0xb0),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2371ea(0xb6),'configStep1':_0x2371ea(0xb4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2371ea(0xdb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2371ea(0xc2),'configParameters':_0x2371ea(0xaf),'maxRetries':_0x2371ea(0xbc),'save':_0x2371ea(0xac),'saving':_0x2371ea(0xc0),'note1':_0x2371ea(0xda),'note2':_0x2371ea(0xba),'configSaved':_0x2371ea(0xb9),'configError':_0x2371ea(0xd2),'apiApplyInfo':{'title':_0x2371ea(0xcb),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2371ea(0xbb)},'validation':{'apiKeyRequired':_0x2371ea(0xb7),'apiKeyTooShort':_0x2371ea(0xd4),'invalidConfig':_0x2371ea(0xd3),'invalidApiKey':_0x2371ea(0xbf)},'connectionStatus':{'disconnected':_0x2371ea(0xce),'connecting':_0x2371ea(0xd9),'connected':'Connected','failed':_0x2371ea(0xc3),'retrying':_0x2371ea(0xc4)},'connectionError':{'unauthorized':_0x2371ea(0xc1),'sessionOccupied':_0x2371ea(0xae),'networkError':_0x2371ea(0xa9),'maxRetriesExceeded':_0x2371ea(0xab)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x19d8(_0x3457d6,_0x3a1cc5){_0x3457d6=_0x3457d6-0x12b;const _0x49155a=_0x4915();let _0x19d82b=_0x49155a[_0x3457d6];return _0x19d82b;}const _0x3653af=_0x19d8;function _0x4915(){const _0xa96449=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','155khNoOr','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5083764jECAtS','Configuration\x20Steps:','760021VuyXgp','5778454uLKlvf','MCP\x20Disconnected','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','291KoHCSu','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','MCP\x20Retrying...','46698PtuhBI','API\x20key\x20is\x20required','Max\x20Retries','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','10ISLnAq','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','99CtqpeC','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','483160GZymZx','Configuration\x20Parameters:','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','2prIOce','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','Enter\x20your\x20API\x20key','Disconnected','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.','6210449gwAYOl','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','13AkWMxh','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Invalid\x20configuration','932zGHvIZ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x4915=function(){return _0xa96449;};return _0x4915();}(function(_0x636934,_0x5b79b5){const _0x49bf58=_0x19d8,_0xb08350=_0x636934();while(!![]){try{const _0x46a93a=-parseInt(_0x49bf58(0x136))/0x1*(-parseInt(_0x49bf58(0x154))/0x2)+-parseInt(_0x49bf58(0x13c))/0x3*(parseInt(_0x49bf58(0x12f))/0x4)+parseInt(_0x49bf58(0x132))/0x5*(parseInt(_0x49bf58(0x140))/0x6)+-parseInt(_0x49bf58(0x15c))/0x7+-parseInt(_0x49bf58(0x14c))/0x8*(-parseInt(_0x49bf58(0x14a))/0x9)+-parseInt(_0x49bf58(0x147))/0xa*(parseInt(_0x49bf58(0x137))/0xb)+parseInt(_0x49bf58(0x134))/0xc*(parseInt(_0x49bf58(0x160))/0xd);if(_0x46a93a===_0x5b79b5)break;else _0xb08350['push'](_0xb08350['shift']());}catch(_0x2000cc){_0xb08350['push'](_0xb08350['shift']());}}}(_0x4915,0x9fb54));const e={'mcpStatus':{'disconnected':_0x3653af(0x138),'connecting':_0x3653af(0x143),'connected':_0x3653af(0x15d),'failed':_0x3653af(0x15f),'retrying':_0x3653af(0x13f),'unknown':_0x3653af(0x15a),'unauthorized':_0x3653af(0x12c),'sessionOccupied':_0x3653af(0x13b),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3653af(0x162),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3653af(0x12b)},'mcpConfig':{'title':_0x3653af(0x139),'description':_0x3653af(0x14f),'apiKey':_0x3653af(0x151),'apiKeyPlaceholder':_0x3653af(0x157),'apiKeyHint':_0x3653af(0x145),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3653af(0x14e),'connectionInfo':_0x3653af(0x144),'mcpClientConfig':_0x3653af(0x144),'configInstructions':_0x3653af(0x15e),'configStepTitle':_0x3653af(0x135),'configStep1':_0x3653af(0x13a),'configStep2':_0x3653af(0x155),'configStep3':_0x3653af(0x130),'sessionId':'Session\x20ID','sessionIdDescription':_0x3653af(0x13d),'authorizationDescription':_0x3653af(0x15b),'configParameters':_0x3653af(0x14d),'maxRetries':_0x3653af(0x142),'save':'Save\x20Configuration','saving':_0x3653af(0x161),'note1':_0x3653af(0x131),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3653af(0x12d),'configError':_0x3653af(0x148),'apiApplyInfo':{'title':_0x3653af(0x159),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3653af(0x149)},'validation':{'apiKeyRequired':_0x3653af(0x141),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3653af(0x12e),'invalidApiKey':_0x3653af(0x152)},'connectionStatus':{'disconnected':_0x3653af(0x158),'connecting':_0x3653af(0x153),'connected':_0x3653af(0x13e),'failed':_0x3653af(0x156),'retrying':_0x3653af(0x150)},'connectionError':{'unauthorized':_0x3653af(0x133),'sessionOccupied':_0x3653af(0x14b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3653af(0x146)}}},n=e;export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2f8404=_0xe779;function _0xe779(_0x4ec7f6,_0x89c9a3){_0x4ec7f6=_0x4ec7f6-0x16a;const _0x599808=_0x5998();let _0xe779a8=_0x599808[_0x4ec7f6];return _0xe779a8;}(function(_0x86f7bb,_0x34792a){const _0x3defeb=_0xe779,_0x1ac964=_0x86f7bb();while(!![]){try{const _0x37aeb3=parseInt(_0x3defeb(0x199))/0x1*(-parseInt(_0x3defeb(0x183))/0x2)+-parseInt(_0x3defeb(0x17f))/0x3+parseInt(_0x3defeb(0x189))/0x4*(parseInt(_0x3defeb(0x17c))/0x5)+parseInt(_0x3defeb(0x19a))/0x6+parseInt(_0x3defeb(0x172))/0x7+-parseInt(_0x3defeb(0x178))/0x8+-parseInt(_0x3defeb(0x18e))/0x9;if(_0x37aeb3===_0x34792a)break;else _0x1ac964['push'](_0x1ac964['shift']());}catch(_0x2f7c31){_0x1ac964['push'](_0x1ac964['shift']());}}}(_0x5998,0x5bce7));const e={'mcpStatus':{'disconnected':_0x2f8404(0x195),'connecting':_0x2f8404(0x17d),'connected':_0x2f8404(0x182),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2f8404(0x18d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2f8404(0x18c),'networkError':_0x2f8404(0x18f),'maxRetriesExceeded':_0x2f8404(0x16d),'clickToConnect':_0x2f8404(0x193),'clickToConfigure':_0x2f8404(0x185)},'mcpConfig':{'title':_0x2f8404(0x17e),'description':_0x2f8404(0x16a),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2f8404(0x170),'apiKeyHint':_0x2f8404(0x184),'enableAuth':_0x2f8404(0x16e),'enableAuthHint':_0x2f8404(0x16f),'connectionInfo':_0x2f8404(0x171),'mcpClientConfig':_0x2f8404(0x171),'configInstructions':_0x2f8404(0x179),'configStepTitle':_0x2f8404(0x190),'configStep1':_0x2f8404(0x174),'configStep2':_0x2f8404(0x176),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2f8404(0x19b),'sessionIdDescription':_0x2f8404(0x175),'authorizationDescription':_0x2f8404(0x198),'configParameters':_0x2f8404(0x181),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2f8404(0x188),'note1':_0x2f8404(0x194),'note2':_0x2f8404(0x196),'configSaved':_0x2f8404(0x173),'configError':_0x2f8404(0x180),'apiApplyInfo':{'title':_0x2f8404(0x191),'description':_0x2f8404(0x16c),'univerAiLabel':_0x2f8404(0x18b),'getStarted':_0x2f8404(0x177)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2f8404(0x18a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2f8404(0x17a)},'connectionStatus':{'disconnected':_0x2f8404(0x16b),'connecting':'Connecting...','connected':'Connected','failed':_0x2f8404(0x197),'retrying':_0x2f8404(0x192)},'connectionError':{'unauthorized':_0x2f8404(0x186),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2f8404(0x187),'maxRetriesExceeded':_0x2f8404(0x17b)}}},n=e;export{n as default};function _0x5998(){const _0x3dd78f=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','1433572FGjyKh','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','4083376UnSbHQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','15wCwtDc','MCP\x20Connecting...','MCP\x20Configuration','455718cuyrQl','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','MCP\x20Connected','2NIRtnM','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','989296mHpxUT','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Unknown\x20Status','3517011wVzVgc','MCP:\x20Network\x20Error','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Retrying...','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','236133gNBLdu','4311066xMrzmi','Session\x20ID'];_0x5998=function(){return _0x3dd78f;};return _0x5998();}
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4180d3=_0x52ad;function _0x52ad(_0x4b61b8,_0x466398){_0x4b61b8=_0x4b61b8-0xa6;const _0x27328f=_0x2732();let _0x52ad11=_0x27328f[_0x4b61b8];return _0x52ad11;}(function(_0x1a4528,_0x276e39){const _0x295ba7=_0x52ad,_0x2218e2=_0x1a4528();while(!![]){try{const _0x3e44a5=parseInt(_0x295ba7(0xb1))/0x1+-parseInt(_0x295ba7(0xcb))/0x2*(-parseInt(_0x295ba7(0xc1))/0x3)+parseInt(_0x295ba7(0xca))/0x4*(parseInt(_0x295ba7(0xba))/0x5)+parseInt(_0x295ba7(0xd9))/0x6+-parseInt(_0x295ba7(0xc8))/0x7+parseInt(_0x295ba7(0xda))/0x8+-parseInt(_0x295ba7(0xb2))/0x9*(parseInt(_0x295ba7(0xd0))/0xa);if(_0x3e44a5===_0x276e39)break;else _0x2218e2['push'](_0x2218e2['shift']());}catch(_0x41d22b){_0x2218e2['push'](_0x2218e2['shift']());}}}(_0x2732,0x33d94));const e={'mcpStatus':{'disconnected':_0x4180d3(0xd6),'connecting':_0x4180d3(0xad),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x4180d3(0xb9),'unknown':_0x4180d3(0xaf),'unauthorized':_0x4180d3(0xb3),'sessionOccupied':_0x4180d3(0xae),'networkError':_0x4180d3(0xbb),'maxRetriesExceeded':_0x4180d3(0xce),'clickToConnect':_0x4180d3(0xd7),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4180d3(0xc7),'apiKey':_0x4180d3(0xd4),'apiKeyPlaceholder':_0x4180d3(0xd5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4180d3(0xcc),'enableAuthHint':_0x4180d3(0xbe),'connectionInfo':_0x4180d3(0xc6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4180d3(0xc4),'configStepTitle':_0x4180d3(0xbd),'configStep1':_0x4180d3(0xcd),'configStep2':_0x4180d3(0xb7),'configStep3':_0x4180d3(0xab),'sessionId':_0x4180d3(0xc5),'sessionIdDescription':_0x4180d3(0xbf),'authorizationDescription':_0x4180d3(0xb5),'configParameters':_0x4180d3(0xcf),'maxRetries':_0x4180d3(0xa7),'save':'Save\x20Configuration','saving':_0x4180d3(0xb6),'note1':_0x4180d3(0xd1),'note2':_0x4180d3(0xb4),'configSaved':_0x4180d3(0xa6),'configError':_0x4180d3(0xd3),'apiApplyInfo':{'title':_0x4180d3(0xaa),'description':_0x4180d3(0xb0),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4180d3(0xc3)},'validation':{'apiKeyRequired':_0x4180d3(0xc9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4180d3(0xa8),'invalidApiKey':_0x4180d3(0xc2)},'connectionStatus':{'disconnected':_0x4180d3(0xbc),'connecting':'Connecting...','connected':_0x4180d3(0xd8),'failed':_0x4180d3(0xb8),'retrying':_0x4180d3(0xc0)},'connectionError':{'unauthorized':_0x4180d3(0xac),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4180d3(0xa9),'maxRetriesExceeded':_0x4180d3(0xd2)}}},n=e;function _0x2732(){const _0x1fa5ef=['MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1973706ZKkUhO','API\x20key\x20is\x20required','4JXgEmk','247656hhhiCl','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','110hAIpQa','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','API\x20Key','Enter\x20your\x20API\x20key','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Connected','84492lowkKN','1409568gDFUms','Configuration\x20saved\x20successfully','Max\x20Retries','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','What\x20is\x20API\x20Key?','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Unknown\x20Status','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','332921zRJCUm','163179EBeOQq','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','MCP\x20Retrying...','233720hrKVZl','MCP:\x20Network\x20Error','Disconnected','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','3kHGfgp','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID'];_0x2732=function(){return _0x1fa5ef;};return _0x2732();}export{n as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x24f25e=_0x2625;(function(_0x301945,_0x404da2){const _0x202d54=_0x2625,_0x1a5f0b=_0x301945();while(!![]){try{const _0xbba535=-parseInt(_0x202d54(0x132))/0x1*(parseInt(_0x202d54(0x131))/0x2)+-parseInt(_0x202d54(0x129))/0x3*(parseInt(_0x202d54(0x121))/0x4)+-parseInt(_0x202d54(0x11c))/0x5+parseInt(_0x202d54(0x135))/0x6*(parseInt(_0x202d54(0x11b))/0x7)+-parseInt(_0x202d54(0x117))/0x8+parseInt(_0x202d54(0x124))/0x9+-parseInt(_0x202d54(0x12e))/0xa*(parseInt(_0x202d54(0x119))/0xb);if(_0xbba535===_0x404da2)break;else _0x1a5f0b['push'](_0x1a5f0b['shift']());}catch(_0x2aa6a3){_0x1a5f0b['push'](_0x1a5f0b['shift']());}}}(_0x3f24,0x49264));const e={'mcpStatus':{'disconnected':_0x24f25e(0x10e),'connecting':_0x24f25e(0x13b),'connected':_0x24f25e(0x11e),'failed':'MCP\x20接続失敗','retrying':_0x24f25e(0x115),'unknown':_0x24f25e(0x125),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x24f25e(0x13e),'networkError':_0x24f25e(0x140),'maxRetriesExceeded':_0x24f25e(0x122),'clickToConnect':_0x24f25e(0x138),'clickToConfigure':_0x24f25e(0x12c)},'mcpConfig':{'title':_0x24f25e(0x127),'description':_0x24f25e(0x126),'apiKey':_0x24f25e(0x123),'apiKeyPlaceholder':_0x24f25e(0x118),'apiKeyHint':_0x24f25e(0x128),'enableAuth':_0x24f25e(0x12b),'enableAuthHint':_0x24f25e(0x139),'connectionInfo':_0x24f25e(0x134),'mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x24f25e(0x13d),'configStep1':_0x24f25e(0x13a),'configStep2':_0x24f25e(0x12a),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x24f25e(0x142),'sessionIdDescription':_0x24f25e(0x110),'authorizationDescription':_0x24f25e(0x12f),'configParameters':'設定パラメータ:','maxRetries':'最大再試行回数','save':_0x24f25e(0x11a),'saving':_0x24f25e(0x116),'note1':_0x24f25e(0x13f),'note2':_0x24f25e(0x130),'configSaved':_0x24f25e(0x11f),'configError':_0x24f25e(0x133),'apiApplyInfo':{'title':_0x24f25e(0x12d),'description':_0x24f25e(0x11d),'univerAiLabel':_0x24f25e(0x141),'getStarted':_0x24f25e(0x120)},'validation':{'apiKeyRequired':_0x24f25e(0x112),'apiKeyTooShort':_0x24f25e(0x113),'invalidConfig':'無効な設定','invalidApiKey':_0x24f25e(0x137)},'connectionStatus':{'disconnected':'未接続','connecting':'接続中...','connected':'接続済み','failed':_0x24f25e(0x10f),'retrying':_0x24f25e(0x111)},'connectionError':{'unauthorized':_0x24f25e(0x114),'sessionOccupied':_0x24f25e(0x13c),'networkError':_0x24f25e(0x136),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};export{e as default};function _0x2625(_0x7f153d,_0x4c6ec1){_0x7f153d=_0x7f153d-0x10e;const _0x3f2484=_0x3f24();let _0x26257b=_0x3f2484[_0x7f153d];return _0x26257b;}function _0x3f24(){const _0x2f907b=['APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','MCP\x20接続済み','設定が正常に保存されました','数秒でAPIキーを取得','30668jxImQc','MCP:\x20最大再試行回数を超過','APIキー','5033574pslmvp','MCP\x20不明な状態','MCPを設定してAIでスプレッドシートを操作','MCP設定','APIキーはこのブラウザのローカルに保存されます','45jsfZno','MCPクライアントの設定ファイルに設定を追加','認証を有効にする','クリックしてMCPを設定','APIキーとは?','1640YUeNMQ','Bearerプレフィックス付きのAPIキー。','APIキーはローカルストレージに安全に保存されます','10432BaaKRT','2RiYmYO','設定の保存に失敗しました','MCPクライアント設定','1260EpTZWO','ネットワーク接続エラー。インターネット接続を確認してください','無効なAPIキーです。キーが正しいか確認してください','クリックしてMCPに接続','セキュアな接続のために認証を有効にする','以下のJSON設定をコピー','MCP\x20接続中...','セッションIDが現在使用中です。後でもう一度お試しください','設定手順:','MCP:\x20セッションIDが使用中','設定の変更は直ちに有効になります','MCP:\x20ネットワークエラー','Univer\x20AIコンソール','セッションID','MCP\x20未接続','接続失敗','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','再試行中...','APIキーは必須です','APIキーは10文字以上である必要があります','認証に失敗しました。APIキーを確認してください','MCP\x20再試行中...','保存中...','1614920JYVVci','APIキーを入力してください','5687bFQcDx','設定を保存','10381NwFBDz','795030DIZbFe'];_0x3f24=function(){return _0x2f907b;};return _0x3f24();}
|