@univerjs-pro/mcp-ui 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5afb4f=_0x500b;(function(_0x29110a,_0xbed4c1){const _0x25a13f=_0x500b,_0x34b58f=_0x29110a();while(!![]){try{const _0x337ba4=parseInt(_0x25a13f(0x170))/0x1*(parseInt(_0x25a13f(0x149))/0x2)+-parseInt(_0x25a13f(0x104))/0x3*(-parseInt(_0x25a13f(0xb8))/0x4)+parseInt(_0x25a13f(0x183))/0x5*(parseInt(_0x25a13f(0xd7))/0x6)+parseInt(_0x25a13f(0x180))/0x7+parseInt(_0x25a13f(0x108))/0x8+parseInt(_0x25a13f(0x157))/0x9+parseInt(_0x25a13f(0x77))/0xa*(-parseInt(_0x25a13f(0x106))/0xb);if(_0x337ba4===_0xbed4c1)break;else _0x34b58f['push'](_0x34b58f['shift']());}catch(_0x4db86d){_0x34b58f['push'](_0x34b58f['shift']());}}}(_0x1234,0xc7641));import{CommandType as _0x20dd89,DependentOn as _0x59f6a5,Disposable as _0xd0ff90,ICommandService as _0x195f5d,IConfigService as _0x520faa,ILocalStorageService as _0x104c58,ILogService as _0x45119a,Inject as _0xc54b06,Injector as _0x2a5bb7,LocaleService as _0x3c4182,Plugin as _0xdb1177,merge as _0x9476c9}from'@univerjs/core';import{MCPConnectionController as _0x2c9a1c,MCPConnectionError as _0x54aad6,MCPConnectionStatus as _0x1f5577,MCP_PLUGIN_CONFIG_KEY as _0x346c5f,UniverMCPPlugin as _0xe75a44}from'@univerjs-pro/mcp';import{Button as _0x257f32,Input as _0x4fa1e4,MessageType as _0x28277b,Tooltip as _0x5a455a,clsx as _0x348762}from'@univerjs/design';import{BuiltInUIPart as _0x51161f,ComponentManager as _0x4371f2,IDialogService as _0x445c31,IMenuManagerService as _0x4f6a1a,IMessageService as _0x17b7a7,IUIPartsService as _0x356992,MenuItemType as _0x2bbf5d,RibbonStartGroup as _0x1a0368,connectInjector as _0x522d18,useDependency as _0x1561e6,useObservable as _0x115b3d}from'@univerjs/ui';import{BehaviorSubject as _0x5a1e03}from'rxjs';import{CheckMarkIcon as _0x3527cc,CloseIcon as _0x256334,HelpIcon as _0x560460,OffLineIcon as _0x3c2040,OnLineIcon as _0x2aaacd}from'@univerjs/icons';import{useCallback as _0x3f364b,useState as _0x345559}from'react';import{jsx as _0x4d247a,jsxs as _0x52e889}from'react/jsx-runtime';import{ISocketService as _0x3db57f,WebSocketService as _0xe75e09}from'@univerjs/network';function _0x500b(_0x4d4799,_0x5b412a){_0x4d4799=_0x4d4799-0x74;const _0x123492=_0x1234();let _0x500be8=_0x123492[_0x4d4799];return _0x500be8;}function z(_0x2a3952){const _0x28ebf8=_0x500b;var _0x1dd1de,_0x3c3efb;let {mcpCoreConfig:_0x5ecdf6,onSave:_0x57f0ac,loading:_0x31f06e=!0x1,config:_0x578157,connectionStatus$:_0x20e78f,connectionError$:_0xa13497,currentApiKey$:_0x3e1b5c,currentSessionId$:_0x5e576e}=_0x2a3952,_0x1dd82c=_0x1561e6(_0x3c4182),_0x6c173=_0x115b3d(_0x20e78f,_0x1f5577[_0x28ebf8(0xdb)]),_0x2e9a8e=_0x115b3d(_0xa13497,_0x54aad6[_0x28ebf8(0x14d)]),_0x2bd1ee=_0x115b3d(_0x5e576e,''),[_0x5cb3c8,_0x1dfd4f]=_0x345559(_0x115b3d(_0x3e1b5c,'')||''),_0x2417e8=_0x578157['showDeveloperTools']&&_0x5ecdf6['mcpServerUrl']&&(_0x5ecdf6[_0x28ebf8(0x12e)][_0x28ebf8(0x8c)]('univer.plus')||_0x5ecdf6[_0x28ebf8(0x12e)][_0x28ebf8(0x8c)](_0x28ebf8(0x13b))),_0x2883d6=(_0x1dd1de=_0x5ecdf6['mcpServerUrl'])==null?void 0x0:_0x1dd1de['includes']('univer.plus'),_0x290670=(_0x3c3efb=_0x5ecdf6[_0x28ebf8(0x12e)])==null?void 0x0:_0x3c3efb[_0x28ebf8(0x8c)](_0x28ebf8(0x13b)),_0x435f79=_0x2883d6?_0x28ebf8(0xa3):_0x28ebf8(0x10b),_0x14f6da=_0x578157[_0x28ebf8(0x16d)]&&(_0x2883d6||_0x290670),[_0x5af247,_0x18966d]=_0x345559(!_0x5cb3c8['trim']()),_0x2dc164=(_0x1fc845,_0x249c39)=>{const _0x48704e=_0x28ebf8;if(_0x249c39===_0x54aad6[_0x48704e(0x18b)])return _0x48704e(0x145);switch(_0x1fc845){case _0x1f5577[_0x48704e(0x100)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1f5577['CONNECTING']:case _0x1f5577[_0x48704e(0x10f)]:return _0x48704e(0xbf);case _0x1f5577[_0x48704e(0x123)]:return _0x48704e(0x145);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3cdc52=(_0x373654,_0x197c0b)=>{const _0x1e9fe8=_0x28ebf8;if(_0x197c0b===_0x54aad6['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x373654){case _0x1f5577[_0x1e9fe8(0x100)]:return _0x1e9fe8(0x112);case _0x1f5577['CONNECTING']:case _0x1f5577['RETRYING']:return _0x1e9fe8(0x194);case _0x1f5577[_0x1e9fe8(0x123)]:return _0x1e9fe8(0x13a);default:return _0x1e9fe8(0x164);}},_0x3c117f=_0x31b800=>{const _0x2193f7=_0x28ebf8;switch(_0x31b800){case _0x1f5577[_0x2193f7(0x100)]:return _0x1dd82c['t'](_0x2193f7(0xfd));case _0x1f5577[_0x2193f7(0x75)]:return _0x1dd82c['t'](_0x2193f7(0x83));case _0x1f5577['FAILED']:return _0x1dd82c['t'](_0x2193f7(0x7d));case _0x1f5577[_0x2193f7(0x10f)]:return _0x1dd82c['t'](_0x2193f7(0x12b));default:return _0x1dd82c['t'](_0x2193f7(0xc6));}},_0x25acee=_0x14c45b=>{const _0x4e2e87=_0x28ebf8;switch(_0x14c45b){case _0x54aad6[_0x4e2e87(0x18b)]:return _0x1dd82c['t'](_0x4e2e87(0x18d));case _0x54aad6[_0x4e2e87(0x14e)]:return _0x1dd82c['t'](_0x4e2e87(0x8f));case _0x54aad6['NETWORK_ERROR']:return _0x1dd82c['t'](_0x4e2e87(0x14f));case _0x54aad6[_0x4e2e87(0x90)]:return _0x1dd82c['t'](_0x4e2e87(0xcb));default:return'';}},_0x408ad1=_0x3f364b(()=>{_0x57f0ac({..._0x5ecdf6,'apiKey':_0x5cb3c8['trim'](),'enableAuth':!0x0});},[_0x5ecdf6,_0x5cb3c8,!0x0,_0x57f0ac]),_0x1eccac=_0x5cb3c8[_0x28ebf8(0x109)]()[_0x28ebf8(0x10d)]>0x0;return _0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x158),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x52e889('div',{'className':_0x28ebf8(0xab),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xac),'children':_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xcd),'children':'⚙'})}),_0x4d247a(_0x28ebf8(0x15d),{'children':_0x4d247a('p',{'className':_0x28ebf8(0x135),'children':_0x1dd82c['t'](_0x28ebf8(0x19f))})})]})}),_0x52e889('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x348762(_0x28ebf8(0x197),_0x2dc164(_0x6c173,_0x2e9a8e)),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x118),'children':[_0x4d247a('div',{'className':_0x348762(_0x28ebf8(0xcf),_0x3cdc52(_0x6c173,_0x2e9a8e))}),_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-text-sm\x20univer-font-medium','children':_0x3c117f(_0x6c173)})]})}),_0x2e9a8e!==_0x54aad6[_0x28ebf8(0x14d)]&&(_0x6c173===_0x1f5577['FAILED']||_0x2e9a8e===_0x54aad6['UNAUTHORIZED'])&&_0x4d247a('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x52e889('div',{'className':_0x28ebf8(0x74),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xbd),'children':'⚠️'}),_0x4d247a('p',{'className':_0x28ebf8(0xe5),'children':_0x25acee(_0x2e9a8e)})]})})]}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x15f),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x113),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':'univer-space-y-2','children':[_0x52e889(_0x28ebf8(0x102),{'className':_0x28ebf8(0x137),'children':[_0x4d247a('span',{'children':'🔑'}),'\x20',_0x1dd82c['t'](_0x28ebf8(0x19a)),_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-text-red-500','children':'*'}),_0x2417e8&&_0x4d247a('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x1dd82c['t']('mcpConfig.apiApplyInfo.title'),'role':_0x28ebf8(0x139),'onClick':()=>_0x18966d(!0x0),'children':_0x4d247a(_0x560460,{})})]}),_0x4d247a(_0x4fa1e4,{'type':_0x28ebf8(0x169),'placeholder':_0x1dd82c['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x5cb3c8,'disabled':_0x31f06e,'autoComplete':_0x28ebf8(0x99),'onChange':_0x1dfd4f}),_0x4d247a('p',{'className':_0x28ebf8(0x93),'children':_0x1dd82c['t'](_0x28ebf8(0xba))})]}),_0x2417e8&&_0x5af247&&_0x52e889(_0x28ebf8(0x15d),{'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':[_0x4d247a('a',{'className':_0x28ebf8(0x15c),'role':_0x28ebf8(0x139),'onClick':()=>_0x18966d(!0x1),'children':_0x4d247a(_0x256334,{'className':_0x28ebf8(0x182)})}),_0x52e889('div',{'className':_0x28ebf8(0x14b),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x101),'children':'🚀'})}),_0x52e889('div',{'className':_0x28ebf8(0x192),'children':[_0x4d247a('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x1dd82c['t']('mcpConfig.apiApplyInfo.title')}),_0x4d247a('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x1dd82c['t'](_0x28ebf8(0x14a))}),_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x14f6da&&_0x52e889('a',{'className':_0x28ebf8(0x150),'href':_0x435f79,'target':_0x28ebf8(0x196),'rel':'noopener\x20noreferrer','children':[_0x4d247a('span',{'children':'🤖'}),_0x1dd82c['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x4d247a('span',{'className':_0x28ebf8(0x8a),'children':'↗'})]})}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x198),'children':['✨','\x20',_0x1dd82c['t'](_0x28ebf8(0xed))]})]})]})]}),_0x578157['showDeveloperTools']&&_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x177),'children':[_0x52e889('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x4d247a(_0x28ebf8(0x1a2),{'children':'🔗'}),'\x20',_0x1dd82c['t'](_0x28ebf8(0xc3))]}),_0x52e889('div',{'className':_0x28ebf8(0x140),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xa0),'children':[_0x4d247a('p',{'className':_0x28ebf8(0xce),'children':_0x1dd82c['t']('mcpConfig.configInstructions')}),_0x52e889(_0x28ebf8(0x15d),{'className':'univer-space-y-2','children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x1dd82c['t']('mcpConfig.configStepTitle')}),_0x52e889('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x52e889(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x178),'children':'1'}),_0x1dd82c['t'](_0x28ebf8(0x9d))]}),_0x52e889('div',{'className':_0x28ebf8(0x118),'children':[_0x4d247a('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1dd82c['t'](_0x28ebf8(0x199))]}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x1dd82c['t'](_0x28ebf8(0x147))]})]})]})]}),_0x52e889('div',{'className':_0x28ebf8(0x19b),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x28ebf8(0x141)}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x187),'children':_0x4d247a(_0x28ebf8(0x95),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x2bd1ee||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x28ebf8(0x18a)+(_0x5cb3c8||_0x28ebf8(0xae))}}}},null,0x2)})})]}),_0x52e889('div',{'className':_0x28ebf8(0xa0),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x1dd82c['t'](_0x28ebf8(0x9c))}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x19b),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x142),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x154)}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xd5),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x16e),'children':'univer_session_id:'}),_0x4d247a('div',{'className':_0x28ebf8(0x93),'children':_0x1dd82c['t'](_0x28ebf8(0xb1))})]})]}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x142),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xd5),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x16e),'children':'Authorization:'}),_0x4d247a('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1dd82c['t'](_0x28ebf8(0x120))})]})]})]})]})]})]}),_0x4d247a(_0x257f32,{'onClick':_0x408ad1,'disabled':!_0x1eccac||_0x31f06e,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x31f06e?_0x52e889(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'children':'⟲'}),_0x1dd82c['t'](_0x28ebf8(0xb0))]}):_0x52e889(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x3527cc,{}),_0x1dd82c['t'](_0x28ebf8(0x96))]})}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x155),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x179),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xd3),'children':'💡'}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x13f),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xa9),'children':_0x28ebf8(0xad)}),_0x52e889(_0x28ebf8(0x15d),{'children':['•',_0x1dd82c['t'](_0x28ebf8(0x116))]}),_0x52e889(_0x28ebf8(0x15d),{'children':['•',_0x1dd82c['t'](_0x28ebf8(0x17d))]})]})]})})]})})]});}const B=_0x5afb4f(0xd9);Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x3826c8){'@babel/helpers - typeof';const _0x115edc=_0x5afb4f;return H=typeof Symbol==_0x115edc(0xef)&&typeof Symbol[_0x115edc(0x185)]==_0x115edc(0xe4)?function(_0x13d519){return typeof _0x13d519;}:function(_0x108671){const _0x377a52=_0x115edc;return _0x108671&&typeof Symbol==_0x377a52(0xef)&&_0x108671[_0x377a52(0xd8)]===Symbol&&_0x108671!==Symbol[_0x377a52(0xf9)]?'symbol':typeof _0x108671;},H(_0x3826c8);}function oe(_0x556f93,_0x33fd95){const _0x443a16=_0x5afb4f;if(H(_0x556f93)!='object'||!_0x556f93)return _0x556f93;var _0x33c5c1=_0x556f93[Symbol[_0x443a16(0xd0)]];if(_0x33c5c1!==void 0x0){var _0x29f102=_0x33c5c1['call'](_0x556f93,_0x33fd95||_0x443a16(0x143));if(H(_0x29f102)!=_0x443a16(0x76))return _0x29f102;throw TypeError(_0x443a16(0x124));}return(_0x33fd95===_0x443a16(0xe2)?String:Number)(_0x556f93);}function se(_0x1d5bc0){const _0x3ec61f=_0x5afb4f;var _0x50f728=oe(_0x1d5bc0,_0x3ec61f(0xe2));return H(_0x50f728)==_0x3ec61f(0xe4)?_0x50f728:_0x50f728+'';}function U(_0x53ad46,_0x3e8b60,_0x58c8b6){const _0x5ed0eb=_0x5afb4f;return(_0x3e8b60=se(_0x3e8b60))in _0x53ad46?Object[_0x5ed0eb(0xb7)](_0x53ad46,_0x3e8b60,{'value':_0x58c8b6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53ad46[_0x3e8b60]=_0x58c8b6,_0x53ad46;}function W(_0x13a232,_0x16ece2){return function(_0x5baa5e,_0x192c0f){_0x16ece2(_0x5baa5e,_0x192c0f,_0x13a232);};}function _0x1234(){const _0x3f47fd=['mcpConfig.connectionError.sessionOccupied','MAX_RETRIES_EXCEEDED','_configService','MCP:\x20Session\x20ID\x20Occupied','univer-text-xs\x20univer-text-gray-500','Connection\x20Failed','pre','mcpConfig.save','version','mcpStatus.clickToConnect','off','Max\x20Retries','Configuration\x20Parameters:','mcpConfig.configParameters','mcpConfig.configStep1','_initConfigSync','Univer\x20AI\x20Console','univer-space-y-3','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','https://console.univer.plus','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','_localStorageService','_injector','mcp-config-dialog','univer-font-medium','errorMessage','univer-flex\x20univer-items-center\x20univer-gap-3','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Configuration\x20Notes:','<API_KEY>','mcpStatus.unknown','mcpConfig.saving','mcpConfig.sessionIdDescription','mcpConfig.validation.apiKeyRequired','showConfigPanel','univer-text-gray-500','mcpConfig.configSaved','MCP\x20连接失败','defineProperty','708WFBSqT','_registerComponent','mcpConfig.apiKeyHint','isValid','close','univer-shrink-0\x20univer-text-red-500','MCP:\x20Unauthorized','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','subscribe','mcpConfig.validation.invalidConfig','_commandService','mcpConfig.connectionInfo','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','__setCustomHeaders','mcpConfig.connectionStatus.disconnected','getConfig','next','univer-text-red-500','最大重试次数','mcpConfig.connectionError.maxRetriesExceeded','_createConfigPanelComponent','univer-text-white','univer-text-xs\x20univer-text-gray-600','univer-size-2\x20univer-rounded-full','toPrimitive','启用身份验证','warn','univer-shrink-0\x20univer-text-blue-500','connectionStatus$','univer-min-w-0\x20univer-flex-1','univer-text-green-500','12NiPvlt','constructor','mcp-ui.config','_config','DISCONNECTED','getCurrentConfig','保存中...','_handleConfigSave','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','MenuIcon','string','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','symbol','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','value','showStatus','API\x20密钥','mcpStatus.unauthorized','registerComponent','add','mcpConfig.apiApplyInfo.getStarted','Invalid\x20configuration','function','Error','MCP:\x20网络错误','_initAutoConnect','MCP\x20Connection\x20Failed','MCP\x20重连中...','会话ID','已连接','mcpStatus.connecting','_initializeCommands','prototype','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','setItem','mcpConfig.connectionStatus.connected','mcpStatus.clickToConfigure','网络连接错误,请检查您的网络连接','CONNECTED','univer-text-blue-600','label','show','19134tYagzF','Disconnected','23298TCrPhN','什么是\x20API\x20密钥?','6177656bgYodj','trim','\x20-\x20','https://console.univer.ai','几秒钟内获取您的\x20API\x20密钥','length','Enter\x20your\x20API\x20key','RETRYING','subscribeConfigValue$','mcpStatus.networkError','univer-bg-green-500','univer-space-y-5','Configuration\x20Steps:','pluginName','mcpConfig.note1','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-items-center\x20univer-gap-2','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Disconnected','forEach','MCP:\x20未授权','onStarting','配置无效','未连接','mcpConfig.authorizationDescription','MCP\x20连接中...','MCP\x20Retrying...','FAILED','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_validateConfig','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Success','_apiKey$','MCP\x20配置','点击连接\x20MCP','mcpConfig.connectionStatus.retrying','MCPConfigPanel','_connectionController','mcpServerUrl','What\x20is\x20API\x20Key?','连接失败','OTHERS','Click\x20to\x20connect\x20MCP','setConfig','mcpConfig.validation.apiKeyTooShort','univer-text-sm\x20univer-text-gray-500','get','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','button','univer-bg-red-500','univer.ai','Click\x20to\x20configure\x20MCP','超出最大重试次数,请稍后再试','registerCommand','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-space-y-4','MCP\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','default','getOwnPropertyDescriptor','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.validation.invalidApiKey','mcpConfig.configStep3','_mcpConnectionController','16EiFSxT','mcpConfig.apiApplyInfo.description','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','@univerjs-pro/mcp-ui','NONE','SESSION_ID_OCCUPIED','mcpConfig.connectionError.networkError','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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','_loadStoredApiKey','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Enable\x20authentication\x20for\x20secure\x20connections','7803783QBHgBU','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_handleConfigure','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-center','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','div','mcpConfig.configError','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpStatus.maxRetriesExceeded','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_config$','disposeWithMe','univer-bg-gray-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_menuManagerService','配置更改将立即生效','decorate','text','启用身份验证以获得安全连接','_uiPartsService','mcpConfig.title','showDeveloperTools','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-ui.command.openConfigPanel','89423sSjWpE','保存配置','enableAutoConnect','复制以下\x20JSON\x20配置','_initStatusComponent','apiKey','Configuration\x20saved\x20successfully','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-gap-3','BUTTON','removeItem','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.note2','error','MCP:\x20会话\x20ID\x20已被占用','2212665lKbZTx','重连中...','univer-size-4','569785urGMOm','Retrying...','iterator','validateApiKey','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Enable\x20Authentication','\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','Bearer\x20','UNAUTHORIZED','HEADER_MENU','mcpConfig.connectionError.unauthorized','点击配置\x20MCP','_mcpCoreConfig$','MCP\x20状态未知','mcpStatus.sessionOccupied','univer-flex-1','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-bg-blue-500','_messageService','_blank','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.configStep2','mcpConfig.apiKey','univer-space-y-2','请输入您的\x20API\x20密钥','COMMAND','Session\x20ID','mcpConfig.description','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置步骤:','span','_loading$','MCP\x20客户端配置','univer-flex\x20univer-items-start\x20univer-gap-2','CONNECTING','object','15160OstYpW','API\x20密钥不能为空','connectionError$','API\x20key\x20is\x20required','_logService','配置保存成功','mcpConfig.connectionStatus.failed','push','has','API\x20key\x20with\x20Bearer\x20prefix.','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Save\x20Configuration','mcpConfig.connectionStatus.connecting','MCP\x20Unknown\x20Status','_dialogService','_localeService','MCP:\x20Network\x20Error','_componentManager','重启您的\x20MCP\x20客户端以使配置生效','univer-text-gray-400','NETWORK_ERROR','includes','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.retrying'];_0x1234=function(){return _0x3f47fd;};return _0x1234();}function G(_0x711e0e,_0x248e2c,_0x5bd9e3,_0x114696){const _0x2330e7=_0x5afb4f;var _0x2c52bc=arguments[_0x2330e7(0x10d)],_0x392f8b=_0x2c52bc<0x3?_0x248e2c:_0x114696===null?_0x114696=Object[_0x2330e7(0x144)](_0x248e2c,_0x5bd9e3):_0x114696,_0x294aff;if(typeof Reflect==_0x2330e7(0x76)&&typeof Reflect[_0x2330e7(0x168)]=='function')_0x392f8b=Reflect[_0x2330e7(0x168)](_0x711e0e,_0x248e2c,_0x5bd9e3,_0x114696);else{for(var _0x4e5e32=_0x711e0e[_0x2330e7(0x10d)]-0x1;_0x4e5e32>=0x0;_0x4e5e32--)(_0x294aff=_0x711e0e[_0x4e5e32])&&(_0x392f8b=(_0x2c52bc<0x3?_0x294aff(_0x392f8b):_0x2c52bc>0x3?_0x294aff(_0x248e2c,_0x5bd9e3,_0x392f8b):_0x294aff(_0x248e2c,_0x5bd9e3))||_0x392f8b);}return _0x2c52bc>0x3&&_0x392f8b&&Object[_0x2330e7(0xb7)](_0x248e2c,_0x5bd9e3,_0x392f8b),_0x392f8b;}const K='mcp.apiKey',q=_0x5afb4f(0xa8);let J=class extends _0xd0ff90{constructor(_0x24b4df,_0x372bcc,_0x2d4712,_0xce40fc,_0x2dba40,_0x4488a2,_0x2af893,_0x4b7bd2,_0x2d0166,_0xf6da89){const _0x5b24f5=_0x5afb4f;super(),this[_0x5b24f5(0xa7)]=_0x24b4df,this[_0x5b24f5(0x16b)]=_0x372bcc,this['_configService']=_0x2d4712,this['_localStorageService']=_0xce40fc,this[_0x5b24f5(0x85)]=_0x2dba40,this[_0x5b24f5(0x195)]=_0x4488a2,this[_0x5b24f5(0x88)]=_0x2af893,this[_0x5b24f5(0x86)]=_0x4b7bd2,this[_0x5b24f5(0x7b)]=_0x2d0166,this[_0x5b24f5(0x148)]=_0xf6da89,U(this,_0x5b24f5(0x1a3),new _0x5a1e03(!0x1)),U(this,'_mcpCoreConfig$',new _0x5a1e03({})),U(this,_0x5b24f5(0x162),new _0x5a1e03({})),U(this,'_apiKey$',new _0x5a1e03('')),U(this,_0x5b24f5(0xde),async _0x45dd50=>{const _0x4e98b0=_0x5b24f5;this['_loading$'][_0x4e98b0(0xc8)](!0x0);try{var _0x5df084,_0x16d26d;let _0x206406=await this['_validateConfig'](_0x45dd50);if(!_0x206406[_0x4e98b0(0xbb)]){this[_0x4e98b0(0x195)][_0x4e98b0(0x103)]({'type':_0x28277b['Error'],'content':_0x206406[_0x4e98b0(0xaa)]||this['_localeService']['t'](_0x4e98b0(0xc1))});return;}_0x45dd50[_0x4e98b0(0x175)]?await this[_0x4e98b0(0xa6)][_0x4e98b0(0xfc)](K,_0x45dd50['apiKey'][_0x4e98b0(0x109)]()):await this['_localStorageService'][_0x4e98b0(0x17b)](K),this['_apiKey$']['next'](((_0x5df084=_0x45dd50[_0x4e98b0(0x175)])==null?void 0x0:_0x5df084['trim']())||''),this['_mcpConnectionController'][_0x4e98b0(0xc5)]({'Authorization':_0x4e98b0(0x18a)+((_0x16d26d=_0x45dd50[_0x4e98b0(0x175)])==null?void 0x0:_0x16d26d[_0x4e98b0(0x109)]())}),this[_0x4e98b0(0x195)][_0x4e98b0(0x103)]({'type':_0x28277b[_0x4e98b0(0x127)],'content':this[_0x4e98b0(0x86)]['t'](_0x4e98b0(0xb5))}),setTimeout(()=>{const _0x19459e=_0x4e98b0;this['_dialogService'][_0x19459e(0xbc)](q);},0x320);}catch(_0xb0e027){this[_0x4e98b0(0x7b)][_0x4e98b0(0x17e)](_0x4e98b0(0x138),_0xb0e027),this[_0x4e98b0(0x195)]['show']({'type':_0x28277b[_0x4e98b0(0xf0)],'content':this[_0x4e98b0(0x86)]['t'](_0x4e98b0(0x15e))});}finally{this[_0x4e98b0(0x1a3)]['next'](!0x1);}}),this[_0x5b24f5(0x9e)](),this[_0x5b24f5(0x153)](),this[_0x5b24f5(0xb9)]();}[_0x5afb4f(0xb3)](){const _0xe03ea9=_0x5afb4f;let _0x2aeeea=this[_0xe03ea9(0x91)][_0xe03ea9(0xc7)](B);_0x2aeeea!=null&&_0x2aeeea[_0xe03ea9(0x16d)]&&this['_dialogService']['open']({'id':q,'title':{'title':this['_localeService']['t'](_0xe03ea9(0x16c))},'children':{'label':_0xe03ea9(0x12c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4cfa41=_0xe03ea9;this[_0x4cfa41(0x85)][_0x4cfa41(0xbc)](q);}});}[_0x5afb4f(0xdc)](){const _0x41ca26=_0x5afb4f;return this[_0x41ca26(0x18f)][_0x41ca26(0xe7)];}['_registerComponent'](){const _0x374a60=_0x5afb4f;this['disposeWithMe'](this['_componentManager'][_0x374a60(0xa1)](_0x374a60(0x12c),this['_createConfigPanelComponent']()));}[_0x5afb4f(0xcc)](){const _0xfbd820=_0x5afb4f;return _0x522d18(()=>{const _0x5c8268=_0x500b;var _0x1d83c3,_0x181217,_0x445a93;return _0x4d247a(z,{'config':this[_0x5c8268(0x162)][_0x5c8268(0xe7)],'mcpCoreConfig':this[_0x5c8268(0x18f)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x5c8268(0x1a3)][_0x5c8268(0xe7)],'connectionStatus$':(_0x1d83c3=this[_0x5c8268(0x148)])==null?void 0x0:_0x1d83c3[_0x5c8268(0xd4)],'connectionError$':(_0x181217=this['_mcpConnectionController'])==null?void 0x0:_0x181217[_0x5c8268(0x79)],'currentSessionId$':(_0x445a93=this[_0x5c8268(0x148)])==null?void 0x0:_0x445a93['sessionId$']});},this[_0xfbd820(0xa7)]);}['_initConfigSync'](){const _0x4f6758=_0x5afb4f;this[_0x4f6758(0x163)](this[_0x4f6758(0x91)][_0x4f6758(0x110)](_0x346c5f)[_0x4f6758(0xc0)](_0x37c073=>{const _0x3f6b65=_0x4f6758;this['_mcpCoreConfig$'][_0x3f6b65(0xc8)](_0x37c073||{});}));let _0x29eb8c=this['_configService'][_0x4f6758(0xc7)](_0x346c5f);this[_0x4f6758(0x18f)]['next'](_0x29eb8c||{}),this['disposeWithMe'](this[_0x4f6758(0x91)][_0x4f6758(0x110)](B)['subscribe'](_0x3d58ae=>{const _0x8b183c=_0x4f6758;this[_0x8b183c(0x162)]['next'](_0x3d58ae||{});}));let _0x2d66d4=this[_0x4f6758(0x91)][_0x4f6758(0xc7)](B);this[_0x4f6758(0x162)]['next'](_0x2d66d4||{});}async[_0x5afb4f(0x153)](){const _0x3c7cb9=_0x5afb4f;let _0x270b2d=this[_0x3c7cb9(0x91)][_0x3c7cb9(0xc7)](B);if(!(_0x270b2d!=null&&_0x270b2d[_0x3c7cb9(0x16d)]))return;let _0x415348=await this['_localStorageService']['getItem'](K);_0x415348&&(this[_0x3c7cb9(0x148)][_0x3c7cb9(0xc5)]({'Authorization':_0x3c7cb9(0x18a)+_0x415348}),this[_0x3c7cb9(0x128)]['next'](_0x415348));}async[_0x5afb4f(0x125)](_0x349393){const _0x2ac1e2=_0x5afb4f;if(!_0x349393[_0x2ac1e2(0x175)]||_0x349393[_0x2ac1e2(0x175)][_0x2ac1e2(0x109)]()[_0x2ac1e2(0x10d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0xb2))};if(_0x349393['apiKey']['trim']()[_0x2ac1e2(0x10d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0x134))};try{let _0xc092fe=await this[_0x2ac1e2(0xa7)][_0x2ac1e2(0x136)](_0x2c9a1c)[_0x2ac1e2(0x186)](_0x349393[_0x2ac1e2(0x175)][_0x2ac1e2(0x109)]());return _0xc092fe[_0x2ac1e2(0xbb)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xc092fe['error']||this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0x146))};}catch(_0x40442e){return console[_0x2ac1e2(0xd2)](_0x2ac1e2(0xc4),_0x40442e),{'isValid':!0x0};}}};J=G([W(0x0,_0xc54b06(_0x2a5bb7)),W(0x1,_0x356992),W(0x2,_0x520faa),W(0x3,_0x104c58),W(0x4,_0x445c31),W(0x5,_0x17b7a7),W(0x6,_0xc54b06(_0x4371f2)),W(0x7,_0xc54b06(_0x3c4182)),W(0x8,_0x45119a),W(0x9,_0xc54b06(_0x2c9a1c))],J);const Y={'id':_0x5afb4f(0x16f),'type':_0x20dd89[_0x5afb4f(0x19d)],'handler':async(_0x25db5b,_0x4d79c2)=>(_0x25db5b[_0x5afb4f(0x136)](J)['showConfigPanel'](),!0x0)};function X(_0x5b9334,_0x2a97fb){const _0x1a6f28=_0x5afb4f;switch(_0x5b9334){case _0x1f5577[_0x1a6f28(0xdb)]:return'mcpStatus.disconnected';case _0x1f5577[_0x1a6f28(0x75)]:return _0x1a6f28(0xf7);case _0x1f5577[_0x1a6f28(0x100)]:return'mcpStatus.connected';case _0x1f5577[_0x1a6f28(0x123)]:switch(_0x2a97fb){case _0x54aad6[_0x1a6f28(0x18b)]:return _0x1a6f28(0xea);case _0x54aad6[_0x1a6f28(0x14e)]:return _0x1a6f28(0x191);case _0x54aad6[_0x1a6f28(0x8b)]:return _0x1a6f28(0x111);case _0x54aad6[_0x1a6f28(0x90)]:return _0x1a6f28(0x160);default:return'mcpStatus.failed';}case _0x1f5577[_0x1a6f28(0x10f)]:return _0x1a6f28(0x8e);default:return _0x1a6f28(0xaf);}}function ce(_0x347661,_0x35fa4c,_0x37874f,_0x9e439b=!0x0){const _0x39d270=_0x5afb4f;let _0x39765e=X(_0x347661,_0x35fa4c),_0x3ac947=_0x37874f['t'](_0x39765e);return _0x9e439b?_0x347661===_0x1f5577['DISCONNECTED']&&_0x35fa4c===_0x54aad6[_0x39d270(0x18b)]?_0x3ac947+_0x39d270(0x10a)+_0x37874f['t'](_0x39d270(0xfe)):_0x347661===_0x1f5577['CONNECTED']?''+_0x3ac947:_0x347661===_0x1f5577[_0x39d270(0xdb)]||_0x347661===_0x1f5577['FAILED']?_0x3ac947+'\x20-\x20'+_0x37874f['t'](_0x39d270(0x98)):_0x3ac947:_0x3ac947;}function le(_0x1eedd2){const _0x57db3d=_0x5afb4f;switch(_0x1eedd2){case _0x1f5577['CONNECTED']:return _0x57db3d(0xd6);case _0x1f5577[_0x57db3d(0x75)]:case _0x1f5577[_0x57db3d(0x10f)]:return'univer-text-yellow-500';case _0x1f5577['FAILED']:case _0x1f5577[_0x57db3d(0xdb)]:return _0x57db3d(0xc9);default:return _0x57db3d(0xb4);}}function ue(_0x5dad3c){const _0x5bfaab=_0x5afb4f;let {status$:_0x59724d,error$:_0x65a89f,onConfigure:_0x439200,showClickable:_0x412e21=!0x0}=_0x5dad3c,_0x208132=_0x115b3d(_0x59724d,_0x1f5577[_0x5bfaab(0xdb)]),_0x1c61df=_0x115b3d(_0x65a89f,_0x54aad6[_0x5bfaab(0x14d)]),_0x3c0194=_0x1561e6(_0x3c4182),_0x3a5219=_0x208132===_0x1f5577[_0x5bfaab(0x100)];_0x208132===_0x1f5577[_0x5bfaab(0x75)]||_0x1f5577['RETRYING'];let _0x4f7f63=_0x3c0194['t'](X(_0x208132,_0x1c61df)),_0x1ac409=ce(_0x208132,_0x1c61df,_0x3c0194,_0x412e21),_0x35fd9a=le(_0x208132),_0x93c4df=_0x4d247a(_0x3a5219?_0x2aaacd:_0x3c2040,{}),_0x2e7ea9=_0x3f364b(()=>{_0x412e21&&_0x439200&&_0x439200();},[_0x412e21,_0x439200]);function _0x41fb85(){const _0x509d07=_0x5bfaab;return _0x52e889(_0x509d07(0x15d),{'className':_0x348762(_0x509d07(0x15b),_0x412e21&&_0x439200&&_0x509d07(0x189)),'role':_0x509d07(0x139),'onClick':_0x412e21&&_0x439200?_0x2e7ea9:void 0x0,'children':[_0x4d247a(_0x509d07(0x15d),{'className':_0x348762('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x35fd9a),'children':_0x93c4df}),_0x4d247a(_0x509d07(0x15d),{'className':_0x509d07(0xa2),'children':_0x4f7f63})]});}return _0x4d247a(_0x5a455a,{'title':_0x1ac409,'placement':'bottom','children':_0x41fb85()});}let Z=class extends _0xd0ff90{constructor(_0x5aec9c,_0x416188,_0x32bf38,_0x27dfdf){const _0x596c40=_0x5afb4f;super(),this[_0x596c40(0xa7)]=_0x5aec9c,this['_connectionController']=_0x416188,this[_0x596c40(0x16b)]=_0x32bf38,this['_configService']=_0x27dfdf,this[_0x596c40(0xf2)](),this[_0x596c40(0x174)]();}[_0x5afb4f(0xf2)](){const _0x664d41=_0x5afb4f;let _0x508cb6=this[_0x664d41(0x91)]['getConfig'](B);_0x508cb6!=null&&_0x508cb6[_0x664d41(0x16d)]&&(this['_connectionController'][_0x664d41(0x172)]=!0x1);}[_0x5afb4f(0x174)](){const _0x2e933c=_0x5afb4f;let _0x85dd3d=this[_0x2e933c(0x91)][_0x2e933c(0xc7)](B);(_0x85dd3d==null?void 0x0:_0x85dd3d[_0x2e933c(0xe8)])!==!0x1&&this[_0x2e933c(0x163)](this[_0x2e933c(0x16b)][_0x2e933c(0xeb)](_0x51161f[_0x2e933c(0x18c)],()=>{const _0x49666d=_0x2e933c;var _0x4d9332;return _0x522d18(de({'status$':this[_0x49666d(0x12d)]['connectionStatus$'],'error$':this[_0x49666d(0x12d)][_0x49666d(0x79)],'onConfigure':()=>this[_0x49666d(0x159)](),'showClickable':(_0x4d9332=_0x85dd3d==null?void 0x0:_0x85dd3d['showDeveloperTools'])==null?!0x1:_0x4d9332}),this[_0x49666d(0xa7)]);}));}[_0x5afb4f(0x159)](){const _0x5b04b7=_0x5afb4f;this[_0x5b04b7(0xa7)]['get'](J)[_0x5b04b7(0xb3)]();}};Z=G([W(0x0,_0xc54b06(_0x2a5bb7)),W(0x1,_0xc54b06(_0x2c9a1c)),W(0x2,_0x356992),W(0x3,_0x520faa)],Z);function de(_0x4b33d6){let {status$:_0x40e9fc,error$:_0x407342,onConfigure:_0x4ef4f1,showClickable:_0x292900}=_0x4b33d6;return function(){return _0x4d247a(ue,{'status$':_0x40e9fc,'error$':_0x407342,'onConfigure':_0x4ef4f1,'showClickable':_0x292900});};}function fe(_0x163f1a){const _0x33019f=_0x5afb4f;return{'id':Y['id'],'type':_0x2bbf5d[_0x33019f(0x17a)],'icon':_0x33019f(0xe1),'title':_0x33019f(0x16c),'tooltip':_0x33019f(0x16c)};}const pe={[_0x1a0368[_0x5afb4f(0x131)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0xd0ff90{constructor(_0x3ccfa9,_0x576428){const _0x38d122=_0x5afb4f;super(),this[_0x38d122(0xc2)]=_0x3ccfa9,this[_0x38d122(0x166)]=_0x576428,this[_0x38d122(0xf8)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x3f2ef8=_0x5afb4f;[Y][_0x3f2ef8(0x11b)](_0x5b59b5=>{const _0x157d42=_0x3f2ef8;this[_0x157d42(0x163)](this['_commandService'][_0x157d42(0x13e)](_0x5b59b5));});}['_initializeMenus'](){const _0x3bfef7=_0x5afb4f;this[_0x3bfef7(0x166)]['mergeMenu'](pe);}};Q=G([W(0x0,_0x195f5d),W(0x1,_0x4f6a1a)],Q);const me={'mcpStatus':{'disconnected':_0x5afb4f(0x11a),'connecting':_0x5afb4f(0xa5),'connected':'MCP\x20Connected','failed':_0x5afb4f(0xf3),'retrying':_0x5afb4f(0x122),'unknown':_0x5afb4f(0x84),'unauthorized':_0x5afb4f(0xbe),'sessionOccupied':_0x5afb4f(0x92),'networkError':_0x5afb4f(0x87),'maxRetriesExceeded':_0x5afb4f(0x152),'clickToConnect':_0x5afb4f(0x132),'clickToConfigure':_0x5afb4f(0x13c)},'mcpConfig':{'title':_0x5afb4f(0x141),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x5afb4f(0x10e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5afb4f(0x188),'enableAuthHint':_0x5afb4f(0x156),'connectionInfo':_0x5afb4f(0xe0),'mcpClientConfig':_0x5afb4f(0xe0),'configInstructions':_0x5afb4f(0x193),'configStepTitle':_0x5afb4f(0x114),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5afb4f(0x151),'configStep3':_0x5afb4f(0xfa),'sessionId':_0x5afb4f(0x19e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5afb4f(0x80),'configParameters':_0x5afb4f(0x9b),'maxRetries':_0x5afb4f(0x9a),'save':_0x5afb4f(0x82),'saving':_0x5afb4f(0xfb),'note1':_0x5afb4f(0xe3),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5afb4f(0x176),'configError':_0x5afb4f(0xa4),'apiApplyInfo':{'title':_0x5afb4f(0x12f),'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':_0x5afb4f(0x9f),'getStarted':_0x5afb4f(0xdf)},'validation':{'apiKeyRequired':_0x5afb4f(0x7a),'apiKeyTooShort':_0x5afb4f(0x8d),'invalidConfig':_0x5afb4f(0xee),'invalidApiKey':_0x5afb4f(0x17c)},'connectionStatus':{'disconnected':_0x5afb4f(0x105),'connecting':'Connecting...','connected':'Connected','failed':_0x5afb4f(0x94),'retrying':_0x5afb4f(0x184)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5afb4f(0x126)}}},he={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x5afb4f(0x121),'connected':'MCP\x20已连接','failed':_0x5afb4f(0xb6),'retrying':_0x5afb4f(0xf4),'unknown':_0x5afb4f(0x190),'unauthorized':_0x5afb4f(0x11c),'sessionOccupied':_0x5afb4f(0x17f),'networkError':_0x5afb4f(0xf1),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5afb4f(0x12a),'clickToConfigure':_0x5afb4f(0x18e)},'mcpConfig':{'title':_0x5afb4f(0x129),'description':_0x5afb4f(0x81),'apiKey':_0x5afb4f(0xe9),'apiKeyPlaceholder':_0x5afb4f(0x19c),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5afb4f(0xd1),'enableAuthHint':_0x5afb4f(0x16a),'connectionInfo':_0x5afb4f(0x1a4),'mcpClientConfig':_0x5afb4f(0x1a4),'configInstructions':_0x5afb4f(0x1a0),'configStepTitle':_0x5afb4f(0x1a1),'configStep1':_0x5afb4f(0x173),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5afb4f(0x89),'sessionId':_0x5afb4f(0xf5),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5afb4f(0x165),'configParameters':'配置参数:','maxRetries':_0x5afb4f(0xca),'save':_0x5afb4f(0x171),'saving':_0x5afb4f(0xdd),'note1':_0x5afb4f(0x167),'note2':_0x5afb4f(0x119),'configSaved':_0x5afb4f(0x7c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x5afb4f(0x107),'description':_0x5afb4f(0x161),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5afb4f(0x10c)},'validation':{'apiKeyRequired':_0x5afb4f(0x78),'apiKeyTooShort':_0x5afb4f(0x117),'invalidConfig':_0x5afb4f(0x11e),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5afb4f(0x11f),'connecting':'连接中...','connected':_0x5afb4f(0xf6),'failed':_0x5afb4f(0x130),'retrying':_0x5afb4f(0x181)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5afb4f(0x15a),'networkError':_0x5afb4f(0xff),'maxRetriesExceeded':_0x5afb4f(0x13d)}}};var ge=_0x5afb4f(0x14c),_e='0.24.0';let $=class extends _0xdb1177{constructor(_0x274417=V,_0xda596c,_0x2de263,_0x1d7c39,_0x4c869b,_0x57be37){const _0x58cb5b=_0x5afb4f;super(),this['_config']=_0x274417,this[_0x58cb5b(0xa7)]=_0xda596c,this[_0x58cb5b(0x91)]=_0x2de263,this[_0x58cb5b(0x16b)]=_0x1d7c39,this[_0x58cb5b(0xa6)]=_0x4c869b,this[_0x58cb5b(0x86)]=_0x57be37;let {..._0x293c51}=_0x9476c9({},V,this[_0x58cb5b(0xda)]);this[_0x58cb5b(0x91)][_0x58cb5b(0x133)](B,_0x293c51);}async[_0x5afb4f(0x11d)](){const _0xaf6578=_0x5afb4f;let _0x363296=[[Z],[J],[Q]];this[_0xaf6578(0xa7)][_0xaf6578(0x7f)](_0x3db57f)||_0x363296[_0xaf6578(0x7e)]([_0x3db57f,{'useClass':_0xe75e09}]),_0x363296[_0xaf6578(0x11b)](_0x109fdf=>this[_0xaf6578(0xa7)][_0xaf6578(0xec)](_0x109fdf)),this['_injector'][_0xaf6578(0x136)](Z),this[_0xaf6578(0xa7)]['get'](J),this[_0xaf6578(0xa7)][_0xaf6578(0x136)](Q);}};U($,_0x5afb4f(0x115),'MCP_UI_PLUGIN'),U($,'packageName',ge),U($,_0x5afb4f(0x97),_e),$=G([_0x59f6a5(_0xe75a44),W(0x1,_0xc54b06(_0x2a5bb7)),W(0x2,_0x520faa),W(0x3,_0x356992),W(0x4,_0x104c58),W(0x5,_0xc54b06(_0x3c4182))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
|
1
|
+
const _0x4a528e=_0x1c93;(function(_0x17a5ff,_0x11f00b){const _0xcb9cc9=_0x1c93,_0x1556b4=_0x17a5ff();while(!![]){try{const _0x107f5b=-parseInt(_0xcb9cc9(0x230))/0x1+-parseInt(_0xcb9cc9(0x156))/0x2+-parseInt(_0xcb9cc9(0x226))/0x3*(-parseInt(_0xcb9cc9(0x20e))/0x4)+parseInt(_0xcb9cc9(0x15d))/0x5*(parseInt(_0xcb9cc9(0x212))/0x6)+parseInt(_0xcb9cc9(0x245))/0x7*(parseInt(_0xcb9cc9(0x13b))/0x8)+-parseInt(_0xcb9cc9(0x16a))/0x9+parseInt(_0xcb9cc9(0x1f2))/0xa;if(_0x107f5b===_0x11f00b)break;else _0x1556b4['push'](_0x1556b4['shift']());}catch(_0x413ac2){_0x1556b4['push'](_0x1556b4['shift']());}}}(_0x4af5,0x91b74));import{CommandType as _0x24f842,DependentOn as _0x301de1,Disposable as _0x104263,ICommandService as _0x3dd060,IConfigService as _0x5c1546,ILocalStorageService as _0x51289c,ILogService as _0x5688b6,Inject as _0x520f38,Injector as _0x52d720,LocaleService as _0x1c055e,Plugin as _0x1904dc,merge as _0x30ce96}from'@univerjs/core';import{MCPConnectionController as _0x59b840,MCPConnectionError as _0x5b2f42,MCPConnectionStatus as _0x12d328,MCP_PLUGIN_CONFIG_KEY as _0x388181,UniverMCPPlugin as _0x2c3451}from'@univerjs-pro/mcp';import{Button as _0x40886f,Input as _0x1b8384,MessageType as _0x43e9d1,Tooltip as _0x17feeb,clsx as _0x4edf12}from'@univerjs/design';import{BuiltInUIPart as _0x2f6062,ComponentManager as _0x347581,IDialogService as _0xf080f,IMenuManagerService as _0x29010f,IMessageService as _0x1e86e2,IUIPartsService as _0x4b1764,MenuItemType as _0x616908,RibbonStartGroup as _0x4b7d34,connectInjector as _0x3eb632,useDependency as _0x27fbf1,useObservable as _0x4e5559}from'@univerjs/ui';import{BehaviorSubject as _0x1489c4}from'rxjs';import{CheckMarkIcon as _0x34eb61,CloseIcon as _0x520d07,HelpIcon as _0x28aa91,OffLineIcon as _0x178dec,OnLineIcon as _0xfd0da4}from'@univerjs/icons';import{useCallback as _0x2f9a45,useState as _0x4b5271}from'react';import{jsx as _0x1b0256,jsxs as _0x1a9f70}from'react/jsx-runtime';import{ISocketService as _0x255d94,WebSocketService as _0x11bb76}from'@univerjs/network';function z(_0x46eb76){const _0x2a05d1=_0x1c93;var _0x2b1d77,_0x403590;let {mcpCoreConfig:_0x1dcd88,onSave:_0x535973,loading:_0x2b8ebb=!0x1,config:_0x432097,connectionStatus$:_0x11f7e1,connectionError$:_0x425667,currentApiKey$:_0x397c46,currentSessionId$:_0x365a95}=_0x46eb76,_0x1b1753=_0x27fbf1(_0x1c055e),_0x473dc4=_0x4e5559(_0x11f7e1,_0x12d328[_0x2a05d1(0x205)]),_0x320a4c=_0x4e5559(_0x425667,_0x5b2f42[_0x2a05d1(0x215)]),_0x479a4e=_0x4e5559(_0x365a95,''),[_0x1ce765,_0xc9cb53]=_0x4b5271(_0x4e5559(_0x397c46,'')||''),_0x433cc4=_0x432097['showDeveloperTools']&&_0x1dcd88[_0x2a05d1(0x227)]&&(_0x1dcd88[_0x2a05d1(0x227)]['includes'](_0x2a05d1(0x149))||_0x1dcd88[_0x2a05d1(0x227)][_0x2a05d1(0x1f6)](_0x2a05d1(0x122))),_0x3fd400=(_0x2b1d77=_0x1dcd88[_0x2a05d1(0x227)])==null?void 0x0:_0x2b1d77['includes'](_0x2a05d1(0x149)),_0x58457c=(_0x403590=_0x1dcd88['mcpServerUrl'])==null?void 0x0:_0x403590[_0x2a05d1(0x1f6)](_0x2a05d1(0x122)),_0x48dfc0=_0x3fd400?_0x2a05d1(0x1ba):'https://console.univer.ai',_0x512318=_0x432097[_0x2a05d1(0x1d8)]&&(_0x3fd400||_0x58457c),[_0x576e05,_0xda3b36]=_0x4b5271(!_0x1ce765[_0x2a05d1(0x240)]()),_0x4c28d6=(_0x512424,_0x1ac0f1)=>{const _0x9f9a6a=_0x2a05d1;if(_0x1ac0f1===_0x5b2f42['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x512424){case _0x12d328[_0x9f9a6a(0x169)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x12d328[_0x9f9a6a(0x244)]:case _0x12d328[_0x9f9a6a(0x1bb)]:return _0x9f9a6a(0x231);case _0x12d328['FAILED']:return _0x9f9a6a(0x14a);default:return _0x9f9a6a(0x150);}},_0x16c4ac=(_0x5ddacc,_0x130e65)=>{const _0x31c4d6=_0x2a05d1;if(_0x130e65===_0x5b2f42[_0x31c4d6(0x1e6)])return _0x31c4d6(0x157);switch(_0x5ddacc){case _0x12d328[_0x31c4d6(0x169)]:return _0x31c4d6(0x1ac);case _0x12d328[_0x31c4d6(0x244)]:case _0x12d328[_0x31c4d6(0x1bb)]:return'univer-bg-blue-500';case _0x12d328[_0x31c4d6(0x127)]:return _0x31c4d6(0x157);default:return _0x31c4d6(0x131);}},_0x18753d=_0x31d846=>{const _0x28e3a7=_0x2a05d1;switch(_0x31d846){case _0x12d328[_0x28e3a7(0x169)]:return _0x1b1753['t'](_0x28e3a7(0x1c1));case _0x12d328[_0x28e3a7(0x244)]:return _0x1b1753['t'](_0x28e3a7(0x165));case _0x12d328[_0x28e3a7(0x127)]:return _0x1b1753['t'](_0x28e3a7(0x1e9));case _0x12d328['RETRYING']:return _0x1b1753['t'](_0x28e3a7(0x137));default:return _0x1b1753['t'](_0x28e3a7(0x18e));}},_0x43016f=_0x43dc54=>{const _0x17a83f=_0x2a05d1;switch(_0x43dc54){case _0x5b2f42['UNAUTHORIZED']:return _0x1b1753['t'](_0x17a83f(0x163));case _0x5b2f42['SESSION_ID_OCCUPIED']:return _0x1b1753['t']('mcpConfig.connectionError.sessionOccupied');case _0x5b2f42['NETWORK_ERROR']:return _0x1b1753['t'](_0x17a83f(0x233));case _0x5b2f42['MAX_RETRIES_EXCEEDED']:return _0x1b1753['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x425feb=_0x2f9a45(()=>{const _0x406b31=_0x2a05d1;_0x535973({..._0x1dcd88,'apiKey':_0x1ce765[_0x406b31(0x240)](),'enableAuth':!0x0});},[_0x1dcd88,_0x1ce765,!0x0,_0x535973]),_0x135844=_0x1ce765[_0x2a05d1(0x240)]()[_0x2a05d1(0x192)]>0x0;return _0x1a9f70('div',{'className':_0x2a05d1(0x1d4),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x1a9f70('div',{'className':_0x2a05d1(0x1a7),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x13c),'children':_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-white','children':'⚙'})}),_0x1b0256('div',{'children':_0x1b0256('p',{'className':_0x2a05d1(0x1be),'children':_0x1b1753['t'](_0x2a05d1(0x18d))})})]})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x186),'children':[_0x1b0256('div',{'className':_0x4edf12(_0x2a05d1(0x22e),_0x4c28d6(_0x473dc4,_0x320a4c)),'children':_0x1a9f70('div',{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x4edf12(_0x2a05d1(0x158),_0x16c4ac(_0x473dc4,_0x320a4c))}),_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x1df),'children':_0x18753d(_0x473dc4)})]})}),_0x320a4c!==_0x5b2f42['NONE']&&(_0x473dc4===_0x12d328[_0x2a05d1(0x127)]||_0x320a4c===_0x5b2f42[_0x2a05d1(0x1e6)])&&_0x1b0256('div',{'className':_0x2a05d1(0x18b),'children':_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x13d),'children':[_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x1b0256('p',{'className':_0x2a05d1(0x19c),'children':_0x43016f(_0x320a4c)})]})})]}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x10e),'children':_0x1a9f70('div',{'className':_0x2a05d1(0x11f),'children':[_0x1a9f70('div',{'className':_0x2a05d1(0x1d2),'children':[_0x1a9f70(_0x2a05d1(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'🔑'}),'\x20',_0x1b1753['t'](_0x2a05d1(0x203)),_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x216),'children':'*'}),_0x433cc4&&_0x1b0256('a',{'className':_0x2a05d1(0x1bf),'title':_0x1b1753['t'](_0x2a05d1(0x211)),'role':_0x2a05d1(0x13e),'onClick':()=>_0xda3b36(!0x0),'children':_0x1b0256(_0x28aa91,{})})]}),_0x1b0256(_0x1b8384,{'type':'text','placeholder':_0x1b1753['t'](_0x2a05d1(0x1da)),'value':_0x1ce765,'disabled':_0x2b8ebb,'autoComplete':_0x2a05d1(0x164),'onChange':_0xc9cb53}),_0x1b0256('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1b1753['t'](_0x2a05d1(0x1b3))})]}),_0x433cc4&&_0x576e05&&_0x1a9f70(_0x2a05d1(0x12b),{'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':[_0x1b0256('a',{'className':_0x2a05d1(0x1c4),'role':_0x2a05d1(0x13e),'onClick':()=>_0xda3b36(!0x1),'children':_0x1b0256(_0x520d07,{'className':_0x2a05d1(0x15f)})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x10f),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x1f4),'children':_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-blue-600','children':'🚀'})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x148),'children':[_0x1b0256('h4',{'className':_0x2a05d1(0x1d9),'children':_0x1b1753['t'](_0x2a05d1(0x211))}),_0x1b0256('p',{'className':_0x2a05d1(0x22a),'children':_0x1b1753['t'](_0x2a05d1(0x20d))}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x132),'children':_0x512318&&_0x1a9f70('a',{'className':_0x2a05d1(0x14d),'href':_0x48dfc0,'target':_0x2a05d1(0x221),'rel':_0x2a05d1(0x1c2),'children':[_0x1b0256('span',{'children':'🤖'}),_0x1b1753['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x1b1753['t'](_0x2a05d1(0x114))]})]})]})]}),_0x432097[_0x2a05d1(0x1d8)]&&_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x179),'children':[_0x1a9f70('h4',{'className':_0x2a05d1(0x17e),'children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'🔗'}),'\x20',_0x1b1753['t'](_0x2a05d1(0x1cc))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x167),'children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-space-y-3','children':[_0x1b0256('p',{'className':_0x2a05d1(0x206),'children':_0x1b1753['t'](_0x2a05d1(0x168))}),_0x1a9f70('div',{'className':_0x2a05d1(0x1d2),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x16b),'children':_0x1b1753['t'](_0x2a05d1(0x11d))}),_0x1a9f70('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x15b),'children':'1'}),_0x1b1753['t'](_0x2a05d1(0x1cd))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b0256(_0x2a05d1(0x17d),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x1b1753['t'](_0x2a05d1(0x213))]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b0256(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x15b),'children':'3'}),_0x1b1753['t'](_0x2a05d1(0x196))]})]})]})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1d2),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x16b),'children':_0x2a05d1(0x246)}),_0x1b0256('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x1b0256('pre',{'className':_0x2a05d1(0x237),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x2a05d1(0x1a0)+(_0x479a4e||_0x2a05d1(0x22b)),'type':_0x2a05d1(0x198),'headers':{'Authorization':_0x2a05d1(0x1f7)+(_0x1ce765||_0x2a05d1(0x1ce))}}}},null,0x2)})})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1ca),'children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x16b),'children':_0x1b1753['t'](_0x2a05d1(0x147))}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x1d2),'children':[_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x208)}),_0x1a9f70('div',{'className':_0x2a05d1(0x1bc),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x234),'children':_0x2a05d1(0x145)}),_0x1b0256('div',{'className':_0x2a05d1(0x249),'children':_0x1b1753['t'](_0x2a05d1(0x112))})]})]}),_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x20c),'children':[_0x1b0256('div',{'className':_0x2a05d1(0x208)}),_0x1a9f70(_0x2a05d1(0x12b),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1b0256('div',{'className':_0x2a05d1(0x234),'children':_0x2a05d1(0x14f)}),_0x1b0256('div',{'className':_0x2a05d1(0x249),'children':_0x1b1753['t'](_0x2a05d1(0x228))})]})]})]})]})]})]}),_0x1b0256(_0x40886f,{'onClick':_0x425feb,'disabled':!_0x135844||_0x2b8ebb,'className':_0x2a05d1(0x201),'children':_0x2b8ebb?_0x1a9f70(_0x2a05d1(0x17d),{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x2a05d1(0x17d),{'children':'⟲'}),_0x1b1753['t'](_0x2a05d1(0x1ed))]}):_0x1a9f70('span',{'className':_0x2a05d1(0x12f),'children':[_0x1b0256(_0x34eb61,{}),_0x1b1753['t'](_0x2a05d1(0x185))]})}),_0x1b0256(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x21b),'children':_0x1a9f70(_0x2a05d1(0x12b),{'className':_0x2a05d1(0x17f),'children':[_0x1b0256('span',{'className':_0x2a05d1(0x133),'children':'💡'}),_0x1a9f70('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1b0256('div',{'className':_0x2a05d1(0x12c),'children':'Configuration\x20Notes:'}),_0x1a9f70(_0x2a05d1(0x12b),{'children':['•',_0x1b1753['t'](_0x2a05d1(0x243))]}),_0x1a9f70(_0x2a05d1(0x12b),{'children':['•',_0x1b1753['t'](_0x2a05d1(0x23c))]})]})]})})]})})]});}function _0x4af5(){const _0x6c020=['MCP\x20状态未知','getCurrentConfig','getConfig','validateApiKey','_initAutoConnect','mcpConfig.apiKeyHint','connectionError$','error','Enter\x20your\x20API\x20key','default','MCP:\x20Network\x20Error','已连接','https://console.univer.plus','RETRYING','univer-min-w-0\x20univer-flex-1','_injector','univer-text-sm\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','forEach','mcpConfig.connectionStatus.connected','noopener\x20noreferrer','open','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','Configuration\x20Parameters:','MCP\x20连接中...','mcp-ui.config','Configuration\x20Steps:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-space-y-3','has','mcpConfig.connectionInfo','mcpConfig.configStep1','<API_KEY>','function','version','_mcpCoreConfig$','univer-space-y-2','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.failed','网络连接错误,请检查您的网络连接','showDeveloperTools','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiKeyPlaceholder','defineProperty','mcpStatus.unknown','请输入您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','univer-text-sm\x20univer-font-medium','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','getOwnPropertyDescriptor','@univerjs-pro/mcp-ui','MCP\x20已断开','mcpStatus.retrying','MAX_RETRIES_EXCEEDED','UNAUTHORIZED','_initializeMenus','_configService','mcpConfig.connectionStatus.failed','_validateConfig','value','Click\x20to\x20configure\x20MCP','mcpConfig.saving','_connectionController','复制以下\x20JSON\x20配置','连接中...','_apiKey$','6792360wcqPyp','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcp-ui.command.openConfigPanel','includes','Bearer\x20','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','_loadStoredApiKey','mcpConfig.configError','MCP\x20Disconnected','_config','close','几秒钟内获取您的\x20API\x20密钥','subscribe','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','_registerComponent','mcpConfig.apiKey','保存配置','DISCONNECTED','univer-text-xs\x20univer-text-gray-600','配置保存成功','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Univer\x20AI\x20控制台','MCP\x20连接失败','重连中...','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.apiApplyInfo.description','4ecyqJe','MCPConfigPanel','sessionId$','mcpConfig.apiApplyInfo.title','6THUfdi','mcpConfig.configStep2','toPrimitive','NONE','univer-text-red-500','univer-text-yellow-500','API\x20密钥长度至少需要\x2010\x20位','_uiPartsService','_initConfigSync','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-gray-500','mcpStatus.clickToConfigure','_mcpConnectionController','setConfig','isValid','_blank','iterator','OTHERS','Connecting...','配置无效','514497vNHLiT','mcpServerUrl','mcpConfig.authorizationDescription','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','<SESSION_ID>','Error','errorMessage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','您的\x20API\x20密钥安全存储在本地存储中','194166Ggyolr','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_componentManager','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20配置','_initializeCommands','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_localStorageService','mcp-config-dialog','removeItem','symbol','mcpConfig.note2','mcpConfig.validation.invalidApiKey','_createConfigPanelComponent','MCP\x20Client\x20Configuration','trim','Failed\x20to\x20save\x20configuration','SESSION_ID_OCCUPIED','mcpConfig.note1','CONNECTING','7564501duMupm','MCP\x20Configuration','registerComponent','Configuration\x20saved\x20successfully','univer-text-xs\x20univer-text-gray-500','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','prototype','onStarting','mcpConfig.sessionIdDescription','_config$','mcpConfig.apiApplyInfo.getStarted','get','MCP:\x20网络错误','MCP\x20Connection\x20Failed','_messageService','_commandService','mergeMenu','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_dialogService','mcpConfig.configStepTitle','保存中...','univer-space-y-5','object','Connection\x20Failed','univer.ai','权限验证失败,请检查您的\x20API\x20密钥','未连接','点击连接\x20MCP','mcpConfig.title','FAILED','API\x20密钥不能为空','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','div','univer-font-medium','showStatus','_loading$','univer-flex\x20univer-items-center\x20univer-gap-2','MCP_UI_PLUGIN','univer-bg-gray-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-shrink-0\x20univer-text-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','配置保存失败','超出最大重试次数,请稍后再试','mcpConfig.connectionStatus.retrying','Retrying...','最大重试次数','warn','8LVVnwZ','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-items-start\x20univer-gap-2','button','启用身份验证以获得安全连接','add','mcpStatus.networkError','connectionStatus$','mcpStatus.maxRetriesExceeded','_logService','univer_session_id:','配置更改将立即生效','mcpConfig.configParameters','univer-flex-1','univer.plus','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.configSaved','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','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','\x20-\x20','Authorization:','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','HEADER_MENU','BUTTON','string','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2267618dOuidq','univer-bg-red-500','univer-size-2\x20univer-rounded-full','__setCustomHeaders','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','show','284855XzjZbf','MCP\x20客户端配置','univer-size-4','NETWORK_ERROR','MCP:\x20会话\x20ID\x20已被占用','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.connectionError.unauthorized','off','mcpConfig.connectionStatus.connecting','API\x20Key','univer-space-y-4','mcpConfig.configInstructions','CONNECTED','571698xpHMlT','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥','_initStatusComponent','mcp.apiKey','MCP\x20Unknown\x20Status','_handleConfigSave','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','call','0.25.0','MCP\x20已连接','Session\x20ID','MCP\x20重连中...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','点击配置\x20MCP','univer-text-green-500','span','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-gap-3','showConfigPanel','apiKey','mcpStatus.unauthorized','_handleConfigure','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.save','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.validation.apiKeyRequired','registerCommand','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Univer\x20AI\x20Console','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Success','mcpConfig.description','mcpConfig.connectionStatus.disconnected','register','push','什么是\x20API\x20密钥?','length','next','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.configStep3','enableAutoConnect','http','pluginName','mcpConfig.validation.apiKeyTooShort','mcpStatus.connected','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_localeService','API\x20key\x20is\x20required','https://mcp.univer.ai/mcp/?univer_session_id=','disposeWithMe','MCP:\x20超出最大重试次数','constructor','label','Connected','setItem','univer-flex\x20univer-items-center\x20univer-gap-3','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','decorate','MCP:\x20Unauthorized','API\x20密钥无效,请检查密钥是否正确','univer-bg-green-500','MCP\x20Connecting...'];_0x4af5=function(){return _0x6c020;};return _0x4af5();}const B=_0x4a528e(0x1c7),V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x22f856){'@babel/helpers - typeof';const _0x4ce639=_0x4a528e;return H=typeof Symbol==_0x4ce639(0x1cf)&&typeof Symbol[_0x4ce639(0x222)]==_0x4ce639(0x23b)?function(_0x3b3ecf){return typeof _0x3b3ecf;}:function(_0x2d4079){const _0xf5be9c=_0x4ce639;return _0x2d4079&&typeof Symbol==_0xf5be9c(0x1cf)&&_0x2d4079[_0xf5be9c(0x1a3)]===Symbol&&_0x2d4079!==Symbol[_0xf5be9c(0x110)]?_0xf5be9c(0x23b):typeof _0x2d4079;},H(_0x22f856);}function oe(_0x1b2fb7,_0x4484f1){const _0x284556=_0x4a528e;if(H(_0x1b2fb7)!=_0x284556(0x120)||!_0x1b2fb7)return _0x1b2fb7;var _0x4160db=_0x1b2fb7[Symbol[_0x284556(0x214)]];if(_0x4160db!==void 0x0){var _0x552ddf=_0x4160db[_0x284556(0x173)](_0x1b2fb7,_0x4484f1||_0x284556(0x1b7));if(H(_0x552ddf)!=_0x284556(0x120))return _0x552ddf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4484f1===_0x284556(0x153)?String:Number)(_0x1b2fb7);}function se(_0x43e022){const _0x4162b0=_0x4a528e;var _0x44dd41=oe(_0x43e022,_0x4162b0(0x153));return H(_0x44dd41)==_0x4162b0(0x23b)?_0x44dd41:_0x44dd41+'';}function U(_0xc6b90b,_0x5f0f60,_0x317fa5){const _0x1fbeee=_0x4a528e;return(_0x5f0f60=se(_0x5f0f60))in _0xc6b90b?Object[_0x1fbeee(0x1db)](_0xc6b90b,_0x5f0f60,{'value':_0x317fa5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc6b90b[_0x5f0f60]=_0x317fa5,_0xc6b90b;}function W(_0x8a53e4,_0x54bf54){return function(_0xd0b5d3,_0x20059b){_0x54bf54(_0xd0b5d3,_0x20059b,_0x8a53e4);};}function G(_0x246257,_0x10ce85,_0x3b06f0,_0x34c465){const _0x50abc4=_0x4a528e;var _0x35043f=arguments[_0x50abc4(0x192)],_0x5543aa=_0x35043f<0x3?_0x10ce85:_0x34c465===null?_0x34c465=Object[_0x50abc4(0x1e1)](_0x10ce85,_0x3b06f0):_0x34c465,_0x1c82d2;if(typeof Reflect=='object'&&typeof Reflect[_0x50abc4(0x1a9)]==_0x50abc4(0x1cf))_0x5543aa=Reflect[_0x50abc4(0x1a9)](_0x246257,_0x10ce85,_0x3b06f0,_0x34c465);else{for(var _0x566ae8=_0x246257[_0x50abc4(0x192)]-0x1;_0x566ae8>=0x0;_0x566ae8--)(_0x1c82d2=_0x246257[_0x566ae8])&&(_0x5543aa=(_0x35043f<0x3?_0x1c82d2(_0x5543aa):_0x35043f>0x3?_0x1c82d2(_0x10ce85,_0x3b06f0,_0x5543aa):_0x1c82d2(_0x10ce85,_0x3b06f0))||_0x5543aa);}return _0x35043f>0x3&&_0x5543aa&&Object['defineProperty'](_0x10ce85,_0x3b06f0,_0x5543aa),_0x5543aa;}const K=_0x4a528e(0x16e),q=_0x4a528e(0x239);let J=class extends _0x104263{constructor(_0x15fbc4,_0x17e476,_0x3e254f,_0x58855f,_0x441fcc,_0x167094,_0x28c367,_0x14fc1f,_0x1db398,_0x308981){const _0x56a2f1=_0x4a528e;super(),this[_0x56a2f1(0x1bd)]=_0x15fbc4,this[_0x56a2f1(0x219)]=_0x17e476,this[_0x56a2f1(0x1e8)]=_0x3e254f,this[_0x56a2f1(0x238)]=_0x58855f,this['_dialogService']=_0x441fcc,this[_0x56a2f1(0x118)]=_0x167094,this[_0x56a2f1(0x232)]=_0x28c367,this['_localeService']=_0x14fc1f,this[_0x56a2f1(0x144)]=_0x1db398,this[_0x56a2f1(0x21e)]=_0x308981,U(this,_0x56a2f1(0x12e),new _0x1489c4(!0x1)),U(this,_0x56a2f1(0x1d1),new _0x1489c4({})),U(this,_0x56a2f1(0x113),new _0x1489c4({})),U(this,_0x56a2f1(0x1f1),new _0x1489c4('')),U(this,'_handleConfigSave',async _0x2b067a=>{const _0x2faa4b=_0x56a2f1;this[_0x2faa4b(0x12e)][_0x2faa4b(0x193)](!0x0);try{var _0x3be551,_0x3beec7;let _0x475efd=await this[_0x2faa4b(0x1ea)](_0x2b067a);if(!_0x475efd['isValid']){this[_0x2faa4b(0x118)][_0x2faa4b(0x15c)]({'type':_0x43e9d1[_0x2faa4b(0x22c)],'content':_0x475efd[_0x2faa4b(0x22d)]||this[_0x2faa4b(0x19e)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2b067a[_0x2faa4b(0x181)]?await this[_0x2faa4b(0x238)][_0x2faa4b(0x1a6)](K,_0x2b067a[_0x2faa4b(0x181)][_0x2faa4b(0x240)]()):await this[_0x2faa4b(0x238)][_0x2faa4b(0x23a)](K),this[_0x2faa4b(0x1f1)]['next'](((_0x3be551=_0x2b067a[_0x2faa4b(0x181)])==null?void 0x0:_0x3be551['trim']())||''),this[_0x2faa4b(0x21e)][_0x2faa4b(0x159)]({'Authorization':'Bearer\x20'+((_0x3beec7=_0x2b067a['apiKey'])==null?void 0x0:_0x3beec7[_0x2faa4b(0x240)]())}),this[_0x2faa4b(0x118)]['show']({'type':_0x43e9d1[_0x2faa4b(0x18c)],'content':this[_0x2faa4b(0x19e)]['t'](_0x2faa4b(0x14b))}),setTimeout(()=>{const _0x593378=_0x2faa4b;this[_0x593378(0x11c)][_0x593378(0x1fe)](q);},0x320);}catch(_0x1d2732){this[_0x2faa4b(0x144)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1d2732),this['_messageService']['show']({'type':_0x43e9d1[_0x2faa4b(0x22c)],'content':this[_0x2faa4b(0x19e)]['t'](_0x2faa4b(0x1fb))});}finally{this[_0x2faa4b(0x12e)][_0x2faa4b(0x193)](!0x1);}}),this[_0x56a2f1(0x21a)](),this['_loadStoredApiKey'](),this['_registerComponent']();}['showConfigPanel'](){const _0x59961c=_0x4a528e;let _0x4388bd=this[_0x59961c(0x1e8)][_0x59961c(0x1b0)](B);_0x4388bd!=null&&_0x4388bd[_0x59961c(0x1d8)]&&this[_0x59961c(0x11c)][_0x59961c(0x1c3)]({'id':q,'title':{'title':this['_localeService']['t'](_0x59961c(0x126))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3f7e09=_0x59961c;this[_0x3f7e09(0x11c)][_0x3f7e09(0x1fe)](q);}});}[_0x4a528e(0x1af)](){const _0x5307c7=_0x4a528e;return this[_0x5307c7(0x1d1)][_0x5307c7(0x1eb)];}[_0x4a528e(0x202)](){const _0x2cba83=_0x4a528e;this[_0x2cba83(0x1a1)](this['_componentManager'][_0x2cba83(0x18f)](_0x2cba83(0x20f),this[_0x2cba83(0x23e)]()));}['_createConfigPanelComponent'](){const _0x35e1a8=_0x4a528e;return _0x3eb632(()=>{const _0x40a66d=_0x1c93;var _0x5d0056,_0x5a5c4e,_0x152e9d;return _0x1b0256(z,{'config':this[_0x40a66d(0x113)][_0x40a66d(0x1eb)],'mcpCoreConfig':this[_0x40a66d(0x1d1)][_0x40a66d(0x1eb)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x40a66d(0x170)],'loading':this[_0x40a66d(0x12e)][_0x40a66d(0x1eb)],'connectionStatus$':(_0x5d0056=this[_0x40a66d(0x21e)])==null?void 0x0:_0x5d0056[_0x40a66d(0x142)],'connectionError$':(_0x5a5c4e=this[_0x40a66d(0x21e)])==null?void 0x0:_0x5a5c4e[_0x40a66d(0x1b4)],'currentSessionId$':(_0x152e9d=this[_0x40a66d(0x21e)])==null?void 0x0:_0x152e9d[_0x40a66d(0x210)]});},this[_0x35e1a8(0x1bd)]);}[_0x4a528e(0x21a)](){const _0x34fb05=_0x4a528e;this['disposeWithMe'](this[_0x34fb05(0x1e8)]['subscribeConfigValue$'](_0x388181)[_0x34fb05(0x200)](_0xe4b60d=>{const _0x95e442=_0x34fb05;this[_0x95e442(0x1d1)][_0x95e442(0x193)](_0xe4b60d||{});}));let _0x5f0c04=this[_0x34fb05(0x1e8)][_0x34fb05(0x1b0)](_0x388181);this[_0x34fb05(0x1d1)][_0x34fb05(0x193)](_0x5f0c04||{}),this[_0x34fb05(0x1a1)](this[_0x34fb05(0x1e8)]['subscribeConfigValue$'](B)['subscribe'](_0x589a37=>{const _0x423bcd=_0x34fb05;this[_0x423bcd(0x113)][_0x423bcd(0x193)](_0x589a37||{});}));let _0x4234d1=this['_configService'][_0x34fb05(0x1b0)](B);this[_0x34fb05(0x113)][_0x34fb05(0x193)](_0x4234d1||{});}async[_0x4a528e(0x1fa)](){const _0x1c332e=_0x4a528e;let _0x12fa6e=this[_0x1c332e(0x1e8)][_0x1c332e(0x1b0)](B);if(!(_0x12fa6e!=null&&_0x12fa6e['showDeveloperTools']))return;let _0x1c4c6b=await this[_0x1c332e(0x238)]['getItem'](K);_0x1c4c6b&&(this['_mcpConnectionController'][_0x1c332e(0x159)]({'Authorization':_0x1c332e(0x1f7)+_0x1c4c6b}),this[_0x1c332e(0x1f1)][_0x1c332e(0x193)](_0x1c4c6b));}async[_0x4a528e(0x1ea)](_0x483b07){const _0x4b4390=_0x4a528e;if(!_0x483b07[_0x4b4390(0x181)]||_0x483b07[_0x4b4390(0x181)]['trim']()[_0x4b4390(0x192)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x187))};if(_0x483b07[_0x4b4390(0x181)]['trim']()[_0x4b4390(0x192)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x19a))};try{let _0x3d5fab=await this[_0x4b4390(0x1bd)][_0x4b4390(0x115)](_0x59b840)[_0x4b4390(0x1b1)](_0x483b07[_0x4b4390(0x181)][_0x4b4390(0x240)]());return _0x3d5fab[_0x4b4390(0x220)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3d5fab[_0x4b4390(0x1b5)]||this[_0x4b4390(0x19e)]['t'](_0x4b4390(0x23d))};}catch(_0x54d875){return console[_0x4b4390(0x13a)](_0x4b4390(0x189),_0x54d875),{'isValid':!0x0};}}};J=G([W(0x0,_0x520f38(_0x52d720)),W(0x1,_0x4b1764),W(0x2,_0x5c1546),W(0x3,_0x51289c),W(0x4,_0xf080f),W(0x5,_0x1e86e2),W(0x6,_0x520f38(_0x347581)),W(0x7,_0x520f38(_0x1c055e)),W(0x8,_0x5688b6),W(0x9,_0x520f38(_0x59b840))],J);const Y={'id':_0x4a528e(0x1f5),'type':_0x24f842['COMMAND'],'handler':async(_0xf73df9,_0x3d00e1)=>(_0xf73df9[_0x4a528e(0x115)](J)[_0x4a528e(0x180)](),!0x0)};function X(_0x3d3467,_0x533f04){const _0x427283=_0x4a528e;switch(_0x3d3467){case _0x12d328['DISCONNECTED']:return'mcpStatus.disconnected';case _0x12d328['CONNECTING']:return'mcpStatus.connecting';case _0x12d328[_0x427283(0x169)]:return _0x427283(0x19b);case _0x12d328[_0x427283(0x127)]:switch(_0x533f04){case _0x5b2f42['UNAUTHORIZED']:return _0x427283(0x182);case _0x5b2f42[_0x427283(0x242)]:return'mcpStatus.sessionOccupied';case _0x5b2f42[_0x427283(0x160)]:return _0x427283(0x141);case _0x5b2f42[_0x427283(0x1e5)]:return _0x427283(0x143);default:return _0x427283(0x1d6);}case _0x12d328[_0x427283(0x1bb)]:return _0x427283(0x1e4);default:return _0x427283(0x1dc);}}function ce(_0x337b23,_0x137f2b,_0xd25106,_0x45ed3d=!0x0){const _0x362dd6=_0x4a528e;let _0x42274b=X(_0x337b23,_0x137f2b),_0x418a91=_0xd25106['t'](_0x42274b);return _0x45ed3d?_0x337b23===_0x12d328['DISCONNECTED']&&_0x137f2b===_0x5b2f42[_0x362dd6(0x1e6)]?_0x418a91+_0x362dd6(0x14e)+_0xd25106['t'](_0x362dd6(0x21d)):_0x337b23===_0x12d328[_0x362dd6(0x169)]?''+_0x418a91:_0x337b23===_0x12d328['DISCONNECTED']||_0x337b23===_0x12d328[_0x362dd6(0x127)]?_0x418a91+_0x362dd6(0x14e)+_0xd25106['t']('mcpStatus.clickToConnect'):_0x418a91:_0x418a91;}function le(_0x3ef4c5){const _0x19b306=_0x4a528e;switch(_0x3ef4c5){case _0x12d328['CONNECTED']:return _0x19b306(0x17c);case _0x12d328[_0x19b306(0x244)]:case _0x12d328[_0x19b306(0x1bb)]:return _0x19b306(0x217);case _0x12d328[_0x19b306(0x127)]:case _0x12d328[_0x19b306(0x205)]:return _0x19b306(0x216);default:return _0x19b306(0x21c);}}function ue(_0x5253fc){const _0x4c0bc2=_0x4a528e;let {status$:_0x4353c8,error$:_0x584cda,onConfigure:_0x39033b,showClickable:_0x540f86=!0x0}=_0x5253fc,_0x4e8724=_0x4e5559(_0x4353c8,_0x12d328[_0x4c0bc2(0x205)]),_0x5da686=_0x4e5559(_0x584cda,_0x5b2f42[_0x4c0bc2(0x215)]),_0x247edd=_0x27fbf1(_0x1c055e),_0x188334=_0x4e8724===_0x12d328[_0x4c0bc2(0x169)];_0x4e8724===_0x12d328[_0x4c0bc2(0x244)]||_0x12d328[_0x4c0bc2(0x1bb)];let _0x4363ad=_0x247edd['t'](X(_0x4e8724,_0x5da686)),_0x347bad=ce(_0x4e8724,_0x5da686,_0x247edd,_0x540f86),_0x4d105a=le(_0x4e8724),_0x226a8f=_0x1b0256(_0x188334?_0xfd0da4:_0x178dec,{}),_0x442286=_0x2f9a45(()=>{_0x540f86&&_0x39033b&&_0x39033b();},[_0x540f86,_0x39033b]);function _0x5c1914(){const _0x5e1478=_0x4c0bc2;return _0x1a9f70('div',{'className':_0x4edf12('univer-flex\x20univer-items-center',_0x540f86&&_0x39033b&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':'button','onClick':_0x540f86&&_0x39033b?_0x442286:void 0x0,'children':[_0x1b0256(_0x5e1478(0x12b),{'className':_0x4edf12('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x4d105a),'children':_0x226a8f}),_0x1b0256(_0x5e1478(0x12b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4363ad})]});}return _0x1b0256(_0x17feeb,{'title':_0x347bad,'placement':'bottom','children':_0x5c1914()});}let Z=class extends _0x104263{constructor(_0x31cf5c,_0x1ba9b2,_0x431bb7,_0x3d735f){const _0x3e64fc=_0x4a528e;super(),this[_0x3e64fc(0x1bd)]=_0x31cf5c,this[_0x3e64fc(0x1ee)]=_0x1ba9b2,this[_0x3e64fc(0x219)]=_0x431bb7,this[_0x3e64fc(0x1e8)]=_0x3d735f,this['_initAutoConnect'](),this[_0x3e64fc(0x16d)]();}[_0x4a528e(0x1b2)](){const _0x444319=_0x4a528e;let _0x376a0f=this['_configService'][_0x444319(0x1b0)](B);_0x376a0f!=null&&_0x376a0f['showDeveloperTools']&&(this[_0x444319(0x1ee)][_0x444319(0x197)]=!0x1);}[_0x4a528e(0x16d)](){const _0x3a35e8=_0x4a528e;let _0x16226b=this[_0x3a35e8(0x1e8)]['getConfig'](B);(_0x16226b==null?void 0x0:_0x16226b[_0x3a35e8(0x12d)])!==!0x1&&this[_0x3a35e8(0x1a1)](this[_0x3a35e8(0x219)][_0x3a35e8(0x247)](_0x2f6062[_0x3a35e8(0x151)],()=>{const _0xac0222=_0x3a35e8;var _0x3e2685;return _0x3eb632(de({'status$':this[_0xac0222(0x1ee)]['connectionStatus$'],'error$':this[_0xac0222(0x1ee)][_0xac0222(0x1b4)],'onConfigure':()=>this[_0xac0222(0x183)](),'showClickable':(_0x3e2685=_0x16226b==null?void 0x0:_0x16226b['showDeveloperTools'])==null?!0x1:_0x3e2685}),this[_0xac0222(0x1bd)]);}));}['_handleConfigure'](){const _0x54a707=_0x4a528e;this['_injector'][_0x54a707(0x115)](J)[_0x54a707(0x180)]();}};Z=G([W(0x0,_0x520f38(_0x52d720)),W(0x1,_0x520f38(_0x59b840)),W(0x2,_0x4b1764),W(0x3,_0x5c1546)],Z);function de(_0x2bf82d){let {status$:_0x14e3c4,error$:_0x2f3f89,onConfigure:_0x3ef277,showClickable:_0x3619a6}=_0x2bf82d;return function(){return _0x1b0256(ue,{'status$':_0x14e3c4,'error$':_0x2f3f89,'onConfigure':_0x3ef277,'showClickable':_0x3619a6});};}function fe(_0x2b44f0){const _0xf69c60=_0x4a528e;return{'id':Y['id'],'type':_0x616908[_0xf69c60(0x152)],'icon':'MenuIcon','title':_0xf69c60(0x126),'tooltip':_0xf69c60(0x126)};}const pe={[_0x4b7d34[_0x4a528e(0x223)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x104263{constructor(_0x2c0e37,_0x46ea9b){const _0x198079=_0x4a528e;super(),this[_0x198079(0x119)]=_0x2c0e37,this['_menuManagerService']=_0x46ea9b,this[_0x198079(0x236)](),this[_0x198079(0x1e7)]();}['_initializeCommands'](){const _0x232142=_0x4a528e;[Y][_0x232142(0x1c0)](_0x3efd59=>{const _0x5af946=_0x232142;this['disposeWithMe'](this[_0x5af946(0x119)][_0x5af946(0x188)](_0x3efd59));});}[_0x4a528e(0x1e7)](){const _0x419287=_0x4a528e;this['_menuManagerService'][_0x419287(0x11a)](pe);}};Q=G([W(0x0,_0x3dd060),W(0x1,_0x29010f)],Q);const me={'mcpStatus':{'disconnected':_0x4a528e(0x1fc),'connecting':_0x4a528e(0x1ad),'connected':'MCP\x20Connected','failed':_0x4a528e(0x117),'retrying':_0x4a528e(0x129),'unknown':_0x4a528e(0x16f),'unauthorized':_0x4a528e(0x1aa),'sessionOccupied':_0x4a528e(0x195),'networkError':_0x4a528e(0x1b8),'maxRetriesExceeded':_0x4a528e(0x194),'clickToConnect':_0x4a528e(0x12a),'clickToConfigure':_0x4a528e(0x1ec)},'mcpConfig':{'title':_0x4a528e(0x246),'description':_0x4a528e(0x178),'apiKey':_0x4a528e(0x166),'apiKeyPlaceholder':_0x4a528e(0x1b6),'apiKeyHint':_0x4a528e(0x1f8),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4a528e(0x162),'connectionInfo':_0x4a528e(0x23f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4a528e(0x14c),'configStepTitle':_0x4a528e(0x1c8),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4a528e(0x1a8),'configStep3':_0x4a528e(0x172),'sessionId':_0x4a528e(0x176),'sessionIdDescription':_0x4a528e(0x229),'authorizationDescription':_0x4a528e(0x1d5),'configParameters':_0x4a528e(0x1c5),'maxRetries':'Max\x20Retries','save':_0x4a528e(0x154),'saving':'Saving...','note1':_0x4a528e(0x184),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4a528e(0x248),'configError':_0x4a528e(0x241),'apiApplyInfo':{'title':_0x4a528e(0x1f9),'description':_0x4a528e(0x19d),'univerAiLabel':_0x4a528e(0x18a),'getStarted':_0x4a528e(0x171)},'validation':{'apiKeyRequired':_0x4a528e(0x19f),'apiKeyTooShort':_0x4a528e(0x155),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4a528e(0x1d3)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4a528e(0x224),'connected':_0x4a528e(0x1a5),'failed':_0x4a528e(0x121),'retrying':_0x4a528e(0x138)},'connectionError':{'unauthorized':_0x4a528e(0x11b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4a528e(0x17a),'maxRetriesExceeded':_0x4a528e(0x134)}}},he={'mcpStatus':{'disconnected':_0x4a528e(0x1e3),'connecting':_0x4a528e(0x1c6),'connected':_0x4a528e(0x175),'failed':_0x4a528e(0x20a),'retrying':_0x4a528e(0x177),'unknown':_0x4a528e(0x1ae),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4a528e(0x161),'networkError':_0x4a528e(0x116),'maxRetriesExceeded':_0x4a528e(0x1a2),'clickToConnect':_0x4a528e(0x125),'clickToConfigure':_0x4a528e(0x17b)},'mcpConfig':{'title':_0x4a528e(0x235),'description':_0x4a528e(0x1c9),'apiKey':_0x4a528e(0x16c),'apiKeyPlaceholder':_0x4a528e(0x1dd),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x4a528e(0x13f),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4a528e(0x15e),'configInstructions':_0x4a528e(0x1f3),'configStepTitle':'配置步骤:','configStep1':_0x4a528e(0x1ef),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4a528e(0x1de),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4a528e(0x15a),'configParameters':'配置参数:','maxRetries':_0x4a528e(0x139),'save':_0x4a528e(0x204),'saving':_0x4a528e(0x11e),'note1':_0x4a528e(0x146),'note2':_0x4a528e(0x22f),'configSaved':_0x4a528e(0x207),'configError':_0x4a528e(0x135),'apiApplyInfo':{'title':_0x4a528e(0x191),'description':_0x4a528e(0x1e0),'univerAiLabel':_0x4a528e(0x209),'getStarted':_0x4a528e(0x1ff)},'validation':{'apiKeyRequired':_0x4a528e(0x128),'apiKeyTooShort':_0x4a528e(0x218),'invalidConfig':_0x4a528e(0x225),'invalidApiKey':_0x4a528e(0x1ab)},'connectionStatus':{'disconnected':_0x4a528e(0x124),'connecting':_0x4a528e(0x1f0),'connected':_0x4a528e(0x1b9),'failed':'连接失败','retrying':_0x4a528e(0x20b)},'connectionError':{'unauthorized':_0x4a528e(0x123),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4a528e(0x1d7),'maxRetriesExceeded':_0x4a528e(0x136)}}};var ge=_0x4a528e(0x1e2),_e=_0x4a528e(0x174);function _0x1c93(_0x3dadee,_0x318707){_0x3dadee=_0x3dadee-0x10e;const _0x4af59b=_0x4af5();let _0x1c9353=_0x4af59b[_0x3dadee];return _0x1c9353;}let $=class extends _0x1904dc{constructor(_0x54da7f=V,_0x137b01,_0x5cd17f,_0x224e79,_0x26d234,_0x47adac){const _0x21c832=_0x4a528e;super(),this[_0x21c832(0x1fd)]=_0x54da7f,this[_0x21c832(0x1bd)]=_0x137b01,this[_0x21c832(0x1e8)]=_0x5cd17f,this[_0x21c832(0x219)]=_0x224e79,this[_0x21c832(0x238)]=_0x26d234,this[_0x21c832(0x19e)]=_0x47adac;let {..._0xea54e2}=_0x30ce96({},V,this['_config']);this['_configService'][_0x21c832(0x21f)](B,_0xea54e2);}async[_0x4a528e(0x111)](){const _0x5da323=_0x4a528e;let _0x467d71=[[Z],[J],[Q]];this[_0x5da323(0x1bd)][_0x5da323(0x1cb)](_0x255d94)||_0x467d71[_0x5da323(0x190)]([_0x255d94,{'useClass':_0x11bb76}]),_0x467d71['forEach'](_0x146373=>this[_0x5da323(0x1bd)][_0x5da323(0x140)](_0x146373)),this[_0x5da323(0x1bd)][_0x5da323(0x115)](Z),this['_injector'][_0x5da323(0x115)](J),this['_injector'][_0x5da323(0x115)](Q);}};U($,_0x4a528e(0x199),_0x4a528e(0x130)),U($,'packageName',ge),U($,_0x4a528e(0x1d0),_e),$=G([_0x301de1(_0x2c3451),W(0x1,_0x520f38(_0x52d720)),W(0x2,_0x5c1546),W(0x3,_0x4b1764),W(0x4,_0x51289c),W(0x5,_0x520f38(_0x1c055e))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5116da=_0x419f;(function(_0x28884e,_0xe562e6){const _0x1ae9e5=_0x419f,_0x3b39d8=_0x28884e();while(!![]){try{const _0x303287=-parseInt(_0x1ae9e5(0x179))/0x1+parseInt(_0x1ae9e5(0x17b))/0x2+-parseInt(_0x1ae9e5(0x185))/0x3+-parseInt(_0x1ae9e5(0x169))/0x4*(-parseInt(_0x1ae9e5(0x178))/0x5)+-parseInt(_0x1ae9e5(0x180))/0x6*(parseInt(_0x1ae9e5(0x171))/0x7)+-parseInt(_0x1ae9e5(0x190))/0x8*(parseInt(_0x1ae9e5(0x16e))/0x9)+-parseInt(_0x1ae9e5(0x176))/0xa*(-parseInt(_0x1ae9e5(0x166))/0xb);if(_0x303287===_0xe562e6)break;else _0x3b39d8['push'](_0x3b39d8['shift']());}catch(_0x255d3e){_0x3b39d8['push'](_0x3b39d8['shift']());}}}(_0x32a9,0x45ea2));const e={'mcpStatus':{'disconnected':_0x5116da(0x17c),'connecting':_0x5116da(0x181),'connected':_0x5116da(0x17a),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x5116da(0x16f),'unauthorized':_0x5116da(0x17f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5116da(0x16c),'clickToConnect':_0x5116da(0x17d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5116da(0x18d),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x5116da(0x174),'apiKeyHint':_0x5116da(0x177),'enableAuth':_0x5116da(0x189),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5116da(0x16d),'configInstructions':_0x5116da(0x183),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5116da(0x168),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5116da(0x175),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5116da(0x18a),'configParameters':_0x5116da(0x186),'maxRetries':_0x5116da(0x17e),'save':'Save\x20Configuration','saving':_0x5116da(0x16b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5116da(0x18c),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5116da(0x173),'apiApplyInfo':{'title':_0x5116da(0x170),'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':_0x5116da(0x184),'getStarted':_0x5116da(0x18b)},'validation':{'apiKeyRequired':_0x5116da(0x182),'apiKeyTooShort':_0x5116da(0x18e),'invalidConfig':_0x5116da(0x187),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5116da(0x188),'connecting':'Connecting...','connected':_0x5116da(0x172),'failed':_0x5116da(0x167),'retrying':_0x5116da(0x191)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5116da(0x165),'networkError':_0x5116da(0x16a),'maxRetriesExceeded':_0x5116da(0x18f)}}};function _0x419f(_0x16a601,_0x178180){_0x16a601=_0x16a601-0x165;const _0x32a967=_0x32a9();let _0x419f93=_0x32a967[_0x16a601];return _0x419f93;}function _0x32a9(){const _0x398439=['869612fmQtqx','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration','65133ThioIp','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','3199FuPzPu','Connected','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','Session\x20ID','10NECiXA','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','10pONHzO','155662WqKGEy','MCP\x20Connected','67128ZGXrEa','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Max\x20Retries','MCP:\x20Unauthorized','42zVXUWW','MCP\x20Connecting...','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','22506eabdId','Configuration\x20Parameters:','Invalid\x20configuration','Disconnected','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','376qGTRpH','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','3569522DltOFb','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x32a9=function(){return _0x398439;};return _0x32a9();}export{e as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2b0f6f=_0x29d7;function _0x29d7(_0x3b3f15,_0x78827){_0x3b3f15=_0x3b3f15-0x15a;const _0x3db6ff=_0x3db6();let _0x29d755=_0x3db6ff[_0x3b3f15];return _0x29d755;}(function(_0x27d1de,_0x158327){const _0x901130=_0x29d7,_0x4be49f=_0x27d1de();while(!![]){try{const _0x3c0308=parseInt(_0x901130(0x17f))/0x1*(-parseInt(_0x901130(0x179))/0x2)+parseInt(_0x901130(0x170))/0x3+-parseInt(_0x901130(0x171))/0x4+-parseInt(_0x901130(0x17e))/0x5+parseInt(_0x901130(0x182))/0x6*(-parseInt(_0x901130(0x15b))/0x7)+parseInt(_0x901130(0x16d))/0x8+parseInt(_0x901130(0x165))/0x9*(parseInt(_0x901130(0x16f))/0xa);if(_0x3c0308===_0x158327)break;else _0x4be49f['push'](_0x4be49f['shift']());}catch(_0xae627b){_0x4be49f['push'](_0x4be49f['shift']());}}}(_0x3db6,0xe6e89));function _0x3db6(){const _0x369f3e=['Connecting...','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','18YjzVzw','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','API\x20key\x20is\x20required','2052832SWJDmX','Session\x20ID','22588030FPYeqI','702255ljkPlX','4410672Sjytue','MCP:\x20Network\x20Error','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enter\x20your\x20API\x20key','MCP\x20Retrying...','2ZsVqDR','Connected','API\x20Key','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','4286920Ciggun','1048493VmDEOB','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','371982gBHsdn','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','119WgtKRW','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized','Univer\x20AI\x20Console'];_0x3db6=function(){return _0x369f3e;};return _0x3db6();}const e={'mcpStatus':{'disconnected':_0x2b0f6f(0x161),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x2b0f6f(0x178),'unknown':_0x2b0f6f(0x17c),'unauthorized':_0x2b0f6f(0x15e),'sessionOccupied':_0x2b0f6f(0x175),'networkError':_0x2b0f6f(0x172),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2b0f6f(0x164)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2b0f6f(0x17b),'apiKeyPlaceholder':_0x2b0f6f(0x177),'apiKeyHint':_0x2b0f6f(0x169),'enableAuth':_0x2b0f6f(0x167),'enableAuthHint':_0x2b0f6f(0x173),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2b0f6f(0x180),'configInstructions':_0x2b0f6f(0x163),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2b0f6f(0x16a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2b0f6f(0x176),'sessionId':_0x2b0f6f(0x16e),'sessionIdDescription':_0x2b0f6f(0x183),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2b0f6f(0x17d),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2b0f6f(0x174),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2b0f6f(0x15a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2b0f6f(0x166),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x2b0f6f(0x15f),'getStarted':_0x2b0f6f(0x15d)},'validation':{'apiKeyRequired':_0x2b0f6f(0x16c),'apiKeyTooShort':_0x2b0f6f(0x181),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2b0f6f(0x16b),'connecting':_0x2b0f6f(0x160),'connected':_0x2b0f6f(0x17a),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2b0f6f(0x162),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x2b0f6f(0x15c),'maxRetriesExceeded':_0x2b0f6f(0x168)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x136691=_0x7c9d;(function(_0x53e46e,_0x1b0f7d){const _0x490dc2=_0x7c9d,_0x2d603b=_0x53e46e();while(!![]){try{const _0x4dbf11=-parseInt(_0x490dc2(0x19d))/0x1+parseInt(_0x490dc2(0x1a6))/0x2*(-parseInt(_0x490dc2(0x189))/0x3)+parseInt(_0x490dc2(0x1a5))/0x4+parseInt(_0x490dc2(0x1a1))/0x5*(parseInt(_0x490dc2(0x199))/0x6)+-parseInt(_0x490dc2(0x19f))/0x7+parseInt(_0x490dc2(0x191))/0x8+parseInt(_0x490dc2(0x18d))/0x9*(parseInt(_0x490dc2(0x18a))/0xa);if(_0x4dbf11===_0x1b0f7d)break;else _0x2d603b['push'](_0x2d603b['shift']());}catch(_0x5347c6){_0x2d603b['push'](_0x2d603b['shift']());}}}(_0x54e5,0xc56ac));function _0x7c9d(_0x5835d3,_0x4a03e1){_0x5835d3=_0x5835d3-0x17e;const _0x54e5dd=_0x54e5();let _0x7c9d38=_0x54e5dd[_0x5835d3];return _0x7c9d38;}function _0x54e5(){const _0xbb62f4=['21153051WymbWA','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','Retrying...','2225640uQGEUj','API\x20Key','Connecting...','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','MCP\x20Connected','18VdqfOF','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','806494dNjyeV','MCP\x20Connection\x20Failed','10520377DAlsRn','Disconnected','1098785haCZey','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4865680GOchrh','5740sLSpYt','Session\x20ID','Enable\x20Authentication','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','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\x20Configuration','Invalid\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','1449IYACaH','10dCFSBa','Save\x20Configuration','Failed\x20to\x20save\x20configuration'];_0x54e5=function(){return _0xbb62f4;};return _0x54e5();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x136691(0x198),'failed':_0x136691(0x19e),'retrying':_0x136691(0x188),'unknown':_0x136691(0x195),'unauthorized':_0x136691(0x1ab),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x136691(0x1a3),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x136691(0x19c)},'mcpConfig':{'title':_0x136691(0x17f),'description':_0x136691(0x1a9),'apiKey':_0x136691(0x192),'apiKeyPlaceholder':_0x136691(0x196),'apiKeyHint':_0x136691(0x19b),'enableAuth':_0x136691(0x1a8),'enableAuthHint':_0x136691(0x18f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x136691(0x194),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x136691(0x186),'configStep2':_0x136691(0x1ac),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x136691(0x1a7),'sessionIdDescription':_0x136691(0x1a4),'authorizationDescription':_0x136691(0x181),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x136691(0x18e),'save':_0x136691(0x18b),'saving':'Saving...','note1':_0x136691(0x182),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x136691(0x18c),'apiApplyInfo':{'title':_0x136691(0x197),'description':_0x136691(0x17e),'univerAiLabel':_0x136691(0x19a),'getStarted':_0x136691(0x183)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x136691(0x180),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x136691(0x1a0),'connecting':_0x136691(0x193),'connected':'Connected','failed':_0x136691(0x185),'retrying':_0x136691(0x190)},'connectionError':{'unauthorized':_0x136691(0x187),'sessionOccupied':_0x136691(0x184),'networkError':_0x136691(0x1a2),'maxRetriesExceeded':_0x136691(0x1aa)}}};export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1706(_0x11756c,_0x2134e6){_0x11756c=_0x11756c-0x14f;const _0x5e6ca2=_0x5e6c();let _0x17069a=_0x5e6ca2[_0x11756c];return _0x17069a;}const _0x36cf03=_0x1706;(function(_0x5005a4,_0x4d5406){const _0x9df7a3=_0x1706,_0x28b47a=_0x5005a4();while(!![]){try{const _0x3326d8=-parseInt(_0x9df7a3(0x16c))/0x1+parseInt(_0x9df7a3(0x15b))/0x2*(-parseInt(_0x9df7a3(0x177))/0x3)+-parseInt(_0x9df7a3(0x178))/0x4+parseInt(_0x9df7a3(0x168))/0x5+parseInt(_0x9df7a3(0x158))/0x6+parseInt(_0x9df7a3(0x15f))/0x7+-parseInt(_0x9df7a3(0x16e))/0x8*(-parseInt(_0x9df7a3(0x15e))/0x9);if(_0x3326d8===_0x4d5406)break;else _0x28b47a['push'](_0x28b47a['shift']());}catch(_0x53dbdd){_0x28b47a['push'](_0x28b47a['shift']());}}}(_0x5e6c,0x591df));const e={'mcpStatus':{'disconnected':_0x36cf03(0x17b),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x36cf03(0x16b),'retrying':_0x36cf03(0x152),'unknown':_0x36cf03(0x150),'unauthorized':_0x36cf03(0x170),'sessionOccupied':_0x36cf03(0x15d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x36cf03(0x176),'clickToConnect':_0x36cf03(0x163),'clickToConfigure':_0x36cf03(0x164)},'mcpConfig':{'title':_0x36cf03(0x17c),'description':_0x36cf03(0x167),'apiKey':_0x36cf03(0x174),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x36cf03(0x179),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x36cf03(0x16f),'connectionInfo':_0x36cf03(0x151),'mcpClientConfig':_0x36cf03(0x151),'configInstructions':_0x36cf03(0x162),'configStepTitle':_0x36cf03(0x161),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x36cf03(0x156),'sessionId':_0x36cf03(0x14f),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x36cf03(0x165),'configParameters':_0x36cf03(0x175),'maxRetries':'Max\x20Retries','save':_0x36cf03(0x169),'saving':_0x36cf03(0x172),'note1':_0x36cf03(0x159),'note2':_0x36cf03(0x154),'configSaved':_0x36cf03(0x17a),'configError':_0x36cf03(0x173),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x36cf03(0x157),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x36cf03(0x160),'apiKeyTooShort':_0x36cf03(0x171),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x36cf03(0x155)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x36cf03(0x166),'retrying':_0x36cf03(0x153)},'connectionError':{'unauthorized':_0x36cf03(0x16a),'sessionOccupied':_0x36cf03(0x16d),'networkError':_0x36cf03(0x15a),'maxRetriesExceeded':_0x36cf03(0x15c)}}};export{e as default};function _0x5e6c(){const _0x4d2b67=['Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','Failed\x20to\x20save\x20configuration','API\x20Key','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','15yAITbj','2262868vbMoQU','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','MCP\x20Disconnected','MCP\x20Configuration','Session\x20ID','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','MCP\x20Retrying...','Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3229284AcJwbF','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','259174LbzJwT','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','9dGCCPo','1736259MmWaNm','API\x20key\x20is\x20required','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3371595IdGYHJ','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','727002TVeLIQ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6760856JWvQYZ'];_0x5e6c=function(){return _0x4d2b67;};return _0x5e6c();}
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x7ffc(){const _0x295b68=['API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','852554JhAaTK','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','3971625kEYjBi','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','4771902klvQeY','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','3739415SeFpHm','MCP\x20Unknown\x20Status','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','Invalid\x20configuration','MCP\x20Disconnected','API\x20Key','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','Click\x20to\x20connect\x20MCP','Configuration\x20Parameters:','7338840EaLwfb','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','57TAQwTD','Disconnected','484818ECaeWr','20452RsawQQ','MCP:\x20Unauthorized'];_0x7ffc=function(){return _0x295b68;};return _0x7ffc();}function _0x3b0e(_0xd13246,_0x475c80){_0xd13246=_0xd13246-0x1f2;const _0x7ffc53=_0x7ffc();let _0x3b0ea6=_0x7ffc53[_0xd13246];return _0x3b0ea6;}const _0x308101=_0x3b0e;(function(_0x1a6251,_0x3384a2){const _0x4d025b=_0x3b0e,_0x36f276=_0x1a6251();while(!![]){try{const _0x2826d6=-parseInt(_0x4d025b(0x216))/0x1+-parseInt(_0x4d025b(0x21b))/0x2+-parseInt(_0x4d025b(0x214))/0x3*(parseInt(_0x4d025b(0x217))/0x4)+parseInt(_0x4d025b(0x203))/0x5+-parseInt(_0x4d025b(0x1fe))/0x6+parseInt(_0x4d025b(0x1fb))/0x7+parseInt(_0x4d025b(0x210))/0x8;if(_0x2826d6===_0x3384a2)break;else _0x36f276['push'](_0x36f276['shift']());}catch(_0xc9175b){_0x36f276['push'](_0x36f276['shift']());}}}(_0x7ffc,0x68bfe));const e={'mcpStatus':{'disconnected':_0x308101(0x209),'connecting':_0x308101(0x20b),'connected':_0x308101(0x205),'failed':_0x308101(0x202),'retrying':'MCP\x20Retrying...','unknown':_0x308101(0x204),'unauthorized':_0x308101(0x218),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x308101(0x1f2),'maxRetriesExceeded':_0x308101(0x1fc),'clickToConnect':_0x308101(0x20e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x308101(0x207),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x308101(0x20a),'apiKeyPlaceholder':_0x308101(0x201),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x308101(0x20d),'enableAuthHint':_0x308101(0x1f6),'connectionInfo':_0x308101(0x21a),'mcpClientConfig':_0x308101(0x21a),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x308101(0x1f7),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x308101(0x219),'configParameters':_0x308101(0x20f),'maxRetries':_0x308101(0x1f5),'save':'Save\x20Configuration','saving':_0x308101(0x1f9),'note1':_0x308101(0x1ff),'note2':_0x308101(0x206),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x308101(0x1f3),'description':_0x308101(0x212),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x308101(0x1f8)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x308101(0x1fd),'invalidConfig':_0x308101(0x208),'invalidApiKey':_0x308101(0x213)},'connectionStatus':{'disconnected':_0x308101(0x215),'connecting':_0x308101(0x200),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x308101(0x211)},'connectionError':{'unauthorized':_0x308101(0x1fa),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x308101(0x20c),'maxRetriesExceeded':_0x308101(0x1f4)}}};export{e as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2147b4=_0x50d4;(function(_0x2d4a81,_0x36ccb6){const _0x3f25b0=_0x50d4,_0x58dd15=_0x2d4a81();while(!![]){try{const _0x37662f=parseInt(_0x3f25b0(0x1a6))/0x1*(-parseInt(_0x3f25b0(0x193))/0x2)+-parseInt(_0x3f25b0(0x191))/0x3+parseInt(_0x3f25b0(0x187))/0x4*(-parseInt(_0x3f25b0(0x194))/0x5)+parseInt(_0x3f25b0(0x181))/0x6*(parseInt(_0x3f25b0(0x195))/0x7)+parseInt(_0x3f25b0(0x196))/0x8*(-parseInt(_0x3f25b0(0x18d))/0x9)+parseInt(_0x3f25b0(0x1a7))/0xa*(-parseInt(_0x3f25b0(0x1ac))/0xb)+-parseInt(_0x3f25b0(0x18b))/0xc*(-parseInt(_0x3f25b0(0x19e))/0xd);if(_0x37662f===_0x36ccb6)break;else _0x58dd15['push'](_0x58dd15['shift']());}catch(_0x520473){_0x58dd15['push'](_0x58dd15['shift']());}}}(_0x1f65,0xc7332));function _0x50d4(_0x1ea481,_0x525b46){_0x1ea481=_0x1ea481-0x17f;const _0x1f6537=_0x1f65();let _0x50d4f6=_0x1f6537[_0x1ea481];return _0x50d4f6;}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x2147b4(0x185),'connected':'MCP\x20接続済み','failed':_0x2147b4(0x17f),'retrying':_0x2147b4(0x18a),'unknown':_0x2147b4(0x19c),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x2147b4(0x19a),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x2147b4(0x1a0),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':'MCP設定','description':_0x2147b4(0x1ab),'apiKey':_0x2147b4(0x1ad),'apiKeyPlaceholder':_0x2147b4(0x188),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x2147b4(0x182),'enableAuthHint':_0x2147b4(0x183),'connectionInfo':_0x2147b4(0x18e),'mcpClientConfig':_0x2147b4(0x18e),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x2147b4(0x1a5),'configStep1':'以下のJSON設定をコピー','configStep2':_0x2147b4(0x19d),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x2147b4(0x1a3),'sessionIdDescription':_0x2147b4(0x1a2),'authorizationDescription':_0x2147b4(0x19f),'configParameters':_0x2147b4(0x18f),'maxRetries':'最大再試行回数','save':_0x2147b4(0x1a1),'saving':_0x2147b4(0x1aa),'note1':'設定の変更は直ちに有効になります','note2':_0x2147b4(0x189),'configSaved':_0x2147b4(0x198),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x2147b4(0x1ae),'description':_0x2147b4(0x186),'univerAiLabel':_0x2147b4(0x1af),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x2147b4(0x190),'apiKeyTooShort':_0x2147b4(0x197),'invalidConfig':_0x2147b4(0x199),'invalidApiKey':_0x2147b4(0x19b)},'connectionStatus':{'disconnected':'未接続','connecting':'接続中...','connected':_0x2147b4(0x180),'failed':_0x2147b4(0x18c),'retrying':_0x2147b4(0x184)},'connectionError':{'unauthorized':_0x2147b4(0x192),'sessionOccupied':_0x2147b4(0x1a4),'networkError':_0x2147b4(0x1a9),'maxRetriesExceeded':_0x2147b4(0x1a8)}}};function _0x1f65(){const _0xf5f7c2=['21364551pFOnPS','Bearerプレフィックス付きのAPIキー。','クリックしてMCPに接続','設定を保存','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','セッションID','セッションIDが現在使用中です。後でもう一度お試しください','設定手順:','3TPTliy','270EtNPOg','最大再試行回数を超過しました。後でもう一度お試しください','ネットワーク接続エラー。インターネット接続を確認してください','保存中...','MCPを設定してAIでスプレッドシートを操作','428087cjugzR','APIキー','APIキーとは?','Univer\x20AIコンソール','MCP\x20接続失敗','接続済み','6yBCBSr','認証を有効にする','セキュアな接続のために認証を有効にする','再試行中...','MCP\x20接続中...','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','3080696xRhPCP','APIキーを入力してください','APIキーはローカルストレージに安全に保存されます','MCP\x20再試行中...','36oPqwiV','接続失敗','207369GVzKBe','MCPクライアント設定','設定パラメータ:','APIキーは必須です','4023360QRoxyF','認証に失敗しました。APIキーを確認してください','120562uoYyOf','10gTdBPQ','3539291TcRMvD','176weARHp','APIキーは10文字以上である必要があります','設定が正常に保存されました','無効な設定','MCP:\x20ネットワークエラー','無効なAPIキーです。キーが正しいか確認してください','MCP\x20不明な状態','MCPクライアントの設定ファイルに設定を追加'];_0x1f65=function(){return _0xf5f7c2;};return _0x1f65();}export{e as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x42195b=_0x2f02;(function(_0x23ce05,_0x51dd17){const _0x46ef87=_0x2f02,_0xc46ba8=_0x23ce05();while(!![]){try{const _0xfac5fe=-parseInt(_0x46ef87(0x1bf))/0x1*(parseInt(_0x46ef87(0x1c2))/0x2)+-parseInt(_0x46ef87(0x1b2))/0x3*(-parseInt(_0x46ef87(0x1cb))/0x4)+parseInt(_0x46ef87(0x1ba))/0x5+parseInt(_0x46ef87(0x1a1))/0x6+parseInt(_0x46ef87(0x1a5))/0x7*(parseInt(_0x46ef87(0x19c))/0x8)+parseInt(_0x46ef87(0x1a7))/0x9*(parseInt(_0x46ef87(0x1c6))/0xa)+-parseInt(_0x46ef87(0x1bb))/0xb;if(_0xfac5fe===_0x51dd17)break;else _0xc46ba8['push'](_0xc46ba8['shift']());}catch(_0xbe6feb){_0xc46ba8['push'](_0xc46ba8['shift']());}}}(_0x71fa,0x5c3c2));function _0x2f02(_0x1d1b91,_0x4e7e7a){_0x1d1b91=_0x1d1b91-0x19c;const _0x71fab6=_0x71fa();let _0x2f0263=_0x71fab6[_0x1d1b91];return _0x2f0263;}function _0x71fa(){const _0x962581=['세션\x20ID','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','설정\x20저장','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','213YApXTs','연결됨','최대\x20재시도\x20횟수','보안\x20연결을\x20위해\x20인증\x20활성화','클릭하여\x20MCP\x20연결','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20연결\x20끊김','226310UFmnec','7160571XfFlmM','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20연결\x20실패','API\x20키란\x20무엇인가요?','4OwPnbw','MCP:\x20네트워크\x20오류','Bearer\x20접두사가\x20있는\x20API\x20키.','236090TNkwNB','연결\x20실패','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키를\x20입력하세요','139020jNANRB','설정\x20단계:','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP\x20재시도\x20중...','25404CaSxKC','API\x20키는\x20필수입니다','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','2321864DolCyR','MCP\x20설정','설정\x20매개변수:','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','API\x20키','3119346ahlXFS','저장\x20중...','인증\x20실패.\x20API\x20키를\x20확인하세요','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','7WmKoXr','MCP:\x20세션\x20ID\x20사용\x20중','126gnGPmf','인증\x20활성화','유효하지\x20않은\x20설정','설정이\x20성공적으로\x20저장되었습니다','MCP\x20클라이언트\x20설정','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','아래\x20JSON\x20설정\x20복사'];_0x71fa=function(){return _0x962581;};return _0x71fa();}const e={'mcpStatus':{'disconnected':_0x42195b(0x1b9),'connecting':'MCP\x20연결\x20중...','connected':'MCP\x20연결됨','failed':_0x42195b(0x1bd),'retrying':_0x42195b(0x1ca),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':_0x42195b(0x1a6),'networkError':_0x42195b(0x1c0),'maxRetriesExceeded':_0x42195b(0x1b8),'clickToConnect':_0x42195b(0x1b6),'clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':_0x42195b(0x19d),'description':_0x42195b(0x1c9),'apiKey':_0x42195b(0x1a0),'apiKeyPlaceholder':_0x42195b(0x1c5),'apiKeyHint':_0x42195b(0x1a4),'enableAuth':_0x42195b(0x1a8),'enableAuthHint':_0x42195b(0x1b5),'connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':_0x42195b(0x1ab),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':_0x42195b(0x1c7),'configStep1':_0x42195b(0x1ad),'configStep2':_0x42195b(0x19f),'configStep3':_0x42195b(0x1af),'sessionId':_0x42195b(0x1ae),'sessionIdDescription':_0x42195b(0x1b7),'authorizationDescription':_0x42195b(0x1c1),'configParameters':_0x42195b(0x19e),'maxRetries':_0x42195b(0x1b4),'save':_0x42195b(0x1b0),'saving':_0x42195b(0x1a2),'note1':_0x42195b(0x1bc),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':_0x42195b(0x1aa),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':_0x42195b(0x1be),'description':_0x42195b(0x1c8),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':_0x42195b(0x1cc),'apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x42195b(0x1a9),'invalidApiKey':_0x42195b(0x1c4)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':'연결\x20중...','connected':_0x42195b(0x1b3),'failed':_0x42195b(0x1c3),'retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x42195b(0x1a3),'sessionOccupied':_0x42195b(0x1cd),'networkError':_0x42195b(0x1b1),'maxRetriesExceeded':_0x42195b(0x1ac)}}};export{e as default};
|