@univerjs-pro/mcp-ui 0.10.13-nightly.202510290902 → 0.10.14-nightly.202511031023
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.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/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 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5f14e5=_0x1d93;(function(_0x234a7b,_0x106ccc){const _0x5e01e7=_0x1d93,_0x324320=_0x234a7b();while(!![]){try{const _0x248890=parseInt(_0x5e01e7(0x1f3))/0x1*(-parseInt(_0x5e01e7(0x220))/0x2)+parseInt(_0x5e01e7(0x20a))/0x3+parseInt(_0x5e01e7(0x2eb))/0x4*(parseInt(_0x5e01e7(0x2d7))/0x5)+parseInt(_0x5e01e7(0x2d5))/0x6*(-parseInt(_0x5e01e7(0x336))/0x7)+parseInt(_0x5e01e7(0x202))/0x8+-parseInt(_0x5e01e7(0x2ec))/0x9+-parseInt(_0x5e01e7(0x29d))/0xa;if(_0x248890===_0x106ccc)break;else _0x324320['push'](_0x324320['shift']());}catch(_0x34d07f){_0x324320['push'](_0x324320['shift']());}}}(_0xbf3a,0xdc644));function _0xbf3a(){const _0x5af8cc=['tag','close-icon','defs','Enable\x20authentication\x20for\x20secure\x20connections','Error','点击连接\x20MCP','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','mcpConfig.description','mcpConfig.title','_initializeCommands','BuiltInUIPart','_config$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','配置保存失败','enUS','_uiPartsService','Authorization:','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','connectInjector','会话\x20ID\x20已被占用,请稍后再试','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_localeService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-size-2\x20univer-rounded-full','__setCustomHeaders','mcpStatus.disconnected','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initStatusComponent','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','connectionError$','_initConfigSync','1799371pBVGMS','url(#on-line-icon_clip0_910_349)','CONNECTING','univer-bg-gray-500','replace','连接中...','Button','_config','权限验证失败,请检查您的\x20API\x20密钥','getConfig','svg','Configuration\x20saved\x20successfully','mcp-ui.command.openConfigPanel','_mcpCoreConfig$','toStringTag','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','useObservable','univerjs-icon\x20univerjs-icon-','apiKey','Input','UniverMCPUIPlugin','mcpConfig.connectionError.maxRetriesExceeded','next','HelpIcon','_commandService','API\x20Key','getCurrentConfig','stringify','createElement','mcpConfig.configStepTitle','Connecting...','CloseIcon','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20连接失败','univer-flex\x20univer-gap-3','univer-text-yellow-500','MCPUIMenuController','BehaviorSubject','IMessageService','showConfigPanel','https://console.univer.ai','mcp-config-dialog','mcpConfig.connectionStatus.retrying','OpenMCPConfigPanelCommand','Bearer\x20','fill','bottom','mcpStatus.connected','_validateConfig','mcpConfig.connectionError.networkError','MCP\x20Unknown\x20Status','univer-flex\x20univer-items-center\x20univer-gap-2','error','Click\x20to\x20connect\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','enableAutoConnect','_dialogService','RETRYING','Inject','MCPConfigUIController','span','_messageService','mcpConfig.connectionStatus.connecting','removeItem','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.validation.apiKeyTooShort','FAILED','defineProperty','mcpStatus.clickToConnect','mergeMenu','Connected','mcp.apiKey','配置\x20MCP\x20使用\x20AI\x20操作电子表格','displayName','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','get','IConfigService','SESSION_ID_OCCUPIED','28eBXUCw','value','MCP\x20状态未知','univer-bg-red-500','MCP:\x20Session\x20ID\x20Occupied','showDeveloperTools','url(#$1','getItem','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','ComponentManager','mcpConfig.connectionError.unauthorized','Save\x20Configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-xs\x20univer-text-gray-600','http','10739664szybDk','MAX_RETRIES_EXCEEDED','errorMessage','pluginName','mcpConfig.configError','您的\x20API\x20密钥将在此浏览器中本地存储','_loadStoredApiKey','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4302813rKdbVE','xlink:href','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','将配置添加到您的\x20MCP\x20客户端设置文件中','Univer\x20AI\x20控制台','MCP\x20已连接','CommandType','MCP:\x20Unauthorized','https://mcp.univer.ai/mcp/?univer_session_id=','round','_mcpConnectionController','配置参数:','trim','setConfig','mcpStatus.unknown','LocaleService','_menuManagerService','mask','MCP\x20Client\x20Configuration','univer-text-red-500','64696baykAe','none','random','univer-text-blue-600','on-line-icon','show','mcpConfig.connectionError.sessionOccupied','MCPStatusDisplay','univer.plus','MCP:\x20超出最大重试次数','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-text-gray-400','mcpConfig.note2','univer-text-green-500','univer-font-medium','useDependency','univer-shrink-0\x20univer-text-blue-500','Enter\x20your\x20API\x20key','mcpConfig.apiApplyInfo.title','MCP:\x20会话\x20ID\x20已被占用','currentColor','on-line-icon_clip0_910_349','mcpConfig.configSaved','connectionStatus$','_logService','DependentOn','0\x200\x2017\x2016','RibbonStartGroup','NONE','zhCN','API\x20密钥不能为空','API\x20密钥无效,请检查密钥是否正确','path','mcpConfig.apiKeyHint','CheckMarkIcon','Configuration\x20Parameters:','MCP\x20Connected','MCP_UI_PLUGIN','useState','pre','您的\x20API\x20密钥安全存储在本地存储中','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','disposeWithMe','evenodd','jsxs','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','_loading$','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','merge','_configService','API\x20key\x20is\x20required','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','jsx','mcpConfig.configStep3','MCP:\x20网络错误','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex-1','MCPConnectionController','registerComponent','mcpConfig.configStep1','_registerComponent','clipPath','IMenuManagerService','Session\x20ID','mcpStatus.connecting','translate(.97)','univer.ai','univer_session_id:','IUIPartsService','mcpStatus.failed','off-line-icon','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Failed\x20to\x20save\x20configuration','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Click\x20to\x20configure\x20MCP','HEADER_MENU','\x20-\x20','Saving...','useRef','getOwnPropertyDescriptor','validateApiKey','MCP\x20客户端配置','mcpConfig.configInstructions','MCP\x20重连中...','mcpConfig.connectionStatus.connected','UniverIcon','UniverMCPPlugin','substring','children','Retrying...','_handleConfigure','MCP\x20Configuration','univer-text-xs\x20univer-text-gray-500','univer-min-w-0\x20univer-flex-1','MCPConnectionError','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpStatus.maxRetriesExceeded','white','toString','close','univer-shrink-0\x20univer-text-red-500','MenuIcon','text','NETWORK_ERROR','useCallback','push','mcpConfig.saving','WebSocketService','MCPConnectionUIController','Disconnected','univer-space-y-4','isValid','registerCommand','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','button','entries','mcpStatus.sessionOccupied','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','0\x200\x2016\x2016','univer-space-y-2','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCPConnectionStatus','mcpConfig.authorizationDescription','forwardRef','mcpConfig.save','21172170LJiZAi','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','map','ILogService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','重连中...','几秒钟内获取您的\x20API\x20密钥','length','M0\x200H16V16H0z','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','mcpConfig.configStep2','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','CONNECTED','symbol','<SESSION_ID>','将以下配置添加到您的\x20MCP\x20客户端设置中:','_createConfigPanelComponent','Injector','MCP\x20Connection\x20Failed','保存中...','mcpConfig.apiApplyInfo.getStarted','DISCONNECTED','复制以下\x20JSON\x20配置','idSuffix','off','Module','univer-bg-blue-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.apiKey','_handleConfigSave','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','1em','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP_PLUGIN_CONFIG_KEY','register','What\x20is\x20API\x20Key?','has','COMMAND','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','warn','MCP\x20连接中...','string','onStarting','univer-bg-green-500','MCP\x20已断开','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','保存配置','mcpServerUrl','univer-flex\x20univer-flex-wrap\x20univer-gap-2','https://console.univer.plus','配置无效','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','sessionId$','subscribeConfigValue$','连接失败','12elUFCq','univer-text-sm\x20univer-text-gray-500','8668580XmXtoh','off-line-icon_clip0_910_343','showStatus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','超出最大重试次数,请稍后再试','mcpConfig.sessionIdDescription','UNAUTHORIZED','Disposable','use','MCP\x20配置','Connection\x20Failed','div','OnLineIcon','Configuration\x20Notes:','未连接','Invalid\x20configuration','mcpConfig.apiKeyPlaceholder','什么是\x20API\x20密钥?','mcpStatus.clickToConfigure','BUTTON','4oxjVsZ','635886sUFkQO','includes','已连接','assign','MCPConfigPanel','mcp-ui.config','MenuItemType','最大重试次数','MCP\x20Connecting...','mcpConfig.note1','univer-text-white','Copy\x20the\x20JSON\x20configuration\x20below','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_initAutoConnect','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-items-start\x20univer-gap-2','MessageType','subscribe','noopener\x20noreferrer','_localStorageService','clsx','_apiKey$','colorChannel1','univer-flex\x20univer-items-center','open','_connectionController','MCP\x20Disconnected','univer-flex\x20univer-items-start\x20univer-gap-3','attrs','univer-mr-2\x20univer-flex\x20univer-text-xl','OTHERS','_injector','univer-size-4','label','ILocalStorageService','http://www.w3.org/2000/svg','IDialogService','univer-text-sm\x20univer-font-medium','mcpConfig.connectionStatus.failed','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','forEach'];_0xbf3a=function(){return _0x5af8cc;};return _0xbf3a();}var ae=Object[_0x5f14e5(0x1e8)],le=(_0x562b9a,_0x5188e5,_0x5eb2d0)=>_0x5188e5 in _0x562b9a?ae(_0x562b9a,_0x5188e5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eb2d0}):_0x562b9a[_0x5188e5]=_0x5eb2d0,I=(_0x14856d,_0x2d103d,_0x2ecc7f)=>le(_0x14856d,typeof _0x2d103d!=_0x5f14e5(0x2aa)?_0x2d103d+'':_0x2d103d,_0x2ecc7f);Object[_0x5f14e5(0x1e8)](exports,Symbol[_0x5f14e5(0x344)],{'value':_0x5f14e5(0x2b6)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x134898,..._0x301629}){const _0x1c194b=_0x5f14e5,{icon:_0x321fda,id:_0x454b78,className:_0x4c034d,extend:_0x1fcdb0,..._0x33dcca}=_0x301629,_0x4baa73=(_0x1c194b(0x348)+_0x454b78+'\x20'+(_0x4c034d||''))[_0x1c194b(0x218)](),_0x29d319=d[_0x1c194b(0x26e)]('_'+de());return G(_0x321fda,''+_0x454b78,{'defIds':_0x321fda['defIds'],'idSuffix':_0x29d319['current']},{'ref':_0x134898,'className':_0x4baa73,..._0x33dcca},_0x1fcdb0);}function G(_0x2bbcd8,_0x48ad76,_0xbddc84,_0x57ba7c,_0x992bf9){const _0x2c00aa=_0x5f14e5;return d[_0x2c00aa(0x353)](_0x2bbcd8['tag'],{'key':_0x48ad76,...ue(_0x2bbcd8,_0xbddc84,_0x992bf9),..._0x57ba7c},(ve(_0x2bbcd8,_0xbddc84)['children']||[])['map']((_0x2218da,_0x3505dd)=>G(_0x2218da,_0x48ad76+'-'+_0x2bbcd8[_0x2c00aa(0x315)]+'-'+_0x3505dd,_0xbddc84,void 0x0,_0x992bf9)));}function ue(_0x172210,_0x2aa02d,_0x39b2de){const _0x301a13=_0x5f14e5,_0x1ec37f={..._0x172210['attrs']};_0x39b2de!=null&&_0x39b2de[_0x301a13(0x302)]&&_0x1ec37f[_0x301a13(0x364)]==='colorChannel1'&&(_0x1ec37f[_0x301a13(0x364)]=_0x39b2de[_0x301a13(0x302)]),_0x172210[_0x301a13(0x315)]===_0x301a13(0x21d)&&_0x1ec37f['id']&&(_0x1ec37f['id']=_0x1ec37f['id']+_0x2aa02d[_0x301a13(0x2b4)]),Object[_0x301a13(0x293)](_0x1ec37f)[_0x301a13(0x314)](([_0x570735,_0x2c0d03])=>{const _0x412633=_0x301a13;_0x570735===_0x412633(0x21d)&&typeof _0x2c0d03==_0x412633(0x2c7)&&(_0x1ec37f[_0x570735]=_0x2c0d03[_0x412633(0x33a)](/url\(#(.*)\)/,_0x412633(0x1f9)+_0x2aa02d[_0x412633(0x2b4)]+')'));});const {defIds:_0x3705cc}=_0x2aa02d;return!_0x3705cc||_0x3705cc[_0x301a13(0x2a4)]===0x0||(_0x172210[_0x301a13(0x315)]===_0x301a13(0x2df)&&_0x1ec37f[_0x301a13(0x20b)]&&(_0x1ec37f['xlink:href']=_0x1ec37f['xlink:href']+_0x2aa02d[_0x301a13(0x2b4)]),Object[_0x301a13(0x293)](_0x1ec37f)[_0x301a13(0x314)](([_0x5c67eb,_0x428b2e])=>{const _0x3a22dd=_0x301a13;typeof _0x428b2e==_0x3a22dd(0x2c7)&&(_0x1ec37f[_0x5c67eb]=_0x428b2e[_0x3a22dd(0x33a)](/url\(#(.*)\)/,'url(#$1'+_0x2aa02d['idSuffix']+')'));})),_0x1ec37f;}function ve(_0x151a35,_0x26edb1){const _0x2aec82=_0x5f14e5;var _0x4d77da;const {defIds:_0x285203}=_0x26edb1;return!_0x285203||_0x285203[_0x2aec82(0x2a4)]===0x0?_0x151a35:_0x151a35['tag']===_0x2aec82(0x317)&&((_0x4d77da=_0x151a35[_0x2aec82(0x278)])!=null&&_0x4d77da[_0x2aec82(0x2a4)])?{..._0x151a35,'children':_0x151a35[_0x2aec82(0x278)][_0x2aec82(0x29f)](_0xffb390=>typeof _0xffb390['attrs']['id']==_0x2aec82(0x2c7)&&_0x285203&&_0x285203[_0x2aec82(0x2ed)](_0xffb390[_0x2aec82(0x308)]['id'])?{..._0xffb390,'attrs':{..._0xffb390[_0x2aec82(0x308)],'id':_0xffb390['attrs']['id']+_0x26edb1[_0x2aec82(0x2b4)]}}:_0xffb390)}:_0x151a35;}function de(){const _0x1b3cee=_0x5f14e5;return Math[_0x1b3cee(0x222)]()[_0x1b3cee(0x282)](0x24)[_0x1b3cee(0x277)](0x2,0x8);}_[_0x5f14e5(0x1ee)]=_0x5f14e5(0x275);const Ce={'tag':_0x5f14e5(0x340),'attrs':{'xmlns':_0x5f14e5(0x30f),'fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x296),'width':_0x5f14e5(0x2bc),'height':'1em'},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':_0x5f14e5(0x234),'d':_0x5f14e5(0x31b),'fillRule':_0x5f14e5(0x24b),'clipRule':_0x5f14e5(0x24b)}}]},H=d['forwardRef'](function(_0xde5cce,_0x4b8c3b){const _0x45b399=_0x5f14e5;return d[_0x45b399(0x353)](_,Object['assign']({},_0xde5cce,{'id':'check-mark-icon','ref':_0x4b8c3b,'icon':Ce}));});H[_0x5f14e5(0x1ee)]=_0x5f14e5(0x242);const ge={'tag':'svg','attrs':{'xmlns':_0x5f14e5(0x30f),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','d':_0x5f14e5(0x24d)}}]},B=d['forwardRef'](function(_0x24a446,_0x3a3492){const _0x4d1356=_0x5f14e5;return d[_0x4d1356(0x353)](_,Object[_0x4d1356(0x2ef)]({},_0x24a446,{'id':_0x4d1356(0x316),'ref':_0x3a3492,'icon':ge}));});B['displayName']=_0x5f14e5(0x356);const fe={'tag':_0x5f14e5(0x340),'attrs':{'xmlns':_0x5f14e5(0x30f),'fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x296),'width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','d':'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'}},{'tag':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','d':_0x5f14e5(0x253)}},{'tag':_0x5f14e5(0x240),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x5f14e5(0x24b),'clipRule':_0x5f14e5(0x24b)}}]},F=d[_0x5f14e5(0x29b)](function(_0x590de6,_0x2ccc3d){const _0x2f4c61=_0x5f14e5;return d[_0x2f4c61(0x353)](_,Object['assign']({},_0x590de6,{'id':'help-icon','ref':_0x2ccc3d,'icon':fe}));});F['displayName']=_0x5f14e5(0x34e);const pe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x296),'width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x5f14e5(0x234),'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':_0x5f14e5(0x215),'strokeLinejoin':_0x5f14e5(0x215),'strokeWidth':1.2}}]},{'tag':_0x5f14e5(0x317),'attrs':{},'children':[{'tag':_0x5f14e5(0x25d),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'fill':_0x5f14e5(0x281),'d':_0x5f14e5(0x2a5)}}]}]}],'defIds':[_0x5f14e5(0x2d8)]},Y=d[_0x5f14e5(0x29b)](function(_0x29dbfd,_0x328849){const _0xb1a310=_0x5f14e5;return d[_0xb1a310(0x353)](_,Object[_0xb1a310(0x2ef)]({},_0x29dbfd,{'id':_0xb1a310(0x266),'ref':_0x328849,'icon':pe}));});Y[_0x5f14e5(0x1ee)]='OffLineIcon';const he={'tag':'svg','attrs':{'xmlns':_0x5f14e5(0x30f),'fill':_0x5f14e5(0x221),'viewBox':_0x5f14e5(0x23a),'width':_0x5f14e5(0x2bc),'height':_0x5f14e5(0x2bc)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f14e5(0x337)},'children':[{'tag':_0x5f14e5(0x240),'attrs':{'stroke':_0x5f14e5(0x234),'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':'round','strokeLinejoin':_0x5f14e5(0x215),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f14e5(0x25d),'attrs':{'id':_0x5f14e5(0x235)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x5f14e5(0x2a5),'transform':_0x5f14e5(0x261)}}]}]}],'defIds':[_0x5f14e5(0x235)]},q=d[_0x5f14e5(0x29b)](function(_0x50080f,_0x5eefa2){const _0x54e300=_0x5f14e5;return d[_0x54e300(0x353)](_,Object['assign']({},_0x50080f,{'id':_0x54e300(0x224),'ref':_0x5eefa2,'icon':he}));});q[_0x5f14e5(0x1ee)]=_0x5f14e5(0x2e3);function V(_0x68bbc2){const _0x1d0bcd=_0x5f14e5;var _0x33cffe,_0x2c75c9;const {mcpCoreConfig:_0x50f2a3,onSave:_0x505f01,loading:_0x2e93f5=!0x1,config:_0x4187e1,connectionStatus$:_0x3871cf,connectionError$:_0x298395,currentApiKey$:_0x24404b,currentSessionId$:_0x53cb9a}=_0x68bbc2,_0x5372b5=v[_0x1d0bcd(0x22f)](u[_0x1d0bcd(0x21b)]),_0x1d56fc=v[_0x1d0bcd(0x347)](_0x3871cf,s[_0x1d0bcd(0x299)][_0x1d0bcd(0x2b2)]),_0xef5288=v[_0x1d0bcd(0x347)](_0x298395,s[_0x1d0bcd(0x27e)][_0x1d0bcd(0x23c)]),_0x3f573a=v['useObservable'](_0x53cb9a,''),_0x31114b=v[_0x1d0bcd(0x347)](_0x24404b,''),[_0x226571,_0x1fa1d4]=d[_0x1d0bcd(0x246)](_0x31114b||''),_0x31dd70=!0x0,_0xd1c64a=_0x4187e1[_0x1d0bcd(0x1f8)]&&_0x50f2a3[_0x1d0bcd(0x2cd)]&&(_0x50f2a3[_0x1d0bcd(0x2cd)][_0x1d0bcd(0x2ed)](_0x1d0bcd(0x228))||_0x50f2a3[_0x1d0bcd(0x2cd)][_0x1d0bcd(0x2ed)](_0x1d0bcd(0x262))),_0x1257cc=(_0x33cffe=_0x50f2a3[_0x1d0bcd(0x2cd)])==null?void 0x0:_0x33cffe[_0x1d0bcd(0x2ed)](_0x1d0bcd(0x228)),_0x3285c3=(_0x2c75c9=_0x50f2a3[_0x1d0bcd(0x2cd)])==null?void 0x0:_0x2c75c9[_0x1d0bcd(0x2ed)](_0x1d0bcd(0x262)),_0x202f95=_0x1257cc?_0x1d0bcd(0x2cf):_0x1d0bcd(0x35f),_0x483eea=_0x4187e1[_0x1d0bcd(0x1f8)]&&(_0x1257cc||_0x3285c3),[_0x1cea1b,_0xa58d51]=d[_0x1d0bcd(0x246)](!_0x226571['trim']()),_0x584f8d=(_0x23b79f,_0x4ab3cd)=>{const _0x1fc757=_0x1d0bcd;if(_0x4ab3cd===s['MCPConnectionError'][_0x1fc757(0x2dd)])return _0x1fc757(0x326);switch(_0x23b79f){case s[_0x1fc757(0x299)][_0x1fc757(0x2a9)]:return _0x1fc757(0x22a);case s[_0x1fc757(0x299)][_0x1fc757(0x338)]:case s[_0x1fc757(0x299)][_0x1fc757(0x370)]:return _0x1fc757(0x267);case s[_0x1fc757(0x299)][_0x1fc757(0x1e7)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x565996=(_0x16320d,_0xebabf0)=>{const _0x14ed53=_0x1d0bcd;if(_0xebabf0===s[_0x14ed53(0x27e)]['UNAUTHORIZED'])return _0x14ed53(0x1f6);switch(_0x16320d){case s['MCPConnectionStatus'][_0x14ed53(0x2a9)]:return _0x14ed53(0x2c9);case s[_0x14ed53(0x299)][_0x14ed53(0x338)]:case s[_0x14ed53(0x299)][_0x14ed53(0x370)]:return _0x14ed53(0x2b7);case s['MCPConnectionStatus'][_0x14ed53(0x1e7)]:return _0x14ed53(0x1f6);default:return _0x14ed53(0x339);}},_0x3126c9=_0x46e0a0=>{const _0x34a367=_0x1d0bcd;switch(_0x46e0a0){case s['MCPConnectionStatus'][_0x34a367(0x2a9)]:return _0x5372b5['t'](_0x34a367(0x274));case s[_0x34a367(0x299)][_0x34a367(0x338)]:return _0x5372b5['t'](_0x34a367(0x375));case s[_0x34a367(0x299)][_0x34a367(0x1e7)]:return _0x5372b5['t'](_0x34a367(0x312));case s[_0x34a367(0x299)][_0x34a367(0x370)]:return _0x5372b5['t'](_0x34a367(0x361));default:return _0x5372b5['t']('mcpConfig.connectionStatus.disconnected');}},_0x4c32d9=_0x332171=>{const _0x24a0c3=_0x1d0bcd;switch(_0x332171){case s[_0x24a0c3(0x27e)][_0x24a0c3(0x2dd)]:return _0x5372b5['t'](_0x24a0c3(0x1fd));case s['MCPConnectionError'][_0x24a0c3(0x1f2)]:return _0x5372b5['t'](_0x24a0c3(0x226));case s[_0x24a0c3(0x27e)][_0x24a0c3(0x287)]:return _0x5372b5['t'](_0x24a0c3(0x368));case s[_0x24a0c3(0x27e)][_0x24a0c3(0x203)]:return _0x5372b5['t'](_0x24a0c3(0x34c));default:return'';}},_0x1647a7=d[_0x1d0bcd(0x288)](()=>{const _0x3b7e7b=_0x1d0bcd,_0x18018c={..._0x50f2a3,'apiKey':_0x226571[_0x3b7e7b(0x218)](),'enableAuth':_0x31dd70};_0x505f01(_0x18018c);},[_0x50f2a3,_0x226571,_0x31dd70,_0x505f01]),_0x14ff1c=_0x226571['trim']()[_0x1d0bcd(0x2a4)]>0x0;return i['jsxs'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x295),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2f8),'children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x2f6),'children':'⚙'})}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'children':i['jsx']('p',{'className':_0x1d0bcd(0x2d6),'children':_0x5372b5['t'](_0x1d0bcd(0x31c))})})]})}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x1ff),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':f[_0x1d0bcd(0x300)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x584f8d(_0x1d56fc,_0xef5288)),'children':i[_0x1d0bcd(0x24c)]('div',{'className':_0x1d0bcd(0x36a),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':f['clsx'](_0x1d0bcd(0x32c),_0x565996(_0x1d56fc,_0xef5288))}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x311),'children':_0x3126c9(_0x1d56fc)})]})}),_0xef5288!==s[_0x1d0bcd(0x27e)][_0x1d0bcd(0x23c)]&&(_0x1d56fc===s['MCPConnectionStatus'][_0x1d0bcd(0x1e7)]||_0xef5288===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0x1d0bcd(0x254)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2fb),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x284),'children':'⚠️'}),i[_0x1d0bcd(0x254)]('p',{'className':_0x1d0bcd(0x2cb),'children':_0x4c32d9(_0xef5288)})]})})]}),i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x269),'children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-5','children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x297),'children':[i['jsxs'](_0x1d0bcd(0x30d),{'className':_0x1d0bcd(0x330),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'children':'🔑'}),'\x20',_0x5372b5['t'](_0x1d0bcd(0x2b9)),i[_0x1d0bcd(0x254)]('span',{'className':_0x1d0bcd(0x21f),'children':'*'}),_0xd1c64a&&i[_0x1d0bcd(0x254)]('a',{'className':_0x1d0bcd(0x2fa),'title':_0x5372b5['t'](_0x1d0bcd(0x232)),'role':_0x1d0bcd(0x292),'onClick':()=>_0xa58d51(!0x0),'children':i[_0x1d0bcd(0x254)](F,{})})]}),i[_0x1d0bcd(0x254)](f[_0x1d0bcd(0x34a)],{'type':_0x1d0bcd(0x286),'placeholder':_0x5372b5['t'](_0x1d0bcd(0x2e7)),'value':_0x226571,'disabled':_0x2e93f5,'autoComplete':_0x1d0bcd(0x2b5),'onChange':_0x1fa1d4}),i['jsx']('p',{'className':_0x1d0bcd(0x27c),'children':_0x5372b5['t'](_0x1d0bcd(0x241))})]}),_0xd1c64a&&_0x1cea1b&&i['jsxs'](_0x1d0bcd(0x2e2),{'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':[i[_0x1d0bcd(0x254)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x1d0bcd(0x292),'onClick':()=>_0xa58d51(!0x1),'children':i[_0x1d0bcd(0x254)](B,{'className':_0x1d0bcd(0x30c)})}),i['jsxs'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x32f),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x27f),'children':i['jsx'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x223),'children':'🚀'})}),i['jsxs']('div',{'className':_0x1d0bcd(0x258),'children':[i[_0x1d0bcd(0x254)]('h4',{'className':_0x1d0bcd(0x2a1),'children':_0x5372b5['t']('mcpConfig.apiApplyInfo.title')}),i[_0x1d0bcd(0x254)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x5372b5['t']('mcpConfig.apiApplyInfo.description')}),i[_0x1d0bcd(0x254)]('div',{'className':_0x1d0bcd(0x2ce),'children':_0x483eea&&i[_0x1d0bcd(0x24c)]('a',{'className':_0x1d0bcd(0x2a6),'href':_0x202f95,'target':'_blank','rel':_0x1d0bcd(0x2fe),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'children':'🤖'}),_0x5372b5['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i['jsx'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x22b),'children':'↗'})]})}),i['jsxs'](_0x1d0bcd(0x2e2),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x5372b5['t'](_0x1d0bcd(0x2b1))]})]})]})]}),_0x4187e1[_0x1d0bcd(0x1f8)]&&i['jsxs']('div',{'className':_0x1d0bcd(0x2bb),'children':[i[_0x1d0bcd(0x24c)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'children':'🔗'}),'\x20',_0x5372b5['t']('mcpConfig.connectionInfo')]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x28e),'children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-3','children':[i['jsx']('p',{'className':_0x1d0bcd(0x200),'children':_0x5372b5['t'](_0x1d0bcd(0x272))}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x297),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x329),'children':_0x5372b5['t'](_0x1d0bcd(0x354))}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2c4),'children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x36a),'children':[i['jsx'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x332),'children':'1'}),_0x5372b5['t'](_0x1d0bcd(0x25b))]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x36a),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x332),'children':'2'}),_0x5372b5['t'](_0x1d0bcd(0x2a7))]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x332),'children':'3'}),_0x5372b5['t'](_0x1d0bcd(0x255))]})]})]})]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-2','children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x329),'children':_0x1d0bcd(0x27b)}),i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x333),'children':i[_0x1d0bcd(0x254)](_0x1d0bcd(0x247),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x1d0bcd(0x352)]({'mcpServers':{'univer':{'url':_0x1d0bcd(0x214)+(_0x3f573a||_0x1d0bcd(0x2ab)),'type':_0x1d0bcd(0x201),'headers':{'Authorization':_0x1d0bcd(0x363)+(_0x226571||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':'univer-space-y-3','children':[i[_0x1d0bcd(0x254)]('div',{'className':_0x1d0bcd(0x329),'children':_0x5372b5['t']('mcpConfig.configParameters')}),i[_0x1d0bcd(0x24c)]('div',{'className':_0x1d0bcd(0x297),'children':[i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x307),'children':[i['jsx'](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x249)}),i[_0x1d0bcd(0x24c)]('div',{'className':_0x1d0bcd(0x27d),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x2da),'children':_0x1d0bcd(0x263)}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5372b5['t'](_0x1d0bcd(0x2dc))})]})]}),i[_0x1d0bcd(0x24c)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x1d0bcd(0x254)]('div',{'className':_0x1d0bcd(0x249)}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x27d),'children':[i['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1d0bcd(0x325)}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x27c),'children':_0x5372b5['t'](_0x1d0bcd(0x29a))})]})]})]})]})]})]}),i[_0x1d0bcd(0x254)](f[_0x1d0bcd(0x33c)],{'onClick':_0x1647a7,'disabled':!_0x14ff1c||_0x2e93f5,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x2e93f5?i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x36a),'children':[i['jsx'](_0x1d0bcd(0x373),{'children':'⟲'}),_0x5372b5['t'](_0x1d0bcd(0x28a))]}):i['jsxs'](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x36a),'children':[i[_0x1d0bcd(0x254)](H,{}),_0x5372b5['t'](_0x1d0bcd(0x29c))]})}),i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x1e5),'children':i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x359),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x373),{'className':_0x1d0bcd(0x230),'children':'💡'}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x20c),'children':[i[_0x1d0bcd(0x254)](_0x1d0bcd(0x2e2),{'className':_0x1d0bcd(0x22e),'children':_0x1d0bcd(0x2e4)}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'children':['•',_0x5372b5['t'](_0x1d0bcd(0x2f5))]}),i[_0x1d0bcd(0x24c)](_0x1d0bcd(0x2e2),{'children':['•',_0x5372b5['t'](_0x1d0bcd(0x22c))]})]})]})})]})})]});}const P=_0x5f14e5(0x2f1),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x5f14e5(0x26f)],xe=(_0x53c320,_0x531d08,_0x10ad59,_0x46f313)=>{const _0x22cb58=_0x5f14e5;for(var _0x422a0b=_0x46f313>0x1?void 0x0:_0x46f313?me(_0x531d08,_0x10ad59):_0x531d08,_0x1d7eb6=_0x53c320[_0x22cb58(0x2a4)]-0x1,_0x3f4bd1;_0x1d7eb6>=0x0;_0x1d7eb6--)(_0x3f4bd1=_0x53c320[_0x1d7eb6])&&(_0x422a0b=_0x3f4bd1(_0x422a0b)||_0x422a0b);return _0x422a0b;},g=(_0x320e3d,_0x2aa318)=>(_0x5e2b73,_0x23fa49)=>_0x2aa318(_0x5e2b73,_0x23fa49,_0x320e3d);const O=_0x5f14e5(0x1ec),D=_0x5f14e5(0x360);exports[_0x5f14e5(0x372)]=class extends u[_0x5f14e5(0x2de)]{constructor(_0x2096e8,_0x366b69,_0x25f8f0,_0x4918f2,_0x4c0a8d,_0xa6dd1a,_0x453bb0,_0xc4e450,_0x150964,_0x51a40f){const _0x1210f7=_0x5f14e5;super(),I(this,_0x1210f7(0x24e),new M[(_0x1210f7(0x35c))](!0x1)),I(this,_0x1210f7(0x343),new M['BehaviorSubject']({})),I(this,_0x1210f7(0x320),new M['BehaviorSubject']({})),I(this,_0x1210f7(0x301),new M['BehaviorSubject']('')),I(this,_0x1210f7(0x2ba),async _0xe94213=>{const _0xf092f7=_0x1210f7;var _0x106de7,_0x42a1f3;this[_0xf092f7(0x24e)][_0xf092f7(0x34d)](!0x0);try{const _0xe93400=await this[_0xf092f7(0x367)](_0xe94213);if(!_0xe93400[_0xf092f7(0x28f)]){this[_0xf092f7(0x374)][_0xf092f7(0x225)]({'type':f[_0xf092f7(0x2fc)]['Error'],'content':_0xe93400[_0xf092f7(0x204)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0xe94213['apiKey']?await this['_localStorageService']['setItem'](O,_0xe94213[_0xf092f7(0x349)]['trim']()):await this[_0xf092f7(0x2ff)][_0xf092f7(0x1e4)](O),this[_0xf092f7(0x301)][_0xf092f7(0x34d)](((_0x106de7=_0xe94213['apiKey'])==null?void 0x0:_0x106de7[_0xf092f7(0x218)]())||''),this[_0xf092f7(0x216)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x42a1f3=_0xe94213[_0xf092f7(0x349)])==null?void 0x0:_0x42a1f3[_0xf092f7(0x218)]())}),this[_0xf092f7(0x374)][_0xf092f7(0x225)]({'type':f['MessageType']['Success'],'content':this[_0xf092f7(0x32a)]['t'](_0xf092f7(0x236))}),setTimeout(()=>{const _0x4689d1=_0xf092f7;this['_dialogService'][_0x4689d1(0x283)](D);},0x320);}catch(_0x533a6b){this[_0xf092f7(0x238)]['error'](_0xf092f7(0x1fb),_0x533a6b),this[_0xf092f7(0x374)][_0xf092f7(0x225)]({'type':f['MessageType'][_0xf092f7(0x319)],'content':this[_0xf092f7(0x32a)]['t'](_0xf092f7(0x206))});}finally{this[_0xf092f7(0x24e)]['next'](!0x1);}}),(this[_0x1210f7(0x30b)]=_0x2096e8,this[_0x1210f7(0x324)]=_0x366b69,this[_0x1210f7(0x251)]=_0x25f8f0,this[_0x1210f7(0x2ff)]=_0x4918f2,this['_dialogService']=_0x4c0a8d,this[_0x1210f7(0x374)]=_0xa6dd1a,this['_componentManager']=_0x453bb0,this['_localeService']=_0xc4e450,this[_0x1210f7(0x238)]=_0x150964,this[_0x1210f7(0x216)]=_0x51a40f,this[_0x1210f7(0x335)](),this['_loadStoredApiKey'](),this[_0x1210f7(0x25c)]());}[_0x5f14e5(0x35e)](){const _0x55c6d4=_0x5f14e5,_0x2d6479=this['_configService'][_0x55c6d4(0x33f)](P);_0x2d6479!=null&&_0x2d6479[_0x55c6d4(0x1f8)]&&this[_0x55c6d4(0x36f)][_0x55c6d4(0x304)]({'id':D,'title':{'title':this['_localeService']['t'](_0x55c6d4(0x31d))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x8fd759=_0x55c6d4;this['_dialogService'][_0x8fd759(0x283)](D);}});}[_0x5f14e5(0x351)](){const _0x445928=_0x5f14e5;return this[_0x445928(0x343)]['value'];}[_0x5f14e5(0x25c)](){const _0x2a78b8=_0x5f14e5;this[_0x2a78b8(0x24a)](this['_componentManager'][_0x2a78b8(0x2c0)](_0x2a78b8(0x2f0),this[_0x2a78b8(0x2ad)]()));}[_0x5f14e5(0x2ad)](){const _0x508270=_0x5f14e5;return v[_0x508270(0x327)](()=>{const _0x598683=_0x508270;var _0x2544fa,_0x495417,_0xe34126;return i[_0x598683(0x254)](V,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x598683(0x343)][_0x598683(0x1f4)],'currentApiKey$':this[_0x598683(0x301)],'onSave':this[_0x598683(0x2ba)],'loading':this['_loading$'][_0x598683(0x1f4)],'connectionStatus$':(_0x2544fa=this[_0x598683(0x216)])==null?void 0x0:_0x2544fa['connectionStatus$'],'connectionError$':(_0x495417=this[_0x598683(0x216)])==null?void 0x0:_0x495417[_0x598683(0x334)],'currentSessionId$':(_0xe34126=this[_0x598683(0x216)])==null?void 0x0:_0xe34126[_0x598683(0x2d2)]});},this[_0x508270(0x30b)]);}[_0x5f14e5(0x335)](){const _0x2d245e=_0x5f14e5;this[_0x2d245e(0x24a)](this[_0x2d245e(0x251)]['subscribeConfigValue$'](s[_0x2d245e(0x2bf)])[_0x2d245e(0x2fd)](_0xd1fe6=>{const _0x288cf5=_0x2d245e;this[_0x288cf5(0x343)][_0x288cf5(0x34d)](_0xd1fe6||{});}));const _0xe2f671=this['_configService'][_0x2d245e(0x33f)](s['MCP_PLUGIN_CONFIG_KEY']);this[_0x2d245e(0x343)][_0x2d245e(0x34d)](_0xe2f671||{}),this['disposeWithMe'](this[_0x2d245e(0x251)][_0x2d245e(0x2d3)](P)[_0x2d245e(0x2fd)](_0x1a73f9=>{const _0x382a25=_0x2d245e;this[_0x382a25(0x320)]['next'](_0x1a73f9||{});}));const _0x3ce32e=this[_0x2d245e(0x251)][_0x2d245e(0x33f)](P);this[_0x2d245e(0x320)]['next'](_0x3ce32e||{});}async[_0x5f14e5(0x208)](){const _0x4bfa23=_0x5f14e5,_0x17b55c=this['_configService'][_0x4bfa23(0x33f)](P);if(!(_0x17b55c!=null&&_0x17b55c[_0x4bfa23(0x1f8)]))return;const _0x575922=await this[_0x4bfa23(0x2ff)][_0x4bfa23(0x1fa)](O);_0x575922&&(this[_0x4bfa23(0x216)][_0x4bfa23(0x32d)]({'Authorization':_0x4bfa23(0x363)+_0x575922}),this[_0x4bfa23(0x301)][_0x4bfa23(0x34d)](_0x575922));}async[_0x5f14e5(0x367)](_0x327d53){const _0x44ec02=_0x5f14e5;if(!_0x327d53['apiKey']||_0x327d53[_0x44ec02(0x349)][_0x44ec02(0x218)]()[_0x44ec02(0x2a4)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x44ec02(0x32a)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x327d53['apiKey'][_0x44ec02(0x218)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x44ec02(0x32a)]['t'](_0x44ec02(0x1e6))};try{const _0x3d8760=await this[_0x44ec02(0x30b)][_0x44ec02(0x1f0)](s[_0x44ec02(0x259)])[_0x44ec02(0x270)](_0x327d53['apiKey'][_0x44ec02(0x218)]());return _0x3d8760[_0x44ec02(0x28f)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3d8760[_0x44ec02(0x36b)]||this[_0x44ec02(0x32a)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x7c56e){return console[_0x44ec02(0x2c5)](_0x44ec02(0x313),_0x7c56e),{'isValid':!0x0};}}},exports[_0x5f14e5(0x372)]=xe([g(0x0,u[_0x5f14e5(0x371)](u[_0x5f14e5(0x2ae)])),g(0x1,v[_0x5f14e5(0x264)]),g(0x2,u['IConfigService']),g(0x3,u[_0x5f14e5(0x30e)]),g(0x4,v[_0x5f14e5(0x310)]),g(0x5,v[_0x5f14e5(0x35d)]),g(0x6,u[_0x5f14e5(0x371)](v[_0x5f14e5(0x1fc)])),g(0x7,u['Inject'](u[_0x5f14e5(0x21b)])),g(0x8,u[_0x5f14e5(0x2a0)]),g(0x9,u[_0x5f14e5(0x371)](s[_0x5f14e5(0x259)]))],exports[_0x5f14e5(0x372)]);const b={'id':_0x5f14e5(0x342),'type':u[_0x5f14e5(0x212)][_0x5f14e5(0x2c3)],'handler':async(_0x30ecb0,_0x16b9c0)=>(_0x30ecb0[_0x5f14e5(0x1f0)](exports[_0x5f14e5(0x372)])[_0x5f14e5(0x35e)](),!0x0)};function Z(_0x1f76ec,_0x2e870b){const _0x4b775b=_0x5f14e5;switch(_0x1f76ec){case s[_0x4b775b(0x299)][_0x4b775b(0x2b2)]:return _0x4b775b(0x32e);case s['MCPConnectionStatus']['CONNECTING']:return _0x4b775b(0x260);case s['MCPConnectionStatus'][_0x4b775b(0x2a9)]:return _0x4b775b(0x366);case s[_0x4b775b(0x299)]['FAILED']:switch(_0x2e870b){case s['MCPConnectionError'][_0x4b775b(0x2dd)]:return'mcpStatus.unauthorized';case s[_0x4b775b(0x27e)][_0x4b775b(0x1f2)]:return _0x4b775b(0x294);case s[_0x4b775b(0x27e)][_0x4b775b(0x287)]:return'mcpStatus.networkError';case s[_0x4b775b(0x27e)][_0x4b775b(0x203)]:return _0x4b775b(0x280);default:return _0x4b775b(0x265);}case s[_0x4b775b(0x299)][_0x4b775b(0x370)]:return'mcpStatus.retrying';default:return _0x4b775b(0x21a);}}function Se(_0x14c0a8,_0x40445d,_0x12f605,_0x4456bc=!0x0){const _0x1a306d=_0x5f14e5,_0x4aaef9=Z(_0x14c0a8,_0x40445d),_0x1c1e98=_0x12f605['t'](_0x4aaef9);return _0x4456bc?_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x2b2)]&&_0x40445d===s[_0x1a306d(0x27e)][_0x1a306d(0x2dd)]?_0x1c1e98+_0x1a306d(0x26c)+_0x12f605['t'](_0x1a306d(0x2e9)):_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x2a9)]?''+_0x1c1e98:_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x2b2)]||_0x14c0a8===s[_0x1a306d(0x299)][_0x1a306d(0x1e7)]?_0x1c1e98+_0x1a306d(0x26c)+_0x12f605['t'](_0x1a306d(0x1e9)):_0x1c1e98:_0x1c1e98;}function Pe(_0x3b26ff){const _0x5be7c5=_0x5f14e5;switch(_0x3b26ff){case s[_0x5be7c5(0x299)][_0x5be7c5(0x2a9)]:return _0x5be7c5(0x22d);case s[_0x5be7c5(0x299)][_0x5be7c5(0x338)]:case s[_0x5be7c5(0x299)][_0x5be7c5(0x370)]:return _0x5be7c5(0x35a);case s[_0x5be7c5(0x299)][_0x5be7c5(0x1e7)]:case s[_0x5be7c5(0x299)][_0x5be7c5(0x2b2)]:return _0x5be7c5(0x21f);default:return'univer-text-gray-500';}}function W(_0x1d10ab){const _0x388559=_0x5f14e5,{status$:_0x2e88af,error$:_0x563bf7,onConfigure:_0x103654,showClickable:_0x5c7da4=!0x0}=_0x1d10ab,_0x4023ba=v[_0x388559(0x347)](_0x2e88af,s[_0x388559(0x299)][_0x388559(0x2b2)]),_0x1f007b=v[_0x388559(0x347)](_0x563bf7,s['MCPConnectionError'][_0x388559(0x23c)]),_0x6517d8=v[_0x388559(0x22f)](u[_0x388559(0x21b)]),_0x22ae3a=_0x4023ba===s['MCPConnectionStatus'][_0x388559(0x2a9)];_0x4023ba===s[_0x388559(0x299)][_0x388559(0x338)]||s[_0x388559(0x299)][_0x388559(0x370)];const _0x3eb035=_0x6517d8['t'](Z(_0x4023ba,_0x1f007b)),_0x2220b1=Se(_0x4023ba,_0x1f007b,_0x6517d8,_0x5c7da4),_0x66f05e=Pe(_0x4023ba),_0x4b8794=_0x22ae3a?i[_0x388559(0x254)](q,{}):i['jsx'](Y,{}),_0x3e3882=d['useCallback'](()=>{_0x5c7da4&&_0x103654&&_0x103654();},[_0x5c7da4,_0x103654]);function _0x5454de(){const _0x390fd8=_0x388559;return i[_0x390fd8(0x24c)](_0x390fd8(0x2e2),{'className':f[_0x390fd8(0x300)](_0x390fd8(0x303),_0x5c7da4&&_0x103654&&_0x390fd8(0x2a8)),'role':_0x390fd8(0x292),'onClick':_0x5c7da4&&_0x103654?_0x3e3882:void 0x0,'children':[i['jsx'](_0x390fd8(0x2e2),{'className':f['clsx'](_0x390fd8(0x309),_0x66f05e),'children':_0x4b8794}),i[_0x390fd8(0x254)](_0x390fd8(0x2e2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3eb035})]});}return i[_0x388559(0x254)](f['Tooltip'],{'title':_0x2220b1,'placement':_0x388559(0x365),'children':_0x5454de()});}var Ie=Object[_0x5f14e5(0x26f)],_e=(_0x4f6b39,_0x3bf8be,_0x547c50,_0x4712e0)=>{for(var _0x3b3ac0=_0x4712e0>0x1?void 0x0:_0x4712e0?Ie(_0x3bf8be,_0x547c50):_0x3bf8be,_0x4f2811=_0x4f6b39['length']-0x1,_0x27082f;_0x4f2811>=0x0;_0x4f2811--)(_0x27082f=_0x4f6b39[_0x4f2811])&&(_0x3b3ac0=_0x27082f(_0x3b3ac0)||_0x3b3ac0);return _0x3b3ac0;},N=(_0x71cfa8,_0x436f52)=>(_0x1b3e13,_0x2708f1)=>_0x436f52(_0x1b3e13,_0x2708f1,_0x71cfa8);exports['MCPConnectionUIController']=class extends u['Disposable']{constructor(_0x1399b8,_0x2d4733,_0x832208,_0x163175){const _0x22b6d5=_0x5f14e5;super(),this[_0x22b6d5(0x30b)]=_0x1399b8,this[_0x22b6d5(0x305)]=_0x2d4733,this[_0x22b6d5(0x324)]=_0x832208,this[_0x22b6d5(0x251)]=_0x163175,this[_0x22b6d5(0x2f9)](),this[_0x22b6d5(0x331)]();}[_0x5f14e5(0x2f9)](){const _0x59fdcb=_0x5f14e5,_0x2c4619=this[_0x59fdcb(0x251)]['getConfig'](P);_0x2c4619!=null&&_0x2c4619[_0x59fdcb(0x1f8)]&&(this[_0x59fdcb(0x305)][_0x59fdcb(0x36e)]=!0x1);}['_initStatusComponent'](){const _0x432fab=_0x5f14e5,_0x25f541=this[_0x432fab(0x251)][_0x432fab(0x33f)](P);(_0x25f541==null?void 0x0:_0x25f541[_0x432fab(0x2d9)])!==!0x1&&this[_0x432fab(0x24a)](this[_0x432fab(0x324)][_0x432fab(0x25a)](v[_0x432fab(0x31f)][_0x432fab(0x26b)],()=>{const _0x1ca329=_0x432fab;var _0x125847;return v['connectInjector'](ye({'status$':this[_0x1ca329(0x305)][_0x1ca329(0x237)],'error$':this['_connectionController'][_0x1ca329(0x334)],'onConfigure':()=>this[_0x1ca329(0x27a)](),'showClickable':(_0x125847=_0x25f541==null?void 0x0:_0x25f541[_0x1ca329(0x1f8)])!=null?_0x125847:!0x1}),this[_0x1ca329(0x30b)]);}));}[_0x5f14e5(0x27a)](){const _0x39b7d0=_0x5f14e5;this[_0x39b7d0(0x30b)]['get'](exports[_0x39b7d0(0x372)])[_0x39b7d0(0x35e)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x5f14e5(0x371)](u[_0x5f14e5(0x2ae)])),N(0x1,u[_0x5f14e5(0x371)](s[_0x5f14e5(0x259)])),N(0x2,v[_0x5f14e5(0x264)]),N(0x3,u[_0x5f14e5(0x1f1)])],exports['MCPConnectionUIController']);function ye(_0x2ea8f4){const {status$:_0x195c3f,error$:_0x23b85a,onConfigure:_0x6ccc6e,showClickable:_0x4aa62f}=_0x2ea8f4;return function(){return i['jsx'](W,{'status$':_0x195c3f,'error$':_0x23b85a,'onConfigure':_0x6ccc6e,'showClickable':_0x4aa62f});};}function Me(_0x5ee0ba){const _0x180f72=_0x5f14e5;return{'id':b['id'],'type':v[_0x180f72(0x2f2)][_0x180f72(0x2ea)],'icon':_0x180f72(0x285),'title':_0x180f72(0x31d),'tooltip':_0x180f72(0x31d)};}const Ne={[v[_0x5f14e5(0x23b)][_0x5f14e5(0x30a)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x5f14e5(0x26f)],je=(_0x3d9a44,_0x394b25,_0x10359a,_0x336f7c)=>{for(var _0x2bbd30=_0x336f7c>0x1?void 0x0:_0x336f7c?be(_0x394b25,_0x10359a):_0x394b25,_0xcf2119=_0x3d9a44['length']-0x1,_0x27b7d9;_0xcf2119>=0x0;_0xcf2119--)(_0x27b7d9=_0x3d9a44[_0xcf2119])&&(_0x2bbd30=_0x27b7d9(_0x2bbd30)||_0x2bbd30);return _0x2bbd30;},z=(_0x21b504,_0x60aece)=>(_0x4ff5b8,_0x12095a)=>_0x60aece(_0x4ff5b8,_0x12095a,_0x21b504);exports[_0x5f14e5(0x35b)]=class extends u[_0x5f14e5(0x2de)]{constructor(_0x1d646d,_0x2c5e18){const _0x306f8c=_0x5f14e5;super(),this[_0x306f8c(0x34f)]=_0x1d646d,this[_0x306f8c(0x21c)]=_0x2c5e18,this[_0x306f8c(0x31e)](),this['_initializeMenus']();}[_0x5f14e5(0x31e)](){const _0x171ba7=_0x5f14e5;[b][_0x171ba7(0x314)](_0x242de3=>{const _0x270c24=_0x171ba7;this[_0x270c24(0x24a)](this[_0x270c24(0x34f)][_0x270c24(0x290)](_0x242de3));});}['_initializeMenus'](){const _0x2c3c2c=_0x5f14e5;this[_0x2c3c2c(0x21c)][_0x2c3c2c(0x1ea)](Ne);}},exports[_0x5f14e5(0x35b)]=je([z(0x0,u['ICommandService']),z(0x1,v[_0x5f14e5(0x25e)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x5f14e5(0x306),'connecting':_0x5f14e5(0x2f4),'connected':_0x5f14e5(0x244),'failed':_0x5f14e5(0x2af),'retrying':'MCP\x20Retrying...','unknown':_0x5f14e5(0x369),'unauthorized':_0x5f14e5(0x213),'sessionOccupied':_0x5f14e5(0x1f7),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f14e5(0x36c),'clickToConfigure':_0x5f14e5(0x26a)},'mcpConfig':{'title':_0x5f14e5(0x27b),'description':_0x5f14e5(0x321),'apiKey':_0x5f14e5(0x350),'apiKeyPlaceholder':_0x5f14e5(0x231),'apiKeyHint':_0x5f14e5(0x32b),'enableAuth':_0x5f14e5(0x345),'enableAuthHint':_0x5f14e5(0x318),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5f14e5(0x21e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x5f14e5(0x2f7),'configStep2':_0x5f14e5(0x357),'configStep3':_0x5f14e5(0x2be),'sessionId':_0x5f14e5(0x25f),'sessionIdDescription':_0x5f14e5(0x2bd),'authorizationDescription':_0x5f14e5(0x20e),'configParameters':_0x5f14e5(0x243),'maxRetries':_0x5f14e5(0x20d),'save':_0x5f14e5(0x1fe),'saving':_0x5f14e5(0x26d),'note1':_0x5f14e5(0x346),'note2':_0x5f14e5(0x209),'configSaved':_0x5f14e5(0x341),'configError':_0x5f14e5(0x268),'apiApplyInfo':{'title':_0x5f14e5(0x2c1),'description':_0x5f14e5(0x29e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5f14e5(0x252),'apiKeyTooShort':_0x5f14e5(0x24f),'invalidConfig':_0x5f14e5(0x2e6),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5f14e5(0x28d),'connecting':_0x5f14e5(0x355),'connected':_0x5f14e5(0x1eb),'failed':_0x5f14e5(0x2e1),'retrying':_0x5f14e5(0x279)},'connectionError':{'unauthorized':_0x5f14e5(0x1ef),'sessionOccupied':_0x5f14e5(0x257),'networkError':_0x5f14e5(0x2b8),'maxRetriesExceeded':_0x5f14e5(0x2d1)}}},we={'mcpStatus':{'disconnected':_0x5f14e5(0x2ca),'connecting':_0x5f14e5(0x2c6),'connected':_0x5f14e5(0x211),'failed':_0x5f14e5(0x358),'retrying':_0x5f14e5(0x273),'unknown':_0x5f14e5(0x1f5),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5f14e5(0x233),'networkError':_0x5f14e5(0x256),'maxRetriesExceeded':_0x5f14e5(0x229),'clickToConnect':_0x5f14e5(0x31a),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5f14e5(0x2e0),'description':_0x5f14e5(0x1ed),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5f14e5(0x207),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5f14e5(0x271),'mcpClientConfig':_0x5f14e5(0x271),'configInstructions':_0x5f14e5(0x2ac),'configStepTitle':'配置步骤:','configStep1':_0x5f14e5(0x2b3),'configStep2':_0x5f14e5(0x20f),'configStep3':_0x5f14e5(0x36d),'sessionId':'会话ID','sessionIdDescription':_0x5f14e5(0x298),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x5f14e5(0x217),'maxRetries':_0x5f14e5(0x2f3),'save':_0x5f14e5(0x2cc),'saving':_0x5f14e5(0x2b0),'note1':'配置更改将立即生效','note2':_0x5f14e5(0x248),'configSaved':'配置保存成功','configError':_0x5f14e5(0x322),'apiApplyInfo':{'title':_0x5f14e5(0x2e8),'description':_0x5f14e5(0x291),'univerAiLabel':_0x5f14e5(0x210),'getStarted':_0x5f14e5(0x2a3)},'validation':{'apiKeyRequired':_0x5f14e5(0x23e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5f14e5(0x2d0),'invalidApiKey':_0x5f14e5(0x23f)},'connectionStatus':{'disconnected':_0x5f14e5(0x2e5),'connecting':_0x5f14e5(0x33b),'connected':_0x5f14e5(0x2ee),'failed':_0x5f14e5(0x2d4),'retrying':_0x5f14e5(0x2a2)},'connectionError':{'unauthorized':_0x5f14e5(0x33e),'sessionOccupied':_0x5f14e5(0x328),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5f14e5(0x2db)}}};function _0x1d93(_0x5f4007,_0x14ae38){const _0xbf3a28=_0xbf3a();return _0x1d93=function(_0x1d9359,_0x1eadb3){_0x1d9359=_0x1d9359-0x1e4;let _0x415e12=_0xbf3a28[_0x1d9359];return _0x415e12;},_0x1d93(_0x5f4007,_0x14ae38);}var Ae=Object[_0x5f14e5(0x1e8)],Oe=Object[_0x5f14e5(0x26f)],De=(_0x40003a,_0x3f1ff6,_0x25a38d)=>_0x3f1ff6 in _0x40003a?Ae(_0x40003a,_0x3f1ff6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25a38d}):_0x40003a[_0x3f1ff6]=_0x25a38d,Ue=(_0x3e01e3,_0x6673d8,_0x15c720,_0x4d8ff1)=>{const _0x288e72=_0x5f14e5;for(var _0x1b4ec1=_0x4d8ff1>0x1?void 0x0:_0x4d8ff1?Oe(_0x6673d8,_0x15c720):_0x6673d8,_0x285d8a=_0x3e01e3[_0x288e72(0x2a4)]-0x1,_0x28f71b;_0x285d8a>=0x0;_0x285d8a--)(_0x28f71b=_0x3e01e3[_0x285d8a])&&(_0x1b4ec1=_0x28f71b(_0x1b4ec1)||_0x1b4ec1);return _0x1b4ec1;},y=(_0x432390,_0x44cb44)=>(_0x300847,_0xdb9d87)=>_0x44cb44(_0x300847,_0xdb9d87,_0x432390),$e=(_0x71f637,_0xb5ee4,_0xea4c5a)=>De(_0x71f637,_0xb5ee4+'',_0xea4c5a);exports[_0x5f14e5(0x34b)]=class extends u['Plugin']{constructor(_0x2265c3=L,_0x294fd1,_0x4ccc5d,_0x61229b,_0x22a2e5,_0x3a63c9){const _0xc152e1=_0x5f14e5;super(),this[_0xc152e1(0x33d)]=_0x2265c3,this[_0xc152e1(0x30b)]=_0x294fd1,this['_configService']=_0x4ccc5d,this['_uiPartsService']=_0x61229b,this['_localStorageService']=_0x22a2e5,this[_0xc152e1(0x32a)]=_0x3a63c9;const {..._0x1feb10}=u[_0xc152e1(0x250)]({},L,this[_0xc152e1(0x33d)]);this['_configService'][_0xc152e1(0x219)](P,_0x1feb10);}async[_0x5f14e5(0x2c8)](){const _0xb3a630=_0x5f14e5,_0x47195a=[[exports[_0xb3a630(0x28c)]],[exports[_0xb3a630(0x372)]],[exports[_0xb3a630(0x35b)]]];this[_0xb3a630(0x30b)][_0xb3a630(0x2c2)](A['ISocketService'])||_0x47195a[_0xb3a630(0x289)]([A['ISocketService'],{'useClass':A[_0xb3a630(0x28b)]}]),_0x47195a[_0xb3a630(0x314)](_0x183a52=>this[_0xb3a630(0x30b)]['add'](_0x183a52)),this[_0xb3a630(0x30b)][_0xb3a630(0x1f0)](exports[_0xb3a630(0x28c)]),this[_0xb3a630(0x30b)]['get'](exports[_0xb3a630(0x372)]),this[_0xb3a630(0x30b)][_0xb3a630(0x1f0)](exports[_0xb3a630(0x35b)]);}},$e(exports[_0x5f14e5(0x34b)],_0x5f14e5(0x205),_0x5f14e5(0x245)),exports['UniverMCPUIPlugin']=Ue([u[_0x5f14e5(0x239)](s[_0x5f14e5(0x276)]),y(0x1,u[_0x5f14e5(0x371)](u['Injector'])),y(0x2,u[_0x5f14e5(0x1f1)]),y(0x3,v[_0x5f14e5(0x264)]),y(0x4,u['ILocalStorageService']),y(0x5,u[_0x5f14e5(0x371)](u[_0x5f14e5(0x21b)]))],exports[_0x5f14e5(0x34b)]),exports[_0x5f14e5(0x2f0)]=V,exports[_0x5f14e5(0x227)]=W,exports[_0x5f14e5(0x362)]=b,exports[_0x5f14e5(0x323)]=Ee,exports[_0x5f14e5(0x23d)]=we;
|
|
1
|
+
'use strict';const _0x360554=_0x5312;function _0x2ac6(){const _0x576b25=['MCP\x20已连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','MAX_RETRIES_EXCEEDED','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','subscribe','4452048FbYRss','RETRYING','registerComponent','_initializeCommands','colorChannel1','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MenuIcon','<API_KEY>','http://www.w3.org/2000/svg','MCP:\x20Network\x20Error','register','setItem','mcp-config-dialog','OpenMCPConfigPanelCommand','current','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','substring','MCP\x20Retrying...','univer-size-2\x20univer-rounded-full','MCPConfigPanel','forwardRef','getConfig','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.disconnected','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','MCP\x20Unknown\x20Status','Disposable','IDialogService','配置更改将立即生效','OTHERS','Configuration\x20Parameters:','mcpConfig.connectionStatus.disconnected','ISocketService','会话ID','2114660ejMOXE','保存配置','CommandType','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','超出最大重试次数,请稍后再试','MenuItemType','on-line-icon_clip0_910_349','0\x200\x2017\x2016','connectionError$','Inject','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_injector','mcpStatus.clickToConnect','_apiKey$','请输入您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','启用身份验证','MCP\x20Connection\x20Failed','span','What\x20is\x20API\x20Key?','450534SqXifE','mcpConfig.title','UniverMCPUIPlugin','BUTTON','mcpConfig.connectionStatus.failed','HEADER_MENU','setConfig','24DXnAFa','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','复制以下\x20JSON\x20配置','MessageType','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.failed','useCallback','getCurrentConfig','showStatus','配置无效','getOwnPropertyDescriptor','MCP\x20连接中...','mcpConfig.configSaved','API\x20密钥不能为空','Success','MCP\x20已断开','univer-mr-2\x20univer-flex\x20univer-text-xl','useObservable','Click\x20to\x20configure\x20MCP','mcpConfig.connectionError.maxRetriesExceeded','已连接','UniverIcon','clipPath','disposeWithMe','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Connecting...','MCP\x20客户端配置','MCP_UI_PLUGIN','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','BehaviorSubject','UNAUTHORIZED','_dialogService','DISCONNECTED','ILocalStorageService','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','children','UniverMCPPlugin','网络连接错误,请检查您的网络连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','close','Input','MCP:\x20未授权','MCP:\x20Unauthorized','length','mcpConfig.authorizationDescription','button','none','pre','defIds','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','_mcpConnectionController','CloseIcon','connectInjector','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','RibbonStartGroup','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','mcpConfig.note1','mcp-ui.config','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcp-ui.command.openConfigPanel','univer-flex\x20univer-items-start\x20univer-gap-3','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','evenodd','MCPConnectionStatus','round','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpStatus.unknown','mcpConfig.configInstructions','MCP\x20重连中...','mcpStatus.sessionOccupied','mcpStatus.maxRetriesExceeded','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','off-line-icon','univer-text-red-500','warn','https://console.univer.ai','idSuffix','path','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.configStep2','registerCommand','string','https://mcp.univer.ai/mcp/?univer_session_id=','Error','Connection\x20Failed','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_blank','MCPConnectionError','random','Injector','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_initializeMenus','http','div','univer-text-xs\x20univer-text-gray-500','ICommandService','isValid','includes','mcpConfig.connectionError.sessionOccupied','最大重试次数','univer-shrink-0\x20univer-text-blue-500','_menuManagerService','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Client\x20Configuration','mcpConfig.configStep1','fill','连接中...','createElement','connectionStatus$','useRef','subscribeConfigValue$','M0\x200H16V16H0z','NETWORK_ERROR','mcpConfig.apiApplyInfo.getStarted','mcpConfig.configError','https://console.univer.plus','enUS','url(#off-line-icon_clip0_910_343)','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-min-w-0\x20univer-flex-1','show','481880zuaSNM','_localeService','会话\x20ID\x20已被占用,请稍后再试','mcp.apiKey','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','CONNECTING','Configuration\x20saved\x20successfully','IMessageService','MCP:\x20会话\x20ID\x20已被占用','_uiPartsService','MCPConnectionController','mcpConfig.validation.apiKeyTooShort','mcpStatus.connecting','_loading$','trim','配置保存失败','univer-text-gray-400','attrs','univer-space-y-3','Univer\x20AI\x20Console','assign','mcpConfig.description','2OiNrZe','mcpStatus.networkError','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','open','merge','univer-shrink-0\x20univer-text-red-500','mcpConfig.save','MCP\x20配置','BuiltInUIPart','mcpConfig.apiKey','Failed\x20to\x20save\x20configuration','MCPUIMenuController','OffLineIcon','保存中...','univerjs-icon\x20univerjs-icon-','univer-text-white','LocaleService','NONE','univer-bg-blue-500','next','enableAutoConnect','Enter\x20your\x20API\x20key','toString','symbol','Button','mcpStatus.retrying','translate(.97)','useState','displayName','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','SESSION_ID_OCCUPIED','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','jsxs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','\x20-\x20','check-mark-icon','forEach','ILogService','replace','_configService','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','API\x20Key','Session\x20ID','push','univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connecting','Bearer\x20','mcpConfig.configParameters','mcpConfig.apiKeyPlaceholder','mask','_mcpCoreConfig$','help-icon','map','CONNECTED','onStarting','mcpConfig.apiApplyInfo.title','API\x20密钥','MCPConfigUIController','_handleConfigSave','univer-text-blue-600','_initAutoConnect','MCP\x20状态未知','mcpConfig.connectionError.networkError','tag','几秒钟内获取您的\x20API\x20密钥','jsx','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer.plus','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.connectionStatus.connected','get','validateApiKey','_componentManager','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','has','mcpConfig.apiApplyInfo.description','HelpIcon','Max\x20Retries','WebSocketService','MCP:\x20超出最大重试次数','off','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','_config$','mcpServerUrl','_initConfigSync','defs','MCP_PLUGIN_CONFIG_KEY','mcpStatus.connected','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.connectionInfo','defineProperty','url(#$1','您的\x20API\x20密钥安全存储在本地存储中','Enable\x20authentication\x20for\x20secure\x20connections','_connectionController','univer-bg-green-500','univer-bg-red-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCPConnectionUIController','Tooltip','xlink:href','0\x200\x2016\x2016','IUIPartsService','点击配置\x20MCP','2243836McXdBw','entries','重连中...','Configuration\x20Steps:','noopener\x20noreferrer','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','error','univer-text-sm\x20univer-font-medium','showDeveloperTools','<SESSION_ID>','univer_session_id:','apiKey','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Save\x20Configuration','mcpConfig.apiApplyInfo.univerAiLabel','useDependency','CheckMarkIcon','91072MGDYLW','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.clickToConfigure','1em','svg','MCP:\x20网络错误','showConfigPanel','univer.ai','white','_config','Authorization:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStep3','FAILED','配置参数:','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','use','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_loadStoredApiKey','API\x20key\x20is\x20required','Disconnected','univer-text-sm\x20univer-text-gray-500','IConfigService','currentColor','url(#on-line-icon_clip0_910_349)','text','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','univer-flex\x20univer-items-center\x20univer-gap-2','univer-space-y-2','MCPStatusDisplay','sessionId$','_validateConfig','mcpConfig.connectionError.unauthorized','_messageService','938784jYxuKe','API\x20密钥无效,请检查密钥是否正确','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','off-line-icon_clip0_910_343','配置保存成功','mcpConfig.validation.invalidConfig','stringify','Univer\x20AI\x20控制台','连接失败','on-line-icon','clsx','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','__setCustomHeaders','mcpConfig.validation.apiKeyRequired','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_localStorageService'];_0x2ac6=function(){return _0x576b25;};return _0x2ac6();}(function(_0x805d66,_0x39d83e){const _0x1610a2=_0x5312,_0x21c319=_0x805d66();while(!![]){try{const _0x2f4cfb=parseInt(_0x1610a2(0x29e))/0x1*(parseInt(_0x1610a2(0x223))/0x2)+-parseInt(_0x1610a2(0x30e))/0x3+-parseInt(_0x1610a2(0x2f9))/0x4+-parseInt(_0x1610a2(0x20d))/0x5+-parseInt(_0x1610a2(0x2c2))/0x6+-parseInt(_0x1610a2(0x28c))/0x7+-parseInt(_0x1610a2(0x315))/0x8*(-parseInt(_0x1610a2(0x2d7))/0x9);if(_0x2f4cfb===_0x39d83e)break;else _0x21c319['push'](_0x21c319['shift']());}catch(_0x146fdf){_0x21c319['push'](_0x21c319['shift']());}}}(_0x2ac6,0x4ed29));var ae=Object[_0x360554(0x27e)],le=(_0x4ab7b5,_0x3346c1,_0x420a5e)=>_0x3346c1 in _0x4ab7b5?ae(_0x4ab7b5,_0x3346c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x420a5e}):_0x4ab7b5[_0x3346c1]=_0x420a5e,I=(_0xc9fdf4,_0x32a6d6,_0x45ba8f)=>le(_0xc9fdf4,typeof _0x32a6d6!=_0x360554(0x23a)?_0x32a6d6+'':_0x32a6d6,_0x45ba8f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0xf53bb7,..._0x451b20}){const _0x13f73a=_0x360554,{icon:_0x1c80ff,id:_0x3ed25a,className:_0x4b0ce1,extend:_0x310a72,..._0x62d6fa}=_0x451b20,_0x655034=(_0x13f73a(0x231)+_0x3ed25a+'\x20'+(_0x4b0ce1||''))[_0x13f73a(0x21b)](),_0x1169be=d[_0x13f73a(0x200)]('_'+de());return G(_0x1c80ff,''+_0x3ed25a,{'defIds':_0x1c80ff[_0x13f73a(0x34a)],'idSuffix':_0x1169be[_0x13f73a(0x2e5)]},{'ref':_0xf53bb7,'className':_0x655034,..._0x62d6fa},_0x310a72);}function G(_0x4a0d9e,_0x14b7cd,_0x3116a9,_0x270dfe,_0x43ecc0){const _0x46539d=_0x360554;return d[_0x46539d(0x1fe)](_0x4a0d9e['tag'],{'key':_0x14b7cd,...ue(_0x4a0d9e,_0x3116a9,_0x43ecc0),..._0x270dfe},(ve(_0x4a0d9e,_0x3116a9)[_0x46539d(0x339)]||[])[_0x46539d(0x258)]((_0x34aab8,_0x162c49)=>G(_0x34aab8,_0x14b7cd+'-'+_0x4a0d9e[_0x46539d(0x263)]+'-'+_0x162c49,_0x3116a9,void 0x0,_0x43ecc0)));}function ue(_0x423929,_0x4c90bc,_0xa6c102){const _0x5ce445=_0x360554,_0x3668b9={..._0x423929[_0x5ce445(0x21e)]};_0xa6c102!=null&&_0xa6c102['colorChannel1']&&_0x3668b9[_0x5ce445(0x1fc)]==='colorChannel1'&&(_0x3668b9['fill']=_0xa6c102[_0x5ce445(0x2db)]),_0x423929['tag']==='mask'&&_0x3668b9['id']&&(_0x3668b9['id']=_0x3668b9['id']+_0x4c90bc[_0x5ce445(0x368)]),Object['entries'](_0x3668b9)[_0x5ce445(0x247)](([_0x29fb2f,_0x35c01a])=>{const _0x581120=_0x5ce445;_0x29fb2f===_0x581120(0x255)&&typeof _0x35c01a==_0x581120(0x36d)&&(_0x3668b9[_0x29fb2f]=_0x35c01a[_0x581120(0x249)](/url\(#(.*)\)/,'url(#$1'+_0x4c90bc[_0x581120(0x368)]+')'));});const {defIds:_0x4ac083}=_0x4c90bc;return!_0x4ac083||_0x4ac083['length']===0x0||(_0x423929['tag']===_0x5ce445(0x2af)&&_0x3668b9[_0x5ce445(0x288)]&&(_0x3668b9[_0x5ce445(0x288)]=_0x3668b9['xlink:href']+_0x4c90bc['idSuffix']),Object[_0x5ce445(0x28d)](_0x3668b9)[_0x5ce445(0x247)](([_0xb5a20,_0x20f09c])=>{const _0x320ba5=_0x5ce445;typeof _0x20f09c==_0x320ba5(0x36d)&&(_0x3668b9[_0xb5a20]=_0x20f09c[_0x320ba5(0x249)](/url\(#(.*)\)/,_0x320ba5(0x27f)+_0x4c90bc[_0x320ba5(0x368)]+')'));})),_0x3668b9;}function ve(_0x5bf25d,_0x23d920){const _0x41ea1e=_0x360554;var _0x59aa81;const {defIds:_0x47071c}=_0x23d920;return!_0x47071c||_0x47071c['length']===0x0?_0x5bf25d:_0x5bf25d['tag']===_0x41ea1e(0x279)&&((_0x59aa81=_0x5bf25d[_0x41ea1e(0x339)])!=null&&_0x59aa81[_0x41ea1e(0x345)])?{..._0x5bf25d,'children':_0x5bf25d[_0x41ea1e(0x339)][_0x41ea1e(0x258)](_0x2f6c1d=>typeof _0x2f6c1d['attrs']['id']==_0x41ea1e(0x36d)&&_0x47071c&&_0x47071c[_0x41ea1e(0x1f4)](_0x2f6c1d[_0x41ea1e(0x21e)]['id'])?{..._0x2f6c1d,'attrs':{..._0x2f6c1d[_0x41ea1e(0x21e)],'id':_0x2f6c1d[_0x41ea1e(0x21e)]['id']+_0x23d920[_0x41ea1e(0x368)]}}:_0x2f6c1d)}:_0x5bf25d;}function de(){const _0x3b2595=_0x360554;return Math[_0x3b2595(0x374)]()[_0x3b2595(0x239)](0x24)[_0x3b2595(0x2e7)](0x2,0x8);}_[_0x360554(0x23f)]=_0x360554(0x32a);const Ce={'tag':'svg','attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x360554(0x2a1)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x360554(0x275),'fillRule':_0x360554(0x359),'clipRule':_0x360554(0x359)}}]},H=d['forwardRef'](function(_0x1a6e6e,_0x1ac921){const _0x538b4e=_0x360554;return d[_0x538b4e(0x1fe)](_,Object['assign']({},_0x1a6e6e,{'id':_0x538b4e(0x246),'ref':_0x1ac921,'icon':Ce}));});function _0x5312(_0x3e7aa0,_0x375aa0){const _0x2ac636=_0x2ac6();return _0x5312=function(_0x5312b2,_0x5a220e){_0x5312b2=_0x5312b2-0x1f2;let _0x451b18=_0x2ac636[_0x5312b2];return _0x451b18;},_0x5312(_0x3e7aa0,_0x375aa0);}H[_0x360554(0x23f)]=_0x360554(0x29d);const ge={'tag':_0x360554(0x2a2),'attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':_0x360554(0x289),'width':'1em','height':'1em'},'children':[{'tag':_0x360554(0x369),'attrs':{'fill':'currentColor','d':_0x360554(0x34b)}}]},B=d[_0x360554(0x2eb)](function(_0x3f8e8e,_0x1f017e){const _0x1ede0c=_0x360554;return d['createElement'](_,Object[_0x1ede0c(0x221)]({},_0x3f8e8e,{'id':'close-icon','ref':_0x1f017e,'icon':ge}));});B[_0x360554(0x23f)]=_0x360554(0x34d);const fe={'tag':_0x360554(0x2a2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x360554(0x348),'viewBox':'0\x200\x2016\x2016','width':_0x360554(0x2a1),'height':_0x360554(0x2a1)},'children':[{'tag':'path','attrs':{'fill':_0x360554(0x2b6),'d':_0x360554(0x2ef)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x360554(0x2e6)}},{'tag':_0x360554(0x369),'attrs':{'fill':_0x360554(0x2b6),'d':_0x360554(0x33f),'fillRule':_0x360554(0x359),'clipRule':'evenodd'}}]},F=d[_0x360554(0x2eb)](function(_0x1fc197,_0xecd86e){const _0x4ed872=_0x360554;return d[_0x4ed872(0x1fe)](_,Object[_0x4ed872(0x221)]({},_0x1fc197,{'id':_0x4ed872(0x257),'ref':_0xecd86e,'icon':fe}));});F[_0x360554(0x23f)]=_0x360554(0x270);const pe={'tag':_0x360554(0x2a2),'attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':_0x360554(0x289),'width':_0x360554(0x2a1),'height':_0x360554(0x2a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x360554(0x208)},'children':[{'tag':'path','attrs':{'stroke':_0x360554(0x2b6),'d':_0x360554(0x2fc),'strokeLinecap':_0x360554(0x35b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x360554(0x279),'attrs':{},'children':[{'tag':_0x360554(0x32b),'attrs':{'id':_0x360554(0x2c5)},'children':[{'tag':'path','attrs':{'fill':_0x360554(0x2a6),'d':_0x360554(0x202)}}]}]}],'defIds':[_0x360554(0x2c5)]},Y=d[_0x360554(0x2eb)](function(_0x43a2c5,_0x322e2c){const _0x143a14=_0x360554;return d[_0x143a14(0x1fe)](_,Object[_0x143a14(0x221)]({},_0x43a2c5,{'id':_0x143a14(0x364),'ref':_0x322e2c,'icon':pe}));});Y['displayName']=_0x360554(0x22f);const he={'tag':_0x360554(0x2a2),'attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':_0x360554(0x300),'width':_0x360554(0x2a1),'height':_0x360554(0x2a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x360554(0x2b7)},'children':[{'tag':_0x360554(0x369),'attrs':{'stroke':_0x360554(0x2b6),'d':_0x360554(0x352),'strokeLinecap':_0x360554(0x35b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x360554(0x279),'attrs':{},'children':[{'tag':_0x360554(0x32b),'attrs':{'id':_0x360554(0x2ff)},'children':[{'tag':_0x360554(0x369),'attrs':{'fill':'white','d':_0x360554(0x202),'transform':_0x360554(0x23d)}}]}]}],'defIds':[_0x360554(0x2ff)]},q=d[_0x360554(0x2eb)](function(_0x4ef9bb,_0x1d378c){const _0x144a34=_0x360554;return d[_0x144a34(0x1fe)](_,Object['assign']({},_0x4ef9bb,{'id':_0x144a34(0x2cb),'ref':_0x1d378c,'icon':he}));});q[_0x360554(0x23f)]='OnLineIcon';function V(_0x48464f){const _0x2ec7c5=_0x360554;var _0x480887,_0x976d69;const {mcpCoreConfig:_0x12f9bb,onSave:_0x4022a2,loading:_0x282757=!0x1,config:_0x270d2c,connectionStatus$:_0x9cd1c,connectionError$:_0x4e6e24,currentApiKey$:_0x4788f4,currentSessionId$:_0x77adc5}=_0x48464f,_0x586247=v[_0x2ec7c5(0x29c)](u[_0x2ec7c5(0x233)]),_0x1b04c1=v[_0x2ec7c5(0x326)](_0x9cd1c,s['MCPConnectionStatus'][_0x2ec7c5(0x335)]),_0x24d125=v[_0x2ec7c5(0x326)](_0x4e6e24,s[_0x2ec7c5(0x373)]['NONE']),_0x143ced=v[_0x2ec7c5(0x326)](_0x77adc5,''),_0x27c010=v[_0x2ec7c5(0x326)](_0x4788f4,''),[_0x190efc,_0x178b82]=d[_0x2ec7c5(0x23e)](_0x27c010||''),_0x22a499=!0x0,_0x1443f3=_0x270d2c['showDeveloperTools']&&_0x12f9bb[_0x2ec7c5(0x277)]&&(_0x12f9bb[_0x2ec7c5(0x277)]['includes'](_0x2ec7c5(0x267))||_0x12f9bb[_0x2ec7c5(0x277)][_0x2ec7c5(0x1f4)](_0x2ec7c5(0x2a5))),_0x540804=(_0x480887=_0x12f9bb[_0x2ec7c5(0x277)])==null?void 0x0:_0x480887['includes'](_0x2ec7c5(0x267)),_0x4790b8=(_0x976d69=_0x12f9bb[_0x2ec7c5(0x277)])==null?void 0x0:_0x976d69[_0x2ec7c5(0x1f4)]('univer.ai'),_0x149603=_0x540804?_0x2ec7c5(0x206):_0x2ec7c5(0x367),_0x321029=_0x270d2c[_0x2ec7c5(0x294)]&&(_0x540804||_0x4790b8),[_0x6ceb04,_0x20be29]=d[_0x2ec7c5(0x23e)](!_0x190efc['trim']()),_0x3b9942=(_0x55bca1,_0x1b5052)=>{const _0x3f8692=_0x2ec7c5;if(_0x1b5052===s['MCPConnectionError'][_0x3f8692(0x333)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x55bca1){case s[_0x3f8692(0x35a)][_0x3f8692(0x259)]:return _0x3f8692(0x240);case s[_0x3f8692(0x35a)][_0x3f8692(0x212)]:case s['MCPConnectionStatus']['RETRYING']:return _0x3f8692(0x299);case s[_0x3f8692(0x35a)][_0x3f8692(0x2ab)]:return _0x3f8692(0x350);default:return _0x3f8692(0x211);}},_0x436dc7=(_0x3c44ac,_0x2763b9)=>{const _0x50a01a=_0x2ec7c5;if(_0x2763b9===s[_0x50a01a(0x373)][_0x50a01a(0x333)])return _0x50a01a(0x284);switch(_0x3c44ac){case s[_0x50a01a(0x35a)][_0x50a01a(0x259)]:return _0x50a01a(0x283);case s[_0x50a01a(0x35a)][_0x50a01a(0x212)]:case s[_0x50a01a(0x35a)][_0x50a01a(0x2d8)]:return _0x50a01a(0x235);case s[_0x50a01a(0x35a)]['FAILED']:return _0x50a01a(0x284);default:return'univer-bg-gray-500';}},_0x201cf5=_0x38b7e3=>{const _0x4653ea=_0x2ec7c5;switch(_0x38b7e3){case s[_0x4653ea(0x35a)]['CONNECTED']:return _0x586247['t'](_0x4653ea(0x269));case s[_0x4653ea(0x35a)]['CONNECTING']:return _0x586247['t'](_0x4653ea(0x251));case s['MCPConnectionStatus'][_0x4653ea(0x2ab)]:return _0x586247['t'](_0x4653ea(0x312));case s[_0x4653ea(0x35a)][_0x4653ea(0x2d8)]:return _0x586247['t']('mcpConfig.connectionStatus.retrying');default:return _0x586247['t'](_0x4653ea(0x2f6));}},_0x404b1d=_0x364437=>{const _0xcc95f2=_0x2ec7c5;switch(_0x364437){case s[_0xcc95f2(0x373)][_0xcc95f2(0x333)]:return _0x586247['t'](_0xcc95f2(0x2c0));case s[_0xcc95f2(0x373)][_0xcc95f2(0x241)]:return _0x586247['t'](_0xcc95f2(0x1f5));case s['MCPConnectionError'][_0xcc95f2(0x203)]:return _0x586247['t'](_0xcc95f2(0x262));case s[_0xcc95f2(0x373)][_0xcc95f2(0x2d4)]:return _0x586247['t'](_0xcc95f2(0x328));default:return'';}},_0x554bf4=d[_0x2ec7c5(0x31b)](()=>{const _0x28ce9e=_0x2ec7c5,_0x92f141={..._0x12f9bb,'apiKey':_0x190efc[_0x28ce9e(0x21b)](),'enableAuth':_0x22a499};_0x4022a2(_0x92f141);},[_0x12f9bb,_0x190efc,_0x22a499,_0x4022a2]),_0x65dab0=_0x190efc['trim']()[_0x2ec7c5(0x345)]>0x0;return i['jsxs'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x35d),'children':[i['jsx'](_0x2ec7c5(0x379),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x2ec7c5(0x243)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x371),'children':i['jsx'](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x232),'children':'⚙'})}),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'children':i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x2b4),'children':_0x586247['t'](_0x2ec7c5(0x222))})})]})}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x225),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':f[_0x2ec7c5(0x2cc)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x3b9942(_0x1b04c1,_0x24d125)),'children':i['jsxs'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bb),'children':[i['jsx']('div',{'className':f[_0x2ec7c5(0x2cc)](_0x2ec7c5(0x2e9),_0x436dc7(_0x1b04c1,_0x24d125))}),i[_0x2ec7c5(0x265)]('span',{'className':_0x2ec7c5(0x293),'children':_0x201cf5(_0x1b04c1)})]})}),_0x24d125!==s[_0x2ec7c5(0x373)][_0x2ec7c5(0x234)]&&(_0x1b04c1===s['MCPConnectionStatus'][_0x2ec7c5(0x2ab)]||_0x24d125===s['MCPConnectionError'][_0x2ec7c5(0x333)])&&i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x285),'children':i['jsxs'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x1f9),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x228),'children':'⚠️'}),i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x376),'children':_0x404b1d(_0x24d125)})]})})]}),i[_0x2ec7c5(0x265)]('div',{'className':_0x2ec7c5(0x2cd),'children':i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-5','children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-2','children':[i['jsxs']('label',{'className':_0x2ec7c5(0x20a),'children':[i['jsx'](_0x2ec7c5(0x30c),{'children':'🔑'}),'\x20',_0x586247['t'](_0x2ec7c5(0x22c)),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x365),'children':'*'}),_0x1443f3&&i['jsx']('a',{'className':_0x2ec7c5(0x209),'title':_0x586247['t'](_0x2ec7c5(0x25b)),'role':_0x2ec7c5(0x347),'onClick':()=>_0x20be29(!0x0),'children':i['jsx'](F,{})})]}),i['jsx'](f[_0x2ec7c5(0x342)],{'type':_0x2ec7c5(0x2b8),'placeholder':_0x586247['t'](_0x2ec7c5(0x254)),'value':_0x190efc,'disabled':_0x282757,'autoComplete':_0x2ec7c5(0x274),'onChange':_0x178b82}),i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x37a),'children':_0x586247['t']('mcpConfig.apiKeyHint')})]}),_0x1443f3&&_0x6ceb04&&i[_0x2ec7c5(0x243)]('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':[i[_0x2ec7c5(0x265)]('a',{'className':_0x2ec7c5(0x331),'role':_0x2ec7c5(0x347),'onClick':()=>_0x20be29(!0x1),'children':i[_0x2ec7c5(0x265)](B,{'className':'univer-size-4'})}),i['jsxs']('div',{'className':_0x2ec7c5(0x27c),'children':[i['jsx']('div',{'className':_0x2ec7c5(0x2c4),'children':i[_0x2ec7c5(0x265)]('span',{'className':_0x2ec7c5(0x25f),'children':'🚀'})}),i[_0x2ec7c5(0x243)]('div',{'className':'univer-flex-1','children':[i[_0x2ec7c5(0x265)]('h4',{'className':_0x2ec7c5(0x266),'children':_0x586247['t'](_0x2ec7c5(0x25b))}),i[_0x2ec7c5(0x265)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x586247['t'](_0x2ec7c5(0x26f))}),i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2b0),'children':_0x321029&&i[_0x2ec7c5(0x243)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x149603,'target':_0x2ec7c5(0x372),'rel':_0x2ec7c5(0x290),'children':[i['jsx']('span',{'children':'🤖'}),_0x586247['t'](_0x2ec7c5(0x29b)),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x21d),'children':'↗'})]})}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2d5),'children':['✨','\x20',_0x586247['t'](_0x2ec7c5(0x204))]})]})]})]}),_0x270d2c[_0x2ec7c5(0x294)]&&i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x268),'children':[i[_0x2ec7c5(0x243)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'children':'🔗'}),'\x20',_0x586247['t'](_0x2ec7c5(0x27d))]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-4','children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x21f),'children':[i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x250),'children':_0x586247['t'](_0x2ec7c5(0x35f))}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bc),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x36a),'children':_0x586247['t']('mcpConfig.configStepTitle')}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x319),'children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x363),'children':'1'}),_0x586247['t'](_0x2ec7c5(0x1fb))]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bb),'children':[i['jsx']('span',{'className':_0x2ec7c5(0x363),'children':'2'}),_0x586247['t'](_0x2ec7c5(0x36b))]}),i[_0x2ec7c5(0x243)]('div',{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x363),'children':'3'}),_0x586247['t'](_0x2ec7c5(0x2aa))]})]})]})]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bc),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x36a),'children':'MCP\x20Configuration'}),i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2dc),'children':i[_0x2ec7c5(0x265)](_0x2ec7c5(0x349),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x2ec7c5(0x2c8)]({'mcpServers':{'univer':{'url':_0x2ec7c5(0x36e)+(_0x143ced||_0x2ec7c5(0x295)),'type':_0x2ec7c5(0x378),'headers':{'Authorization':_0x2ec7c5(0x252)+(_0x190efc||_0x2ec7c5(0x2de))}}}},null,0x2)})})]}),i['jsxs']('div',{'className':_0x2ec7c5(0x21f),'children':[i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x36a),'children':_0x586247['t'](_0x2ec7c5(0x253))}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-2','children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x357),'children':[i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x29f)}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x20b),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2ec7c5(0x296)}),i['jsx']('div',{'className':_0x2ec7c5(0x37a),'children':_0x586247['t']('mcpConfig.sessionIdDescription')})]})]}),i['jsxs']('div',{'className':_0x2ec7c5(0x357),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x29f)}),i['jsxs'](_0x2ec7c5(0x379),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x2ec7c5(0x265)]('div',{'className':_0x2ec7c5(0x24c),'children':_0x2ec7c5(0x2a8)}),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x586247['t'](_0x2ec7c5(0x346))})]})]})]})]})]})]}),i['jsx'](f[_0x2ec7c5(0x23b)],{'onClick':_0x554bf4,'disabled':!_0x65dab0||_0x282757,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x282757?i['jsxs'](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'children':'⟲'}),_0x586247['t']('mcpConfig.saving')]}):i[_0x2ec7c5(0x243)]('span',{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](H,{}),_0x586247['t'](_0x2ec7c5(0x229))]})}),i[_0x2ec7c5(0x265)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x1f7),'children':'💡'}),i[_0x2ec7c5(0x243)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),i[_0x2ec7c5(0x243)]('div',{'children':['•',_0x586247['t'](_0x2ec7c5(0x353))]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'children':['•',_0x586247['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x360554(0x354),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x360554(0x31f)],xe=(_0x363007,_0x10b516,_0xbff49,_0x5ba170)=>{for(var _0x4a9ad3=_0x5ba170>0x1?void 0x0:_0x5ba170?me(_0x10b516,_0xbff49):_0x10b516,_0xef6279=_0x363007['length']-0x1,_0x1bd27b;_0xef6279>=0x0;_0xef6279--)(_0x1bd27b=_0x363007[_0xef6279])&&(_0x4a9ad3=_0x1bd27b(_0x4a9ad3)||_0x4a9ad3);return _0x4a9ad3;},g=(_0x391413,_0x17dd8b)=>(_0x511f2f,_0x5f4e1c)=>_0x17dd8b(_0x511f2f,_0x5f4e1c,_0x391413);const O=_0x360554(0x210),D=_0x360554(0x2e3);exports[_0x360554(0x25d)]=class extends u[_0x360554(0x2f1)]{constructor(_0x3d422d,_0x2be2b1,_0x4ca31c,_0x27d417,_0x2c382e,_0x5b06c9,_0x3ea9be,_0x3173f2,_0x2a67ba,_0x41e441){const _0x114498=_0x360554;super(),I(this,_0x114498(0x21a),new M[(_0x114498(0x332))](!0x1)),I(this,_0x114498(0x256),new M[(_0x114498(0x332))]({})),I(this,_0x114498(0x276),new M[(_0x114498(0x332))]({})),I(this,_0x114498(0x306),new M[(_0x114498(0x332))]('')),I(this,_0x114498(0x25e),async _0x5d4179=>{const _0x563f75=_0x114498;var _0x22e966,_0x4bd035;this[_0x563f75(0x21a)][_0x563f75(0x236)](!0x0);try{const _0x1b3c38=await this[_0x563f75(0x2bf)](_0x5d4179);if(!_0x1b3c38[_0x563f75(0x1f3)]){this[_0x563f75(0x2c1)]['show']({'type':f[_0x563f75(0x318)][_0x563f75(0x36f)],'content':_0x1b3c38['errorMessage']||this[_0x563f75(0x20e)]['t'](_0x563f75(0x2c7))});return;}_0x5d4179[_0x563f75(0x297)]?await this[_0x563f75(0x2d1)][_0x563f75(0x2e2)](O,_0x5d4179['apiKey'][_0x563f75(0x21b)]()):await this[_0x563f75(0x2d1)]['removeItem'](O),this[_0x563f75(0x306)]['next'](((_0x22e966=_0x5d4179['apiKey'])==null?void 0x0:_0x22e966[_0x563f75(0x21b)]())||''),this[_0x563f75(0x34c)][_0x563f75(0x2ce)]({'Authorization':'Bearer\x20'+((_0x4bd035=_0x5d4179[_0x563f75(0x297)])==null?void 0x0:_0x4bd035[_0x563f75(0x21b)]())}),this[_0x563f75(0x2c1)][_0x563f75(0x20c)]({'type':f[_0x563f75(0x318)][_0x563f75(0x323)],'content':this[_0x563f75(0x20e)]['t'](_0x563f75(0x321))}),setTimeout(()=>{this['_dialogService']['close'](D);},0x320);}catch(_0x260f3e){this['_logService'][_0x563f75(0x292)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x260f3e),this[_0x563f75(0x2c1)]['show']({'type':f[_0x563f75(0x318)]['Error'],'content':this[_0x563f75(0x20e)]['t'](_0x563f75(0x205))});}finally{this[_0x563f75(0x21a)][_0x563f75(0x236)](!0x1);}}),(this[_0x114498(0x304)]=_0x3d422d,this[_0x114498(0x216)]=_0x2be2b1,this[_0x114498(0x24a)]=_0x4ca31c,this[_0x114498(0x2d1)]=_0x27d417,this['_dialogService']=_0x2c382e,this[_0x114498(0x2c1)]=_0x5b06c9,this[_0x114498(0x26c)]=_0x3ea9be,this[_0x114498(0x20e)]=_0x3173f2,this['_logService']=_0x2a67ba,this[_0x114498(0x34c)]=_0x41e441,this['_initConfigSync'](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0x360554(0x2a4)](){const _0x37e575=_0x360554,_0x34ae67=this[_0x37e575(0x24a)][_0x37e575(0x2ec)](P);_0x34ae67!=null&&_0x34ae67[_0x37e575(0x294)]&&this[_0x37e575(0x334)][_0x37e575(0x226)]({'id':D,'title':{'title':this['_localeService']['t'](_0x37e575(0x30f))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x47abca=_0x37e575;this[_0x47abca(0x334)][_0x47abca(0x341)](D);}});}[_0x360554(0x31c)](){const _0x2b374c=_0x360554;return this[_0x2b374c(0x256)]['value'];}['_registerComponent'](){const _0xab1573=_0x360554;this['disposeWithMe'](this['_componentManager'][_0xab1573(0x2e1)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){const _0x366087=_0x360554;return v[_0x366087(0x34e)](()=>{const _0x3cdb79=_0x366087;var _0x9456bc,_0x3800bf,_0x5a3e64;return i['jsx'](V,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x3cdb79(0x256)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x3cdb79(0x25e)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x9456bc=this[_0x3cdb79(0x34c)])==null?void 0x0:_0x9456bc[_0x3cdb79(0x1ff)],'connectionError$':(_0x3800bf=this['_mcpConnectionController'])==null?void 0x0:_0x3800bf[_0x3cdb79(0x301)],'currentSessionId$':(_0x5a3e64=this[_0x3cdb79(0x34c)])==null?void 0x0:_0x5a3e64[_0x3cdb79(0x2be)]});},this[_0x366087(0x304)]);}[_0x360554(0x278)](){const _0x1d526c=_0x360554;this['disposeWithMe'](this[_0x1d526c(0x24a)][_0x1d526c(0x201)](s[_0x1d526c(0x27a)])['subscribe'](_0x1fd00a=>{const _0x51ea15=_0x1d526c;this[_0x51ea15(0x256)]['next'](_0x1fd00a||{});}));const _0x3291f7=this[_0x1d526c(0x24a)]['getConfig'](s[_0x1d526c(0x27a)]);this[_0x1d526c(0x256)][_0x1d526c(0x236)](_0x3291f7||{}),this[_0x1d526c(0x32c)](this[_0x1d526c(0x24a)][_0x1d526c(0x201)](P)[_0x1d526c(0x2d6)](_0xb6cd47=>{const _0x2c4497=_0x1d526c;this[_0x2c4497(0x276)][_0x2c4497(0x236)](_0xb6cd47||{});}));const _0x58ee8b=this[_0x1d526c(0x24a)][_0x1d526c(0x2ec)](P);this[_0x1d526c(0x276)][_0x1d526c(0x236)](_0x58ee8b||{});}async[_0x360554(0x2b1)](){const _0x2e8c59=_0x360554,_0x1dfb48=this[_0x2e8c59(0x24a)][_0x2e8c59(0x2ec)](P);if(!(_0x1dfb48!=null&&_0x1dfb48['showDeveloperTools']))return;const _0x39657d=await this[_0x2e8c59(0x2d1)]['getItem'](O);_0x39657d&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x2e8c59(0x252)+_0x39657d}),this[_0x2e8c59(0x306)]['next'](_0x39657d));}async[_0x360554(0x2bf)](_0x5e8c2a){const _0x43ff2f=_0x360554;if(!_0x5e8c2a[_0x43ff2f(0x297)]||_0x5e8c2a[_0x43ff2f(0x297)][_0x43ff2f(0x21b)]()[_0x43ff2f(0x345)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x43ff2f(0x2cf))};if(_0x5e8c2a[_0x43ff2f(0x297)][_0x43ff2f(0x21b)]()[_0x43ff2f(0x345)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x43ff2f(0x20e)]['t'](_0x43ff2f(0x218))};try{const _0x43fb75=await this[_0x43ff2f(0x304)][_0x43ff2f(0x26a)](s[_0x43ff2f(0x217)])[_0x43ff2f(0x26b)](_0x5e8c2a[_0x43ff2f(0x297)][_0x43ff2f(0x21b)]());return _0x43fb75['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x43fb75['error']||this[_0x43ff2f(0x20e)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2f5090){return console[_0x43ff2f(0x366)](_0x43ff2f(0x32d),_0x2f5090),{'isValid':!0x0};}}},exports[_0x360554(0x25d)]=xe([g(0x0,u['Inject'](u[_0x360554(0x375)])),g(0x1,v[_0x360554(0x28a)]),g(0x2,u[_0x360554(0x2b5)]),g(0x3,u[_0x360554(0x336)]),g(0x4,v[_0x360554(0x2f2)]),g(0x5,v[_0x360554(0x214)]),g(0x6,u[_0x360554(0x302)](v['ComponentManager'])),g(0x7,u[_0x360554(0x302)](u[_0x360554(0x233)])),g(0x8,u[_0x360554(0x248)]),g(0x9,u[_0x360554(0x302)](s[_0x360554(0x217)]))],exports[_0x360554(0x25d)]);const b={'id':_0x360554(0x356),'type':u[_0x360554(0x2fb)]['COMMAND'],'handler':async(_0x483a94,_0xb4b5c8)=>(_0x483a94[_0x360554(0x26a)](exports[_0x360554(0x25d)])[_0x360554(0x2a4)](),!0x0)};function Z(_0x3fcbf0,_0x5caf0f){const _0x373a44=_0x360554;switch(_0x3fcbf0){case s[_0x373a44(0x35a)][_0x373a44(0x335)]:return _0x373a44(0x2ee);case s['MCPConnectionStatus'][_0x373a44(0x212)]:return _0x373a44(0x219);case s[_0x373a44(0x35a)]['CONNECTED']:return _0x373a44(0x27b);case s[_0x373a44(0x35a)][_0x373a44(0x2ab)]:switch(_0x5caf0f){case s[_0x373a44(0x373)][_0x373a44(0x333)]:return'mcpStatus.unauthorized';case s[_0x373a44(0x373)][_0x373a44(0x241)]:return _0x373a44(0x361);case s[_0x373a44(0x373)][_0x373a44(0x203)]:return _0x373a44(0x224);case s[_0x373a44(0x373)][_0x373a44(0x2d4)]:return _0x373a44(0x362);default:return _0x373a44(0x31a);}case s['MCPConnectionStatus'][_0x373a44(0x2d8)]:return _0x373a44(0x23c);default:return _0x373a44(0x35e);}}function Se(_0x192e2a,_0xc08b04,_0x1f060b,_0x166e93=!0x0){const _0xfb9b80=_0x360554,_0x10f06e=Z(_0x192e2a,_0xc08b04),_0x1b1351=_0x1f060b['t'](_0x10f06e);return _0x166e93?_0x192e2a===s['MCPConnectionStatus'][_0xfb9b80(0x335)]&&_0xc08b04===s[_0xfb9b80(0x373)][_0xfb9b80(0x333)]?_0x1b1351+'\x20-\x20'+_0x1f060b['t'](_0xfb9b80(0x2a0)):_0x192e2a===s[_0xfb9b80(0x35a)][_0xfb9b80(0x259)]?''+_0x1b1351:_0x192e2a===s['MCPConnectionStatus'][_0xfb9b80(0x335)]||_0x192e2a===s[_0xfb9b80(0x35a)]['FAILED']?_0x1b1351+_0xfb9b80(0x245)+_0x1f060b['t'](_0xfb9b80(0x305)):_0x1b1351:_0x1b1351;}function Pe(_0x58ddc9){const _0xeb890e=_0x360554;switch(_0x58ddc9){case s['MCPConnectionStatus'][_0xeb890e(0x259)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0xeb890e(0x212)]:case s['MCPConnectionStatus']['RETRYING']:return'univer-text-yellow-500';case s[_0xeb890e(0x35a)]['FAILED']:case s[_0xeb890e(0x35a)][_0xeb890e(0x335)]:return _0xeb890e(0x365);default:return'univer-text-gray-500';}}function W(_0x1cdf4b){const _0x375d94=_0x360554,{status$:_0x43d770,error$:_0x5c926e,onConfigure:_0x517c4a,showClickable:_0x47eba7=!0x0}=_0x1cdf4b,_0x53187e=v['useObservable'](_0x43d770,s[_0x375d94(0x35a)][_0x375d94(0x335)]),_0x12ce61=v[_0x375d94(0x326)](_0x5c926e,s[_0x375d94(0x373)]['NONE']),_0xe7a498=v[_0x375d94(0x29c)](u['LocaleService']),_0x191460=_0x53187e===s[_0x375d94(0x35a)][_0x375d94(0x259)];_0x53187e===s['MCPConnectionStatus']['CONNECTING']||s[_0x375d94(0x35a)]['RETRYING'];const _0x498def=_0xe7a498['t'](Z(_0x53187e,_0x12ce61)),_0x610544=Se(_0x53187e,_0x12ce61,_0xe7a498,_0x47eba7),_0x2f96fa=Pe(_0x53187e),_0x316baa=_0x191460?i[_0x375d94(0x265)](q,{}):i[_0x375d94(0x265)](Y,{}),_0x1733bd=d[_0x375d94(0x31b)](()=>{_0x47eba7&&_0x517c4a&&_0x517c4a();},[_0x47eba7,_0x517c4a]);function _0x4a586b(){const _0x6cfa8b=_0x375d94;return i[_0x6cfa8b(0x243)](_0x6cfa8b(0x379),{'className':f[_0x6cfa8b(0x2cc)]('univer-flex\x20univer-items-center',_0x47eba7&&_0x517c4a&&_0x6cfa8b(0x358)),'role':'button','onClick':_0x47eba7&&_0x517c4a?_0x1733bd:void 0x0,'children':[i['jsx']('div',{'className':f['clsx'](_0x6cfa8b(0x325),_0x2f96fa),'children':_0x316baa}),i[_0x6cfa8b(0x265)](_0x6cfa8b(0x379),{'className':_0x6cfa8b(0x26d),'children':_0x498def})]});}return i['jsx'](f[_0x375d94(0x287)],{'title':_0x610544,'placement':'bottom','children':_0x4a586b()});}var Ie=Object[_0x360554(0x31f)],_e=(_0x44cc7e,_0x441531,_0x9cf66f,_0x2184d6)=>{const _0x29d5dc=_0x360554;for(var _0x1fe5a2=_0x2184d6>0x1?void 0x0:_0x2184d6?Ie(_0x441531,_0x9cf66f):_0x441531,_0x5ef1bb=_0x44cc7e[_0x29d5dc(0x345)]-0x1,_0x243c0b;_0x5ef1bb>=0x0;_0x5ef1bb--)(_0x243c0b=_0x44cc7e[_0x5ef1bb])&&(_0x1fe5a2=_0x243c0b(_0x1fe5a2)||_0x1fe5a2);return _0x1fe5a2;},N=(_0x396183,_0x1ef7ea)=>(_0x255d8d,_0x53afcc)=>_0x1ef7ea(_0x255d8d,_0x53afcc,_0x396183);exports['MCPConnectionUIController']=class extends u[_0x360554(0x2f1)]{constructor(_0x2ba38c,_0x143fe8,_0x5b2bdb,_0x405fda){const _0x4dd8ee=_0x360554;super(),this[_0x4dd8ee(0x304)]=_0x2ba38c,this['_connectionController']=_0x143fe8,this['_uiPartsService']=_0x5b2bdb,this['_configService']=_0x405fda,this[_0x4dd8ee(0x260)](),this['_initStatusComponent']();}[_0x360554(0x260)](){const _0x9e6d4a=_0x360554,_0x320d72=this[_0x9e6d4a(0x24a)][_0x9e6d4a(0x2ec)](P);_0x320d72!=null&&_0x320d72[_0x9e6d4a(0x294)]&&(this[_0x9e6d4a(0x282)][_0x9e6d4a(0x237)]=!0x1);}['_initStatusComponent'](){const _0x5b317b=_0x360554,_0x7b14c0=this[_0x5b317b(0x24a)][_0x5b317b(0x2ec)](P);(_0x7b14c0==null?void 0x0:_0x7b14c0[_0x5b317b(0x31d)])!==!0x1&&this[_0x5b317b(0x32c)](this[_0x5b317b(0x216)][_0x5b317b(0x2d9)](v[_0x5b317b(0x22b)][_0x5b317b(0x313)],()=>{const _0x5728aa=_0x5b317b;var _0x35d985;return v[_0x5728aa(0x34e)](ye({'status$':this['_connectionController'][_0x5728aa(0x1ff)],'error$':this[_0x5728aa(0x282)][_0x5728aa(0x301)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x35d985=_0x7b14c0==null?void 0x0:_0x7b14c0[_0x5728aa(0x294)])!=null?_0x35d985:!0x1}),this[_0x5728aa(0x304)]);}));}['_handleConfigure'](){const _0x5541b3=_0x360554;this[_0x5541b3(0x304)][_0x5541b3(0x26a)](exports['MCPConfigUIController'])[_0x5541b3(0x2a4)]();}},exports[_0x360554(0x286)]=_e([N(0x0,u[_0x360554(0x302)](u['Injector'])),N(0x1,u[_0x360554(0x302)](s[_0x360554(0x217)])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x360554(0x2b5)])],exports[_0x360554(0x286)]);function ye(_0x2b9331){const {status$:_0x3ce0a4,error$:_0x597238,onConfigure:_0x2752c4,showClickable:_0x39d222}=_0x2b9331;return function(){const _0x2252af=_0x5312;return i[_0x2252af(0x265)](W,{'status$':_0x3ce0a4,'error$':_0x597238,'onConfigure':_0x2752c4,'showClickable':_0x39d222});};}function Me(_0x5bef5b){const _0xe2121c=_0x360554;return{'id':b['id'],'type':v[_0xe2121c(0x2fe)][_0xe2121c(0x311)],'icon':_0xe2121c(0x2dd),'title':_0xe2121c(0x30f),'tooltip':_0xe2121c(0x30f)};}const Ne={[v[_0x360554(0x351)][_0x360554(0x2f4)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x15ad76,_0x4f9bb2,_0x6d6a43,_0x539103)=>{const _0x2d903d=_0x360554;for(var _0x19366d=_0x539103>0x1?void 0x0:_0x539103?be(_0x4f9bb2,_0x6d6a43):_0x4f9bb2,_0x587135=_0x15ad76[_0x2d903d(0x345)]-0x1,_0x4284a6;_0x587135>=0x0;_0x587135--)(_0x4284a6=_0x15ad76[_0x587135])&&(_0x19366d=_0x4284a6(_0x19366d)||_0x19366d);return _0x19366d;},z=(_0x3ce24b,_0x22387a)=>(_0x4e1658,_0x45c7c8)=>_0x22387a(_0x4e1658,_0x45c7c8,_0x3ce24b);exports[_0x360554(0x22e)]=class extends u[_0x360554(0x2f1)]{constructor(_0x34c0d5,_0x4f8a7d){const _0x3edd09=_0x360554;super(),this['_commandService']=_0x34c0d5,this[_0x3edd09(0x1f8)]=_0x4f8a7d,this[_0x3edd09(0x2da)](),this[_0x3edd09(0x377)]();}[_0x360554(0x2da)](){const _0x10875e=_0x360554;[b][_0x10875e(0x247)](_0x2c09b1=>{const _0x1a9161=_0x10875e;this[_0x1a9161(0x32c)](this['_commandService'][_0x1a9161(0x36c)](_0x2c09b1));});}[_0x360554(0x377)](){const _0x53c892=_0x360554;this[_0x53c892(0x1f8)]['mergeMenu'](Ne);}},exports[_0x360554(0x22e)]=je([z(0x0,u[_0x360554(0x1f2)]),z(0x1,v['IMenuManagerService'])],exports[_0x360554(0x22e)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x360554(0x33d),'failed':_0x360554(0x30b),'retrying':_0x360554(0x2e8),'unknown':_0x360554(0x2f0),'unauthorized':_0x360554(0x344),'sessionOccupied':_0x360554(0x2ba),'networkError':_0x360554(0x2e0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x360554(0x2b9),'clickToConfigure':_0x360554(0x327)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x360554(0x33c),'apiKey':_0x360554(0x24d),'apiKeyPlaceholder':_0x360554(0x238),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x360554(0x309),'enableAuthHint':_0x360554(0x281),'connectionInfo':_0x360554(0x1fa),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x360554(0x308),'configStepTitle':_0x360554(0x28f),'configStep1':_0x360554(0x2ad),'configStep2':_0x360554(0x303),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x360554(0x24e),'sessionIdDescription':_0x360554(0x355),'authorizationDescription':_0x360554(0x34f),'configParameters':_0x360554(0x2f5),'maxRetries':_0x360554(0x271),'save':_0x360554(0x29a),'saving':'Saving...','note1':_0x360554(0x24b),'note2':_0x360554(0x337),'configSaved':_0x360554(0x213),'configError':_0x360554(0x22d),'apiApplyInfo':{'title':_0x360554(0x30d),'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':_0x360554(0x220),'getStarted':_0x360554(0x33e)},'validation':{'apiKeyRequired':_0x360554(0x2b2),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x360554(0x242)},'connectionStatus':{'disconnected':_0x360554(0x2b3),'connecting':_0x360554(0x32e),'connected':_0x360554(0x338),'failed':_0x360554(0x370),'retrying':_0x360554(0x2ae)},'connectionError':{'unauthorized':_0x360554(0x340),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x360554(0x244),'maxRetriesExceeded':_0x360554(0x316)}}},we={'mcpStatus':{'disconnected':_0x360554(0x324),'connecting':_0x360554(0x320),'connected':_0x360554(0x2d2),'failed':'MCP\x20连接失败','retrying':_0x360554(0x360),'unknown':_0x360554(0x261),'unauthorized':_0x360554(0x343),'sessionOccupied':_0x360554(0x215),'networkError':_0x360554(0x2a3),'maxRetriesExceeded':_0x360554(0x273),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x360554(0x28b)},'mcpConfig':{'title':_0x360554(0x22a),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x360554(0x25c),'apiKeyPlaceholder':_0x360554(0x307),'apiKeyHint':_0x360554(0x298),'enableAuth':_0x360554(0x30a),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x360554(0x32f),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x360554(0x2d3),'configStepTitle':'配置步骤:','configStep1':_0x360554(0x317),'configStep2':_0x360554(0x35c),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x360554(0x2f8),'sessionIdDescription':_0x360554(0x291),'authorizationDescription':_0x360554(0x2a9),'configParameters':_0x360554(0x2ac),'maxRetries':_0x360554(0x1f6),'save':_0x360554(0x2fa),'saving':_0x360554(0x230),'note1':_0x360554(0x2f3),'note2':_0x360554(0x280),'configSaved':_0x360554(0x2c6),'configError':_0x360554(0x21c),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x360554(0x2d0),'univerAiLabel':_0x360554(0x2c9),'getStarted':_0x360554(0x264)},'validation':{'apiKeyRequired':_0x360554(0x322),'apiKeyTooShort':_0x360554(0x2ed),'invalidConfig':_0x360554(0x31e),'invalidApiKey':_0x360554(0x2c3)},'connectionStatus':{'disconnected':'未连接','connecting':_0x360554(0x1fd),'connected':_0x360554(0x329),'failed':_0x360554(0x2ca),'retrying':_0x360554(0x28e)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x360554(0x20f),'networkError':_0x360554(0x33b),'maxRetriesExceeded':_0x360554(0x2fd)}}};var Ae=Object[_0x360554(0x27e)],Oe=Object[_0x360554(0x31f)],De=(_0x31a63c,_0x58151a,_0xff2c9b)=>_0x58151a in _0x31a63c?Ae(_0x31a63c,_0x58151a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xff2c9b}):_0x31a63c[_0x58151a]=_0xff2c9b,Ue=(_0x5d00b2,_0x14cfb7,_0x4cd942,_0x35f9d2)=>{const _0x3201d5=_0x360554;for(var _0x40b0df=_0x35f9d2>0x1?void 0x0:_0x35f9d2?Oe(_0x14cfb7,_0x4cd942):_0x14cfb7,_0xf207f0=_0x5d00b2[_0x3201d5(0x345)]-0x1,_0x3acfba;_0xf207f0>=0x0;_0xf207f0--)(_0x3acfba=_0x5d00b2[_0xf207f0])&&(_0x40b0df=_0x3acfba(_0x40b0df)||_0x40b0df);return _0x40b0df;},y=(_0x3ec787,_0x20d08a)=>(_0x4f6c6f,_0x59f447)=>_0x20d08a(_0x4f6c6f,_0x59f447,_0x3ec787),$e=(_0x2d5c68,_0x378a11,_0x48178a)=>De(_0x2d5c68,_0x378a11+'',_0x48178a);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x38f803=L,_0x1bfece,_0x1a87b6,_0x306270,_0x396284,_0x4873b7){const _0x3f492d=_0x360554;super(),this[_0x3f492d(0x2a7)]=_0x38f803,this[_0x3f492d(0x304)]=_0x1bfece,this[_0x3f492d(0x24a)]=_0x1a87b6,this[_0x3f492d(0x216)]=_0x306270,this[_0x3f492d(0x2d1)]=_0x396284,this[_0x3f492d(0x20e)]=_0x4873b7;const {..._0x3db70d}=u[_0x3f492d(0x227)]({},L,this[_0x3f492d(0x2a7)]);this[_0x3f492d(0x24a)][_0x3f492d(0x314)](P,_0x3db70d);}async[_0x360554(0x25a)](){const _0x467773=_0x360554,_0x5afc4b=[[exports[_0x467773(0x286)]],[exports[_0x467773(0x25d)]],[exports[_0x467773(0x22e)]]];this[_0x467773(0x304)][_0x467773(0x26e)](A[_0x467773(0x2f7)])||_0x5afc4b[_0x467773(0x24f)]([A[_0x467773(0x2f7)],{'useClass':A[_0x467773(0x272)]}]),_0x5afc4b[_0x467773(0x247)](_0x58add0=>this[_0x467773(0x304)]['add'](_0x58add0)),this[_0x467773(0x304)][_0x467773(0x26a)](exports[_0x467773(0x286)]),this[_0x467773(0x304)][_0x467773(0x26a)](exports[_0x467773(0x25d)]),this[_0x467773(0x304)]['get'](exports[_0x467773(0x22e)]);}},$e(exports['UniverMCPUIPlugin'],'pluginName',_0x360554(0x330)),exports[_0x360554(0x310)]=Ue([u['DependentOn'](s[_0x360554(0x33a)]),y(0x1,u[_0x360554(0x302)](u['Injector'])),y(0x2,u[_0x360554(0x2b5)]),y(0x3,v[_0x360554(0x28a)]),y(0x4,u[_0x360554(0x336)]),y(0x5,u['Inject'](u['LocaleService']))],exports[_0x360554(0x310)]),exports[_0x360554(0x2ea)]=V,exports[_0x360554(0x2bd)]=W,exports[_0x360554(0x2e4)]=b,exports[_0x360554(0x207)]=Ee,exports['zhCN']=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2b9eee=_0x2ba8;(function(_0x21ae4d,_0x2af067){const _0x3ab943=_0x2ba8,_0x3ce9cc=_0x21ae4d();while(!![]){try{const _0x10bed8=parseInt(_0x3ab943(0x78))/0x1+parseInt(_0x3ab943(0x79))/0x2+-parseInt(_0x3ab943(0x6f))/0x3+parseInt(_0x3ab943(0x6c))/0x4+-parseInt(_0x3ab943(0x90))/0x5*(-parseInt(_0x3ab943(0x72))/0x6)+parseInt(_0x3ab943(0x92))/0x7+parseInt(_0x3ab943(0x81))/0x8*(-parseInt(_0x3ab943(0x95))/0x9);if(_0x10bed8===_0x2af067)break;else _0x3ce9cc['push'](_0x3ce9cc['shift']());}catch(_0x5881e0){_0x3ce9cc['push'](_0x3ce9cc['shift']());}}}(_0x2603,0xc75be));function _0x2603(){const _0x229832=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Disconnected','9SKzdLP','Univer\x20AI\x20Console','What\x20is\x20API\x20Key?','Connecting...','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Steps:','Connected','6347380Urqbia','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','3989604PIwBEE','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','622452CVYBbI','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1504819QZWuXp','2761260XmkwDD','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connected','API\x20Key','MCP\x20Configuration','27505712iACzLO','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','50FTpLiQ','MCP:\x20Network\x20Error','524594Estxid'];_0x2603=function(){return _0x229832;};return _0x2603();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2b9eee(0x86),'connected':_0x2b9eee(0x7e),'failed':_0x2b9eee(0x74),'retrying':_0x2b9eee(0x8a),'unknown':_0x2b9eee(0x7c),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2b9eee(0x7a),'networkError':_0x2b9eee(0x91),'maxRetriesExceeded':_0x2b9eee(0x71),'clickToConnect':_0x2b9eee(0x88),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2b9eee(0x80),'description':_0x2b9eee(0x6d),'apiKey':_0x2b9eee(0x7f),'apiKeyPlaceholder':_0x2b9eee(0x83),'apiKeyHint':_0x2b9eee(0x87),'enableAuth':_0x2b9eee(0x99),'enableAuthHint':_0x2b9eee(0x7d),'connectionInfo':_0x2b9eee(0x82),'mcpClientConfig':_0x2b9eee(0x82),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2b9eee(0x9b),'configStep1':_0x2b9eee(0x85),'configStep2':_0x2b9eee(0x8f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x2b9eee(0x73),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2b9eee(0x70),'save':_0x2b9eee(0x6e),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2b9eee(0x8e),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2b9eee(0x89),'apiApplyInfo':{'title':_0x2b9eee(0x97),'description':_0x2b9eee(0x8d),'univerAiLabel':_0x2b9eee(0x96),'getStarted':_0x2b9eee(0x7b)},'validation':{'apiKeyRequired':_0x2b9eee(0x84),'apiKeyTooShort':_0x2b9eee(0x8c),'invalidConfig':_0x2b9eee(0x76),'invalidApiKey':_0x2b9eee(0x9a)},'connectionStatus':{'disconnected':_0x2b9eee(0x94),'connecting':_0x2b9eee(0x98),'connected':_0x2b9eee(0x6b),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2b9eee(0x8b),'sessionOccupied':_0x2b9eee(0x75),'networkError':_0x2b9eee(0x93),'maxRetriesExceeded':_0x2b9eee(0x77)}}},n=e;function _0x2ba8(_0x3399de,_0x13e0b6){const _0x2603da=_0x2603();return _0x2ba8=function(_0x2ba8e4,_0x10449a){_0x2ba8e4=_0x2ba8e4-0x6b;let _0xb27c4c=_0x2603da[_0x2ba8e4];return _0xb27c4c;},_0x2ba8(_0x3399de,_0x13e0b6);}module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x4b54(){const _0x3464a7=['5543536bXqYgJ','6BQqEZb','MCP\x20Connecting...','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','145885yrJtzU','MCP\x20Connected','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Connected','Configuration\x20Parameters:','95373KEYoRf','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Retrying...','What\x20is\x20API\x20Key?','Enable\x20Authentication','Session\x20ID','3EREunJ','Enter\x20your\x20API\x20key','1540XCkYET','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Unknown\x20Status','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','5356255jjVjFd','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','5667361hePQaI','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1792172vNJfOm','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1902984RVQTVi','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x4b54=function(){return _0x3464a7;};return _0x4b54();}const _0xa2fc91=_0xf448;(function(_0x170aa7,_0x339b9b){const _0x5c43a5=_0xf448,_0xbc7c7c=_0x170aa7();while(!![]){try{const _0x282094=-parseInt(_0x5c43a5(0x1a8))/0x1+-parseInt(_0x5c43a5(0x19c))/0x2+parseInt(_0x5c43a5(0x186))/0x3*(parseInt(_0x5c43a5(0x1a1))/0x4)+parseInt(_0x5c43a5(0x193))/0x5+-parseInt(_0x5c43a5(0x1a4))/0x6*(parseInt(_0x5c43a5(0x195))/0x7)+-parseInt(_0x5c43a5(0x1a3))/0x8+-parseInt(_0x5c43a5(0x17f))/0x9*(-parseInt(_0x5c43a5(0x188))/0xa);if(_0x282094===_0x339b9b)break;else _0xbc7c7c['push'](_0xbc7c7c['shift']());}catch(_0x129f82){_0xbc7c7c['push'](_0xbc7c7c['shift']());}}}(_0x4b54,0x9ae1f));const e={'mcpStatus':{'disconnected':_0xa2fc91(0x1a6),'connecting':_0xa2fc91(0x1a5),'connected':_0xa2fc91(0x1a9),'failed':_0xa2fc91(0x1ae),'retrying':_0xa2fc91(0x1ac),'unknown':_0xa2fc91(0x18f),'unauthorized':_0xa2fc91(0x1af),'sessionOccupied':_0xa2fc91(0x19e),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xa2fc91(0x1ab),'clickToConnect':_0xa2fc91(0x180),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xa2fc91(0x190),'description':_0xa2fc91(0x19b),'apiKey':_0xa2fc91(0x18c),'apiKeyPlaceholder':_0xa2fc91(0x187),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0xa2fc91(0x184),'enableAuthHint':_0xa2fc91(0x17c),'connectionInfo':_0xa2fc91(0x1ad),'mcpClientConfig':_0xa2fc91(0x1ad),'configInstructions':_0xa2fc91(0x189),'configStepTitle':_0xa2fc91(0x192),'configStep1':_0xa2fc91(0x197),'configStep2':_0xa2fc91(0x19d),'configStep3':_0xa2fc91(0x19a),'sessionId':_0xa2fc91(0x185),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xa2fc91(0x1a7),'configParameters':_0xa2fc91(0x17e),'maxRetries':_0xa2fc91(0x198),'save':_0xa2fc91(0x196),'saving':_0xa2fc91(0x1aa),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xa2fc91(0x199),'configError':_0xa2fc91(0x18d),'apiApplyInfo':{'title':_0xa2fc91(0x183),'description':_0xa2fc91(0x191),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xa2fc91(0x19f)},'validation':{'apiKeyRequired':_0xa2fc91(0x18a),'apiKeyTooShort':_0xa2fc91(0x18e),'invalidConfig':_0xa2fc91(0x181),'invalidApiKey':_0xa2fc91(0x18b)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0xa2fc91(0x17d),'failed':_0xa2fc91(0x1b0),'retrying':_0xa2fc91(0x182)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xa2fc91(0x194),'networkError':_0xa2fc91(0x1a0),'maxRetriesExceeded':_0xa2fc91(0x1a2)}}};function _0xf448(_0x1d7f0c,_0x52232f){const _0x4b54b4=_0x4b54();return _0xf448=function(_0xf448e7,_0x5cdf92){_0xf448e7=_0xf448e7-0x17c;let _0x13317f=_0x4b54b4[_0xf448e7];return _0x13317f;},_0xf448(_0x1d7f0c,_0x52232f);}module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x200f1c=_0x24e1;(function(_0xa2ec8a,_0x437828){const _0x244df3=_0x24e1,_0x40cb78=_0xa2ec8a();while(!![]){try{const _0x187f4c=-parseInt(_0x244df3(0x120))/0x1+parseInt(_0x244df3(0x13a))/0x2*(parseInt(_0x244df3(0x134))/0x3)+parseInt(_0x244df3(0x119))/0x4*(-parseInt(_0x244df3(0x11e))/0x5)+parseInt(_0x244df3(0x122))/0x6+parseInt(_0x244df3(0x133))/0x7*(-parseInt(_0x244df3(0x139))/0x8)+-parseInt(_0x244df3(0x12e))/0x9+-parseInt(_0x244df3(0x130))/0xa*(-parseInt(_0x244df3(0x12a))/0xb);if(_0x187f4c===_0x437828)break;else _0x40cb78['push'](_0x40cb78['shift']());}catch(_0x446115){_0x40cb78['push'](_0x40cb78['shift']());}}}(_0x5c8e,0x9fe30));function _0x5c8e(){const _0x523d53=['MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','Max\x20Retries','Connected','MCP:\x20Network\x20Error','Configuration\x20Parameters:','17532790YPThXU','MCP\x20Configuration','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10348866QgIsEE','Retrying...','20HtAQDc','Disconnected','Failed\x20to\x20save\x20configuration','4291091ljXUIk','15393xLqlTp','MCP\x20Disconnected','API\x20key\x20is\x20required','Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','8VNgIFb','46cRDuPO','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','exports','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key','Enable\x20Authentication','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','13436YWCyRA','Univer\x20AI\x20Console','MCP\x20Retrying...','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','1185fOOpTp','Connecting...','96553jGYgnd','MCP\x20Client\x20Configuration','27756yEUJFH','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x5c8e=function(){return _0x523d53;};return _0x5c8e();}function _0x24e1(_0x197cb1,_0x3d7114){const _0x5c8edf=_0x5c8e();return _0x24e1=function(_0x24e147,_0xe7c157){_0x24e147=_0x24e147-0x10a;let _0x247059=_0x5c8edf[_0x24e147];return _0x247059;},_0x24e1(_0x197cb1,_0x3d7114);}const e={'mcpStatus':{'disconnected':_0x200f1c(0x135),'connecting':_0x200f1c(0x124),'connected':_0x200f1c(0x113),'failed':_0x200f1c(0x110),'retrying':_0x200f1c(0x11b),'unknown':_0x200f1c(0x10d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x200f1c(0x128),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x200f1c(0x125),'clickToConfigure':_0x200f1c(0x117)},'mcpConfig':{'title':_0x200f1c(0x12b),'description':_0x200f1c(0x138),'apiKey':_0x200f1c(0x115),'apiKeyPlaceholder':_0x200f1c(0x11c),'apiKeyHint':_0x200f1c(0x10b),'enableAuth':_0x200f1c(0x116),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x200f1c(0x121),'mcpClientConfig':_0x200f1c(0x121),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x200f1c(0x10a),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x200f1c(0x114),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x200f1c(0x11d),'configParameters':_0x200f1c(0x129),'maxRetries':_0x200f1c(0x126),'save':_0x200f1c(0x10e),'saving':_0x200f1c(0x12c),'note1':_0x200f1c(0x10f),'note2':_0x200f1c(0x112),'configSaved':_0x200f1c(0x13c),'configError':_0x200f1c(0x132),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x200f1c(0x123),'univerAiLabel':_0x200f1c(0x11a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x200f1c(0x136),'apiKeyTooShort':_0x200f1c(0x13b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x200f1c(0x118)},'connectionStatus':{'disconnected':_0x200f1c(0x131),'connecting':_0x200f1c(0x11f),'connected':_0x200f1c(0x127),'failed':_0x200f1c(0x137),'retrying':_0x200f1c(0x12f)},'connectionError':{'unauthorized':_0x200f1c(0x12d),'sessionOccupied':_0x200f1c(0x111),'networkError':_0x200f1c(0x10c),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x200f1c(0x13d)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1b2bb3=_0x1ec3;(function(_0x3b61b0,_0x65bfe9){const _0x4404de=_0x1ec3,_0x5b587c=_0x3b61b0();while(!![]){try{const _0x5e5384=-parseInt(_0x4404de(0x112))/0x1+-parseInt(_0x4404de(0x116))/0x2+parseInt(_0x4404de(0xf8))/0x3+-parseInt(_0x4404de(0x10c))/0x4+-parseInt(_0x4404de(0x111))/0x5*(parseInt(_0x4404de(0x108))/0x6)+parseInt(_0x4404de(0xfc))/0x7*(-parseInt(_0x4404de(0x11a))/0x8)+-parseInt(_0x4404de(0x11c))/0x9*(-parseInt(_0x4404de(0x11f))/0xa);if(_0x5e5384===_0x65bfe9)break;else _0x5b587c['push'](_0x5b587c['shift']());}catch(_0x1a1111){_0x5b587c['push'](_0x5b587c['shift']());}}}(_0x3af1,0xf1697));function _0x1ec3(_0x2c2317,_0x4596d8){const _0x3af1da=_0x3af1();return _0x1ec3=function(_0x1ec3f8,_0x5cdbca){_0x1ec3f8=_0x1ec3f8-0xf4;let _0x1bc21c=_0x3af1da[_0x1ec3f8];return _0x1bc21c;},_0x1ec3(_0x2c2317,_0x4596d8);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1b2bb3(0x110),'connected':_0x1b2bb3(0x100),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x1b2bb3(0xf4),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1b2bb3(0x10f),'networkError':_0x1b2bb3(0x118),'maxRetriesExceeded':_0x1b2bb3(0x122),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1b2bb3(0x119),'apiKey':_0x1b2bb3(0x109),'apiKeyPlaceholder':_0x1b2bb3(0x11e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1b2bb3(0x11b),'enableAuthHint':_0x1b2bb3(0x106),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1b2bb3(0x105),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1b2bb3(0x114),'configStep1':_0x1b2bb3(0x102),'configStep2':_0x1b2bb3(0x10e),'configStep3':_0x1b2bb3(0x10a),'sessionId':_0x1b2bb3(0x117),'sessionIdDescription':_0x1b2bb3(0x120),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1b2bb3(0x113),'maxRetries':'Max\x20Retries','save':_0x1b2bb3(0x10d),'saving':'Saving...','note1':_0x1b2bb3(0x11d),'note2':_0x1b2bb3(0xf9),'configSaved':_0x1b2bb3(0x107),'configError':_0x1b2bb3(0x10b),'apiApplyInfo':{'title':_0x1b2bb3(0xfa),'description':_0x1b2bb3(0x101),'univerAiLabel':_0x1b2bb3(0xf7),'getStarted':_0x1b2bb3(0x123)},'validation':{'apiKeyRequired':_0x1b2bb3(0xfe),'apiKeyTooShort':_0x1b2bb3(0xf5),'invalidConfig':_0x1b2bb3(0x121),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1b2bb3(0x115),'connected':_0x1b2bb3(0x103),'failed':_0x1b2bb3(0x104),'retrying':_0x1b2bb3(0x124)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1b2bb3(0xff),'networkError':_0x1b2bb3(0xf6),'maxRetriesExceeded':_0x1b2bb3(0xfd)}}},n=e;module[_0x1b2bb3(0xfb)]=n;function _0x3af1(){const _0x178f43=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','What\x20is\x20API\x20Key?','exports','7FWSAoO','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','Connected','Connection\x20Failed','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','18SHfREv','API\x20Key','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','305216TPjPnb','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','2458100iqVeLw','1086313eweYKx','Configuration\x20Parameters:','Configuration\x20Steps:','Connecting...','1523556PbWfjB','Session\x20ID','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','8994184MEVFrD','Enable\x20Authentication','9BSwvfa','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','38238770rFUUxB','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','5065422GPOhFd'];_0x3af1=function(){return _0x178f43;};return _0x3af1();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x132411=_0x132e;function _0x1606(){const _0x21997f=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','704948wyzteO','API\x20key\x20is\x20required','API\x20Key','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','6998354wJkgnJ','Enable\x20Authentication','Saving...','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','3314690EzFcyt','MCP\x20Connection\x20Failed','MCP\x20Disconnected','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','2492QdcEez','3955UUnuZY','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','123417EKxjJD','Connected','MCP\x20Configuration','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','Invalid\x20configuration','649452PBnZyX','exports','Enable\x20authentication\x20for\x20secure\x20connections','9iNfFii','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','272RSYYWA','MCP\x20Unknown\x20Status','6xjsxro','309656HaDJCs'];_0x1606=function(){return _0x21997f;};return _0x1606();}(function(_0x5060f2,_0x1003a8){const _0x2a2626=_0x132e,_0x42356d=_0x5060f2();while(!![]){try{const _0x260de7=parseInt(_0x2a2626(0x1e7))/0x1+parseInt(_0x2a2626(0x1e5))/0x2*(-parseInt(_0x2a2626(0x1e4))/0x3)+-parseInt(_0x2a2626(0x1ca))/0x4*(-parseInt(_0x2a2626(0x1cb))/0x5)+-parseInt(_0x2a2626(0x1d6))/0x6+parseInt(_0x2a2626(0x1cf))/0x7*(parseInt(_0x2a2626(0x1e2))/0x8)+parseInt(_0x2a2626(0x1d9))/0x9*(-parseInt(_0x2a2626(0x1c5))/0xa)+-parseInt(_0x2a2626(0x1ed))/0xb;if(_0x260de7===_0x1003a8)break;else _0x42356d['push'](_0x42356d['shift']());}catch(_0x1b5635){_0x42356d['push'](_0x42356d['shift']());}}}(_0x1606,0x647de));const e={'mcpStatus':{'disconnected':_0x132411(0x1c7),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x132411(0x1c6),'retrying':'MCP\x20Retrying...','unknown':_0x132411(0x1e3),'unauthorized':_0x132411(0x1c2),'sessionOccupied':_0x132411(0x1ce),'networkError':_0x132411(0x1dc),'maxRetriesExceeded':_0x132411(0x1df),'clickToConnect':_0x132411(0x1c3),'clickToConfigure':_0x132411(0x1c1)},'mcpConfig':{'title':_0x132411(0x1d1),'description':_0x132411(0x1db),'apiKey':_0x132411(0x1e9),'apiKeyPlaceholder':_0x132411(0x1f0),'apiKeyHint':_0x132411(0x1eb),'enableAuth':_0x132411(0x1ee),'enableAuthHint':_0x132411(0x1d8),'connectionInfo':_0x132411(0x1d2),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x132411(0x1c4),'configStep1':_0x132411(0x1c9),'configStep2':_0x132411(0x1e1),'configStep3':_0x132411(0x1e6),'sessionId':'Session\x20ID','sessionIdDescription':_0x132411(0x1d3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x132411(0x1de),'maxRetries':_0x132411(0x1ec),'save':_0x132411(0x1c8),'saving':_0x132411(0x1ef),'note1':_0x132411(0x1da),'note2':_0x132411(0x1c0),'configSaved':_0x132411(0x1cd),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x132411(0x1cc),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x132411(0x1e0)},'validation':{'apiKeyRequired':_0x132411(0x1e8),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x132411(0x1d5),'invalidApiKey':_0x132411(0x1dd)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x132411(0x1d0),'failed':_0x132411(0x1ea),'retrying':_0x132411(0x1d4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x132e(_0x4f5d31,_0x54b06a){const _0x16068e=_0x1606();return _0x132e=function(_0x132eac,_0x2e7140){_0x132eac=_0x132eac-0x1c0;let _0x3ab44f=_0x16068e[_0x132eac];return _0x3ab44f;},_0x132e(_0x4f5d31,_0x54b06a);}module[_0x132411(0x1d7)]=n;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x50bf(_0xea1be2,_0x4b9257){const _0x70042d=_0x7004();return _0x50bf=function(_0x50bf3f,_0x1d5323){_0x50bf3f=_0x50bf3f-0x198;let _0x223b44=_0x70042d[_0x50bf3f];return _0x223b44;},_0x50bf(_0xea1be2,_0x4b9257);}const _0x5e5bdf=_0x50bf;(function(_0x24ed5b,_0x13e998){const _0x557502=_0x50bf,_0x40e0af=_0x24ed5b();while(!![]){try{const _0x12d8f2=-parseInt(_0x557502(0x1c8))/0x1*(-parseInt(_0x557502(0x1c2))/0x2)+parseInt(_0x557502(0x19d))/0x3+parseInt(_0x557502(0x1a8))/0x4*(parseInt(_0x557502(0x1c4))/0x5)+parseInt(_0x557502(0x1c6))/0x6*(-parseInt(_0x557502(0x19f))/0x7)+-parseInt(_0x557502(0x1a0))/0x8*(-parseInt(_0x557502(0x1bb))/0x9)+parseInt(_0x557502(0x1a6))/0xa*(parseInt(_0x557502(0x1a4))/0xb)+-parseInt(_0x557502(0x1a9))/0xc;if(_0x12d8f2===_0x13e998)break;else _0x40e0af['push'](_0x40e0af['shift']());}catch(_0x3ef0e7){_0x40e0af['push'](_0x40e0af['shift']());}}}(_0x7004,0x4c418));const e={'mcpStatus':{'disconnected':_0x5e5bdf(0x19e),'connecting':_0x5e5bdf(0x1c0),'connected':_0x5e5bdf(0x1a1),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5e5bdf(0x1c9),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5e5bdf(0x1af),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5e5bdf(0x1c7),'maxRetriesExceeded':_0x5e5bdf(0x1a5),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5e5bdf(0x1bf),'description':_0x5e5bdf(0x1c1),'apiKey':_0x5e5bdf(0x1b0),'apiKeyPlaceholder':_0x5e5bdf(0x198),'apiKeyHint':_0x5e5bdf(0x1c3),'enableAuth':_0x5e5bdf(0x1c5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5e5bdf(0x1ba),'mcpClientConfig':_0x5e5bdf(0x1ba),'configInstructions':_0x5e5bdf(0x1b3),'configStepTitle':_0x5e5bdf(0x1aa),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5e5bdf(0x1b2),'configStep3':_0x5e5bdf(0x1a2),'sessionId':_0x5e5bdf(0x1a7),'sessionIdDescription':_0x5e5bdf(0x19b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5e5bdf(0x1b9),'maxRetries':_0x5e5bdf(0x1ab),'save':_0x5e5bdf(0x1be),'saving':_0x5e5bdf(0x1ad),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5e5bdf(0x1b4),'configSaved':_0x5e5bdf(0x1b5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x5e5bdf(0x1ac),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5e5bdf(0x1b1),'invalidConfig':_0x5e5bdf(0x199),'invalidApiKey':_0x5e5bdf(0x1bc)},'connectionStatus':{'disconnected':_0x5e5bdf(0x1ae),'connecting':_0x5e5bdf(0x1b6),'connected':'Connected','failed':_0x5e5bdf(0x1b8),'retrying':_0x5e5bdf(0x1a3)},'connectionError':{'unauthorized':_0x5e5bdf(0x1b7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5e5bdf(0x19c),'maxRetriesExceeded':_0x5e5bdf(0x19a)}}},n=e;module[_0x5e5bdf(0x1bd)]=n;function _0x7004(){const _0x5be8ca=['749238hquvuQ','MCP\x20Disconnected','7ppDvZr','8qPArPl','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','242lbsZTw','MCP:\x20Max\x20Retries\x20Exceeded','118490eKOvqJ','Session\x20ID','990088sKtekl','6282720ulUdPZ','Configuration\x20Steps:','Max\x20Retries','Univer\x20AI\x20Console','Saving...','Disconnected','MCP:\x20Unauthorized','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','3669606qOptdz','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','exports','Save\x20Configuration','MCP\x20Configuration','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','26aXTDrz','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5nqzbor','Enable\x20Authentication','2617710JSooTC','MCP:\x20Network\x20Error','8193GgBOII','MCP\x20Retrying...','Enter\x20your\x20API\x20key','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\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.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x7004=function(){return _0x5be8ca;};return _0x7004();}
|