@univerjs-pro/mcp-ui 0.10.7 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/mcp-config-ui.controller.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +9 -1
- package/lib/types/locale/zh-CN.d.ts +9 -1
- package/lib/types/views/components/mcp-config.d.ts +7 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -6
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x23fab0=_0x3f3e;(function(_0x4a12cb,_0x212716){var _0x58a93f=_0x3f3e,_0x30e50f=_0x4a12cb();while(!![]){try{var _0x18d2d9=-parseInt(_0x58a93f(0x22a))/0x1*(-parseInt(_0x58a93f(0x216))/0x2)+-parseInt(_0x58a93f(0x225))/0x3*(-parseInt(_0x58a93f(0x1b7))/0x4)+parseInt(_0x58a93f(0x13b))/0x5*(-parseInt(_0x58a93f(0x250))/0x6)+parseInt(_0x58a93f(0x16f))/0x7*(-parseInt(_0x58a93f(0x152))/0x8)+-parseInt(_0x58a93f(0x164))/0x9+parseInt(_0x58a93f(0x25b))/0xa+-parseInt(_0x58a93f(0x197))/0xb;if(_0x18d2d9===_0x212716)break;else _0x30e50f['push'](_0x30e50f['shift']());}catch(_0x302d2d){_0x30e50f['push'](_0x30e50f['shift']());}}}(_0x5555,0xb4a0c));var Se=Object[_0x23fab0(0x185)],xe=(_0x3c43ea,_0x2c4678,_0x42716e)=>_0x2c4678 in _0x3c43ea?Se(_0x3c43ea,_0x2c4678,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42716e}):_0x3c43ea[_0x2c4678]=_0x42716e,N=(_0x201e4e,_0x27966d,_0x43fd46)=>xe(_0x201e4e,typeof _0x27966d!=_0x23fab0(0x23f)?_0x27966d+'':_0x27966d,_0x43fd46);import{LocaleService as _0x25beb3,Inject as _0x27af5e,Injector as _0x1fc671,IConfigService as _0x5935da,ILocalStorageService as _0x396cbc,ILogService as _0x5d8729,Disposable as _0x56b7ac,CommandType as _0x158acf,ICommandService as _0x3381d7,DependentOn as _0x252ca3,Plugin as _0x57147d,merge as _0x4fb00c}from'@univerjs/core';import{jsxs as _0x46fbb5,jsx as _0x4d1396}from'react/jsx-runtime';import{MCPConnectionStatus as _0x44c736,MCPConnectionError as _0x48d292,MCPConnectionController as _0x229619,MCP_PLUGIN_CONFIG_KEY as _0x5887db,UniverMCPPlugin as _0x20dda9}from'@univerjs-pro/mcp';import{Input as _0x453dda,Button as _0xde16eb,MessageType as _0x4dddf5,Tooltip as _0x2abc33,clsx as _0x44e383}from'@univerjs/design';import{useDependency as _0x24d075,useObservable as _0x11bc25,IUIPartsService as _0x4d1b0e,IDialogService as _0x223ca1,IMessageService as _0x1d356e,ComponentManager as _0x30c28c,connectInjector as _0x3e31ca,BuiltInUIPart as _0x33a29c,MenuItemType as _0x16e1aa,RibbonStartGroup as _0x19bf15,IMenuManagerService as _0x53b950}from'@univerjs/ui';import{BehaviorSubject as _0xc71a63}from'rxjs';import{forwardRef as _0x23e534,useRef as _0x2076dc,createElement as _0x588477,useState as _0x1fd024,useCallback as _0x5c00bd}from'react';var d=function(){var _0x90717e=_0x23fab0;return d=Object['assign']||function(_0x3d892b){var _0x512ed2=_0x3f3e;for(var _0x585de1,_0x1ab52b=0x1,_0x1d9145=arguments['length'];_0x1ab52b<_0x1d9145;_0x1ab52b++){_0x585de1=arguments[_0x1ab52b];for(var _0x352fe8 in _0x585de1)Object[_0x512ed2(0x226)][_0x512ed2(0x1db)][_0x512ed2(0x15a)](_0x585de1,_0x352fe8)&&(_0x3d892b[_0x352fe8]=_0x585de1[_0x352fe8]);}return _0x3d892b;},d[_0x90717e(0x1bb)](this,arguments);},Ye=function(_0x41d494,_0x22ff2e){var _0x3513f9=_0x23fab0,_0xd4ccd2={};for(var _0x1dded0 in _0x41d494)Object['prototype'][_0x3513f9(0x1db)][_0x3513f9(0x15a)](_0x41d494,_0x1dded0)&&_0x22ff2e[_0x3513f9(0x243)](_0x1dded0)<0x0&&(_0xd4ccd2[_0x1dded0]=_0x41d494[_0x1dded0]);if(_0x41d494!=null&&typeof Object[_0x3513f9(0x189)]=='function'){for(var _0x32d983=0x0,_0x1dded0=Object[_0x3513f9(0x189)](_0x41d494);_0x32d983<_0x1dded0[_0x3513f9(0x11e)];_0x32d983++)_0x22ff2e[_0x3513f9(0x243)](_0x1dded0[_0x32d983])<0x0&&Object[_0x3513f9(0x226)][_0x3513f9(0x130)]['call'](_0x41d494,_0x1dded0[_0x32d983])&&(_0xd4ccd2[_0x1dded0[_0x32d983]]=_0x41d494[_0x1dded0[_0x32d983]]);}return _0xd4ccd2;},S=_0x23e534(function(_0x112299,_0x498b95){var _0x29f2d0=_0x23fab0,_0x5f5cf6=_0x112299[_0x29f2d0(0x11b)],_0x38f495=_0x112299['id'],_0x3c63eb=_0x112299[_0x29f2d0(0x1dc)],_0x28ca16=_0x112299[_0x29f2d0(0x1f7)],_0x57bd6b=Ye(_0x112299,[_0x29f2d0(0x11b),'id',_0x29f2d0(0x1dc),'extend']),_0x22d088=_0x29f2d0(0x239)['concat'](_0x38f495,'\x20')[_0x29f2d0(0x24e)](_0x3c63eb||'')[_0x29f2d0(0x256)](),_0xf539b8=_0x2076dc('_'['concat'](He()));return oe(_0x5f5cf6,''[_0x29f2d0(0x24e)](_0x38f495),{'defIds':_0x5f5cf6[_0x29f2d0(0x23d)],'idSuffix':_0xf539b8[_0x29f2d0(0x23b)]},d({'ref':_0x498b95,'className':_0x22d088},_0x57bd6b),_0x28ca16);});function oe(_0x175c53,_0x4d1bb6,_0x52a000,_0x286276,_0x1eaeef){var _0x480252=_0x23fab0;return _0x588477(_0x175c53[_0x480252(0x112)],d(d({'key':_0x4d1bb6},Ve(_0x175c53,_0x52a000,_0x1eaeef)),_0x286276),(Fe(_0x175c53,_0x52a000)[_0x480252(0x20b)]||[])['map'](function(_0x30a654,_0x5e37c8){var _0x196c5e=_0x480252;return oe(_0x30a654,''['concat'](_0x4d1bb6,'-')[_0x196c5e(0x24e)](_0x175c53[_0x196c5e(0x112)],'-')[_0x196c5e(0x24e)](_0x5e37c8),_0x52a000,void 0x0,_0x1eaeef);}));}function Ve(_0xa528b3,_0x143215,_0x296b8f){var _0x38c049=_0x23fab0,_0x38126d=d({},_0xa528b3[_0x38c049(0x21d)]);_0x296b8f!=null&&_0x296b8f[_0x38c049(0x245)]&&_0x38126d[_0x38c049(0x18d)]===_0x38c049(0x245)&&(_0x38126d[_0x38c049(0x18d)]=_0x296b8f[_0x38c049(0x245)]),_0xa528b3[_0x38c049(0x112)]===_0x38c049(0x201)&&_0x38126d['id']&&(_0x38126d['id']=_0x38126d['id']+_0x143215['idSuffix']),Object[_0x38c049(0x1da)](_0x38126d)[_0x38c049(0x13a)](function(_0x523fb3){var _0x35ac7c=_0x38c049,_0x10e6d9=_0x523fb3[0x0],_0x280d22=_0x523fb3[0x1];_0x10e6d9===_0x35ac7c(0x201)&&typeof _0x280d22==_0x35ac7c(0x20a)&&(_0x38126d[_0x10e6d9]=_0x280d22['replace'](/url\(#(.*)\)/,_0x35ac7c(0x138)[_0x35ac7c(0x24e)](_0x143215[_0x35ac7c(0x167)],')')));});var _0x452590=_0x143215[_0x38c049(0x23d)];return!_0x452590||_0x452590['length']===0x0||(_0xa528b3[_0x38c049(0x112)]===_0x38c049(0x19c)&&_0x38126d[_0x38c049(0x198)]&&(_0x38126d['xlink:href']=_0x38126d[_0x38c049(0x198)]+_0x143215[_0x38c049(0x167)]),Object[_0x38c049(0x1da)](_0x38126d)['forEach'](function(_0x219c92){var _0x7b3dea=_0x38c049,_0x30663b=_0x219c92[0x0],_0x92e3ee=_0x219c92[0x1];typeof _0x92e3ee==_0x7b3dea(0x20a)&&(_0x38126d[_0x30663b]=_0x92e3ee[_0x7b3dea(0x23c)](/url\(#(.*)\)/,_0x7b3dea(0x138)[_0x7b3dea(0x24e)](_0x143215[_0x7b3dea(0x167)],')')));})),_0x38126d;}function _0x5555(){var _0x534335=['DISCONNECTED','_blank','_localStorageService','isValid','register','NETWORK_ERROR','MCP\x20Unknown\x20Status','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-yellow-500','MCP:\x20Max\x20Retries\x20Exceeded','univer-bg-gray-500','mcpStatus.networkError','mergeMenu','entries','hasOwnProperty','className','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiApplyInfo.getStarted','sessionId','https://console.univer.ai','mcpStatus.sessionOccupied','displayName','_handleConfigSave','MCP\x20Connected','univer-flex\x20univer-cursor-pointer\x20univer-items-center','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','subscribeConfigValue$','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Success','univer-flex-1','univer-min-w-0\x20univer-flex-1','path','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.apiKey','配置保存失败','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','MCP\x20Retrying...','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpServerUrl','_dialogService','univer.plus','getConfig','extend','最大重试次数','已连接','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','currentColor','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3','CloseSmallSingle','hover:univer-opacity-80','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mask','MCP:\x20API\x20Key\x20Missing','round','getItem','M0\x200H16V16H0z','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Click\x20to\x20configure\x20MCP','mcpConfig.connectionError.missingApiKey','next','string','children','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','API\x20密钥','MCP_UI_PLUGIN','mcpConfig.connectionError.invalidApiKey','mcpConfig.apiKeyPlaceholder','请输入您的\x20API\x20密钥','_registerComponent','_messageService','_initializeMenus','3616qAkqzP','setItem','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','配置保存成功','MCP:\x20Invalid\x20API\x20Key','Disconnected','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','attrs','mcpConfig.connectionError.sessionOccupied','check-mark-icon','Connected','pluginName','mcpConfig.save','MCP\x20Connecting...','MCP\x20已连接','175866QMTSpu','prototype','未连接','map','univer-space-y-2','125EeAHLY','mcp-ui.command.openConfigPanel','CONNECTING','_initConfigSync','0\x200\x2017\x2017','off','Save\x20Configuration','MCP\x20状态未知','https://console.univer.plus','MCP\x20连接中...','什么是\x20API\x20密钥?','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','服务器端点','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','连接中...','univerjs-icon\x20univerjs-icon-','off-line-icon_clip0_910_343','current','replace','defIds','connectionError$','symbol','mcpStatus.disconnected','_configService','MCP\x20Configuration','indexOf','API\x20key\x20is\x20required','colorChannel1','M5.21243\x205.62036L11.8791\x2012.287','API\x20密钥无效,请检查您的密钥后重试','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_uiPartsService','_handleConfigure','toString','启用身份验证以获得安全连接','univer-bg-red-500','concat','Configuration\x20Notes:','474618hrTBSA','defs','mcpConfig.title','univer-flex\x20univer-items-center\x20univer-gap-2','assign','mcpStatus.failed','trim','API\x20key\x20is\x20required\x20to\x20connect','univer-text-sm\x20univer-text-gray-500','errorMessage','none','8966540YLmesz','Failed\x20to\x20save\x20configuration','univer-font-medium','0\x200\x2017\x2016','url(#on-line-icon_clip0_910_349)','mcpConfig.apiKeyHint','CONNECTED','univer-flex-shrink-0\x20univer-text-red-500','HEADER_MENU','MCP:\x20无效的\x20API\x20密钥','Enter\x20your\x20API\x20key','showDeveloperTools','需要\x20API\x20密钥才能连接','close','univer-space-y-3','show','tag','javascript:void(0)','mcpConfig.connectionStatus.failed','_validateConfig','univer-flex\x20univer-items-start\x20univer-gap-2','Connecting...','_loadStoredApiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','connectionStatus$','icon','MISSING_API_KEY','close-small-single','length','warn','_localeService','超出最大重试次数,请稍后再试','univer-text-white','会话ID','_createConfigPanelComponent','mcpStatus.clickToConnect','配置无效','1em','mcp.apiKey','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','div','MCP:\x20Session\x20Occupied','Univer\x20AI\x20Console','value','label','MCP:\x20Network\x20Error','propertyIsEnumerable','启用身份验证','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','NONE','BUTTON','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','mcpConfig.connectionStatus.disconnected','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','url(#$1','univer-bg-green-500','forEach','5xyzaqU','Close','_connectionController','配置更改将立即生效','getCurrentConfig','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20Connection\x20Failed','保存中...','disposeWithMe','mcpConfig.configSaved','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','apiKey','univer-text-blue-600','FAILED','mcpConfig.validation.invalidApiKey','mcp-ui.config','mcp-config-dialog','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20连接失败','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_initializeCommands','389848OCCdwZ','_initStatusComponent','on-line-icon_clip0_910_349','random','连接信息','您的\x20API\x20密钥将在此浏览器中本地存储','error','mcpConfig.connectionStatus.retrying','call','MCP:\x20会话被占用','_config','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','univer-text-red-500','SESSION_ID_OCCUPIED','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','What\x20is\x20API\x20Key?','MCP:\x20网络错误','add','970029UkTLBB','univer-bg-blue-500','_mcpCoreConfig$','idSuffix','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','text','0\x200\x2016\x2016','INVALID_API_KEY','您的\x20API\x20密钥安全存储在本地存储中','\x20-\x20','univer.ai','161JTGgsH','univer-text-gray-500','UniverIcon','mcpConfig.connectionInfo','RETRYING','mcpStatus.retrying','translate(.97)','bottom','Enable\x20Authentication','HelpSingle','Univer\x20AI\x20控制台','includes','_config$','removeItem','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','_loading$','svg','registerCommand','API\x20密钥无效,请检查密钥是否正确','onStarting','substring','span','defineProperty','API\x20Key','univer-space-y-5','Error','getOwnPropertySymbols','Connection\x20Failed','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_componentManager','fill','univer-flex\x20univer-flex-wrap\x20univer-gap-2','getOwnPropertyDescriptor','mcpConfig.validation.apiKeyRequired','保存配置','Enable\x20authentication\x20for\x20secure\x20connections','setConfig','on-line-icon','_logService','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','4657521tihypL','xlink:href','validateApiKey','Get\x20your\x20API\x20key\x20in\x20seconds','evenodd','use','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.apiApplyInfo.title','_menuManagerService','MCP:\x20超出最大重试次数','mcpStatus.invalidApiKey','mcpConfig.apiApplyInfo.univerAiLabel','MCPConfigPanel','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.connectionStatus.connecting','mcpConfig.apiApplyInfo.description','mcpConfig.validation.invalidConfig','网络连接错误,请检查您的网络连接','clipPath','MAX_RETRIES_EXCEEDED','_injector','OTHERS','univer-text-xs\x20univer-text-gray-500','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20重连中...','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','COMMAND','Server\x20Endpoint','get','off-line-icon','92UEAEJI','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','CheckMarkIcon','http://www.w3.org/2000/svg','apply','noopener\x20noreferrer','univer-text-sm\x20univer-font-medium','MCP\x20Disconnected','subscribe','Max\x20Retries','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','_mcpConnectionController','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_commandService','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','重连中...','help-single','点击连接\x20MCP','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','OffLineIcon','white','showConfigPanel'];_0x5555=function(){return _0x534335;};return _0x5555();}function Fe(_0x532bc2,_0x3b4e53){var _0x2da3f8=_0x23fab0,_0x22489b,_0x2a89dd=_0x3b4e53['defIds'];return!_0x2a89dd||_0x2a89dd['length']===0x0?_0x532bc2:_0x532bc2['tag']===_0x2da3f8(0x251)&&(!((_0x22489b=_0x532bc2['children'])===null||_0x22489b===void 0x0)&&_0x22489b['length'])?d(d({},_0x532bc2),{'children':_0x532bc2[_0x2da3f8(0x20b)][_0x2da3f8(0x228)](function(_0x352b3b){var _0x4f5681=_0x2da3f8;return typeof _0x352b3b[_0x4f5681(0x21d)]['id']==_0x4f5681(0x20a)&&_0x2a89dd&&_0x2a89dd['includes'](_0x352b3b[_0x4f5681(0x21d)]['id'])?d(d({},_0x352b3b),{'attrs':d(d({},_0x352b3b[_0x4f5681(0x21d)]),{'id':_0x352b3b[_0x4f5681(0x21d)]['id']+_0x3b4e53[_0x4f5681(0x167)]})}):_0x352b3b;})}):_0x532bc2;}function He(){var _0x432ec0=_0x23fab0;return Math[_0x432ec0(0x155)]()[_0x432ec0(0x24b)](0x24)[_0x432ec0(0x183)](0x2,0x8);}S['displayName']=_0x23fab0(0x171);var We={'tag':'svg','attrs':{'xmlns':_0x23fab0(0x1ba),'fill':'none','viewBox':_0x23fab0(0x16a),'width':_0x23fab0(0x127),'height':_0x23fab0(0x127)},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'fill':'currentColor','d':_0x23fab0(0x196),'fillRule':_0x23fab0(0x19b),'clipRule':'evenodd'}}]},ce=_0x23e534(function(_0x4c40bb,_0x5e2540){var _0x35837c=_0x23fab0;return _0x588477(S,Object[_0x35837c(0x254)]({},_0x4c40bb,{'id':_0x35837c(0x21f),'ref':_0x5e2540,'icon':We}));});function _0x3f3e(_0x5e19b7,_0x231567){var _0x5555e2=_0x5555();return _0x3f3e=function(_0x3f3ef6,_0x37711a){_0x3f3ef6=_0x3f3ef6-0x106;var _0x308899=_0x5555e2[_0x3f3ef6];return _0x308899;},_0x3f3e(_0x5e19b7,_0x231567);}ce[_0x23fab0(0x1e2)]=_0x23fab0(0x1b9);var Be={'tag':_0x23fab0(0x17f),'attrs':{'xmlns':_0x23fab0(0x1ba),'fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x22e),'width':'1em','height':_0x23fab0(0x127)},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'stroke':_0x23fab0(0x1fb),'d':_0x23fab0(0x246),'strokeLinecap':_0x23fab0(0x203),'strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.33}},{'tag':_0x23fab0(0x1ec),'attrs':{'stroke':_0x23fab0(0x1fb),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':'round','strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.33}}]},ae=_0x23e534(function(_0x549be7,_0x3af978){var _0x405ab7=_0x23fab0;return _0x588477(S,Object[_0x405ab7(0x254)]({},_0x549be7,{'id':_0x405ab7(0x11d),'ref':_0x3af978,'icon':Be}));});ae[_0x23fab0(0x1e2)]=_0x23fab0(0x1fe);var ze={'tag':_0x23fab0(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x16a),'width':_0x23fab0(0x127),'height':'1em'},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'fill':_0x23fab0(0x1fb),'d':_0x23fab0(0x17d)}},{'tag':_0x23fab0(0x1ec),'attrs':{'fill':_0x23fab0(0x1fb),'d':_0x23fab0(0x237)}},{'tag':_0x23fab0(0x1ec),'attrs':{'fill':_0x23fab0(0x1fb),'d':_0x23fab0(0x1fa),'fillRule':_0x23fab0(0x19b),'clipRule':_0x23fab0(0x19b)}}]},se=_0x23e534(function(_0x36c3f5,_0x1818d0){var _0x3a9f1a=_0x23fab0;return _0x588477(S,Object[_0x3a9f1a(0x254)]({},_0x36c3f5,{'id':_0x3a9f1a(0x1c7),'ref':_0x1818d0,'icon':ze}));});se[_0x23fab0(0x1e2)]=_0x23fab0(0x178);var qe={'tag':'svg','attrs':{'xmlns':_0x23fab0(0x1ba),'fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x16a),'width':_0x23fab0(0x127),'height':_0x23fab0(0x127)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x23fab0(0x1fb),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x23fab0(0x203),'strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.2}}]},{'tag':_0x23fab0(0x251),'attrs':{},'children':[{'tag':_0x23fab0(0x1aa),'attrs':{'id':_0x23fab0(0x23a)},'children':[{'tag':'path','attrs':{'fill':_0x23fab0(0x1cb),'d':_0x23fab0(0x205)}}]}]}],'defIds':[_0x23fab0(0x23a)]},le=_0x23e534(function(_0x15762c,_0x2bf311){var _0x1f51c4=_0x23fab0;return _0x588477(S,Object[_0x1f51c4(0x254)]({},_0x15762c,{'id':_0x1f51c4(0x1b6),'ref':_0x2bf311,'icon':qe}));});le['displayName']=_0x23fab0(0x1ca);var Ze={'tag':'svg','attrs':{'xmlns':_0x23fab0(0x1ba),'fill':_0x23fab0(0x25a),'viewBox':_0x23fab0(0x25e),'width':_0x23fab0(0x127),'height':_0x23fab0(0x127)},'children':[{'tag':'g','attrs':{'clipPath':_0x23fab0(0x106)},'children':[{'tag':_0x23fab0(0x1ec),'attrs':{'stroke':_0x23fab0(0x1fb),'d':_0x23fab0(0x132),'strokeLinecap':_0x23fab0(0x203),'strokeLinejoin':_0x23fab0(0x203),'strokeWidth':1.2}}]},{'tag':_0x23fab0(0x251),'attrs':{},'children':[{'tag':_0x23fab0(0x1aa),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x23fab0(0x1cb),'d':_0x23fab0(0x205),'transform':_0x23fab0(0x175)}}]}]}],'defIds':[_0x23fab0(0x154)]},ue=_0x23e534(function(_0x22e72a,_0x1ac45d){var _0x16b8cd=_0x23fab0;return _0x588477(S,Object[_0x16b8cd(0x254)]({},_0x22e72a,{'id':_0x16b8cd(0x194),'ref':_0x1ac45d,'icon':Ze}));});ue['displayName']='OnLineIcon';function Xe(_0x2449d2){var _0x5bcf1f=_0x23fab0,_0x24fa43,_0x3d794a;const {mcpCoreConfig:_0x22a357,onSave:_0x4f8c1c,loading:_0x795d82=!0x1,config:_0x5257a6,connectionStatus$:_0x1c28e3,connectionError$:_0x2f6847}=_0x2449d2,_0x4b0572=_0x24d075(_0x25beb3),_0x3e06bb=_0x11bc25(_0x1c28e3,_0x44c736['DISCONNECTED']),_0x4a388f=_0x11bc25(_0x2f6847,_0x48d292[_0x5bcf1f(0x133)]),[_0x2b3220,_0x55bfd8]=_0x1fd024(_0x22a357[_0x5bcf1f(0x146)]||''),_0x3705f6=!0x0,_0xce0cb4=_0x5257a6['showDeveloperTools']&&_0x22a357[_0x5bcf1f(0x1f3)]&&(_0x22a357['mcpServerUrl']['includes']('univer.plus')||_0x22a357[_0x5bcf1f(0x1f3)][_0x5bcf1f(0x17a)](_0x5bcf1f(0x16e))),_0x178e2e=(_0x24fa43=_0x22a357[_0x5bcf1f(0x1f3)])==null?void 0x0:_0x24fa43[_0x5bcf1f(0x17a)](_0x5bcf1f(0x1f5)),_0xf4c221=(_0x3d794a=_0x22a357[_0x5bcf1f(0x1f3)])==null?void 0x0:_0x3d794a[_0x5bcf1f(0x17a)](_0x5bcf1f(0x16e)),_0x87197=_0x178e2e?_0x5bcf1f(0x232):_0x5bcf1f(0x1e0),_0x5a0dff=_0x5257a6[_0x5bcf1f(0x10d)]&&(_0x178e2e||_0xf4c221),[_0x4c8915,_0x5e0a6a]=_0x1fd024(!_0x2b3220[_0x5bcf1f(0x256)]()),_0x284996=(_0x121724,_0x1a7b3a)=>{var _0x4b0632=_0x5bcf1f;if(_0x1a7b3a===_0x48d292[_0x4b0632(0x11c)]||_0x1a7b3a===_0x48d292['INVALID_API_KEY'])return _0x4b0632(0x18b);switch(_0x121724){case _0x44c736[_0x4b0632(0x108)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x44c736[_0x4b0632(0x22c)]:case _0x44c736[_0x4b0632(0x173)]:return _0x4b0632(0x206);case _0x44c736[_0x4b0632(0x148)]:return _0x4b0632(0x18b);default:return _0x4b0632(0x1c3);}},_0x5c049d=(_0x1e2e84,_0x2d9f99)=>{var _0x5c57ae=_0x5bcf1f;if(_0x2d9f99===_0x48d292[_0x5c57ae(0x11c)]||_0x2d9f99===_0x48d292[_0x5c57ae(0x16b)])return _0x5c57ae(0x24d);switch(_0x1e2e84){case _0x44c736[_0x5c57ae(0x108)]:return _0x5c57ae(0x139);case _0x44c736['CONNECTING']:case _0x44c736[_0x5c57ae(0x173)]:return _0x5c57ae(0x165);case _0x44c736['FAILED']:return _0x5c57ae(0x24d);default:return _0x5c57ae(0x1d7);}},_0x5ce85a=_0x308f7a=>{var _0x295edf=_0x5bcf1f;switch(_0x308f7a){case _0x44c736[_0x295edf(0x108)]:return _0x4b0572['t']('mcpConfig.connectionStatus.connected');case _0x44c736[_0x295edf(0x22c)]:return _0x4b0572['t'](_0x295edf(0x1a6));case _0x44c736[_0x295edf(0x148)]:return _0x4b0572['t'](_0x295edf(0x114));case _0x44c736['RETRYING']:return _0x4b0572['t'](_0x295edf(0x159));default:return _0x4b0572['t'](_0x295edf(0x136));}},_0x2759c9=_0x345776=>{var _0x376d7b=_0x5bcf1f;switch(_0x345776){case _0x48d292[_0x376d7b(0x11c)]:return _0x4b0572['t'](_0x376d7b(0x208));case _0x48d292[_0x376d7b(0x16b)]:return _0x4b0572['t'](_0x376d7b(0x210));case _0x48d292['SESSION_ID_OCCUPIED']:return _0x4b0572['t'](_0x376d7b(0x21e));case _0x48d292['NETWORK_ERROR']:return _0x4b0572['t']('mcpConfig.connectionError.networkError');case _0x48d292[_0x376d7b(0x1ab)]:return _0x4b0572['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0xfcb724=_0x5c00bd(()=>{var _0x167b90=_0x5bcf1f;const _0x474b44={..._0x22a357,'apiKey':_0x2b3220[_0x167b90(0x256)](),'enableAuth':_0x3705f6};_0x4f8c1c(_0x474b44);},[_0x22a357,_0x2b3220,_0x3705f6,_0x4f8c1c]),_0x24cad4=_0x2b3220[_0x5bcf1f(0x256)]()[_0x5bcf1f(0x11e)]>0x0;return _0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x140),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x119),'children':_0x46fbb5(_0x5bcf1f(0x12a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x20d),'children':_0x4d1396('span',{'className':_0x5bcf1f(0x122),'children':'⚙'})}),_0x4d1396(_0x5bcf1f(0x12a),{'children':_0x4d1396('p',{'className':_0x5bcf1f(0x258),'children':_0x4b0572['t']('mcpConfig.description')})})]})}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x145),'children':[_0x4d1396('div',{'className':_0x5bcf1f(0x1c9)+_0x284996(_0x3e06bb,_0x4a388f)+_0x5bcf1f(0x218),'children':_0x46fbb5('div',{'className':_0x5bcf1f(0x253),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5c049d(_0x3e06bb,_0x4a388f)+_0x5bcf1f(0x20c)}),_0x4d1396(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x1bd),'children':_0x5ce85a(_0x3e06bb)})]})}),_0x4a388f!==_0x48d292[_0x5bcf1f(0x133)]&&(_0x3e06bb===_0x44c736[_0x5bcf1f(0x148)]||_0x4a388f===_0x48d292[_0x5bcf1f(0x11c)]||_0x4a388f===_0x48d292[_0x5bcf1f(0x16b)])&&_0x4d1396(_0x5bcf1f(0x12a),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x116),'children':[_0x4d1396(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x109),'children':'⚠️'}),_0x4d1396('p',{'className':_0x5bcf1f(0x137),'children':_0x2759c9(_0x4a388f)})]})})]}),_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x235),'children':_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x187),'children':[_0x46fbb5('div',{'className':_0x5bcf1f(0x229),'children':[_0x46fbb5(_0x5bcf1f(0x12e),{'className':_0x5bcf1f(0x1e8),'children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'🔑'}),'\x20',_0x4b0572['t'](_0x5bcf1f(0x1ee)),_0x4d1396('span',{'className':_0x5bcf1f(0x15e),'children':'*'}),_0xce0cb4&&_0x4d1396('a',{'href':_0x5bcf1f(0x113),'onClick':()=>_0x5e0a6a(!0x0),'className':_0x5bcf1f(0x1b8),'title':_0x4b0572['t'](_0x5bcf1f(0x19e)),'children':_0x4d1396(se,{})})]}),_0x4d1396(_0x453dda,{'type':_0x5bcf1f(0x169),'placeholder':_0x4b0572['t'](_0x5bcf1f(0x211)),'value':_0x2b3220,'onChange':_0x55bfd8,'disabled':_0x795d82,'autoComplete':_0x5bcf1f(0x22f)}),_0x4d1396('p',{'className':_0x5bcf1f(0x1ae),'children':_0x4b0572['t'](_0x5bcf1f(0x107))})]}),_0xce0cb4&&_0x4c8915&&_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x21c),'children':[_0x4d1396('a',{'href':_0x5bcf1f(0x113),'onClick':()=>_0x5e0a6a(!0x1),'className':_0x5bcf1f(0x1f0),'title':_0x5bcf1f(0x13c),'children':_0x4d1396(ae,{})}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x14d),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1c5),'children':_0x4d1396(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x147),'children':'🚀'})}),_0x46fbb5('div',{'className':_0x5bcf1f(0x1ea),'children':[_0x4d1396('h4',{'className':_0x5bcf1f(0x1d4),'children':_0x4b0572['t'](_0x5bcf1f(0x19e))}),_0x4d1396('p',{'className':_0x5bcf1f(0x1b1),'children':_0x4b0572['t'](_0x5bcf1f(0x1a7))}),_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x18e),'children':_0x5a0dff&&_0x46fbb5('a',{'href':_0x87197,'target':_0x5bcf1f(0x1ce),'rel':_0x5bcf1f(0x1bc),'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','children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'🤖'}),_0x4b0572['t'](_0x5bcf1f(0x1a2)),_0x4d1396(_0x5bcf1f(0x184),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1f2),'children':['✨','\x20',_0x4b0572['t'](_0x5bcf1f(0x1de))]})]})]})]}),_0x5257a6[_0x5bcf1f(0x10d)]&&_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x160),'children':[_0x46fbb5('h4',{'className':_0x5bcf1f(0x200),'children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'🔗'}),'\x20',_0x4b0572['t'](_0x5bcf1f(0x172))]}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x110),'children':[_0x46fbb5('div',{'className':_0x5bcf1f(0x1fd),'children':[_0x4d1396('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1eb),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':'univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x4b0572['t']('mcpConfig.serverEndpoint')}),_0x4d1396('code',{'className':_0x5bcf1f(0x1c1),'children':_0x22a357['mcpServerUrl']})]})]}),_0x46fbb5('div',{'className':_0x5bcf1f(0x1fd),'children':[_0x4d1396('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1eb),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x1dd),'children':_0x4b0572['t']('mcpConfig.sessionId')}),_0x4d1396('code',{'className':_0x5bcf1f(0x1a4),'children':_0x22a357[_0x5bcf1f(0x1df)]||'default'})]})]})]})]}),_0x4d1396(_0xde16eb,{'onClick':_0xfcb724,'disabled':!_0x24cad4||_0x795d82,'className':_0x5bcf1f(0x135),'children':_0x795d82?_0x46fbb5(_0x5bcf1f(0x184),{'className':_0x5bcf1f(0x253),'children':[_0x4d1396(_0x5bcf1f(0x184),{'children':'⟲'}),_0x4b0572['t']('mcpConfig.saving')]}):_0x46fbb5('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4d1396(ce,{}),_0x4b0572['t'](_0x5bcf1f(0x222))]})}),_0x4d1396('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x46fbb5('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x4d1396(_0x5bcf1f(0x184),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x46fbb5(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x248),'children':[_0x4d1396(_0x5bcf1f(0x12a),{'className':_0x5bcf1f(0x25d),'children':_0x5bcf1f(0x24f)}),_0x46fbb5('div',{'children':['•',_0x4b0572['t']('mcpConfig.note1')]}),_0x46fbb5(_0x5bcf1f(0x12a),{'children':['•',_0x4b0572['t']('mcpConfig.note2')]})]})]})})]})})]});}const U=_0x23fab0(0x14a),J={'showDeveloperTools':!0x1};var Je=Object[_0x23fab0(0x18f)],Qe=(_0x1a8a5a,_0x5594b0,_0x1b5e78,_0x5e220c)=>{var _0x596632=_0x23fab0;for(var _0x30f930=_0x5e220c>0x1?void 0x0:_0x5e220c?Je(_0x5594b0,_0x1b5e78):_0x5594b0,_0x24607c=_0x1a8a5a[_0x596632(0x11e)]-0x1,_0x2bd1c9;_0x24607c>=0x0;_0x24607c--)(_0x2bd1c9=_0x1a8a5a[_0x24607c])&&(_0x30f930=_0x2bd1c9(_0x30f930)||_0x30f930);return _0x30f930;},p=(_0x1f88ab,_0x2eee63)=>(_0x5691ee,_0x108412)=>_0x2eee63(_0x5691ee,_0x108412,_0x1f88ab);const R=_0x23fab0(0x128),j=_0x23fab0(0x14b);let _=class extends _0x56b7ac{constructor(_0x13dd63,_0x18773e,_0x3e8997,_0x2ae57f,_0x2f48cb,_0xdbdab,_0x2feb08,_0x37658e,_0x943f11,_0x2a4b5e){var _0x1f3f72=_0x23fab0;super(),N(this,'_loading$',new _0xc71a63(!0x1)),N(this,'_mcpCoreConfig$',new _0xc71a63({})),N(this,'_config$',new _0xc71a63({})),N(this,_0x1f3f72(0x1e3),async _0x12e3b0=>{var _0x33bf36=_0x1f3f72;this[_0x33bf36(0x17e)][_0x33bf36(0x209)](!0x0);try{const _0x3770e1=await this[_0x33bf36(0x115)](_0x12e3b0);if(!_0x3770e1[_0x33bf36(0x1d0)]){this[_0x33bf36(0x214)][_0x33bf36(0x111)]({'type':_0x4dddf5[_0x33bf36(0x188)],'content':_0x3770e1[_0x33bf36(0x259)]||this[_0x33bf36(0x120)]['t'](_0x33bf36(0x1a8))});return;}_0x12e3b0[_0x33bf36(0x146)]?await this[_0x33bf36(0x1cf)][_0x33bf36(0x217)](R,_0x12e3b0[_0x33bf36(0x146)]['trim']()):await this[_0x33bf36(0x1cf)][_0x33bf36(0x17c)](R),this[_0x33bf36(0x241)][_0x33bf36(0x193)](_0x5887db,{..._0x12e3b0,'apiKey':_0x12e3b0[_0x33bf36(0x146)]['trim']()}),this[_0x33bf36(0x166)][_0x33bf36(0x209)]({..._0x12e3b0,'apiKey':_0x12e3b0['apiKey'][_0x33bf36(0x256)]()}),this[_0x33bf36(0x214)][_0x33bf36(0x111)]({'type':_0x4dddf5[_0x33bf36(0x1e9)],'content':this['_localeService']['t'](_0x33bf36(0x144))}),setTimeout(()=>{var _0x5ce717=_0x33bf36;this['_dialogService'][_0x5ce717(0x10f)](j);},0x320);}catch(_0x616a5f){this['_logService']['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x616a5f),this[_0x33bf36(0x214)][_0x33bf36(0x111)]({'type':_0x4dddf5[_0x33bf36(0x188)],'content':this[_0x33bf36(0x120)]['t']('mcpConfig.configError')});}finally{this[_0x33bf36(0x17e)][_0x33bf36(0x209)](!0x1);}}),(this['_injector']=_0x13dd63,this['_uiPartsService']=_0x18773e,this['_configService']=_0x3e8997,this[_0x1f3f72(0x1cf)]=_0x2ae57f,this['_dialogService']=_0x2f48cb,this['_messageService']=_0xdbdab,this[_0x1f3f72(0x18c)]=_0x2feb08,this[_0x1f3f72(0x120)]=_0x37658e,this[_0x1f3f72(0x195)]=_0x943f11,this[_0x1f3f72(0x1c2)]=_0x2a4b5e,this[_0x1f3f72(0x22d)](),this[_0x1f3f72(0x118)](),this['_registerComponent']());}[_0x23fab0(0x1cc)](){var _0x549932=_0x23fab0;this[_0x549932(0x1f4)]['open']({'id':j,'title':{'title':this[_0x549932(0x120)]['t'](_0x549932(0x252))},'children':{'label':'MCPConfigPanel'},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5985fd=_0x549932;this[_0x5985fd(0x1f4)][_0x5985fd(0x10f)](j);}});}[_0x23fab0(0x13f)](){var _0x2dba9a=_0x23fab0;return this['_mcpCoreConfig$'][_0x2dba9a(0x12d)];}[_0x23fab0(0x213)](){var _0x52c203=_0x23fab0;this[_0x52c203(0x143)](this['_componentManager'][_0x52c203(0x1d1)](_0x52c203(0x1a3),this[_0x52c203(0x124)]()));}[_0x23fab0(0x124)](){var _0x52dcf1=_0x23fab0;return _0x3e31ca(()=>{var _0x1e107f=_0x3f3e,_0x1a2636,_0x2c5838;return _0x4d1396(Xe,{'config':this[_0x1e107f(0x17b)][_0x1e107f(0x12d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x1e107f(0x12d)],'onSave':this['_handleConfigSave'],'loading':this[_0x1e107f(0x17e)][_0x1e107f(0x12d)],'connectionStatus$':(_0x1a2636=this[_0x1e107f(0x1c2)])==null?void 0x0:_0x1a2636['connectionStatus$'],'connectionError$':(_0x2c5838=this['_mcpConnectionController'])==null?void 0x0:_0x2c5838[_0x1e107f(0x23e)]});},this[_0x52dcf1(0x1ac)]);}[_0x23fab0(0x22d)](){var _0x1c16a9=_0x23fab0;this[_0x1c16a9(0x143)](this[_0x1c16a9(0x241)]['subscribeConfigValue$'](_0x5887db)[_0x1c16a9(0x1bf)](_0x14a890=>{var _0x3d5e3f=_0x1c16a9;this['_mcpCoreConfig$'][_0x3d5e3f(0x209)](_0x14a890||{});}));const _0x566a69=this[_0x1c16a9(0x241)][_0x1c16a9(0x1f6)](_0x5887db);this['_mcpCoreConfig$'][_0x1c16a9(0x209)](_0x566a69||{}),this[_0x1c16a9(0x143)](this[_0x1c16a9(0x241)][_0x1c16a9(0x1e7)](U)[_0x1c16a9(0x1bf)](_0x33c11c=>{var _0x33f0ef=_0x1c16a9;this[_0x33f0ef(0x17b)][_0x33f0ef(0x209)](_0x33c11c||{});}));const _0x352d7f=this[_0x1c16a9(0x241)][_0x1c16a9(0x1f6)](U);this[_0x1c16a9(0x17b)][_0x1c16a9(0x209)](_0x352d7f||{});}async[_0x23fab0(0x118)](){var _0x3021d0=_0x23fab0;const _0x4e0def=await this['_localStorageService'][_0x3021d0(0x204)](R);if(_0x4e0def){const _0x110238={...this[_0x3021d0(0x166)][_0x3021d0(0x12d)],'apiKey':_0x4e0def};this[_0x3021d0(0x241)][_0x3021d0(0x193)](_0x5887db,_0x110238),this['_mcpCoreConfig$']['next'](_0x110238);}}async['_validateConfig'](_0x46b014){var _0x5345ac=_0x23fab0;if(!_0x46b014[_0x5345ac(0x146)]||_0x46b014[_0x5345ac(0x146)][_0x5345ac(0x256)]()[_0x5345ac(0x11e)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x5345ac(0x190))};if(_0x46b014[_0x5345ac(0x146)][_0x5345ac(0x256)]()[_0x5345ac(0x11e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5345ac(0x120)]['t'](_0x5345ac(0x14c))};try{const _0x2c13d6=await this[_0x5345ac(0x1ac)][_0x5345ac(0x1b5)](_0x229619)[_0x5345ac(0x199)](_0x46b014['apiKey'][_0x5345ac(0x256)]());return _0x2c13d6[_0x5345ac(0x1d0)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c13d6[_0x5345ac(0x158)]||this[_0x5345ac(0x120)]['t'](_0x5345ac(0x149))};}catch(_0x373353){return console[_0x5345ac(0x11f)](_0x5345ac(0x1a5),_0x373353),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x27af5e(_0x1fc671)),p(0x1,_0x4d1b0e),p(0x2,_0x5935da),p(0x3,_0x396cbc),p(0x4,_0x223ca1),p(0x5,_0x1d356e),p(0x6,_0x27af5e(_0x30c28c)),p(0x7,_0x27af5e(_0x25beb3)),p(0x8,_0x5d8729),p(0x9,_0x27af5e(_0x229619))],_);const W={'id':_0x23fab0(0x22b),'type':_0x158acf[_0x23fab0(0x1b3)],'handler':async(_0x20a412,_0x174e52)=>(_0x20a412[_0x23fab0(0x1b5)](_)[_0x23fab0(0x1cc)](),!0x0)};function ve(_0x4205c7,_0x3282bd){var _0xcae78e=_0x23fab0;switch(_0x4205c7){case _0x44c736[_0xcae78e(0x1cd)]:return _0x3282bd===_0x48d292[_0xcae78e(0x11c)]?'mcpStatus.missingApiKey':_0xcae78e(0x240);case _0x44c736[_0xcae78e(0x22c)]:return'mcpStatus.connecting';case _0x44c736['CONNECTED']:return'mcpStatus.connected';case _0x44c736[_0xcae78e(0x148)]:switch(_0x3282bd){case _0x48d292[_0xcae78e(0x16b)]:return _0xcae78e(0x1a1);case _0x48d292[_0xcae78e(0x15f)]:return _0xcae78e(0x1e1);case _0x48d292[_0xcae78e(0x1d2)]:return _0xcae78e(0x1d8);case _0x48d292[_0xcae78e(0x1ab)]:return'mcpStatus.maxRetriesExceeded';default:return _0xcae78e(0x255);}case _0x44c736[_0xcae78e(0x173)]:return _0xcae78e(0x174);default:return'mcpStatus.unknown';}}function en(_0x3a9fe9,_0x1d508f,_0x2e6784){var _0x28c358=_0x23fab0;const _0x2f3c94=ve(_0x3a9fe9,_0x1d508f),_0x35e7bc=_0x2e6784['t'](_0x2f3c94);return _0x3a9fe9===_0x44c736[_0x28c358(0x1cd)]&&_0x1d508f===_0x48d292[_0x28c358(0x11c)]?_0x35e7bc+'\x20-\x20'+_0x2e6784['t']('mcpStatus.clickToConfigure'):_0x3a9fe9===_0x44c736[_0x28c358(0x108)]?''+_0x35e7bc:_0x3a9fe9===_0x44c736['DISCONNECTED']||_0x3a9fe9===_0x44c736['FAILED']?_0x35e7bc+_0x28c358(0x16d)+_0x2e6784['t'](_0x28c358(0x125)):_0x35e7bc;}function nn(_0x5d904c){var _0x5eac81=_0x23fab0;switch(_0x5d904c){case _0x44c736[_0x5eac81(0x108)]:return'univer-text-green-500';case _0x44c736['CONNECTING']:case _0x44c736[_0x5eac81(0x173)]:return _0x5eac81(0x1d5);case _0x44c736[_0x5eac81(0x148)]:case _0x44c736[_0x5eac81(0x1cd)]:return'univer-text-red-500';default:return _0x5eac81(0x170);}}function rn(_0x144ba8){var _0x578ede=_0x23fab0;const {status$:_0x599fb8,error$:_0x132974,onConfigure:_0x13fb33}=_0x144ba8,_0x1fc866=_0x11bc25(_0x599fb8,_0x44c736['DISCONNECTED']),_0x1f50f7=_0x11bc25(_0x132974,_0x48d292[_0x578ede(0x133)]),_0x105188=_0x24d075(_0x25beb3),_0x4562da=_0x1fc866===_0x44c736['CONNECTED'],_0x2e8365=_0x1fc866===_0x44c736[_0x578ede(0x22c)]||_0x1fc866===_0x44c736[_0x578ede(0x173)],_0x5ebf0e=_0x105188['t'](ve(_0x1fc866,_0x1f50f7)),_0x556056=en(_0x1fc866,_0x1f50f7,_0x105188),_0x2e0a9e=nn(_0x1fc866),_0x479099=_0x4562da?_0x4d1396(ue,{}):_0x4d1396(le,{}),_0x413b54=_0x5c00bd(()=>{_0x13fb33&&_0x13fb33();},[_0x4562da,_0x2e8365,_0x13fb33]);function _0x2497ce(){var _0x47d8e6=_0x578ede;return _0x46fbb5(_0x47d8e6(0x12a),{'className':_0x44e383(_0x47d8e6(0x1e5),_0x13fb33&&_0x47d8e6(0x1ff)),'onClick':_0x13fb33?_0x413b54:void 0x0,'children':[_0x4d1396(_0x47d8e6(0x12a),{'className':_0x44e383(_0x47d8e6(0x19d),_0x2e0a9e),'children':_0x479099}),_0x4d1396('div',{'className':_0x47d8e6(0x1af),'children':_0x5ebf0e})]});}return _0x4d1396(_0x2abc33,{'title':_0x556056,'placement':_0x578ede(0x176),'children':_0x2497ce()});}var tn=Object[_0x23fab0(0x18f)],on=(_0x131837,_0x214b40,_0xa94caa,_0x85c675)=>{for(var _0x2310cb=_0x85c675>0x1?void 0x0:_0x85c675?tn(_0x214b40,_0xa94caa):_0x214b40,_0x20b843=_0x131837['length']-0x1,_0x1ed43a;_0x20b843>=0x0;_0x20b843--)(_0x1ed43a=_0x131837[_0x20b843])&&(_0x2310cb=_0x1ed43a(_0x2310cb)||_0x2310cb);return _0x2310cb;},L=(_0x1df828,_0x412f9c)=>(_0x1350a2,_0x3c42d2)=>_0x412f9c(_0x1350a2,_0x3c42d2,_0x1df828);let O=class extends _0x56b7ac{constructor(_0x502642,_0x4cd6dc,_0x29950d){var _0x1247ef=_0x23fab0;super(),this[_0x1247ef(0x1ac)]=_0x502642,this[_0x1247ef(0x13d)]=_0x4cd6dc,this[_0x1247ef(0x249)]=_0x29950d,this[_0x1247ef(0x153)]();}[_0x23fab0(0x153)](){var _0x48427c=_0x23fab0;this[_0x48427c(0x143)](this[_0x48427c(0x249)]['registerComponent'](_0x33a29c[_0x48427c(0x10a)],()=>_0x3e31ca(cn({'status$':this[_0x48427c(0x13d)][_0x48427c(0x11a)],'error$':this['_connectionController'][_0x48427c(0x23e)],'onConfigure':()=>this['_handleConfigure']()}),this[_0x48427c(0x1ac)])));}[_0x23fab0(0x24a)](){var _0x20a619=_0x23fab0;this[_0x20a619(0x1ac)]['get'](_)[_0x20a619(0x1cc)]();}};O=on([L(0x0,_0x27af5e(_0x1fc671)),L(0x1,_0x27af5e(_0x229619)),L(0x2,_0x4d1b0e)],O);function cn(_0x13f12d){const {status$:_0x337658,error$:_0x3a1d5c,onConfigure:_0x4edd92}=_0x13f12d;return function(){return _0x4d1396(rn,{'status$':_0x337658,'error$':_0x3a1d5c,'onConfigure':_0x4edd92});};}function an(_0x22bd21){var _0x1e8188=_0x23fab0;return{'id':W['id'],'type':_0x16e1aa[_0x1e8188(0x134)],'icon':'MenuIcon','title':_0x1e8188(0x252),'tooltip':'mcpConfig.title'};}const sn={[_0x19bf15[_0x23fab0(0x1ad)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object['getOwnPropertyDescriptor'],un=(_0x589070,_0x577b6b,_0x18d06f,_0x1cbff6)=>{var _0x188caa=_0x23fab0;for(var _0x2df292=_0x1cbff6>0x1?void 0x0:_0x1cbff6?ln(_0x577b6b,_0x18d06f):_0x577b6b,_0x4bb291=_0x589070[_0x188caa(0x11e)]-0x1,_0x46ab3e;_0x4bb291>=0x0;_0x4bb291--)(_0x46ab3e=_0x589070[_0x4bb291])&&(_0x2df292=_0x46ab3e(_0x2df292)||_0x2df292);return _0x2df292;},Q=(_0x20067f,_0x2b3b7b)=>(_0x58fe64,_0x42f968)=>_0x2b3b7b(_0x58fe64,_0x42f968,_0x20067f);let k=class extends _0x56b7ac{constructor(_0x4684f9,_0x3f8bd6){var _0xb04fe=_0x23fab0;super(),this[_0xb04fe(0x1c4)]=_0x4684f9,this[_0xb04fe(0x19f)]=_0x3f8bd6,this[_0xb04fe(0x151)](),this[_0xb04fe(0x215)]();}[_0x23fab0(0x151)](){var _0x4afd3d=_0x23fab0;[W][_0x4afd3d(0x13a)](_0x4f78b3=>{var _0x1a4f8b=_0x4afd3d;this[_0x1a4f8b(0x143)](this[_0x1a4f8b(0x1c4)][_0x1a4f8b(0x180)](_0x4f78b3));});}['_initializeMenus'](){var _0x15eac9=_0x23fab0;this['_menuManagerService'][_0x15eac9(0x1d9)](sn);}};k=un([Q(0x0,_0x3381d7),Q(0x1,_0x53b950)],k);const Nn={'mcpStatus':{'disconnected':_0x23fab0(0x1be),'connecting':_0x23fab0(0x223),'connected':_0x23fab0(0x1e4),'failed':_0x23fab0(0x141),'retrying':_0x23fab0(0x1f1),'unknown':_0x23fab0(0x1d3),'missingApiKey':_0x23fab0(0x202),'invalidApiKey':_0x23fab0(0x21a),'sessionOccupied':_0x23fab0(0x12b),'networkError':_0x23fab0(0x12f),'maxRetriesExceeded':_0x23fab0(0x1d6),'clickToConnect':_0x23fab0(0x1fc),'clickToConfigure':_0x23fab0(0x207)},'mcpConfig':{'title':_0x23fab0(0x242),'description':_0x23fab0(0x1e6),'apiKey':_0x23fab0(0x186),'apiKeyPlaceholder':_0x23fab0(0x10c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x23fab0(0x177),'enableAuthHint':_0x23fab0(0x192),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x23fab0(0x1b4),'sessionId':'Session\x20ID','maxRetries':_0x23fab0(0x1c0),'save':_0x23fab0(0x230),'saving':'Saving...','note1':_0x23fab0(0x168),'note2':_0x23fab0(0x150),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x23fab0(0x25c),'apiApplyInfo':{'title':_0x23fab0(0x161),'description':_0x23fab0(0x1ed),'univerAiLabel':_0x23fab0(0x12c),'getStarted':_0x23fab0(0x19a)},'validation':{'apiKeyRequired':_0x23fab0(0x244),'apiKeyTooShort':_0x23fab0(0x14e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x23fab0(0x129)},'connectionStatus':{'disconnected':_0x23fab0(0x21b),'connecting':_0x23fab0(0x117),'connected':_0x23fab0(0x220),'failed':_0x23fab0(0x18a),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x23fab0(0x257),'invalidApiKey':_0x23fab0(0x15d),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Pn={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x23fab0(0x233),'connected':_0x23fab0(0x224),'failed':_0x23fab0(0x14f),'retrying':_0x23fab0(0x1b0),'unknown':_0x23fab0(0x231),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x23fab0(0x10b),'sessionOccupied':_0x23fab0(0x15b),'networkError':_0x23fab0(0x162),'maxRetriesExceeded':_0x23fab0(0x1a0),'clickToConnect':_0x23fab0(0x1c8),'clickToConfigure':_0x23fab0(0x1b2)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x23fab0(0x20e),'apiKeyPlaceholder':_0x23fab0(0x212),'apiKeyHint':_0x23fab0(0x157),'enableAuth':_0x23fab0(0x131),'enableAuthHint':_0x23fab0(0x24c),'connectionInfo':_0x23fab0(0x156),'serverEndpoint':_0x23fab0(0x236),'sessionId':_0x23fab0(0x123),'maxRetries':_0x23fab0(0x1f8),'save':_0x23fab0(0x191),'saving':_0x23fab0(0x142),'note1':_0x23fab0(0x13e),'note2':_0x23fab0(0x16c),'configSaved':_0x23fab0(0x219),'configError':_0x23fab0(0x1ef),'apiApplyInfo':{'title':_0x23fab0(0x234),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x23fab0(0x179),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x23fab0(0x126),'invalidApiKey':_0x23fab0(0x181)},'connectionStatus':{'disconnected':_0x23fab0(0x227),'connecting':_0x23fab0(0x238),'connected':_0x23fab0(0x1f9),'failed':'连接失败','retrying':_0x23fab0(0x1c6)},'connectionError':{'missingApiKey':_0x23fab0(0x10e),'invalidApiKey':_0x23fab0(0x247),'sessionOccupied':'会话当前被占用,请稍后再试','networkError':_0x23fab0(0x1a9),'maxRetriesExceeded':_0x23fab0(0x121)}}};var vn=Object['defineProperty'],dn=Object[_0x23fab0(0x18f)],gn=(_0x43380d,_0x325774,_0x53fcc4)=>_0x325774 in _0x43380d?vn(_0x43380d,_0x325774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53fcc4}):_0x43380d[_0x325774]=_0x53fcc4,fn=(_0x3bad50,_0x577c6d,_0x513b5b,_0x31172b)=>{for(var _0x2516c7=_0x31172b>0x1?void 0x0:_0x31172b?dn(_0x577c6d,_0x513b5b):_0x577c6d,_0xc44972=_0x3bad50['length']-0x1,_0x3d89b4;_0xc44972>=0x0;_0xc44972--)(_0x3d89b4=_0x3bad50[_0xc44972])&&(_0x2516c7=_0x3d89b4(_0x2516c7)||_0x2516c7);return _0x2516c7;},P=(_0x54c4e5,_0x42a837)=>(_0x48738f,_0x414f3a)=>_0x42a837(_0x48738f,_0x414f3a,_0x54c4e5),pn=(_0x63478f,_0x4d5a40,_0x5efc45)=>gn(_0x63478f,_0x4d5a40+'',_0x5efc45);let G=class extends _0x57147d{constructor(_0x6efa03=J,_0x50a61c,_0x52ba6e,_0x779e26,_0x312adc,_0x5e13f7){var _0x2034d4=_0x23fab0;super(),this[_0x2034d4(0x15c)]=_0x6efa03,this[_0x2034d4(0x1ac)]=_0x50a61c,this[_0x2034d4(0x241)]=_0x52ba6e,this[_0x2034d4(0x249)]=_0x779e26,this[_0x2034d4(0x1cf)]=_0x312adc,this[_0x2034d4(0x120)]=_0x5e13f7;const {..._0xe62ae4}=_0x4fb00c({},J,this[_0x2034d4(0x15c)]);this[_0x2034d4(0x241)][_0x2034d4(0x193)](U,_0xe62ae4);}async[_0x23fab0(0x182)](){var _0x1e13fd=_0x23fab0;[[O],[_],[k]][_0x1e13fd(0x13a)](_0x3e41c0=>this['_injector'][_0x1e13fd(0x163)](_0x3e41c0)),this[_0x1e13fd(0x1ac)][_0x1e13fd(0x1b5)](O),this['_injector'][_0x1e13fd(0x1b5)](_),this['_injector']['get'](k);}};pn(G,_0x23fab0(0x221),_0x23fab0(0x20f)),G=fn([_0x252ca3(_0x20dda9),P(0x1,_0x27af5e(_0x1fc671)),P(0x2,_0x5935da),P(0x3,_0x4d1b0e),P(0x4,_0x396cbc),P(0x5,_0x27af5e(_0x25beb3))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
|
|
1
|
+
var _0x22d713=_0x4df3;(function(_0x3245d5,_0x2332ac){var _0x50ed07=_0x4df3,_0x4c5688=_0x3245d5();while(!![]){try{var _0x220600=parseInt(_0x50ed07(0x1f1))/0x1+parseInt(_0x50ed07(0x1a0))/0x2+-parseInt(_0x50ed07(0x11b))/0x3*(-parseInt(_0x50ed07(0x1d4))/0x4)+parseInt(_0x50ed07(0x23e))/0x5*(-parseInt(_0x50ed07(0x116))/0x6)+-parseInt(_0x50ed07(0x185))/0x7*(parseInt(_0x50ed07(0x13a))/0x8)+parseInt(_0x50ed07(0x167))/0x9*(-parseInt(_0x50ed07(0x218))/0xa)+-parseInt(_0x50ed07(0x1ac))/0xb*(-parseInt(_0x50ed07(0x231))/0xc);if(_0x220600===_0x2332ac)break;else _0x4c5688['push'](_0x4c5688['shift']());}catch(_0x200ebd){_0x4c5688['push'](_0x4c5688['shift']());}}}(_0x5382,0xad607));var Ee=Object[_0x22d713(0x102)],we=(_0x405915,_0x402560,_0x5b3ebf)=>_0x402560 in _0x405915?Ee(_0x405915,_0x402560,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3ebf}):_0x405915[_0x402560]=_0x5b3ebf,x=(_0x352cd1,_0x58258f,_0x6f86fd)=>we(_0x352cd1,typeof _0x58258f!='symbol'?_0x58258f+'':_0x58258f,_0x6f86fd);import{LocaleService as _0x309e63,Inject as _0x5486a6,Injector as _0x5d75c5,IConfigService as _0x16026c,ILocalStorageService as _0x258048,ILogService as _0xce7fb5,Disposable as _0x17e4fc,CommandType as _0xdb8b8d,ICommandService as _0xf27dd3,DependentOn as _0x390f57,Plugin as _0x108c6d,merge as _0x283cca}from'@univerjs/core';import{jsxs as _0x2f1d56,jsx as _0x332e26}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16277f,MCPConnectionError as _0x440842,MCPConnectionController as _0x2ef2f2,MCP_PLUGIN_CONFIG_KEY as _0x1b4990,UniverMCPPlugin as _0x980bdf}from'@univerjs-pro/mcp';import{Input as _0x224388,Button as _0x30e2ec,MessageType as _0x56cfda,Tooltip as _0x635f0f,clsx as _0x488d88}from'@univerjs/design';import{useDependency as _0x1f62a6,useObservable as _0x2d20be,IUIPartsService as _0x54649f,IDialogService as _0x15efba,IMessageService as _0x88141c,ComponentManager as _0x5a35e1,connectInjector as _0x3bce22,BuiltInUIPart as _0x4a1c81,MenuItemType as _0x552e1b,RibbonStartGroup as _0x107585,IMenuManagerService as _0x2d5339}from'@univerjs/ui';import{BehaviorSubject as _0x563fed}from'rxjs';import{forwardRef as _0x58156b,useRef as _0x22370a,createElement as _0x2cf232,useState as _0x524203,useCallback as _0x5f29f0}from'react';import{ISocketService as _0x36dc6d,WebSocketService as _0x3278f7}from'@univerjs/network';var g=function(){var _0x1d463e=_0x22d713;return g=Object[_0x1d463e(0x153)]||function(_0x42a601){var _0x25dd6f=_0x1d463e;for(var _0x1881e1,_0x524530=0x1,_0x402842=arguments[_0x25dd6f(0x149)];_0x524530<_0x402842;_0x524530++){_0x1881e1=arguments[_0x524530];for(var _0x2d9b02 in _0x1881e1)Object[_0x25dd6f(0x1b1)][_0x25dd6f(0x11d)][_0x25dd6f(0x186)](_0x1881e1,_0x2d9b02)&&(_0x42a601[_0x2d9b02]=_0x1881e1[_0x2d9b02]);}return _0x42a601;},g[_0x1d463e(0x20a)](this,arguments);},We=function(_0x189567,_0x2a6332){var _0x3f08a6=_0x22d713,_0x21750a={};for(var _0x355b4c in _0x189567)Object[_0x3f08a6(0x1b1)][_0x3f08a6(0x11d)][_0x3f08a6(0x186)](_0x189567,_0x355b4c)&&_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c)<0x0&&(_0x21750a[_0x355b4c]=_0x189567[_0x355b4c]);if(_0x189567!=null&&typeof Object[_0x3f08a6(0x20b)]==_0x3f08a6(0x20e)){for(var _0x264f0e=0x0,_0x355b4c=Object[_0x3f08a6(0x20b)](_0x189567);_0x264f0e<_0x355b4c[_0x3f08a6(0x149)];_0x264f0e++)_0x2a6332[_0x3f08a6(0x1a4)](_0x355b4c[_0x264f0e])<0x0&&Object[_0x3f08a6(0x1b1)]['propertyIsEnumerable']['call'](_0x189567,_0x355b4c[_0x264f0e])&&(_0x21750a[_0x355b4c[_0x264f0e]]=_0x189567[_0x355b4c[_0x264f0e]]);}return _0x21750a;},b=_0x58156b(function(_0xa1ac29,_0x512c09){var _0x46652f=_0x22d713,_0xbe043d=_0xa1ac29[_0x46652f(0x141)],_0x3aeb1b=_0xa1ac29['id'],_0x3a1c8a=_0xa1ac29[_0x46652f(0x19c)],_0x3f8950=_0xa1ac29['extend'],_0x3871df=We(_0xa1ac29,[_0x46652f(0x141),'id','className',_0x46652f(0x16c)]),_0x8672ea='univerjs-icon\x20univerjs-icon-'[_0x46652f(0x166)](_0x3aeb1b,'\x20')[_0x46652f(0x166)](_0x3a1c8a||'')[_0x46652f(0x1c7)](),_0x1e1352=_0x22370a('_'[_0x46652f(0x166)](Xe()));return le(_0xbe043d,''[_0x46652f(0x166)](_0x3aeb1b),{'defIds':_0xbe043d['defIds'],'idSuffix':_0x1e1352[_0x46652f(0x1b7)]},g({'ref':_0x512c09,'className':_0x8672ea},_0x3871df),_0x3f8950);});function le(_0x23908a,_0x4cc0c3,_0x133965,_0x37a1b0,_0x8133ad){var _0x1b9f0c=_0x22d713;return _0x2cf232(_0x23908a[_0x1b9f0c(0x1ec)],g(g({'key':_0x4cc0c3},qe(_0x23908a,_0x133965,_0x8133ad)),_0x37a1b0),(Ze(_0x23908a,_0x133965)[_0x1b9f0c(0x188)]||[])[_0x1b9f0c(0xfc)](function(_0x5e8a05,_0x39a2c3){var _0x42f551=_0x1b9f0c;return le(_0x5e8a05,''[_0x42f551(0x166)](_0x4cc0c3,'-')['concat'](_0x23908a['tag'],'-')['concat'](_0x39a2c3),_0x133965,void 0x0,_0x8133ad);}));}function qe(_0x8800bf,_0x481c54,_0x5cd0ea){var _0x238d76=_0x22d713,_0x2f0053=g({},_0x8800bf[_0x238d76(0x1c6)]);_0x5cd0ea!=null&&_0x5cd0ea[_0x238d76(0x1d3)]&&_0x2f0053[_0x238d76(0x244)]===_0x238d76(0x1d3)&&(_0x2f0053[_0x238d76(0x244)]=_0x5cd0ea['colorChannel1']),_0x8800bf[_0x238d76(0x1ec)]===_0x238d76(0xeb)&&_0x2f0053['id']&&(_0x2f0053['id']=_0x2f0053['id']+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x279452){var _0x3b54bb=_0x238d76,_0x89ae66=_0x279452[0x0],_0x50aeea=_0x279452[0x1];_0x89ae66===_0x3b54bb(0xeb)&&typeof _0x50aeea=='string'&&(_0x2f0053[_0x89ae66]=_0x50aeea[_0x3b54bb(0x22c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x481c54[_0x3b54bb(0x12a)],')')));});var _0x3b546a=_0x481c54[_0x238d76(0x1f9)];return!_0x3b546a||_0x3b546a[_0x238d76(0x149)]===0x0||(_0x8800bf[_0x238d76(0x1ec)]==='use'&&_0x2f0053[_0x238d76(0x139)]&&(_0x2f0053[_0x238d76(0x139)]=_0x2f0053[_0x238d76(0x139)]+_0x481c54[_0x238d76(0x12a)]),Object[_0x238d76(0x1df)](_0x2f0053)[_0x238d76(0x1bf)](function(_0x1df039){var _0x243aa3=_0x238d76,_0x5e2904=_0x1df039[0x0],_0x5698f6=_0x1df039[0x1];typeof _0x5698f6==_0x243aa3(0x1a5)&&(_0x2f0053[_0x5e2904]=_0x5698f6[_0x243aa3(0x22c)](/url\(#(.*)\)/,_0x243aa3(0x23c)[_0x243aa3(0x166)](_0x481c54[_0x243aa3(0x12a)],')')));})),_0x2f0053;}function Ze(_0x419e51,_0x302359){var _0x2049b2=_0x22d713,_0x38fe0a,_0x307a10=_0x302359[_0x2049b2(0x1f9)];return!_0x307a10||_0x307a10[_0x2049b2(0x149)]===0x0?_0x419e51:_0x419e51[_0x2049b2(0x1ec)]===_0x2049b2(0xf9)&&(!((_0x38fe0a=_0x419e51[_0x2049b2(0x188)])===null||_0x38fe0a===void 0x0)&&_0x38fe0a[_0x2049b2(0x149)])?g(g({},_0x419e51),{'children':_0x419e51['children'][_0x2049b2(0xfc)](function(_0x4199a6){var _0x21dd4d=_0x2049b2;return typeof _0x4199a6['attrs']['id']=='string'&&_0x307a10&&_0x307a10['includes'](_0x4199a6[_0x21dd4d(0x1c6)]['id'])?g(g({},_0x4199a6),{'attrs':g(g({},_0x4199a6[_0x21dd4d(0x1c6)]),{'id':_0x4199a6['attrs']['id']+_0x302359['idSuffix']})}):_0x4199a6;})}):_0x419e51;}function Xe(){var _0x2c7cc7=_0x22d713;return Math[_0x2c7cc7(0x1f6)]()[_0x2c7cc7(0x14a)](0x24)[_0x2c7cc7(0x1ba)](0x2,0x8);}b[_0x22d713(0x108)]=_0x22d713(0x10f);var Je={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1fb),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},ue=_0x58156b(function(_0x2b2eef,_0x4dc8a7){var _0x467b2c=_0x22d713;return _0x2cf232(b,Object[_0x467b2c(0x153)]({},_0x2b2eef,{'id':'check-mark-icon','ref':_0x4dc8a7,'icon':Je}));});ue[_0x22d713(0x108)]=_0x22d713(0x1d8);var Qe={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2017\x2017','width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':'currentColor','d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}},{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x1a9),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.33}}]},ve=_0x58156b(function(_0x1470d7,_0x44ad26){var _0x35c06e=_0x22d713;return _0x2cf232(b,Object['assign']({},_0x1470d7,{'id':_0x35c06e(0x1c9),'ref':_0x44ad26,'icon':Qe}));});ve[_0x22d713(0x108)]=_0x22d713(0x115);var en={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':_0x22d713(0x1a7),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x243)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x1be)}},{'tag':'path','attrs':{'fill':_0x22d713(0xe8),'d':_0x22d713(0x10d),'fillRule':_0x22d713(0xed),'clipRule':'evenodd'}}]},de=_0x58156b(function(_0xe2a75c,_0x22b5de){var _0x53032b=_0x22d713;return _0x2cf232(b,Object[_0x53032b(0x153)]({},_0xe2a75c,{'id':'help-single','ref':_0x22b5de,'icon':en}));});de['displayName']=_0x22d713(0x225);var nn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0xfa),'width':_0x22d713(0x229),'height':_0x22d713(0x229)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'stroke':_0x22d713(0xe8),'d':_0x22d713(0x17a),'strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x170)},'children':[{'tag':_0x22d713(0x1fa),'attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200)}}]}]}],'defIds':[_0x22d713(0x170)]},ge=_0x58156b(function(_0x34aef9,_0x283c8c){var _0x15d0fa=_0x22d713;return _0x2cf232(b,Object[_0x15d0fa(0x153)]({},_0x34aef9,{'id':_0x15d0fa(0x18e),'ref':_0x283c8c,'icon':nn}));});ge[_0x22d713(0x108)]=_0x22d713(0x183);var rn={'tag':_0x22d713(0x158),'attrs':{'xmlns':_0x22d713(0x21a),'fill':'none','viewBox':_0x22d713(0x1b2),'width':_0x22d713(0x229),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x22d713(0x18f)},'children':[{'tag':'path','attrs':{'stroke':_0x22d713(0xe8),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x22d713(0x1fe),'strokeLinejoin':_0x22d713(0x1fe),'strokeWidth':1.2}}]},{'tag':_0x22d713(0xf9),'attrs':{},'children':[{'tag':_0x22d713(0x1e5),'attrs':{'id':_0x22d713(0x1f7)},'children':[{'tag':'path','attrs':{'fill':_0x22d713(0x172),'d':_0x22d713(0x200),'transform':'translate(.97)'}}]}]}],'defIds':[_0x22d713(0x1f7)]},fe=_0x58156b(function(_0x227222,_0x273b1f){var _0x350817=_0x22d713;return _0x2cf232(b,Object[_0x350817(0x153)]({},_0x227222,{'id':_0x350817(0x1db),'ref':_0x273b1f,'icon':rn}));});fe[_0x22d713(0x108)]=_0x22d713(0x22f);function tn(_0x20b2e3){var _0x17e552=_0x22d713,_0x45fa22,_0x51d8e0;const {mcpCoreConfig:_0x4d3756,onSave:_0x5f05bb,loading:_0x15ddec=!0x1,config:_0x12dfd5,connectionStatus$:_0x42f94,connectionError$:_0x3d0540,currentApiKey$:_0x29972b,currentSessionId$:_0x393b0a}=_0x20b2e3,_0x4d8272=_0x1f62a6(_0x309e63),_0x6df636=_0x2d20be(_0x42f94,_0x16277f[_0x17e552(0x187)]),_0x4addeb=_0x2d20be(_0x3d0540,_0x440842[_0x17e552(0x165)]),_0x2bc93f=_0x2d20be(_0x393b0a,''),_0x1eb878=_0x2d20be(_0x29972b,''),[_0x39ec65,_0x339237]=_0x524203(_0x1eb878||''),_0x3a4a28=!0x0,_0x1b65dd=_0x12dfd5['showDeveloperTools']&&_0x4d3756[_0x17e552(0xf8)]&&(_0x4d3756[_0x17e552(0xf8)][_0x17e552(0x1bb)](_0x17e552(0x1d2))||_0x4d3756[_0x17e552(0xf8)]['includes'](_0x17e552(0x1b0))),_0x18fe80=(_0x45fa22=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x45fa22[_0x17e552(0x1bb)](_0x17e552(0x1d2)),_0x19edde=(_0x51d8e0=_0x4d3756[_0x17e552(0xf8)])==null?void 0x0:_0x51d8e0[_0x17e552(0x1bb)](_0x17e552(0x1b0)),_0x23a544=_0x18fe80?_0x17e552(0x1af):_0x17e552(0x100),_0x389166=_0x12dfd5[_0x17e552(0x195)]&&(_0x18fe80||_0x19edde),[_0x1871fe,_0x3a255d]=_0x524203(!_0x39ec65[_0x17e552(0x1c7)]()),_0x28f88a=(_0x24c682,_0x13bbf0)=>{var _0x15c90b=_0x17e552;if(_0x13bbf0===_0x440842[_0x15c90b(0x21b)])return _0x15c90b(0x101);switch(_0x24c682){case _0x16277f['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x16277f['CONNECTING']:case _0x16277f[_0x15c90b(0x146)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x16277f[_0x15c90b(0xff)]:return _0x15c90b(0x101);default:return _0x15c90b(0x105);}},_0x193fef=(_0x42ff3f,_0x1aac06)=>{var _0x1d94e2=_0x17e552;if(_0x1aac06===_0x440842[_0x1d94e2(0x21b)])return _0x1d94e2(0x1e8);switch(_0x42ff3f){case _0x16277f[_0x1d94e2(0x10a)]:return'univer-bg-green-500';case _0x16277f['CONNECTING']:case _0x16277f[_0x1d94e2(0x146)]:return'univer-bg-blue-500';case _0x16277f[_0x1d94e2(0xff)]:return _0x1d94e2(0x1e8);default:return'univer-bg-gray-500';}},_0x184f62=_0x2c7ed5=>{var _0x318870=_0x17e552;switch(_0x2c7ed5){case _0x16277f['CONNECTED']:return _0x4d8272['t'](_0x318870(0x21c));case _0x16277f[_0x318870(0x104)]:return _0x4d8272['t']('mcpConfig.connectionStatus.connecting');case _0x16277f[_0x318870(0xff)]:return _0x4d8272['t']('mcpConfig.connectionStatus.failed');case _0x16277f[_0x318870(0x146)]:return _0x4d8272['t'](_0x318870(0x107));default:return _0x4d8272['t'](_0x318870(0x199));}},_0x30fd3d=_0x10f5c4=>{var _0x169214=_0x17e552;switch(_0x10f5c4){case _0x440842[_0x169214(0x21b)]:return _0x4d8272['t']('mcpConfig.connectionError.invalidApiKey');case _0x440842['SESSION_ID_OCCUPIED']:return _0x4d8272['t'](_0x169214(0x19e));case _0x440842[_0x169214(0xfb)]:return _0x4d8272['t'](_0x169214(0x1b9));case _0x440842[_0x169214(0xe3)]:return _0x4d8272['t'](_0x169214(0x137));default:return'';}},_0x2faea4=_0x5f29f0(()=>{const _0x4d5f87={..._0x4d3756,'apiKey':_0x39ec65['trim'](),'enableAuth':_0x3a4a28};_0x5f05bb(_0x4d5f87);},[_0x4d3756,_0x39ec65,_0x3a4a28,_0x5f05bb]),_0x31623a=_0x39ec65[_0x17e552(0x1c7)]()['length']>0x0;return _0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x131),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x20f),'children':_0x2f1d56('div',{'className':_0x17e552(0x1fc),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x143),'children':_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0xe7),'children':'⚙'})}),_0x332e26(_0x17e552(0x18d),{'children':_0x332e26('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1c1))})})]})}),_0x2f1d56('div',{'className':_0x17e552(0x1eb),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x234)+_0x28f88a(_0x6df636,_0x4addeb)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26('div',{'className':_0x17e552(0x1b5)+_0x193fef(_0x6df636,_0x4addeb)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x332e26(_0x17e552(0x232),{'className':'univer-text-sm\x20univer-font-medium','children':_0x184f62(_0x6df636)})]})}),_0x4addeb!==_0x440842['NONE']&&(_0x6df636===_0x16277f[_0x17e552(0xff)]||_0x4addeb===_0x440842[_0x17e552(0x21b)])&&_0x332e26(_0x17e552(0x18d),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x224),'children':[_0x332e26(_0x17e552(0x232),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x332e26('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x30fd3d(_0x4addeb)})]})})]}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x230),'children':_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x22d),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x18b),'children':[_0x2f1d56(_0x17e552(0x174),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x332e26(_0x17e552(0x232),{'children':'🔑'}),'\x20',_0x4d8272['t'](_0x17e552(0x12e)),_0x332e26('span',{'className':_0x17e552(0x1c3),'children':'*'}),_0x1b65dd&&_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x0),'className':_0x17e552(0x1a8),'title':_0x4d8272['t'](_0x17e552(0xe4)),'children':_0x332e26(de,{})})]}),_0x332e26(_0x224388,{'type':_0x17e552(0x15b),'placeholder':_0x4d8272['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x39ec65,'onChange':_0x339237,'disabled':_0x15ddec,'autoComplete':_0x17e552(0x156)}),_0x332e26('p',{'className':_0x17e552(0x164),'children':_0x4d8272['t'](_0x17e552(0x10c))})]}),_0x1b65dd&&_0x1871fe&&_0x2f1d56('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':[_0x332e26('a',{'href':_0x17e552(0x228),'onClick':()=>_0x3a255d(!0x1),'className':_0x17e552(0x1e1),'title':'Close','children':_0x332e26(ve,{})}),_0x2f1d56('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x15f),'children':_0x332e26(_0x17e552(0x232),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1c2),'children':[_0x332e26('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4d8272['t']('mcpConfig.apiApplyInfo.title')}),_0x332e26('p',{'className':_0x17e552(0x1e6),'children':_0x4d8272['t'](_0x17e552(0x127))}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x12d),'children':_0x389166&&_0x2f1d56('a',{'href':_0x23a544,'target':_0x17e552(0x222),'rel':_0x17e552(0x1cf),'className':_0x17e552(0x238),'children':[_0x332e26(_0x17e552(0x232),{'children':'🤖'}),_0x4d8272['t'](_0x17e552(0x1ad)),_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x226),'children':'↗'})]})}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f2),'children':['✨','\x20',_0x4d8272['t'](_0x17e552(0x211))]})]})]})]}),_0x12dfd5[_0x17e552(0x195)]&&_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x189),'children':[_0x2f1d56('h4',{'className':_0x17e552(0xe9),'children':[_0x332e26(_0x17e552(0x232),{'children':'🔗'}),'\x20',_0x4d8272['t']('mcpConfig.connectionInfo')]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1cd),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26('p',{'className':_0x17e552(0x20c),'children':_0x4d8272['t'](_0x17e552(0x124))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x147))}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x240),'children':[_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x4d8272['t'](_0x17e552(0x155))]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x214),'children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'2'}),_0x4d8272['t'](_0x17e552(0xf2))]}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x114),'children':'3'}),_0x4d8272['t'](_0x17e552(0x210))]})]})]})]}),_0x2f1d56('div',{'className':'univer-space-y-2','children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':'MCP\x20Configuration'}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x19d),'children':_0x332e26(_0x17e552(0x209),{'className':_0x17e552(0x1d7),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x2bc93f+_0x17e552(0x11e)+(_0x39ec65||'<API_KEY>')+_0x17e552(0x184)})})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1d1),'children':[_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x217),'children':_0x4d8272['t'](_0x17e552(0x23b))}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-2','children':[_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x332e26('div',{'className':_0x17e552(0x21d)}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26('div',{'className':_0x17e552(0x1c5),'children':_0x17e552(0x110)}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x198))})]})]}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x1f8),'children':[_0x332e26('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2f1d56(_0x17e552(0x18d),{'className':_0x17e552(0x13b),'children':[_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x332e26(_0x17e552(0x18d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4d8272['t'](_0x17e552(0x1e9))})]})]})]})]})]})]}),_0x332e26(_0x30e2ec,{'onClick':_0x2faea4,'disabled':!_0x31623a||_0x15ddec,'className':_0x17e552(0x241),'children':_0x15ddec?_0x2f1d56(_0x17e552(0x232),{'className':_0x17e552(0x214),'children':[_0x332e26('span',{'children':'⟲'}),_0x4d8272['t'](_0x17e552(0x190))]}):_0x2f1d56('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x332e26(ue,{}),_0x4d8272['t'](_0x17e552(0x13e))]})}),_0x332e26(_0x17e552(0x18d),{'className':_0x17e552(0x106),'children':_0x2f1d56(_0x17e552(0x18d),{'className':'univer-flex\x20univer-gap-3','children':[_0x332e26(_0x17e552(0x232),{'className':_0x17e552(0x160),'children':'💡'}),_0x2f1d56(_0x17e552(0x18d),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x332e26('div',{'className':_0x17e552(0x1f0),'children':_0x17e552(0x18a)}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x180))]}),_0x2f1d56(_0x17e552(0x18d),{'children':['•',_0x4d8272['t'](_0x17e552(0x237))]})]})]})})]})})]});}const L=_0x22d713(0xf3),ie={'showDeveloperTools':!0x1};var on=Object[_0x22d713(0x15c)],sn=(_0x466788,_0x346e98,_0x2d39fb,_0x1f9b09)=>{for(var _0x32e9b6=_0x1f9b09>0x1?void 0x0:_0x1f9b09?on(_0x346e98,_0x2d39fb):_0x346e98,_0x5e0ee1=_0x466788['length']-0x1,_0x36293f;_0x5e0ee1>=0x0;_0x5e0ee1--)(_0x36293f=_0x466788[_0x5e0ee1])&&(_0x32e9b6=_0x36293f(_0x32e9b6)||_0x32e9b6);return _0x32e9b6;},f=(_0x4e5c07,_0x97789c)=>(_0x278dbd,_0x391df4)=>_0x97789c(_0x278dbd,_0x391df4,_0x4e5c07);const T=_0x22d713(0xe5),R=_0x22d713(0x1b4);let I=class extends _0x17e4fc{constructor(_0x445c3a,_0x4d3dba,_0x59d59b,_0x1e7d25,_0x36968f,_0x33c462,_0x403ccc,_0x4f6a2f,_0x6da05,_0x1faf22){var _0x1eb58a=_0x22d713;super(),x(this,_0x1eb58a(0x1ff),new _0x563fed(!0x1)),x(this,_0x1eb58a(0x20d),new _0x563fed({})),x(this,_0x1eb58a(0x123),new _0x563fed({})),x(this,'_apiKey$',new _0x563fed('')),x(this,'_handleConfigSave',async _0x237cf2=>{var _0x1760e2=_0x1eb58a,_0xa5febd,_0x354fb6;this[_0x1760e2(0x1ff)][_0x1760e2(0x239)](!0x0);try{const _0x5e0362=await this[_0x1760e2(0x1e7)](_0x237cf2);if(!_0x5e0362[_0x1760e2(0x122)]){this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':_0x5e0362[_0x1760e2(0x11c)]||this['_localeService']['t'](_0x1760e2(0x204))});return;}_0x237cf2[_0x1760e2(0x193)]?await this[_0x1760e2(0x235)]['setItem'](T,_0x237cf2['apiKey'][_0x1760e2(0x1c7)]()):await this[_0x1760e2(0x235)][_0x1760e2(0x12f)](T),this[_0x1760e2(0x14f)][_0x1760e2(0x239)](((_0xa5febd=_0x237cf2[_0x1760e2(0x193)])==null?void 0x0:_0xa5febd['trim']())||''),this['_mcpConnectionController'][_0x1760e2(0x1d6)]({'Authorization':_0x1760e2(0x14d)+((_0x354fb6=_0x237cf2['apiKey'])==null?void 0x0:_0x354fb6[_0x1760e2(0x1c7)]())}),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1a6)],'content':this[_0x1760e2(0x227)]['t'](_0x1760e2(0x1f5))}),setTimeout(()=>{var _0x111272=_0x1760e2;this[_0x111272(0x15e)][_0x111272(0x15a)](R);},0x320);}catch(_0x747cab){this[_0x1760e2(0x144)]['error'](_0x1760e2(0x16b),_0x747cab),this[_0x1760e2(0x17d)][_0x1760e2(0x142)]({'type':_0x56cfda[_0x1760e2(0x1f3)],'content':this[_0x1760e2(0x227)]['t']('mcpConfig.configError')});}finally{this[_0x1760e2(0x1ff)]['next'](!0x1);}}),(this[_0x1eb58a(0x1ef)]=_0x445c3a,this['_uiPartsService']=_0x4d3dba,this['_configService']=_0x59d59b,this[_0x1eb58a(0x235)]=_0x1e7d25,this['_dialogService']=_0x36968f,this[_0x1eb58a(0x17d)]=_0x33c462,this[_0x1eb58a(0x221)]=_0x403ccc,this['_localeService']=_0x4f6a2f,this[_0x1eb58a(0x144)]=_0x6da05,this[_0x1eb58a(0xfe)]=_0x1faf22,this['_initConfigSync'](),this[_0x1eb58a(0x135)](),this[_0x1eb58a(0x1ed)]());}['showConfigPanel'](){var _0x12459d=_0x22d713;this[_0x12459d(0x15e)][_0x12459d(0x148)]({'id':R,'title':{'title':this[_0x12459d(0x227)]['t'](_0x12459d(0x23f))},'children':{'label':_0x12459d(0x14e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x3a1b61=_0x12459d;this[_0x3a1b61(0x15e)][_0x3a1b61(0x15a)](R);}});}['getCurrentConfig'](){var _0x2cbeaa=_0x22d713;return this[_0x2cbeaa(0x20d)][_0x2cbeaa(0x130)];}[_0x22d713(0x1ed)](){var _0x4e1fae=_0x22d713;this[_0x4e1fae(0x12b)](this[_0x4e1fae(0x221)]['register'](_0x4e1fae(0x14e),this[_0x4e1fae(0x1aa)]()));}['_createConfigPanelComponent'](){var _0x5eb771=_0x22d713;return _0x3bce22(()=>{var _0x35a205=_0x4df3,_0x2e9520,_0x5e090f,_0x263a4b;return _0x332e26(tn,{'config':this['_config$'][_0x35a205(0x130)],'mcpCoreConfig':this[_0x35a205(0x20d)][_0x35a205(0x130)],'currentApiKey$':this[_0x35a205(0x14f)],'onSave':this[_0x35a205(0x216)],'loading':this[_0x35a205(0x1ff)][_0x35a205(0x130)],'connectionStatus$':(_0x2e9520=this['_mcpConnectionController'])==null?void 0x0:_0x2e9520[_0x35a205(0x19b)],'connectionError$':(_0x5e090f=this['_mcpConnectionController'])==null?void 0x0:_0x5e090f['connectionError$'],'currentSessionId$':(_0x263a4b=this[_0x35a205(0xfe)])==null?void 0x0:_0x263a4b[_0x35a205(0x1b6)]});},this[_0x5eb771(0x1ef)]);}['_initConfigSync'](){var _0x24699a=_0x22d713;this[_0x24699a(0x12b)](this[_0x24699a(0x10b)]['subscribeConfigValue$'](_0x1b4990)['subscribe'](_0x578cde=>{var _0x40f0a9=_0x24699a;this['_mcpCoreConfig$'][_0x40f0a9(0x239)](_0x578cde||{});}));const _0x4b2f96=this[_0x24699a(0x10b)]['getConfig'](_0x1b4990);this['_mcpCoreConfig$'][_0x24699a(0x239)](_0x4b2f96||{}),this[_0x24699a(0x12b)](this[_0x24699a(0x10b)][_0x24699a(0x205)](L)['subscribe'](_0x49315c=>{var _0x2c6a4c=_0x24699a;this[_0x2c6a4c(0x123)][_0x2c6a4c(0x239)](_0x49315c||{});}));const _0x5ecd29=this['_configService']['getConfig'](L);this[_0x24699a(0x123)]['next'](_0x5ecd29||{});}async[_0x22d713(0x135)](){var _0x849283=_0x22d713;const _0x533eb6=await this[_0x849283(0x235)][_0x849283(0x173)](T);_0x533eb6&&(this[_0x849283(0xfe)][_0x849283(0x1d6)]({'Authorization':_0x849283(0x14d)+_0x533eb6}),this['_apiKey$'][_0x849283(0x239)](_0x533eb6));}async['_validateConfig'](_0x3fb86a){var _0x51ab7d=_0x22d713;if(!_0x3fb86a[_0x51ab7d(0x193)]||_0x3fb86a[_0x51ab7d(0x193)]['trim']()[_0x51ab7d(0x149)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x1de))};if(_0x3fb86a[_0x51ab7d(0x193)][_0x51ab7d(0x1c7)]()[_0x51ab7d(0x149)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51ab7d(0x227)]['t'](_0x51ab7d(0x17f))};try{const _0x426b18=await this[_0x51ab7d(0x1ef)][_0x51ab7d(0x1f4)](_0x2ef2f2)['validateApiKey'](_0x3fb86a['apiKey'][_0x51ab7d(0x1c7)]());return _0x426b18[_0x51ab7d(0x122)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x426b18[_0x51ab7d(0x168)]||this[_0x51ab7d(0x227)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x1c92b1){return console[_0x51ab7d(0x132)](_0x51ab7d(0x133),_0x1c92b1),{'isValid':!0x0};}}};I=sn([f(0x0,_0x5486a6(_0x5d75c5)),f(0x1,_0x54649f),f(0x2,_0x16026c),f(0x3,_0x258048),f(0x4,_0x15efba),f(0x5,_0x88141c),f(0x6,_0x5486a6(_0x5a35e1)),f(0x7,_0x5486a6(_0x309e63)),f(0x8,_0xce7fb5),f(0x9,_0x5486a6(_0x2ef2f2))],I);const B={'id':_0x22d713(0x13c),'type':_0xdb8b8d[_0x22d713(0x138)],'handler':async(_0x2da2ba,_0x8a0e7e)=>(_0x2da2ba[_0x22d713(0x1f4)](I)[_0x22d713(0x118)](),!0x0)};function pe(_0x6496a1,_0x9e76e3){var _0x56a48a=_0x22d713;switch(_0x6496a1){case _0x16277f[_0x56a48a(0x187)]:return _0x56a48a(0x201);case _0x16277f[_0x56a48a(0x104)]:return'mcpStatus.connecting';case _0x16277f[_0x56a48a(0x10a)]:return'mcpStatus.connected';case _0x16277f[_0x56a48a(0xff)]:switch(_0x9e76e3){case _0x440842[_0x56a48a(0x21b)]:return _0x56a48a(0x162);case _0x440842[_0x56a48a(0x1b3)]:return _0x56a48a(0x12c);case _0x440842[_0x56a48a(0xfb)]:return _0x56a48a(0xe6);case _0x440842[_0x56a48a(0xe3)]:return _0x56a48a(0x219);default:return _0x56a48a(0x1da);}case _0x16277f[_0x56a48a(0x146)]:return _0x56a48a(0x16f);default:return _0x56a48a(0x22e);}}function cn(_0x15c599,_0x49e3de,_0x39a6f5){var _0x62e1d2=_0x22d713;const _0x3a327c=pe(_0x15c599,_0x49e3de),_0x5644d3=_0x39a6f5['t'](_0x3a327c);return _0x15c599===_0x16277f[_0x62e1d2(0x187)]&&_0x49e3de===_0x440842[_0x62e1d2(0x21b)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x1c8)):_0x15c599===_0x16277f[_0x62e1d2(0x10a)]?''+_0x5644d3:_0x15c599===_0x16277f[_0x62e1d2(0x187)]||_0x15c599===_0x16277f[_0x62e1d2(0xff)]?_0x5644d3+_0x62e1d2(0x1e0)+_0x39a6f5['t'](_0x62e1d2(0x202)):_0x5644d3;}function an(_0x17a50c){var _0x32480a=_0x22d713;switch(_0x17a50c){case _0x16277f['CONNECTED']:return _0x32480a(0xec);case _0x16277f[_0x32480a(0x104)]:case _0x16277f[_0x32480a(0x146)]:return'univer-text-yellow-500';case _0x16277f[_0x32480a(0xff)]:case _0x16277f[_0x32480a(0x187)]:return _0x32480a(0x1c3);default:return _0x32480a(0xf7);}}function ln(_0x49b12a){var _0x455299=_0x22d713;const {status$:_0x67d4d5,error$:_0x173bed,onConfigure:_0x14d638}=_0x49b12a,_0x67294a=_0x2d20be(_0x67d4d5,_0x16277f['DISCONNECTED']),_0x145d80=_0x2d20be(_0x173bed,_0x440842['NONE']),_0x47527d=_0x1f62a6(_0x309e63),_0xc0a0b3=_0x67294a===_0x16277f[_0x455299(0x10a)],_0x2777bf=_0x67294a===_0x16277f[_0x455299(0x104)]||_0x67294a===_0x16277f[_0x455299(0x146)],_0x2341ac=_0x47527d['t'](pe(_0x67294a,_0x145d80)),_0x35cc16=cn(_0x67294a,_0x145d80,_0x47527d),_0x5684fb=an(_0x67294a),_0x1b68c6=_0xc0a0b3?_0x332e26(fe,{}):_0x332e26(ge,{}),_0x514bb0=_0x5f29f0(()=>{_0x14d638&&_0x14d638();},[_0xc0a0b3,_0x2777bf,_0x14d638]);function _0x4c772a(){var _0x5cd743=_0x455299;return _0x2f1d56('div',{'className':_0x488d88(_0x5cd743(0x150),_0x14d638&&_0x5cd743(0x154)),'onClick':_0x14d638?_0x514bb0:void 0x0,'children':[_0x332e26(_0x5cd743(0x18d),{'className':_0x488d88(_0x5cd743(0xef),_0x5684fb),'children':_0x1b68c6}),_0x332e26('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2341ac})]});}return _0x332e26(_0x635f0f,{'title':_0x35cc16,'placement':_0x455299(0x19a),'children':_0x4c772a()});}var un=Object[_0x22d713(0x15c)],vn=(_0x22fd26,_0x5bb04e,_0xd6753a,_0x2f7629)=>{var _0x1b5023=_0x22d713;for(var _0x48974a=_0x2f7629>0x1?void 0x0:_0x2f7629?un(_0x5bb04e,_0xd6753a):_0x5bb04e,_0x3f9001=_0x22fd26[_0x1b5023(0x149)]-0x1,_0x4485a0;_0x3f9001>=0x0;_0x3f9001--)(_0x4485a0=_0x22fd26[_0x3f9001])&&(_0x48974a=_0x4485a0(_0x48974a)||_0x48974a);return _0x48974a;},j=(_0x4ffacf,_0x3523aa)=>(_0x3c322f,_0x4afe74)=>_0x3523aa(_0x3c322f,_0x4afe74,_0x4ffacf);let A=class extends _0x17e4fc{constructor(_0x140485,_0x141d6d,_0x575020){var _0x4432b6=_0x22d713;super(),this[_0x4432b6(0x1ef)]=_0x140485,this[_0x4432b6(0x1ee)]=_0x141d6d,this[_0x4432b6(0x157)]=_0x575020,this[_0x4432b6(0x1ee)]['enableAutoConnect']=!0x1,this[_0x4432b6(0x175)]();}[_0x22d713(0x175)](){var _0x21dedc=_0x22d713;this['disposeWithMe'](this[_0x21dedc(0x157)]['registerComponent'](_0x4a1c81[_0x21dedc(0x16a)],()=>_0x3bce22(dn({'status$':this[_0x21dedc(0x1ee)]['connectionStatus$'],'error$':this[_0x21dedc(0x1ee)]['connectionError$'],'onConfigure':()=>this[_0x21dedc(0x1b8)]()}),this[_0x21dedc(0x1ef)])));}[_0x22d713(0x1b8)](){var _0x1a8485=_0x22d713;this['_injector'][_0x1a8485(0x1f4)](I)[_0x1a8485(0x118)]();}};A=vn([j(0x0,_0x5486a6(_0x5d75c5)),j(0x1,_0x5486a6(_0x2ef2f2)),j(0x2,_0x54649f)],A);function dn(_0x3a8f2c){const {status$:_0x5241ac,error$:_0x5d9999,onConfigure:_0x5f03cd}=_0x3a8f2c;return function(){return _0x332e26(ln,{'status$':_0x5241ac,'error$':_0x5d9999,'onConfigure':_0x5f03cd});};}function gn(_0x230136){var _0x172fc6=_0x22d713;return{'id':B['id'],'type':_0x552e1b[_0x172fc6(0x1ea)],'icon':_0x172fc6(0x121),'title':'mcpConfig.title','tooltip':_0x172fc6(0x23f)};}const fn={[_0x107585[_0x22d713(0xf0)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x22d713(0x15c)],mn=(_0x253fd6,_0x4268c5,_0x4e9227,_0x54f4e2)=>{var _0x1a781b=_0x22d713;for(var _0x13871f=_0x54f4e2>0x1?void 0x0:_0x54f4e2?pn(_0x4268c5,_0x4e9227):_0x4268c5,_0x22d216=_0x253fd6[_0x1a781b(0x149)]-0x1,_0x3ddf3f;_0x22d216>=0x0;_0x22d216--)(_0x3ddf3f=_0x253fd6[_0x22d216])&&(_0x13871f=_0x3ddf3f(_0x13871f)||_0x13871f);return _0x13871f;},re=(_0x2a7fef,_0x20586a)=>(_0x204ced,_0x5bd5b1)=>_0x20586a(_0x204ced,_0x5bd5b1,_0x2a7fef);let M=class extends _0x17e4fc{constructor(_0x29e3d3,_0x445ec8){var _0x29a40a=_0x22d713;super(),this[_0x29a40a(0x212)]=_0x29e3d3,this['_menuManagerService']=_0x445ec8,this[_0x29a40a(0x159)](),this[_0x29a40a(0x16e)]();}[_0x22d713(0x159)](){var _0x10bfb1=_0x22d713;[B][_0x10bfb1(0x1bf)](_0x311375=>{var _0x4975b8=_0x10bfb1;this[_0x4975b8(0x12b)](this[_0x4975b8(0x212)][_0x4975b8(0x1fd)](_0x311375));});}['_initializeMenus'](){var _0x56aa3f=_0x22d713;this[_0x56aa3f(0x15d)][_0x56aa3f(0x21f)](fn);}};function _0x4df3(_0x43acb0,_0x157c3d){var _0x538290=_0x5382();return _0x4df3=function(_0x4df3cc,_0x26cc37){_0x4df3cc=_0x4df3cc-0xe2;var _0x464b9b=_0x538290[_0x4df3cc];return _0x464b9b;},_0x4df3(_0x43acb0,_0x157c3d);}M=mn([re(0x0,_0xf27dd3),re(0x1,_0x2d5339)],M);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x22d713(0x10e),'connected':_0x22d713(0x215),'failed':_0x22d713(0x208),'retrying':_0x22d713(0x1cc),'unknown':_0x22d713(0x22b),'missingApiKey':_0x22d713(0x1e3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x22d713(0x163),'networkError':_0x22d713(0x1bc),'maxRetriesExceeded':_0x22d713(0x1d5),'clickToConnect':_0x22d713(0x213),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x22d713(0x181),'description':_0x22d713(0x1dd),'apiKey':_0x22d713(0x17e),'apiKeyPlaceholder':_0x22d713(0x145),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x22d713(0x169),'connectionInfo':_0x22d713(0x128),'mcpClientConfig':_0x22d713(0x128),'configInstructions':_0x22d713(0x17c),'configStepTitle':_0x22d713(0x22a),'configStep1':_0x22d713(0x178),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22d713(0x126),'sessionId':_0x22d713(0x197),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x22d713(0x191),'configParameters':_0x22d713(0x206),'maxRetries':_0x22d713(0x194),'save':_0x22d713(0x176),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x22d713(0x11a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x22d713(0x207),'apiApplyInfo':{'title':_0x22d713(0x18c),'description':_0x22d713(0x220),'univerAiLabel':_0x22d713(0xf4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x22d713(0xf6),'apiKeyTooShort':_0x22d713(0x1a2),'invalidConfig':_0x22d713(0x161),'invalidApiKey':_0x22d713(0x23d)},'connectionStatus':{'disconnected':_0x22d713(0x112),'connecting':_0x22d713(0xe2),'connected':_0x22d713(0x177),'failed':_0x22d713(0x1a1),'retrying':_0x22d713(0x242)},'connectionError':{'missingApiKey':_0x22d713(0x223),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x22d713(0xea),'networkError':_0x22d713(0x136),'maxRetriesExceeded':_0x22d713(0x152)}}},kn={'mcpStatus':{'disconnected':_0x22d713(0x179),'connecting':'MCP\x20连接中...','connected':_0x22d713(0x1a3),'failed':_0x22d713(0x1ce),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','missingApiKey':_0x22d713(0x134),'invalidApiKey':_0x22d713(0xf1),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x22d713(0x13d),'maxRetriesExceeded':_0x22d713(0x203),'clickToConnect':_0x22d713(0x1d0),'clickToConfigure':_0x22d713(0x171)},'mcpConfig':{'title':_0x22d713(0x17b),'description':_0x22d713(0x1ca),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x22d713(0xfd),'enableAuth':_0x22d713(0x113),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x22d713(0x119),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x22d713(0x196),'configStepTitle':_0x22d713(0x109),'configStep1':_0x22d713(0x1d9),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x22d713(0x16d),'sessionId':_0x22d713(0x19f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x22d713(0x236),'configParameters':_0x22d713(0x125),'maxRetries':_0x22d713(0x140),'save':_0x22d713(0x14b),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x22d713(0x151),'configError':_0x22d713(0x1e2),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x22d713(0xf5),'univerAiLabel':_0x22d713(0x1ab),'getStarted':_0x22d713(0x111)},'validation':{'apiKeyRequired':_0x22d713(0x129),'apiKeyTooShort':_0x22d713(0x182),'invalidConfig':'配置无效','invalidApiKey':_0x22d713(0x1c4)},'connectionStatus':{'disconnected':_0x22d713(0x233),'connecting':_0x22d713(0x1e4),'connected':_0x22d713(0x1c0),'failed':_0x22d713(0x192),'retrying':_0x22d713(0x1cb)},'connectionError':{'missingApiKey':_0x22d713(0x23a),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x22d713(0x14c),'networkError':_0x22d713(0x103),'maxRetriesExceeded':_0x22d713(0x120)}}};function _0x5382(){var _0x4a6909=['_configService','mcpConfig.apiKeyHint','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','MCP\x20Connecting...','UniverIcon','univer_session_id:','几秒钟内获取您的\x20API\x20密钥','Disconnected','启用身份验证','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','CloseSmallSingle','12UvdIBn','has','showConfigPanel','MCP\x20客户端配置','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6tXrWhe','errorMessage','hasOwnProperty','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','pluginName','超出最大重试次数,请稍后再试','MenuIcon','isValid','_config$','mcpConfig.configInstructions','配置参数:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.apiApplyInfo.description','MCP\x20Client\x20Configuration','API\x20密钥不能为空','idSuffix','disposeWithMe','mcpStatus.sessionOccupied','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.apiKey','removeItem','value','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','warn','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP:\x20缺少\x20API\x20密钥','_loadStoredApiKey','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.connectionError.maxRetriesExceeded','COMMAND','xlink:href','8JbXTKk','univer-min-w-0\x20univer-flex-1','mcp-ui.command.openConfigPanel','MCP:\x20网络错误','mcpConfig.save','onStarting','最大重试次数','icon','show','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_logService','Enter\x20your\x20API\x20key','RETRYING','mcpConfig.configStepTitle','open','length','toString','保存配置','会话当前被占用,请稍后再试','Bearer\x20','MCPConfigPanel','_apiKey$','univer-flex\x20univer-cursor-pointer\x20univer-items-center','配置保存成功','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','assign','hover:univer-opacity-80','mcpConfig.configStep1','off','_uiPartsService','svg','_initializeCommands','close','text','getOwnPropertyDescriptor','_menuManagerService','_dialogService','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex-shrink-0\x20univer-text-blue-500','Invalid\x20configuration','mcpStatus.invalidApiKey','MCP:\x20Session\x20Occupied','univer-text-xs\x20univer-text-gray-500','NONE','concat','18puXCEW','error','Enable\x20authentication\x20for\x20secure\x20connections','HEADER_MENU','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','extend','重启您的\x20MCP\x20客户端以使配置生效','_initializeMenus','mcpStatus.retrying','off-line-icon_clip0_910_343','点击配置\x20MCP','white','getItem','label','_initStatusComponent','Save\x20Configuration','Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20已断开','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','MCP\x20配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_messageService','API\x20Key','mcpConfig.validation.apiKeyTooShort','mcpConfig.note1','MCP\x20Configuration','API\x20密钥长度至少需要\x2010\x20位','OffLineIcon','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','2281013FUtAFJ','call','DISCONNECTED','children','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Configuration\x20Notes:','univer-space-y-2','What\x20is\x20API\x20Key?','div','off-line-icon','url(#on-line-icon_clip0_910_349)','mcpConfig.saving','API\x20key\x20with\x20Bearer\x20prefix.','连接失败','apiKey','Max\x20Retries','showDeveloperTools','将以下配置添加到您的\x20MCP\x20客户端设置中:','Session\x20ID','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.disconnected','bottom','connectionStatus$','className','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.sessionOccupied','会话ID','668200rELFFs','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20已连接','indexOf','string','Success','none','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','M5.21243\x2012.287L11.8791\x205.62036','_createConfigPanelComponent','Univer\x20AI\x20控制台','11lmeUPi','mcpConfig.apiApplyInfo.univerAiLabel','_config','https://console.univer.plus','univer.ai','prototype','0\x200\x2017\x2016','SESSION_ID_OCCUPIED','mcp-config-dialog','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sessionId$','current','_handleConfigure','mcpConfig.connectionError.networkError','substring','includes','MCP:\x20Network\x20Error','push','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','forEach','已连接','mcpConfig.description','univer-flex-1','univer-text-red-500','API\x20密钥无效,请检查密钥是否正确','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','attrs','trim','mcpStatus.clickToConfigure','close-small-single','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重连中...','MCP\x20Retrying...','univer-space-y-4','MCP\x20连接失败','noopener\x20noreferrer','点击连接\x20MCP','univer-space-y-3','univer.plus','colorChannel1','478012tHZqDS','MCP:\x20Max\x20Retries\x20Exceeded','__setCustomHeaders','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','CheckMarkIcon','复制以下\x20JSON\x20配置','mcpStatus.failed','on-line-icon','add','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.validation.apiKeyRequired','entries','\x20-\x20','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','配置保存失败','MCP:\x20API\x20Key\x20Missing','连接中...','clipPath','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_validateConfig','univer-bg-red-500','mcpConfig.authorizationDescription','BUTTON','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','tag','_registerComponent','_connectionController','_injector','univer-font-medium','323766cFrVeZ','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Error','get','mcpConfig.configSaved','random','on-line-icon_clip0_910_349','univer-flex\x20univer-items-start\x20univer-gap-3','defIds','path','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-flex\x20univer-items-center\x20univer-gap-3','registerCommand','round','_loading$','M0\x200H16V16H0z','mcpStatus.disconnected','mcpStatus.clickToConnect','MCP:\x20超出最大重试次数','mcpConfig.validation.invalidConfig','subscribeConfigValue$','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','pre','apply','getOwnPropertySymbols','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','function','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.configStep3','mcpConfig.apiApplyInfo.getStarted','_commandService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20Connected','_handleConfigSave','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','723610SihMyY','mcpStatus.maxRetriesExceeded','http://www.w3.org/2000/svg','INVALID_API_KEY','mcpConfig.connectionStatus.connected','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP_UI_PLUGIN','mergeMenu','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_componentManager','_blank','API\x20key\x20is\x20required\x20to\x20connect','univer-flex\x20univer-items-start\x20univer-gap-2','HelpSingle','univer-text-gray-400','_localeService','javascript:void(0)','1em','Configuration\x20Steps:','MCP\x20Unknown\x20Status','replace','univer-space-y-5','mcpStatus.unknown','OnLineIcon','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','15728856vJjeuZ','span','未连接','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_localStorageService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.note2','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','next','需要\x20API\x20密钥才能连接','mcpConfig.configParameters','url(#$1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2567195YGJNAe','mcpConfig.title','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','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','Retrying...','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','fill','Connecting...','MAX_RETRIES_EXCEEDED','mcpConfig.apiApplyInfo.title','mcp.apiKey','mcpStatus.networkError','univer-text-white','currentColor','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','mask','univer-text-green-500','evenodd','setConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','OTHERS','MCP:\x20无效的\x20API\x20密钥','mcpConfig.configStep2','mcp-ui.config','Univer\x20AI\x20Console','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20key\x20is\x20required','univer-text-gray-500','mcpServerUrl','defs','0\x200\x2016\x2016','NETWORK_ERROR','map','您的\x20API\x20密钥将在此浏览器中本地存储','_mcpConnectionController','FAILED','https://console.univer.ai','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','网络连接错误,请检查您的网络连接','CONNECTING','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.connectionStatus.retrying','displayName','配置步骤:','CONNECTED'];_0x5382=function(){return _0x4a6909;};return _0x5382();}var hn=Object[_0x22d713(0x102)],Cn=Object[_0x22d713(0x15c)],yn=(_0x8f05dd,_0x308ada,_0x294263)=>_0x308ada in _0x8f05dd?hn(_0x8f05dd,_0x308ada,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294263}):_0x8f05dd[_0x308ada]=_0x294263,_n=(_0xe96f78,_0x3a9aa3,_0x3f8b3c,_0x4eb6ad)=>{for(var _0x7fe21f=_0x4eb6ad>0x1?void 0x0:_0x4eb6ad?Cn(_0x3a9aa3,_0x3f8b3c):_0x3a9aa3,_0x4070f7=_0xe96f78['length']-0x1,_0x36912a;_0x4070f7>=0x0;_0x4070f7--)(_0x36912a=_0xe96f78[_0x4070f7])&&(_0x7fe21f=_0x36912a(_0x7fe21f)||_0x7fe21f);return _0x7fe21f;},E=(_0x3e786f,_0x28b3c7)=>(_0x4f4191,_0x1145a7)=>_0x28b3c7(_0x4f4191,_0x1145a7,_0x3e786f),xn=(_0xc71a0b,_0x3fc73c,_0x25656d)=>yn(_0xc71a0b,_0x3fc73c+'',_0x25656d);let U=class extends _0x108c6d{constructor(_0x1da913=ie,_0x567774,_0x1ac645,_0xae5cbd,_0x43ed19,_0xef53c0){var _0x17284b=_0x22d713;super(),this[_0x17284b(0x1ae)]=_0x1da913,this[_0x17284b(0x1ef)]=_0x567774,this[_0x17284b(0x10b)]=_0x1ac645,this[_0x17284b(0x157)]=_0xae5cbd,this[_0x17284b(0x235)]=_0x43ed19,this[_0x17284b(0x227)]=_0xef53c0;const {..._0x13a141}=_0x283cca({},ie,this[_0x17284b(0x1ae)]);this[_0x17284b(0x10b)][_0x17284b(0xee)](L,_0x13a141);}async[_0x22d713(0x13f)](){var _0x14c3e1=_0x22d713;const _0x593bca=[[A],[I],[M]];this[_0x14c3e1(0x1ef)][_0x14c3e1(0x117)](_0x36dc6d)||_0x593bca[_0x14c3e1(0x1bd)]([_0x36dc6d,{'useClass':_0x3278f7}]),_0x593bca['forEach'](_0x47d18e=>this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1dc)](_0x47d18e)),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](A),this[_0x14c3e1(0x1ef)][_0x14c3e1(0x1f4)](I),this[_0x14c3e1(0x1ef)]['get'](M);}};xn(U,_0x22d713(0x11f),_0x22d713(0x21e)),U=_n([_0x390f57(_0x980bdf),E(0x1,_0x5486a6(_0x5d75c5)),E(0x2,_0x16026c),E(0x3,_0x54649f),E(0x4,_0x258048),E(0x5,_0x5486a6(_0x309e63))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3bd1(_0x2ec5d9,_0x38524e){const _0x1e9824=_0x1e98();return _0x3bd1=function(_0x3bd1fa,_0x43eb96){_0x3bd1fa=_0x3bd1fa-0x1e4;let _0x15f480=_0x1e9824[_0x3bd1fa];return _0x15f480;},_0x3bd1(_0x2ec5d9,_0x38524e);}const _0x38ea03=_0x3bd1;(function(_0x341a06,_0x4dcdfe){const _0x4b812f=_0x3bd1,_0x163078=_0x341a06();while(!![]){try{const _0x1ca35c=-parseInt(_0x4b812f(0x1f5))/0x1+-parseInt(_0x4b812f(0x213))/0x2*(-parseInt(_0x4b812f(0x1fb))/0x3)+parseInt(_0x4b812f(0x1ea))/0x4*(-parseInt(_0x4b812f(0x1e7))/0x5)+parseInt(_0x4b812f(0x202))/0x6*(-parseInt(_0x4b812f(0x1f4))/0x7)+parseInt(_0x4b812f(0x1ee))/0x8+parseInt(_0x4b812f(0x20a))/0x9+-parseInt(_0x4b812f(0x20d))/0xa*(-parseInt(_0x4b812f(0x1ed))/0xb);if(_0x1ca35c===_0x4dcdfe)break;else _0x163078['push'](_0x163078['shift']());}catch(_0x456faf){_0x163078['push'](_0x163078['shift']());}}}(_0x1e98,0x67969));function _0x1e98(){const _0x2a218d=['Invalid\x20configuration','211189wstuiE','4319440sgzcmk','Configuration\x20saved\x20successfully','Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enter\x20your\x20API\x20key','MCP:\x20API\x20Key\x20Missing','28PGpJyA','654708YzWkpD','Session\x20ID','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Connection\x20Failed','11037srMmcs','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connecting...','Saving...','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','106584VEDGDO','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','6591051wFtCUZ','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','70pRopsZ','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Enable\x20Authentication','Click\x20to\x20connect\x20MCP','118xHhBPo','Disconnected','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','7355bzcvcL','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1288OrwERJ','MCP:\x20Invalid\x20API\x20Key'];_0x1e98=function(){return _0x2a218d;};return _0x1e98();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x38ea03(0x1fd),'connected':'MCP\x20Connected','failed':_0x38ea03(0x215),'retrying':'MCP\x20Retrying...','unknown':_0x38ea03(0x210),'missingApiKey':_0x38ea03(0x1f3),'invalidApiKey':_0x38ea03(0x1eb),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x38ea03(0x1f7),'maxRetriesExceeded':_0x38ea03(0x1e8),'clickToConnect':_0x38ea03(0x212),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x38ea03(0x208),'apiKey':_0x38ea03(0x203),'apiKeyPlaceholder':_0x38ea03(0x1f2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x38ea03(0x211),'enableAuthHint':_0x38ea03(0x20c),'connectionInfo':_0x38ea03(0x1f9),'mcpClientConfig':_0x38ea03(0x1f9),'configInstructions':_0x38ea03(0x20f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x38ea03(0x1e5),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x38ea03(0x204),'sessionId':_0x38ea03(0x1f6),'sessionIdDescription':_0x38ea03(0x1e4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x38ea03(0x1ff),'maxRetries':_0x38ea03(0x20e),'save':'Save\x20Configuration','saving':_0x38ea03(0x1fe),'note1':_0x38ea03(0x206),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x38ea03(0x1ef),'configError':_0x38ea03(0x209),'apiApplyInfo':{'title':_0x38ea03(0x200),'description':_0x38ea03(0x1fc),'univerAiLabel':_0x38ea03(0x1f8),'getStarted':_0x38ea03(0x207)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x38ea03(0x1f1),'invalidConfig':_0x38ea03(0x1ec),'invalidApiKey':_0x38ea03(0x201)},'connectionStatus':{'disconnected':_0x38ea03(0x214),'connecting':'Connecting...','connected':_0x38ea03(0x1f0),'failed':_0x38ea03(0x1fa),'retrying':_0x38ea03(0x20b)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x38ea03(0x205),'sessionOccupied':_0x38ea03(0x1e6),'networkError':_0x38ea03(0x1e9),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2adb00=_0x72be;function _0x72be(_0x132b19,_0x3849d0){const _0x79f7c2=_0x79f7();return _0x72be=function(_0x72bea7,_0x2b87a0){_0x72bea7=_0x72bea7-0xb1;let _0x5b0763=_0x79f7c2[_0x72bea7];return _0x5b0763;},_0x72be(_0x132b19,_0x3849d0);}(function(_0x1330ce,_0x2e7a61){const _0xca9544=_0x72be,_0x400663=_0x1330ce();while(!![]){try{const _0x103218=parseInt(_0xca9544(0xb6))/0x1+-parseInt(_0xca9544(0xcd))/0x2*(parseInt(_0xca9544(0xc2))/0x3)+-parseInt(_0xca9544(0xcc))/0x4*(parseInt(_0xca9544(0xb4))/0x5)+parseInt(_0xca9544(0xce))/0x6+-parseInt(_0xca9544(0xd1))/0x7+parseInt(_0xca9544(0xd3))/0x8+parseInt(_0xca9544(0xd5))/0x9;if(_0x103218===_0x2e7a61)break;else _0x400663['push'](_0x400663['shift']());}catch(_0x451633){_0x400663['push'](_0x400663['shift']());}}}(_0x79f7,0xa6fd8));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2adb00(0xc6),'connected':_0x2adb00(0xc8),'failed':_0x2adb00(0xc4),'retrying':_0x2adb00(0xe4),'unknown':_0x2adb00(0xbc),'missingApiKey':_0x2adb00(0xdb),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x2adb00(0xdc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2adb00(0xd6),'clickToConnect':_0x2adb00(0xbd),'clickToConfigure':_0x2adb00(0xe3)},'mcpConfig':{'title':_0x2adb00(0xd8),'description':_0x2adb00(0xe0),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2adb00(0xbb),'apiKeyHint':_0x2adb00(0xda),'enableAuth':_0x2adb00(0xc3),'enableAuthHint':_0x2adb00(0xe2),'connectionInfo':_0x2adb00(0xd7),'mcpClientConfig':_0x2adb00(0xd7),'configInstructions':_0x2adb00(0xde),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2adb00(0xd9),'configStep2':_0x2adb00(0xc0),'configStep3':_0x2adb00(0xc7),'sessionId':_0x2adb00(0xdf),'sessionIdDescription':_0x2adb00(0xc5),'authorizationDescription':_0x2adb00(0xcf),'configParameters':_0x2adb00(0xd4),'maxRetries':_0x2adb00(0xb3),'save':_0x2adb00(0xb2),'saving':'Saving...','note1':_0x2adb00(0xe1),'note2':_0x2adb00(0xbf),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2adb00(0xbe),'apiApplyInfo':{'title':_0x2adb00(0xb9),'description':_0x2adb00(0xba),'univerAiLabel':_0x2adb00(0xb1),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2adb00(0xb5),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2adb00(0xdd),'invalidApiKey':_0x2adb00(0xb7)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x2adb00(0xd2),'failed':_0x2adb00(0xc9),'retrying':_0x2adb00(0xd0)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x2adb00(0xb8),'sessionOccupied':_0x2adb00(0xcb),'networkError':_0x2adb00(0xca),'maxRetriesExceeded':_0x2adb00(0xc1)}}};function _0x79f7(){const _0x115051=['MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','638536oBVhtj','373610QzlwXG','1691616fLmeFF','API\x20key\x20with\x20Bearer\x20prefix.','Retrying...','3893841ClLzwr','Connected','7865152zIyoqP','Configuration\x20Parameters:','7360371RgLEDO','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20API\x20Key\x20Missing','MCP:\x20Session\x20Occupied','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','Univer\x20AI\x20Console','Save\x20Configuration','Max\x20Retries','20KJxFoa','API\x20key\x20is\x20required','169502psHIkM','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','6buuXiE','Enable\x20Authentication','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x79f7=function(){return _0x115051;};return _0x79f7();}export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5a80(_0x273850,_0xb00f26){const _0x178f85=_0x178f();return _0x5a80=function(_0x5a805d,_0x20683f){_0x5a805d=_0x5a805d-0x121;let _0x14a835=_0x178f85[_0x5a805d];return _0x14a835;},_0x5a80(_0x273850,_0xb00f26);}const _0x3ccae4=_0x5a80;function _0x178f(){const _0x4bb4d0=['Connected','Enable\x20authentication\x20for\x20secure\x20connections','Copy\x20the\x20JSON\x20configuration\x20below','696424DizwzR','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','MCP\x20Disconnected','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','13329CFGrMm','10oiOWZH','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key','Saving...','616650lvQnIq','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20API\x20Key\x20Missing','API\x20Key','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','Retrying...','356804DlJFjt','1240110GkgIBY','164595jyKiBd','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','Connecting...','7320wfUiLE','90682WEMxlQ','MCP:\x20Invalid\x20API\x20Key','Disconnected','4NEmMbi','MCP\x20Connecting...','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','MCP:\x20Session\x20Occupied'];_0x178f=function(){return _0x4bb4d0;};return _0x178f();}(function(_0x479fee,_0x146f0d){const _0x59fa68=_0x5a80,_0xe77ea6=_0x479fee();while(!![]){try{const _0x3666cc=parseInt(_0x59fa68(0x126))/0x1*(-parseInt(_0x59fa68(0x13f))/0x2)+parseInt(_0x59fa68(0x139))/0x3*(-parseInt(_0x59fa68(0x142))/0x4)+-parseInt(_0x59fa68(0x138))/0x5+-parseInt(_0x59fa68(0x12b))/0x6+-parseInt(_0x59fa68(0x137))/0x7+parseInt(_0x59fa68(0x14a))/0x8+parseInt(_0x59fa68(0x125))/0x9*(parseInt(_0x59fa68(0x13e))/0xa);if(_0x3666cc===_0x146f0d)break;else _0xe77ea6['push'](_0xe77ea6['shift']());}catch(_0x43b18a){_0xe77ea6['push'](_0xe77ea6['shift']());}}}(_0x178f,0x3fbed));const e={'mcpStatus':{'disconnected':_0x3ccae4(0x14e),'connecting':_0x3ccae4(0x143),'connected':_0x3ccae4(0x122),'failed':'MCP\x20Connection\x20Failed','retrying':_0x3ccae4(0x14d),'unknown':_0x3ccae4(0x132),'missingApiKey':_0x3ccae4(0x12e),'invalidApiKey':_0x3ccae4(0x140),'sessionOccupied':_0x3ccae4(0x146),'networkError':_0x3ccae4(0x124),'maxRetriesExceeded':_0x3ccae4(0x153),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3ccae4(0x150),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3ccae4(0x12f),'apiKeyPlaceholder':_0x3ccae4(0x129),'apiKeyHint':_0x3ccae4(0x13b),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3ccae4(0x148),'connectionInfo':_0x3ccae4(0x144),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3ccae4(0x123),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3ccae4(0x149),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3ccae4(0x121),'sessionId':_0x3ccae4(0x130),'sessionIdDescription':_0x3ccae4(0x12d),'authorizationDescription':_0x3ccae4(0x133),'configParameters':_0x3ccae4(0x135),'maxRetries':_0x3ccae4(0x152),'save':_0x3ccae4(0x154),'saving':_0x3ccae4(0x12a),'note1':_0x3ccae4(0x14b),'note2':_0x3ccae4(0x14c),'configSaved':_0x3ccae4(0x12c),'configError':_0x3ccae4(0x134),'apiApplyInfo':{'title':_0x3ccae4(0x127),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x3ccae4(0x13c),'getStarted':_0x3ccae4(0x131)},'validation':{'apiKeyRequired':_0x3ccae4(0x145),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3ccae4(0x141),'connecting':_0x3ccae4(0x13d),'connected':_0x3ccae4(0x147),'failed':_0x3ccae4(0x13a),'retrying':_0x3ccae4(0x136)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x3ccae4(0x151),'sessionOccupied':_0x3ccae4(0x14f),'networkError':_0x3ccae4(0x128),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xd9f7(){const _0x30686c=['7XzaQQx','Session\x20ID','API\x20key\x20is\x20required\x20to\x20connect','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','3256568oWdzvs','Configuration\x20Parameters:','MCP:\x20Session\x20Occupied','Connection\x20Failed','2830392ZIgrMW','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1343745kBKSfl','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','MCP\x20Retrying...','MCP:\x20Invalid\x20API\x20Key','API\x20key\x20is\x20required','110728nOHlPy','Max\x20Retries','Enable\x20Authentication','MCP\x20Disconnected','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','1771920SfJMmF','Connecting...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','2588580aStNTu','20IzgkHw','Click\x20to\x20configure\x20MCP','MCP\x20Connected','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','Connected','MCP\x20Connecting...','Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','12sOkzMJ','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','60801gxgvvq','MCP:\x20Network\x20Error'];_0xd9f7=function(){return _0x30686c;};return _0xd9f7();}const _0x2f9a0e=_0x418c;(function(_0x58c122,_0xf87837){const _0xa6256a=_0x418c,_0x2a632e=_0x58c122();while(!![]){try{const _0x391f79=-parseInt(_0xa6256a(0x18c))/0x1*(-parseInt(_0xa6256a(0x1a5))/0x2)+-parseInt(_0xa6256a(0x1a9))/0x3*(parseInt(_0xa6256a(0x19c))/0x4)+-parseInt(_0xa6256a(0x1bb))/0x5+-parseInt(_0xa6256a(0x194))/0x6+-parseInt(_0xa6256a(0x1ab))/0x7*(-parseInt(_0xa6256a(0x1b0))/0x8)+-parseInt(_0xa6256a(0x1b4))/0x9+parseInt(_0xa6256a(0x19b))/0xa;if(_0x391f79===_0xf87837)break;else _0x2a632e['push'](_0x2a632e['shift']());}catch(_0x392b65){_0x2a632e['push'](_0x2a632e['shift']());}}}(_0xd9f7,0x558c5));function _0x418c(_0x178f41,_0x220062){const _0xd9f755=_0xd9f7();return _0x418c=function(_0x418c31,_0x5e3890){_0x418c31=_0x418c31-0x18a;let _0x551dc2=_0xd9f755[_0x418c31];return _0x551dc2;},_0x418c(_0x178f41,_0x220062);}const e={'mcpStatus':{'disconnected':_0x2f9a0e(0x18f),'connecting':_0x2f9a0e(0x1a2),'connected':_0x2f9a0e(0x19e),'failed':_0x2f9a0e(0x19f),'retrying':_0x2f9a0e(0x1be),'unknown':_0x2f9a0e(0x196),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x2f9a0e(0x18a),'sessionOccupied':_0x2f9a0e(0x1b2),'networkError':_0x2f9a0e(0x1aa),'maxRetriesExceeded':_0x2f9a0e(0x1b5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2f9a0e(0x19d)},'mcpConfig':{'title':_0x2f9a0e(0x1bd),'description':_0x2f9a0e(0x191),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2f9a0e(0x190),'apiKeyHint':_0x2f9a0e(0x1b6),'enableAuth':_0x2f9a0e(0x18e),'enableAuthHint':_0x2f9a0e(0x1b7),'connectionInfo':_0x2f9a0e(0x197),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x2f9a0e(0x1a6),'configStep2':_0x2f9a0e(0x198),'configStep3':_0x2f9a0e(0x1bc),'sessionId':_0x2f9a0e(0x1ac),'sessionIdDescription':_0x2f9a0e(0x1af),'authorizationDescription':_0x2f9a0e(0x1a0),'configParameters':_0x2f9a0e(0x1b1),'maxRetries':_0x2f9a0e(0x18d),'save':_0x2f9a0e(0x1ae),'saving':_0x2f9a0e(0x19a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2f9a0e(0x1a7),'configSaved':_0x2f9a0e(0x1b8),'configError':_0x2f9a0e(0x193),'apiApplyInfo':{'title':_0x2f9a0e(0x1b9),'description':_0x2f9a0e(0x1a4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2f9a0e(0x192)},'validation':{'apiKeyRequired':_0x2f9a0e(0x18b),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2f9a0e(0x199)},'connectionStatus':{'disconnected':_0x2f9a0e(0x1a3),'connecting':_0x2f9a0e(0x195),'connected':_0x2f9a0e(0x1a1),'failed':_0x2f9a0e(0x1b3),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x2f9a0e(0x1ad),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2f9a0e(0x1a8),'maxRetriesExceeded':_0x2f9a0e(0x1ba)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x943bb=_0x7278;function _0x3f84(){const _0xaa3560=['MCP:\x20Invalid\x20API\x20Key','165bThZcy','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Max\x20Retries','MCP:\x20Network\x20Error','MCP\x20Configuration','513934cOQOPp','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','11hcfcow','Configuration\x20saved\x20successfully','MCP:\x20Session\x20Occupied','Copy\x20the\x20JSON\x20configuration\x20below','Enter\x20your\x20API\x20key','Session\x20ID','Connected','API\x20key\x20is\x20required\x20to\x20connect','2978748aZlpoZ','32766468ADrwnl','Save\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','315qgsVkP','MCP\x20Retrying...','158360TsgzBd','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','MCP\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Connection\x20Failed','Invalid\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','336eEhMwh','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','85016RyIspN','API\x20key\x20is\x20required','884211ZWdarm','MCP\x20Connected','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','What\x20is\x20API\x20Key?','Connecting...','3HCnfVe','156972avbSpE','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20API\x20Key\x20Missing','Configuration\x20Steps:','MCP\x20Client\x20Configuration','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication'];_0x3f84=function(){return _0xaa3560;};return _0x3f84();}(function(_0x20542a,_0x15dd25){const _0x5f13b8=_0x7278,_0x5e3b0b=_0x20542a();while(!![]){try{const _0x3c342b=parseInt(_0x5f13b8(0x7b))/0x1+-parseInt(_0x5f13b8(0x91))/0x2*(parseInt(_0x5f13b8(0x80))/0x3)+-parseInt(_0x5f13b8(0x9c))/0x4+parseInt(_0x5f13b8(0x8b))/0x5*(-parseInt(_0x5f13b8(0x81))/0x6)+parseInt(_0x5f13b8(0x77))/0x7*(-parseInt(_0x5f13b8(0x79))/0x8)+-parseInt(_0x5f13b8(0xa0))/0x9*(parseInt(_0x5f13b8(0xa2))/0xa)+-parseInt(_0x5f13b8(0x94))/0xb*(-parseInt(_0x5f13b8(0x9d))/0xc);if(_0x3c342b===_0x15dd25)break;else _0x5e3b0b['push'](_0x5e3b0b['shift']());}catch(_0x4190e1){_0x5e3b0b['push'](_0x5e3b0b['shift']());}}}(_0x3f84,0xa7552));function _0x7278(_0x24e212,_0x47cc14){const _0x3f8467=_0x3f84();return _0x7278=function(_0x72789c,_0x14de44){_0x72789c=_0x72789c-0x6b;let _0xe67c5f=_0x3f8467[_0x72789c];return _0xe67c5f;},_0x7278(_0x24e212,_0x47cc14);}const e={'mcpStatus':{'disconnected':_0x943bb(0x72),'connecting':_0x943bb(0x6c),'connected':_0x943bb(0x7c),'failed':_0x943bb(0x92),'retrying':_0x943bb(0xa1),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x943bb(0x84),'invalidApiKey':_0x943bb(0x8a),'sessionOccupied':_0x943bb(0x96),'networkError':_0x943bb(0x8f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x943bb(0x73),'clickToConfigure':_0x943bb(0xa3)},'mcpConfig':{'title':_0x943bb(0x90),'description':_0x943bb(0x76),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x943bb(0x98),'apiKeyHint':_0x943bb(0x6e),'enableAuth':_0x943bb(0x89),'enableAuthHint':_0x943bb(0x9f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x943bb(0x86),'configInstructions':_0x943bb(0x6f),'configStepTitle':_0x943bb(0x85),'configStep1':_0x943bb(0x97),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x943bb(0x82),'sessionId':_0x943bb(0x99),'sessionIdDescription':_0x943bb(0x8d),'authorizationDescription':_0x943bb(0x6d),'configParameters':_0x943bb(0x93),'maxRetries':_0x943bb(0x8e),'save':_0x943bb(0x9e),'saving':'Saving...','note1':_0x943bb(0x71),'note2':_0x943bb(0x83),'configSaved':_0x943bb(0x95),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x943bb(0x7e),'description':_0x943bb(0x78),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x943bb(0x7a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x943bb(0x75),'invalidApiKey':_0x943bb(0x88)},'connectionStatus':{'disconnected':_0x943bb(0x87),'connecting':_0x943bb(0x7f),'connected':_0x943bb(0x9a),'failed':_0x943bb(0x74),'retrying':_0x943bb(0x6b)},'connectionError':{'missingApiKey':_0x943bb(0x9b),'invalidApiKey':_0x943bb(0x7d),'sessionOccupied':_0x943bb(0x8c),'networkError':_0x943bb(0x70),'maxRetriesExceeded':_0x943bb(0xa4)}}},n=e;export{n as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x550744=_0x5449;(function(_0x180a79,_0x29dedf){const _0x3109b3=_0x5449,_0x22c51d=_0x180a79();while(!![]){try{const _0x2cf8a7=parseInt(_0x3109b3(0x121))/0x1*(parseInt(_0x3109b3(0x136))/0x2)+parseInt(_0x3109b3(0x138))/0x3*(-parseInt(_0x3109b3(0x146))/0x4)+-parseInt(_0x3109b3(0x142))/0x5*(parseInt(_0x3109b3(0x12a))/0x6)+parseInt(_0x3109b3(0x141))/0x7+parseInt(_0x3109b3(0x11d))/0x8*(-parseInt(_0x3109b3(0x12f))/0x9)+-parseInt(_0x3109b3(0x143))/0xa+parseInt(_0x3109b3(0x128))/0xb;if(_0x2cf8a7===_0x29dedf)break;else _0x22c51d['push'](_0x22c51d['shift']());}catch(_0x51abdf){_0x22c51d['push'](_0x22c51d['shift']());}}}(_0xf2a2,0xbba40));function _0x5449(_0x495704,_0x5e6609){const _0xf2a2c4=_0xf2a2();return _0x5449=function(_0x5449b8,_0x18bb25){_0x5449b8=_0x5449b8-0x115;let _0x8ddcd3=_0xf2a2c4[_0x5449b8];return _0x8ddcd3;},_0x5449(_0x495704,_0x5e6609);}const e={'mcpStatus':{'disconnected':_0x550744(0x144),'connecting':_0x550744(0x124),'connected':_0x550744(0x13b),'failed':_0x550744(0x122),'retrying':_0x550744(0x11c),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x550744(0x147),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x550744(0x130),'maxRetriesExceeded':_0x550744(0x133),'clickToConnect':_0x550744(0x13c),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x550744(0x139),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x550744(0x149),'apiKeyHint':_0x550744(0x123),'enableAuth':_0x550744(0x135),'enableAuthHint':_0x550744(0x11a),'connectionInfo':_0x550744(0x126),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x550744(0x119),'configStepTitle':_0x550744(0x134),'configStep1':_0x550744(0x12b),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x550744(0x13a),'sessionIdDescription':_0x550744(0x13e),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x550744(0x11e),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x550744(0x118),'note1':_0x550744(0x131),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x550744(0x115),'configError':_0x550744(0x11b),'apiApplyInfo':{'title':_0x550744(0x11f),'description':_0x550744(0x129),'univerAiLabel':_0x550744(0x140),'getStarted':_0x550744(0x120)},'validation':{'apiKeyRequired':_0x550744(0x127),'apiKeyTooShort':_0x550744(0x116),'invalidConfig':_0x550744(0x125),'invalidApiKey':_0x550744(0x12d)},'connectionStatus':{'disconnected':_0x550744(0x13f),'connecting':_0x550744(0x145),'connected':_0x550744(0x148),'failed':_0x550744(0x12e),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x550744(0x13d),'invalidApiKey':_0x550744(0x137),'sessionOccupied':_0x550744(0x117),'networkError':_0x550744(0x132),'maxRetriesExceeded':_0x550744(0x12c)}}},n=e;export{n as default};function _0xf2a2(){const _0x423d23=['MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','Enable\x20Authentication','280IwAhrl','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','1533087YHYkMn','MCP\x20Configuration','Session\x20ID','MCP\x20Connected','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required\x20to\x20connect','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','Univer\x20AI\x20Console','1722042NEPeOA','1342520qBxGxa','399510GQXXgQ','MCP\x20Disconnected','Connecting...','4MDxoEG','MCP:\x20API\x20Key\x20Missing','Connected','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','81392tVLesu','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','1383PXFrzz','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Invalid\x20configuration','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','30826048vtiCwE','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','30WlYxmm','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','513pqfcdE'];_0xf2a2=function(){return _0x423d23;};return _0xf2a2();}
|