@univerjs-pro/mcp-ui 0.16.0 → 0.16.1-insiders.20260311-074e8ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/plugin.d.ts +2 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x8e8fd5=_0x554f;(function(_0xa77680,_0x17dae1){const _0x2ed277=_0x554f,_0x408bc0=_0xa77680();while(!![]){try{const _0x4181cb=parseInt(_0x2ed277(0x313))/0x1+parseInt(_0x2ed277(0x262))/0x2+parseInt(_0x2ed277(0x236))/0x3+-parseInt(_0x2ed277(0x1e3))/0x4+parseInt(_0x2ed277(0x1ea))/0x5*(parseInt(_0x2ed277(0x26c))/0x6)+parseInt(_0x2ed277(0x1a4))/0x7+-parseInt(_0x2ed277(0x2db))/0x8;if(_0x4181cb===_0x17dae1)break;else _0x408bc0['push'](_0x408bc0['shift']());}catch(_0x20d55d){_0x408bc0['push'](_0x408bc0['shift']());}}}(_0x4b76,0x3701e));var ae=Object[_0x8e8fd5(0x2d6)],le=(_0x19d966,_0x45fbae,_0x5c8679)=>_0x45fbae in _0x19d966?ae(_0x19d966,_0x45fbae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c8679}):_0x19d966[_0x45fbae]=_0x5c8679,I=(_0x2fb70c,_0x130f6d,_0x55dc9a)=>le(_0x2fb70c,typeof _0x130f6d!=_0x8e8fd5(0x215)?_0x130f6d+'':_0x130f6d,_0x55dc9a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x8e8fd5(0x1ce)});function _0x4b76(){const _0x4e6ae0=['MCPConfigUIController','Univer\x20AI\x20控制台','连接中...','univer-space-y-4','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCPConnectionController','_initializeCommands','show','trim','mcpConfig.configStep3','showConfigPanel','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiKeyPlaceholder','defIds','enableAutoConnect','BuiltInUIPart','mcpConfig.apiApplyInfo.title','mcpStatus.connected','MCP\x20Connecting...','mcpConfig.description','http://www.w3.org/2000/svg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.connectionStatus.failed','univer-text-xs\x20univer-text-gray-600','jsxs','forEach','mcpConfig.apiKey','substring','Injector','485814icltdT','Disposable','Plugin','check-mark-icon','mcpStatus.connecting','_apiKey$','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-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','API\x20密钥不能为空','sessionId$','0\x200\x2017\x2016','_initStatusComponent','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','Max\x20Retries','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_localStorageService','MCP\x20已连接','mcpServerUrl','button','subscribeConfigValue$','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','MCP\x20客户端配置','保存中...','value','MCP\x20Connected','RibbonStartGroup','mcpConfig.authorizationDescription','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','超出最大重试次数,请稍后再试','UniverMCPPlugin','on-line-icon_clip0_910_349','MCP\x20已断开','CONNECTING','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','\x20-\x20','setItem','IDialogService','MCP:\x20Session\x20ID\x20Occupied','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_mcpCoreConfig$','配置步骤:','_config','529066EYcKoP','mcp.apiKey','removeItem','off','_config$','univer-bg-gray-500','重连中...','subscribe','<API_KEY>','currentColor','1182ZGQfOw','univer-flex\x20univer-items-center\x20univer-gap-2','_logService','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.validation.apiKeyTooShort','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.networkError','apiKey','mcpConfig.connectionError.unauthorized','close-icon','Save\x20Configuration','univer-text-sm\x20univer-text-gray-500','useCallback','_handleConfigSave','配置无效','url(#on-line-icon_clip0_910_349)','univer-space-y-2','univer-text-xs\x20univer-text-gray-500','MCP\x20状态未知','zhCN','evenodd','mcpConfig.configInstructions','MCPConfigPanel','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-mr-2\x20univer-flex\x20univer-text-xl','useRef','API\x20Key','univer-text-red-500','Get\x20your\x20API\x20key\x20in\x20seconds','ILogService','Success','xlink:href','API\x20key\x20is\x20required','univer-text-blue-600','svg','univer.ai','univerjs-icon\x20univerjs-icon-','mcpConfig.sessionIdDescription','Button','assign','MCP\x20连接失败','has','Enter\x20your\x20API\x20key','Connecting...','_configService','会话ID','useObservable','保存配置','getItem','最大重试次数','error','点击配置\x20MCP','MCP\x20Connection\x20Failed','univer.plus','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','_createConfigPanelComponent','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','children','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex-1','mcpConfig.title','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-bg-red-500','mcpConfig.connectionError.maxRetriesExceeded','_initConfigSync','_componentManager','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.save','_validateConfig','label','noopener\x20noreferrer','connectInjector','_loadStoredApiKey','mcp-config-dialog','univer-text-green-500','mcpConfig.configParameters','HEADER_MENU','mcpConfig.validation.invalidConfig','get','CommandType','mcpStatus.unauthorized','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','span','pluginName','您的\x20API\x20密钥安全存储在本地存储中','getOwnPropertyDescriptor','white','univer-font-medium','1em','setConfig','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','0\x200\x2016\x2016','ILocalStorageService','disposeWithMe','on-line-icon','connectionError$','Enable\x20Authentication','MAX_RETRIES_EXCEEDED','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','clipPath','univer-text-yellow-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','defineProperty','_connectionController','fill','current','div','4460712vFGNpQ','url(#$1','MCP\x20Client\x20Configuration','connectionStatus$','NETWORK_ERROR','UniverIcon','未连接','close','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','replace','启用身份验证','FAILED','配置\x20MCP\x20使用\x20AI\x20操作电子表格','请输入您的\x20API\x20密钥','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpStatus.failed','将配置添加到您的\x20MCP\x20客户端设置文件中','open','Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','RETRYING','MenuIcon','mcpStatus.sessionOccupied','API\x20密钥无效,请检查密钥是否正确','MenuItemType','idSuffix','univer-space-y-5','univer-bg-blue-500','Inject','univer-text-sm\x20univer-font-medium','_initializeMenus','Saving...','MCP:\x20网络错误','配置参数:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','entries','MCP:\x20会话\x20ID\x20已被占用','_handleConfigure','MCP:\x20未授权','Bearer\x20','MCP\x20Disconnected','MCPUIMenuController','univer-shrink-0\x20univer-text-red-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','COMMAND','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCPConnectionError','univer-min-w-0\x20univer-flex-1','MessageType','DISCONNECTED','next','781evTXIx','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCPStatusDisplay','SESSION_ID_OCCUPIED','mask','BehaviorSubject','univer-bg-green-500','CloseIcon','mcpConfig.apiApplyInfo.univerAiLabel','点击连接\x20MCP','_registerComponent','_injector','mcpConfig.validation.invalidApiKey','mcpConfig.apiKeyHint','univer-space-y-3','_messageService','round','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','mcpConfig.note2','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','useDependency','CONNECTED','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','https://console.univer.plus','网络连接错误,请检查您的网络连接','warn','49721nZjGck','MCPConnectionUIController','MCP_PLUGIN_CONFIG_KEY','_blank','CheckMarkIcon','tag','isValid','mcpConfig.connectionInfo','API\x20key\x20with\x20Bearer\x20prefix.','_initAutoConnect','重启您的\x20MCP\x20客户端以使配置生效','path','getConfig','ComponentManager','useState','mcpConfig.connectionStatus.disconnected','IUIPartsService','https://mcp.univer.ai/mcp/?univer_session_id=','Retrying...','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','stringify','_menuManagerService','UNAUTHORIZED','IMessageService','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.configSaved','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','showDeveloperTools','url(#off-line-icon_clip0_910_343)','Authorization:','NONE','BUTTON','MCP\x20Configuration','\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','_uiPartsService','mcp-ui.command.openConfigPanel','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.connectionStatus.retrying','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','createElement','MCP\x20配置','Module','Invalid\x20configuration','配置保存成功','Tooltip','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpStatus.retrying','univer-text-gray-400','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','use','mcpStatus.disconnected','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.validation.apiKeyRequired','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','HelpIcon','push','merge','mcp-ui.config','off-line-icon_clip0_910_343','连接失败','jsx','375672MecugX','showStatus','forwardRef','API\x20密钥','M0\x200H16V16H0z','IConfigService','displayName','11230MHCJTh','_localeService','LocaleService','mcpConfig.connectionStatus.connected','mcpStatus.clickToConfigure','text','none','univer-flex\x20univer-items-center\x20univer-gap-3','registerCommand','random','OpenMCPConfigPanelCommand','配置保存失败','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','UniverMCPUIPlugin','MCPConnectionStatus','https://console.univer.ai','_dialogService','map','OTHERS','mcpConfig.connectionError.sessionOccupied','已连接','help-icon','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','includes','ISocketService','length','mcpConfig.configStepTitle','colorChannel1','MCP\x20Retrying...','univer_session_id:','translate(.97)','_mcpConnectionController','mcpConfig.configStep1','OffLineIcon','_loading$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','defs','attrs','MCP\x20连接中...','OnLineIcon','DependentOn','clsx','带有\x20Bearer\x20前缀的\x20API\x20密钥。','symbol','<SESSION_ID>'];_0x4b76=function(){return _0x4e6ae0;};return _0x4b76();}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:_0x2c54a9,..._0x1b1159}){const _0xcd9fe0=_0x8e8fd5,{icon:_0x431c5c,id:_0x525570,className:_0x498909,extend:_0x1e6994,..._0x501fa1}=_0x1b1159,_0x241f21=(_0xcd9fe0(0x290)+_0x525570+'\x20'+(_0x498909||''))['trim'](),_0x28086f=d[_0xcd9fe0(0x285)]('_'+de());return G(_0x431c5c,''+_0x525570,{'defIds':_0x431c5c[_0xcd9fe0(0x226)],'idSuffix':_0x28086f[_0xcd9fe0(0x2d9)]},{'ref':_0x2c54a9,'className':_0x241f21,..._0x501fa1},_0x1e6994);}function G(_0xf0bcb4,_0x212ea8,_0x110a79,_0x1cb524,_0xc494b){const _0x11712a=_0x8e8fd5;return d['createElement'](_0xf0bcb4[_0x11712a(0x1a9)],{'key':_0x212ea8,...ue(_0xf0bcb4,_0x110a79,_0xc494b),..._0x1cb524},(ve(_0xf0bcb4,_0x110a79)[_0x11712a(0x2a7)]||[])['map']((_0x1a68a5,_0x22f0d2)=>G(_0x1a68a5,_0x212ea8+'-'+_0xf0bcb4[_0x11712a(0x1a9)]+'-'+_0x22f0d2,_0x110a79,void 0x0,_0xc494b)));}function ue(_0x1225cd,_0x2c39dd,_0x5816af){const _0x246c7c=_0x8e8fd5,_0x551999={..._0x1225cd['attrs']};_0x5816af!=null&&_0x5816af[_0x246c7c(0x205)]&&_0x551999[_0x246c7c(0x2d8)]==='colorChannel1'&&(_0x551999[_0x246c7c(0x2d8)]=_0x5816af[_0x246c7c(0x205)]),_0x1225cd[_0x246c7c(0x1a9)]===_0x246c7c(0x317)&&_0x551999['id']&&(_0x551999['id']=_0x551999['id']+_0x2c39dd[_0x246c7c(0x2f6)]),Object[_0x246c7c(0x300)](_0x551999)[_0x246c7c(0x232)](([_0x1420c8,_0x310067])=>{const _0x7e7627=_0x246c7c;_0x1420c8===_0x7e7627(0x317)&&typeof _0x310067=='string'&&(_0x551999[_0x1420c8]=_0x310067[_0x7e7627(0x2e4)](/url\(#(.*)\)/,_0x7e7627(0x2dc)+_0x2c39dd[_0x7e7627(0x2f6)]+')'));});const {defIds:_0x660b32}=_0x2c39dd;return!_0x660b32||_0x660b32['length']===0x0||(_0x1225cd[_0x246c7c(0x1a9)]===_0x246c7c(0x1d7)&&_0x551999[_0x246c7c(0x28b)]&&(_0x551999[_0x246c7c(0x28b)]=_0x551999['xlink:href']+_0x2c39dd[_0x246c7c(0x2f6)]),Object[_0x246c7c(0x300)](_0x551999)[_0x246c7c(0x232)](([_0x59eb9c,_0xff9c7f])=>{const _0x11e5c9=_0x246c7c;typeof _0xff9c7f=='string'&&(_0x551999[_0x59eb9c]=_0xff9c7f[_0x11e5c9(0x2e4)](/url\(#(.*)\)/,_0x11e5c9(0x2dc)+_0x2c39dd[_0x11e5c9(0x2f6)]+')'));})),_0x551999;}function ve(_0x47433f,_0x19a422){const _0x262cbd=_0x8e8fd5;var _0x3e1dd1;const {defIds:_0x21dbc8}=_0x19a422;return!_0x21dbc8||_0x21dbc8[_0x262cbd(0x203)]===0x0?_0x47433f:_0x47433f['tag']===_0x262cbd(0x20e)&&((_0x3e1dd1=_0x47433f[_0x262cbd(0x2a7)])!=null&&_0x3e1dd1[_0x262cbd(0x203)])?{..._0x47433f,'children':_0x47433f['children'][_0x262cbd(0x1fb)](_0x3b737f=>typeof _0x3b737f[_0x262cbd(0x20f)]['id']=='string'&&_0x21dbc8&&_0x21dbc8[_0x262cbd(0x201)](_0x3b737f['attrs']['id'])?{..._0x3b737f,'attrs':{..._0x3b737f[_0x262cbd(0x20f)],'id':_0x3b737f['attrs']['id']+_0x19a422[_0x262cbd(0x2f6)]}}:_0x3b737f)}:_0x47433f;}function de(){const _0x43b7e0=_0x8e8fd5;return Math[_0x43b7e0(0x1f3)]()['toString'](0x24)[_0x43b7e0(0x234)](0x2,0x8);}_['displayName']=_0x8e8fd5(0x2e0);const Ce={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':'none','viewBox':_0x8e8fd5(0x2ca),'width':_0x8e8fd5(0x2c7),'height':_0x8e8fd5(0x2c7)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x26b),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x8e8fd5(0x280)}}]},H=d[_0x8e8fd5(0x1e5)](function(_0x4812f9,_0x4627e5){const _0x4ee22c=_0x8e8fd5;return d[_0x4ee22c(0x1cc)](_,Object[_0x4ee22c(0x293)]({},_0x4812f9,{'id':_0x4ee22c(0x239),'ref':_0x4627e5,'icon':Ce}));});H[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x1a8);const ge={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':'none','viewBox':_0x8e8fd5(0x2ca),'width':'1em','height':_0x8e8fd5(0x2c7)},'children':[{'tag':'path','attrs':{'fill':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x2ab)}}]},B=d[_0x8e8fd5(0x1e5)](function(_0x342096,_0x4dfd85){const _0x2924a=_0x8e8fd5;return d['createElement'](_,Object[_0x2924a(0x293)]({},_0x342096,{'id':_0x2924a(0x275),'ref':_0x4dfd85,'icon':ge}));});B[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x31a);const fe={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':_0x8e8fd5(0x1f0),'viewBox':_0x8e8fd5(0x2ca),'width':_0x8e8fd5(0x2c7),'height':'1em'},'children':[{'tag':_0x8e8fd5(0x1af),'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':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x1cb)}},{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x2d2),'fillRule':_0x8e8fd5(0x280),'clipRule':_0x8e8fd5(0x280)}}]},F=d[_0x8e8fd5(0x1e5)](function(_0x5a1564,_0xeda479){const _0x34c232=_0x8e8fd5;return d[_0x34c232(0x1cc)](_,Object['assign']({},_0x5a1564,{'id':_0x34c232(0x1ff),'ref':_0xeda479,'icon':fe}));});F[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x1dc);const pe={'tag':'svg','attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':_0x8e8fd5(0x1f0),'viewBox':_0x8e8fd5(0x2ca),'width':_0x8e8fd5(0x2c7),'height':_0x8e8fd5(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x8e8fd5(0x1c1)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'stroke':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x1a0),'strokeLinecap':_0x8e8fd5(0x323),'strokeLinejoin':_0x8e8fd5(0x323),'strokeWidth':1.2}}]},{'tag':_0x8e8fd5(0x20e),'attrs':{},'children':[{'tag':_0x8e8fd5(0x2d3),'attrs':{'id':_0x8e8fd5(0x1e0)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x2c5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x8e8fd5(0x1e0)]},Y=d[_0x8e8fd5(0x1e5)](function(_0x35a190,_0x4a941a){return d['createElement'](_,Object['assign']({},_0x35a190,{'id':'off-line-icon','ref':_0x4a941a,'icon':pe}));});Y[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x20b);const he={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':_0x8e8fd5(0x1f0),'viewBox':_0x8e8fd5(0x240),'width':_0x8e8fd5(0x2c7),'height':_0x8e8fd5(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x8e8fd5(0x27b)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'stroke':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x23c),'strokeLinecap':_0x8e8fd5(0x323),'strokeLinejoin':_0x8e8fd5(0x323),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x8e8fd5(0x2d3),'attrs':{'id':_0x8e8fd5(0x256)},'children':[{'tag':'path','attrs':{'fill':_0x8e8fd5(0x2c5),'d':_0x8e8fd5(0x1e7),'transform':_0x8e8fd5(0x208)}}]}]}],'defIds':[_0x8e8fd5(0x256)]},q=d[_0x8e8fd5(0x1e5)](function(_0xf64c3b,_0x1e5978){const _0x84e40f=_0x8e8fd5;return d[_0x84e40f(0x1cc)](_,Object['assign']({},_0xf64c3b,{'id':_0x84e40f(0x2cd),'ref':_0x1e5978,'icon':he}));});q['displayName']=_0x8e8fd5(0x211);function V(_0x106e2a){const _0x2af1fd=_0x8e8fd5;var _0x58e847,_0x340618;const {mcpCoreConfig:_0x2b12e0,onSave:_0x21c1a2,loading:_0x122e91=!0x1,config:_0x599a72,connectionStatus$:_0x5f0edd,connectionError$:_0xd57b83,currentApiKey$:_0x22bc01,currentSessionId$:_0x2ee2e6}=_0x106e2a,_0x44073c=v[_0x2af1fd(0x19e)](u[_0x2af1fd(0x1ec)]),_0x12e3a0=v[_0x2af1fd(0x29a)](_0x5f0edd,s[_0x2af1fd(0x1f8)][_0x2af1fd(0x311)]),_0x283d1f=v[_0x2af1fd(0x29a)](_0xd57b83,s['MCPConnectionError'][_0x2af1fd(0x1c3)]),_0x1a34dc=v[_0x2af1fd(0x29a)](_0x2ee2e6,''),_0x3b8031=v['useObservable'](_0x22bc01,''),[_0x5356d4,_0x210080]=d['useState'](_0x3b8031||''),_0x39de21=!0x0,_0x428988=_0x599a72['showDeveloperTools']&&_0x2b12e0[_0x2af1fd(0x249)]&&(_0x2b12e0[_0x2af1fd(0x249)][_0x2af1fd(0x201)]('univer.plus')||_0x2b12e0[_0x2af1fd(0x249)][_0x2af1fd(0x201)](_0x2af1fd(0x28f))),_0x30000d=(_0x58e847=_0x2b12e0['mcpServerUrl'])==null?void 0x0:_0x58e847[_0x2af1fd(0x201)](_0x2af1fd(0x2a1)),_0x57a43e=(_0x340618=_0x2b12e0['mcpServerUrl'])==null?void 0x0:_0x340618[_0x2af1fd(0x201)](_0x2af1fd(0x28f)),_0x30e207=_0x30000d?_0x2af1fd(0x1a1):_0x2af1fd(0x1f9),_0x234b12=_0x599a72[_0x2af1fd(0x1c0)]&&(_0x30000d||_0x57a43e),[_0xca3011,_0x5dd2d5]=d[_0x2af1fd(0x1b2)](!_0x5356d4[_0x2af1fd(0x220)]()),_0xd8d6af=(_0x68f854,_0x3f1cd8)=>{const _0x25b381=_0x2af1fd;if(_0x3f1cd8===s['MCPConnectionError'][_0x25b381(0x1ba)])return _0x25b381(0x246);switch(_0x68f854){case s[_0x25b381(0x1f8)]['CONNECTED']:return _0x25b381(0x1b7);case s[_0x25b381(0x1f8)][_0x25b381(0x258)]:case s[_0x25b381(0x1f8)][_0x25b381(0x2f1)]:return _0x25b381(0x2e3);case s[_0x25b381(0x1f8)]['FAILED']:return _0x25b381(0x246);default:return _0x25b381(0x2c0);}},_0x59be60=(_0x558974,_0x295dc4)=>{const _0x3f0512=_0x2af1fd;if(_0x295dc4===s[_0x3f0512(0x30e)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x558974){case s['MCPConnectionStatus']['CONNECTED']:return _0x3f0512(0x319);case s[_0x3f0512(0x1f8)][_0x3f0512(0x258)]:case s[_0x3f0512(0x1f8)]['RETRYING']:return _0x3f0512(0x2f8);case s['MCPConnectionStatus'][_0x3f0512(0x2e6)]:return _0x3f0512(0x2ac);default:return _0x3f0512(0x267);}},_0x4fcee1=_0x22623c=>{const _0x29630a=_0x2af1fd;switch(_0x22623c){case s[_0x29630a(0x1f8)][_0x29630a(0x19f)]:return _0x44073c['t'](_0x29630a(0x1ed));case s[_0x29630a(0x1f8)][_0x29630a(0x258)]:return _0x44073c['t']('mcpConfig.connectionStatus.connecting');case s[_0x29630a(0x1f8)][_0x29630a(0x2e6)]:return _0x44073c['t'](_0x29630a(0x22f));case s[_0x29630a(0x1f8)][_0x29630a(0x2f1)]:return _0x44073c['t'](_0x29630a(0x1ca));default:return _0x44073c['t'](_0x29630a(0x1b3));}},_0x62853=_0x16bd03=>{const _0x115b74=_0x2af1fd;switch(_0x16bd03){case s['MCPConnectionError'][_0x115b74(0x1ba)]:return _0x44073c['t'](_0x115b74(0x274));case s[_0x115b74(0x30e)][_0x115b74(0x316)]:return _0x44073c['t'](_0x115b74(0x1fd));case s[_0x115b74(0x30e)][_0x115b74(0x2df)]:return _0x44073c['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError'][_0x115b74(0x2d0)]:return _0x44073c['t'](_0x115b74(0x2ad));default:return'';}},_0x40c003=d[_0x2af1fd(0x278)](()=>{const _0x2a3e6c=_0x2af1fd,_0x39daea={..._0x2b12e0,'apiKey':_0x5356d4[_0x2a3e6c(0x220)](),'enableAuth':_0x39de21};_0x21c1a2(_0x39daea);},[_0x2b12e0,_0x5356d4,_0x39de21,_0x21c1a2]),_0x592cf5=_0x5356d4[_0x2af1fd(0x220)]()['length']>0x0;return i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x259),'children':i['jsxs'](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x1f1),'children':[i['jsx'](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x314),'children':i[_0x2af1fd(0x1e2)]('span',{'className':'univer-text-white','children':'⚙'})}),i[_0x2af1fd(0x1e2)]('div',{'children':i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x277),'children':_0x44073c['t'](_0x2af1fd(0x22c))})})]})}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x25e),'children':[i[_0x2af1fd(0x1e2)]('div',{'className':f['clsx']('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0xd8d6af(_0x12e3a0,_0x283d1f)),'children':i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x26d),'children':[i['jsx']('div',{'className':f[_0x2af1fd(0x213)]('univer-size-2\x20univer-rounded-full',_0x59be60(_0x12e3a0,_0x283d1f))}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x2fa),'children':_0x4fcee1(_0x12e3a0)})]})}),_0x283d1f!==s['MCPConnectionError'][_0x2af1fd(0x1c3)]&&(_0x12e3a0===s[_0x2af1fd(0x1f8)][_0x2af1fd(0x2e6)]||_0x283d1f===s[_0x2af1fd(0x30e)][_0x2af1fd(0x1ba)])&&i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2c9),'children':i['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i['jsx'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x307),'children':'⚠️'}),i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x253),'children':_0x62853(_0x283d1f)})]})})]}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x21b),'children':i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x2f7),'children':[i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x27c),'children':[i[_0x2af1fd(0x231)](_0x2af1fd(0x2b4),{'className':_0x2af1fd(0x1d5),'children':[i['jsx'](_0x2af1fd(0x2c1),{'children':'🔑'}),'\x20',_0x44073c['t'](_0x2af1fd(0x233)),i['jsx'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x287),'children':'*'}),_0x428988&&i['jsx']('a',{'className':_0x2af1fd(0x24c),'title':_0x44073c['t']('mcpConfig.apiApplyInfo.title'),'role':_0x2af1fd(0x24a),'onClick':()=>_0x5dd2d5(!0x0),'children':i[_0x2af1fd(0x1e2)](F,{})})]}),i[_0x2af1fd(0x1e2)](f['Input'],{'type':_0x2af1fd(0x1ef),'placeholder':_0x44073c['t'](_0x2af1fd(0x225)),'value':_0x5356d4,'disabled':_0x122e91,'autoComplete':_0x2af1fd(0x265),'onChange':_0x210080}),i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x27d),'children':_0x44073c['t'](_0x2af1fd(0x320))})]}),_0x428988&&_0xca3011&&i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x1db),'children':[i[_0x2af1fd(0x1e2)]('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':_0x2af1fd(0x24a),'onClick':()=>_0x5dd2d5(!0x1),'children':i[_0x2af1fd(0x1e2)](B,{'className':'univer-size-4'})}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x20d),'children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x200),'children':i[_0x2af1fd(0x1e2)]('span',{'className':_0x2af1fd(0x28d),'children':'🚀'})}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2a9),'children':[i[_0x2af1fd(0x1e2)]('h4',{'className':_0x2af1fd(0x21c),'children':_0x44073c['t'](_0x2af1fd(0x229))}),i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x309),'children':_0x44073c['t']('mcpConfig.apiApplyInfo.description')}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2b1),'children':_0x234b12&&i[_0x2af1fd(0x231)]('a',{'className':_0x2af1fd(0x26f),'href':_0x30e207,'target':_0x2af1fd(0x1a7),'rel':_0x2af1fd(0x2b5),'children':[i[_0x2af1fd(0x1e2)]('span',{'children':'🤖'}),_0x44073c['t'](_0x2af1fd(0x31b)),i[_0x2af1fd(0x1e2)]('span',{'className':_0x2af1fd(0x1d4),'children':'↗'})]})}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x2e9),'children':['✨','\x20',_0x44073c['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x599a72['showDeveloperTools']&&i['jsxs'](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x30b),'children':[i[_0x2af1fd(0x231)]('h4',{'className':_0x2af1fd(0x1d2),'children':[i['jsx'](_0x2af1fd(0x2c1),{'children':'🔗'}),'\x20',_0x44073c['t'](_0x2af1fd(0x1ab))]}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x21a),'children':[i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x321),'children':[i['jsx']('p',{'className':_0x2af1fd(0x230),'children':_0x44073c['t'](_0x2af1fd(0x281))}),i['jsxs'](_0x2af1fd(0x2da),{'className':'univer-space-y-2','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x19d),'children':_0x44073c['t'](_0x2af1fd(0x204))}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x2af1fd(0x231)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x23d),'children':'1'}),_0x44073c['t'](_0x2af1fd(0x20a))]}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x26d),'children':[i['jsx'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x23d),'children':'2'}),_0x44073c['t']('mcpConfig.configStep2')]}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x26d),'children':[i['jsx'](_0x2af1fd(0x2c1),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x44073c['t'](_0x2af1fd(0x221))]})]})]})]}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x27c),'children':[i[_0x2af1fd(0x1e2)]('div',{'className':_0x2af1fd(0x19d),'children':_0x2af1fd(0x1c5)}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x326),'children':i[_0x2af1fd(0x1e2)]('pre',{'className':_0x2af1fd(0x245),'children':JSON[_0x2af1fd(0x1b8)]({'mcpServers':{'univer':{'url':_0x2af1fd(0x1b5)+(_0x1a34dc||_0x2af1fd(0x216)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x5356d4||_0x2af1fd(0x26a))}}}},null,0x2)})})]}),i[_0x2af1fd(0x231)]('div',{'className':'univer-space-y-3','children':[i[_0x2af1fd(0x1e2)]('div',{'className':_0x2af1fd(0x19d),'children':_0x44073c['t'](_0x2af1fd(0x2ba))}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x27c),'children':[i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x2af1fd(0x1e2)]('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x2af1fd(0x1e2)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2af1fd(0x207)}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x27d),'children':_0x44073c['t'](_0x2af1fd(0x291))})]})]}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x2af1fd(0x1e2)]('div',{'className':_0x2af1fd(0x224)}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x30f),'children':[i['jsx']('div',{'className':_0x2af1fd(0x1f6),'children':_0x2af1fd(0x1c2)}),i['jsx']('div',{'className':_0x2af1fd(0x27d),'children':_0x44073c['t'](_0x2af1fd(0x252))})]})]})]})]})]})]}),i[_0x2af1fd(0x1e2)](f[_0x2af1fd(0x292)],{'onClick':_0x40c003,'disabled':!_0x592cf5||_0x122e91,'className':_0x2af1fd(0x324),'children':_0x122e91?i['jsxs'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x26d),'children':[i[_0x2af1fd(0x1e2)]('span',{'children':'⟲'}),_0x44073c['t']('mcpConfig.saving')]}):i[_0x2af1fd(0x231)]('span',{'className':_0x2af1fd(0x26d),'children':[i[_0x2af1fd(0x1e2)](H,{}),_0x44073c['t'](_0x2af1fd(0x2b2))]})}),i[_0x2af1fd(0x1e2)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2c1),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2c6),'children':'Configuration\x20Notes:'}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'children':['•',_0x44073c['t']('mcpConfig.note1')]}),i['jsxs'](_0x2af1fd(0x2da),{'children':['•',_0x44073c['t'](_0x2af1fd(0x325))]})]})]})})]})})]});}function _0x554f(_0x249295,_0x4430c0){_0x249295=_0x249295-0x19d;const _0x4b76ae=_0x4b76();let _0x554fbf=_0x4b76ae[_0x249295];return _0x554fbf;}const P=_0x8e8fd5(0x1df),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object['getOwnPropertyDescriptor'],xe=(_0x394241,_0x5d721f,_0x851980,_0x42a596)=>{const _0x26eee2=_0x8e8fd5;for(var _0x1db3c9=_0x42a596>0x1?void 0x0:_0x42a596?me(_0x5d721f,_0x851980):_0x5d721f,_0x38b48a=_0x394241[_0x26eee2(0x203)]-0x1,_0x367adc;_0x38b48a>=0x0;_0x38b48a--)(_0x367adc=_0x394241[_0x38b48a])&&(_0x1db3c9=_0x367adc(_0x1db3c9)||_0x1db3c9);return _0x1db3c9;},g=(_0x3e6142,_0x305cc7)=>(_0x9f903a,_0x5186fd)=>_0x305cc7(_0x9f903a,_0x5186fd,_0x3e6142);const O=_0x8e8fd5(0x263),D=_0x8e8fd5(0x2b8);exports[_0x8e8fd5(0x217)]=class extends u[_0x8e8fd5(0x237)]{constructor(_0x39075f,_0x152388,_0x1edc4e,_0x22fcf5,_0x296a10,_0x16ae2e,_0x499278,_0x16c5c7,_0x45f1d3,_0x1dd3a9){const _0x171a9d=_0x8e8fd5;super(),I(this,'_loading$',new M[(_0x171a9d(0x318))](!0x1)),I(this,_0x171a9d(0x25f),new M[(_0x171a9d(0x318))]({})),I(this,_0x171a9d(0x266),new M[(_0x171a9d(0x318))]({})),I(this,_0x171a9d(0x23b),new M[(_0x171a9d(0x318))]('')),I(this,_0x171a9d(0x279),async _0x14e8d1=>{const _0x5e39bd=_0x171a9d;var _0x646145,_0x18c476;this['_loading$'][_0x5e39bd(0x312)](!0x0);try{const _0x52eb08=await this[_0x5e39bd(0x2b3)](_0x14e8d1);if(!_0x52eb08[_0x5e39bd(0x1aa)]){this['_messageService'][_0x5e39bd(0x21f)]({'type':f[_0x5e39bd(0x310)][_0x5e39bd(0x2ed)],'content':_0x52eb08['errorMessage']||this[_0x5e39bd(0x1eb)]['t'](_0x5e39bd(0x2bc))});return;}_0x14e8d1[_0x5e39bd(0x273)]?await this['_localStorageService'][_0x5e39bd(0x25b)](O,_0x14e8d1[_0x5e39bd(0x273)][_0x5e39bd(0x220)]()):await this[_0x5e39bd(0x247)][_0x5e39bd(0x264)](O),this[_0x5e39bd(0x23b)]['next'](((_0x646145=_0x14e8d1['apiKey'])==null?void 0x0:_0x646145[_0x5e39bd(0x220)]())||''),this[_0x5e39bd(0x209)]['__setCustomHeaders']({'Authorization':_0x5e39bd(0x304)+((_0x18c476=_0x14e8d1[_0x5e39bd(0x273)])==null?void 0x0:_0x18c476[_0x5e39bd(0x220)]())}),this[_0x5e39bd(0x322)][_0x5e39bd(0x21f)]({'type':f[_0x5e39bd(0x310)][_0x5e39bd(0x28a)],'content':this[_0x5e39bd(0x1eb)]['t'](_0x5e39bd(0x1bd))}),setTimeout(()=>{const _0x657e37=_0x5e39bd;this['_dialogService'][_0x657e37(0x2e2)](D);},0x320);}catch(_0x3fbfda){this[_0x5e39bd(0x26e)][_0x5e39bd(0x29e)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3fbfda),this[_0x5e39bd(0x322)]['show']({'type':f[_0x5e39bd(0x310)][_0x5e39bd(0x2ed)],'content':this[_0x5e39bd(0x1eb)]['t']('mcpConfig.configError')});}finally{this[_0x5e39bd(0x20c)][_0x5e39bd(0x312)](!0x1);}}),(this[_0x171a9d(0x31e)]=_0x39075f,this['_uiPartsService']=_0x152388,this[_0x171a9d(0x298)]=_0x1edc4e,this[_0x171a9d(0x247)]=_0x22fcf5,this[_0x171a9d(0x1fa)]=_0x296a10,this[_0x171a9d(0x322)]=_0x16ae2e,this[_0x171a9d(0x2af)]=_0x499278,this[_0x171a9d(0x1eb)]=_0x16c5c7,this[_0x171a9d(0x26e)]=_0x45f1d3,this[_0x171a9d(0x209)]=_0x1dd3a9,this[_0x171a9d(0x2ae)](),this['_loadStoredApiKey'](),this[_0x171a9d(0x31d)]());}[_0x8e8fd5(0x222)](){const _0x49edb1=_0x8e8fd5,_0xc7d7a2=this[_0x49edb1(0x298)][_0x49edb1(0x1b0)](P);_0xc7d7a2!=null&&_0xc7d7a2['showDeveloperTools']&&this[_0x49edb1(0x1fa)][_0x49edb1(0x2ec)]({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x49edb1(0x282)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x57715b=_0x49edb1;this['_dialogService'][_0x57715b(0x2e2)](D);}});}['getCurrentConfig'](){const _0x1c599a=_0x8e8fd5;return this[_0x1c599a(0x25f)]['value'];}[_0x8e8fd5(0x31d)](){const _0x495e45=_0x8e8fd5;this[_0x495e45(0x2cc)](this[_0x495e45(0x2af)]['register']('MCPConfigPanel',this[_0x495e45(0x2a4)]()));}[_0x8e8fd5(0x2a4)](){const _0xa647fb=_0x8e8fd5;return v[_0xa647fb(0x2b6)](()=>{const _0x362693=_0xa647fb;var _0x26e130,_0x26f983,_0x1f55e5;return i[_0x362693(0x1e2)](V,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x362693(0x25f)][_0x362693(0x24f)],'currentApiKey$':this[_0x362693(0x23b)],'onSave':this[_0x362693(0x279)],'loading':this[_0x362693(0x20c)][_0x362693(0x24f)],'connectionStatus$':(_0x26e130=this['_mcpConnectionController'])==null?void 0x0:_0x26e130[_0x362693(0x2de)],'connectionError$':(_0x26f983=this['_mcpConnectionController'])==null?void 0x0:_0x26f983[_0x362693(0x2ce)],'currentSessionId$':(_0x1f55e5=this[_0x362693(0x209)])==null?void 0x0:_0x1f55e5[_0x362693(0x23f)]});},this[_0xa647fb(0x31e)]);}[_0x8e8fd5(0x2ae)](){const _0x15fd4c=_0x8e8fd5;this[_0x15fd4c(0x2cc)](this[_0x15fd4c(0x298)]['subscribeConfigValue$'](s[_0x15fd4c(0x1a6)])['subscribe'](_0x43ee87=>{const _0x1ed038=_0x15fd4c;this[_0x1ed038(0x25f)][_0x1ed038(0x312)](_0x43ee87||{});}));const _0x36a052=this[_0x15fd4c(0x298)][_0x15fd4c(0x1b0)](s[_0x15fd4c(0x1a6)]);this[_0x15fd4c(0x25f)][_0x15fd4c(0x312)](_0x36a052||{}),this[_0x15fd4c(0x2cc)](this[_0x15fd4c(0x298)][_0x15fd4c(0x24b)](P)[_0x15fd4c(0x269)](_0x194704=>{const _0x1583fe=_0x15fd4c;this[_0x1583fe(0x266)][_0x1583fe(0x312)](_0x194704||{});}));const _0x10213e=this[_0x15fd4c(0x298)]['getConfig'](P);this[_0x15fd4c(0x266)][_0x15fd4c(0x312)](_0x10213e||{});}async[_0x8e8fd5(0x2b7)](){const _0x60207b=_0x8e8fd5,_0x3503e3=this[_0x60207b(0x298)][_0x60207b(0x1b0)](P);if(!(_0x3503e3!=null&&_0x3503e3[_0x60207b(0x1c0)]))return;const _0x373db6=await this['_localStorageService'][_0x60207b(0x29c)](O);_0x373db6&&(this[_0x60207b(0x209)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x373db6}),this[_0x60207b(0x23b)]['next'](_0x373db6));}async['_validateConfig'](_0x2a1bc8){const _0x2af719=_0x8e8fd5;if(!_0x2a1bc8[_0x2af719(0x273)]||_0x2a1bc8[_0x2af719(0x273)][_0x2af719(0x220)]()[_0x2af719(0x203)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2af719(0x1da))};if(_0x2a1bc8[_0x2af719(0x273)][_0x2af719(0x220)]()[_0x2af719(0x203)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2af719(0x1eb)]['t'](_0x2af719(0x270))};try{const _0x319532=await this[_0x2af719(0x31e)]['get'](s['MCPConnectionController'])['validateApiKey'](_0x2a1bc8['apiKey'][_0x2af719(0x220)]());return _0x319532[_0x2af719(0x1aa)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x319532[_0x2af719(0x29e)]||this[_0x2af719(0x1eb)]['t'](_0x2af719(0x31f))};}catch(_0x7cb56f){return console[_0x2af719(0x1a3)](_0x2af719(0x30a),_0x7cb56f),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x8e8fd5(0x2f9)](u['Injector'])),g(0x1,v[_0x8e8fd5(0x1b4)]),g(0x2,u['IConfigService']),g(0x3,u[_0x8e8fd5(0x2cb)]),g(0x4,v[_0x8e8fd5(0x25c)]),g(0x5,v[_0x8e8fd5(0x1bb)]),g(0x6,u['Inject'](v[_0x8e8fd5(0x1b1)])),g(0x7,u[_0x8e8fd5(0x2f9)](u[_0x8e8fd5(0x1ec)])),g(0x8,u[_0x8e8fd5(0x289)]),g(0x9,u[_0x8e8fd5(0x2f9)](s[_0x8e8fd5(0x21d)]))],exports['MCPConfigUIController']);const b={'id':_0x8e8fd5(0x1c8),'type':u[_0x8e8fd5(0x2be)][_0x8e8fd5(0x30c)],'handler':async(_0x555b78,_0xe9edc2)=>(_0x555b78[_0x8e8fd5(0x2bd)](exports[_0x8e8fd5(0x217)])[_0x8e8fd5(0x222)](),!0x0)};function Z(_0x11be34,_0x27555f){const _0x3d0d34=_0x8e8fd5;switch(_0x11be34){case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x311)]:return _0x3d0d34(0x1d8);case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x258)]:return _0x3d0d34(0x23a);case s['MCPConnectionStatus']['CONNECTED']:return _0x3d0d34(0x22a);case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x2e6)]:switch(_0x27555f){case s[_0x3d0d34(0x30e)][_0x3d0d34(0x1ba)]:return _0x3d0d34(0x2bf);case s[_0x3d0d34(0x30e)]['SESSION_ID_OCCUPIED']:return _0x3d0d34(0x2f3);case s[_0x3d0d34(0x30e)][_0x3d0d34(0x2df)]:return _0x3d0d34(0x272);case s['MCPConnectionError'][_0x3d0d34(0x2d0)]:return'mcpStatus.maxRetriesExceeded';default:return _0x3d0d34(0x2ea);}case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x2f1)]:return _0x3d0d34(0x1d3);default:return'mcpStatus.unknown';}}function Se(_0xaea39c,_0x42618c,_0xcc948d,_0x573559=!0x0){const _0x4fbd1f=_0x8e8fd5,_0x484711=Z(_0xaea39c,_0x42618c),_0x3e8c56=_0xcc948d['t'](_0x484711);return _0x573559?_0xaea39c===s[_0x4fbd1f(0x1f8)]['DISCONNECTED']&&_0x42618c===s[_0x4fbd1f(0x30e)]['UNAUTHORIZED']?_0x3e8c56+_0x4fbd1f(0x25a)+_0xcc948d['t'](_0x4fbd1f(0x1ee)):_0xaea39c===s['MCPConnectionStatus'][_0x4fbd1f(0x19f)]?''+_0x3e8c56:_0xaea39c===s[_0x4fbd1f(0x1f8)][_0x4fbd1f(0x311)]||_0xaea39c===s['MCPConnectionStatus'][_0x4fbd1f(0x2e6)]?_0x3e8c56+'\x20-\x20'+_0xcc948d['t']('mcpStatus.clickToConnect'):_0x3e8c56:_0x3e8c56;}function Pe(_0xd7f22c){const _0x181e19=_0x8e8fd5;switch(_0xd7f22c){case s[_0x181e19(0x1f8)][_0x181e19(0x19f)]:return _0x181e19(0x2b9);case s[_0x181e19(0x1f8)]['CONNECTING']:case s[_0x181e19(0x1f8)][_0x181e19(0x2f1)]:return _0x181e19(0x2d4);case s[_0x181e19(0x1f8)][_0x181e19(0x2e6)]:case s[_0x181e19(0x1f8)][_0x181e19(0x311)]:return _0x181e19(0x287);default:return'univer-text-gray-500';}}function W(_0x3e5ccc){const _0xbdf91a=_0x8e8fd5,{status$:_0x3874dc,error$:_0x117567,onConfigure:_0x3f3023,showClickable:_0x57c4ec=!0x0}=_0x3e5ccc,_0x40aff9=v['useObservable'](_0x3874dc,s['MCPConnectionStatus'][_0xbdf91a(0x311)]),_0x5773e3=v[_0xbdf91a(0x29a)](_0x117567,s[_0xbdf91a(0x30e)][_0xbdf91a(0x1c3)]),_0x2d9237=v['useDependency'](u['LocaleService']),_0x537461=_0x40aff9===s[_0xbdf91a(0x1f8)][_0xbdf91a(0x19f)];_0x40aff9===s[_0xbdf91a(0x1f8)][_0xbdf91a(0x258)]||s[_0xbdf91a(0x1f8)]['RETRYING'];const _0xe9c7f5=_0x2d9237['t'](Z(_0x40aff9,_0x5773e3)),_0x2d409e=Se(_0x40aff9,_0x5773e3,_0x2d9237,_0x57c4ec),_0x10fefd=Pe(_0x40aff9),_0x342a7d=_0x537461?i[_0xbdf91a(0x1e2)](q,{}):i['jsx'](Y,{}),_0x3d87b0=d[_0xbdf91a(0x278)](()=>{_0x57c4ec&&_0x3f3023&&_0x3f3023();},[_0x57c4ec,_0x3f3023]);function _0x2bb572(){const _0x3d43c0=_0xbdf91a;return i[_0x3d43c0(0x231)](_0x3d43c0(0x2da),{'className':f['clsx']('univer-flex\x20univer-items-center',_0x57c4ec&&_0x3f3023&&_0x3d43c0(0x1c6)),'role':'button','onClick':_0x57c4ec&&_0x3f3023?_0x3d87b0:void 0x0,'children':[i[_0x3d43c0(0x1e2)]('div',{'className':f[_0x3d43c0(0x213)](_0x3d43c0(0x284),_0x10fefd),'children':_0x342a7d}),i[_0x3d43c0(0x1e2)](_0x3d43c0(0x2da),{'className':_0x3d43c0(0x327),'children':_0xe9c7f5})]});}return i[_0xbdf91a(0x1e2)](f[_0xbdf91a(0x1d1)],{'title':_0x2d409e,'placement':'bottom','children':_0x2bb572()});}var Ie=Object[_0x8e8fd5(0x2c4)],_e=(_0x27d6a8,_0x241197,_0x90319d,_0x100db1)=>{const _0x1f6635=_0x8e8fd5;for(var _0x34f5ec=_0x100db1>0x1?void 0x0:_0x100db1?Ie(_0x241197,_0x90319d):_0x241197,_0x4dbf1e=_0x27d6a8[_0x1f6635(0x203)]-0x1,_0x50e7c0;_0x4dbf1e>=0x0;_0x4dbf1e--)(_0x50e7c0=_0x27d6a8[_0x4dbf1e])&&(_0x34f5ec=_0x50e7c0(_0x34f5ec)||_0x34f5ec);return _0x34f5ec;},N=(_0x3007fa,_0x432d95)=>(_0x3c061f,_0x25d6f4)=>_0x432d95(_0x3c061f,_0x25d6f4,_0x3007fa);exports[_0x8e8fd5(0x1a5)]=class extends u[_0x8e8fd5(0x237)]{constructor(_0x25f12d,_0x8953d3,_0x1eaed1,_0x271a9b){const _0xf42c28=_0x8e8fd5;super(),this[_0xf42c28(0x31e)]=_0x25f12d,this[_0xf42c28(0x2d7)]=_0x8953d3,this['_uiPartsService']=_0x1eaed1,this['_configService']=_0x271a9b,this[_0xf42c28(0x1ad)](),this[_0xf42c28(0x241)]();}['_initAutoConnect'](){const _0x1616a3=_0x8e8fd5,_0x589d56=this[_0x1616a3(0x298)][_0x1616a3(0x1b0)](P);_0x589d56!=null&&_0x589d56[_0x1616a3(0x1c0)]&&(this['_connectionController'][_0x1616a3(0x227)]=!0x1);}[_0x8e8fd5(0x241)](){const _0x5d95ce=_0x8e8fd5,_0x156898=this[_0x5d95ce(0x298)][_0x5d95ce(0x1b0)](P);(_0x156898==null?void 0x0:_0x156898[_0x5d95ce(0x1e4)])!==!0x1&&this[_0x5d95ce(0x2cc)](this[_0x5d95ce(0x1c7)]['registerComponent'](v[_0x5d95ce(0x228)][_0x5d95ce(0x2bb)],()=>{const _0x39fc6d=_0x5d95ce;var _0x2662b4;return v[_0x39fc6d(0x2b6)](ye({'status$':this['_connectionController'][_0x39fc6d(0x2de)],'error$':this[_0x39fc6d(0x2d7)]['connectionError$'],'onConfigure':()=>this[_0x39fc6d(0x302)](),'showClickable':(_0x2662b4=_0x156898==null?void 0x0:_0x156898['showDeveloperTools'])!=null?_0x2662b4:!0x1}),this['_injector']);}));}[_0x8e8fd5(0x302)](){const _0xeba3c6=_0x8e8fd5;this[_0xeba3c6(0x31e)][_0xeba3c6(0x2bd)](exports[_0xeba3c6(0x217)])[_0xeba3c6(0x222)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u['Inject'](u[_0x8e8fd5(0x235)])),N(0x1,u[_0x8e8fd5(0x2f9)](s[_0x8e8fd5(0x21d)])),N(0x2,v[_0x8e8fd5(0x1b4)]),N(0x3,u['IConfigService'])],exports[_0x8e8fd5(0x1a5)]);function ye(_0x1ce075){const {status$:_0x74aebd,error$:_0x5d5123,onConfigure:_0x31de9a,showClickable:_0x592c0c}=_0x1ce075;return function(){return i['jsx'](W,{'status$':_0x74aebd,'error$':_0x5d5123,'onConfigure':_0x31de9a,'showClickable':_0x592c0c});};}function Me(_0x4abff8){const _0x3c4f2c=_0x8e8fd5;return{'id':b['id'],'type':v[_0x3c4f2c(0x2f5)][_0x3c4f2c(0x1c4)],'icon':_0x3c4f2c(0x2f2),'title':_0x3c4f2c(0x2aa),'tooltip':_0x3c4f2c(0x2aa)};}const Ne={[v[_0x8e8fd5(0x251)][_0x8e8fd5(0x1fc)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x2b05ed,_0x2efb65,_0x3f92e8,_0x5d0b36)=>{const _0x435703=_0x8e8fd5;for(var _0x4cd16e=_0x5d0b36>0x1?void 0x0:_0x5d0b36?be(_0x2efb65,_0x3f92e8):_0x2efb65,_0x5c9060=_0x2b05ed[_0x435703(0x203)]-0x1,_0x36b2ac;_0x5c9060>=0x0;_0x5c9060--)(_0x36b2ac=_0x2b05ed[_0x5c9060])&&(_0x4cd16e=_0x36b2ac(_0x4cd16e)||_0x4cd16e);return _0x4cd16e;},z=(_0x307a24,_0x1d6041)=>(_0x871cf8,_0x1a6c54)=>_0x1d6041(_0x871cf8,_0x1a6c54,_0x307a24);exports[_0x8e8fd5(0x306)]=class extends u[_0x8e8fd5(0x237)]{constructor(_0x2cae67,_0x48f5d2){const _0x5889f5=_0x8e8fd5;super(),this['_commandService']=_0x2cae67,this[_0x5889f5(0x1b9)]=_0x48f5d2,this[_0x5889f5(0x21e)](),this[_0x5889f5(0x2fb)]();}[_0x8e8fd5(0x21e)](){const _0x436ad7=_0x8e8fd5;[b][_0x436ad7(0x232)](_0xd75dbf=>{const _0x87af1f=_0x436ad7;this[_0x87af1f(0x2cc)](this['_commandService'][_0x87af1f(0x1f2)](_0xd75dbf));});}[_0x8e8fd5(0x2fb)](){this['_menuManagerService']['mergeMenu'](Ne);}},exports[_0x8e8fd5(0x306)]=je([z(0x0,u['ICommandService']),z(0x1,v['IMenuManagerService'])],exports[_0x8e8fd5(0x306)]);const Ee={'mcpStatus':{'disconnected':_0x8e8fd5(0x305),'connecting':_0x8e8fd5(0x22b),'connected':_0x8e8fd5(0x250),'failed':_0x8e8fd5(0x2a0),'retrying':_0x8e8fd5(0x206),'unknown':_0x8e8fd5(0x1be),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x8e8fd5(0x25d),'networkError':_0x8e8fd5(0x243),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x8e8fd5(0x2b0),'clickToConfigure':_0x8e8fd5(0x2ef)},'mcpConfig':{'title':_0x8e8fd5(0x1c5),'description':_0x8e8fd5(0x2a2),'apiKey':_0x8e8fd5(0x286),'apiKeyPlaceholder':_0x8e8fd5(0x296),'apiKeyHint':_0x8e8fd5(0x30d),'enableAuth':_0x8e8fd5(0x2cf),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x8e8fd5(0x2dd),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x8e8fd5(0x2a8),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x8e8fd5(0x2f0),'configStep3':_0x8e8fd5(0x283),'sessionId':'Session\x20ID','sessionIdDescription':_0x8e8fd5(0x308),'authorizationDescription':_0x8e8fd5(0x1ac),'configParameters':_0x8e8fd5(0x2a3),'maxRetries':_0x8e8fd5(0x244),'save':_0x8e8fd5(0x276),'saving':_0x8e8fd5(0x2fc),'note1':_0x8e8fd5(0x2a6),'note2':_0x8e8fd5(0x2ff),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x8e8fd5(0x1bf),'description':_0x8e8fd5(0x22e),'univerAiLabel':_0x8e8fd5(0x2a5),'getStarted':_0x8e8fd5(0x288)},'validation':{'apiKeyRequired':_0x8e8fd5(0x28c),'apiKeyTooShort':_0x8e8fd5(0x2ee),'invalidConfig':_0x8e8fd5(0x1cf),'invalidApiKey':_0x8e8fd5(0x242)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x8e8fd5(0x297),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x8e8fd5(0x1b6)},'connectionError':{'unauthorized':_0x8e8fd5(0x1c9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x8e8fd5(0x223),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x8e8fd5(0x257),'connecting':_0x8e8fd5(0x210),'connected':_0x8e8fd5(0x248),'failed':_0x8e8fd5(0x294),'retrying':'MCP\x20重连中...','unknown':_0x8e8fd5(0x27e),'unauthorized':_0x8e8fd5(0x303),'sessionOccupied':_0x8e8fd5(0x301),'networkError':_0x8e8fd5(0x2fd),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x8e8fd5(0x31c),'clickToConfigure':_0x8e8fd5(0x29f)},'mcpConfig':{'title':_0x8e8fd5(0x1cd),'description':_0x8e8fd5(0x2e7),'apiKey':_0x8e8fd5(0x1e6),'apiKeyPlaceholder':_0x8e8fd5(0x2e8),'apiKeyHint':_0x8e8fd5(0x271),'enableAuth':_0x8e8fd5(0x2e5),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x8e8fd5(0x24d),'mcpClientConfig':_0x8e8fd5(0x24d),'configInstructions':_0x8e8fd5(0x2d5),'configStepTitle':_0x8e8fd5(0x260),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x8e8fd5(0x2eb),'configStep3':_0x8e8fd5(0x1ae),'sessionId':_0x8e8fd5(0x299),'sessionIdDescription':_0x8e8fd5(0x1d6),'authorizationDescription':_0x8e8fd5(0x214),'configParameters':_0x8e8fd5(0x2fe),'maxRetries':_0x8e8fd5(0x29d),'save':_0x8e8fd5(0x29b),'saving':_0x8e8fd5(0x24e),'note1':'配置更改将立即生效','note2':_0x8e8fd5(0x2c3),'configSaved':_0x8e8fd5(0x1d0),'configError':_0x8e8fd5(0x1f5),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x8e8fd5(0x2d1),'univerAiLabel':_0x8e8fd5(0x218),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x8e8fd5(0x23e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x8e8fd5(0x27a),'invalidApiKey':_0x8e8fd5(0x2f4)},'connectionStatus':{'disconnected':_0x8e8fd5(0x2e1),'connecting':_0x8e8fd5(0x219),'connected':_0x8e8fd5(0x1fe),'failed':_0x8e8fd5(0x1e1),'retrying':_0x8e8fd5(0x268)},'connectionError':{'unauthorized':_0x8e8fd5(0x1d9),'sessionOccupied':_0x8e8fd5(0x1bc),'networkError':_0x8e8fd5(0x1a2),'maxRetriesExceeded':_0x8e8fd5(0x254)}}};var Ae=Object[_0x8e8fd5(0x2d6)],Oe=Object[_0x8e8fd5(0x2c4)],De=(_0x5f2975,_0x3a96e6,_0x53783d)=>_0x3a96e6 in _0x5f2975?Ae(_0x5f2975,_0x3a96e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53783d}):_0x5f2975[_0x3a96e6]=_0x53783d,Ue=(_0x4b6b17,_0x4d1dbd,_0x34da60,_0x3027ff)=>{const _0x2fed2a=_0x8e8fd5;for(var _0x5dd20=_0x3027ff>0x1?void 0x0:_0x3027ff?Oe(_0x4d1dbd,_0x34da60):_0x4d1dbd,_0x11a557=_0x4b6b17[_0x2fed2a(0x203)]-0x1,_0x21aef7;_0x11a557>=0x0;_0x11a557--)(_0x21aef7=_0x4b6b17[_0x11a557])&&(_0x5dd20=_0x21aef7(_0x5dd20)||_0x5dd20);return _0x5dd20;},y=(_0x56c26f,_0x480d80)=>(_0x21f51f,_0xd960e1)=>_0x480d80(_0x21f51f,_0xd960e1,_0x56c26f),$e=(_0x18102d,_0x4c0f09,_0x2205b1)=>De(_0x18102d,_0x4c0f09+'',_0x2205b1);exports['UniverMCPUIPlugin']=class extends u[_0x8e8fd5(0x238)]{constructor(_0x43d595=L,_0x71c5eb,_0x806417,_0x523e20,_0x823b2b,_0x3096f0){const _0x7e6621=_0x8e8fd5;super(),this[_0x7e6621(0x261)]=_0x43d595,this[_0x7e6621(0x31e)]=_0x71c5eb,this['_configService']=_0x806417,this[_0x7e6621(0x1c7)]=_0x523e20,this[_0x7e6621(0x247)]=_0x823b2b,this[_0x7e6621(0x1eb)]=_0x3096f0;const {..._0x459a75}=u[_0x7e6621(0x1de)]({},L,this[_0x7e6621(0x261)]);this[_0x7e6621(0x298)][_0x7e6621(0x2c8)](P,_0x459a75);}async['onStarting'](){const _0x1f1ba2=_0x8e8fd5,_0x5df92d=[[exports['MCPConnectionUIController']],[exports['MCPConfigUIController']],[exports[_0x1f1ba2(0x306)]]];this[_0x1f1ba2(0x31e)][_0x1f1ba2(0x295)](A['ISocketService'])||_0x5df92d[_0x1f1ba2(0x1dd)]([A[_0x1f1ba2(0x202)],{'useClass':A['WebSocketService']}]),_0x5df92d[_0x1f1ba2(0x232)](_0x45e277=>this['_injector']['add'](_0x45e277)),this[_0x1f1ba2(0x31e)]['get'](exports['MCPConnectionUIController']),this['_injector'][_0x1f1ba2(0x2bd)](exports['MCPConfigUIController']),this[_0x1f1ba2(0x31e)]['get'](exports['MCPUIMenuController']);}},$e(exports['UniverMCPUIPlugin'],_0x8e8fd5(0x2c2),'MCP_UI_PLUGIN'),exports[_0x8e8fd5(0x1f7)]=Ue([u[_0x8e8fd5(0x212)](s[_0x8e8fd5(0x255)]),y(0x1,u[_0x8e8fd5(0x2f9)](u[_0x8e8fd5(0x235)])),y(0x2,u[_0x8e8fd5(0x1e8)]),y(0x3,v[_0x8e8fd5(0x1b4)]),y(0x4,u[_0x8e8fd5(0x2cb)]),y(0x5,u['Inject'](u[_0x8e8fd5(0x1ec)]))],exports['UniverMCPUIPlugin']),exports[_0x8e8fd5(0x282)]=V,exports[_0x8e8fd5(0x315)]=W,exports[_0x8e8fd5(0x1f4)]=b,exports['enUS']=Ee,exports[_0x8e8fd5(0x27f)]=we;
|
|
1
|
+
'use strict';const _0x5ec549=_0x5865;(function(_0x4fac1a,_0x164d68){const _0x3cf685=_0x5865,_0x181241=_0x4fac1a();while(!![]){try{const _0x53ef88=-parseInt(_0x3cf685(0xb7))/0x1+parseInt(_0x3cf685(0x214))/0x2+parseInt(_0x3cf685(0x1e0))/0x3*(parseInt(_0x3cf685(0x137))/0x4)+-parseInt(_0x3cf685(0x163))/0x5+-parseInt(_0x3cf685(0x1dd))/0x6*(-parseInt(_0x3cf685(0x1ad))/0x7)+-parseInt(_0x3cf685(0x1ee))/0x8+-parseInt(_0x3cf685(0x1c7))/0x9;if(_0x53ef88===_0x164d68)break;else _0x181241['push'](_0x181241['shift']());}catch(_0x56145c){_0x181241['push'](_0x181241['shift']());}}}(_0x3acc,0x88d4a));var ue=Object['defineProperty'],ve=(_0x33b5ea,_0x314dc0,_0x2cc4a4)=>_0x314dc0 in _0x33b5ea?ue(_0x33b5ea,_0x314dc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cc4a4}):_0x33b5ea[_0x314dc0]=_0x2cc4a4,I=(_0x5b22c8,_0x4480db,_0x300929)=>ve(_0x5b22c8,typeof _0x4480db!=_0x5ec549(0xf7)?_0x4480db+'':_0x4480db,_0x300929);Object[_0x5ec549(0xe1)](exports,Symbol[_0x5ec549(0x1b8)],{'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:_0x4ff859,..._0x6ce2f7}){const _0x44ec25=_0x5ec549,{icon:_0x256c59,id:_0x2bf82a,className:_0x72febb,extend:_0x3a4a9a,..._0x540122}=_0x6ce2f7,_0x1a9403=(_0x44ec25(0x1fe)+_0x2bf82a+'\x20'+(_0x72febb||''))[_0x44ec25(0x1f5)](),_0x4a8ece=d[_0x44ec25(0x1d7)]('_'+ge());return H(_0x256c59,''+_0x2bf82a,{'defIds':_0x256c59['defIds'],'idSuffix':_0x4a8ece[_0x44ec25(0xba)]},{'ref':_0x4ff859,'className':_0x1a9403,..._0x540122},_0x3a4a9a);}function H(_0x281490,_0x59864a,_0x140f73,_0x1e36d3,_0x5122dd){const _0x4740a1=_0x5ec549;return d['createElement'](_0x281490['tag'],{'key':_0x59864a,...de(_0x281490,_0x140f73,_0x5122dd),..._0x1e36d3},(Ce(_0x281490,_0x140f73)[_0x4740a1(0x172)]||[])[_0x4740a1(0xd8)]((_0x312ae9,_0x515db1)=>H(_0x312ae9,_0x59864a+'-'+_0x281490[_0x4740a1(0x146)]+'-'+_0x515db1,_0x140f73,void 0x0,_0x5122dd)));}function de(_0x229635,_0x33d0d9,_0x5ed592){const _0x2c08af=_0x5ec549,_0x2edea8={..._0x229635[_0x2c08af(0x1eb)]};_0x5ed592!=null&&_0x5ed592[_0x2c08af(0x105)]&&_0x2edea8['fill']===_0x2c08af(0x105)&&(_0x2edea8['fill']=_0x5ed592[_0x2c08af(0x105)]),_0x229635[_0x2c08af(0x146)]==='mask'&&_0x2edea8['id']&&(_0x2edea8['id']=_0x2edea8['id']+_0x33d0d9[_0x2c08af(0x162)]),Object[_0x2c08af(0x207)](_0x2edea8)[_0x2c08af(0x14a)](([_0x4a3fc4,_0x4a276e])=>{const _0x3671c4=_0x2c08af;_0x4a3fc4==='mask'&&typeof _0x4a276e=='string'&&(_0x2edea8[_0x4a3fc4]=_0x4a276e[_0x3671c4(0x1bc)](/url\(#(.*)\)/,_0x3671c4(0x13a)+_0x33d0d9['idSuffix']+')'));});const {defIds:_0x1bb20b}=_0x33d0d9;return!_0x1bb20b||_0x1bb20b['length']===0x0||(_0x229635[_0x2c08af(0x146)]==='use'&&_0x2edea8[_0x2c08af(0x1af)]&&(_0x2edea8['xlink:href']=_0x2edea8['xlink:href']+_0x33d0d9[_0x2c08af(0x162)]),Object['entries'](_0x2edea8)['forEach'](([_0x48425a,_0x430ee1])=>{const _0x5b6423=_0x2c08af;typeof _0x430ee1==_0x5b6423(0x184)&&(_0x2edea8[_0x48425a]=_0x430ee1[_0x5b6423(0x1bc)](/url\(#(.*)\)/,_0x5b6423(0x13a)+_0x33d0d9[_0x5b6423(0x162)]+')'));})),_0x2edea8;}function Ce(_0x37dda0,_0x19af4c){const _0x2aa7b7=_0x5ec549;var _0x156926;const {defIds:_0x173c16}=_0x19af4c;return!_0x173c16||_0x173c16[_0x2aa7b7(0x159)]===0x0?_0x37dda0:_0x37dda0[_0x2aa7b7(0x146)]===_0x2aa7b7(0xab)&&((_0x156926=_0x37dda0[_0x2aa7b7(0x172)])!=null&&_0x156926[_0x2aa7b7(0x159)])?{..._0x37dda0,'children':_0x37dda0[_0x2aa7b7(0x172)][_0x2aa7b7(0xd8)](_0x5e3239=>typeof _0x5e3239[_0x2aa7b7(0x1eb)]['id']=='string'&&_0x173c16&&_0x173c16['includes'](_0x5e3239[_0x2aa7b7(0x1eb)]['id'])?{..._0x5e3239,'attrs':{..._0x5e3239[_0x2aa7b7(0x1eb)],'id':_0x5e3239[_0x2aa7b7(0x1eb)]['id']+_0x19af4c[_0x2aa7b7(0x162)]}}:_0x5e3239)}:_0x37dda0;}function ge(){const _0x5cca0a=_0x5ec549;return Math[_0x5cca0a(0x110)]()[_0x5cca0a(0x151)](0x24)[_0x5cca0a(0x16e)](0x2,0x8);}_['displayName']=_0x5ec549(0x1a8);const fe={'tag':_0x5ec549(0xb0),'attrs':{'xmlns':_0x5ec549(0x14b),'fill':_0x5ec549(0x19a),'viewBox':'0\x200\x2016\x2016','width':_0x5ec549(0x1f6),'height':_0x5ec549(0x1f6)},'children':[{'tag':_0x5ec549(0x173),'attrs':{'fill':_0x5ec549(0x1c9),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x5ec549(0xa3),'clipRule':_0x5ec549(0xa3)}}]},B=d[_0x5ec549(0x1b3)](function(_0x7d3d21,_0x576571){const _0x400f3b=_0x5ec549;return d['createElement'](_,Object[_0x400f3b(0xb3)]({},_0x7d3d21,{'id':_0x400f3b(0xc7),'ref':_0x576571,'icon':fe}));});B[_0x5ec549(0xfe)]=_0x5ec549(0x103);const pe={'tag':_0x5ec549(0xb0),'attrs':{'xmlns':_0x5ec549(0x14b),'fill':_0x5ec549(0x19a),'viewBox':_0x5ec549(0x15b),'width':'1em','height':_0x5ec549(0x1f6)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5ec549(0x1e3)}}]},F=d[_0x5ec549(0x1b3)](function(_0x276ac0,_0x592f12){const _0x4274b1=_0x5ec549;return d[_0x4274b1(0x111)](_,Object[_0x4274b1(0xb3)]({},_0x276ac0,{'id':'close-icon','ref':_0x592f12,'icon':pe}));});F[_0x5ec549(0xfe)]=_0x5ec549(0x1ef);const he={'tag':_0x5ec549(0xb0),'attrs':{'xmlns':_0x5ec549(0x14b),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5ec549(0x1f6),'height':_0x5ec549(0x1f6)},'children':[{'tag':'path','attrs':{'fill':_0x5ec549(0x1c9),'d':_0x5ec549(0x20f)}},{'tag':'path','attrs':{'fill':_0x5ec549(0x1c9),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x5ec549(0x173),'attrs':{'fill':_0x5ec549(0x1c9),'d':_0x5ec549(0xc8),'fillRule':_0x5ec549(0xa3),'clipRule':_0x5ec549(0xa3)}}]},Y=d[_0x5ec549(0x1b3)](function(_0x27bf1c,_0x15bb08){const _0x55f091=_0x5ec549;return d['createElement'](_,Object[_0x55f091(0xb3)]({},_0x27bf1c,{'id':_0x55f091(0xb6),'ref':_0x15bb08,'icon':he}));});Y[_0x5ec549(0xfe)]=_0x5ec549(0xaa);const me={'tag':_0x5ec549(0xb0),'attrs':{'xmlns':_0x5ec549(0x14b),'fill':'none','viewBox':_0x5ec549(0x15b),'width':_0x5ec549(0x1f6),'height':_0x5ec549(0x1f6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5ec549(0x173),'attrs':{'stroke':_0x5ec549(0x1c9),'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':_0x5ec549(0x18b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5ec549(0xab),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5ec549(0x15c)},'children':[{'tag':_0x5ec549(0x173),'attrs':{'fill':'white','d':_0x5ec549(0x190)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},q=d['forwardRef'](function(_0x3d8bba,_0x28db2){const _0x2dc199=_0x5ec549;return d[_0x2dc199(0x111)](_,Object['assign']({},_0x3d8bba,{'id':_0x2dc199(0x1e1),'ref':_0x28db2,'icon':me}));});q[_0x5ec549(0xfe)]='OffLineIcon';const xe={'tag':_0x5ec549(0xb0),'attrs':{'xmlns':_0x5ec549(0x14b),'fill':_0x5ec549(0x19a),'viewBox':_0x5ec549(0xda),'width':_0x5ec549(0x1f6),'height':_0x5ec549(0x1f6)},'children':[{'tag':'g','attrs':{'clipPath':_0x5ec549(0x1a0)},'children':[{'tag':_0x5ec549(0x173),'attrs':{'stroke':_0x5ec549(0x1c9),'d':_0x5ec549(0x1d5),'strokeLinecap':_0x5ec549(0x18b),'strokeLinejoin':_0x5ec549(0x18b),'strokeWidth':1.2}}]},{'tag':_0x5ec549(0xab),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5ec549(0xe9)},'children':[{'tag':_0x5ec549(0x173),'attrs':{'fill':_0x5ec549(0x1b4),'d':_0x5ec549(0x190),'transform':_0x5ec549(0x203)}}]}]}],'defIds':[_0x5ec549(0xe9)]},V=d[_0x5ec549(0x1b3)](function(_0x59056b,_0x7008d0){const _0x47a9ab=_0x5ec549;return d[_0x47a9ab(0x111)](_,Object[_0x47a9ab(0xb3)]({},_0x59056b,{'id':_0x47a9ab(0xcb),'ref':_0x7008d0,'icon':xe}));});V[_0x5ec549(0xfe)]=_0x5ec549(0xdf);function Z(_0x463d88){const _0x1edfe9=_0x5ec549;var _0x55d822,_0xbc14af;const {mcpCoreConfig:_0x2396ba,onSave:_0x388dc9,loading:_0xfd02a9=!0x1,config:_0x4e5fb6,connectionStatus$:_0x559734,connectionError$:_0x2a95c7,currentApiKey$:_0x599b0c,currentSessionId$:_0x132f76}=_0x463d88,_0x5d19fe=v[_0x1edfe9(0x120)](u[_0x1edfe9(0x123)]),_0x1456b0=v[_0x1edfe9(0xd3)](_0x559734,s['MCPConnectionStatus'][_0x1edfe9(0x187)]),_0x4436c2=v[_0x1edfe9(0xd3)](_0x2a95c7,s['MCPConnectionError']['NONE']),_0x15fde5=v[_0x1edfe9(0xd3)](_0x132f76,''),_0x5a6a0e=v[_0x1edfe9(0xd3)](_0x599b0c,''),[_0x5809fd,_0x232f99]=d[_0x1edfe9(0x15e)](_0x5a6a0e||''),_0x27c871=!0x0,_0x1bd2af=_0x4e5fb6[_0x1edfe9(0x1b7)]&&_0x2396ba[_0x1edfe9(0x1bf)]&&(_0x2396ba[_0x1edfe9(0x1bf)][_0x1edfe9(0xfd)](_0x1edfe9(0x160))||_0x2396ba[_0x1edfe9(0x1bf)][_0x1edfe9(0xfd)]('univer.ai')),_0x45b286=(_0x55d822=_0x2396ba[_0x1edfe9(0x1bf)])==null?void 0x0:_0x55d822[_0x1edfe9(0xfd)](_0x1edfe9(0x160)),_0x4f31e0=(_0xbc14af=_0x2396ba[_0x1edfe9(0x1bf)])==null?void 0x0:_0xbc14af[_0x1edfe9(0xfd)]('univer.ai'),_0x1b34a5=_0x45b286?_0x1edfe9(0xa8):_0x1edfe9(0x11a),_0x1184af=_0x4e5fb6[_0x1edfe9(0x1b7)]&&(_0x45b286||_0x4f31e0),[_0x264730,_0x539d4b]=d[_0x1edfe9(0x15e)](!_0x5809fd['trim']()),_0x3145df=(_0xc82f2f,_0x15c2f1)=>{const _0x85d3c8=_0x1edfe9;if(_0x15c2f1===s[_0x85d3c8(0x1a5)][_0x85d3c8(0xff)])return _0x85d3c8(0x19d);switch(_0xc82f2f){case s[_0x85d3c8(0x189)][_0x85d3c8(0x183)]:return _0x85d3c8(0x179);case s['MCPConnectionStatus'][_0x85d3c8(0x197)]:case s[_0x85d3c8(0x189)]['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x85d3c8(0x189)][_0x85d3c8(0xef)]:return _0x85d3c8(0x19d);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1e4989=(_0x479d11,_0x4c3e4c)=>{const _0x268ca9=_0x1edfe9;if(_0x4c3e4c===s[_0x268ca9(0x1a5)][_0x268ca9(0xff)])return _0x268ca9(0xde);switch(_0x479d11){case s[_0x268ca9(0x189)][_0x268ca9(0x183)]:return _0x268ca9(0x18e);case s[_0x268ca9(0x189)]['CONNECTING']:case s[_0x268ca9(0x189)][_0x268ca9(0x1a3)]:return _0x268ca9(0xf5);case s[_0x268ca9(0x189)][_0x268ca9(0xef)]:return _0x268ca9(0xde);default:return _0x268ca9(0x181);}},_0x2da299=_0x46697b=>{const _0x15123c=_0x1edfe9;switch(_0x46697b){case s[_0x15123c(0x189)]['CONNECTED']:return _0x5d19fe['t'](_0x15123c(0x127));case s['MCPConnectionStatus'][_0x15123c(0x197)]:return _0x5d19fe['t'](_0x15123c(0xd7));case s['MCPConnectionStatus']['FAILED']:return _0x5d19fe['t'](_0x15123c(0x1ba));case s[_0x15123c(0x189)][_0x15123c(0x1a3)]:return _0x5d19fe['t'](_0x15123c(0x152));default:return _0x5d19fe['t'](_0x15123c(0x139));}},_0x3f1051=_0x22019c=>{const _0x1aef3e=_0x1edfe9;switch(_0x22019c){case s[_0x1aef3e(0x1a5)][_0x1aef3e(0xff)]:return _0x5d19fe['t'](_0x1aef3e(0x1b6));case s[_0x1aef3e(0x1a5)]['SESSION_ID_OCCUPIED']:return _0x5d19fe['t'](_0x1aef3e(0xae));case s['MCPConnectionError']['NETWORK_ERROR']:return _0x5d19fe['t']('mcpConfig.connectionError.networkError');case s[_0x1aef3e(0x1a5)][_0x1aef3e(0x20b)]:return _0x5d19fe['t'](_0x1aef3e(0x154));default:return'';}},_0x5df33e=d['useCallback'](()=>{const _0x49a578={..._0x2396ba,'apiKey':_0x5809fd['trim'](),'enableAuth':_0x27c871};_0x388dc9(_0x49a578);},[_0x2396ba,_0x5809fd,_0x27c871,_0x388dc9]),_0x30dd83=_0x5809fd[_0x1edfe9(0x1f5)]()['length']>0x0;return i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x118),'children':[i[_0x1edfe9(0xac)]('div',{'className':_0x1edfe9(0x18f),'children':i['jsxs']('div',{'className':_0x1edfe9(0x12c),'children':[i[_0x1edfe9(0xac)]('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i[_0x1edfe9(0xac)](_0x1edfe9(0xb9),{'className':'univer-text-white','children':'⚙'})}),i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'children':i['jsx']('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x5d19fe['t'](_0x1edfe9(0x14f))})})]})}),i[_0x1edfe9(0x136)]('div',{'className':_0x1edfe9(0xe0),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':f[_0x1edfe9(0x1a7)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x3145df(_0x1456b0,_0x4436c2)),'children':i[_0x1edfe9(0x136)]('div',{'className':_0x1edfe9(0xe8),'children':[i['jsx']('div',{'className':f['clsx'](_0x1edfe9(0x1ab),_0x1e4989(_0x1456b0,_0x4436c2))}),i['jsx'](_0x1edfe9(0xb9),{'className':'univer-text-sm\x20univer-font-medium','children':_0x2da299(_0x1456b0)})]})}),_0x4436c2!==s['MCPConnectionError'][_0x1edfe9(0xc1)]&&(_0x1456b0===s['MCPConnectionStatus'][_0x1edfe9(0xef)]||_0x4436c2===s[_0x1edfe9(0x1a5)]['UNAUTHORIZED'])&&i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'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['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x201),'children':[i[_0x1edfe9(0xac)]('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x1edfe9(0xac)]('p',{'className':_0x1edfe9(0x1d4),'children':_0x3f1051(_0x4436c2)})]})})]}),i['jsx'](_0x1edfe9(0x1a4),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x11e),'children':[i['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xc6),'children':[i['jsxs']('label',{'className':_0x1edfe9(0x1cd),'children':[i['jsx'](_0x1edfe9(0xb9),{'children':'🔑'}),'\x20',_0x5d19fe['t']('mcpConfig.apiKey'),i[_0x1edfe9(0xac)](_0x1edfe9(0xb9),{'className':'univer-text-red-500','children':'*'}),_0x1bd2af&&i['jsx']('a',{'className':_0x1edfe9(0x1f7),'title':_0x5d19fe['t']('mcpConfig.apiApplyInfo.title'),'role':_0x1edfe9(0x1d2),'onClick':()=>_0x539d4b(!0x0),'children':i[_0x1edfe9(0xac)](Y,{})})]}),i[_0x1edfe9(0xac)](f[_0x1edfe9(0x1bd)],{'type':'text','placeholder':_0x5d19fe['t'](_0x1edfe9(0x113)),'value':_0x5809fd,'disabled':_0xfd02a9,'autoComplete':_0x1edfe9(0x208),'onChange':_0x232f99}),i['jsx']('p',{'className':_0x1edfe9(0x155),'children':_0x5d19fe['t'](_0x1edfe9(0x21b))})]}),_0x1bd2af&&_0x264730&&i[_0x1edfe9(0x136)]('div',{'className':_0x1edfe9(0xea),'children':[i[_0x1edfe9(0xac)]('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':_0x1edfe9(0x1d2),'onClick':()=>_0x539d4b(!0x1),'children':i[_0x1edfe9(0xac)](F,{'className':_0x1edfe9(0x13d)})}),i['jsxs'](_0x1edfe9(0x1a4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x1edfe9(0xac)]('div',{'className':_0x1edfe9(0x1c3),'children':i['jsx']('span',{'className':'univer-text-blue-600','children':'🚀'})}),i['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x1c0),'children':[i['jsx']('h4',{'className':_0x1edfe9(0x17e),'children':_0x5d19fe['t']('mcpConfig.apiApplyInfo.title')}),i[_0x1edfe9(0xac)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x5d19fe['t'](_0x1edfe9(0x164))}),i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x219),'children':_0x1184af&&i[_0x1edfe9(0x136)]('a',{'className':_0x1edfe9(0x180),'href':_0x1b34a5,'target':_0x1edfe9(0x176),'rel':_0x1edfe9(0x1f9),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0xb9),{'children':'🤖'}),_0x5d19fe['t'](_0x1edfe9(0x122)),i[_0x1edfe9(0xac)](_0x1edfe9(0xb9),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xe2),'children':['✨','\x20',_0x5d19fe['t'](_0x1edfe9(0x1e9))]})]})]})]}),_0x4e5fb6[_0x1edfe9(0x1b7)]&&i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x1edfe9(0x136)]('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['jsx'](_0x1edfe9(0xb9),{'children':'🔗'}),'\x20',_0x5d19fe['t']('mcpConfig.connectionInfo')]}),i['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xbe),'children':[i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xa7),'children':[i['jsx']('p',{'className':_0x1edfe9(0x21e),'children':_0x5d19fe['t'](_0x1edfe9(0x212))}),i['jsxs']('div',{'className':_0x1edfe9(0xc6),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5d19fe['t'](_0x1edfe9(0xd9))}),i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x206),'children':[i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xe8),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0xb9),{'className':_0x1edfe9(0x138),'children':'1'}),_0x5d19fe['t'](_0x1edfe9(0xdd))]}),i['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xe8),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0xb9),{'className':_0x1edfe9(0x138),'children':'2'}),_0x5d19fe['t']('mcpConfig.configStep2')]}),i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1edfe9(0xac)]('span',{'className':_0x1edfe9(0x138),'children':'3'}),_0x5d19fe['t'](_0x1edfe9(0x12e))]})]})]})]}),i['jsxs']('div',{'className':_0x1edfe9(0xc6),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1edfe9(0x1e2)}),i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x1e7),'children':i['jsx'](_0x1edfe9(0x19f),{'className':_0x1edfe9(0x1c5),'children':JSON[_0x1edfe9(0x130)]({'mcpServers':{'univer':{'url':_0x1edfe9(0xc4)+(_0x15fde5||_0x1edfe9(0xed)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x5809fd||_0x1edfe9(0x13c))}}}},null,0x2)})})]}),i['jsxs'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xa7),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x1e6),'children':_0x5d19fe['t']('mcpConfig.configParameters')}),i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xc6),'children':[i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x1edfe9(0x1a4),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x1f1),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0xd0),'children':'univer_session_id:'}),i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x155),'children':_0x5d19fe['t'](_0x1edfe9(0x1ed))})]})]}),i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x1b9)}),i['jsxs']('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1edfe9(0x1f8)}),i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x155),'children':_0x5d19fe['t'](_0x1edfe9(0x131))})]})]})]})]})]})]}),i[_0x1edfe9(0xac)](f['Button'],{'onClick':_0x5df33e,'disabled':!_0x30dd83||_0xfd02a9,'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':_0xfd02a9?i[_0x1edfe9(0x136)](_0x1edfe9(0xb9),{'className':_0x1edfe9(0xe8),'children':[i['jsx'](_0x1edfe9(0xb9),{'children':'⟲'}),_0x5d19fe['t'](_0x1edfe9(0xeb))]}):i[_0x1edfe9(0x136)]('span',{'className':_0x1edfe9(0xe8),'children':[i[_0x1edfe9(0xac)](B,{}),_0x5d19fe['t']('mcpConfig.save')]})}),i[_0x1edfe9(0xac)]('div',{'className':_0x1edfe9(0x171),'children':i[_0x1edfe9(0x136)]('div',{'className':_0x1edfe9(0xbc),'children':[i[_0x1edfe9(0xac)](_0x1edfe9(0xb9),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs'](_0x1edfe9(0x1a4),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x1edfe9(0xac)](_0x1edfe9(0x1a4),{'className':_0x1edfe9(0x196),'children':_0x1edfe9(0x1b2)}),i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'children':['•',_0x5d19fe['t'](_0x1edfe9(0x161))]}),i[_0x1edfe9(0x136)](_0x1edfe9(0x1a4),{'children':['•',_0x5d19fe['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x5ec549(0x209),z={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x5ec549(0xd4)],Pe=(_0x2c60fc,_0x5564d3,_0x20eca4,_0x65f825)=>{const _0x546701=_0x5ec549;for(var _0x5e56a0=_0x65f825>0x1?void 0x0:_0x65f825?Se(_0x5564d3,_0x20eca4):_0x5564d3,_0x26c65b=_0x2c60fc[_0x546701(0x159)]-0x1,_0x1529e2;_0x26c65b>=0x0;_0x26c65b--)(_0x1529e2=_0x2c60fc[_0x26c65b])&&(_0x5e56a0=_0x1529e2(_0x5e56a0)||_0x5e56a0);return _0x5e56a0;},g=(_0x10f89a,_0x4531c1)=>(_0x1f728e,_0x1ae0b8)=>_0x4531c1(_0x1f728e,_0x1ae0b8,_0x10f89a);const O=_0x5ec549(0x1b0),D=_0x5ec549(0x200);function _0x3acc(){const _0x4b2096=['showDeveloperTools','toStringTag','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.connectionStatus.failed','Injector','replace','Input','API\x20密钥无效,请检查密钥是否正确','mcpServerUrl','univer-flex-1','zhCN','连接中...','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','会话ID','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MenuIcon','7400520QbxhuH','MCP\x20配置','currentColor','_dialogService','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_mcpCoreConfig$','连接失败','_registerComponent','mcpConfig.validation.invalidApiKey','button','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','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','配置更改将立即生效','useRef','未连接','mcpStatus.disconnected','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','UniverMCPPlugin','Session\x20ID','5188074LVqSPN','_logService','_initializeCommands','9DjbsqF','off-line-icon','MCP\x20Configuration','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','MCP:\x20网络错误','点击配置\x20MCP','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','什么是\x20API\x20密钥?','mcpConfig.apiApplyInfo.getStarted','重启您的\x20MCP\x20客户端以使配置生效','attrs','MCP\x20重连中...','mcpConfig.sessionIdDescription','8315592qIqAYF','CloseIcon','bottom','univer-min-w-0\x20univer-flex-1','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCPConfigUIController','\x20-\x20','trim','1em','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','Authorization:','noopener\x20noreferrer','ILogService','has','MCP\x20Client\x20Configuration','Inject','univerjs-icon\x20univerjs-icon-','_config$','mcp-config-dialog','univer-flex\x20univer-items-start\x20univer-gap-2','warn','translate(.97)','sessionId$','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','entries','off','mcp-ui.config','MCP_PLUGIN_CONFIG_KEY','MAX_RETRIES_EXCEEDED','showConfigPanel','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCPConnectionController','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\x20Disconnected','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.configInstructions','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2080388tOffZp','mcpConfig.title','useCallback','MCP\x20Connection\x20Failed','validateApiKey','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.apiKeyHint','mcpStatus.networkError','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-text-xs\x20univer-text-gray-600','_injector','Click\x20to\x20connect\x20MCP','超出最大重试次数,请稍后再试','evenodd','MCP:\x20Session\x20ID\x20Occupied','mcpStatus.sessionOccupied','_mcpConnectionController','univer-space-y-3','https://console.univer.plus','IMessageService','HelpIcon','defs','jsx','getCurrentConfig','mcpConfig.connectionError.sessionOccupied','MCP:\x20超出最大重试次数','svg','isValid','Enable\x20authentication\x20for\x20secure\x20connections','assign','_loadStoredApiKey','mcpConfig.validation.apiKeyTooShort','help-icon','32147TrCZvG','API\x20key\x20with\x20Bearer\x20prefix.','span','current','_menuManagerService','univer-flex\x20univer-gap-3','univer-text-red-500','univer-space-y-4','网络连接错误,请检查您的网络连接','_initializeMenus','NONE','启用身份验证','register','https://mcp.univer.ai/mcp/?univer_session_id=','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-space-y-2','check-mark-icon','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','Configuration\x20Steps:','OpenMCPConfigPanelCommand','on-line-icon','MCP\x20Unknown\x20Status','HEADER_MENU','最大重试次数','mcpStatus.connected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','BuiltInUIPart','ILocalStorageService','useObservable','getOwnPropertyDescriptor','MCP\x20连接中...','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.connectionStatus.connecting','map','mcpConfig.configStepTitle','0\x200\x2017\x2016','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','BUTTON','mcpConfig.configStep1','univer-bg-red-500','OnLineIcon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','defineProperty','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','IDialogService','CommandType','将配置添加到您的\x20MCP\x20客户端设置文件中','MCPUIMenuController','Invalid\x20configuration','univer-flex\x20univer-items-center\x20univer-gap-2','on-line-icon_clip0_910_349','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','mcpConfig.saving','MCP\x20连接失败','<SESSION_ID>','disposeWithMe','FAILED','mcpStatus.connecting','API\x20密钥','Enter\x20your\x20API\x20key','MCPConnectionUIController','Configuration\x20Parameters:','univer-bg-blue-500','next','symbol','MCP:\x20未授权','_localeService','apiKey','将以下配置添加到您的\x20MCP\x20客户端设置中:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','includes','displayName','UNAUTHORIZED','ISocketService','MCP\x20客户端配置','_apiKey$','CheckMarkIcon','getConfig','colorChannel1','MCP:\x20会话\x20ID\x20已被占用','MCP:\x20Unauthorized','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Save\x20Configuration','setConfig','您的\x20API\x20密钥将在此浏览器中本地存储','Click\x20to\x20configure\x20MCP','MCP\x20Retrying...','启用身份验证以获得安全连接','Connected','random','createElement','配置保存成功','mcpConfig.apiKeyPlaceholder','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','_messageService','请输入您的\x20API\x20密钥','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpStatus.retrying','https://console.univer.ai','_initAutoConnect','NETWORK_ERROR','mcpStatus.clickToConfigure','univer-space-y-5','_config','useDependency','Univer\x20AI\x20Console','mcpConfig.apiApplyInfo.univerAiLabel','LocaleService','univer-text-yellow-500','_createConfigPanelComponent','_connectionController','mcpConfig.connectionStatus.connected','Failed\x20to\x20save\x20configuration','connectInjector','@univerjs-pro/mcp-ui','univer-flex\x20univer-items-center','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.configStep3','open','stringify','mcpConfig.authorizationDescription','COMMAND','_initStatusComponent','IConfigService','mergeMenu','jsxs','846724ocdzLQ','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','mcpConfig.connectionStatus.disconnected','url(#$1','subscribeConfigValue$','<API_KEY>','univer-size-4','_commandService','subscribe','API\x20密钥长度至少需要\x2010\x20位','push','connectionError$','Configuration\x20saved\x20successfully','MCP\x20Connecting...','_componentManager','tag','Disconnected','_handleConfigure','univer-text-green-500','forEach','http://www.w3.org/2000/svg','_initConfigSync','MCP\x20状态未知','Connecting...','mcpConfig.description','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','toString','mcpConfig.connectionStatus.retrying','0.16.1-insiders.20260311-074e8ca','mcpConfig.connectionError.maxRetriesExceeded','univer-text-xs\x20univer-text-gray-500','_uiPartsService','_localStorageService','mcpStatus.failed','length','__setCustomHeaders','0\x200\x2016\x2016','off-line-icon_clip0_910_343','mcpConfig.configError','useState','What\x20is\x20API\x20Key?','univer.plus','mcpConfig.note1','idSuffix','427910iHxcYv','mcpConfig.apiApplyInfo.description','mcpStatus.unknown','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','value','配置无效','Bearer\x20','UniverMCPUIPlugin','_handleConfigSave','配置保存失败','packageName','substring','SESSION_ID_OCCUPIED','MCPConfigPanel','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children','path','pluginName','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_blank','setItem','mcpStatus.unauthorized','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','version','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.validation.invalidConfig','connectionStatus$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpStatus.clickToConnect','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','univer-bg-gray-500','IUIPartsService','CONNECTED','string','Saving...','_loading$','DISCONNECTED','_configService','MCPConnectionStatus','onStarting','round','BehaviorSubject','保存配置','univer-bg-green-500','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','M0\x200H16V16H0z','MessageType','removeItem','WebSocketService','DependentOn','_validateConfig','univer-font-medium','CONNECTING','Enable\x20Authentication','MCP_UI_PLUGIN','none','error','Success','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','pre','url(#on-line-icon_clip0_910_349)','show','close','RETRYING','div','MCPConnectionError','配置步骤:','clsx','UniverIcon','mcpStatus.maxRetriesExceeded','点击连接\x20MCP','univer-size-2\x20univer-rounded-full','ICommandService','7ZBQbCf','API\x20key\x20is\x20required','xlink:href','mcp.apiKey','registerComponent','Configuration\x20Notes:','forwardRef','white','get','mcpConfig.connectionError.unauthorized'];_0x3acc=function(){return _0x4b2096;};return _0x3acc();}exports[_0x5ec549(0x1f3)]=class extends u['Disposable']{constructor(_0x35807a,_0x325a25,_0x23de4a,_0xf8124f,_0x537ac4,_0x26deee,_0x3c41a2,_0x464188,_0x435bd0,_0xd02014){const _0x1a0194=_0x5ec549;super(),I(this,_0x1a0194(0x186),new M[(_0x1a0194(0x18c))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x1a0194(0x18c))]({})),I(this,_0x1a0194(0x1ff),new M[(_0x1a0194(0x18c))]({})),I(this,_0x1a0194(0x102),new M[(_0x1a0194(0x18c))]('')),I(this,_0x1a0194(0x16b),async _0x137b6e=>{const _0x5bb029=_0x1a0194;var _0x4047b3,_0x2f68e8;this[_0x5bb029(0x186)]['next'](!0x0);try{const _0xf73560=await this[_0x5bb029(0x195)](_0x137b6e);if(!_0xf73560[_0x5bb029(0xb1)]){this['_messageService'][_0x5bb029(0x1a1)]({'type':f[_0x5bb029(0x191)]['Error'],'content':_0xf73560['errorMessage']||this[_0x5bb029(0xf9)]['t'](_0x5bb029(0x17c))});return;}_0x137b6e[_0x5bb029(0xfa)]?await this[_0x5bb029(0x157)][_0x5bb029(0x177)](O,_0x137b6e[_0x5bb029(0xfa)]['trim']()):await this[_0x5bb029(0x157)][_0x5bb029(0x192)](O),this['_apiKey$']['next'](((_0x4047b3=_0x137b6e[_0x5bb029(0xfa)])==null?void 0x0:_0x4047b3['trim']())||''),this[_0x5bb029(0xa6)][_0x5bb029(0x15a)]({'Authorization':_0x5bb029(0x169)+((_0x2f68e8=_0x137b6e[_0x5bb029(0xfa)])==null?void 0x0:_0x2f68e8[_0x5bb029(0x1f5)]())}),this['_messageService'][_0x5bb029(0x1a1)]({'type':f[_0x5bb029(0x191)][_0x5bb029(0x19c)],'content':this[_0x5bb029(0xf9)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x1db1d5=_0x5bb029;this['_dialogService'][_0x1db1d5(0x1a2)](D);},0x320);}catch(_0x4b2ed2){this[_0x5bb029(0x1de)][_0x5bb029(0x19b)](_0x5bb029(0x20d),_0x4b2ed2),this[_0x5bb029(0x116)][_0x5bb029(0x1a1)]({'type':f[_0x5bb029(0x191)]['Error'],'content':this[_0x5bb029(0xf9)]['t'](_0x5bb029(0x15d))});}finally{this[_0x5bb029(0x186)]['next'](!0x1);}}),(this[_0x1a0194(0x21f)]=_0x35807a,this[_0x1a0194(0x156)]=_0x325a25,this[_0x1a0194(0x188)]=_0x23de4a,this[_0x1a0194(0x157)]=_0xf8124f,this['_dialogService']=_0x537ac4,this[_0x1a0194(0x116)]=_0x26deee,this[_0x1a0194(0x145)]=_0x3c41a2,this['_localeService']=_0x464188,this[_0x1a0194(0x1de)]=_0x435bd0,this[_0x1a0194(0xa6)]=_0xd02014,this[_0x1a0194(0x14c)](),this['_loadStoredApiKey'](),this[_0x1a0194(0x1d0)]());}['showConfigPanel'](){const _0x2d6888=_0x5ec549,_0x4d170a=this[_0x2d6888(0x188)][_0x2d6888(0x104)](P);_0x4d170a!=null&&_0x4d170a[_0x2d6888(0x1b7)]&&this[_0x2d6888(0x1ca)][_0x2d6888(0x12f)]({'id':D,'title':{'title':this[_0x2d6888(0xf9)]['t'](_0x2d6888(0x215))},'children':{'label':_0x2d6888(0x170)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1b5735=_0x2d6888;this[_0x1b5735(0x1ca)][_0x1b5735(0x1a2)](D);}});}[_0x5ec549(0xad)](){const _0x57b104=_0x5ec549;return this[_0x57b104(0x1ce)][_0x57b104(0x167)];}[_0x5ec549(0x1d0)](){const _0x247339=_0x5ec549;this['disposeWithMe'](this[_0x247339(0x145)][_0x247339(0xc3)](_0x247339(0x170),this[_0x247339(0x125)]()));}['_createConfigPanelComponent'](){return v['connectInjector'](()=>{const _0x15dad8=_0x5865;var _0xaac1a5,_0x379291,_0x59c13a;return i[_0x15dad8(0xac)](Z,{'config':this[_0x15dad8(0x1ff)][_0x15dad8(0x167)],'mcpCoreConfig':this[_0x15dad8(0x1ce)][_0x15dad8(0x167)],'currentApiKey$':this[_0x15dad8(0x102)],'onSave':this['_handleConfigSave'],'loading':this[_0x15dad8(0x186)]['value'],'connectionStatus$':(_0xaac1a5=this[_0x15dad8(0xa6)])==null?void 0x0:_0xaac1a5[_0x15dad8(0x17d)],'connectionError$':(_0x379291=this['_mcpConnectionController'])==null?void 0x0:_0x379291[_0x15dad8(0x142)],'currentSessionId$':(_0x59c13a=this[_0x15dad8(0xa6)])==null?void 0x0:_0x59c13a[_0x15dad8(0x204)]});},this['_injector']);}['_initConfigSync'](){const _0x1d0c46=_0x5ec549;this['disposeWithMe'](this['_configService'][_0x1d0c46(0x13b)](s[_0x1d0c46(0x20a)])[_0x1d0c46(0x13f)](_0x21c92d=>{const _0x3f4706=_0x1d0c46;this[_0x3f4706(0x1ce)][_0x3f4706(0xf6)](_0x21c92d||{});}));const _0x2af62a=this[_0x1d0c46(0x188)][_0x1d0c46(0x104)](s[_0x1d0c46(0x20a)]);this[_0x1d0c46(0x1ce)][_0x1d0c46(0xf6)](_0x2af62a||{}),this[_0x1d0c46(0xee)](this[_0x1d0c46(0x188)][_0x1d0c46(0x13b)](P)[_0x1d0c46(0x13f)](_0x4a9adc=>{const _0x31696a=_0x1d0c46;this[_0x31696a(0x1ff)][_0x31696a(0xf6)](_0x4a9adc||{});}));const _0x5043dd=this[_0x1d0c46(0x188)]['getConfig'](P);this[_0x1d0c46(0x1ff)][_0x1d0c46(0xf6)](_0x5043dd||{});}async[_0x5ec549(0xb4)](){const _0x35aac7=_0x5ec549,_0x405873=this[_0x35aac7(0x188)][_0x35aac7(0x104)](P);if(!(_0x405873!=null&&_0x405873[_0x35aac7(0x1b7)]))return;const _0x388c28=await this[_0x35aac7(0x157)]['getItem'](O);_0x388c28&&(this[_0x35aac7(0xa6)][_0x35aac7(0x15a)]({'Authorization':_0x35aac7(0x169)+_0x388c28}),this[_0x35aac7(0x102)][_0x35aac7(0xf6)](_0x388c28));}async[_0x5ec549(0x195)](_0x3412aa){const _0x4dc6fc=_0x5ec549;if(!_0x3412aa['apiKey']||_0x3412aa['apiKey'][_0x4dc6fc(0x1f5)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4dc6fc(0xf9)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3412aa[_0x4dc6fc(0xfa)][_0x4dc6fc(0x1f5)]()[_0x4dc6fc(0x159)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4dc6fc(0xf9)]['t'](_0x4dc6fc(0xb5))};try{const _0x2d0645=await this[_0x4dc6fc(0x21f)][_0x4dc6fc(0x1b5)](s[_0x4dc6fc(0x20e)])[_0x4dc6fc(0x218)](_0x3412aa[_0x4dc6fc(0xfa)][_0x4dc6fc(0x1f5)]());return _0x2d0645[_0x4dc6fc(0xb1)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2d0645[_0x4dc6fc(0x19b)]||this[_0x4dc6fc(0xf9)]['t'](_0x4dc6fc(0x1d1))};}catch(_0x44a332){return console[_0x4dc6fc(0x202)](_0x4dc6fc(0x1da),_0x44a332),{'isValid':!0x0};}}},exports[_0x5ec549(0x1f3)]=Pe([g(0x0,u[_0x5ec549(0x1fd)](u[_0x5ec549(0x1bb)])),g(0x1,v[_0x5ec549(0x182)]),g(0x2,u[_0x5ec549(0x134)]),g(0x3,u[_0x5ec549(0xd2)]),g(0x4,v[_0x5ec549(0xe3)]),g(0x5,v[_0x5ec549(0xa9)]),g(0x6,u[_0x5ec549(0x1fd)](v['ComponentManager'])),g(0x7,u[_0x5ec549(0x1fd)](u[_0x5ec549(0x123)])),g(0x8,u[_0x5ec549(0x1fa)]),g(0x9,u[_0x5ec549(0x1fd)](s[_0x5ec549(0x20e)]))],exports[_0x5ec549(0x1f3)]);const b={'id':'mcp-ui.command.openConfigPanel','type':u[_0x5ec549(0xe4)][_0x5ec549(0x132)],'handler':async(_0x24ed0a,_0x20bae0)=>(_0x24ed0a[_0x5ec549(0x1b5)](exports[_0x5ec549(0x1f3)])['showConfigPanel'](),!0x0)};function W(_0x27e42b,_0x4109d1){const _0x308442=_0x5ec549;switch(_0x27e42b){case s[_0x308442(0x189)]['DISCONNECTED']:return _0x308442(0x1d9);case s[_0x308442(0x189)][_0x308442(0x197)]:return _0x308442(0xf0);case s[_0x308442(0x189)][_0x308442(0x183)]:return _0x308442(0xcf);case s[_0x308442(0x189)]['FAILED']:switch(_0x4109d1){case s['MCPConnectionError'][_0x308442(0xff)]:return _0x308442(0x178);case s['MCPConnectionError'][_0x308442(0x16f)]:return _0x308442(0xa5);case s[_0x308442(0x1a5)][_0x308442(0x11c)]:return _0x308442(0x21c);case s[_0x308442(0x1a5)]['MAX_RETRIES_EXCEEDED']:return _0x308442(0x1a9);default:return _0x308442(0x158);}case s[_0x308442(0x189)]['RETRYING']:return _0x308442(0x119);default:return _0x308442(0x165);}}function Ie(_0x374fd1,_0x5220b1,_0x18225d,_0x40f393=!0x0){const _0x422cca=_0x5ec549,_0x22eda5=W(_0x374fd1,_0x5220b1),_0x3582ee=_0x18225d['t'](_0x22eda5);return _0x40f393?_0x374fd1===s[_0x422cca(0x189)][_0x422cca(0x187)]&&_0x5220b1===s[_0x422cca(0x1a5)]['UNAUTHORIZED']?_0x3582ee+_0x422cca(0x1f4)+_0x18225d['t'](_0x422cca(0x11d)):_0x374fd1===s['MCPConnectionStatus'][_0x422cca(0x183)]?''+_0x3582ee:_0x374fd1===s[_0x422cca(0x189)]['DISCONNECTED']||_0x374fd1===s[_0x422cca(0x189)]['FAILED']?_0x3582ee+_0x422cca(0x1f4)+_0x18225d['t'](_0x422cca(0x17f)):_0x3582ee:_0x3582ee;}function _e(_0x2edcd0){const _0x1c73a6=_0x5ec549;switch(_0x2edcd0){case s[_0x1c73a6(0x189)][_0x1c73a6(0x183)]:return _0x1c73a6(0x149);case s[_0x1c73a6(0x189)][_0x1c73a6(0x197)]:case s[_0x1c73a6(0x189)][_0x1c73a6(0x1a3)]:return _0x1c73a6(0x124);case s['MCPConnectionStatus'][_0x1c73a6(0xef)]:case s[_0x1c73a6(0x189)]['DISCONNECTED']:return _0x1c73a6(0xbd);default:return'univer-text-gray-500';}}function X(_0x302e8a){const _0x349dde=_0x5ec549,{status$:_0x5a17e9,error$:_0x5613ec,onConfigure:_0x1358bd,showClickable:_0xb6b4bc=!0x0}=_0x302e8a,_0x5a4ffc=v[_0x349dde(0xd3)](_0x5a17e9,s['MCPConnectionStatus'][_0x349dde(0x187)]),_0x1531ad=v[_0x349dde(0xd3)](_0x5613ec,s[_0x349dde(0x1a5)][_0x349dde(0xc1)]),_0x4ec9bf=v[_0x349dde(0x120)](u['LocaleService']),_0x53f3a1=_0x5a4ffc===s[_0x349dde(0x189)]['CONNECTED'];_0x5a4ffc===s['MCPConnectionStatus'][_0x349dde(0x197)]||s[_0x349dde(0x189)][_0x349dde(0x1a3)];const _0x3c53da=_0x4ec9bf['t'](W(_0x5a4ffc,_0x1531ad)),_0x2ae51e=Ie(_0x5a4ffc,_0x1531ad,_0x4ec9bf,_0xb6b4bc),_0x2ec99d=_e(_0x5a4ffc),_0x456c4d=_0x53f3a1?i[_0x349dde(0xac)](V,{}):i['jsx'](q,{}),_0x1f5f84=d[_0x349dde(0x216)](()=>{_0xb6b4bc&&_0x1358bd&&_0x1358bd();},[_0xb6b4bc,_0x1358bd]);function _0xac4597(){const _0x303d93=_0x349dde;return i[_0x303d93(0x136)]('div',{'className':f[_0x303d93(0x1a7)](_0x303d93(0x12b),_0xb6b4bc&&_0x1358bd&&_0x303d93(0xd6)),'role':'button','onClick':_0xb6b4bc&&_0x1358bd?_0x1f5f84:void 0x0,'children':[i[_0x303d93(0xac)]('div',{'className':f[_0x303d93(0x1a7)](_0x303d93(0x205),_0x2ec99d),'children':_0x456c4d}),i[_0x303d93(0xac)](_0x303d93(0x1a4),{'className':_0x303d93(0x12d),'children':_0x3c53da})]});}return i[_0x349dde(0xac)](f['Tooltip'],{'title':_0x2ae51e,'placement':_0x349dde(0x1f0),'children':_0xac4597()});}var ye=Object[_0x5ec549(0xd4)],Me=(_0x488000,_0x57e8a,_0x1cb950,_0x18be04)=>{const _0x50a42a=_0x5ec549;for(var _0x7539ba=_0x18be04>0x1?void 0x0:_0x18be04?ye(_0x57e8a,_0x1cb950):_0x57e8a,_0x146d28=_0x488000[_0x50a42a(0x159)]-0x1,_0x2deb3d;_0x146d28>=0x0;_0x146d28--)(_0x2deb3d=_0x488000[_0x146d28])&&(_0x7539ba=_0x2deb3d(_0x7539ba)||_0x7539ba);return _0x7539ba;},N=(_0x171607,_0x125c76)=>(_0x4b18c2,_0x5c87b6)=>_0x125c76(_0x4b18c2,_0x5c87b6,_0x171607);exports[_0x5ec549(0xf3)]=class extends u['Disposable']{constructor(_0x39eb04,_0x1d1eb8,_0x4dc15c,_0x17c1f0){const _0x2bc5d3=_0x5ec549;super(),this['_injector']=_0x39eb04,this[_0x2bc5d3(0x126)]=_0x1d1eb8,this[_0x2bc5d3(0x156)]=_0x4dc15c,this[_0x2bc5d3(0x188)]=_0x17c1f0,this[_0x2bc5d3(0x11b)](),this[_0x2bc5d3(0x133)]();}['_initAutoConnect'](){const _0x3e8a2e=_0x5ec549,_0xebb0dc=this[_0x3e8a2e(0x188)][_0x3e8a2e(0x104)](P);_0xebb0dc!=null&&_0xebb0dc[_0x3e8a2e(0x1b7)]&&(this[_0x3e8a2e(0x126)]['enableAutoConnect']=!0x1);}[_0x5ec549(0x133)](){const _0x1078cf=_0x5ec549,_0x425c86=this[_0x1078cf(0x188)][_0x1078cf(0x104)](P);(_0x425c86==null?void 0x0:_0x425c86['showStatus'])!==!0x1&&this[_0x1078cf(0xee)](this[_0x1078cf(0x156)][_0x1078cf(0x1b1)](v[_0x1078cf(0xd1)][_0x1078cf(0xcd)],()=>{const _0x3323a6=_0x1078cf;var _0x250cf0;return v[_0x3323a6(0x129)](Ne({'status$':this[_0x3323a6(0x126)][_0x3323a6(0x17d)],'error$':this['_connectionController'][_0x3323a6(0x142)],'onConfigure':()=>this[_0x3323a6(0x148)](),'showClickable':(_0x250cf0=_0x425c86==null?void 0x0:_0x425c86[_0x3323a6(0x1b7)])!=null?_0x250cf0:!0x1}),this[_0x3323a6(0x21f)]);}));}[_0x5ec549(0x148)](){const _0x24e091=_0x5ec549;this[_0x24e091(0x21f)][_0x24e091(0x1b5)](exports[_0x24e091(0x1f3)])[_0x24e091(0x20c)]();}},exports[_0x5ec549(0xf3)]=Me([N(0x0,u[_0x5ec549(0x1fd)](u['Injector'])),N(0x1,u[_0x5ec549(0x1fd)](s[_0x5ec549(0x20e)])),N(0x2,v[_0x5ec549(0x182)]),N(0x3,u[_0x5ec549(0x134)])],exports[_0x5ec549(0xf3)]);function Ne(_0x3bd17a){const {status$:_0x16c128,error$:_0x229490,onConfigure:_0x3ea925,showClickable:_0x13c8b9}=_0x3bd17a;return function(){const _0xea71e0=_0x5865;return i[_0xea71e0(0xac)](X,{'status$':_0x16c128,'error$':_0x229490,'onConfigure':_0x3ea925,'showClickable':_0x13c8b9});};}function _0x5865(_0x12a784,_0x997f15){_0x12a784=_0x12a784-0xa1;const _0x3accd2=_0x3acc();let _0x5865cb=_0x3accd2[_0x12a784];return _0x5865cb;}function be(_0x1af3bd){const _0x47f25b=_0x5ec549;return{'id':b['id'],'type':v['MenuItemType'][_0x47f25b(0xdc)],'icon':_0x47f25b(0x1c6),'title':_0x47f25b(0x215),'tooltip':_0x47f25b(0x215)};}const je={[v['RibbonStartGroup']['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x5ec549(0xd4)],we=(_0x702b4e,_0x29101d,_0x4715ac,_0xfc9c3b)=>{const _0x15b47c=_0x5ec549;for(var _0x4f8630=_0xfc9c3b>0x1?void 0x0:_0xfc9c3b?Ee(_0x29101d,_0x4715ac):_0x29101d,_0x5d3282=_0x702b4e[_0x15b47c(0x159)]-0x1,_0x16d9b4;_0x5d3282>=0x0;_0x5d3282--)(_0x16d9b4=_0x702b4e[_0x5d3282])&&(_0x4f8630=_0x16d9b4(_0x4f8630)||_0x4f8630);return _0x4f8630;},G=(_0x9e9290,_0x508504)=>(_0x3ad880,_0x4b7ed3)=>_0x508504(_0x3ad880,_0x4b7ed3,_0x9e9290);exports[_0x5ec549(0xe6)]=class extends u['Disposable']{constructor(_0x4d56b7,_0xdc5aac){const _0x2820de=_0x5ec549;super(),this[_0x2820de(0x13e)]=_0x4d56b7,this[_0x2820de(0xbb)]=_0xdc5aac,this[_0x2820de(0x1df)](),this['_initializeMenus']();}[_0x5ec549(0x1df)](){[b]['forEach'](_0x1e94d3=>{const _0x1d142d=_0x5865;this[_0x1d142d(0xee)](this[_0x1d142d(0x13e)]['registerCommand'](_0x1e94d3));});}[_0x5ec549(0xc0)](){const _0x54a9d9=_0x5ec549;this[_0x54a9d9(0xbb)][_0x54a9d9(0x135)](je);}},exports['MCPUIMenuController']=we([G(0x0,u[_0x5ec549(0x1ac)]),G(0x1,v['IMenuManagerService'])],exports['MCPUIMenuController']);const Ae={'mcpStatus':{'disconnected':_0x5ec549(0x210),'connecting':_0x5ec549(0x144),'connected':_0x5ec549(0x1cb),'failed':_0x5ec549(0x217),'retrying':_0x5ec549(0x10d),'unknown':_0x5ec549(0xcc),'unauthorized':_0x5ec549(0x107),'sessionOccupied':_0x5ec549(0xa4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5ec549(0x21a),'clickToConnect':_0x5ec549(0xa1),'clickToConfigure':_0x5ec549(0x10c)},'mcpConfig':{'title':_0x5ec549(0x1e2),'description':_0x5ec549(0x21d),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5ec549(0xf2),'apiKeyHint':_0x5ec549(0xc5),'enableAuth':_0x5ec549(0x198),'enableAuthHint':_0x5ec549(0xb2),'connectionInfo':_0x5ec549(0x1fc),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5ec549(0xc9),'configStep1':_0x5ec549(0x114),'configStep2':_0x5ec549(0x1d3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5ec549(0x1dc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5ec549(0xb8),'configParameters':_0x5ec549(0xf4),'maxRetries':'Max\x20Retries','save':_0x5ec549(0x109),'saving':_0x5ec549(0x185),'note1':_0x5ec549(0x150),'note2':_0x5ec549(0x213),'configSaved':_0x5ec549(0x143),'configError':_0x5ec549(0x128),'apiApplyInfo':{'title':_0x5ec549(0x15f),'description':_0x5ec549(0x1f2),'univerAiLabel':_0x5ec549(0x121),'getStarted':_0x5ec549(0x115)},'validation':{'apiKeyRequired':_0x5ec549(0x1ae),'apiKeyTooShort':_0x5ec549(0x166),'invalidConfig':_0x5ec549(0xe7),'invalidApiKey':_0x5ec549(0xfc)},'connectionStatus':{'disconnected':_0x5ec549(0x147),'connecting':_0x5ec549(0x14e),'connected':_0x5ec549(0x10f),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5ec549(0xdb),'sessionOccupied':_0x5ec549(0x1cc),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Oe={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x5ec549(0xd5),'connected':'MCP\x20已连接','failed':_0x5ec549(0xec),'retrying':_0x5ec549(0x1ec),'unknown':_0x5ec549(0x14d),'unauthorized':_0x5ec549(0xf8),'sessionOccupied':_0x5ec549(0x106),'networkError':_0x5ec549(0x1e4),'maxRetriesExceeded':_0x5ec549(0xaf),'clickToConnect':_0x5ec549(0x1aa),'clickToConfigure':_0x5ec549(0x1e5)},'mcpConfig':{'title':_0x5ec549(0x1c8),'description':_0x5ec549(0x108),'apiKey':_0x5ec549(0xf1),'apiKeyPlaceholder':_0x5ec549(0x117),'apiKeyHint':_0x5ec549(0x10b),'enableAuth':_0x5ec549(0xc2),'enableAuthHint':_0x5ec549(0x10e),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5ec549(0x101),'configInstructions':_0x5ec549(0xfb),'configStepTitle':_0x5ec549(0x1a6),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x5ec549(0xe5),'configStep3':_0x5ec549(0x1ea),'sessionId':_0x5ec549(0x1c4),'sessionIdDescription':_0x5ec549(0x19e),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x5ec549(0xce),'save':_0x5ec549(0x18d),'saving':'保存中...','note1':_0x5ec549(0x1d6),'note2':_0x5ec549(0x211),'configSaved':_0x5ec549(0x112),'configError':_0x5ec549(0x16c),'apiApplyInfo':{'title':_0x5ec549(0x1e8),'description':_0x5ec549(0x175),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x5ec549(0x140),'invalidConfig':_0x5ec549(0x168),'invalidApiKey':_0x5ec549(0x1be)},'connectionStatus':{'disconnected':_0x5ec549(0x1d8),'connecting':_0x5ec549(0x1c2),'connected':'已连接','failed':_0x5ec549(0x1cf),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5ec549(0x17b),'networkError':_0x5ec549(0xbf),'maxRetriesExceeded':_0x5ec549(0xa2)}}},De=_0x5ec549(0x12a),Ue=_0x5ec549(0x153),J={'name':De,'version':Ue};var $e=Object[_0x5ec549(0xe1)],Te=Object[_0x5ec549(0xd4)],ke=(_0x462831,_0x1b4294,_0x4415e6)=>_0x1b4294 in _0x462831?$e(_0x462831,_0x1b4294,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4415e6}):_0x462831[_0x1b4294]=_0x4415e6,Re=(_0x49a8b3,_0x36f0ad,_0x5df9d7,_0x307a8e)=>{const _0x56122e=_0x5ec549;for(var _0x1764e0=_0x307a8e>0x1?void 0x0:_0x307a8e?Te(_0x36f0ad,_0x5df9d7):_0x36f0ad,_0x162962=_0x49a8b3[_0x56122e(0x159)]-0x1,_0x45250b;_0x162962>=0x0;_0x162962--)(_0x45250b=_0x49a8b3[_0x162962])&&(_0x1764e0=_0x45250b(_0x1764e0)||_0x1764e0);return _0x1764e0;},y=(_0x5d7baa,_0x2bf79f)=>(_0x2c074a,_0x2d36a2)=>_0x2bf79f(_0x2c074a,_0x2d36a2,_0x5d7baa),U=(_0x464693,_0x1abf29,_0xc19661)=>ke(_0x464693,typeof _0x1abf29!='symbol'?_0x1abf29+'':_0x1abf29,_0xc19661);exports[_0x5ec549(0x16a)]=class extends u['Plugin']{constructor(_0xf84fd5=z,_0x21c8a3,_0xa4c2ab,_0x234c48,_0xb8ad08,_0x5659a2){const _0x46fffd=_0x5ec549;super(),this[_0x46fffd(0x11f)]=_0xf84fd5,this[_0x46fffd(0x21f)]=_0x21c8a3,this['_configService']=_0xa4c2ab,this[_0x46fffd(0x156)]=_0x234c48,this[_0x46fffd(0x157)]=_0xb8ad08,this[_0x46fffd(0xf9)]=_0x5659a2;const {..._0x48a1f4}=u['merge']({},z,this[_0x46fffd(0x11f)]);this['_configService'][_0x46fffd(0x10a)](P,_0x48a1f4);}async[_0x5ec549(0x18a)](){const _0xd3aa2f=_0x5ec549,_0x103b9a=[[exports['MCPConnectionUIController']],[exports[_0xd3aa2f(0x1f3)]],[exports[_0xd3aa2f(0xe6)]]];this[_0xd3aa2f(0x21f)][_0xd3aa2f(0x1fb)](A[_0xd3aa2f(0x100)])||_0x103b9a[_0xd3aa2f(0x141)]([A['ISocketService'],{'useClass':A[_0xd3aa2f(0x193)]}]),_0x103b9a[_0xd3aa2f(0x14a)](_0x1103a8=>this[_0xd3aa2f(0x21f)]['add'](_0x1103a8)),this[_0xd3aa2f(0x21f)]['get'](exports[_0xd3aa2f(0xf3)]),this[_0xd3aa2f(0x21f)][_0xd3aa2f(0x1b5)](exports[_0xd3aa2f(0x1f3)]),this['_injector'][_0xd3aa2f(0x1b5)](exports[_0xd3aa2f(0xe6)]);}},U(exports[_0x5ec549(0x16a)],_0x5ec549(0x174),_0x5ec549(0x199)),U(exports[_0x5ec549(0x16a)],_0x5ec549(0x16d),J['name']),U(exports['UniverMCPUIPlugin'],_0x5ec549(0x17a),J['version']),exports[_0x5ec549(0x16a)]=Re([u[_0x5ec549(0x194)](s[_0x5ec549(0x1db)]),y(0x1,u[_0x5ec549(0x1fd)](u[_0x5ec549(0x1bb)])),y(0x2,u[_0x5ec549(0x134)]),y(0x3,v['IUIPartsService']),y(0x4,u[_0x5ec549(0xd2)]),y(0x5,u[_0x5ec549(0x1fd)](u[_0x5ec549(0x123)]))],exports[_0x5ec549(0x16a)]),exports[_0x5ec549(0x170)]=Z,exports['MCPStatusDisplay']=X,exports[_0x5ec549(0xca)]=b,exports['enUS']=Ae,exports[_0x5ec549(0x1c1)]=Oe;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x10e044=_0xfdc6;(function(_0x900c52,_0x18012d){const _0xa70406=_0xfdc6,_0x4160ca=_0x900c52();while(!![]){try{const _0x9905c3=parseInt(_0xa70406(0x1ca))/0x1+parseInt(_0xa70406(0x1aa))/0x2+parseInt(_0xa70406(0x1b3))/0x3*(parseInt(_0xa70406(0x1c5))/0x4)+parseInt(_0xa70406(0x1b5))/0x5*(parseInt(_0xa70406(0x1b0))/0x6)+parseInt(_0xa70406(0x1ac))/0x7*(-parseInt(_0xa70406(0x19f))/0x8)+-parseInt(_0xa70406(0x1a5))/0x9+-parseInt(_0xa70406(0x1a8))/0xa;if(_0x9905c3===_0x18012d)break;else _0x4160ca['push'](_0x4160ca['shift']());}catch(_0x56a284){_0x4160ca['push'](_0x4160ca['shift']());}}}(_0xdcdf,0x2fafc));function _0xfdc6(_0x3bb1b0,_0x5388ac){_0x3bb1b0=_0x3bb1b0-0x19b;const _0xdcdf11=_0xdcdf();let _0xfdc66e=_0xdcdf11[_0x3bb1b0];return _0xfdc66e;}function _0xdcdf(){const _0x373aaf=['MCP:\x20Session\x20ID\x20Occupied','228678ldYeva','Enter\x20your\x20API\x20key','410DnCroO','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','MCP\x20Unknown\x20Status','Connected','MCP\x20Disconnected','Configuration\x20Parameters:','MCP\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','8jtwqtj','Save\x20Configuration','Configuration\x20Steps:','API\x20key\x20is\x20required','Max\x20Retries','257445wNlXny','Session\x20ID','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Client\x20Configuration','1480xqHlCj','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','191169DlJcEM','Saving...','MCP\x20Connecting...','6641590GDDtbL','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','745916nvmuQR','Enable\x20Authentication','5425zOFdmu','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','17652ydjSsJ','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0xdcdf=function(){return _0x373aaf;};return _0xdcdf();}const e={'mcpStatus':{'disconnected':_0x10e044(0x1bd),'connecting':_0x10e044(0x1a7),'connected':'MCP\x20Connected','failed':_0x10e044(0x1ce),'retrying':_0x10e044(0x1cd),'unknown':_0x10e044(0x1bb),'unauthorized':_0x10e044(0x1af),'sessionOccupied':_0x10e044(0x1b2),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x10e044(0x1ad)},'mcpConfig':{'title':_0x10e044(0x1bf),'description':_0x10e044(0x1b9),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x10e044(0x1b4),'apiKeyHint':_0x10e044(0x1b8),'enableAuth':_0x10e044(0x1ab),'enableAuthHint':_0x10e044(0x19c),'connectionInfo':_0x10e044(0x19e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x10e044(0x1ae),'configStepTitle':_0x10e044(0x1c7),'configStep1':_0x10e044(0x1c4),'configStep2':_0x10e044(0x1a9),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x10e044(0x1cb),'sessionIdDescription':_0x10e044(0x1a3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x10e044(0x1be),'maxRetries':_0x10e044(0x1c9),'save':_0x10e044(0x1c6),'saving':_0x10e044(0x1a6),'note1':_0x10e044(0x1b1),'note2':_0x10e044(0x19d),'configSaved':_0x10e044(0x19b),'configError':_0x10e044(0x1c2),'apiApplyInfo':{'title':_0x10e044(0x1a4),'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':_0x10e044(0x1ba),'getStarted':_0x10e044(0x1a1)},'validation':{'apiKeyRequired':_0x10e044(0x1c8),'apiKeyTooShort':_0x10e044(0x1b7),'invalidConfig':_0x10e044(0x1a2),'invalidApiKey':_0x10e044(0x1a0)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x10e044(0x1bc),'failed':_0x10e044(0x1b6),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x10e044(0x1c3),'sessionOccupied':_0x10e044(0x1cc),'networkError':_0x10e044(0x1c0),'maxRetriesExceeded':_0x10e044(0x1c1)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x5b54(_0x151f4e,_0x3adc7e){_0x151f4e=_0x151f4e-0xac;const _0x2cdf78=_0x2cdf();let _0x5b546f=_0x2cdf78[_0x151f4e];return _0x5b546f;}const _0x4b9663=_0x5b54;(function(_0x135773,_0x4f2cad){const _0x267709=_0x5b54,_0x75e37d=_0x135773();while(!![]){try{const _0x5c9287=parseInt(_0x267709(0xc1))/0x1*(parseInt(_0x267709(0xac))/0x2)+parseInt(_0x267709(0xcc))/0x3+parseInt(_0x267709(0xcb))/0x4+-parseInt(_0x267709(0xc3))/0x5+parseInt(_0x267709(0xb7))/0x6*(parseInt(_0x267709(0xd3))/0x7)+parseInt(_0x267709(0xe0))/0x8*(-parseInt(_0x267709(0xcd))/0x9)+parseInt(_0x267709(0xdc))/0xa*(-parseInt(_0x267709(0xd1))/0xb);if(_0x5c9287===_0x4f2cad)break;else _0x75e37d['push'](_0x75e37d['shift']());}catch(_0x3d0c4e){_0x75e37d['push'](_0x75e37d['shift']());}}}(_0x2cdf,0xa9493));function _0x2cdf(){const _0x457602=['MCP\x20Connected','12520ulAVEQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2cTgVfS','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized','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.','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','80394uUAqFc','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','610915Jfhuqp','MCP\x20Retrying...','1469120mTHgyZ','Invalid\x20configuration','Enter\x20your\x20API\x20key','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','3135692kQpFTJ','3355194vJavcz','5283gKiDSc','MCP\x20Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connecting...','8154872EpwFmv','Copy\x20the\x20JSON\x20configuration\x20below','70yJIMPL','Enable\x20Authentication','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Max\x20Retries','exports','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Retrying...','10smNWkU','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x2cdf=function(){return _0x457602;};return _0x2cdf();}const e={'mcpStatus':{'disconnected':_0x4b9663(0xce),'connecting':'MCP\x20Connecting...','connected':_0x4b9663(0xdf),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4b9663(0xc2),'unknown':_0x4b9663(0xb9),'unauthorized':_0x4b9663(0xb2),'sessionOccupied':_0x4b9663(0xb8),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4b9663(0xba),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4b9663(0xd6)},'mcpConfig':{'title':_0x4b9663(0xb3),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4b9663(0xae),'apiKeyPlaceholder':_0x4b9663(0xc5),'apiKeyHint':_0x4b9663(0xcf),'enableAuth':_0x4b9663(0xd4),'enableAuthHint':_0x4b9663(0xdd),'connectionInfo':_0x4b9663(0xbb),'mcpClientConfig':_0x4b9663(0xbb),'configInstructions':_0x4b9663(0xad),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4b9663(0xd2),'configStep2':_0x4b9663(0xc7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x4b9663(0xde),'authorizationDescription':_0x4b9663(0xb5),'configParameters':_0x4b9663(0xca),'maxRetries':_0x4b9663(0xd7),'save':_0x4b9663(0xbc),'saving':'Saving...','note1':_0x4b9663(0xc0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4b9663(0xd5),'configError':_0x4b9663(0xb0),'apiApplyInfo':{'title':_0x4b9663(0xbf),'description':_0x4b9663(0xb4),'univerAiLabel':_0x4b9663(0xb6),'getStarted':_0x4b9663(0xd9)},'validation':{'apiKeyRequired':_0x4b9663(0xc6),'apiKeyTooShort':_0x4b9663(0xbd),'invalidConfig':_0x4b9663(0xc4),'invalidApiKey':_0x4b9663(0xe1)},'connectionStatus':{'disconnected':_0x4b9663(0xda),'connecting':_0x4b9663(0xd0),'connected':'Connected','failed':_0x4b9663(0xbe),'retrying':_0x4b9663(0xdb)},'connectionError':{'unauthorized':_0x4b9663(0xaf),'sessionOccupied':_0x4b9663(0xc8),'networkError':_0x4b9663(0xc9),'maxRetriesExceeded':_0x4b9663(0xb1)}}};module[_0x4b9663(0xd8)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x54cf(){const _0x22be93=['Invalid\x20configuration','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key','MCP\x20Configuration','Retrying...','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connecting...','3821640tzcxbt','Failed\x20to\x20save\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','What\x20is\x20API\x20Key?','MCP\x20Connecting...','653063fNrbFU','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','Max\x20Retries','138fkiBZm','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','1636458yulJeL','MCP\x20Retrying...','171TrQytv','Session\x20ID','API\x20key\x20is\x20required','Connected','MCP:\x20Session\x20ID\x20Occupied','5PBazBb','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','417608EKTSCi','MCP\x20Client\x20Configuration','1196723ZopWZt','84ZqnnXB','3736300HyNtsi','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2ofhMpA','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','298963QDSOdV','exports','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x54cf=function(){return _0x22be93;};return _0x54cf();}const _0x42bdf6=_0x4be2;(function(_0x7ffac2,_0x1c7256){const _0x5896d5=_0x4be2,_0x54ff81=_0x7ffac2();while(!![]){try{const _0x5f48f0=parseInt(_0x5896d5(0x10d))/0x1*(-parseInt(_0x5896d5(0xf6))/0x2)+parseInt(_0x5896d5(0x115))/0x3+-parseInt(_0x5896d5(0xf1))/0x4*(parseInt(_0x5896d5(0x11c))/0x5)+-parseInt(_0x5896d5(0x111))/0x6*(-parseInt(_0x5896d5(0xf8))/0x7)+-parseInt(_0x5896d5(0x11f))/0x8*(-parseInt(_0x5896d5(0x117))/0x9)+parseInt(_0x5896d5(0x108))/0xa+-parseInt(_0x5896d5(0x121))/0xb*(parseInt(_0x5896d5(0x122))/0xc);if(_0x5f48f0===_0x1c7256)break;else _0x54ff81['push'](_0x54ff81['shift']());}catch(_0xda0b9a){_0x54ff81['push'](_0x54ff81['shift']());}}}(_0x54cf,0x8707f));const e={'mcpStatus':{'disconnected':_0x42bdf6(0x10f),'connecting':_0x42bdf6(0x10c),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x42bdf6(0x116),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x42bdf6(0xff),'sessionOccupied':_0x42bdf6(0x11b),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x42bdf6(0x105),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x42bdf6(0x102),'description':_0x42bdf6(0x10e),'apiKey':_0x42bdf6(0x101),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x42bdf6(0x11d),'enableAuthHint':_0x42bdf6(0x10a),'connectionInfo':_0x42bdf6(0x120),'mcpClientConfig':_0x42bdf6(0x120),'configInstructions':_0x42bdf6(0xf3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x42bdf6(0x114),'configStep2':_0x42bdf6(0xf5),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x42bdf6(0x118),'sessionIdDescription':_0x42bdf6(0x106),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x42bdf6(0xfd),'maxRetries':_0x42bdf6(0x110),'save':'Save\x20Configuration','saving':_0x42bdf6(0x112),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x42bdf6(0x113),'configSaved':_0x42bdf6(0x104),'configError':_0x42bdf6(0x109),'apiApplyInfo':{'title':_0x42bdf6(0x10b),'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':_0x42bdf6(0xf4),'getStarted':_0x42bdf6(0x100)},'validation':{'apiKeyRequired':_0x42bdf6(0x119),'apiKeyTooShort':_0x42bdf6(0xfe),'invalidConfig':_0x42bdf6(0xfc),'invalidApiKey':_0x42bdf6(0x11e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x42bdf6(0x107),'connected':_0x42bdf6(0x11a),'failed':_0x42bdf6(0xfa),'retrying':_0x42bdf6(0x103)},'connectionError':{'unauthorized':_0x42bdf6(0xf2),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x42bdf6(0xf7),'maxRetriesExceeded':_0x42bdf6(0xfb)}}},n=e;function _0x4be2(_0x36057b,_0x391777){_0x36057b=_0x36057b-0xf1;const _0x54cfa1=_0x54cf();let _0x4be297=_0x54cfa1[_0x36057b];return _0x4be297;}module[_0x42bdf6(0xf9)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4c10fd=_0x3e41;(function(_0x458af4,_0x415dcb){const _0x1c2a1e=_0x3e41,_0x17cb13=_0x458af4();while(!![]){try{const _0x259ef7=-parseInt(_0x1c2a1e(0x184))/0x1*(-parseInt(_0x1c2a1e(0x15f))/0x2)+-parseInt(_0x1c2a1e(0x16a))/0x3*(-parseInt(_0x1c2a1e(0x166))/0x4)+-parseInt(_0x1c2a1e(0x188))/0x5*(-parseInt(_0x1c2a1e(0x16b))/0x6)+parseInt(_0x1c2a1e(0x15d))/0x7+parseInt(_0x1c2a1e(0x168))/0x8+-parseInt(_0x1c2a1e(0x175))/0x9*(-parseInt(_0x1c2a1e(0x17a))/0xa)+-parseInt(_0x1c2a1e(0x16d))/0xb*(parseInt(_0x1c2a1e(0x181))/0xc);if(_0x259ef7===_0x415dcb)break;else _0x17cb13['push'](_0x17cb13['shift']());}catch(_0x3e765f){_0x17cb13['push'](_0x17cb13['shift']());}}}(_0x4da3,0x770c0));function _0x4da3(){const _0x108f6e=['541111pOBrJt','Disconnected','Save\x20Configuration','Connection\x20Failed','10eEVkBp','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','Configuration\x20Steps:','MCP\x20Connecting...','2575321wTbcVe','Saving...','2PFOaXP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','316OzJmTp','Click\x20to\x20connect\x20MCP','3719856toPCnP','Click\x20to\x20configure\x20MCP','35319nvwDJp','2903172KJfRet','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','559878xlpkBj','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','Invalid\x20configuration','Configuration\x20saved\x20successfully','exports','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','656433HCPlMe','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','30QvpUpP','MCP\x20Unknown\x20Status','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session\x20ID','Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','708JZXFtT','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x4da3=function(){return _0x108f6e;};return _0x4da3();}const e={'mcpStatus':{'disconnected':_0x4c10fd(0x16f),'connecting':_0x4c10fd(0x15c),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x4c10fd(0x18a),'unknown':_0x4c10fd(0x17b),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4c10fd(0x182),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4c10fd(0x167),'clickToConfigure':_0x4c10fd(0x169)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4c10fd(0x162),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4c10fd(0x16e),'enableAuth':_0x4c10fd(0x17c),'enableAuthHint':_0x4c10fd(0x179),'connectionInfo':_0x4c10fd(0x18b),'mcpClientConfig':_0x4c10fd(0x18b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4c10fd(0x15b),'configStep1':_0x4c10fd(0x163),'configStep2':_0x4c10fd(0x177),'configStep3':_0x4c10fd(0x18c),'sessionId':_0x4c10fd(0x17e),'sessionIdDescription':_0x4c10fd(0x17d),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4c10fd(0x161),'maxRetries':_0x4c10fd(0x173),'save':_0x4c10fd(0x186),'saving':_0x4c10fd(0x15e),'note1':_0x4c10fd(0x160),'note2':_0x4c10fd(0x180),'configSaved':_0x4c10fd(0x171),'configError':_0x4c10fd(0x176),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4c10fd(0x16c),'univerAiLabel':_0x4c10fd(0x178),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4c10fd(0x159),'invalidConfig':_0x4c10fd(0x170),'invalidApiKey':_0x4c10fd(0x165)},'connectionStatus':{'disconnected':_0x4c10fd(0x185),'connecting':_0x4c10fd(0x15a),'connected':'Connected','failed':_0x4c10fd(0x187),'retrying':_0x4c10fd(0x17f)},'connectionError':{'unauthorized':_0x4c10fd(0x183),'sessionOccupied':_0x4c10fd(0x189),'networkError':_0x4c10fd(0x164),'maxRetriesExceeded':_0x4c10fd(0x174)}}},n=e;function _0x3e41(_0x270db6,_0x4484f4){_0x270db6=_0x270db6-0x159;const _0x4da305=_0x4da3();let _0x3e4147=_0x4da305[_0x270db6];return _0x3e4147;}module[_0x4c10fd(0x172)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x217d50=_0x2b36;(function(_0x574b9f,_0x218f00){const _0x202371=_0x2b36,_0x1b0670=_0x574b9f();while(!![]){try{const _0x2e9fea=-parseInt(_0x202371(0x215))/0x1*(-parseInt(_0x202371(0x1f4))/0x2)+parseInt(_0x202371(0x1f8))/0x3*(parseInt(_0x202371(0x205))/0x4)+-parseInt(_0x202371(0x202))/0x5+-parseInt(_0x202371(0x1fc))/0x6+-parseInt(_0x202371(0x1f2))/0x7*(parseInt(_0x202371(0x201))/0x8)+-parseInt(_0x202371(0x203))/0x9*(parseInt(_0x202371(0x214))/0xa)+parseInt(_0x202371(0x219))/0xb;if(_0x2e9fea===_0x218f00)break;else _0x1b0670['push'](_0x1b0670['shift']());}catch(_0x27cf06){_0x1b0670['push'](_0x1b0670['shift']());}}}(_0x193f,0x1f885));function _0x2b36(_0x457c51,_0x14d048){_0x457c51=_0x457c51-0x1eb;const _0x193f14=_0x193f();let _0x2b3696=_0x193f14[_0x457c51];return _0x2b3696;}const e={'mcpStatus':{'disconnected':_0x217d50(0x1f7),'connecting':'MCP\x20Connecting...','connected':_0x217d50(0x213),'failed':'MCP\x20Connection\x20Failed','retrying':_0x217d50(0x1fe),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x217d50(0x206),'sessionOccupied':_0x217d50(0x1f1),'networkError':_0x217d50(0x21c),'maxRetriesExceeded':_0x217d50(0x1ec),'clickToConnect':_0x217d50(0x1fb),'clickToConfigure':_0x217d50(0x1f0)},'mcpConfig':{'title':_0x217d50(0x200),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x217d50(0x20e),'apiKeyPlaceholder':_0x217d50(0x1f5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x217d50(0x20a),'connectionInfo':_0x217d50(0x20d),'mcpClientConfig':_0x217d50(0x20d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x217d50(0x20b),'configStep1':_0x217d50(0x216),'configStep2':_0x217d50(0x1f3),'configStep3':_0x217d50(0x207),'sessionId':_0x217d50(0x209),'sessionIdDescription':_0x217d50(0x1eb),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x217d50(0x20f),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x217d50(0x204),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x217d50(0x1ed),'apiApplyInfo':{'title':_0x217d50(0x1ef),'description':_0x217d50(0x218),'univerAiLabel':_0x217d50(0x1fa),'getStarted':_0x217d50(0x20c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x217d50(0x1f9),'invalidConfig':_0x217d50(0x1ee),'invalidApiKey':_0x217d50(0x211)},'connectionStatus':{'disconnected':_0x217d50(0x1fd),'connecting':_0x217d50(0x21a),'connected':_0x217d50(0x210),'failed':_0x217d50(0x1ff),'retrying':_0x217d50(0x208)},'connectionError':{'unauthorized':_0x217d50(0x217),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x217d50(0x212),'maxRetriesExceeded':_0x217d50(0x1f6)}}},n=e;module[_0x217d50(0x21b)]=n;function _0x193f(){const _0x4baa39=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2745325adHHpe','Connecting...','exports','MCP:\x20Network\x20Error','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','What\x20is\x20API\x20Key?','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','106099XFUBFp','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2KLFOqz','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','3YxLMZe','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','1098438HvteQF','Disconnected','MCP\x20Retrying...','Connection\x20Failed','MCP\x20Configuration','8vrpyqm','901855VMIlBb','1802457OmRpNo','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1007272TbHmqL','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','Session\x20ID','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','API\x20Key','Configuration\x20Parameters:','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','10LQdwtY','206638belvYq','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x193f=function(){return _0x4baa39;};return _0x193f();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x50b613=_0x1a02;function _0x1a02(_0x95aab,_0x389e1d){_0x95aab=_0x95aab-0xe5;const _0x1fef01=_0x1fef();let _0x1a02fc=_0x1fef01[_0x95aab];return _0x1a02fc;}function _0x1fef(){const _0x4916b9=['APIキーは必須です','再試行中...','APIキーはこのブラウザのローカルに保存されます','MCP設定','MCPクライアントを再起動して設定を適用','数秒でAPIキーを取得','9752HbwnRM','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','以下のJSON設定をコピー','認証を有効にする','MCP\x20接続失敗','認証に失敗しました。APIキーを確認してください','設定が正常に保存されました','MCPクライアントの設定に次の設定を追加してください:','APIキー','APIキーを入力してください','1587114Pczkrj','設定手順:','セッションID','2176555StnlEn','未接続','MCPクライアントの設定ファイルに設定を追加','MCP:\x20最大再試行回数を超過','セキュアな接続のために認証を有効にする','APIキーはローカルストレージに安全に保存されます','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','254216fWxhQy','MCP:\x20ネットワークエラー','4165CtZdOj','685994ZkWtpq','最大再試行回数を超過しました。後でもう一度お試しください','クリックしてMCPを設定','ネットワーク接続エラー。インターネット接続を確認してください','設定の保存に失敗しました','MCPを設定してAIでスプレッドシートを操作','APIキーは10文字以上である必要があります','最大再試行回数','3tHNaYt','MCP\x20再試行中...','無効なAPIキーです。キーが正しいか確認してください','MCP:\x20セッションIDが使用中','セッションIDが現在使用中です。後でもう一度お試しください','11qlNZca','設定パラメータ:','APIキーとは?','MCP:\x20認証されていません','535030ymPzGS','接続済み','MCP\x20不明な状態','保存中...','MCPクライアント設定','MCP\x20接続済み','接続失敗','exports','1281YywrlR','4974SwtNKq'];_0x1fef=function(){return _0x4916b9;};return _0x1fef();}(function(_0x2979f5,_0x50e643){const _0x58f0d0=_0x1a02,_0x5527f9=_0x2979f5();while(!![]){try{const _0x397127=parseInt(_0x58f0d0(0x10d))/0x1*(parseInt(_0x58f0d0(0x105))/0x2)+parseInt(_0x58f0d0(0xe6))/0x3*(-parseInt(_0x58f0d0(0xee))/0x4)+parseInt(_0x58f0d0(0xfb))/0x5+-parseInt(_0x58f0d0(0xe7))/0x6*(-parseInt(_0x58f0d0(0x104))/0x7)+parseInt(_0x58f0d0(0x102))/0x8+-parseInt(_0x58f0d0(0xf8))/0x9+-parseInt(_0x58f0d0(0x116))/0xa*(parseInt(_0x58f0d0(0x112))/0xb);if(_0x397127===_0x50e643)break;else _0x5527f9['push'](_0x5527f9['shift']());}catch(_0x11d3c1){_0x5527f9['push'](_0x5527f9['shift']());}}}(_0x1fef,0xaf67b));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':_0x50b613(0x11b),'failed':_0x50b613(0xf2),'retrying':_0x50b613(0x10e),'unknown':_0x50b613(0x118),'unauthorized':_0x50b613(0x115),'sessionOccupied':_0x50b613(0x110),'networkError':_0x50b613(0x103),'maxRetriesExceeded':_0x50b613(0xfe),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x50b613(0x107)},'mcpConfig':{'title':_0x50b613(0xeb),'description':_0x50b613(0x10a),'apiKey':_0x50b613(0xf6),'apiKeyPlaceholder':_0x50b613(0xf7),'apiKeyHint':_0x50b613(0xea),'enableAuth':_0x50b613(0xf1),'enableAuthHint':_0x50b613(0xff),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x50b613(0x11a),'configInstructions':_0x50b613(0xf5),'configStepTitle':_0x50b613(0xf9),'configStep1':_0x50b613(0xf0),'configStep2':_0x50b613(0xfd),'configStep3':_0x50b613(0xec),'sessionId':_0x50b613(0xfa),'sessionIdDescription':_0x50b613(0xef),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x50b613(0x113),'maxRetries':_0x50b613(0x10c),'save':'設定を保存','saving':_0x50b613(0x119),'note1':'設定の変更は直ちに有効になります','note2':_0x50b613(0x100),'configSaved':_0x50b613(0xf4),'configError':_0x50b613(0x109),'apiApplyInfo':{'title':_0x50b613(0x114),'description':_0x50b613(0x101),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x50b613(0xed)},'validation':{'apiKeyRequired':_0x50b613(0xe8),'apiKeyTooShort':_0x50b613(0x10b),'invalidConfig':'無効な設定','invalidApiKey':_0x50b613(0x10f)},'connectionStatus':{'disconnected':_0x50b613(0xfc),'connecting':'接続中...','connected':_0x50b613(0x117),'failed':_0x50b613(0x11c),'retrying':_0x50b613(0xe9)},'connectionError':{'unauthorized':_0x50b613(0xf3),'sessionOccupied':_0x50b613(0x111),'networkError':_0x50b613(0x108),'maxRetriesExceeded':_0x50b613(0x106)}}};module[_0x50b613(0xe5)]=e;
|