@univerjs-pro/mcp-ui 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/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 _0x3015b1=_0x3b08;(function(_0x359b2d,_0x13eb3d){const _0x3d988=_0x3b08,_0x3c7a5a=_0x359b2d();while(!![]){try{const _0x9b64dd=-parseInt(_0x3d988(0x1f4))/0x1*(-parseInt(_0x3d988(0x1da))/0x2)+-parseInt(_0x3d988(0x10d))/0x3+parseInt(_0x3d988(0x197))/0x4*(parseInt(_0x3d988(0x15c))/0x5)+-parseInt(_0x3d988(0x182))/0x6*(-parseInt(_0x3d988(0x108))/0x7)+parseInt(_0x3d988(0x19a))/0x8+parseInt(_0x3d988(0xd6))/0x9+-parseInt(_0x3d988(0x146))/0xa;if(_0x9b64dd===_0x13eb3d)break;else _0x3c7a5a['push'](_0x3c7a5a['shift']());}catch(_0x10fc33){_0x3c7a5a['push'](_0x3c7a5a['shift']());}}}(_0x1316,0x2028d));var ae=Object['defineProperty'],le=(_0x2a4535,_0x4a3594,_0x1bfcfd)=>_0x4a3594 in _0x2a4535?ae(_0x2a4535,_0x4a3594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bfcfd}):_0x2a4535[_0x4a3594]=_0x1bfcfd,I=(_0x2cdb1f,_0x1d2241,_0x985b0c)=>le(_0x2cdb1f,typeof _0x1d2241!=_0x3015b1(0xf5)?_0x1d2241+'':_0x1d2241,_0x985b0c);Object[_0x3015b1(0xf7)](exports,Symbol['toStringTag'],{'value':_0x3015b1(0x1dd)});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:_0x4b0871,..._0x184a34}){const _0x141252=_0x3015b1,{icon:_0x4f88c3,id:_0x973c3c,className:_0x4c88d9,extend:_0x38ef0e,..._0x422a0d}=_0x184a34,_0x5f436b=(_0x141252(0x22d)+_0x973c3c+'\x20'+(_0x4c88d9||''))['trim'](),_0x5258f0=d['useRef']('_'+de());return G(_0x4f88c3,''+_0x973c3c,{'defIds':_0x4f88c3[_0x141252(0xe4)],'idSuffix':_0x5258f0[_0x141252(0x1d3)]},{'ref':_0x4b0871,'className':_0x5f436b,..._0x422a0d},_0x38ef0e);}function G(_0x2ee252,_0x5ccc67,_0x100bbe,_0x5e4466,_0x1c4c9b){const _0x181669=_0x3015b1;return d['createElement'](_0x2ee252[_0x181669(0x1f3)],{'key':_0x5ccc67,...ue(_0x2ee252,_0x100bbe,_0x1c4c9b),..._0x5e4466},(ve(_0x2ee252,_0x100bbe)['children']||[])['map']((_0x46ed3a,_0x3b8e95)=>G(_0x46ed3a,_0x5ccc67+'-'+_0x2ee252[_0x181669(0x1f3)]+'-'+_0x3b8e95,_0x100bbe,void 0x0,_0x1c4c9b)));}function ue(_0x31abf3,_0x256900,_0xe5b8d0){const _0x4a775b=_0x3015b1,_0x5cc122={..._0x31abf3[_0x4a775b(0x1ef)]};_0xe5b8d0!=null&&_0xe5b8d0[_0x4a775b(0x23d)]&&_0x5cc122[_0x4a775b(0x213)]==='colorChannel1'&&(_0x5cc122[_0x4a775b(0x213)]=_0xe5b8d0[_0x4a775b(0x23d)]),_0x31abf3['tag']===_0x4a775b(0x220)&&_0x5cc122['id']&&(_0x5cc122['id']=_0x5cc122['id']+_0x256900[_0x4a775b(0xea)]),Object[_0x4a775b(0x223)](_0x5cc122)[_0x4a775b(0x1cc)](([_0x4ca4c9,_0x3973a4])=>{const _0x3fb367=_0x4a775b;_0x4ca4c9===_0x3fb367(0x220)&&typeof _0x3973a4==_0x3fb367(0x134)&&(_0x5cc122[_0x4ca4c9]=_0x3973a4[_0x3fb367(0x19f)](/url\(#(.*)\)/,_0x3fb367(0x152)+_0x256900[_0x3fb367(0xea)]+')'));});const {defIds:_0x5838bb}=_0x256900;return!_0x5838bb||_0x5838bb['length']===0x0||(_0x31abf3[_0x4a775b(0x1f3)]===_0x4a775b(0x208)&&_0x5cc122[_0x4a775b(0x1ab)]&&(_0x5cc122['xlink:href']=_0x5cc122[_0x4a775b(0x1ab)]+_0x256900[_0x4a775b(0xea)]),Object[_0x4a775b(0x223)](_0x5cc122)[_0x4a775b(0x1cc)](([_0x2d56b6,_0x28b8e3])=>{const _0x396596=_0x4a775b;typeof _0x28b8e3==_0x396596(0x134)&&(_0x5cc122[_0x2d56b6]=_0x28b8e3[_0x396596(0x19f)](/url\(#(.*)\)/,_0x396596(0x152)+_0x256900[_0x396596(0xea)]+')'));})),_0x5cc122;}function ve(_0xb0aa0e,_0x42e609){const _0x5ce2b6=_0x3015b1;var _0x2cf76d;const {defIds:_0x3c4689}=_0x42e609;return!_0x3c4689||_0x3c4689[_0x5ce2b6(0x185)]===0x0?_0xb0aa0e:_0xb0aa0e[_0x5ce2b6(0x1f3)]===_0x5ce2b6(0x23b)&&((_0x2cf76d=_0xb0aa0e[_0x5ce2b6(0x187)])!=null&&_0x2cf76d[_0x5ce2b6(0x185)])?{..._0xb0aa0e,'children':_0xb0aa0e[_0x5ce2b6(0x187)]['map'](_0x40ae30=>typeof _0x40ae30[_0x5ce2b6(0x1ef)]['id']==_0x5ce2b6(0x134)&&_0x3c4689&&_0x3c4689['includes'](_0x40ae30[_0x5ce2b6(0x1ef)]['id'])?{..._0x40ae30,'attrs':{..._0x40ae30[_0x5ce2b6(0x1ef)],'id':_0x40ae30[_0x5ce2b6(0x1ef)]['id']+_0x42e609[_0x5ce2b6(0xea)]}}:_0x40ae30)}:_0xb0aa0e;}function de(){const _0x1b5ebf=_0x3015b1;return Math[_0x1b5ebf(0x234)]()[_0x1b5ebf(0x1d1)](0x24)[_0x1b5ebf(0xfa)](0x2,0x8);}_['displayName']=_0x3015b1(0x162);const Ce={'tag':_0x3015b1(0x203),'attrs':{'xmlns':_0x3015b1(0x1df),'fill':_0x3015b1(0x1cd),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3015b1(0x190)},'children':[{'tag':'path','attrs':{'fill':_0x3015b1(0x1d8),'d':_0x3015b1(0x229),'fillRule':_0x3015b1(0x180),'clipRule':_0x3015b1(0x180)}}]},H=d[_0x3015b1(0x1a0)](function(_0x3efa19,_0x55ac91){return d['createElement'](_,Object['assign']({},_0x3efa19,{'id':'check-mark-icon','ref':_0x55ac91,'icon':Ce}));});H[_0x3015b1(0x22e)]=_0x3015b1(0x14e);const ge={'tag':_0x3015b1(0x203),'attrs':{'xmlns':_0x3015b1(0x1df),'fill':'none','viewBox':_0x3015b1(0x1a5),'width':_0x3015b1(0x190),'height':_0x3015b1(0x190)},'children':[{'tag':'path','attrs':{'fill':_0x3015b1(0x1d8),'d':_0x3015b1(0x186)}}]},B=d[_0x3015b1(0x1a0)](function(_0x25b658,_0x315074){const _0x3f0e61=_0x3015b1;return d[_0x3f0e61(0x173)](_,Object[_0x3f0e61(0xe0)]({},_0x25b658,{'id':_0x3f0e61(0x238),'ref':_0x315074,'icon':ge}));});B['displayName']=_0x3015b1(0x10a);const fe={'tag':_0x3015b1(0x203),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3015b1(0x1cd),'viewBox':_0x3015b1(0x1a5),'width':_0x3015b1(0x190),'height':_0x3015b1(0x190)},'children':[{'tag':_0x3015b1(0x1ac),'attrs':{'fill':'currentColor','d':_0x3015b1(0x1c9)}},{'tag':_0x3015b1(0x1ac),'attrs':{'fill':'currentColor','d':_0x3015b1(0x1b4)}},{'tag':_0x3015b1(0x1ac),'attrs':{'fill':_0x3015b1(0x1d8),'d':_0x3015b1(0x155),'fillRule':_0x3015b1(0x180),'clipRule':'evenodd'}}]},F=d[_0x3015b1(0x1a0)](function(_0x1f25b9,_0x27b828){return d['createElement'](_,Object['assign']({},_0x1f25b9,{'id':'help-icon','ref':_0x27b828,'icon':fe}));});F['displayName']=_0x3015b1(0x1ff);const pe={'tag':_0x3015b1(0x203),'attrs':{'xmlns':_0x3015b1(0x1df),'fill':'none','viewBox':_0x3015b1(0x1a5),'width':_0x3015b1(0x190),'height':_0x3015b1(0x190)},'children':[{'tag':'g','attrs':{'clipPath':_0x3015b1(0x198)},'children':[{'tag':_0x3015b1(0x1ac),'attrs':{'stroke':_0x3015b1(0x1d8),'d':_0x3015b1(0x24c),'strokeLinecap':_0x3015b1(0x175),'strokeLinejoin':_0x3015b1(0x175),'strokeWidth':1.2}}]},{'tag':_0x3015b1(0x23b),'attrs':{},'children':[{'tag':_0x3015b1(0xe8),'attrs':{'id':_0x3015b1(0x1ce)},'children':[{'tag':_0x3015b1(0x1ac),'attrs':{'fill':_0x3015b1(0x200),'d':_0x3015b1(0x133)}}]}]}],'defIds':[_0x3015b1(0x1ce)]},Y=d[_0x3015b1(0x1a0)](function(_0x13901d,_0x373984){const _0x66695a=_0x3015b1;return d[_0x66695a(0x173)](_,Object[_0x66695a(0xe0)]({},_0x13901d,{'id':_0x66695a(0x193),'ref':_0x373984,'icon':pe}));});Y[_0x3015b1(0x22e)]='OffLineIcon';const he={'tag':_0x3015b1(0x203),'attrs':{'xmlns':_0x3015b1(0x1df),'fill':_0x3015b1(0x1cd),'viewBox':_0x3015b1(0x22c),'width':'1em','height':_0x3015b1(0x190)},'children':[{'tag':'g','attrs':{'clipPath':_0x3015b1(0x1b3)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3015b1(0x18a),'strokeLinecap':_0x3015b1(0x175),'strokeLinejoin':_0x3015b1(0x175),'strokeWidth':1.2}}]},{'tag':_0x3015b1(0x23b),'attrs':{},'children':[{'tag':_0x3015b1(0xe8),'attrs':{'id':_0x3015b1(0x1e0)},'children':[{'tag':'path','attrs':{'fill':_0x3015b1(0x200),'d':_0x3015b1(0x133),'transform':_0x3015b1(0x1b2)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x3015b1(0x1a0)](function(_0xa77e18,_0x256de3){const _0x599c87=_0x3015b1;return d[_0x599c87(0x173)](_,Object[_0x599c87(0xe0)]({},_0xa77e18,{'id':'on-line-icon','ref':_0x256de3,'icon':he}));});q['displayName']=_0x3015b1(0x149);function V(_0x2a5d14){const _0x1b6315=_0x3015b1;var _0x444533,_0x24d5ae;const {mcpCoreConfig:_0x4fe1f2,onSave:_0x13c23e,loading:_0x51d6de=!0x1,config:_0x479336,connectionStatus$:_0x569a5e,connectionError$:_0x28d55d,currentApiKey$:_0x2d7d4b,currentSessionId$:_0x364601}=_0x2a5d14,_0x4fcbc2=v[_0x1b6315(0xfd)](u[_0x1b6315(0x115)]),_0x565896=v[_0x1b6315(0x242)](_0x569a5e,s[_0x1b6315(0x23e)][_0x1b6315(0x127)]),_0x42e79c=v[_0x1b6315(0x242)](_0x28d55d,s[_0x1b6315(0x1aa)][_0x1b6315(0x177)]),_0x5d6e51=v[_0x1b6315(0x242)](_0x364601,''),_0x47d56f=v[_0x1b6315(0x242)](_0x2d7d4b,''),[_0x501e92,_0xeafe20]=d[_0x1b6315(0x1c0)](_0x47d56f||''),_0x203f76=!0x0,_0x415311=_0x479336[_0x1b6315(0x250)]&&_0x4fe1f2[_0x1b6315(0xeb)]&&(_0x4fe1f2[_0x1b6315(0xeb)][_0x1b6315(0xd9)](_0x1b6315(0x166))||_0x4fe1f2[_0x1b6315(0xeb)][_0x1b6315(0xd9)]('univer.ai')),_0x376328=(_0x444533=_0x4fe1f2[_0x1b6315(0xeb)])==null?void 0x0:_0x444533[_0x1b6315(0xd9)](_0x1b6315(0x166)),_0x3b7c66=(_0x24d5ae=_0x4fe1f2['mcpServerUrl'])==null?void 0x0:_0x24d5ae['includes']('univer.ai'),_0x1f5c61=_0x376328?'https://console.univer.plus':_0x1b6315(0x122),_0x4b6c45=_0x479336['showDeveloperTools']&&(_0x376328||_0x3b7c66),[_0x1e3e7a,_0x41f5b2]=d[_0x1b6315(0x1c0)](!_0x501e92[_0x1b6315(0x20f)]()),_0x54c7bf=(_0x422f4c,_0x433059)=>{const _0x138ac1=_0x1b6315;if(_0x433059===s[_0x138ac1(0x1aa)]['UNAUTHORIZED'])return _0x138ac1(0x15b);switch(_0x422f4c){case s[_0x138ac1(0x23e)][_0x138ac1(0x103)]:return _0x138ac1(0x12c);case s[_0x138ac1(0x23e)][_0x138ac1(0x184)]:case s[_0x138ac1(0x23e)][_0x138ac1(0x233)]:return _0x138ac1(0x240);case s[_0x138ac1(0x23e)][_0x138ac1(0x1d6)]:return _0x138ac1(0x15b);default:return _0x138ac1(0x21d);}},_0x13758c=(_0x1d8e52,_0x488b99)=>{const _0x304b66=_0x1b6315;if(_0x488b99===s[_0x304b66(0x1aa)]['UNAUTHORIZED'])return _0x304b66(0x114);switch(_0x1d8e52){case s[_0x304b66(0x23e)][_0x304b66(0x103)]:return _0x304b66(0x1e2);case s[_0x304b66(0x23e)][_0x304b66(0x184)]:case s[_0x304b66(0x23e)]['RETRYING']:return _0x304b66(0x10f);case s[_0x304b66(0x23e)]['FAILED']:return _0x304b66(0x114);default:return _0x304b66(0x163);}},_0x4ba5a3=_0x2b717a=>{const _0x120866=_0x1b6315;switch(_0x2b717a){case s[_0x120866(0x23e)][_0x120866(0x103)]:return _0x4fcbc2['t'](_0x120866(0x116));case s[_0x120866(0x23e)][_0x120866(0x184)]:return _0x4fcbc2['t'](_0x120866(0x199));case s['MCPConnectionStatus'][_0x120866(0x1d6)]:return _0x4fcbc2['t'](_0x120866(0x16c));case s[_0x120866(0x23e)]['RETRYING']:return _0x4fcbc2['t'](_0x120866(0x121));default:return _0x4fcbc2['t'](_0x120866(0x1af));}},_0x35d588=_0x1d4e85=>{const _0x330834=_0x1b6315;switch(_0x1d4e85){case s['MCPConnectionError'][_0x330834(0x165)]:return _0x4fcbc2['t'](_0x330834(0x1e8));case s[_0x330834(0x1aa)][_0x330834(0x245)]:return _0x4fcbc2['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x330834(0x1aa)][_0x330834(0xe3)]:return _0x4fcbc2['t'](_0x330834(0x16b));case s[_0x330834(0x1aa)][_0x330834(0x192)]:return _0x4fcbc2['t'](_0x330834(0x1d4));default:return'';}},_0x1b8c25=d[_0x1b6315(0x1f7)](()=>{const _0xeac895=_0x1b6315,_0x30880a={..._0x4fe1f2,'apiKey':_0x501e92[_0xeac895(0x20f)](),'enableAuth':_0x203f76};_0x13c23e(_0x30880a);},[_0x4fe1f2,_0x501e92,_0x203f76,_0x13c23e]),_0x223e71=_0x501e92[_0x1b6315(0x20f)]()['length']>0x0;return i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x1d7),'children':[i[_0x1b6315(0x157)]('div',{'className':_0x1b6315(0x243),'children':i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':_0x1b6315(0x128),'children':i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'className':_0x1b6315(0x11d),'children':'⚙'})}),i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'children':i[_0x1b6315(0x157)]('p',{'className':_0x1b6315(0x1a8),'children':_0x4fcbc2['t'](_0x1b6315(0x140))})})]})}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x195),'children':[i[_0x1b6315(0x157)]('div',{'className':f[_0x1b6315(0xfb)](_0x1b6315(0x1a9),_0x54c7bf(_0x565896,_0x42e79c)),'children':i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':f[_0x1b6315(0xfb)](_0x1b6315(0x14a),_0x13758c(_0x565896,_0x42e79c))}),i['jsx']('span',{'className':_0x1b6315(0x117),'children':_0x4ba5a3(_0x565896)})]})}),_0x42e79c!==s[_0x1b6315(0x1aa)][_0x1b6315(0x177)]&&(_0x565896===s['MCPConnectionStatus'][_0x1b6315(0x1d6)]||_0x42e79c===s[_0x1b6315(0x1aa)]['UNAUTHORIZED'])&&i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':_0x1b6315(0x16a),'children':i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x1b6),'children':[i[_0x1b6315(0x157)]('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x1b6315(0x157)]('p',{'className':_0x1b6315(0x1fc),'children':_0x35d588(_0x42e79c)})]})})]}),i['jsx'](_0x1b6315(0x22b),{'className':_0x1b6315(0xf8),'children':i['jsxs'](_0x1b6315(0x22b),{'className':'univer-space-y-5','children':[i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x1b5),'children':[i[_0x1b6315(0x1b1)](_0x1b6315(0x12e),{'className':_0x1b6315(0x1ee),'children':[i['jsx'](_0x1b6315(0x19c),{'children':'🔑'}),'\x20',_0x4fcbc2['t'](_0x1b6315(0x130)),i['jsx'](_0x1b6315(0x19c),{'className':'univer-text-red-500','children':'*'}),_0x415311&&i[_0x1b6315(0x157)]('a',{'className':_0x1b6315(0x219),'title':_0x4fcbc2['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x41f5b2(!0x0),'children':i['jsx'](F,{})})]}),i[_0x1b6315(0x157)](f[_0x1b6315(0x16f)],{'type':_0x1b6315(0xd4),'placeholder':_0x4fcbc2['t'](_0x1b6315(0x196)),'value':_0x501e92,'disabled':_0x51d6de,'autoComplete':_0x1b6315(0x1a1),'onChange':_0xeafe20}),i[_0x1b6315(0x157)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4fcbc2['t'](_0x1b6315(0x1e1))})]}),_0x415311&&_0x1e3e7a&&i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x210),'children':[i[_0x1b6315(0x157)]('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':_0x1b6315(0x214),'onClick':()=>_0x41f5b2(!0x1),'children':i['jsx'](B,{'className':_0x1b6315(0xdf)})}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x1b6315(0x157)]('div',{'className':_0x1b6315(0x224),'children':i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'className':_0x1b6315(0x136),'children':'🚀'})}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x105),'children':[i['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4fcbc2['t'](_0x1b6315(0x1a7))}),i[_0x1b6315(0x157)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4fcbc2['t'](_0x1b6315(0x207))}),i['jsx'](_0x1b6315(0x22b),{'className':_0x1b6315(0xf0),'children':_0x4b6c45&&i[_0x1b6315(0x1b1)]('a',{'className':_0x1b6315(0x201),'href':_0x1f5c61,'target':_0x1b6315(0xf9),'rel':_0x1b6315(0x142),'children':[i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'children':'🤖'}),_0x4fcbc2['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'className':_0x1b6315(0x1fe),'children':'↗'})]})}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x1f5),'children':['✨','\x20',_0x4fcbc2['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x479336['showDeveloperTools']&&i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x17e),'children':[i[_0x1b6315(0x1b1)]('h4',{'className':_0x1b6315(0x1e7),'children':[i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'children':'🔗'}),'\x20',_0x4fcbc2['t'](_0x1b6315(0x251))]}),i[_0x1b6315(0x1b1)]('div',{'className':'univer-space-y-4','children':[i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':'univer-space-y-3','children':[i['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x4fcbc2['t']('mcpConfig.configInstructions')}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':'univer-space-y-2','children':[i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':_0x1b6315(0x225),'children':_0x4fcbc2['t'](_0x1b6315(0x125))}),i['jsxs'](_0x1b6315(0x22b),{'className':_0x1b6315(0x148),'children':[i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x10c),'children':[i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'className':_0x1b6315(0x188),'children':'1'}),_0x4fcbc2['t']('mcpConfig.configStep1')]}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x1b6315(0x19c),{'className':_0x1b6315(0x188),'children':'2'}),_0x4fcbc2['t'](_0x1b6315(0x23a))]}),i[_0x1b6315(0x1b1)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'className':_0x1b6315(0x188),'children':'3'}),_0x4fcbc2['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x1b5),'children':[i['jsx'](_0x1b6315(0x22b),{'className':_0x1b6315(0x225),'children':_0x1b6315(0x20a)}),i[_0x1b6315(0x157)]('div',{'className':_0x1b6315(0x1c8),'children':i[_0x1b6315(0x157)](_0x1b6315(0x19b),{'className':_0x1b6315(0x18b),'children':JSON[_0x1b6315(0x172)]({'mcpServers':{'univer':{'url':_0x1b6315(0x11e)+(_0x5d6e51||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x1b6315(0x249)+(_0x501e92||_0x1b6315(0x1ed))}}}},null,0x2)})})]}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':'univer-space-y-3','children':[i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':_0x1b6315(0x225),'children':_0x4fcbc2['t'](_0x1b6315(0xdd))}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x1b5),'children':[i[_0x1b6315(0x1b1)]('div',{'className':_0x1b6315(0x1f0),'children':[i['jsx'](_0x1b6315(0x22b),{'className':_0x1b6315(0x100)}),i[_0x1b6315(0x1b1)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),i['jsx'](_0x1b6315(0x22b),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4fcbc2['t'](_0x1b6315(0x206))})]})]}),i['jsxs'](_0x1b6315(0x22b),{'className':_0x1b6315(0x1f0),'children':[i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':_0x1b6315(0x100)}),i['jsxs'](_0x1b6315(0x22b),{'className':_0x1b6315(0x15e),'children':[i['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':_0x1b6315(0xed),'children':_0x4fcbc2['t'](_0x1b6315(0x232))})]})]})]})]})]})]}),i[_0x1b6315(0x157)](f[_0x1b6315(0x1e6)],{'onClick':_0x1b8c25,'disabled':!_0x223e71||_0x51d6de,'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':_0x51d6de?i[_0x1b6315(0x1b1)]('span',{'className':_0x1b6315(0x10c),'children':[i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'children':'⟲'}),_0x4fcbc2['t'](_0x1b6315(0x13c))]}):i[_0x1b6315(0x1b1)](_0x1b6315(0x19c),{'className':_0x1b6315(0x10c),'children':[i[_0x1b6315(0x157)](H,{}),_0x4fcbc2['t'](_0x1b6315(0x1de))]})}),i['jsx']('div',{'className':_0x1b6315(0x179),'children':i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'className':_0x1b6315(0x106),'children':[i[_0x1b6315(0x157)](_0x1b6315(0x19c),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x1b6315(0x1b1)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x1b6315(0x157)](_0x1b6315(0x22b),{'className':_0x1b6315(0x1c4),'children':_0x1b6315(0x156)}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'children':['•',_0x4fcbc2['t'](_0x1b6315(0x1b9))]}),i[_0x1b6315(0x1b1)](_0x1b6315(0x22b),{'children':['•',_0x4fcbc2['t']('mcpConfig.note2')]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x3015b1(0x194)],xe=(_0x41484c,_0x15ddf3,_0x362b7e,_0x11534a)=>{const _0x452ba7=_0x3015b1;for(var _0x16cb47=_0x11534a>0x1?void 0x0:_0x11534a?me(_0x15ddf3,_0x362b7e):_0x15ddf3,_0x260bbb=_0x41484c[_0x452ba7(0x185)]-0x1,_0x4cd0ee;_0x260bbb>=0x0;_0x260bbb--)(_0x4cd0ee=_0x41484c[_0x260bbb])&&(_0x16cb47=_0x4cd0ee(_0x16cb47)||_0x16cb47);return _0x16cb47;},g=(_0xb407e9,_0x2664e9)=>(_0x47d62f,_0x3e3fa4)=>_0x2664e9(_0x47d62f,_0x3e3fa4,_0xb407e9);const O=_0x3015b1(0xe2),D=_0x3015b1(0x1d2);exports[_0x3015b1(0x1a6)]=class extends u['Disposable']{constructor(_0x4ca29f,_0x413522,_0x1ccc51,_0x36217f,_0x50704b,_0x5b315c,_0x28f581,_0x4172c4,_0x122837,_0x453100){const _0x41c557=_0x3015b1;super(),I(this,_0x41c557(0x1d9),new M[(_0x41c557(0x1e9))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x41c557(0x1e9))]({})),I(this,_0x41c557(0x231),new M['BehaviorSubject']({})),I(this,_0x41c557(0x10e),new M[(_0x41c557(0x1e9))]('')),I(this,'_handleConfigSave',async _0x54750f=>{const _0x34ca6b=_0x41c557;var _0x1762eb,_0x270804;this['_loading$'][_0x34ca6b(0x101)](!0x0);try{const _0x351d73=await this[_0x34ca6b(0x15d)](_0x54750f);if(!_0x351d73[_0x34ca6b(0x178)]){this[_0x34ca6b(0x1d5)][_0x34ca6b(0x153)]({'type':f[_0x34ca6b(0x1dc)][_0x34ca6b(0x237)],'content':_0x351d73['errorMessage']||this[_0x34ca6b(0x23f)]['t'](_0x34ca6b(0x110))});return;}_0x54750f[_0x34ca6b(0x161)]?await this['_localStorageService'][_0x34ca6b(0x13b)](O,_0x54750f[_0x34ca6b(0x161)]['trim']()):await this[_0x34ca6b(0x145)][_0x34ca6b(0x24d)](O),this[_0x34ca6b(0x10e)]['next'](((_0x1762eb=_0x54750f[_0x34ca6b(0x161)])==null?void 0x0:_0x1762eb[_0x34ca6b(0x20f)]())||''),this[_0x34ca6b(0x1b0)][_0x34ca6b(0x211)]({'Authorization':'Bearer\x20'+((_0x270804=_0x54750f['apiKey'])==null?void 0x0:_0x270804[_0x34ca6b(0x20f)]())}),this[_0x34ca6b(0x1d5)][_0x34ca6b(0x153)]({'type':f[_0x34ca6b(0x1dc)][_0x34ca6b(0x11b)],'content':this[_0x34ca6b(0x23f)]['t'](_0x34ca6b(0x226))}),setTimeout(()=>{this['_dialogService']['close'](D);},0x320);}catch(_0x38c802){this[_0x34ca6b(0x1fb)][_0x34ca6b(0x1a2)](_0x34ca6b(0x176),_0x38c802),this[_0x34ca6b(0x1d5)]['show']({'type':f[_0x34ca6b(0x1dc)][_0x34ca6b(0x237)],'content':this['_localeService']['t'](_0x34ca6b(0x104))});}finally{this[_0x34ca6b(0x1d9)]['next'](!0x1);}}),(this[_0x41c557(0x123)]=_0x4ca29f,this[_0x41c557(0x11a)]=_0x413522,this[_0x41c557(0x118)]=_0x1ccc51,this[_0x41c557(0x145)]=_0x36217f,this[_0x41c557(0x18e)]=_0x50704b,this[_0x41c557(0x1d5)]=_0x5b315c,this[_0x41c557(0x1cf)]=_0x28f581,this[_0x41c557(0x23f)]=_0x4172c4,this['_logService']=_0x122837,this[_0x41c557(0x1b0)]=_0x453100,this[_0x41c557(0x1ba)](),this[_0x41c557(0xec)](),this[_0x41c557(0x1c2)]());}[_0x3015b1(0x13d)](){const _0xa1314c=_0x3015b1,_0x4c0909=this[_0xa1314c(0x118)]['getConfig'](P);_0x4c0909!=null&&_0x4c0909[_0xa1314c(0x250)]&&this[_0xa1314c(0x18e)][_0xa1314c(0x236)]({'id':D,'title':{'title':this[_0xa1314c(0x23f)]['t'](_0xa1314c(0x1c3))},'children':{'label':_0xa1314c(0x1ea)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4a24d1=_0xa1314c;this[_0x4a24d1(0x18e)][_0x4a24d1(0x22f)](D);}});}[_0x3015b1(0x252)](){const _0x2d0a4b=_0x3015b1;return this[_0x2d0a4b(0x1e3)][_0x2d0a4b(0x164)];}['_registerComponent'](){const _0x3b8058=_0x3015b1;this[_0x3b8058(0x21b)](this[_0x3b8058(0x1cf)][_0x3b8058(0xe6)](_0x3b8058(0x1ea),this['_createConfigPanelComponent']()));}[_0x3015b1(0x24a)](){const _0x2f319d=_0x3015b1;return v[_0x2f319d(0x202)](()=>{const _0x2a8841=_0x2f319d;var _0x1c406b,_0x2e983b,_0x4c6236;return i[_0x2a8841(0x157)](V,{'config':this[_0x2a8841(0x231)][_0x2a8841(0x164)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x2a8841(0x164)],'currentApiKey$':this[_0x2a8841(0x10e)],'onSave':this[_0x2a8841(0xda)],'loading':this[_0x2a8841(0x1d9)][_0x2a8841(0x164)],'connectionStatus$':(_0x1c406b=this[_0x2a8841(0x1b0)])==null?void 0x0:_0x1c406b[_0x2a8841(0x21c)],'connectionError$':(_0x2e983b=this[_0x2a8841(0x1b0)])==null?void 0x0:_0x2e983b['connectionError$'],'currentSessionId$':(_0x4c6236=this[_0x2a8841(0x1b0)])==null?void 0x0:_0x4c6236[_0x2a8841(0x119)]});},this[_0x2f319d(0x123)]);}[_0x3015b1(0x1ba)](){const _0x2917c3=_0x3015b1;this[_0x2917c3(0x21b)](this['_configService'][_0x2917c3(0x143)](s[_0x2917c3(0x170)])[_0x2917c3(0x12d)](_0x253e97=>{this['_mcpCoreConfig$']['next'](_0x253e97||{});}));const _0x259780=this[_0x2917c3(0x118)][_0x2917c3(0x1f8)](s[_0x2917c3(0x170)]);this[_0x2917c3(0x1e3)][_0x2917c3(0x101)](_0x259780||{}),this[_0x2917c3(0x21b)](this[_0x2917c3(0x118)][_0x2917c3(0x143)](P)['subscribe'](_0x17209c=>{const _0x435d2d=_0x2917c3;this[_0x435d2d(0x231)][_0x435d2d(0x101)](_0x17209c||{});}));const _0x5e1b91=this['_configService']['getConfig'](P);this['_config$']['next'](_0x5e1b91||{});}async['_loadStoredApiKey'](){const _0x40a03c=_0x3015b1,_0xa7e54b=this[_0x40a03c(0x118)][_0x40a03c(0x1f8)](P);if(!(_0xa7e54b!=null&&_0xa7e54b[_0x40a03c(0x250)]))return;const _0xe7f450=await this[_0x40a03c(0x145)][_0x40a03c(0xff)](O);_0xe7f450&&(this[_0x40a03c(0x1b0)][_0x40a03c(0x211)]({'Authorization':_0x40a03c(0x249)+_0xe7f450}),this['_apiKey$'][_0x40a03c(0x101)](_0xe7f450));}async[_0x3015b1(0x15d)](_0x4f2c05){const _0x1855dc=_0x3015b1;if(!_0x4f2c05[_0x1855dc(0x161)]||_0x4f2c05[_0x1855dc(0x161)][_0x1855dc(0x20f)]()[_0x1855dc(0x185)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x1855dc(0x23f)]['t'](_0x1855dc(0x1f2))};if(_0x4f2c05['apiKey']['trim']()[_0x1855dc(0x185)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1855dc(0x23f)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x622af6=await this['_injector'][_0x1855dc(0xf3)](s[_0x1855dc(0x141)])[_0x1855dc(0xdc)](_0x4f2c05[_0x1855dc(0x161)][_0x1855dc(0x20f)]());return _0x622af6['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x622af6[_0x1855dc(0x1a2)]||this[_0x1855dc(0x23f)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3486eb){return console[_0x1855dc(0x14d)](_0x1855dc(0x1bc),_0x3486eb),{'isValid':!0x0};}}},exports[_0x3015b1(0x1a6)]=xe([g(0x0,u['Inject'](u[_0x3015b1(0x126)])),g(0x1,v[_0x3015b1(0x1c7)]),g(0x2,u[_0x3015b1(0x21f)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x3015b1(0x138)]),g(0x5,v[_0x3015b1(0x112)]),g(0x6,u[_0x3015b1(0x17c)](v[_0x3015b1(0xf4)])),g(0x7,u[_0x3015b1(0x17c)](u[_0x3015b1(0x115)])),g(0x8,u['ILogService']),g(0x9,u[_0x3015b1(0x17c)](s['MCPConnectionController']))],exports[_0x3015b1(0x1a6)]);const b={'id':_0x3015b1(0x1b8),'type':u[_0x3015b1(0x253)][_0x3015b1(0x159)],'handler':async(_0x3c2bcb,_0x3f9392)=>(_0x3c2bcb[_0x3015b1(0xf3)](exports[_0x3015b1(0x1a6)])[_0x3015b1(0x13d)](),!0x0)};function Z(_0x31a0b0,_0x33470f){const _0x2b70a2=_0x3015b1;switch(_0x31a0b0){case s[_0x2b70a2(0x23e)][_0x2b70a2(0x127)]:return _0x2b70a2(0x1bb);case s[_0x2b70a2(0x23e)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x2b70a2(0x23e)][_0x2b70a2(0x103)]:return _0x2b70a2(0x113);case s[_0x2b70a2(0x23e)][_0x2b70a2(0x1d6)]:switch(_0x33470f){case s[_0x2b70a2(0x1aa)][_0x2b70a2(0x165)]:return _0x2b70a2(0x19e);case s['MCPConnectionError'][_0x2b70a2(0x245)]:return'mcpStatus.sessionOccupied';case s[_0x2b70a2(0x1aa)][_0x2b70a2(0xe3)]:return _0x2b70a2(0x131);case s['MCPConnectionError'][_0x2b70a2(0x192)]:return'mcpStatus.maxRetriesExceeded';default:return _0x2b70a2(0xe5);}case s['MCPConnectionStatus'][_0x2b70a2(0x233)]:return'mcpStatus.retrying';default:return _0x2b70a2(0x21e);}}function Se(_0x1ea6d3,_0x4d43ca,_0x3a032c,_0x1c40d3=!0x0){const _0x3ce275=_0x3015b1,_0x31b602=Z(_0x1ea6d3,_0x4d43ca),_0x207757=_0x3a032c['t'](_0x31b602);return _0x1c40d3?_0x1ea6d3===s[_0x3ce275(0x23e)][_0x3ce275(0x127)]&&_0x4d43ca===s[_0x3ce275(0x1aa)]['UNAUTHORIZED']?_0x207757+_0x3ce275(0x147)+_0x3a032c['t'](_0x3ce275(0x218)):_0x1ea6d3===s[_0x3ce275(0x23e)][_0x3ce275(0x103)]?''+_0x207757:_0x1ea6d3===s[_0x3ce275(0x23e)][_0x3ce275(0x127)]||_0x1ea6d3===s[_0x3ce275(0x23e)][_0x3ce275(0x1d6)]?_0x207757+_0x3ce275(0x147)+_0x3a032c['t']('mcpStatus.clickToConnect'):_0x207757:_0x207757;}function Pe(_0x4b71dc){const _0x4fb020=_0x3015b1;switch(_0x4b71dc){case s[_0x4fb020(0x23e)][_0x4fb020(0x103)]:return _0x4fb020(0x124);case s[_0x4fb020(0x23e)][_0x4fb020(0x184)]:case s[_0x4fb020(0x23e)][_0x4fb020(0x233)]:return _0x4fb020(0x20e);case s['MCPConnectionStatus']['FAILED']:case s[_0x4fb020(0x23e)][_0x4fb020(0x127)]:return _0x4fb020(0x1a4);default:return _0x4fb020(0x1fd);}}function W(_0xb49189){const _0x232721=_0x3015b1,{status$:_0x5bbd63,error$:_0x4576ee,onConfigure:_0x3b235b,showClickable:_0x5779c1=!0x0}=_0xb49189,_0x4afb75=v[_0x232721(0x242)](_0x5bbd63,s[_0x232721(0x23e)][_0x232721(0x127)]),_0x2f421f=v['useObservable'](_0x4576ee,s[_0x232721(0x1aa)][_0x232721(0x177)]),_0xbdfa29=v['useDependency'](u['LocaleService']),_0x4dd361=_0x4afb75===s[_0x232721(0x23e)][_0x232721(0x103)];_0x4afb75===s[_0x232721(0x23e)]['CONNECTING']||s[_0x232721(0x23e)]['RETRYING'];const _0x47a57c=_0xbdfa29['t'](Z(_0x4afb75,_0x2f421f)),_0x35b01d=Se(_0x4afb75,_0x2f421f,_0xbdfa29,_0x5779c1),_0x8d0b67=Pe(_0x4afb75),_0xc0b048=_0x4dd361?i[_0x232721(0x157)](q,{}):i[_0x232721(0x157)](Y,{}),_0x476837=d['useCallback'](()=>{_0x5779c1&&_0x3b235b&&_0x3b235b();},[_0x5779c1,_0x3b235b]);function _0x1972e3(){const _0x134099=_0x232721;return i[_0x134099(0x1b1)](_0x134099(0x22b),{'className':f[_0x134099(0xfb)](_0x134099(0x1f9),_0x5779c1&&_0x3b235b&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x134099(0x214),'onClick':_0x5779c1&&_0x3b235b?_0x476837:void 0x0,'children':[i[_0x134099(0x157)](_0x134099(0x22b),{'className':f[_0x134099(0xfb)](_0x134099(0x183),_0x8d0b67),'children':_0xc0b048}),i[_0x134099(0x157)](_0x134099(0x22b),{'className':_0x134099(0x154),'children':_0x47a57c})]});}return i[_0x232721(0x157)](f[_0x232721(0xfc)],{'title':_0x35b01d,'placement':'bottom','children':_0x1972e3()});}function _0x3b08(_0x6abb82,_0x5396d8){_0x6abb82=_0x6abb82-0xd2;const _0x13166d=_0x1316();let _0x3b086e=_0x13166d[_0x6abb82];return _0x3b086e;}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x319d14,_0x24a87c,_0x2b78f7,_0x476d58)=>{const _0x3ea327=_0x3015b1;for(var _0x4ffa19=_0x476d58>0x1?void 0x0:_0x476d58?Ie(_0x24a87c,_0x2b78f7):_0x24a87c,_0x3debab=_0x319d14[_0x3ea327(0x185)]-0x1,_0x303d8a;_0x3debab>=0x0;_0x3debab--)(_0x303d8a=_0x319d14[_0x3debab])&&(_0x4ffa19=_0x303d8a(_0x4ffa19)||_0x4ffa19);return _0x4ffa19;},N=(_0x2846eb,_0xc13f29)=>(_0x493c97,_0x3acfb9)=>_0xc13f29(_0x493c97,_0x3acfb9,_0x2846eb);exports[_0x3015b1(0x109)]=class extends u['Disposable']{constructor(_0x51bc1a,_0x43db7e,_0x121a64,_0x768d72){const _0x1e58a7=_0x3015b1;super(),this['_injector']=_0x51bc1a,this[_0x1e58a7(0xd7)]=_0x43db7e,this[_0x1e58a7(0x11a)]=_0x121a64,this[_0x1e58a7(0x118)]=_0x768d72,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x3015b1(0x247)](){const _0x2cb63f=_0x3015b1,_0x3b20e8=this[_0x2cb63f(0x118)][_0x2cb63f(0x1f8)](P);_0x3b20e8!=null&&_0x3b20e8['showDeveloperTools']&&(this[_0x2cb63f(0xd7)][_0x2cb63f(0x217)]=!0x1);}[_0x3015b1(0x15a)](){const _0xf57c96=_0x3015b1,_0x33f99b=this['_configService'][_0xf57c96(0x1f8)](P);(_0x33f99b==null?void 0x0:_0x33f99b[_0xf57c96(0xd2)])!==!0x1&&this[_0xf57c96(0x21b)](this['_uiPartsService']['registerComponent'](v[_0xf57c96(0x20b)][_0xf57c96(0x129)],()=>{const _0x49a507=_0xf57c96;var _0x5c885b;return v['connectInjector'](ye({'status$':this['_connectionController'][_0x49a507(0x21c)],'error$':this[_0x49a507(0xd7)][_0x49a507(0x1f6)],'onConfigure':()=>this[_0x49a507(0x1e5)](),'showClickable':(_0x5c885b=_0x33f99b==null?void 0x0:_0x33f99b[_0x49a507(0x250)])!=null?_0x5c885b:!0x1}),this[_0x49a507(0x123)]);}));}[_0x3015b1(0x1e5)](){const _0x5eae17=_0x3015b1;this['_injector'][_0x5eae17(0xf3)](exports[_0x5eae17(0x1a6)])['showConfigPanel']();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x3015b1(0x17c)](u[_0x3015b1(0x126)])),N(0x1,u[_0x3015b1(0x17c)](s['MCPConnectionController'])),N(0x2,v[_0x3015b1(0x1c7)]),N(0x3,u[_0x3015b1(0x21f)])],exports['MCPConnectionUIController']);function ye(_0x3d4f35){const {status$:_0x508f3b,error$:_0x42827e,onConfigure:_0x21f5de,showClickable:_0x22c2e7}=_0x3d4f35;return function(){const _0x3c0824=_0x3b08;return i[_0x3c0824(0x157)](W,{'status$':_0x508f3b,'error$':_0x42827e,'onConfigure':_0x21f5de,'showClickable':_0x22c2e7});};}function Me(_0x4a3c06){const _0xe4e164=_0x3015b1;return{'id':b['id'],'type':v['MenuItemType'][_0xe4e164(0x10b)],'icon':_0xe4e164(0x21a),'title':'mcpConfig.title','tooltip':_0xe4e164(0x1c3)};}const Ne={[v[_0x3015b1(0x158)][_0x3015b1(0x222)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x5827b2,_0x7aefb5,_0x5d0388,_0x621dc1)=>{for(var _0x4c811b=_0x621dc1>0x1?void 0x0:_0x621dc1?be(_0x7aefb5,_0x5d0388):_0x7aefb5,_0x3643be=_0x5827b2['length']-0x1,_0x1219d0;_0x3643be>=0x0;_0x3643be--)(_0x1219d0=_0x5827b2[_0x3643be])&&(_0x4c811b=_0x1219d0(_0x4c811b)||_0x4c811b);return _0x4c811b;},z=(_0x8e068e,_0x3c7a35)=>(_0x3bf5b6,_0x237ade)=>_0x3c7a35(_0x3bf5b6,_0x237ade,_0x8e068e);exports[_0x3015b1(0x17f)]=class extends u[_0x3015b1(0x1c1)]{constructor(_0x19a734,_0x450a6d){const _0x282c2e=_0x3015b1;super(),this[_0x282c2e(0x230)]=_0x19a734,this[_0x282c2e(0xf2)]=_0x450a6d,this[_0x282c2e(0x1eb)](),this[_0x282c2e(0x17d)]();}['_initializeCommands'](){const _0x5f4a97=_0x3015b1;[b][_0x5f4a97(0x1cc)](_0x310f41=>{const _0x2366b8=_0x5f4a97;this[_0x2366b8(0x21b)](this[_0x2366b8(0x230)][_0x2366b8(0x20c)](_0x310f41));});}[_0x3015b1(0x17d)](){const _0x1d37ae=_0x3015b1;this[_0x1d37ae(0xf2)][_0x1d37ae(0xde)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x3015b1(0x12f)]),z(0x1,v['IMenuManagerService'])],exports[_0x3015b1(0x17f)]);const Ee={'mcpStatus':{'disconnected':_0x3015b1(0xe7),'connecting':_0x3015b1(0x246),'connected':_0x3015b1(0x189),'failed':_0x3015b1(0x169),'retrying':_0x3015b1(0x1cb),'unknown':_0x3015b1(0x1d0),'unauthorized':_0x3015b1(0x1c6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3015b1(0x1b7),'maxRetriesExceeded':_0x3015b1(0x1e4),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3015b1(0x20a),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3015b1(0x24e),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3015b1(0x160),'enableAuth':_0x3015b1(0x181),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3015b1(0x241),'configInstructions':_0x3015b1(0x11c),'configStepTitle':_0x3015b1(0x17b),'configStep1':_0x3015b1(0x1ca),'configStep2':_0x3015b1(0xd5),'configStep3':_0x3015b1(0x150),'sessionId':_0x3015b1(0x24f),'sessionIdDescription':_0x3015b1(0xee),'authorizationDescription':_0x3015b1(0x19d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x3015b1(0x221),'save':_0x3015b1(0xe9),'saving':_0x3015b1(0x1bf),'note1':_0x3015b1(0x1f1),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x3015b1(0x135),'apiApplyInfo':{'title':_0x3015b1(0x111),'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':_0x3015b1(0x1ec),'getStarted':_0x3015b1(0x209)},'validation':{'apiKeyRequired':_0x3015b1(0x1fa),'apiKeyTooShort':_0x3015b1(0x205),'invalidConfig':_0x3015b1(0x12a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3015b1(0x132),'connecting':_0x3015b1(0xd3),'connected':_0x3015b1(0xef),'failed':_0x3015b1(0x1c5),'retrying':_0x3015b1(0x204)},'connectionError':{'unauthorized':_0x3015b1(0x227),'sessionOccupied':_0x3015b1(0x137),'networkError':_0x3015b1(0x16e),'maxRetriesExceeded':_0x3015b1(0x24b)}}},we={'mcpStatus':{'disconnected':_0x3015b1(0x14b),'connecting':_0x3015b1(0x17a),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x3015b1(0xfe),'unknown':_0x3015b1(0x167),'unauthorized':_0x3015b1(0x168),'sessionOccupied':_0x3015b1(0x13a),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x3015b1(0x102)},'mcpConfig':{'title':'MCP\x20配置','description':_0x3015b1(0x151),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x3015b1(0xd8),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x3015b1(0x14c),'enableAuthHint':_0x3015b1(0xf1),'connectionInfo':_0x3015b1(0x14f),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x3015b1(0x1be),'configStepTitle':'配置步骤:','configStep1':_0x3015b1(0x216),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x3015b1(0x215),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x3015b1(0x18c),'saving':_0x3015b1(0x144),'note1':_0x3015b1(0xe1),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x3015b1(0x212),'configError':_0x3015b1(0x1db),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x3015b1(0x20d),'univerAiLabel':_0x3015b1(0x191),'getStarted':_0x3015b1(0x1a3)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x3015b1(0x107)},'connectionStatus':{'disconnected':_0x3015b1(0x15f),'connecting':_0x3015b1(0x16d),'connected':'已连接','failed':_0x3015b1(0x244),'retrying':_0x3015b1(0x235)},'connectionError':{'unauthorized':_0x3015b1(0x22a),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3015b1(0x174)}}};var Ae=Object[_0x3015b1(0xf7)],Oe=Object[_0x3015b1(0x194)],De=(_0x4e9d94,_0x47a49d,_0x34df54)=>_0x47a49d in _0x4e9d94?Ae(_0x4e9d94,_0x47a49d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34df54}):_0x4e9d94[_0x47a49d]=_0x34df54,Ue=(_0x392e28,_0x582ecd,_0x154b9b,_0x1ed7bf)=>{const _0x3ad3fd=_0x3015b1;for(var _0x25ae94=_0x1ed7bf>0x1?void 0x0:_0x1ed7bf?Oe(_0x582ecd,_0x154b9b):_0x582ecd,_0x46fbe5=_0x392e28[_0x3ad3fd(0x185)]-0x1,_0x1c07cd;_0x46fbe5>=0x0;_0x46fbe5--)(_0x1c07cd=_0x392e28[_0x46fbe5])&&(_0x25ae94=_0x1c07cd(_0x25ae94)||_0x25ae94);return _0x25ae94;},y=(_0x45eaf9,_0x14e311)=>(_0x58cb6c,_0x285dc5)=>_0x14e311(_0x58cb6c,_0x285dc5,_0x45eaf9),$e=(_0x29bafe,_0x487416,_0x3831a1)=>De(_0x29bafe,_0x487416+'',_0x3831a1);function _0x1316(){const _0x31b5cc=['未连接','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','apiKey','UniverIcon','univer-bg-gray-500','value','UNAUTHORIZED','univer.plus','MCP\x20状态未知','MCP:\x20未授权','MCP\x20Connection\x20Failed','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.connectionError.networkError','mcpConfig.connectionStatus.failed','连接中...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Input','MCP_PLUGIN_CONFIG_KEY','setConfig','stringify','createElement','超出最大重试次数,请稍后再试','round','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','NONE','isValid','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP\x20连接中...','Configuration\x20Steps:','Inject','_initializeMenus','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCPUIMenuController','evenodd','Enable\x20Authentication','7764xqcJqU','univer-mr-2\x20univer-flex\x20univer-text-xl','CONNECTING','length','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','children','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','MCP\x20Connected','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-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','保存配置','has','_dialogService','ISocketService','1em','Univer\x20AI\x20控制台','MAX_RETRIES_EXCEEDED','off-line-icon','getOwnPropertyDescriptor','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.apiKeyPlaceholder','4WSYZXB','url(#off-line-icon_clip0_910_343)','mcpConfig.connectionStatus.connecting','1137704zxlQaz','pre','span','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.unauthorized','replace','forwardRef','off','error','几秒钟内获取您的\x20API\x20密钥','univer-text-red-500','0\x200\x2016\x2016','MCPConfigUIController','mcpConfig.apiApplyInfo.title','univer-text-sm\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCPConnectionError','xlink:href','path','pluginName','Plugin','mcpConfig.connectionStatus.disconnected','_mcpConnectionController','jsxs','translate(.97)','url(#on-line-icon_clip0_910_349)','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','univer-space-y-2','univer-flex\x20univer-items-start\x20univer-gap-2','MCP:\x20Network\x20Error','mcp-ui.command.openConfigPanel','mcpConfig.note1','_initConfigSync','mcpStatus.disconnected','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP_UI_PLUGIN','将以下配置添加到您的\x20MCP\x20客户端设置中:','Saving...','useState','Disposable','_registerComponent','mcpConfig.title','univer-font-medium','Connection\x20Failed','MCP:\x20Unauthorized','IUIPartsService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','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','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','forEach','none','off-line-icon_clip0_910_343','_componentManager','MCP\x20Unknown\x20Status','toString','mcp-config-dialog','current','mcpConfig.connectionError.maxRetriesExceeded','_messageService','FAILED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','currentColor','_loading$','130726DAChTx','配置保存失败','MessageType','Module','mcpConfig.save','http://www.w3.org/2000/svg','on-line-icon_clip0_910_349','mcpConfig.apiKeyHint','univer-bg-green-500','_mcpCoreConfig$','MCP:\x20Max\x20Retries\x20Exceeded','_handleConfigure','Button','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionError.unauthorized','BehaviorSubject','MCPConfigPanel','_initializeCommands','Univer\x20AI\x20Console','<API_KEY>','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','attrs','univer-flex\x20univer-items-start\x20univer-gap-3','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.validation.apiKeyRequired','tag','1hlJuff','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','connectionError$','useCallback','getConfig','univer-flex\x20univer-items-center','API\x20key\x20is\x20required','_logService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-gray-500','univer-text-gray-400','HelpIcon','white','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','connectInjector','svg','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.sessionIdDescription','mcpConfig.apiApplyInfo.description','use','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','BuiltInUIPart','registerCommand','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-text-yellow-500','trim','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','__setCustomHeaders','配置保存成功','fill','button','会话ID','复制以下\x20JSON\x20配置','enableAutoConnect','mcpStatus.clickToConfigure','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','MenuIcon','disposeWithMe','connectionStatus$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpStatus.unknown','IConfigService','mask','Max\x20Retries','OTHERS','entries','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.configSaved','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','add','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','权限验证失败,请检查您的\x20API\x20密钥','div','0\x200\x2017\x2016','univerjs-icon\x20univerjs-icon-','displayName','close','_commandService','_config$','mcpConfig.authorizationDescription','RETRYING','random','重连中...','open','Error','close-icon','UniverMCPUIPlugin','mcpConfig.configStep2','defs','push','colorChannel1','MCPConnectionStatus','_localeService','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20Client\x20Configuration','useObservable','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','连接失败','SESSION_ID_OCCUPIED','MCP\x20Connecting...','_initAutoConnect','_config','Bearer\x20','_createConfigPanelComponent','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','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','removeItem','API\x20Key','Session\x20ID','showDeveloperTools','mcpConfig.connectionInfo','getCurrentConfig','CommandType','showStatus','Connecting...','text','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1632069YmpliU','_connectionController','请输入您的\x20API\x20密钥','includes','_handleConfigSave','merge','validateApiKey','mcpConfig.configParameters','mergeMenu','univer-size-4','assign','配置更改将立即生效','mcp.apiKey','NETWORK_ERROR','defIds','mcpStatus.failed','register','MCP\x20Disconnected','clipPath','Save\x20Configuration','idSuffix','mcpServerUrl','_loadStoredApiKey','univer-text-xs\x20univer-text-gray-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','univer-flex\x20univer-flex-wrap\x20univer-gap-2','启用身份验证以获得安全连接','_menuManagerService','get','ComponentManager','symbol','zhCN','defineProperty','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_blank','substring','clsx','Tooltip','useDependency','MCP\x20重连中...','getItem','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','next','点击配置\x20MCP','CONNECTED','mcpConfig.configError','univer-flex-1','univer-flex\x20univer-gap-3','API\x20密钥无效,请检查密钥是否正确','413yRqdWo','MCPConnectionUIController','CloseIcon','BUTTON','univer-flex\x20univer-items-center\x20univer-gap-2','715200mclIYN','_apiKey$','univer-bg-blue-500','mcpConfig.validation.invalidConfig','What\x20is\x20API\x20Key?','IMessageService','mcpStatus.connected','univer-bg-red-500','LocaleService','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-font-medium','_configService','sessionId$','_uiPartsService','Success','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-white','https://mcp.univer.ai/mcp/?univer_session_id=','MCPStatusDisplay','UniverMCPPlugin','mcpConfig.connectionStatus.retrying','https://console.univer.ai','_injector','univer-text-green-500','mcpConfig.configStepTitle','Injector','DISCONNECTED','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','HEADER_MENU','Invalid\x20configuration','ILocalStorageService','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','subscribe','label','ICommandService','mcpConfig.apiKey','mcpStatus.networkError','Disconnected','M0\x200H16V16H0z','string','Failed\x20to\x20save\x20configuration','univer-text-blue-600','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','IDialogService','onStarting','MCP:\x20会话\x20ID\x20已被占用','setItem','mcpConfig.saving','showConfigPanel','enUS','DependentOn','mcpConfig.description','MCPConnectionController','noopener\x20noreferrer','subscribeConfigValue$','保存中...','_localStorageService','3523110UBiBqA','\x20-\x20','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','OnLineIcon','univer-size-2\x20univer-rounded-full','MCP\x20已断开','启用身份验证','warn','CheckMarkIcon','MCP\x20客户端配置','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','配置\x20MCP\x20使用\x20AI\x20操作电子表格','url(#$1','show','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','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\x20Notes:','jsx','RibbonStartGroup','COMMAND','_initStatusComponent','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','1285865RscgVp','_validateConfig','univer-min-w-0\x20univer-flex-1'];_0x1316=function(){return _0x31b5cc;};return _0x1316();}exports[_0x3015b1(0x239)]=class extends u[_0x3015b1(0x1ae)]{constructor(_0x3e3a55=L,_0x47e2b5,_0x45ac50,_0x587127,_0x4fcd3d,_0xd7b3dd){const _0x828e0e=_0x3015b1;super(),this[_0x828e0e(0x248)]=_0x3e3a55,this[_0x828e0e(0x123)]=_0x47e2b5,this[_0x828e0e(0x118)]=_0x45ac50,this[_0x828e0e(0x11a)]=_0x587127,this['_localStorageService']=_0x4fcd3d,this[_0x828e0e(0x23f)]=_0xd7b3dd;const {..._0x39adc7}=u[_0x828e0e(0xdb)]({},L,this['_config']);this[_0x828e0e(0x118)][_0x828e0e(0x171)](P,_0x39adc7);}async[_0x3015b1(0x139)](){const _0x291490=_0x3015b1,_0x48c6af=[[exports[_0x291490(0x109)]],[exports[_0x291490(0x1a6)]],[exports['MCPUIMenuController']]];this[_0x291490(0x123)][_0x291490(0x18d)](A[_0x291490(0x18f)])||_0x48c6af[_0x291490(0x23c)]([A[_0x291490(0x18f)],{'useClass':A['WebSocketService']}]),_0x48c6af[_0x291490(0x1cc)](_0xb296a4=>this['_injector'][_0x291490(0x228)](_0xb296a4)),this[_0x291490(0x123)][_0x291490(0xf3)](exports[_0x291490(0x109)]),this['_injector'][_0x291490(0xf3)](exports['MCPConfigUIController']),this[_0x291490(0x123)]['get'](exports[_0x291490(0x17f)]);}},$e(exports[_0x3015b1(0x239)],_0x3015b1(0x1ad),_0x3015b1(0x1bd)),exports['UniverMCPUIPlugin']=Ue([u[_0x3015b1(0x13f)](s[_0x3015b1(0x120)]),y(0x1,u[_0x3015b1(0x17c)](u[_0x3015b1(0x126)])),y(0x2,u[_0x3015b1(0x21f)]),y(0x3,v[_0x3015b1(0x1c7)]),y(0x4,u[_0x3015b1(0x12b)]),y(0x5,u[_0x3015b1(0x17c)](u[_0x3015b1(0x115)]))],exports[_0x3015b1(0x239)]),exports[_0x3015b1(0x1ea)]=V,exports[_0x3015b1(0x11f)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x3015b1(0x13e)]=Ee,exports[_0x3015b1(0xf6)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x98d9e4=_0x2154;(function(_0x433087,_0x44b5c8){const _0x5a2949=_0x2154,_0x49d31d=_0x433087();while(!![]){try{const _0x52d618=-parseInt(_0x5a2949(0xca))/0x1*(parseInt(_0x5a2949(0xc5))/0x2)+-parseInt(_0x5a2949(0xed))/0x3+parseInt(_0x5a2949(0xec))/0x4+-parseInt(_0x5a2949(0xd7))/0x5*(parseInt(_0x5a2949(0xdc))/0x6)+-parseInt(_0x5a2949(0xdb))/0x7*(-parseInt(_0x5a2949(0xc7))/0x8)+parseInt(_0x5a2949(0xd1))/0x9*(-parseInt(_0x5a2949(0xd6))/0xa)+parseInt(_0x5a2949(0xce))/0xb;if(_0x52d618===_0x44b5c8)break;else _0x49d31d['push'](_0x49d31d['shift']());}catch(_0x5272a5){_0x49d31d['push'](_0x49d31d['shift']());}}}(_0x1784,0x2272e));function _0x2154(_0x4d4e46,_0x43051e){_0x4d4e46=_0x4d4e46-0xc5;const _0x1784c1=_0x1784();let _0x21549c=_0x1784c1[_0x4d4e46];return _0x21549c;}function _0x1784(){const _0xdec476=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','5643693kHZXue','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','45dMfxMI','Invalid\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','331080muOmxg','5PgVevI','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','807821ICSlMr','1078170zICYdk','Session\x20ID','API\x20Key','MCP\x20Connected','MCP\x20Connection\x20Failed','MCP\x20Disconnected','MCP\x20Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','Saving...','exports','What\x20is\x20API\x20Key?','826684RDwORT','843945EaBNbI','MCP\x20Configuration','Configuration\x20saved\x20successfully','Connected','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','MCP:\x20Unauthorized','Max\x20Retries','182888wshgeg','Configuration\x20Parameters:','16VbQGRO','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','2GOLBjr','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP'];_0x1784=function(){return _0xdec476;};return _0x1784();}const e={'mcpStatus':{'disconnected':_0x98d9e4(0xe1),'connecting':_0x98d9e4(0xcf),'connected':_0x98d9e4(0xdf),'failed':_0x98d9e4(0xe0),'retrying':_0x98d9e4(0xe2),'unknown':_0x98d9e4(0xe8),'unauthorized':_0x98d9e4(0xf3),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x98d9e4(0xf2),'maxRetriesExceeded':_0x98d9e4(0xc9),'clickToConnect':_0x98d9e4(0xe5),'clickToConfigure':_0x98d9e4(0xcc)},'mcpConfig':{'title':_0x98d9e4(0xee),'description':_0x98d9e4(0xd3),'apiKey':_0x98d9e4(0xde),'apiKeyPlaceholder':_0x98d9e4(0xf1),'apiKeyHint':_0x98d9e4(0xd0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x98d9e4(0xe4),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x98d9e4(0xd8),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x98d9e4(0xe7),'sessionId':_0x98d9e4(0xdd),'sessionIdDescription':_0x98d9e4(0xcb),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x98d9e4(0xc6),'maxRetries':_0x98d9e4(0xf4),'save':_0x98d9e4(0xe6),'saving':_0x98d9e4(0xe9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x98d9e4(0xcd),'configSaved':_0x98d9e4(0xef),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x98d9e4(0xeb),'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':'Univer\x20AI\x20Console','getStarted':_0x98d9e4(0xd9)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x98d9e4(0xd5),'invalidConfig':_0x98d9e4(0xd2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x98d9e4(0xda),'connecting':'Connecting...','connected':_0x98d9e4(0xf0),'failed':'Connection\x20Failed','retrying':_0x98d9e4(0xc8)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x98d9e4(0xd4),'maxRetriesExceeded':_0x98d9e4(0xe3)}}},n=e;module[_0x98d9e4(0xea)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x433d(_0x3bb756,_0xeb33e7){_0x3bb756=_0x3bb756-0xa4;const _0x1f9a1c=_0x1f9a();let _0x433dc0=_0x1f9a1c[_0x3bb756];return _0x433dc0;}const _0x5a49b7=_0x433d;(function(_0x5cc304,_0x4bd9f6){const _0x5098e8=_0x433d,_0x5d3e0f=_0x5cc304();while(!![]){try{const _0x4bafdd=-parseInt(_0x5098e8(0xb0))/0x1+-parseInt(_0x5098e8(0xac))/0x2+-parseInt(_0x5098e8(0xbf))/0x3+-parseInt(_0x5098e8(0xc4))/0x4+-parseInt(_0x5098e8(0xd2))/0x5*(parseInt(_0x5098e8(0xb6))/0x6)+-parseInt(_0x5098e8(0xb1))/0x7+-parseInt(_0x5098e8(0xcc))/0x8*(-parseInt(_0x5098e8(0xaf))/0x9);if(_0x4bafdd===_0x4bd9f6)break;else _0x5d3e0f['push'](_0x5d3e0f['shift']());}catch(_0x1a4e35){_0x5d3e0f['push'](_0x5d3e0f['shift']());}}}(_0x1f9a,0xa7c9a));function _0x1f9a(){const _0x226eae=['Retrying...','Disconnected','42530mQYBQf','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','MCP\x20Configuration','Configuration\x20Steps:','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20with\x20Bearer\x20prefix.','2061674idmoUz','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','2697309eBDLMm','1224009THVmdb','2636991whMSHN','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','MCP\x20Disconnected','372AqBpjB','Saving...','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','API\x20Key','Session\x20ID','Invalid\x20configuration','3653214FqQaHa','MCP\x20Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2521568yIcOYx','MCP:\x20Session\x20ID\x20Occupied','Connecting...','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Configuration\x20Parameters:','Connected','152ajtCJS','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required'];_0x1f9a=function(){return _0x226eae;};return _0x1f9a();}const e={'mcpStatus':{'disconnected':_0x5a49b7(0xb5),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5a49b7(0xba),'retrying':_0x5a49b7(0xc0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5a49b7(0xb8),'sessionOccupied':_0x5a49b7(0xc5),'networkError':_0x5a49b7(0xc9),'maxRetriesExceeded':_0x5a49b7(0xd5),'clickToConnect':_0x5a49b7(0xbb),'clickToConfigure':_0x5a49b7(0xa4)},'mcpConfig':{'title':_0x5a49b7(0xa6),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5a49b7(0xbc),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5a49b7(0xc2),'enableAuth':_0x5a49b7(0xa8),'enableAuthHint':_0x5a49b7(0xb3),'connectionInfo':_0x5a49b7(0xc7),'mcpClientConfig':_0x5a49b7(0xc7),'configInstructions':_0x5a49b7(0xb9),'configStepTitle':_0x5a49b7(0xa7),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5a49b7(0xad),'configStep3':_0x5a49b7(0xcd),'sessionId':_0x5a49b7(0xbd),'sessionIdDescription':_0x5a49b7(0xa9),'authorizationDescription':_0x5a49b7(0xab),'configParameters':_0x5a49b7(0xca),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5a49b7(0xb7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5a49b7(0xd6),'configError':_0x5a49b7(0xa5),'apiApplyInfo':{'title':_0x5a49b7(0xb2),'description':_0x5a49b7(0xd4),'univerAiLabel':_0x5a49b7(0xb4),'getStarted':_0x5a49b7(0xd3)},'validation':{'apiKeyRequired':_0x5a49b7(0xcf),'apiKeyTooShort':_0x5a49b7(0xaa),'invalidConfig':_0x5a49b7(0xbe),'invalidApiKey':_0x5a49b7(0xc3)},'connectionStatus':{'disconnected':_0x5a49b7(0xd1),'connecting':_0x5a49b7(0xc6),'connected':_0x5a49b7(0xcb),'failed':_0x5a49b7(0xae),'retrying':_0x5a49b7(0xd0)},'connectionError':{'unauthorized':_0x5a49b7(0xce),'sessionOccupied':_0x5a49b7(0xc1),'networkError':_0x5a49b7(0xc8),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x46a1(_0x21953d,_0x2da2a9){_0x21953d=_0x21953d-0xb5;const _0x1ebdc7=_0x1ebd();let _0x46a179=_0x1ebdc7[_0x21953d];return _0x46a179;}const _0x96c04d=_0x46a1;(function(_0x4da9c2,_0xf059d3){const _0x443f34=_0x46a1,_0x5cea1a=_0x4da9c2();while(!![]){try{const _0x3c7901=-parseInt(_0x443f34(0xdd))/0x1+parseInt(_0x443f34(0xd6))/0x2+parseInt(_0x443f34(0xe9))/0x3*(-parseInt(_0x443f34(0xbc))/0x4)+-parseInt(_0x443f34(0xb8))/0x5*(-parseInt(_0x443f34(0xdf))/0x6)+parseInt(_0x443f34(0xe5))/0x7*(-parseInt(_0x443f34(0xe2))/0x8)+-parseInt(_0x443f34(0xd5))/0x9+-parseInt(_0x443f34(0xb5))/0xa*(-parseInt(_0x443f34(0xbd))/0xb);if(_0x3c7901===_0xf059d3)break;else _0x5cea1a['push'](_0x5cea1a['shift']());}catch(_0x287d92){_0x5cea1a['push'](_0x5cea1a['shift']());}}}(_0x1ebd,0x98f64));function _0x1ebd(){const _0x86cd18=['API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connected','1162792kPStmX','MCP\x20Connection\x20Failed','979206YbYHqf','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','24zHsGmD','Invalid\x20configuration','Univer\x20AI\x20Console','2547111vHMHoj','Enable\x20Authentication','MCP\x20Disconnected','Configuration\x20Steps:','6BKAoDx','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','36540vynWgo','exports','MCP:\x20Max\x20Retries\x20Exceeded','25lxSOLm','Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','833032fkSDbG','6050tlhOMv','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Unauthorized','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','MCP\x20Connecting...','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','MCP\x20Connected','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Saving...','Connecting...','2169666DNLYhG','1425656nFWxsr','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x1ebd=function(){return _0x86cd18;};return _0x1ebd();}const e={'mcpStatus':{'disconnected':_0x96c04d(0xe7),'connecting':_0x96c04d(0xc8),'connected':_0x96c04d(0xd0),'failed':_0x96c04d(0xde),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x96c04d(0xc4),'sessionOccupied':_0x96c04d(0xbb),'networkError':_0x96c04d(0xce),'maxRetriesExceeded':_0x96c04d(0xb7),'clickToConnect':_0x96c04d(0xbf),'clickToConfigure':_0x96c04d(0xd1)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x96c04d(0xc5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x96c04d(0xc2),'enableAuth':_0x96c04d(0xe6),'enableAuthHint':_0x96c04d(0xe0),'connectionInfo':_0x96c04d(0xbe),'mcpClientConfig':_0x96c04d(0xbe),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x96c04d(0xe8),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x96c04d(0xba),'configStep3':_0x96c04d(0xcb),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x96c04d(0xd8),'configParameters':_0x96c04d(0xc7),'maxRetries':_0x96c04d(0xcc),'save':_0x96c04d(0xc9),'saving':_0x96c04d(0xd3),'note1':_0x96c04d(0xca),'note2':_0x96c04d(0xd9),'configSaved':_0x96c04d(0xe1),'configError':_0x96c04d(0xd2),'apiApplyInfo':{'title':_0x96c04d(0xcd),'description':_0x96c04d(0xd7),'univerAiLabel':_0x96c04d(0xe4),'getStarted':_0x96c04d(0xc6)},'validation':{'apiKeyRequired':_0x96c04d(0xcf),'apiKeyTooShort':_0x96c04d(0xc3),'invalidConfig':_0x96c04d(0xe3),'invalidApiKey':_0x96c04d(0xea)},'connectionStatus':{'disconnected':_0x96c04d(0xb9),'connecting':_0x96c04d(0xd4),'connected':_0x96c04d(0xdc),'failed':_0x96c04d(0xc0),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x96c04d(0xdb),'sessionOccupied':_0x96c04d(0xc1),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x96c04d(0xda)}}},n=e;module[_0x96c04d(0xb6)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x570ce1=_0x111f;function _0x111f(_0x3d854c,_0x3373db){_0x3d854c=_0x3d854c-0x161;const _0x31ee71=_0x31ee();let _0x111fdc=_0x31ee71[_0x3d854c];return _0x111fdc;}(function(_0x16aebc,_0x4aa5e8){const _0xb13a1c=_0x111f,_0x3ed063=_0x16aebc();while(!![]){try{const _0x176d2b=parseInt(_0xb13a1c(0x177))/0x1+-parseInt(_0xb13a1c(0x179))/0x2*(-parseInt(_0xb13a1c(0x17c))/0x3)+-parseInt(_0xb13a1c(0x16f))/0x4+parseInt(_0xb13a1c(0x18c))/0x5+parseInt(_0xb13a1c(0x174))/0x6*(-parseInt(_0xb13a1c(0x18e))/0x7)+-parseInt(_0xb13a1c(0x18a))/0x8*(-parseInt(_0xb13a1c(0x162))/0x9)+-parseInt(_0xb13a1c(0x17b))/0xa*(parseInt(_0xb13a1c(0x17e))/0xb);if(_0x176d2b===_0x4aa5e8)break;else _0x3ed063['push'](_0x3ed063['shift']());}catch(_0x29f585){_0x3ed063['push'](_0x3ed063['shift']());}}}(_0x31ee,0x28342));function _0x31ee(){const _0x1a9b85=['MCP:\x20Unauthorized','14ATkjXF','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','261KCiRhr','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','MCP\x20Disconnected','MCP\x20Connection\x20Failed','MCP\x20Configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20Authentication','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','207748kfHndg','MCP\x20Retrying...','Save\x20Configuration','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','441714zDxewh','Univer\x20AI\x20Console','API\x20key\x20is\x20required','252759IMvMFR','Click\x20to\x20connect\x20MCP','52UyXQnh','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6970uUNgPD','7233ZUPWoU','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3927dkBSIZ','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','MCP\x20Unknown\x20Status','Max\x20Retries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','exports','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','21240QQTFhM','Connection\x20Failed','1101190wYFelI'];_0x31ee=function(){return _0x1a9b85;};return _0x31ee();}const e={'mcpStatus':{'disconnected':_0x570ce1(0x166),'connecting':'MCP\x20Connecting...','connected':_0x570ce1(0x188),'failed':_0x570ce1(0x167),'retrying':_0x570ce1(0x170),'unknown':_0x570ce1(0x182),'unauthorized':_0x570ce1(0x18d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x570ce1(0x16a),'maxRetriesExceeded':_0x570ce1(0x16e),'clickToConnect':_0x570ce1(0x178),'clickToConfigure':_0x570ce1(0x169)},'mcpConfig':{'title':_0x570ce1(0x168),'description':_0x570ce1(0x17d),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x570ce1(0x17a),'enableAuth':_0x570ce1(0x16c),'enableAuthHint':_0x570ce1(0x173),'connectionInfo':_0x570ce1(0x165),'mcpClientConfig':_0x570ce1(0x165),'configInstructions':_0x570ce1(0x18f),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x570ce1(0x189),'sessionId':_0x570ce1(0x163),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x570ce1(0x183),'save':_0x570ce1(0x171),'saving':_0x570ce1(0x161),'note1':_0x570ce1(0x185),'note2':_0x570ce1(0x184),'configSaved':_0x570ce1(0x186),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x570ce1(0x175),'getStarted':_0x570ce1(0x180)},'validation':{'apiKeyRequired':_0x570ce1(0x176),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x570ce1(0x181),'invalidApiKey':_0x570ce1(0x164)},'connectionStatus':{'disconnected':_0x570ce1(0x172),'connecting':_0x570ce1(0x17f),'connected':'Connected','failed':_0x570ce1(0x18b),'retrying':_0x570ce1(0x16d)},'connectionError':{'unauthorized':_0x570ce1(0x16b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x570ce1(0x187)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x24fc80=_0x1846;function _0x4643(){const _0x2fed10=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','Disconnected','10178knvEDp','407561yRuecI','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20configuration','20gLNzZX','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','API\x20key\x20is\x20required','Saving...','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connection\x20Failed','Connection\x20Failed','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','82080mYGufx','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','5741659SmOOqE','140IrIzRK','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3544jovyLW','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','146IoBvrV','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5168320ffXFIW','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','Enable\x20Authentication','Configuration\x20saved\x20successfully','Session\x20ID','MCP:\x20Network\x20Error','API\x20Key','2352012mHFYXe','30321zcWgAN','Enter\x20your\x20API\x20key','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below'];_0x4643=function(){return _0x2fed10;};return _0x4643();}function _0x1846(_0x37b663,_0x4d997c){_0x37b663=_0x37b663-0x120;const _0x464371=_0x4643();let _0x18467d=_0x464371[_0x37b663];return _0x18467d;}(function(_0x4849c1,_0x535831){const _0x26d32f=_0x1846,_0x1c84b7=_0x4849c1();while(!![]){try{const _0x370355=-parseInt(_0x26d32f(0x13b))/0x1*(parseInt(_0x26d32f(0x124))/0x2)+parseInt(_0x26d32f(0x150))/0x3+parseInt(_0x26d32f(0x128))/0x4+-parseInt(_0x26d32f(0x141))/0x5*(-parseInt(_0x26d32f(0x131))/0x6)+parseInt(_0x26d32f(0x153))/0x7+parseInt(_0x26d32f(0x121))/0x8*(-parseInt(_0x26d32f(0x132))/0x9)+-parseInt(_0x26d32f(0x154))/0xa*(parseInt(_0x26d32f(0x13c))/0xb);if(_0x370355===_0x535831)break;else _0x1c84b7['push'](_0x1c84b7['shift']());}catch(_0x2f87e2){_0x1c84b7['push'](_0x1c84b7['shift']());}}}(_0x4643,0xe8ca6));const e={'mcpStatus':{'disconnected':_0x24fc80(0x143),'connecting':'MCP\x20Connecting...','connected':_0x24fc80(0x14d),'failed':_0x24fc80(0x14b),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x24fc80(0x12f),'maxRetriesExceeded':_0x24fc80(0x13e),'clickToConnect':_0x24fc80(0x123),'clickToConfigure':_0x24fc80(0x137)},'mcpConfig':{'title':_0x24fc80(0x126),'description':_0x24fc80(0x142),'apiKey':_0x24fc80(0x130),'apiKeyPlaceholder':_0x24fc80(0x133),'apiKeyHint':_0x24fc80(0x127),'enableAuth':_0x24fc80(0x12c),'enableAuthHint':_0x24fc80(0x152),'connectionInfo':_0x24fc80(0x147),'mcpClientConfig':_0x24fc80(0x147),'configInstructions':_0x24fc80(0x122),'configStepTitle':_0x24fc80(0x12b),'configStep1':_0x24fc80(0x135),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x24fc80(0x138),'sessionId':_0x24fc80(0x12e),'sessionIdDescription':_0x24fc80(0x12a),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x24fc80(0x146),'maxRetries':'Max\x20Retries','save':_0x24fc80(0x134),'saving':_0x24fc80(0x145),'note1':_0x24fc80(0x13d),'note2':_0x24fc80(0x136),'configSaved':_0x24fc80(0x12d),'configError':_0x24fc80(0x139),'apiApplyInfo':{'title':_0x24fc80(0x151),'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':_0x24fc80(0x148),'getStarted':_0x24fc80(0x14a)},'validation':{'apiKeyRequired':_0x24fc80(0x144),'apiKeyTooShort':_0x24fc80(0x120),'invalidConfig':_0x24fc80(0x140),'invalidApiKey':_0x24fc80(0x14e)},'connectionStatus':{'disconnected':_0x24fc80(0x13a),'connecting':'Connecting...','connected':_0x24fc80(0x129),'failed':_0x24fc80(0x14c),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x24fc80(0x149),'sessionOccupied':_0x24fc80(0x13f),'networkError':_0x24fc80(0x125),'maxRetriesExceeded':_0x24fc80(0x14f)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4c8083=_0x2732;(function(_0x3134cc,_0x548676){const _0x1fdc1b=_0x2732,_0x58eecb=_0x3134cc();while(!![]){try{const _0x518368=parseInt(_0x1fdc1b(0x19e))/0x1+-parseInt(_0x1fdc1b(0x1bc))/0x2+parseInt(_0x1fdc1b(0x1a2))/0x3*(-parseInt(_0x1fdc1b(0x1a4))/0x4)+parseInt(_0x1fdc1b(0x1be))/0x5+-parseInt(_0x1fdc1b(0x1a0))/0x6*(-parseInt(_0x1fdc1b(0x1ad))/0x7)+-parseInt(_0x1fdc1b(0x1a7))/0x8+parseInt(_0x1fdc1b(0x1ab))/0x9*(parseInt(_0x1fdc1b(0x199))/0xa);if(_0x518368===_0x548676)break;else _0x58eecb['push'](_0x58eecb['shift']());}catch(_0x2d0974){_0x58eecb['push'](_0x58eecb['shift']());}}}(_0x10f5,0x4d5c5));function _0x10f5(){const _0x473519=['認証を有効にする','117xEUpeC','Univer\x20AIコンソール','428tdPUrH','設定が正常に保存されました','セッションID','4946360ZErtUc','MCP\x20不明な状態','最大再試行回数','APIキーはローカルストレージに安全に保存されます','18ZshtFp','MCPクライアントの設定に次の設定を追加してください:','27706CsuaDq','セキュアな接続のために認証を有効にする','APIキーを入力してください','MCP:\x20最大再試行回数を超過','接続済み','クリックしてMCPを設定','無効なAPIキーです。キーが正しいか確認してください','MCP:\x20認証されていません','設定手順:','MCPクライアントを再起動して設定を適用','MCP\x20再試行中...','MCP\x20接続失敗','APIキーは10文字以上である必要があります','接続失敗','設定の変更は直ちに有効になります','651384jikIZr','MCP\x20接続済み','1422475TWikMI','MCP:\x20ネットワークエラー','Bearerプレフィックス付きのAPIキー。','MCPクライアント設定','クリックしてMCPに接続','最大再試行回数を超過しました。後でもう一度お試しください','以下のJSON設定をコピー','4320190aHBZuL','APIキー','セッションIDが現在使用中です。後でもう一度お試しください','MCP設定','APIキーは必須です','57126vxktQB','APIキーとは?','90WbEjoR'];_0x10f5=function(){return _0x473519;};return _0x10f5();}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':_0x4c8083(0x1bd),'failed':_0x4c8083(0x1b8),'retrying':_0x4c8083(0x1b7),'unknown':_0x4c8083(0x1a8),'unauthorized':_0x4c8083(0x1b4),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x4c8083(0x1bf),'maxRetriesExceeded':_0x4c8083(0x1b0),'clickToConnect':_0x4c8083(0x196),'clickToConfigure':_0x4c8083(0x1b2)},'mcpConfig':{'title':_0x4c8083(0x19c),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x4c8083(0x19a),'apiKeyPlaceholder':_0x4c8083(0x1af),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x4c8083(0x1a1),'enableAuthHint':_0x4c8083(0x1ae),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x4c8083(0x1c1),'configInstructions':_0x4c8083(0x1ac),'configStepTitle':_0x4c8083(0x1b5),'configStep1':_0x4c8083(0x198),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x4c8083(0x1b6),'sessionId':_0x4c8083(0x1a6),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x4c8083(0x1c0),'configParameters':'設定パラメータ:','maxRetries':_0x4c8083(0x1a9),'save':'設定を保存','saving':'保存中...','note1':_0x4c8083(0x1bb),'note2':_0x4c8083(0x1aa),'configSaved':_0x4c8083(0x1a5),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x4c8083(0x19f),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x4c8083(0x1a3),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x4c8083(0x19d),'apiKeyTooShort':_0x4c8083(0x1b9),'invalidConfig':'無効な設定','invalidApiKey':_0x4c8083(0x1b3)},'connectionStatus':{'disconnected':'未接続','connecting':'接続中...','connected':_0x4c8083(0x1b1),'failed':_0x4c8083(0x1ba),'retrying':'再試行中...'},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x4c8083(0x19b),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x4c8083(0x197)}}};function _0x2732(_0x2a89fa,_0x3fd094){_0x2a89fa=_0x2a89fa-0x196;const _0x10f58d=_0x10f5();let _0x27329a=_0x10f58d[_0x2a89fa];return _0x27329a;}module['exports']=e;
|