@univerjs-pro/mcp-ui 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5b386b=_0x26a5;(function(_0x5167eb,_0x32576f){const _0x35e351=_0x26a5,_0x4bafaf=_0x5167eb();while(!![]){try{const _0x5cca18=-parseInt(_0x35e351(0x1e0))/0x1+parseInt(_0x35e351(0x2a5))/0x2*(parseInt(_0x35e351(0x1d4))/0x3)+-parseInt(_0x35e351(0x23c))/0x4*(-parseInt(_0x35e351(0x22e))/0x5)+parseInt(_0x35e351(0x21e))/0x6+-parseInt(_0x35e351(0x23e))/0x7+parseInt(_0x35e351(0x214))/0x8+-parseInt(_0x35e351(0x206))/0x9*(parseInt(_0x35e351(0x222))/0xa);if(_0x5cca18===_0x32576f)break;else _0x4bafaf['push'](_0x4bafaf['shift']());}catch(_0x412f8d){_0x4bafaf['push'](_0x4bafaf['shift']());}}}(_0x1683,0x22f8a));import _0x161449 from'./locale/en-US.js';import _0x397a8e from'./locale/zh-CN.js';import{CommandType as _0x593979,DependentOn as _0x492c3b,Disposable as _0x36bc9e,ICommandService as _0x4bda18,IConfigService as _0x20fb6a,ILocalStorageService as _0x154cb1,ILogService as _0x1ebe22,Inject as _0x5289d4,Injector as _0xbbbf4b,LocaleService as _0x51f592,Plugin as _0x3e8439,merge as _0x354f9c}from'@univerjs/core';function _0x26a5(_0x22ada1,_0x432410){_0x22ada1=_0x22ada1-0x1c8;const _0x16831d=_0x1683();let _0x26a59c=_0x16831d[_0x22ada1];return _0x26a59c;}import{MCPConnectionController as _0x4b7493,MCPConnectionError as _0x8f97d4,MCPConnectionStatus as _0xd1ea3a,MCP_PLUGIN_CONFIG_KEY as _0x2eedd5,UniverMCPPlugin as _0x5d8c82}from'@univerjs-pro/mcp';import{Button as _0x24b75f,Input as _0x4619da,MessageType as _0x169226,Tooltip as _0x20c901,clsx as _0xa49791}from'@univerjs/design';import{BuiltInUIPart as _0x209d4c,ComponentManager as _0x368ca5,IDialogService as _0x15974b,IMenuManagerService as _0x27ead3,IMessageService as _0x181e42,IUIPartsService as _0x2e6601,MenuItemType as _0x53c3c0,RibbonStartGroup as _0x15a128,connectInjector as _0x30c1f6,useDependency as _0x15c776,useObservable as _0x6ce075}from'@univerjs/ui';import{BehaviorSubject as _0x1d736b}from'rxjs';import{CheckMarkIcon as _0x43bc65,CloseIcon as _0x51a9d2,HelpIcon as _0x168b18,OffLineIcon as _0x1ecc57,OnLineIcon as _0x3ef954}from'@univerjs/icons';import{useCallback as _0x2ae2c6,useState as _0x2054c5}from'react';import{jsx as _0x18af1c,jsxs as _0x362d0c}from'react/jsx-runtime';import{ISocketService as _0x429c47,WebSocketService as _0x27c201}from'@univerjs/network';function R(_0x529ae8){const _0xd12f9c=_0x26a5;var _0x45df0c,_0x352f80;let {mcpCoreConfig:_0x533d24,onSave:_0x13e0d4,loading:_0x475938=!0x1,config:_0x4c4e5b,connectionStatus$:_0x3c5014,connectionError$:_0x598d64,currentApiKey$:_0x3e944e,currentSessionId$:_0xfba125}=_0x529ae8,_0x25f614=_0x15c776(_0x51f592),_0x56f284=_0x6ce075(_0x3c5014,_0xd1ea3a[_0xd12f9c(0x1c8)]),_0x4b89d0=_0x6ce075(_0x598d64,_0x8f97d4[_0xd12f9c(0x283)]),_0x25d9de=_0x6ce075(_0xfba125,''),[_0xa4acf2,_0x1a7c5a]=_0x2054c5(_0x6ce075(_0x3e944e,'')||''),_0x1216c7=_0x4c4e5b[_0xd12f9c(0x282)]&&_0x533d24['mcpServerUrl']&&(_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20b))||_0x533d24['mcpServerUrl'][_0xd12f9c(0x24f)](_0xd12f9c(0x20f))),_0x588a5c=(_0x45df0c=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x45df0c['includes'](_0xd12f9c(0x20b)),_0x10f46c=(_0x352f80=_0x533d24[_0xd12f9c(0x28d)])==null?void 0x0:_0x352f80[_0xd12f9c(0x24f)](_0xd12f9c(0x20f)),_0x361b03=_0x588a5c?_0xd12f9c(0x241):'https://console.univer.ai',_0x5d323b=_0x4c4e5b[_0xd12f9c(0x282)]&&(_0x588a5c||_0x10f46c),[_0x3fa0e2,_0x44502b]=_0x2054c5(!_0xa4acf2[_0xd12f9c(0x237)]()),_0x34c0ff=(_0x1acb3a,_0xab883)=>{const _0x571d37=_0xd12f9c;if(_0xab883===_0x8f97d4['UNAUTHORIZED'])return _0x571d37(0x1e4);switch(_0x1acb3a){case _0xd1ea3a['CONNECTED']:return _0x571d37(0x265);case _0xd1ea3a[_0x571d37(0x230)]:case _0xd1ea3a['RETRYING']:return _0x571d37(0x1ea);case _0xd1ea3a[_0x571d37(0x1fa)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x571d37(0x1ce);}},_0x2a704c=(_0x3c5fb6,_0x155e2a)=>{const _0x169d31=_0xd12f9c;if(_0x155e2a===_0x8f97d4['UNAUTHORIZED'])return _0x169d31(0x239);switch(_0x3c5fb6){case _0xd1ea3a[_0x169d31(0x296)]:return _0x169d31(0x242);case _0xd1ea3a['CONNECTING']:case _0xd1ea3a[_0x169d31(0x1e2)]:return _0x169d31(0x1de);case _0xd1ea3a[_0x169d31(0x1fa)]:return _0x169d31(0x239);default:return _0x169d31(0x26a);}},_0x31d294=_0xfbef80=>{const _0x5c8afd=_0xd12f9c;switch(_0xfbef80){case _0xd1ea3a[_0x5c8afd(0x296)]:return _0x25f614['t'](_0x5c8afd(0x1dc));case _0xd1ea3a[_0x5c8afd(0x230)]:return _0x25f614['t'](_0x5c8afd(0x1da));case _0xd1ea3a[_0x5c8afd(0x1fa)]:return _0x25f614['t'](_0x5c8afd(0x1ca));case _0xd1ea3a['RETRYING']:return _0x25f614['t'](_0x5c8afd(0x1f7));default:return _0x25f614['t'](_0x5c8afd(0x213));}},_0xc6ff83=_0x42748e=>{const _0x5c205b=_0xd12f9c;switch(_0x42748e){case _0x8f97d4[_0x5c205b(0x236)]:return _0x25f614['t'](_0x5c205b(0x26c));case _0x8f97d4[_0x5c205b(0x1d3)]:return _0x25f614['t'](_0x5c205b(0x218));case _0x8f97d4[_0x5c205b(0x1f0)]:return _0x25f614['t']('mcpConfig.connectionError.networkError');case _0x8f97d4[_0x5c205b(0x285)]:return _0x25f614['t'](_0x5c205b(0x274));default:return'';}},_0x153faa=_0x2ae2c6(()=>{const _0x432424=_0xd12f9c;_0x13e0d4({..._0x533d24,'apiKey':_0xa4acf2[_0x432424(0x237)](),'enableAuth':!0x0});},[_0x533d24,_0xa4acf2,!0x0,_0x13e0d4]),_0x49ecac=_0xa4acf2[_0xd12f9c(0x237)]()['length']>0x0;return _0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x284),'children':_0x362d0c('div',{'className':_0xd12f9c(0x1e5),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x25e),'children':_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x244),'children':'⚙'})}),_0x18af1c(_0xd12f9c(0x1e6),{'children':_0x18af1c('p',{'className':_0xd12f9c(0x29a),'children':_0x25f614['t']('mcpConfig.description')})})]})}),_0x362d0c('div',{'className':_0xd12f9c(0x24c),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x288),_0x34c0ff(_0x56f284,_0x4b89d0)),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xa49791(_0xd12f9c(0x215),_0x2a704c(_0x56f284,_0x4b89d0))}),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x261),'children':_0x31d294(_0x56f284)})]})}),_0x4b89d0!==_0x8f97d4[_0xd12f9c(0x283)]&&(_0x56f284===_0xd1ea3a[_0xd12f9c(0x1fa)]||_0x4b89d0===_0x8f97d4[_0xd12f9c(0x236)])&&_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x252),'children':_0x362d0c('div',{'className':_0xd12f9c(0x298),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x293),'children':'⚠️'}),_0x18af1c('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xc6ff83(_0x4b89d0)})]})})]}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x24b),'children':_0x362d0c('div',{'className':_0xd12f9c(0x289),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x362d0c(_0xd12f9c(0x272),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔑'}),'\x20',_0x25f614['t']('mcpConfig.apiKey'),_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x201),'children':'*'}),_0x1216c7&&_0x18af1c('a',{'className':_0xd12f9c(0x267),'title':_0x25f614['t'](_0xd12f9c(0x21a)),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x0),'children':_0x18af1c(_0x168b18,{})})]}),_0x18af1c(_0x4619da,{'type':_0xd12f9c(0x27f),'placeholder':_0x25f614['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xa4acf2,'disabled':_0x475938,'autoComplete':_0xd12f9c(0x26f),'onChange':_0x1a7c5a}),_0x18af1c('p',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f2))})]}),_0x1216c7&&_0x3fa0e2&&_0x362d0c('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x18af1c('a',{'className':_0xd12f9c(0x229),'role':_0xd12f9c(0x25a),'onClick':()=>_0x44502b(!0x1),'children':_0x18af1c(_0x51a9d2,{'className':_0xd12f9c(0x1d7)})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x286),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x27a),'children':_0x18af1c('span',{'className':_0xd12f9c(0x22a),'children':'🚀'})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-flex-1','children':[_0x18af1c('h4',{'className':_0xd12f9c(0x292),'children':_0x25f614['t']('mcpConfig.apiApplyInfo.title')}),_0x18af1c('p',{'className':_0xd12f9c(0x234),'children':_0x25f614['t'](_0xd12f9c(0x290))}),_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5d323b&&_0x362d0c('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x361b03,'target':_0xd12f9c(0x204),'rel':_0xd12f9c(0x2a8),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🤖'}),_0x25f614['t'](_0xd12f9c(0x22b)),_0x18af1c('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20d),'children':['✨','\x20',_0x25f614['t'](_0xd12f9c(0x2a0))]})]})]})]}),_0x4c4e5b[_0xd12f9c(0x282)]&&_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x362d0c('h4',{'className':_0xd12f9c(0x24d),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'🔗'}),'\x20',_0x25f614['t'](_0xd12f9c(0x2a2))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x281),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x226),'children':[_0x18af1c('p',{'className':_0xd12f9c(0x2a3),'children':_0x25f614['t']('mcpConfig.configInstructions')}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-2','children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x25f614['t'](_0xd12f9c(0x25f))}),_0x362d0c('div',{'className':_0xd12f9c(0x25c),'children':[_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'1'}),_0x25f614['t'](_0xd12f9c(0x200))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c('span',{'className':_0xd12f9c(0x202),'children':'2'}),_0x25f614['t'](_0xd12f9c(0x26e))]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x202),'children':'3'}),_0x25f614['t'](_0xd12f9c(0x21f))]})]})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x18af1c('div',{'className':_0xd12f9c(0x20c),'children':_0xd12f9c(0x278)}),_0x18af1c('div',{'className':_0xd12f9c(0x1f3),'children':_0x18af1c('pre',{'className':_0xd12f9c(0x28b),'children':JSON[_0xd12f9c(0x257)]({'mcpServers':{'univer':{'url':_0xd12f9c(0x26d)+(_0x25d9de||_0xd12f9c(0x28e)),'type':_0xd12f9c(0x243),'headers':{'Authorization':_0xd12f9c(0x24e)+(_0xa4acf2||_0xd12f9c(0x209))}}}},null,0x2)})})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x226),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x20c),'children':_0x25f614['t'](_0xd12f9c(0x2a1))}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x249),'children':[_0x362d0c('div',{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x23d),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x231)}),_0x18af1c('div',{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x23f))})]})]}),_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x273),'children':[_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x246)}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x18af1c('div',{'className':_0xd12f9c(0x1fc),'children':_0xd12f9c(0x232)}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21c),'children':_0x25f614['t'](_0xd12f9c(0x1f5))})]})]})]})]})]})]}),_0x18af1c(_0x24b75f,{'onClick':_0x153faa,'disabled':!_0x49ecac||_0x475938,'className':_0xd12f9c(0x208),'children':_0x475938?_0x362d0c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x279),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'children':'⟲'}),_0x25f614['t'](_0xd12f9c(0x27e))]}):_0x362d0c(_0xd12f9c(0x1ec),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x18af1c(_0x43bc65,{}),_0x25f614['t'](_0xd12f9c(0x275))]})}),_0x18af1c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x2a7),'children':_0x362d0c(_0xd12f9c(0x1e6),{'className':_0xd12f9c(0x21b),'children':[_0x18af1c(_0xd12f9c(0x1ec),{'className':_0xd12f9c(0x1ed),'children':'💡'}),_0x362d0c(_0xd12f9c(0x1e6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x18af1c('div',{'className':_0xd12f9c(0x295),'children':_0xd12f9c(0x26b)}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x1e7))]}),_0x362d0c(_0xd12f9c(0x1e6),{'children':['•',_0x25f614['t'](_0xd12f9c(0x227))]})]})]})})]})})]});}const z='mcp-ui.config',B={'showDeveloperTools':!0x1,'showStatus':!0x0};function V(_0x305e66){'@babel/helpers - typeof';const _0x39e552=_0x26a5;return V=typeof Symbol==_0x39e552(0x250)&&typeof Symbol[_0x39e552(0x224)]==_0x39e552(0x260)?function(_0x24ddc1){return typeof _0x24ddc1;}:function(_0x1010a7){const _0x19d758=_0x39e552;return _0x1010a7&&typeof Symbol==_0x19d758(0x250)&&_0x1010a7[_0x19d758(0x1e1)]===Symbol&&_0x1010a7!==Symbol[_0x19d758(0x22d)]?_0x19d758(0x260):typeof _0x1010a7;},V(_0x305e66);}function le(_0x349133,_0x35aa36){const _0x1b7465=_0x26a5;if(V(_0x349133)!=_0x1b7465(0x255)||!_0x349133)return _0x349133;var _0x543647=_0x349133[Symbol[_0x1b7465(0x22c)]];if(_0x543647!==void 0x0){var _0x5a545c=_0x543647[_0x1b7465(0x20a)](_0x349133,_0x35aa36||'default');if(V(_0x5a545c)!=_0x1b7465(0x255))return _0x5a545c;throw TypeError(_0x1b7465(0x1d2));}return(_0x35aa36===_0x1b7465(0x216)?String:Number)(_0x349133);}function ue(_0x2352d5){const _0x436c5d=_0x26a5;var _0x1e26c3=le(_0x2352d5,_0x436c5d(0x216));return V(_0x1e26c3)==_0x436c5d(0x260)?_0x1e26c3:_0x1e26c3+'';}function H(_0x7c03f9,_0x5a1a3d,_0x36d9a8){const _0x1d4842=_0x26a5;return(_0x5a1a3d=ue(_0x5a1a3d))in _0x7c03f9?Object[_0x1d4842(0x233)](_0x7c03f9,_0x5a1a3d,{'value':_0x36d9a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7c03f9[_0x5a1a3d]=_0x36d9a8,_0x7c03f9;}function U(_0x287273,_0x9332ab){return function(_0x5aadb9,_0x3df309){_0x9332ab(_0x5aadb9,_0x3df309,_0x287273);};}function W(_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69){const _0x34b335=_0x26a5;var _0x2a9fca=arguments[_0x34b335(0x28a)],_0x180ccc=_0x2a9fca<0x3?_0x4100e6:_0x27eb69===null?_0x27eb69=Object[_0x34b335(0x248)](_0x4100e6,_0x581ae5):_0x27eb69,_0x8f56ae;if(typeof Reflect==_0x34b335(0x255)&&typeof Reflect[_0x34b335(0x1f8)]==_0x34b335(0x250))_0x180ccc=Reflect[_0x34b335(0x1f8)](_0x5e6206,_0x4100e6,_0x581ae5,_0x27eb69);else{for(var _0x41f8a4=_0x5e6206[_0x34b335(0x28a)]-0x1;_0x41f8a4>=0x0;_0x41f8a4--)(_0x8f56ae=_0x5e6206[_0x41f8a4])&&(_0x180ccc=(_0x2a9fca<0x3?_0x8f56ae(_0x180ccc):_0x2a9fca>0x3?_0x8f56ae(_0x4100e6,_0x581ae5,_0x180ccc):_0x8f56ae(_0x4100e6,_0x581ae5))||_0x180ccc);}return _0x2a9fca>0x3&&_0x180ccc&&Object[_0x34b335(0x233)](_0x4100e6,_0x581ae5,_0x180ccc),_0x180ccc;}const G=_0x5b386b(0x28f),K='mcp-config-dialog';let q=class extends _0x36bc9e{constructor(_0xc8dc65,_0x1de6e8,_0xe31107,_0x4e1398,_0x2dd3c4,_0x367b86,_0x536adb,_0x3f7775,_0x1a488e,_0x28182c){const _0x47b937=_0x5b386b;super(),this['_injector']=_0xc8dc65,this[_0x47b937(0x1fe)]=_0x1de6e8,this['_configService']=_0xe31107,this['_localStorageService']=_0x4e1398,this[_0x47b937(0x27d)]=_0x2dd3c4,this[_0x47b937(0x23a)]=_0x367b86,this[_0x47b937(0x1f6)]=_0x536adb,this[_0x47b937(0x1e3)]=_0x3f7775,this['_logService']=_0x1a488e,this[_0x47b937(0x247)]=_0x28182c,H(this,_0x47b937(0x1ff),new _0x1d736b(!0x1)),H(this,_0x47b937(0x219),new _0x1d736b({})),H(this,_0x47b937(0x280),new _0x1d736b({})),H(this,_0x47b937(0x268),new _0x1d736b('')),H(this,_0x47b937(0x1f4),async _0x2e95ec=>{const _0x5d88dd=_0x47b937;this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x0);try{var _0x1de00a,_0x8cf87f;let _0xcbba43=await this[_0x5d88dd(0x299)](_0x2e95ec);if(!_0xcbba43[_0x5d88dd(0x223)]){this[_0x5d88dd(0x23a)][_0x5d88dd(0x1f1)]({'type':_0x169226[_0x5d88dd(0x1d1)],'content':_0xcbba43[_0x5d88dd(0x212)]||this[_0x5d88dd(0x1e3)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2e95ec['apiKey']?await this[_0x5d88dd(0x277)]['setItem'](G,_0x2e95ec[_0x5d88dd(0x262)][_0x5d88dd(0x237)]()):await this['_localStorageService']['removeItem'](G),this[_0x5d88dd(0x268)][_0x5d88dd(0x1d0)](((_0x1de00a=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x1de00a[_0x5d88dd(0x237)]())||''),this[_0x5d88dd(0x247)][_0x5d88dd(0x238)]({'Authorization':_0x5d88dd(0x24e)+((_0x8cf87f=_0x2e95ec[_0x5d88dd(0x262)])==null?void 0x0:_0x8cf87f[_0x5d88dd(0x237)]())}),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x294)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x27b))}),setTimeout(()=>{const _0x3c62c2=_0x5d88dd;this['_dialogService'][_0x3c62c2(0x23b)](K);},0x320);}catch(_0x4e150e){this[_0x5d88dd(0x203)][_0x5d88dd(0x21d)](_0x5d88dd(0x24a),_0x4e150e),this[_0x5d88dd(0x23a)]['show']({'type':_0x169226[_0x5d88dd(0x1d1)],'content':this[_0x5d88dd(0x1e3)]['t'](_0x5d88dd(0x211))});}finally{this[_0x5d88dd(0x1ff)][_0x5d88dd(0x1d0)](!0x1);}}),this[_0x47b937(0x217)](),this[_0x47b937(0x29d)](),this[_0x47b937(0x253)]();}['showConfigPanel'](){const _0x20755e=_0x5b386b;let _0x388c03=this['_configService']['getConfig'](z);_0x388c03!=null&&_0x388c03['showDeveloperTools']&&this['_dialogService']['open']({'id':K,'title':{'title':this[_0x20755e(0x1e3)]['t'](_0x20755e(0x2a4))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x9d52d4=_0x20755e;this[_0x9d52d4(0x27d)][_0x9d52d4(0x23b)](K);}});}['getCurrentConfig'](){const _0x3b041f=_0x5b386b;return this[_0x3b041f(0x219)][_0x3b041f(0x29c)];}[_0x5b386b(0x253)](){const _0x3ebba7=_0x5b386b;this['disposeWithMe'](this[_0x3ebba7(0x1f6)][_0x3ebba7(0x263)]('MCPConfigPanel',this[_0x3ebba7(0x29b)]()));}['_createConfigPanelComponent'](){const _0x5bbb92=_0x5b386b;return _0x30c1f6(()=>{const _0x52bec7=_0x26a5;var _0x4a2d19,_0x19fe61,_0x4e6706;return _0x18af1c(R,{'config':this[_0x52bec7(0x280)][_0x52bec7(0x29c)],'mcpCoreConfig':this[_0x52bec7(0x219)][_0x52bec7(0x29c)],'currentApiKey$':this[_0x52bec7(0x268)],'onSave':this[_0x52bec7(0x1f4)],'loading':this[_0x52bec7(0x1ff)][_0x52bec7(0x29c)],'connectionStatus$':(_0x4a2d19=this[_0x52bec7(0x247)])==null?void 0x0:_0x4a2d19['connectionStatus$'],'connectionError$':(_0x19fe61=this[_0x52bec7(0x247)])==null?void 0x0:_0x19fe61['connectionError$'],'currentSessionId$':(_0x4e6706=this['_mcpConnectionController'])==null?void 0x0:_0x4e6706[_0x52bec7(0x271)]});},this[_0x5bbb92(0x240)]);}[_0x5b386b(0x217)](){const _0x31e407=_0x5b386b;this[_0x31e407(0x1d8)](this['_configService']['subscribeConfigValue$'](_0x2eedd5)[_0x31e407(0x225)](_0x3532ff=>{this['_mcpCoreConfig$']['next'](_0x3532ff||{});}));let _0x31889f=this['_configService'][_0x31e407(0x20e)](_0x2eedd5);this[_0x31e407(0x219)][_0x31e407(0x1d0)](_0x31889f||{}),this[_0x31e407(0x1d8)](this[_0x31e407(0x1ee)]['subscribeConfigValue$'](z)[_0x31e407(0x225)](_0x808664=>{const _0xa8fcd9=_0x31e407;this['_config$'][_0xa8fcd9(0x1d0)](_0x808664||{});}));let _0x4322c3=this['_configService'][_0x31e407(0x20e)](z);this[_0x31e407(0x280)][_0x31e407(0x1d0)](_0x4322c3||{});}async['_loadStoredApiKey'](){const _0x111bfc=_0x5b386b;let _0x4ff80b=this[_0x111bfc(0x1ee)][_0x111bfc(0x20e)](z);if(!(_0x4ff80b!=null&&_0x4ff80b[_0x111bfc(0x282)]))return;let _0x237c87=await this[_0x111bfc(0x277)][_0x111bfc(0x266)](G);_0x237c87&&(this[_0x111bfc(0x247)][_0x111bfc(0x238)]({'Authorization':_0x111bfc(0x24e)+_0x237c87}),this[_0x111bfc(0x268)][_0x111bfc(0x1d0)](_0x237c87));}async[_0x5b386b(0x299)](_0x175811){const _0xf4b28a=_0x5b386b;if(!_0x175811[_0xf4b28a(0x262)]||_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t'](_0xf4b28a(0x1cb))};if(_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]()[_0xf4b28a(0x28a)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x50280f=await this['_injector'][_0xf4b28a(0x1ef)](_0x4b7493)[_0xf4b28a(0x287)](_0x175811[_0xf4b28a(0x262)][_0xf4b28a(0x237)]());return _0x50280f[_0xf4b28a(0x223)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x50280f[_0xf4b28a(0x21d)]||this[_0xf4b28a(0x1e3)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x427054){return console[_0xf4b28a(0x29e)](_0xf4b28a(0x258),_0x427054),{'isValid':!0x0};}}};q=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x2e6601),U(0x2,_0x20fb6a),U(0x3,_0x154cb1),U(0x4,_0x15974b),U(0x5,_0x181e42),U(0x6,_0x5289d4(_0x368ca5)),U(0x7,_0x5289d4(_0x51f592)),U(0x8,_0x1ebe22),U(0x9,_0x5289d4(_0x4b7493))],q);const J={'id':'mcp-ui.command.openConfigPanel','type':_0x593979['COMMAND'],'handler':async(_0x2b5c5a,_0x45a285)=>(_0x2b5c5a[_0x5b386b(0x1ef)](q)[_0x5b386b(0x1eb)](),!0x0)};function Y(_0x455cae,_0x3c48bd){const _0x50786b=_0x5b386b;switch(_0x455cae){case _0xd1ea3a['DISCONNECTED']:return _0x50786b(0x1d9);case _0xd1ea3a[_0x50786b(0x230)]:return'mcpStatus.connecting';case _0xd1ea3a['CONNECTED']:return _0x50786b(0x205);case _0xd1ea3a[_0x50786b(0x1fa)]:switch(_0x3c48bd){case _0x8f97d4[_0x50786b(0x236)]:return'mcpStatus.unauthorized';case _0x8f97d4[_0x50786b(0x1d3)]:return _0x50786b(0x259);case _0x8f97d4[_0x50786b(0x1f0)]:return _0x50786b(0x235);case _0x8f97d4[_0x50786b(0x285)]:return _0x50786b(0x27c);default:return _0x50786b(0x28c);}case _0xd1ea3a[_0x50786b(0x1e2)]:return _0x50786b(0x291);default:return'mcpStatus.unknown';}}function de(_0x2590cb,_0x4c5cdb,_0x19a3c2,_0xa20008=!0x0){const _0x269dc6=_0x5b386b;let _0x430f19=Y(_0x2590cb,_0x4c5cdb),_0x41f045=_0x19a3c2['t'](_0x430f19);return _0xa20008?_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]&&_0x4c5cdb===_0x8f97d4['UNAUTHORIZED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x2a6)):_0x2590cb===_0xd1ea3a[_0x269dc6(0x296)]?''+_0x41f045:_0x2590cb===_0xd1ea3a[_0x269dc6(0x1c8)]||_0x2590cb===_0xd1ea3a['FAILED']?_0x41f045+'\x20-\x20'+_0x19a3c2['t'](_0x269dc6(0x264)):_0x41f045:_0x41f045;}function _0x1683(){const _0x11e54a=['registerComponent','OTHERS','univer-size-4','disposeWithMe','mcpStatus.disconnected','mcpConfig.connectionStatus.connecting','has','mcpConfig.connectionStatus.connected','registerCommand','univer-bg-blue-500','_handleConfigure','126730MSIWXo','constructor','RETRYING','_localeService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-items-center\x20univer-gap-3','div','mcpConfig.note1','_config','_initializeCommands','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','showConfigPanel','span','univer-shrink-0\x20univer-text-blue-500','_configService','get','NETWORK_ERROR','show','mcpConfig.apiKeyHint','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_handleConfigSave','mcpConfig.authorizationDescription','_componentManager','mcpConfig.connectionStatus.retrying','decorate','1.0.0-alpha.1','FAILED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','@univerjs-pro/mcp-ui','_uiPartsService','_loading$','mcpConfig.configStep1','univer-text-red-500','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','_logService','_blank','mcpStatus.connected','9gPnHhq','_initializeMenus','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','<API_KEY>','call','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','getConfig','univer.ai','_menuManagerService','mcpConfig.configError','errorMessage','mcpConfig.connectionStatus.disconnected','227520fwJgTk','univer-size-2\x20univer-rounded-full','string','_initConfigSync','mcpConfig.connectionError.sessionOccupied','_mcpCoreConfig$','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-gap-3','univer-text-xs\x20univer-text-gray-500','error','741528nIPQOs','mcpConfig.configStep3','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','1453560HgAlEF','isValid','iterator','subscribe','univer-space-y-3','mcpConfig.note2','showStatus','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','univer-text-blue-600','mcpConfig.apiApplyInfo.univerAiLabel','toPrimitive','prototype','5DqYuBa','forEach','CONNECTING','univer_session_id:','Authorization:','defineProperty','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.networkError','UNAUTHORIZED','trim','__setCustomHeaders','univer-bg-red-500','_messageService','close','306068DZXiDn','univer-min-w-0\x20univer-flex-1','616588HPdMWb','mcpConfig.sessionIdDescription','_injector','https://console.univer.plus','univer-bg-green-500','http','univer-text-white','connectionError$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','getOwnPropertyDescriptor','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Bearer\x20','includes','function','bottom','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','_initAutoConnect','object','pluginName','stringify','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpStatus.sessionOccupied','button','univer-flex\x20univer-items-center','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','enableAutoConnect','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.configStepTitle','symbol','univer-text-sm\x20univer-font-medium','apiKey','register','mcpStatus.clickToConnect','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','getItem','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','_apiKey$','univer-text-yellow-500','univer-bg-gray-500','Configuration\x20Notes:','mcpConfig.connectionError.unauthorized','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep2','off','onStarting','sessionId$','label','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.save','MenuIcon','_localStorageService','MCP\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.configSaved','mcpStatus.maxRetriesExceeded','_dialogService','mcpConfig.saving','text','_config$','univer-space-y-4','showDeveloperTools','NONE','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','validateApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-space-y-5','length','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.failed','mcpServerUrl','<SESSION_ID>','mcp.apiKey','mcpConfig.apiApplyInfo.description','mcpStatus.retrying','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-shrink-0\x20univer-text-red-500','Success','univer-font-medium','CONNECTED','_commandService','univer-flex\x20univer-items-start\x20univer-gap-2','_validateConfig','univer-text-sm\x20univer-text-gray-500','_createConfigPanelComponent','value','_loadStoredApiKey','warn','_initStatusComponent','mcpConfig.apiApplyInfo.getStarted','mcpConfig.configParameters','mcpConfig.connectionInfo','univer-text-xs\x20univer-text-gray-600','mcpConfig.title','2pLGPbd','mcpStatus.clickToConfigure','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','DISCONNECTED','_connectionController','mcpConfig.connectionStatus.failed','mcpConfig.validation.apiKeyRequired','univer-text-green-500','push','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mergeMenu','next','Error','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SESSION_ID_OCCUPIED','824601gAAcaQ'];_0x1683=function(){return _0x11e54a;};return _0x1683();}function fe(_0x1d3583){const _0x3737f8=_0x5b386b;switch(_0x1d3583){case _0xd1ea3a['CONNECTED']:return _0x3737f8(0x1cc);case _0xd1ea3a[_0x3737f8(0x230)]:case _0xd1ea3a[_0x3737f8(0x1e2)]:return _0x3737f8(0x269);case _0xd1ea3a['FAILED']:case _0xd1ea3a['DISCONNECTED']:return _0x3737f8(0x201);default:return'univer-text-gray-500';}}function X(_0x286f1f){const _0x1719b0=_0x5b386b;let {status$:_0x5b4279,error$:_0x584f6f,onConfigure:_0x441f1c,showClickable:_0x61431e=!0x0}=_0x286f1f,_0x45fbf7=_0x6ce075(_0x5b4279,_0xd1ea3a['DISCONNECTED']),_0x10bb4e=_0x6ce075(_0x584f6f,_0x8f97d4[_0x1719b0(0x283)]),_0x2c5e95=_0x15c776(_0x51f592),_0x524ac7=_0x45fbf7===_0xd1ea3a[_0x1719b0(0x296)];_0x45fbf7===_0xd1ea3a['CONNECTING']||_0xd1ea3a[_0x1719b0(0x1e2)];let _0x3f0101=_0x2c5e95['t'](Y(_0x45fbf7,_0x10bb4e)),_0x146fe0=de(_0x45fbf7,_0x10bb4e,_0x2c5e95,_0x61431e),_0x4a7955=fe(_0x45fbf7),_0x446289=_0x18af1c(_0x524ac7?_0x3ef954:_0x1ecc57,{}),_0x5614ed=_0x2ae2c6(()=>{_0x61431e&&_0x441f1c&&_0x441f1c();},[_0x61431e,_0x441f1c]);function _0x301867(){const _0x5f457a=_0x1719b0;return _0x362d0c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x25b),_0x61431e&&_0x441f1c&&'univer-cursor-pointer\x20hover:univer-opacity-80'),'role':_0x5f457a(0x25a),'onClick':_0x61431e&&_0x441f1c?_0x5614ed:void 0x0,'children':[_0x18af1c(_0x5f457a(0x1e6),{'className':_0xa49791(_0x5f457a(0x221),_0x4a7955),'children':_0x446289}),_0x18af1c(_0x5f457a(0x1e6),{'className':_0x5f457a(0x1fb),'children':_0x3f0101})]});}return _0x18af1c(_0x20c901,{'title':_0x146fe0,'placement':_0x1719b0(0x251),'children':_0x301867()});}let Z=class extends _0x36bc9e{constructor(_0x24b23a,_0x1b9398,_0x1f2754,_0x26bc44){const _0x16e31b=_0x5b386b;super(),this[_0x16e31b(0x240)]=_0x24b23a,this[_0x16e31b(0x1c9)]=_0x1b9398,this['_uiPartsService']=_0x1f2754,this['_configService']=_0x26bc44,this[_0x16e31b(0x254)](),this[_0x16e31b(0x29f)]();}[_0x5b386b(0x254)](){const _0x4c16be=_0x5b386b;let _0x4043e2=this[_0x4c16be(0x1ee)][_0x4c16be(0x20e)](z);_0x4043e2!=null&&_0x4043e2['showDeveloperTools']&&(this[_0x4c16be(0x1c9)][_0x4c16be(0x25d)]=!0x1);}[_0x5b386b(0x29f)](){const _0x445587=_0x5b386b;let _0x1323b9=this[_0x445587(0x1ee)][_0x445587(0x20e)](z);(_0x1323b9==null?void 0x0:_0x1323b9[_0x445587(0x228)])!==!0x1&&this['disposeWithMe'](this[_0x445587(0x1fe)][_0x445587(0x1d5)](_0x209d4c['HEADER_MENU'],()=>{const _0x5af502=_0x445587;var _0x36e6b3;return _0x30c1f6(pe({'status$':this[_0x5af502(0x1c9)]['connectionStatus$'],'error$':this[_0x5af502(0x1c9)][_0x5af502(0x245)],'onConfigure':()=>this[_0x5af502(0x1df)](),'showClickable':(_0x36e6b3=_0x1323b9==null?void 0x0:_0x1323b9[_0x5af502(0x282)])==null?!0x1:_0x36e6b3}),this['_injector']);}));}[_0x5b386b(0x1df)](){const _0xdf00df=_0x5b386b;this[_0xdf00df(0x240)][_0xdf00df(0x1ef)](q)['showConfigPanel']();}};Z=W([U(0x0,_0x5289d4(_0xbbbf4b)),U(0x1,_0x5289d4(_0x4b7493)),U(0x2,_0x2e6601),U(0x3,_0x20fb6a)],Z);function pe(_0x3d7f5a){let {status$:_0x1424dc,error$:_0x49ce84,onConfigure:_0x2b1cfa,showClickable:_0x51ca9b}=_0x3d7f5a;return function(){return _0x18af1c(X,{'status$':_0x1424dc,'error$':_0x49ce84,'onConfigure':_0x2b1cfa,'showClickable':_0x51ca9b});};}function me(_0x180c4d){const _0x4d227e=_0x5b386b;return{'id':J['id'],'type':_0x53c3c0['BUTTON'],'icon':_0x4d227e(0x276),'title':_0x4d227e(0x2a4),'tooltip':_0x4d227e(0x2a4)};}const he={[_0x15a128[_0x5b386b(0x1d6)]]:{[J['id']]:{'order':0xa,'menuItemFactory':me}}};let Q=class extends _0x36bc9e{constructor(_0x115ccc,_0x3ab81f){const _0x10ec34=_0x5b386b;super(),this[_0x10ec34(0x297)]=_0x115ccc,this[_0x10ec34(0x210)]=_0x3ab81f,this[_0x10ec34(0x1e9)](),this[_0x10ec34(0x207)]();}['_initializeCommands'](){const _0x4ca115=_0x5b386b;[J][_0x4ca115(0x22f)](_0x34d06e=>{const _0x4b7d95=_0x4ca115;this[_0x4b7d95(0x1d8)](this['_commandService'][_0x4b7d95(0x1dd)](_0x34d06e));});}['_initializeMenus'](){const _0x581c1b=_0x5b386b;this['_menuManagerService'][_0x581c1b(0x1cf)](he);}};Q=W([U(0x0,_0x4bda18),U(0x1,_0x27ead3)],Q);var ge=_0x5b386b(0x1fd),_e=_0x5b386b(0x1f9);let $=class extends _0x3e8439{constructor(_0x1ba424=B,_0x339013,_0x26da5a,_0x2e3470,_0x2b63cb,_0xde7eea){const _0x2bd8b6=_0x5b386b;super(),this[_0x2bd8b6(0x1e8)]=_0x1ba424,this[_0x2bd8b6(0x240)]=_0x339013,this[_0x2bd8b6(0x1ee)]=_0x26da5a,this[_0x2bd8b6(0x1fe)]=_0x2e3470,this['_localStorageService']=_0x2b63cb,this[_0x2bd8b6(0x1e3)]=_0xde7eea;let {..._0x4633d8}=_0x354f9c({},B,this[_0x2bd8b6(0x1e8)]);this[_0x2bd8b6(0x1ee)][_0x2bd8b6(0x220)](z,_0x4633d8);}async[_0x5b386b(0x270)](){const _0x2d937b=_0x5b386b;let _0x5ab5a4=[[Z],[q],[Q]];this[_0x2d937b(0x240)][_0x2d937b(0x1db)](_0x429c47)||_0x5ab5a4[_0x2d937b(0x1cd)]([_0x429c47,{'useClass':_0x27c201}]),_0x5ab5a4[_0x2d937b(0x22f)](_0x440ad0=>this[_0x2d937b(0x240)]['add'](_0x440ad0)),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Z),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](q),this[_0x2d937b(0x240)][_0x2d937b(0x1ef)](Q);}};H($,_0x5b386b(0x256),'MCP_UI_PLUGIN'),H($,'packageName',ge),H($,'version',_e),$=W([_0x492c3b(_0x5d8c82),U(0x1,_0x5289d4(_0xbbbf4b)),U(0x2,_0x20fb6a),U(0x3,_0x2e6601),U(0x4,_0x154cb1),U(0x5,_0x5289d4(_0x51f592))],$);export{R as MCPConfigPanel,q as MCPConfigUIController,Z as MCPConnectionUIController,X as MCPStatusDisplay,Q as MCPUIMenuController,J as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,_0x161449 as enUS,_0x397a8e as zhCN};
|
|
1
|
+
const _0x17c586=_0x3452;(function(_0x35cf13,_0x16bbab){const _0x1b804f=_0x3452,_0x4ea20b=_0x35cf13();while(!![]){try{const _0x5a1746=parseInt(_0x1b804f(0x280))/0x1*(-parseInt(_0x1b804f(0x247))/0x2)+parseInt(_0x1b804f(0x207))/0x3+parseInt(_0x1b804f(0x290))/0x4+parseInt(_0x1b804f(0x200))/0x5*(-parseInt(_0x1b804f(0x266))/0x6)+parseInt(_0x1b804f(0x251))/0x7+-parseInt(_0x1b804f(0x211))/0x8+parseInt(_0x1b804f(0x222))/0x9;if(_0x5a1746===_0x16bbab)break;else _0x4ea20b['push'](_0x4ea20b['shift']());}catch(_0x22108a){_0x4ea20b['push'](_0x4ea20b['shift']());}}}(_0x5522,0xeed4b));import _0x18d6f8 from'./locale/en-US.js';function _0x5522(){const _0x2eaeff=['univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','function','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_configService','univer-flex\x20univer-items-center','NETWORK_ERROR','18321615YJxVUG','_loadStoredApiKey','NONE','getOwnPropertyDescriptor','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','RETRYING','version','open','symbol','defineProperty','getConfig','prototype','length','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_createConfigPanelComponent','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpStatus.networkError','HEADER_MENU','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','BUTTON','univer-bg-red-500','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpStatus.clickToConnect','http','has','univer-text-xs\x20univer-text-gray-600','SESSION_ID_OCCUPIED','1.0.0-alpha.2','univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionError.maxRetriesExceeded','univer-space-y-4','subscribeConfigValue$','univer-text-sm\x20univer-text-gray-500','warn','univer-text-green-500','_componentManager','https://console.univer.plus','1678qKOWei','UNAUTHORIZED','univer-flex\x20univer-items-center\x20univer-gap-3','mcpStatus.sessionOccupied','iterator','mcpConfig.connectionStatus.failed','COMMAND','univer-shrink-0\x20univer-text-red-500','_logService','_initializeCommands','5912466ToIGVC','_connectionController','univer-font-medium','_config','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','getCurrentConfig','isValid','_validateConfig','univer-bg-gray-500','disposeWithMe','MAX_RETRIES_EXCEEDED','push','registerCommand','mcpConfig.configInstructions','enableAutoConnect','_handleConfigure','removeItem','_initializeMenus','span','object','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','176406KEQUcd','OTHERS','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','errorMessage','DISCONNECTED','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','CONNECTED','Error','mcpStatus.retrying','mcpServerUrl','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.title','mergeMenu','Authorization:','mcpStatus.disconnected','pre','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','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','trim','_mcpConnectionController','_localStorageService','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_uiPartsService','_localeService','mcpConfig.configError','univer-text-blue-600','2297INKYtT','mcpConfig.connectionStatus.disconnected','_mcpCoreConfig$','__setCustomHeaders','mcpConfig.validation.apiKeyRequired','mcpStatus.connected','Success','https://mcp.univer.ai/mcp/?univer_session_id=','_commandService','validateApiKey','button','mcpConfig.connectionInfo','univer-text-yellow-500','string','mcpConfig.note2','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','3596864pOWcDK','mcpConfig.authorizationDescription','mcp-ui.command.openConfigPanel','mcpConfig.validation.apiKeyTooShort','univer-space-y-3','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','https://console.univer.ai','mcpConfig.configStep3','mcpConfig.sessionIdDescription','_initAutoConnect','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','apiKey','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-gap-3','_injector','value','mcpConfig.apiApplyInfo.description','get','mcpConfig.save','univer-space-y-2','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcp-ui.config','_messageService','connectionStatus$','setItem','_registerComponent','mcpConfig.apiApplyInfo.univerAiLabel','subscribe','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_menuManagerService','getItem','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.maxRetriesExceeded','bottom','Configuration\x20Notes:','@univerjs-pro/mcp-ui','decorate','_apiKey$','mcpConfig.configStepTitle','forEach','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-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Bearer\x20','mcpConfig.configSaved','constructor','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','show','univer.ai','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','div','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Configuration','CONNECTING','includes','<SESSION_ID>','mcpConfig.apiApplyInfo.title','univer-min-w-0\x20univer-flex-1','mcpConfig.connectionError.networkError','MCP_UI_PLUGIN','next','univer.plus','univer-shrink-0\x20univer-text-blue-500','univer-text-gray-500','univer-text-sm\x20univer-font-medium','_initConfigSync','univer-flex\x20univer-items-start\x20univer-gap-3','showConfigPanel','close','pluginName','mcpConfig.connectionError.sessionOccupied','text','showDeveloperTools','_dialogService','_loading$','mcpStatus.failed','connectionError$','univer-text-red-500','mcpConfig.connectionStatus.connected','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','<API_KEY>','mcpStatus.unauthorized','mcpConfig.description','5uqpoQv','mcpConfig.apiKey','FAILED','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.validation.invalidConfig','mcpStatus.unknown','1115436aFRvPH','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','default','univer-bg-blue-500','univer-space-y-5','label','toPrimitive','mcpStatus.clickToConfigure','registerComponent','9732528inbXxt','_config$','univer-size-2\x20univer-rounded-full','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_handleConfigSave','add','mcpConfig.connectionStatus.connecting','MCPConfigPanel','noopener\x20noreferrer','mcpConfig.apiKeyPlaceholder'];_0x5522=function(){return _0x2eaeff;};return _0x5522();}import _0x44329b from'./locale/zh-CN.js';import{CommandType as _0x48130d,DependentOn as _0x2a21e6,Disposable as _0xdae7e5,ICommandService as _0x36e169,IConfigService as _0x51ed0c,ILocalStorageService as _0x2c466b,ILogService as _0x16f80d,Inject as _0x231d00,Injector as _0x55ec3d,LocaleService as _0x48657c,Plugin as _0x158d2d,merge as _0x1393ae}from'@univerjs/core';import{MCPConnectionController as _0x2846af,MCPConnectionError as _0x4597bf,MCPConnectionStatus as _0x1c7b34,MCP_PLUGIN_CONFIG_KEY as _0x18cf50,UniverMCPPlugin as _0x33ef67}from'@univerjs-pro/mcp';import{Button as _0x8e4d1d,Input as _0x16ca28,MessageType as _0x481a44,Tooltip as _0x49465c,clsx as _0x59158a}from'@univerjs/design';import{BuiltInUIPart as _0x427625,ComponentManager as _0x2b72fa,IDialogService as _0x277e35,IMenuManagerService as _0x3d03c8,IMessageService as _0x303ac3,IUIPartsService as _0x2a502a,MenuItemType as _0x20dfcd,RibbonStartGroup as _0x4f9ef8,connectInjector as _0x9ea2f0,useDependency as _0x1bf5ce,useObservable as _0x478e9d}from'@univerjs/ui';import{BehaviorSubject as _0x56f71a}from'rxjs';import{CheckMarkIcon as _0x2f9cd1,CloseIcon as _0x1913ed,HelpIcon as _0x3db151,OffLineIcon as _0x5e44bf,OnLineIcon as _0x1ecf22}from'@univerjs/icons';import{useCallback as _0x446f26,useState as _0x2938b8}from'react';import{jsx as _0xb17fc6,jsxs as _0x32efd0}from'react/jsx-runtime';import{ISocketService as _0x53b1ef,WebSocketService as _0x3d30b9}from'@univerjs/network';function R(_0x7c165d){const _0x25e6f1=_0x3452;var _0x4ab16b,_0x42ce2d;let {mcpCoreConfig:_0x4199c4,onSave:_0x31612b,loading:_0x31bbc2=!0x1,config:_0x3e38d2,connectionStatus$:_0x8fc804,connectionError$:_0x177bed,currentApiKey$:_0x2e7f7e,currentSessionId$:_0x5d8f16}=_0x7c165d,_0x18abef=_0x1bf5ce(_0x48657c),_0x230150=_0x478e9d(_0x8fc804,_0x1c7b34[_0x25e6f1(0x26a)]),_0xfdc96=_0x478e9d(_0x177bed,_0x4597bf['NONE']),_0x21ecc8=_0x478e9d(_0x5d8f16,''),[_0xf6ca4e,_0x1083f1]=_0x2938b8(_0x478e9d(_0x2e7f7e,'')||''),_0x4d5c2e=_0x3e38d2[_0x25e6f1(0x1f5)]&&_0x4199c4['mcpServerUrl']&&(_0x4199c4[_0x25e6f1(0x26f)][_0x25e6f1(0x1e3)](_0x25e6f1(0x1ea))||_0x4199c4[_0x25e6f1(0x26f)][_0x25e6f1(0x1e3)]('univer.ai')),_0x592102=(_0x4ab16b=_0x4199c4[_0x25e6f1(0x26f)])==null?void 0x0:_0x4ab16b[_0x25e6f1(0x1e3)](_0x25e6f1(0x1ea)),_0x2db6fe=(_0x42ce2d=_0x4199c4['mcpServerUrl'])==null?void 0x0:_0x42ce2d[_0x25e6f1(0x1e3)](_0x25e6f1(0x1dc)),_0x141d22=_0x592102?_0x25e6f1(0x246):_0x25e6f1(0x1b3),_0x40c771=_0x3e38d2[_0x25e6f1(0x1f5)]&&(_0x592102||_0x2db6fe),[_0x4e0291,_0x2ea3e0]=_0x2938b8(!_0xf6ca4e[_0x25e6f1(0x278)]()),_0x311ba1=(_0x965874,_0x4c8ea1)=>{const _0x1d3fe5=_0x25e6f1;if(_0x4c8ea1===_0x4597bf[_0x1d3fe5(0x248)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x965874){case _0x1c7b34[_0x1d3fe5(0x26c)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1c7b34['CONNECTING']:case _0x1c7b34[_0x1d3fe5(0x227)]:return _0x1d3fe5(0x28f);case _0x1c7b34[_0x1d3fe5(0x202)]:return _0x1d3fe5(0x21c);default:return _0x1d3fe5(0x1da);}},_0x3da609=(_0x327946,_0x3bca4c)=>{const _0x14e504=_0x25e6f1;if(_0x3bca4c===_0x4597bf[_0x14e504(0x248)])return _0x14e504(0x236);switch(_0x327946){case _0x1c7b34[_0x14e504(0x26c)]:return'univer-bg-green-500';case _0x1c7b34[_0x14e504(0x1e2)]:case _0x1c7b34[_0x14e504(0x227)]:return _0x14e504(0x20b);case _0x1c7b34[_0x14e504(0x202)]:return _0x14e504(0x236);default:return _0x14e504(0x259);}},_0x5c48c7=_0x1fc865=>{const _0x15508a=_0x25e6f1;switch(_0x1fc865){case _0x1c7b34[_0x15508a(0x26c)]:return _0x18abef['t'](_0x15508a(0x1fb));case _0x1c7b34[_0x15508a(0x1e2)]:return _0x18abef['t'](_0x15508a(0x218));case _0x1c7b34[_0x15508a(0x202)]:return _0x18abef['t'](_0x15508a(0x24c));case _0x1c7b34[_0x15508a(0x227)]:return _0x18abef['t']('mcpConfig.connectionStatus.retrying');default:return _0x18abef['t'](_0x15508a(0x281));}},_0x39f775=_0x212b05=>{const _0x405de1=_0x25e6f1;switch(_0x212b05){case _0x4597bf[_0x405de1(0x248)]:return _0x18abef['t']('mcpConfig.connectionError.unauthorized');case _0x4597bf[_0x405de1(0x23c)]:return _0x18abef['t'](_0x405de1(0x1f3));case _0x4597bf[_0x405de1(0x221)]:return _0x18abef['t'](_0x405de1(0x1e7));case _0x4597bf[_0x405de1(0x25b)]:return _0x18abef['t'](_0x405de1(0x23f));default:return'';}},_0x2dc69d=_0x446f26(()=>{_0x31612b({..._0x4199c4,'apiKey':_0xf6ca4e['trim'](),'enableAuth':!0x0});},[_0x4199c4,_0xf6ca4e,!0x0,_0x31612b]),_0xb8ffe3=_0xf6ca4e[_0x25e6f1(0x278)]()[_0x25e6f1(0x22e)]>0x0;return _0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x208),'children':[_0xb17fc6('div',{'className':_0x25e6f1(0x268),'children':_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x249),'children':[_0xb17fc6('div',{'className':_0x25e6f1(0x204),'children':_0xb17fc6('span',{'className':'univer-text-white','children':'⚙'})}),_0xb17fc6(_0x25e6f1(0x1df),{'children':_0xb17fc6('p',{'className':_0x25e6f1(0x242),'children':_0x18abef['t'](_0x25e6f1(0x1ff))})})]})}),_0x32efd0(_0x25e6f1(0x1df),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x59158a(_0x25e6f1(0x27b),_0x311ba1(_0x230150,_0xfdc96)),'children':_0x32efd0('div',{'className':_0x25e6f1(0x214),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x59158a(_0x25e6f1(0x213),_0x3da609(_0x230150,_0xfdc96))}),_0xb17fc6('span',{'className':_0x25e6f1(0x1ed),'children':_0x5c48c7(_0x230150)})]})}),_0xfdc96!==_0x4597bf[_0x25e6f1(0x224)]&&(_0x230150===_0x1c7b34[_0x25e6f1(0x202)]||_0xfdc96===_0x4597bf[_0x25e6f1(0x248)])&&_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x276),'children':_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1e0),'children':[_0xb17fc6('span',{'className':_0x25e6f1(0x24e),'children':'⚠️'}),_0xb17fc6('p',{'className':_0x25e6f1(0x1cc),'children':_0x39f775(_0xfdc96)})]})})]}),_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1fc),'children':_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x20c),'children':[_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1c0),'children':[_0x32efd0(_0x25e6f1(0x20d),{'className':_0x25e6f1(0x215),'children':[_0xb17fc6(_0x25e6f1(0x263),{'children':'🔑'}),'\x20',_0x18abef['t'](_0x25e6f1(0x201)),_0xb17fc6(_0x25e6f1(0x263),{'className':_0x25e6f1(0x1fa),'children':'*'}),_0x4d5c2e&&_0xb17fc6('a',{'className':_0x25e6f1(0x265),'title':_0x18abef['t'](_0x25e6f1(0x1e5)),'role':_0x25e6f1(0x28a),'onClick':()=>_0x2ea3e0(!0x0),'children':_0xb17fc6(_0x3db151,{})})]}),_0xb17fc6(_0x16ca28,{'type':_0x25e6f1(0x1f4),'placeholder':_0x18abef['t'](_0x25e6f1(0x21b)),'value':_0xf6ca4e,'disabled':_0x31bbc2,'autoComplete':'off','onChange':_0x1083f1}),_0xb17fc6('p',{'className':_0x25e6f1(0x23e),'children':_0x18abef['t']('mcpConfig.apiKeyHint')})]}),_0x4d5c2e&&_0x4e0291&&_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x277),'children':[_0xb17fc6('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x25e6f1(0x28a),'onClick':()=>_0x2ea3e0(!0x1),'children':_0xb17fc6(_0x1913ed,{'className':'univer-size-4'})}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1de),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0xb17fc6(_0x25e6f1(0x263),{'className':_0x25e6f1(0x27f),'children':'🚀'})}),_0x32efd0(_0x25e6f1(0x1df),{'className':'univer-flex-1','children':[_0xb17fc6('h4',{'className':_0x25e6f1(0x255),'children':_0x18abef['t'](_0x25e6f1(0x1e5))}),_0xb17fc6('p',{'className':_0x25e6f1(0x234),'children':_0x18abef['t'](_0x25e6f1(0x1bd))}),_0xb17fc6(_0x25e6f1(0x1df),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x40c771&&_0x32efd0('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x141d22,'target':'_blank','rel':_0x25e6f1(0x21a),'children':[_0xb17fc6(_0x25e6f1(0x263),{'children':'🤖'}),_0x18abef['t'](_0x25e6f1(0x1c7)),_0xb17fc6('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1dd),'children':['✨','\x20',_0x18abef['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3e38d2[_0x25e6f1(0x1f5)]&&_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x226),'children':[_0x32efd0('h4',{'className':_0x25e6f1(0x1c9),'children':[_0xb17fc6('span',{'children':'🔗'}),'\x20',_0x18abef['t'](_0x25e6f1(0x28b))]}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x240),'children':[_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x294),'children':[_0xb17fc6('p',{'className':_0x25e6f1(0x23b),'children':_0x18abef['t'](_0x25e6f1(0x25e))}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1c0),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1b7),'children':_0x18abef['t'](_0x25e6f1(0x1d3))}),_0x32efd0('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x32efd0('div',{'className':_0x25e6f1(0x214),'children':[_0xb17fc6(_0x25e6f1(0x263),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x18abef['t']('mcpConfig.configStep1')]}),_0x32efd0('div',{'className':_0x25e6f1(0x214),'children':[_0xb17fc6(_0x25e6f1(0x263),{'className':_0x25e6f1(0x1d5),'children':'2'}),_0x18abef['t']('mcpConfig.configStep2')]}),_0x32efd0('div',{'className':_0x25e6f1(0x214),'children':[_0xb17fc6('span',{'className':_0x25e6f1(0x1d5),'children':'3'}),_0x18abef['t'](_0x25e6f1(0x1b4))]})]})]})]}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1c0),'children':[_0xb17fc6('div',{'className':_0x25e6f1(0x1b7),'children':_0x25e6f1(0x1e1)}),_0xb17fc6(_0x25e6f1(0x1df),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0xb17fc6(_0x25e6f1(0x275),{'className':_0x25e6f1(0x21e),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x25e6f1(0x287)+(_0x21ecc8||_0x25e6f1(0x1e4)),'type':_0x25e6f1(0x239),'headers':{'Authorization':'Bearer\x20'+(_0xf6ca4e||_0x25e6f1(0x1fd))}}}},null,0x2)})})]}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x294),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x18abef['t']('mcpConfig.configParameters')}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1c0),'children':[_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1ef),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1d6)}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1e6),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x209),'children':'univer_session_id:'}),_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x23e),'children':_0x18abef['t'](_0x25e6f1(0x1b5))})]})]}),_0x32efd0('div',{'className':_0x25e6f1(0x1ef),'children':[_0xb17fc6('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1e6),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x209),'children':_0x25e6f1(0x273)}),_0xb17fc6('div',{'className':_0x25e6f1(0x23e),'children':_0x18abef['t'](_0x25e6f1(0x291))})]})]})]})]})]})]}),_0xb17fc6(_0x8e4d1d,{'onClick':_0x2dc69d,'disabled':!_0xb8ffe3||_0x31bbc2,'className':_0x25e6f1(0x26b),'children':_0x31bbc2?_0x32efd0(_0x25e6f1(0x263),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xb17fc6(_0x25e6f1(0x263),{'children':'⟲'}),_0x18abef['t']('mcpConfig.saving')]}):_0x32efd0('span',{'className':_0x25e6f1(0x214),'children':[_0xb17fc6(_0x2f9cd1,{}),_0x18abef['t'](_0x25e6f1(0x1bf))]})}),_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x1c1),'children':_0x32efd0('div',{'className':_0x25e6f1(0x1ba),'children':[_0xb17fc6(_0x25e6f1(0x263),{'className':_0x25e6f1(0x1eb),'children':'💡'}),_0x32efd0(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x231),'children':[_0xb17fc6(_0x25e6f1(0x1df),{'className':_0x25e6f1(0x253),'children':_0x25e6f1(0x1cf)}),_0x32efd0(_0x25e6f1(0x1df),{'children':['•',_0x18abef['t']('mcpConfig.note1')]}),_0x32efd0(_0x25e6f1(0x1df),{'children':['•',_0x18abef['t'](_0x25e6f1(0x28e))]})]})]})})]})})]});}const z=_0x17c586(0x1c2),B={'showDeveloperTools':!0x1,'showStatus':!0x0};function V(_0x1885f4){'@babel/helpers - typeof';const _0x4d053a=_0x17c586;return V=typeof Symbol==_0x4d053a(0x21d)&&typeof Symbol[_0x4d053a(0x24b)]==_0x4d053a(0x22a)?function(_0x382df2){return typeof _0x382df2;}:function(_0x153e4a){const _0x2ecf99=_0x4d053a;return _0x153e4a&&typeof Symbol==_0x2ecf99(0x21d)&&_0x153e4a[_0x2ecf99(0x1d9)]===Symbol&&_0x153e4a!==Symbol[_0x2ecf99(0x22d)]?_0x2ecf99(0x22a):typeof _0x153e4a;},V(_0x1885f4);}function le(_0x2c8a0d,_0x28e8e2){const _0x1be002=_0x17c586;if(V(_0x2c8a0d)!=_0x1be002(0x264)||!_0x2c8a0d)return _0x2c8a0d;var _0x45f4a2=_0x2c8a0d[Symbol[_0x1be002(0x20e)]];if(_0x45f4a2!==void 0x0){var _0x35bc25=_0x45f4a2['call'](_0x2c8a0d,_0x28e8e2||_0x1be002(0x20a));if(V(_0x35bc25)!=_0x1be002(0x264))return _0x35bc25;throw TypeError(_0x1be002(0x1b2));}return(_0x28e8e2===_0x1be002(0x28d)?String:Number)(_0x2c8a0d);}function ue(_0x41db73){const _0x130623=_0x17c586;var _0x272437=le(_0x41db73,_0x130623(0x28d));return V(_0x272437)=='symbol'?_0x272437:_0x272437+'';}function H(_0x588245,_0x19f42a,_0x237d91){const _0x14c990=_0x17c586;return(_0x19f42a=ue(_0x19f42a))in _0x588245?Object[_0x14c990(0x22b)](_0x588245,_0x19f42a,{'value':_0x237d91,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x588245[_0x19f42a]=_0x237d91,_0x588245;}function U(_0x3a80ae,_0x2ff19d){return function(_0x42f5d2,_0x9d0b33){_0x2ff19d(_0x42f5d2,_0x9d0b33,_0x3a80ae);};}function W(_0x21219b,_0x36a21d,_0x558d46,_0x26bab4){const _0x43937e=_0x17c586;var _0x415f45=arguments[_0x43937e(0x22e)],_0x584e59=_0x415f45<0x3?_0x36a21d:_0x26bab4===null?_0x26bab4=Object[_0x43937e(0x225)](_0x36a21d,_0x558d46):_0x26bab4,_0x3a4c46;if(typeof Reflect==_0x43937e(0x264)&&typeof Reflect['decorate']=='function')_0x584e59=Reflect[_0x43937e(0x1d1)](_0x21219b,_0x36a21d,_0x558d46,_0x26bab4);else{for(var _0x59b40f=_0x21219b[_0x43937e(0x22e)]-0x1;_0x59b40f>=0x0;_0x59b40f--)(_0x3a4c46=_0x21219b[_0x59b40f])&&(_0x584e59=(_0x415f45<0x3?_0x3a4c46(_0x584e59):_0x415f45>0x3?_0x3a4c46(_0x36a21d,_0x558d46,_0x584e59):_0x3a4c46(_0x36a21d,_0x558d46))||_0x584e59);}return _0x415f45>0x3&&_0x584e59&&Object['defineProperty'](_0x36a21d,_0x558d46,_0x584e59),_0x584e59;}const G='mcp.apiKey',K='mcp-config-dialog';let q=class extends _0xdae7e5{constructor(_0x53ea5c,_0xd654a1,_0x311f9d,_0x4e7364,_0x291cb2,_0x594a9a,_0x53fb5e,_0x1715fd,_0x8505c5,_0x1ddef7){const _0x3d39de=_0x17c586;super(),this[_0x3d39de(0x1bb)]=_0x53ea5c,this[_0x3d39de(0x27c)]=_0xd654a1,this['_configService']=_0x311f9d,this[_0x3d39de(0x27a)]=_0x4e7364,this[_0x3d39de(0x1f6)]=_0x291cb2,this[_0x3d39de(0x1c3)]=_0x594a9a,this[_0x3d39de(0x245)]=_0x53fb5e,this[_0x3d39de(0x27d)]=_0x1715fd,this[_0x3d39de(0x24f)]=_0x8505c5,this['_mcpConnectionController']=_0x1ddef7,H(this,_0x3d39de(0x1f7),new _0x56f71a(!0x1)),H(this,_0x3d39de(0x282),new _0x56f71a({})),H(this,_0x3d39de(0x212),new _0x56f71a({})),H(this,_0x3d39de(0x1d2),new _0x56f71a('')),H(this,_0x3d39de(0x216),async _0x316322=>{const _0x517d5a=_0x3d39de;this['_loading$'][_0x517d5a(0x1e9)](!0x0);try{var _0x4b6864,_0x3f41bc;let _0x350098=await this[_0x517d5a(0x258)](_0x316322);if(!_0x350098[_0x517d5a(0x257)]){this[_0x517d5a(0x1c3)]['show']({'type':_0x481a44['Error'],'content':_0x350098[_0x517d5a(0x269)]||this['_localeService']['t'](_0x517d5a(0x205))});return;}_0x316322['apiKey']?await this[_0x517d5a(0x27a)][_0x517d5a(0x1c5)](G,_0x316322[_0x517d5a(0x1b8)][_0x517d5a(0x278)]()):await this[_0x517d5a(0x27a)][_0x517d5a(0x261)](G),this[_0x517d5a(0x1d2)][_0x517d5a(0x1e9)](((_0x4b6864=_0x316322[_0x517d5a(0x1b8)])==null?void 0x0:_0x4b6864[_0x517d5a(0x278)]())||''),this['_mcpConnectionController'][_0x517d5a(0x283)]({'Authorization':_0x517d5a(0x1d7)+((_0x3f41bc=_0x316322['apiKey'])==null?void 0x0:_0x3f41bc[_0x517d5a(0x278)]())}),this[_0x517d5a(0x1c3)][_0x517d5a(0x1db)]({'type':_0x481a44[_0x517d5a(0x286)],'content':this['_localeService']['t'](_0x517d5a(0x1d8))}),setTimeout(()=>{const _0x2791c3=_0x517d5a;this[_0x2791c3(0x1f6)][_0x2791c3(0x1f1)](K);},0x320);}catch(_0x5b2458){this[_0x517d5a(0x24f)]['error'](_0x517d5a(0x1b9),_0x5b2458),this['_messageService']['show']({'type':_0x481a44[_0x517d5a(0x26d)],'content':this[_0x517d5a(0x27d)]['t'](_0x517d5a(0x27e))});}finally{this[_0x517d5a(0x1f7)][_0x517d5a(0x1e9)](!0x1);}}),this[_0x3d39de(0x1ee)](),this['_loadStoredApiKey'](),this[_0x3d39de(0x1c6)]();}[_0x17c586(0x1f0)](){const _0x246b73=_0x17c586;let _0x22bbb5=this[_0x246b73(0x21f)][_0x246b73(0x22c)](z);_0x22bbb5!=null&&_0x22bbb5[_0x246b73(0x1f5)]&&this[_0x246b73(0x1f6)][_0x246b73(0x229)]({'id':K,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x246b73(0x219)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xfe7d44=_0x246b73;this[_0xfe7d44(0x1f6)]['close'](K);}});}[_0x17c586(0x256)](){const _0x555fd9=_0x17c586;return this['_mcpCoreConfig$'][_0x555fd9(0x1bc)];}[_0x17c586(0x1c6)](){const _0x1c1349=_0x17c586;this['disposeWithMe'](this[_0x1c1349(0x245)]['register']('MCPConfigPanel',this[_0x1c1349(0x230)]()));}[_0x17c586(0x230)](){const _0x3f8cd2=_0x17c586;return _0x9ea2f0(()=>{const _0x55e1ce=_0x3452;var _0x402b75,_0x4f88b8,_0x370bd4;return _0xb17fc6(R,{'config':this[_0x55e1ce(0x212)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x55e1ce(0x1bc)],'currentApiKey$':this[_0x55e1ce(0x1d2)],'onSave':this[_0x55e1ce(0x216)],'loading':this[_0x55e1ce(0x1f7)][_0x55e1ce(0x1bc)],'connectionStatus$':(_0x402b75=this[_0x55e1ce(0x279)])==null?void 0x0:_0x402b75[_0x55e1ce(0x1c4)],'connectionError$':(_0x4f88b8=this['_mcpConnectionController'])==null?void 0x0:_0x4f88b8[_0x55e1ce(0x1f9)],'currentSessionId$':(_0x370bd4=this[_0x55e1ce(0x279)])==null?void 0x0:_0x370bd4['sessionId$']});},this[_0x3f8cd2(0x1bb)]);}[_0x17c586(0x1ee)](){const _0x10812a=_0x17c586;this['disposeWithMe'](this['_configService'][_0x10812a(0x241)](_0x18cf50)[_0x10812a(0x1c8)](_0x55bd2c=>{this['_mcpCoreConfig$']['next'](_0x55bd2c||{});}));let _0x1824e4=this[_0x10812a(0x21f)][_0x10812a(0x22c)](_0x18cf50);this[_0x10812a(0x282)]['next'](_0x1824e4||{}),this[_0x10812a(0x25a)](this['_configService'][_0x10812a(0x241)](z)[_0x10812a(0x1c8)](_0xe9c8e0=>{const _0x36df73=_0x10812a;this[_0x36df73(0x212)][_0x36df73(0x1e9)](_0xe9c8e0||{});}));let _0x174b5c=this[_0x10812a(0x21f)][_0x10812a(0x22c)](z);this[_0x10812a(0x212)]['next'](_0x174b5c||{});}async[_0x17c586(0x223)](){const _0x519365=_0x17c586;let _0x4cdace=this['_configService'][_0x519365(0x22c)](z);if(!(_0x4cdace!=null&&_0x4cdace[_0x519365(0x1f5)]))return;let _0x436571=await this[_0x519365(0x27a)][_0x519365(0x1cb)](G);_0x436571&&(this[_0x519365(0x279)]['__setCustomHeaders']({'Authorization':_0x519365(0x1d7)+_0x436571}),this[_0x519365(0x1d2)][_0x519365(0x1e9)](_0x436571));}async[_0x17c586(0x258)](_0xdfa713){const _0x3d2b4b=_0x17c586;if(!_0xdfa713[_0x3d2b4b(0x1b8)]||_0xdfa713['apiKey']['trim']()[_0x3d2b4b(0x22e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3d2b4b(0x27d)]['t'](_0x3d2b4b(0x284))};if(_0xdfa713['apiKey'][_0x3d2b4b(0x278)]()[_0x3d2b4b(0x22e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3d2b4b(0x27d)]['t'](_0x3d2b4b(0x293))};try{let _0x52b02f=await this[_0x3d2b4b(0x1bb)][_0x3d2b4b(0x1be)](_0x2846af)[_0x3d2b4b(0x289)](_0xdfa713['apiKey'][_0x3d2b4b(0x278)]());return _0x52b02f[_0x3d2b4b(0x257)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x52b02f['error']||this[_0x3d2b4b(0x27d)]['t'](_0x3d2b4b(0x203))};}catch(_0x43f8f3){return console[_0x3d2b4b(0x243)](_0x3d2b4b(0x270),_0x43f8f3),{'isValid':!0x0};}}};q=W([U(0x0,_0x231d00(_0x55ec3d)),U(0x1,_0x2a502a),U(0x2,_0x51ed0c),U(0x3,_0x2c466b),U(0x4,_0x277e35),U(0x5,_0x303ac3),U(0x6,_0x231d00(_0x2b72fa)),U(0x7,_0x231d00(_0x48657c)),U(0x8,_0x16f80d),U(0x9,_0x231d00(_0x2846af))],q);const J={'id':_0x17c586(0x292),'type':_0x48130d[_0x17c586(0x24d)],'handler':async(_0x20f4fc,_0x4867b6)=>(_0x20f4fc[_0x17c586(0x1be)](q)[_0x17c586(0x1f0)](),!0x0)};function Y(_0x3e03ee,_0x1d6091){const _0x45b19a=_0x17c586;switch(_0x3e03ee){case _0x1c7b34[_0x45b19a(0x26a)]:return _0x45b19a(0x274);case _0x1c7b34[_0x45b19a(0x1e2)]:return'mcpStatus.connecting';case _0x1c7b34[_0x45b19a(0x26c)]:return _0x45b19a(0x285);case _0x1c7b34['FAILED']:switch(_0x1d6091){case _0x4597bf[_0x45b19a(0x248)]:return _0x45b19a(0x1fe);case _0x4597bf[_0x45b19a(0x23c)]:return _0x45b19a(0x24a);case _0x4597bf[_0x45b19a(0x221)]:return _0x45b19a(0x232);case _0x4597bf[_0x45b19a(0x25b)]:return _0x45b19a(0x1cd);default:return _0x45b19a(0x1f8);}case _0x1c7b34[_0x45b19a(0x227)]:return _0x45b19a(0x26e);default:return _0x45b19a(0x206);}}function de(_0x45246c,_0x10d172,_0x29de0f,_0x47f8bf=!0x0){const _0x293d48=_0x17c586;let _0xcf7e37=Y(_0x45246c,_0x10d172),_0x1e314b=_0x29de0f['t'](_0xcf7e37);return _0x47f8bf?_0x45246c===_0x1c7b34['DISCONNECTED']&&_0x10d172===_0x4597bf[_0x293d48(0x248)]?_0x1e314b+'\x20-\x20'+_0x29de0f['t'](_0x293d48(0x20f)):_0x45246c===_0x1c7b34[_0x293d48(0x26c)]?''+_0x1e314b:_0x45246c===_0x1c7b34[_0x293d48(0x26a)]||_0x45246c===_0x1c7b34[_0x293d48(0x202)]?_0x1e314b+'\x20-\x20'+_0x29de0f['t'](_0x293d48(0x238)):_0x1e314b:_0x1e314b;}function fe(_0x35ba40){const _0x93ce56=_0x17c586;switch(_0x35ba40){case _0x1c7b34[_0x93ce56(0x26c)]:return _0x93ce56(0x244);case _0x1c7b34['CONNECTING']:case _0x1c7b34[_0x93ce56(0x227)]:return _0x93ce56(0x28c);case _0x1c7b34[_0x93ce56(0x202)]:case _0x1c7b34[_0x93ce56(0x26a)]:return _0x93ce56(0x1fa);default:return _0x93ce56(0x1ec);}}function X(_0x4f6058){const _0x256d81=_0x17c586;let {status$:_0x495c38,error$:_0x549f20,onConfigure:_0x2e0176,showClickable:_0x37e7db=!0x0}=_0x4f6058,_0x46694b=_0x478e9d(_0x495c38,_0x1c7b34[_0x256d81(0x26a)]),_0x4f1029=_0x478e9d(_0x549f20,_0x4597bf[_0x256d81(0x224)]),_0x2d569c=_0x1bf5ce(_0x48657c),_0x2b6115=_0x46694b===_0x1c7b34[_0x256d81(0x26c)];_0x46694b===_0x1c7b34[_0x256d81(0x1e2)]||_0x1c7b34['RETRYING'];let _0x193f2b=_0x2d569c['t'](Y(_0x46694b,_0x4f1029)),_0x327a2f=de(_0x46694b,_0x4f1029,_0x2d569c,_0x37e7db),_0x551d12=fe(_0x46694b),_0x54e008=_0xb17fc6(_0x2b6115?_0x1ecf22:_0x5e44bf,{}),_0x48daca=_0x446f26(()=>{_0x37e7db&&_0x2e0176&&_0x2e0176();},[_0x37e7db,_0x2e0176]);function _0x5cf57b(){const _0x28877c=_0x256d81;return _0x32efd0(_0x28877c(0x1df),{'className':_0x59158a(_0x28877c(0x220),_0x37e7db&&_0x2e0176&&'univer-cursor-pointer\x20hover:univer-opacity-80'),'role':_0x28877c(0x28a),'onClick':_0x37e7db&&_0x2e0176?_0x48daca:void 0x0,'children':[_0xb17fc6(_0x28877c(0x1df),{'className':_0x59158a(_0x28877c(0x237),_0x551d12),'children':_0x54e008}),_0xb17fc6(_0x28877c(0x1df),{'className':_0x28877c(0x22f),'children':_0x193f2b})]});}return _0xb17fc6(_0x49465c,{'title':_0x327a2f,'placement':_0x256d81(0x1ce),'children':_0x5cf57b()});}let Z=class extends _0xdae7e5{constructor(_0x56850f,_0x4c6b3a,_0x465c30,_0x166bf8){const _0x1d0065=_0x17c586;super(),this[_0x1d0065(0x1bb)]=_0x56850f,this[_0x1d0065(0x252)]=_0x4c6b3a,this[_0x1d0065(0x27c)]=_0x465c30,this[_0x1d0065(0x21f)]=_0x166bf8,this[_0x1d0065(0x1b6)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x5026f5=_0x17c586;let _0x300366=this[_0x5026f5(0x21f)][_0x5026f5(0x22c)](z);_0x300366!=null&&_0x300366[_0x5026f5(0x1f5)]&&(this['_connectionController'][_0x5026f5(0x25f)]=!0x1);}['_initStatusComponent'](){const _0x2890ea=_0x17c586;let _0x202ccd=this[_0x2890ea(0x21f)][_0x2890ea(0x22c)](z);(_0x202ccd==null?void 0x0:_0x202ccd['showStatus'])!==!0x1&&this[_0x2890ea(0x25a)](this[_0x2890ea(0x27c)][_0x2890ea(0x210)](_0x427625[_0x2890ea(0x233)],()=>{const _0x2820fc=_0x2890ea;var _0x3bb163;return _0x9ea2f0(pe({'status$':this[_0x2820fc(0x252)]['connectionStatus$'],'error$':this[_0x2820fc(0x252)][_0x2820fc(0x1f9)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3bb163=_0x202ccd==null?void 0x0:_0x202ccd['showDeveloperTools'])==null?!0x1:_0x3bb163}),this[_0x2820fc(0x1bb)]);}));}[_0x17c586(0x260)](){const _0x53f2c1=_0x17c586;this[_0x53f2c1(0x1bb)][_0x53f2c1(0x1be)](q)[_0x53f2c1(0x1f0)]();}};Z=W([U(0x0,_0x231d00(_0x55ec3d)),U(0x1,_0x231d00(_0x2846af)),U(0x2,_0x2a502a),U(0x3,_0x51ed0c)],Z);function pe(_0x3aa65f){let {status$:_0x2118a2,error$:_0x42e898,onConfigure:_0x4686d3,showClickable:_0x10301d}=_0x3aa65f;return function(){return _0xb17fc6(X,{'status$':_0x2118a2,'error$':_0x42e898,'onConfigure':_0x4686d3,'showClickable':_0x10301d});};}function _0x3452(_0x2bf1aa,_0x9ec1c5){_0x2bf1aa=_0x2bf1aa-0x1b2;const _0x552227=_0x5522();let _0x34528e=_0x552227[_0x2bf1aa];return _0x34528e;}function me(_0x44e0ac){const _0x3524f2=_0x17c586;return{'id':J['id'],'type':_0x20dfcd[_0x3524f2(0x235)],'icon':'MenuIcon','title':_0x3524f2(0x271),'tooltip':_0x3524f2(0x271)};}const he={[_0x4f9ef8[_0x17c586(0x267)]]:{[J['id']]:{'order':0xa,'menuItemFactory':me}}};let Q=class extends _0xdae7e5{constructor(_0x558383,_0x41c06a){const _0x377457=_0x17c586;super(),this[_0x377457(0x288)]=_0x558383,this[_0x377457(0x1ca)]=_0x41c06a,this[_0x377457(0x250)](),this[_0x377457(0x262)]();}[_0x17c586(0x250)](){[J]['forEach'](_0x4656b0=>{const _0x36ca5d=_0x3452;this[_0x36ca5d(0x25a)](this[_0x36ca5d(0x288)][_0x36ca5d(0x25d)](_0x4656b0));});}[_0x17c586(0x262)](){const _0x102756=_0x17c586;this['_menuManagerService'][_0x102756(0x272)](he);}};Q=W([U(0x0,_0x36e169),U(0x1,_0x3d03c8)],Q);var ge=_0x17c586(0x1d0),_e=_0x17c586(0x23d);let $=class extends _0x158d2d{constructor(_0x3fddd6=B,_0x5c52d0,_0x48f4d5,_0x25a39b,_0x22411e,_0x13f3f8){const _0x5c79a0=_0x17c586;super(),this[_0x5c79a0(0x254)]=_0x3fddd6,this[_0x5c79a0(0x1bb)]=_0x5c52d0,this[_0x5c79a0(0x21f)]=_0x48f4d5,this['_uiPartsService']=_0x25a39b,this[_0x5c79a0(0x27a)]=_0x22411e,this[_0x5c79a0(0x27d)]=_0x13f3f8;let {..._0x453c64}=_0x1393ae({},B,this[_0x5c79a0(0x254)]);this[_0x5c79a0(0x21f)]['setConfig'](z,_0x453c64);}async['onStarting'](){const _0x299212=_0x17c586;let _0x3d7bb0=[[Z],[q],[Q]];this[_0x299212(0x1bb)][_0x299212(0x23a)](_0x53b1ef)||_0x3d7bb0[_0x299212(0x25c)]([_0x53b1ef,{'useClass':_0x3d30b9}]),_0x3d7bb0[_0x299212(0x1d4)](_0x48bc43=>this[_0x299212(0x1bb)][_0x299212(0x217)](_0x48bc43)),this[_0x299212(0x1bb)][_0x299212(0x1be)](Z),this['_injector']['get'](q),this['_injector'][_0x299212(0x1be)](Q);}};H($,_0x17c586(0x1f2),_0x17c586(0x1e8)),H($,'packageName',ge),H($,_0x17c586(0x228),_e),$=W([_0x2a21e6(_0x33ef67),U(0x1,_0x231d00(_0x55ec3d)),U(0x2,_0x51ed0c),U(0x3,_0x2a502a),U(0x4,_0x2c466b),U(0x5,_0x231d00(_0x48657c))],$);export{R as MCPConfigPanel,q as MCPConfigUIController,Z as MCPConnectionUIController,X as MCPStatusDisplay,Q as MCPUIMenuController,J as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,_0x18d6f8 as enUS,_0x44329b as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x25f0(_0xa064d1,_0x2730fd){_0xa064d1=_0xa064d1-0xb1;const _0x572650=_0x5726();let _0x25f09e=_0x572650[_0xa064d1];return _0x25f09e;}(function(_0x5d008f,_0x122429){const _0x2aed3c=_0x25f0,_0x469512=_0x5d008f();while(!![]){try{const _0x30f9c3=-parseInt(_0x2aed3c(0xb7))/0x1+-parseInt(_0x2aed3c(0xb5))/0x2+-parseInt(_0x2aed3c(0xb3))/0x3+-parseInt(_0x2aed3c(0xb2))/0x4+parseInt(_0x2aed3c(0xb8))/0x5+parseInt(_0x2aed3c(0xb4))/0x6*(parseInt(_0x2aed3c(0xb6))/0x7)+parseInt(_0x2aed3c(0xb1))/0x8;if(_0x30f9c3===_0x122429)break;else _0x469512['push'](_0x469512['shift']());}catch(_0x5b994){_0x469512['push'](_0x469512['shift']());}}}(_0x5726,0x24b46));import _0x314cca from'./en-US.js';const t=_0x314cca;export{t as default};function _0x5726(){const _0x29243b=['2000832IbqSKA','546608dOJpCM','293259NVhZFB','94152XHlzun','61730tHbJyk','7wjNxSi','116833KlIHID','1333245PXsQwZ'];_0x5726=function(){return _0x29243b;};return _0x5726();}
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1403(){const _0x557b48=['MCP:\x20Session\x20ID\x20Occupied','331314FyDirr','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','MCP\x20Disconnected','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','2975154NMgIlz','2410600nNDkwR','9928996OVUcxB','MCP:\x20Unauthorized','836085uuBdwo','What\x20is\x20API\x20Key?','MCP\x20Connection\x20Failed','3796212laIAmW','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','Connection\x20Failed','7273480Cynjva','6gqtfcE','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','9hJqSnl','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connecting...','Configuration\x20Steps:','MCP\x20Connected','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x1403=function(){return _0x557b48;};return _0x1403();}const _0x4c3d11=_0x554e;(function(_0x567b4c,_0x1eab24){const _0x5844a4=_0x554e,_0x259398=_0x567b4c();while(!![]){try{const _0x103263=parseInt(_0x5844a4(0x11f))/0x1*(parseInt(_0x5844a4(0x139))/0x2)+parseInt(_0x5844a4(0x143))/0x3+parseInt(_0x5844a4(0x146))/0x4+-parseInt(_0x5844a4(0x140))/0x5+-parseInt(_0x5844a4(0x13f))/0x6+-parseInt(_0x5844a4(0x141))/0x7+-parseInt(_0x5844a4(0x11e))/0x8*(-parseInt(_0x5844a4(0x127))/0x9);if(_0x103263===_0x1eab24)break;else _0x259398['push'](_0x259398['shift']());}catch(_0x5de921){_0x259398['push'](_0x259398['shift']());}}}(_0x1403,0xb3504));const e={'mcpStatus':{'disconnected':_0x4c3d11(0x13c),'connecting':_0x4c3d11(0x118),'connected':_0x4c3d11(0x12f),'failed':_0x4c3d11(0x145),'retrying':_0x4c3d11(0x132),'unknown':_0x4c3d11(0x121),'unauthorized':_0x4c3d11(0x142),'sessionOccupied':_0x4c3d11(0x138),'networkError':_0x4c3d11(0x12b),'maxRetriesExceeded':_0x4c3d11(0x13a),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4c3d11(0x117)},'mcpConfig':{'title':_0x4c3d11(0x135),'description':_0x4c3d11(0x124),'apiKey':_0x4c3d11(0x130),'apiKeyPlaceholder':_0x4c3d11(0x12a),'apiKeyHint':_0x4c3d11(0x133),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4c3d11(0x119),'connectionInfo':_0x4c3d11(0x11b),'mcpClientConfig':_0x4c3d11(0x11b),'configInstructions':_0x4c3d11(0x120),'configStepTitle':_0x4c3d11(0x12e),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4c3d11(0x136),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4c3d11(0x11a),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4c3d11(0x13e),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4c3d11(0x128),'saving':'Saving...','note1':_0x4c3d11(0x123),'note2':_0x4c3d11(0x126),'configSaved':_0x4c3d11(0x147),'configError':_0x4c3d11(0x13b),'apiApplyInfo':{'title':_0x4c3d11(0x144),'description':_0x4c3d11(0x12c),'univerAiLabel':_0x4c3d11(0x11c),'getStarted':_0x4c3d11(0x131)},'validation':{'apiKeyRequired':_0x4c3d11(0x13d),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4c3d11(0x122),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4c3d11(0x125),'connecting':_0x4c3d11(0x12d),'connected':'Connected','failed':_0x4c3d11(0x11d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4c3d11(0x134),'sessionOccupied':_0x4c3d11(0x129),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4c3d11(0x137)}}};function _0x554e(_0x22911e,_0x51afdf){_0x22911e=_0x22911e-0x117;const _0x1403b9=_0x1403();let _0x554e84=_0x1403b9[_0x22911e];return _0x554e84;}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4e27(_0x5a97c0,_0x14f816){_0x5a97c0=_0x5a97c0-0x15b;const _0x49ec84=_0x49ec();let _0x4e27c2=_0x49ec84[_0x5a97c0];return _0x4e27c2;}(function(_0x180401,_0xc8638){const _0x4a4f11=_0x4e27,_0x10576c=_0x180401();while(!![]){try{const _0x1d6a94=-parseInt(_0x4a4f11(0x164))/0x1*(parseInt(_0x4a4f11(0x15e))/0x2)+parseInt(_0x4a4f11(0x163))/0x3+parseInt(_0x4a4f11(0x165))/0x4+-parseInt(_0x4a4f11(0x15b))/0x5*(-parseInt(_0x4a4f11(0x15d))/0x6)+-parseInt(_0x4a4f11(0x162))/0x7+parseInt(_0x4a4f11(0x161))/0x8*(parseInt(_0x4a4f11(0x15c))/0x9)+parseInt(_0x4a4f11(0x160))/0xa*(parseInt(_0x4a4f11(0x15f))/0xb);if(_0x1d6a94===_0xc8638)break;else _0x10576c['push'](_0x10576c['shift']());}catch(_0x24ea3c){_0x10576c['push'](_0x10576c['shift']());}}}(_0x49ec,0x1a479));function _0x49ec(){const _0x1240b1=['1881IzTrDO','54EBgAsm','2PyxzZn','937101QRoEpV','10NMotID','6296cWblXl','1270451UlKwwe','214146yVyCLd','52295TfHQxt','11184QwCgEw','9765HtPVRS'];_0x49ec=function(){return _0x1240b1;};return _0x49ec();}import _0x212212 from'./en-US.js';const t=_0x212212;export{t as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20dc89,_0x25603c){const _0x57495d=_0x5cca,_0x46c247=_0x20dc89();while(!![]){try{const _0x44a57e=parseInt(_0x57495d(0x1a4))/0x1+parseInt(_0x57495d(0x1a2))/0x2*(parseInt(_0x57495d(0x1a3))/0x3)+-parseInt(_0x57495d(0x1a9))/0x4*(parseInt(_0x57495d(0x1aa))/0x5)+parseInt(_0x57495d(0x1ab))/0x6*(-parseInt(_0x57495d(0x1a6))/0x7)+-parseInt(_0x57495d(0x1a8))/0x8*(-parseInt(_0x57495d(0x1a5))/0x9)+-parseInt(_0x57495d(0x1a7))/0xa*(-parseInt(_0x57495d(0x1ac))/0xb)+-parseInt(_0x57495d(0x1a1))/0xc;if(_0x44a57e===_0x25603c)break;else _0x46c247['push'](_0x46c247['shift']());}catch(_0xa38637){_0x46c247['push'](_0x46c247['shift']());}}}(_0x4cb7,0x8e4b2));import _0x3b0557 from'./en-US.js';function _0x5cca(_0x586370,_0x5e4a92){_0x586370=_0x586370-0x1a1;const _0x4cb7f4=_0x4cb7();let _0x5cca98=_0x4cb7f4[_0x586370];return _0x5cca98;}const t=_0x3b0557;function _0x4cb7(){const _0x2c15c2=['42676OvgtWO','75YXvbGR','2607558RWKwCW','253yWGAOj','10991904sLKRAk','4964Yhzryg','105LqIjZR','123767angRzY','9KuIGif','7WjTqlC','397790pLChnw','7743200Dfesai'];_0x4cb7=function(){return _0x2c15c2;};return _0x4cb7();}export{t as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b9dc9,_0x1a7521){const _0x58e066=_0x1cb5,_0x13b5c2=_0x3b9dc9();while(!![]){try{const _0x472e34=parseInt(_0x58e066(0x119))/0x1+-parseInt(_0x58e066(0x117))/0x2+parseInt(_0x58e066(0x11c))/0x3*(parseInt(_0x58e066(0x116))/0x4)+parseInt(_0x58e066(0x115))/0x5+parseInt(_0x58e066(0x11b))/0x6*(-parseInt(_0x58e066(0x11d))/0x7)+-parseInt(_0x58e066(0x118))/0x8*(parseInt(_0x58e066(0x11e))/0x9)+parseInt(_0x58e066(0x11a))/0xa;if(_0x472e34===_0x1a7521)break;else _0x13b5c2['push'](_0x13b5c2['shift']());}catch(_0x592c91){_0x13b5c2['push'](_0x13b5c2['shift']());}}}(_0x3e68,0x77511));import _0xe8d783 from'./en-US.js';function _0x1cb5(_0x403462,_0x5099a4){_0x403462=_0x403462-0x115;const _0x3e6835=_0x3e68();let _0x1cb5da=_0x3e6835[_0x403462];return _0x1cb5da;}const t=_0xe8d783;export{t as default};function _0x3e68(){const _0x2ec67a=['3825775EBdjzw','599588NBypPP','672808goGQGX','464312SgOWSW','93575GPZDOV','1914900WDVZqj','8862XGCZmW','15bonoeS','1043SnNCTA','117ZOjage'];_0x3e68=function(){return _0x2ec67a;};return _0x3e68();}
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ca7d3=_0x2faa;(function(_0x5e6058,_0x98c9b7){const _0x45f41a=_0x2faa,_0x1cded0=_0x5e6058();while(!![]){try{const _0x21eda7=parseInt(_0x45f41a(0x130))/0x1+-parseInt(_0x45f41a(0x12b))/0x2*(parseInt(_0x45f41a(0x118))/0x3)+parseInt(_0x45f41a(0x13f))/0x4+parseInt(_0x45f41a(0x117))/0x5*(parseInt(_0x45f41a(0x12a))/0x6)+parseInt(_0x45f41a(0x12e))/0x7+-parseInt(_0x45f41a(0x135))/0x8*(parseInt(_0x45f41a(0x142))/0x9)+parseInt(_0x45f41a(0x13d))/0xa*(-parseInt(_0x45f41a(0x13c))/0xb);if(_0x21eda7===_0x98c9b7)break;else _0x1cded0['push'](_0x1cded0['shift']());}catch(_0x1b7b80){_0x1cded0['push'](_0x1cded0['shift']());}}}(_0x56d6,0x75d82));function _0x2faa(_0x198879,_0xea555b){_0x198879=_0x198879-0x115;const _0x56d69e=_0x56d6();let _0x2faaf9=_0x56d69e[_0x198879];return _0x2faaf9;}const e={'mcpStatus':{'disconnected':_0x4ca7d3(0x13a),'connecting':_0x4ca7d3(0x11e),'connected':_0x4ca7d3(0x145),'failed':_0x4ca7d3(0x146),'retrying':'MCP\x20再試行中...','unknown':_0x4ca7d3(0x136),'unauthorized':_0x4ca7d3(0x128),'sessionOccupied':_0x4ca7d3(0x11c),'networkError':_0x4ca7d3(0x121),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x4ca7d3(0x139),'clickToConfigure':_0x4ca7d3(0x138)},'mcpConfig':{'title':_0x4ca7d3(0x141),'description':_0x4ca7d3(0x133),'apiKey':_0x4ca7d3(0x119),'apiKeyPlaceholder':_0x4ca7d3(0x134),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x4ca7d3(0x140),'enableAuthHint':_0x4ca7d3(0x143),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x4ca7d3(0x12d),'configInstructions':_0x4ca7d3(0x12c),'configStepTitle':'設定手順:','configStep1':_0x4ca7d3(0x11f),'configStep2':_0x4ca7d3(0x144),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':'セッションID','sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x4ca7d3(0x115),'configParameters':_0x4ca7d3(0x148),'maxRetries':'最大再試行回数','save':_0x4ca7d3(0x127),'saving':_0x4ca7d3(0x129),'note1':_0x4ca7d3(0x124),'note2':_0x4ca7d3(0x116),'configSaved':_0x4ca7d3(0x137),'configError':_0x4ca7d3(0x11b),'apiApplyInfo':{'title':_0x4ca7d3(0x12f),'description':_0x4ca7d3(0x11a),'univerAiLabel':_0x4ca7d3(0x13b),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x4ca7d3(0x125),'apiKeyTooShort':_0x4ca7d3(0x11d),'invalidConfig':'無効な設定','invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x4ca7d3(0x13e),'connecting':_0x4ca7d3(0x132),'connected':_0x4ca7d3(0x123),'failed':_0x4ca7d3(0x120),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x4ca7d3(0x122),'sessionOccupied':_0x4ca7d3(0x126),'networkError':_0x4ca7d3(0x147),'maxRetriesExceeded':_0x4ca7d3(0x131)}}};export{e as default};function _0x56d6(){const _0x1b773d=['3kUepRI','APIキー','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','設定の保存に失敗しました','MCP:\x20セッションIDが使用中','APIキーは10文字以上である必要があります','MCP\x20接続中...','以下のJSON設定をコピー','接続失敗','MCP:\x20ネットワークエラー','認証に失敗しました。APIキーを確認してください','接続済み','設定の変更は直ちに有効になります','APIキーは必須です','セッションIDが現在使用中です。後でもう一度お試しください','設定を保存','MCP:\x20認証されていません','保存中...','6dBzVdF','1007750DGllmx','MCPクライアントの設定に次の設定を追加してください:','MCPクライアント設定','5027540XSIPoD','APIキーとは?','113990DXKUPB','最大再試行回数を超過しました。後でもう一度お試しください','接続中...','MCPを設定してAIでスプレッドシートを操作','APIキーを入力してください','4553672NoFvwc','MCP\x20不明な状態','設定が正常に保存されました','クリックしてMCPを設定','クリックしてMCPに接続','MCP\x20未接続','Univer\x20AIコンソール','5203XaaBvE','16730kkChur','未接続','3583656mHzDPH','認証を有効にする','MCP設定','9KRSJcH','セキュアな接続のために認証を有効にする','MCPクライアントの設定ファイルに設定を追加','MCP\x20接続済み','MCP\x20接続失敗','ネットワーク接続エラー。インターネット接続を確認してください','設定パラメータ:','Bearerプレフィックス付きのAPIキー。','APIキーはローカルストレージに安全に保存されます','3094895HkeFTH'];_0x56d6=function(){return _0x1b773d;};return _0x56d6();}
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x401a0=_0x3edf;(function(_0x417c6d,_0xe2b3cd){const _0x43764d=_0x3edf,_0x519880=_0x417c6d();while(!![]){try{const _0x4ed33b=-parseInt(_0x43764d(0x123))/0x1*(-parseInt(_0x43764d(0x153))/0x2)+-parseInt(_0x43764d(0x130))/0x3*(parseInt(_0x43764d(0x12b))/0x4)+parseInt(_0x43764d(0x148))/0x5*(-parseInt(_0x43764d(0x152))/0x6)+-parseInt(_0x43764d(0x14a))/0x7*(parseInt(_0x43764d(0x14e))/0x8)+-parseInt(_0x43764d(0x14f))/0x9*(parseInt(_0x43764d(0x150))/0xa)+parseInt(_0x43764d(0x126))/0xb+parseInt(_0x43764d(0x133))/0xc*(parseInt(_0x43764d(0x132))/0xd);if(_0x4ed33b===_0xe2b3cd)break;else _0x519880['push'](_0x519880['shift']());}catch(_0x38d402){_0x519880['push'](_0x519880['shift']());}}}(_0x5f1f,0xdf3b7));function _0x3edf(_0xb967d4,_0x2ef12f){_0xb967d4=_0xb967d4-0x120;const _0x5f1fd9=_0x5f1f();let _0x3edf0c=_0x5f1fd9[_0xb967d4];return _0x3edf0c;}function _0x5f1f(){const _0x3ad3a5=['최대\x20재시도\x20횟수','66105fSpBmK','Univer\x20AI\x20콘솔','6929PveJwj','46608BSyrUb','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','연결됨','클릭하여\x20MCP\x20설정','아래\x20JSON\x20설정\x20복사','인증\x20활성화','API\x20키는\x20필수입니다','MCP\x20연결\x20실패','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP:\x20네트워크\x20오류','MCP\x20연결\x20끊김','연결\x20중...','MCP\x20연결\x20중...','세션\x20ID','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','MCP\x20설정','설정\x20매개변수:','재시도\x20중...','설정\x20단계:','7632085ZKgIzz','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','21eUNyzk','연결\x20실패','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키','1471560zOkMyZ','72fAMkCc','886270ofUrHj','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','6gJzVua','2008568uLJOUM','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정\x20저장\x20실패','MCP:\x20인증되지\x20않음','유효하지\x20않은\x20설정','1dqqedz','MCP\x20클라이언트\x20설정','인증\x20실패.\x20API\x20키를\x20확인하세요','13200891jDdOsj','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','API\x20키를\x20입력하세요','104ZNiCQR','MCP\x20알\x20수\x20없는\x20상태','저장\x20중...','MCP\x20재시도\x20중...'];_0x5f1f=function(){return _0x3ad3a5;};return _0x5f1f();}const e={'mcpStatus':{'disconnected':_0x401a0(0x13d),'connecting':_0x401a0(0x13f),'connected':'MCP\x20연결됨','failed':_0x401a0(0x13a),'retrying':_0x401a0(0x12e),'unknown':_0x401a0(0x12c),'unauthorized':_0x401a0(0x121),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x401a0(0x13c),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':_0x401a0(0x136)},'mcpConfig':{'title':_0x401a0(0x144),'description':_0x401a0(0x129),'apiKey':_0x401a0(0x14d),'apiKeyPlaceholder':_0x401a0(0x12a),'apiKeyHint':_0x401a0(0x127),'enableAuth':_0x401a0(0x138),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x401a0(0x124),'mcpClientConfig':_0x401a0(0x124),'configInstructions':_0x401a0(0x142),'configStepTitle':_0x401a0(0x147),'configStep1':_0x401a0(0x137),'configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':_0x401a0(0x149),'sessionId':_0x401a0(0x140),'sessionIdDescription':_0x401a0(0x154),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x401a0(0x145),'maxRetries':_0x401a0(0x12f),'save':'설정\x20저장','saving':_0x401a0(0x12d),'note1':_0x401a0(0x141),'note2':_0x401a0(0x134),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x401a0(0x120),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x401a0(0x128),'univerAiLabel':_0x401a0(0x131),'getStarted':_0x401a0(0x13b)},'validation':{'apiKeyRequired':_0x401a0(0x139),'apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x401a0(0x122),'invalidApiKey':_0x401a0(0x14c)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x401a0(0x13e),'connected':_0x401a0(0x135),'failed':_0x401a0(0x14b),'retrying':_0x401a0(0x146)},'connectionError':{'unauthorized':_0x401a0(0x125),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x401a0(0x143),'maxRetriesExceeded':_0x401a0(0x151)}}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x37bae0,_0x294ba7){const _0x147825=_0x5aac,_0x1411d2=_0x37bae0();while(!![]){try{const _0x479374=-parseInt(_0x147825(0xb5))/0x1*(parseInt(_0x147825(0xbf))/0x2)+-parseInt(_0x147825(0xbb))/0x3+-parseInt(_0x147825(0xba))/0x4+-parseInt(_0x147825(0xbe))/0x5+parseInt(_0x147825(0xb8))/0x6*(-parseInt(_0x147825(0xb7))/0x7)+parseInt(_0x147825(0xbd))/0x8*(-parseInt(_0x147825(0xbc))/0x9)+-parseInt(_0x147825(0xb9))/0xa*(-parseInt(_0x147825(0xb6))/0xb);if(_0x479374===_0x294ba7)break;else _0x1411d2['push'](_0x1411d2['shift']());}catch(_0x2d71ce){_0x1411d2['push'](_0x1411d2['shift']());}}}(_0x8d41,0xb5bee));import _0x4b92aa from'./en-US.js';const t=_0x4b92aa;function _0x5aac(_0x2404d1,_0x4ae449){_0x2404d1=_0x2404d1-0xb5;const _0x8d41d5=_0x8d41();let _0x5aacaa=_0x8d41d5[_0x2404d1];return _0x5aacaa;}function _0x8d41(){const _0x38e7c2=['62378920aqUclX','2985040KAkyMX','4415487AztxXJ','693JgBXnS','128616VCtaxL','333995VvdjWZ','2calNBd','846398SwcnsK','11FRHSJz','21xhObwa','2248494rTejDZ'];_0x8d41=function(){return _0x38e7c2;};return _0x8d41();}export{t as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x558263=_0x5bf2;(function(_0x508cad,_0x9c8738){const _0x1e8239=_0x5bf2,_0x105982=_0x508cad();while(!![]){try{const _0x1eac98=-parseInt(_0x1e8239(0x122))/0x1+-parseInt(_0x1e8239(0x103))/0x2+-parseInt(_0x1e8239(0xff))/0x3+parseInt(_0x1e8239(0xfa))/0x4+-parseInt(_0x1e8239(0x106))/0x5*(-parseInt(_0x1e8239(0x11b))/0x6)+parseInt(_0x1e8239(0x119))/0x7+parseInt(_0x1e8239(0x117))/0x8*(-parseInt(_0x1e8239(0x110))/0x9);if(_0x1eac98===_0x9c8738)break;else _0x105982['push'](_0x105982['shift']());}catch(_0x5af32b){_0x105982['push'](_0x105982['shift']());}}}(_0x4316,0x6490e));const e={'mcpStatus':{'disconnected':_0x558263(0x120),'connecting':_0x558263(0x105),'connected':_0x558263(0x114),'failed':_0x558263(0x10a),'retrying':_0x558263(0xf8),'unknown':_0x558263(0x10b),'unauthorized':_0x558263(0xfb),'sessionOccupied':_0x558263(0x112),'networkError':_0x558263(0x101),'maxRetriesExceeded':_0x558263(0x109),'clickToConnect':_0x558263(0x10d),'clickToConfigure':_0x558263(0x11c)},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':_0x558263(0x100),'apiKey':'API\x20kľúč','apiKeyPlaceholder':_0x558263(0x121),'apiKeyHint':_0x558263(0xfe),'enableAuth':_0x558263(0x11f),'enableAuthHint':_0x558263(0x123),'connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':_0x558263(0x10f),'configInstructions':'Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x558263(0x10c),'configStep2':_0x558263(0x124),'configStep3':_0x558263(0x10e),'sessionId':'ID\x20relácie','sessionIdDescription':'Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','authorizationDescription':_0x558263(0x115),'configParameters':_0x558263(0x116),'maxRetries':_0x558263(0x108),'save':'Uložiť\x20konfiguráciu','saving':_0x558263(0x104),'note1':'Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','note2':_0x558263(0xf9),'configSaved':'Konfigurácia\x20bola\x20úspešne\x20uložená','configError':'Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','apiApplyInfo':{'title':_0x558263(0xfc),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':_0x558263(0x11d),'getStarted':'Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd'},'validation':{'apiKeyRequired':_0x558263(0x107),'apiKeyTooShort':_0x558263(0xfd),'invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':_0x558263(0x102)},'connectionStatus':{'disconnected':_0x558263(0x118),'connecting':'Pripája\x20sa...','connected':_0x558263(0x11e),'failed':_0x558263(0x125),'retrying':'Skúša\x20sa\x20znova...'},'connectionError':{'unauthorized':_0x558263(0x11a),'sessionOccupied':_0x558263(0x111),'networkError':'Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','maxRetriesExceeded':_0x558263(0x113)}}};export{e as default};function _0x5bf2(_0x1cb6ab,_0x344a88){_0x1cb6ab=_0x1cb6ab-0xf8;const _0x4316e4=_0x4316();let _0x5bf2c4=_0x4316e4[_0x1cb6ab];return _0x5bf2c4;}function _0x4316(){const _0x37011a=['Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','18oeBEwa','Kliknite\x20na\x20konfiguráciu\x20MCP','Univer\x20AI\x20konzola','Pripojené','Povoliť\x20overenie','MCP\x20odpojené','Zadajte\x20svoj\x20API\x20kľúč','479337XuBWcn','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Pripojenie\x20zlyhalo','MCP\x20opakuje\x20pokus...','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','721652IgaMqh','MCP:\x20Neautorizované','Čo\x20je\x20API\x20kľúč?','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','790926veAXqG','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','MCP:\x20Sieťová\x20chyba','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','581182MxXdIm','Ukladá\x20sa...','MCP\x20sa\x20pripája...','1295225JvpmkX','API\x20kľúč\x20je\x20povinný','Maximálny\x20počet\x20pokusov','MCP:\x20Prekročený\x20počet\x20pokusov','Pripojenie\x20MCP\x20zlyhalo','MCP\x20neznámy\x20stav','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Kliknite\x20na\x20pripojenie\x20MCP','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Konfigurácia\x20klienta\x20MCP','9MxBRsu','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP:\x20ID\x20relácie\x20je\x20obsadené','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','MCP\x20pripojené','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Parametre\x20konfigurácie:','611152TiwETs','Odpojené','3950338dkxYGN'];_0x4316=function(){return _0x37011a;};return _0x4316();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5cb4c0=_0x426b;function _0x426b(_0xf83c57,_0x2c7388){_0xf83c57=_0xf83c57-0x1d3;const _0x402967=_0x4029();let _0x426bf4=_0x402967[_0xf83c57];return _0x426bf4;}(function(_0x213ab5,_0x5b9cef){const _0x123515=_0x426b,_0x5cb818=_0x213ab5();while(!![]){try{const _0x5776cc=-parseInt(_0x123515(0x1f0))/0x1*(-parseInt(_0x123515(0x203))/0x2)+-parseInt(_0x123515(0x1e3))/0x3*(-parseInt(_0x123515(0x1f8))/0x4)+parseInt(_0x123515(0x1dd))/0x5+parseInt(_0x123515(0x200))/0x6*(parseInt(_0x123515(0x1f7))/0x7)+-parseInt(_0x123515(0x1d8))/0x8+-parseInt(_0x123515(0x1f9))/0x9*(-parseInt(_0x123515(0x1ed))/0xa)+parseInt(_0x123515(0x1ee))/0xb*(-parseInt(_0x123515(0x1d5))/0xc);if(_0x5776cc===_0x5b9cef)break;else _0x5cb818['push'](_0x5cb818['shift']());}catch(_0x1e1043){_0x5cb818['push'](_0x5cb818['shift']());}}}(_0x4029,0xdedc0));function _0x4029(){const _0x37f527=['MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','2780888jZcGVJ','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','MCP\x20Đang\x20thử\x20lại...','Đang\x20lưu...','Các\x20bước\x20cấu\x20hình:','5317545VuwGBC','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','MCP:\x20Lỗi\x20mạng','ID\x20phiên','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Cấu\x20hình\x20máy\x20khách\x20MCP','1973199FEIoOB','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','MCP:\x20Không\x20được\x20phép','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Lưu\x20cấu\x20hình','Kết\x20nối\x20thất\x20bại','Lưu\x20cấu\x20hình\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','1800PkrvSH','495xXTvCO','MCP\x20Đã\x20kết\x20nối','168079vJWKaF','Nhấp\x20để\x20kết\x20nối\x20MCP','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Đang\x20thử\x20lại...','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Nhấp\x20để\x20cấu\x20hình\x20MCP','147wbOrpv','4wEBpsM','80604UqZgdq','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Bật\x20xác\x20thực','Tham\x20số\x20cấu\x20hình:','Khóa\x20API','Đang\x20kết\x20nối...','197118MmcToj','Bảng\x20điều\x20khiển\x20Univer\x20AI','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','14kzYpbc','MCP\x20Kết\x20nối\x20thất\x20bại','Cấu\x20hình\x20MCP','MCP\x20Đang\x20kết\x20nối...','Nhập\x20khóa\x20API\x20của\x20bạn','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','1050492MiTlJs','Đã\x20kết\x20nối'];_0x4029=function(){return _0x37f527;};return _0x4029();}const e={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x5cb4c0(0x206),'connected':_0x5cb4c0(0x1ef),'failed':_0x5cb4c0(0x204),'retrying':_0x5cb4c0(0x1da),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':_0x5cb4c0(0x1e5),'sessionOccupied':_0x5cb4c0(0x1f2),'networkError':_0x5cb4c0(0x1df),'maxRetriesExceeded':_0x5cb4c0(0x1d7),'clickToConnect':_0x5cb4c0(0x1f1),'clickToConfigure':_0x5cb4c0(0x1f6)},'mcpConfig':{'title':_0x5cb4c0(0x205),'description':_0x5cb4c0(0x1fa),'apiKey':_0x5cb4c0(0x1fe),'apiKeyPlaceholder':_0x5cb4c0(0x1d3),'apiKeyHint':_0x5cb4c0(0x1eb),'enableAuth':_0x5cb4c0(0x1fc),'enableAuthHint':_0x5cb4c0(0x1fb),'connectionInfo':_0x5cb4c0(0x1e2),'mcpClientConfig':_0x5cb4c0(0x1e2),'configInstructions':_0x5cb4c0(0x1e1),'configStepTitle':_0x5cb4c0(0x1dc),'configStep1':_0x5cb4c0(0x1d9),'configStep2':_0x5cb4c0(0x1e4),'configStep3':'Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','sessionId':_0x5cb4c0(0x1e0),'sessionIdDescription':'Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','authorizationDescription':_0x5cb4c0(0x1d4),'configParameters':_0x5cb4c0(0x1fd),'maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':_0x5cb4c0(0x1e8),'saving':_0x5cb4c0(0x1db),'note1':_0x5cb4c0(0x1ec),'note2':_0x5cb4c0(0x1de),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x5cb4c0(0x1ea),'apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x5cb4c0(0x201),'getStarted':_0x5cb4c0(0x202)},'validation':{'apiKeyRequired':'Yêu\x20cầu\x20khóa\x20API','apiKeyTooShort':_0x5cb4c0(0x1f5),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x5cb4c0(0x1e7)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x5cb4c0(0x1ff),'connected':_0x5cb4c0(0x1d6),'failed':_0x5cb4c0(0x1e9),'retrying':_0x5cb4c0(0x1f3)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x5cb4c0(0x1e6),'maxRetriesExceeded':_0x5cb4c0(0x1f4)}}};export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3fe22c=_0x2868;(function(_0x25e241,_0x2be9c4){const _0x506284=_0x2868,_0x5d4e0a=_0x25e241();while(!![]){try{const _0x504a48=-parseInt(_0x506284(0xc2))/0x1*(-parseInt(_0x506284(0xd3))/0x2)+parseInt(_0x506284(0xc0))/0x3*(-parseInt(_0x506284(0xbe))/0x4)+-parseInt(_0x506284(0xbf))/0x5+-parseInt(_0x506284(0xca))/0x6*(-parseInt(_0x506284(0xde))/0x7)+parseInt(_0x506284(0xcf))/0x8*(parseInt(_0x506284(0xc3))/0x9)+parseInt(_0x506284(0xba))/0xa*(-parseInt(_0x506284(0xda))/0xb)+-parseInt(_0x506284(0xdc))/0xc*(parseInt(_0x506284(0xe1))/0xd);if(_0x504a48===_0x2be9c4)break;else _0x5d4e0a['push'](_0x5d4e0a['shift']());}catch(_0x57eac5){_0x5d4e0a['push'](_0x5d4e0a['shift']());}}}(_0x5d3a,0x740c3));function _0x2868(_0x265798,_0x555bd8){_0x265798=_0x265798-0xb5;const _0x5d3ae2=_0x5d3a();let _0x2868bc=_0x5d3ae2[_0x265798];return _0x2868bc;}function _0x5d3a(){const _0x30e3b0=['已连接','API\x20密钥','配置更改将立即生效','启用身份验证以获得安全连接','3027046suDRRd','权限验证失败,请检查您的\x20API\x20密钥','12xJXgMB','API\x20密钥不能为空','8729FzRhEB','启用身份验证','什么是\x20API\x20密钥?','1186159XEThaf','配置步骤:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20重连中...','MCP:\x20超出最大重试次数','点击连接\x20MCP','MCP\x20配置','MCP:\x20网络错误','10mKpdRy','MCP\x20状态未知','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','会话\x20ID\x20已被占用,请稍后再试','604QRdgpH','1393305tNULtb','5991ntXaJn','会话ID','27HhccsV','108VpWGvs','保存配置','连接中...','MCP:\x20会话\x20ID\x20已被占用','您的\x20API\x20密钥将在此浏览器中本地存储','您的\x20API\x20密钥安全存储在本地存储中','连接失败','2442LxjWoA','保存中...','配置保存失败','Univer\x20AI\x20控制台','MCP\x20连接中...','162704JOfYlt','重启您的\x20MCP\x20客户端以使配置生效','配置\x20MCP\x20使用\x20AI\x20操作电子表格','未连接','49658vgqxIg','API\x20密钥无效,请检查密钥是否正确','将配置添加到您的\x20MCP\x20客户端设置文件中'];_0x5d3a=function(){return _0x30e3b0;};return _0x5d3a();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x3fe22c(0xce),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x3fe22c(0xb5),'unknown':_0x3fe22c(0xbb),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3fe22c(0xc6),'networkError':_0x3fe22c(0xb9),'maxRetriesExceeded':_0x3fe22c(0xb6),'clickToConnect':_0x3fe22c(0xb7),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3fe22c(0xb8),'description':_0x3fe22c(0xd1),'apiKey':_0x3fe22c(0xd7),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x3fe22c(0xc7),'enableAuth':_0x3fe22c(0xdf),'enableAuthHint':_0x3fe22c(0xd9),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3fe22c(0xe2),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x3fe22c(0xd5),'configStep3':_0x3fe22c(0xd0),'sessionId':_0x3fe22c(0xc1),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x3fe22c(0xe3),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x3fe22c(0xc4),'saving':_0x3fe22c(0xcb),'note1':_0x3fe22c(0xd8),'note2':_0x3fe22c(0xc8),'configSaved':'配置保存成功','configError':_0x3fe22c(0xcc),'apiApplyInfo':{'title':_0x3fe22c(0xe0),'description':_0x3fe22c(0xbc),'univerAiLabel':_0x3fe22c(0xcd),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3fe22c(0xdd),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x3fe22c(0xd4)},'connectionStatus':{'disconnected':_0x3fe22c(0xd2),'connecting':_0x3fe22c(0xc5),'connected':_0x3fe22c(0xd6),'failed':_0x3fe22c(0xc9),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x3fe22c(0xdb),'sessionOccupied':_0x3fe22c(0xbd),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2d08(){const _0x287527=['9565420IMKqub','5683734yGUeMe','1405EUSacU','55nOwety','349950jDtvQr','6bEhkRt','9549027HCpkln','14586032mnHGCM','1DYAHUp','16924YipgGU','449015DmYgpr'];_0x2d08=function(){return _0x287527;};return _0x2d08();}(function(_0x4df9ac,_0x39eab6){const _0x48da3a=_0x463b,_0x509092=_0x4df9ac();while(!![]){try{const _0x6dbba5=-parseInt(_0x48da3a(0xfb))/0x1*(parseInt(_0x48da3a(0xf7))/0x2)+-parseInt(_0x48da3a(0xff))/0x3+-parseInt(_0x48da3a(0xfc))/0x4*(-parseInt(_0x48da3a(0x100))/0x5)+parseInt(_0x48da3a(0xf8))/0x6*(-parseInt(_0x48da3a(0xfd))/0x7)+-parseInt(_0x48da3a(0xfa))/0x8+-parseInt(_0x48da3a(0xf9))/0x9+-parseInt(_0x48da3a(0xfe))/0xa*(-parseInt(_0x48da3a(0x101))/0xb);if(_0x6dbba5===_0x39eab6)break;else _0x509092['push'](_0x509092['shift']());}catch(_0x570f02){_0x509092['push'](_0x509092['shift']());}}}(_0x2d08,0xe8d42));import _0x4f8190 from'./en-US.js';function _0x463b(_0x548761,_0x3b117c){_0x548761=_0x548761-0xf7;const _0x2d0825=_0x2d08();let _0x463ba4=_0x2d0825[_0x548761];return _0x463ba4;}const t=_0x4f8190;export{t as default};
|