@univerjs-pro/mcp-ui 0.17.0 → 0.18.0
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.css +537 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/mcp-config.command.d.ts +1 -1
- package/lib/types/controllers/menu.d.ts +2 -2
- package/lib/types/controllers/menu.schema.d.ts +1 -1
- package/lib/types/locale/ca-ES.d.ts +1 -1
- package/lib/types/locale/es-ES.d.ts +1 -1
- package/lib/types/locale/fa-IR.d.ts +1 -1
- package/lib/types/locale/fr-FR.d.ts +1 -1
- package/lib/types/locale/ja-JP.d.ts +1 -1
- package/lib/types/locale/ko-KR.d.ts +1 -1
- package/lib/types/locale/ru-RU.d.ts +1 -1
- package/lib/types/locale/sk-SK.d.ts +1 -1
- package/lib/types/locale/vi-VN.d.ts +1 -1
- package/lib/types/locale/zh-TW.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/views/components/mcp-config.d.ts +4 -3
- package/lib/types/views/components/mcp-status.d.ts +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 +11 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x31a787=_0x2c97;function _0x1a49(){const _0x4f2af5=['mcpConfig.save','_mcpConnectionController','带有\x20Bearer\x20前缀的\x20API\x20密钥。','disposeWithMe','random','pluginName','mcpConfig.configInstructions','register','SESSION_ID_OCCUPIED','validateApiKey','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-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpCoreConfig$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MessageType','MenuIcon','_handleConfigure','Copy\x20the\x20JSON\x20configuration\x20below','symbol','LocaleService','点击配置\x20MCP','Univer\x20AI\x20Console','MCP:\x20网络错误','children','mcpConfig.note1','HelpIcon','mcpConfig.apiApplyInfo.title','on-line-icon','univer-space-y-5','getConfig','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','BUTTON','mcpStatus.sessionOccupied','mcpConfig.configStep3','univer-bg-red-500','round','isValid','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP:\x20会话\x20ID\x20已被占用','MCP\x20配置','_config$','mcpConfig.connectionError.sessionOccupied','enableAutoConnect','translate(.97)','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','currentColor','off','connectionStatus$','mcpConfig.saving','mcpConfig.apiApplyInfo.description','2QoTaBA','配置参数:','MCPStatusDisplay','mcpStatus.unknown','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','version','entries','API\x20密钥长度至少需要\x2010\x20位','createElement','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','Session\x20ID','FAILED','_initializeCommands','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-bg-blue-500','mcpConfig.apiKeyPlaceholder','univer.ai','NETWORK_ERROR','_createConfigPanelComponent','univerjs-icon\x20univerjs-icon-','mcpConfig.configStepTitle','forEach','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','最大重试次数','displayName','mcpConfig.validation.apiKeyTooShort','MCP\x20已连接','ISocketService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer.plus','mcp-ui.command.openConfigPanel','button','off-line-icon_clip0_910_343','_registerComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-sm\x20univer-font-medium','assign','mcpStatus.retrying','M0\x200H16V16H0z','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','75935PTvZzC','univer-text-red-500','已连接','add','MCP\x20连接失败','mcp.apiKey','tag','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpStatus.unauthorized','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','MCP\x20Retrying...','next','Configuration\x20Steps:','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','stringify','_config','mcp-ui.config','mcpConfig.connectionStatus.connected','zhCN','use','on-line-icon_clip0_910_349','length','MCPConnectionError','https://mcp.univer.ai/mcp/?univer_session_id=','Error','apiKey','_apiKey$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-size-4','MenuItemType','univer-flex\x20univer-items-center\x20univer-gap-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','useState','<API_KEY>','0.17.0','Saving...','Inject','40bHISoa','subscribe','mcpStatus.clickToConfigure','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','http://www.w3.org/2000/svg','show','errorMessage','attrs','univer-text-blue-600','mcpConfig.apiApplyInfo.univerAiLabel','__setCustomHeaders','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_loadStoredApiKey','toString','mcpConfig.connectionError.unauthorized','mcpConfig.sessionIdDescription','网络连接错误,请检查您的网络连接','UniverIcon','defineProperty','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.configStep1','bottom','OTHERS','6872430PEYGqe','current','mcpConfig.connectionStatus.retrying','_messageService','_initializeMenus','mcpConfig.validation.apiKeyRequired','What\x20is\x20API\x20Key?','mergeMenu','pre','MCPUIMenuController','MCP:\x20未授权','setItem','_componentManager','0\x200\x2016\x2016','COMMAND','useDependency','url(#$1','univer-mr-2\x20univer-flex\x20univer-text-xl','Bearer\x20','MCP\x20Connection\x20Failed','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-space-y-3','MCP\x20Unknown\x20Status','MCP\x20客户端配置','Disconnected','MCPConnectionUIController','RibbonStartGroup','Univer\x20AI\x20控制台','_initStatusComponent','evenodd','MCP\x20Client\x20Configuration','9gsKiqo','enUS','subscribeConfigValue$','useObservable','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','UniverMCPUIPlugin','univer-flex-1','svg','复制以下\x20JSON\x20配置','getItem','MCP\x20Configuration','mcpConfig.title','您的\x20API\x20密钥将在此浏览器中本地存储','_localeService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','check-mark-icon','\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','Configuration\x20Notes:','ILocalStorageService','连接中...','CheckMarkIcon','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','配置无效','Module','Connecting...','_menuManagerService','map','配置步骤:','fill','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','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','ILogService','IConfigService','MCP_PLUGIN_CONFIG_KEY','white','MCP\x20Connected','几秒钟内获取您的\x20API\x20密钥','useCallback','defs','MCPConnectionStatus','value','univer-flex\x20univer-flex-wrap\x20univer-gap-2','get','connectInjector','超出最大重试次数,请稍后再试','http','保存中...','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.connectionError.maxRetriesExceeded','OpenMCPConfigPanelCommand','univer-bg-gray-500','MCP\x20Disconnected','_injector','univer-text-sm\x20univer-text-gray-500','配置保存失败','univer-flex\x20univer-gap-3','<SESSION_ID>','https://console.univer.plus','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_blank','help-icon','MCPConfigPanel','div','mask','error','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.note2','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','span','univer-flex\x20univer-items-center','UniverMCPPlugin','MAX_RETRIES_EXCEEDED','_validateConfig','5613190ofjZaS','启用身份验证以获得安全连接','CommandType','将以下配置添加到您的\x20MCP\x20客户端设置中:','DependentOn','https://console.univer.ai','packageName','_localStorageService','_configService','replace','mcpConfig.apiKeyHint','_initConfigSync','6001712JyULqh','jsx','MCP:\x20超出最大重试次数','clsx','Disposable','merge','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥','warn','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','noopener\x20noreferrer','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Plugin','univer-size-2\x20univer-rounded-full','MCP\x20Connecting...','MCP\x20已断开','Configuration\x20saved\x20successfully','name','mcpConfig.configStep2','重启您的\x20MCP\x20客户端以使配置生效','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex\x20univer-items-start\x20univer-gap-3','_loading$','none','配置更改将立即生效','idSuffix','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_commandService','BehaviorSubject','DISCONNECTED','\x20-\x20','mcpConfig.validation.invalidConfig','OffLineIcon','Enter\x20your\x20API\x20key','_connectionController','CONNECTING','univer-min-w-0\x20univer-flex-1','trim','权限验证失败,请检查您的\x20API\x20密钥','API\x20key\x20is\x20required','RETRYING','UNAUTHORIZED','url(#on-line-icon_clip0_910_349)','CloseIcon','univer-text-gray-500','xlink:href','连接失败','会话ID','_dialogService','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','IUIPartsService','mcpConfig.apiKey','mcpConfig.connectionStatus.failed','includes','univer-text-white','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','defIds','Failed\x20to\x20save\x20configuration','getOwnPropertyDescriptor','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_logService','什么是\x20API\x20密钥?','mcpConfig.description','mcpConfig.validation.invalidApiKey','WebSocketService','1503687jmgqth','CONNECTED','mcpStatus.networkError','mcpConfig.connectionStatus.disconnected','clipPath','保存配置','mcpConfig.connectionError.networkError','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.configParameters','Connection\x20Failed','substring','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-3','jsxs','_handleConfigSave','API\x20密钥无效,请检查密钥是否正确','Save\x20Configuration','univer-shrink-0\x20univer-text-blue-500','string','toStringTag','_initAutoConnect','mcpServerUrl','univer-space-y-2','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','close','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','@univerjs-pro/mcp-ui','open','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','1147860RhFXea','_uiPartsService','1em','MCP\x20状态未知','HEADER_MENU','MCPConnectionController','mcpStatus.failed','registerComponent','univer-bg-green-500','path','showDeveloperTools','url(#off-line-icon_clip0_910_343)','启用身份验证','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Injector','mcpStatus.maxRetriesExceeded','NONE','Invalid\x20configuration','mcp-config-dialog','univer-space-y-4','Click\x20to\x20connect\x20MCP','showConfigPanel','connectionError$','MCPConfigUIController','univer-text-xs\x20univer-text-gray-600','8163925hLVDUL','forwardRef','colorChannel1','OnLineIcon'];_0x1a49=function(){return _0x4f2af5;};return _0x1a49();}(function(_0xa7ec0c,_0x58df67){const _0x50a7f0=_0x2c97,_0x1c2363=_0xa7ec0c();while(!![]){try{const _0x2d6f8a=-parseInt(_0x50a7f0(0x1e9))/0x1+-parseInt(_0x50a7f0(0x23b))/0x2*(parseInt(_0x50a7f0(0x1cc))/0x3)+parseInt(_0x50a7f0(0xfc))/0x4*(parseInt(_0x50a7f0(0x265))/0x5)+parseInt(_0x50a7f0(0x113))/0x6+parseInt(_0x50a7f0(0x202))/0x7+-parseInt(_0x50a7f0(0x189))/0x8+parseInt(_0x50a7f0(0x133))/0x9*(parseInt(_0x50a7f0(0x17d))/0xa);if(_0x2d6f8a===_0x58df67)break;else _0x1c2363['push'](_0x1c2363['shift']());}catch(_0x37181b){_0x1c2363['push'](_0x1c2363['shift']());}}}(_0x1a49,0x98b9e));var ue=Object[_0x31a787(0x10e)],ve=(_0x2ec6bf,_0x5838fe,_0x180ec5)=>_0x5838fe in _0x2ec6bf?ue(_0x2ec6bf,_0x5838fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x180ec5}):_0x2ec6bf[_0x5838fe]=_0x180ec5,I=(_0x5e4022,_0x4f5e5c,_0x32e785)=>ve(_0x5e4022,typeof _0x4f5e5c!=_0x31a787(0x218)?_0x4f5e5c+'':_0x4f5e5c,_0x32e785);Object[_0x31a787(0x10e)](exports,Symbol[_0x31a787(0x1df)],{'value':_0x31a787(0x14b)});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:_0x2e75e9,..._0x593fcd}){const _0x1e45c9=_0x31a787,{icon:_0x5b3bac,id:_0x303a2c,className:_0x5d30da,extend:_0x27fc81,..._0x2d6aac}=_0x593fcd,_0x4c4d61=(_0x1e45c9(0x250)+_0x303a2c+'\x20'+(_0x5d30da||''))[_0x1e45c9(0x1af)](),_0x16b491=d['useRef']('_'+ge());return H(_0x5b3bac,''+_0x303a2c,{'defIds':_0x5b3bac[_0x1e45c9(0x1c3)],'idSuffix':_0x16b491[_0x1e45c9(0x114)]},{'ref':_0x2e75e9,'className':_0x4c4d61,..._0x2d6aac},_0x27fc81);}function H(_0x27b2cb,_0x29f181,_0x54c7f9,_0x343aad,_0x310eb5){const _0x2734d2=_0x31a787;return d[_0x2734d2(0x244)](_0x27b2cb[_0x2734d2(0x26b)],{'key':_0x29f181,...de(_0x27b2cb,_0x54c7f9,_0x310eb5),..._0x343aad},(Ce(_0x27b2cb,_0x54c7f9)[_0x2734d2(0x21d)]||[])[_0x2734d2(0x14e)]((_0x4d8f60,_0x3055e3)=>H(_0x4d8f60,_0x29f181+'-'+_0x27b2cb[_0x2734d2(0x26b)]+'-'+_0x3055e3,_0x54c7f9,void 0x0,_0x310eb5)));}function de(_0x219d01,_0x4e6f47,_0x50bf2c){const _0x38ff86=_0x31a787,_0x47b8be={..._0x219d01[_0x38ff86(0x103)]};_0x50bf2c!=null&&_0x50bf2c[_0x38ff86(0x204)]&&_0x47b8be['fill']===_0x38ff86(0x204)&&(_0x47b8be[_0x38ff86(0x150)]=_0x50bf2c['colorChannel1']),_0x219d01[_0x38ff86(0x26b)]===_0x38ff86(0x173)&&_0x47b8be['id']&&(_0x47b8be['id']=_0x47b8be['id']+_0x4e6f47['idSuffix']),Object[_0x38ff86(0x242)](_0x47b8be)['forEach'](([_0x4fc5fc,_0x2e2480])=>{const _0x22a4b0=_0x38ff86;_0x4fc5fc===_0x22a4b0(0x173)&&typeof _0x2e2480=='string'&&(_0x47b8be[_0x4fc5fc]=_0x2e2480[_0x22a4b0(0x186)](/url\(#(.*)\)/,_0x22a4b0(0x123)+_0x4e6f47['idSuffix']+')'));});const {defIds:_0x51ec7f}=_0x4e6f47;return!_0x51ec7f||_0x51ec7f[_0x38ff86(0x27a)]===0x0||(_0x219d01['tag']===_0x38ff86(0x278)&&_0x47b8be['xlink:href']&&(_0x47b8be['xlink:href']=_0x47b8be[_0x38ff86(0x1b7)]+_0x4e6f47['idSuffix']),Object[_0x38ff86(0x242)](_0x47b8be)[_0x38ff86(0x252)](([_0x1c5734,_0xa02090])=>{const _0x5a084b=_0x38ff86;typeof _0xa02090==_0x5a084b(0x1de)&&(_0x47b8be[_0x1c5734]=_0xa02090['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4e6f47[_0x5a084b(0x1a3)]+')'));})),_0x47b8be;}function Ce(_0x30c7d8,_0x16731a){const _0x154785=_0x31a787;var _0x4d974e;const {defIds:_0x32af1e}=_0x16731a;return!_0x32af1e||_0x32af1e['length']===0x0?_0x30c7d8:_0x30c7d8[_0x154785(0x26b)]===_0x154785(0x15a)&&((_0x4d974e=_0x30c7d8[_0x154785(0x21d)])!=null&&_0x4d974e[_0x154785(0x27a)])?{..._0x30c7d8,'children':_0x30c7d8[_0x154785(0x21d)][_0x154785(0x14e)](_0x454612=>typeof _0x454612[_0x154785(0x103)]['id']==_0x154785(0x1de)&&_0x32af1e&&_0x32af1e[_0x154785(0x1bf)](_0x454612['attrs']['id'])?{..._0x454612,'attrs':{..._0x454612[_0x154785(0x103)],'id':_0x454612[_0x154785(0x103)]['id']+_0x16731a[_0x154785(0x1a3)]}}:_0x454612)}:_0x30c7d8;}function ge(){const _0x5819ff=_0x31a787;return Math[_0x5819ff(0x20a)]()[_0x5819ff(0x109)](0x24)[_0x5819ff(0x1d6)](0x2,0x8);}_[_0x31a787(0x255)]=_0x31a787(0x10d);const fe={'tag':_0x31a787(0x13a),'attrs':{'xmlns':_0x31a787(0x100),'fill':_0x31a787(0x1a1),'viewBox':_0x31a787(0x120),'width':_0x31a787(0x1eb),'height':_0x31a787(0x1eb)},'children':[{'tag':_0x31a787(0x1f2),'attrs':{'fill':_0x31a787(0x236),'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':_0x31a787(0x131),'clipRule':_0x31a787(0x131)}}]},B=d[_0x31a787(0x203)](function(_0x48b6ee,_0xe39095){const _0x192dba=_0x31a787;return d['createElement'](_,Object[_0x192dba(0x261)]({},_0x48b6ee,{'id':_0x192dba(0x143),'ref':_0xe39095,'icon':fe}));});function _0x2c97(_0x4a763d,_0x3448d7){_0x4a763d=_0x4a763d-0xef;const _0x1a49b6=_0x1a49();let _0x2c9760=_0x1a49b6[_0x4a763d];return _0x2c9760;}B[_0x31a787(0x255)]=_0x31a787(0x148);const pe={'tag':'svg','attrs':{'xmlns':_0x31a787(0x100),'fill':_0x31a787(0x1a1),'viewBox':_0x31a787(0x120),'width':_0x31a787(0x1eb),'height':'1em'},'children':[{'tag':_0x31a787(0x1f2),'attrs':{'fill':_0x31a787(0x236),'d':_0x31a787(0x149)}}]},F=d[_0x31a787(0x203)](function(_0x1b5cbd,_0xa619a5){const _0xe3937a=_0x31a787;return d[_0xe3937a(0x244)](_,Object[_0xe3937a(0x261)]({},_0x1b5cbd,{'id':'close-icon','ref':_0xa619a5,'icon':pe}));});F[_0x31a787(0x255)]=_0x31a787(0x1b5);const he={'tag':_0x31a787(0x13a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31a787(0x1a1),'viewBox':_0x31a787(0x120),'width':'1em','height':_0x31a787(0x1eb)},'children':[{'tag':_0x31a787(0x1f2),'attrs':{'fill':_0x31a787(0x236),'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':_0x31a787(0x1f2),'attrs':{'fill':'currentColor','d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x31a787(0x1f2),'attrs':{'fill':_0x31a787(0x236),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x31a787(0x131)}}]},Y=d['forwardRef'](function(_0x1a1d31,_0x2840e8){const _0x43ba59=_0x31a787;return d[_0x43ba59(0x244)](_,Object[_0x43ba59(0x261)]({},_0x1a1d31,{'id':_0x43ba59(0x170),'ref':_0x2840e8,'icon':he}));});Y[_0x31a787(0x255)]=_0x31a787(0x21f);const me={'tag':_0x31a787(0x13a),'attrs':{'xmlns':_0x31a787(0x100),'fill':_0x31a787(0x1a1),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x31a787(0x1eb)},'children':[{'tag':'g','attrs':{'clipPath':_0x31a787(0x1f4)},'children':[{'tag':_0x31a787(0x1f2),'attrs':{'stroke':_0x31a787(0x236),'d':_0x31a787(0x152),'strokeLinecap':'round','strokeLinejoin':_0x31a787(0x229),'strokeWidth':1.2}}]},{'tag':_0x31a787(0x15a),'attrs':{},'children':[{'tag':_0x31a787(0x1d0),'attrs':{'id':_0x31a787(0x25d)},'children':[{'tag':_0x31a787(0x1f2),'attrs':{'fill':_0x31a787(0x156),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x31a787(0x25d)]},q=d[_0x31a787(0x203)](function(_0x3be89b,_0x3d66a0){const _0x387d1f=_0x31a787;return d[_0x387d1f(0x244)](_,Object[_0x387d1f(0x261)]({},_0x3be89b,{'id':'off-line-icon','ref':_0x3d66a0,'icon':me}));});q[_0x31a787(0x255)]=_0x31a787(0x1aa);const xe={'tag':_0x31a787(0x13a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31a787(0x1a1),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x31a787(0x1eb)},'children':[{'tag':'g','attrs':{'clipPath':_0x31a787(0x1b4)},'children':[{'tag':_0x31a787(0x1f2),'attrs':{'stroke':'currentColor','d':_0x31a787(0x210),'strokeLinecap':_0x31a787(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x31a787(0x15a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x31a787(0x279)},'children':[{'tag':_0x31a787(0x1f2),'attrs':{'fill':_0x31a787(0x156),'d':_0x31a787(0x263),'transform':_0x31a787(0x233)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},V=d[_0x31a787(0x203)](function(_0x255581,_0x19ab16){const _0x262bd8=_0x31a787;return d[_0x262bd8(0x244)](_,Object[_0x262bd8(0x261)]({},_0x255581,{'id':_0x262bd8(0x221),'ref':_0x19ab16,'icon':xe}));});V[_0x31a787(0x255)]=_0x31a787(0x205);function Z(_0x387ebf){const _0x1a1e28=_0x31a787;var _0x1b28a2,_0x4280ff;const {mcpCoreConfig:_0xf9105,onSave:_0x3217b2,loading:_0x4cdaba=!0x1,config:_0x4b316e,connectionStatus$:_0x4acae1,connectionError$:_0x339028,currentApiKey$:_0x15d3ee,currentSessionId$:_0xcf6889}=_0x387ebf,_0x31eeb7=v[_0x1a1e28(0x122)](u[_0x1a1e28(0x219)]),_0x553513=v[_0x1a1e28(0x136)](_0x4acae1,s[_0x1a1e28(0x15b)]['DISCONNECTED']),_0x3cd298=v['useObservable'](_0x339028,s[_0x1a1e28(0x27b)]['NONE']),_0x1187af=v[_0x1a1e28(0x136)](_0xcf6889,''),_0x53e04b=v[_0x1a1e28(0x136)](_0x15d3ee,''),[_0x33ce43,_0x2d8cb9]=d[_0x1a1e28(0xf7)](_0x53e04b||''),_0x3a2638=!0x0,_0x31b822=_0x4b316e['showDeveloperTools']&&_0xf9105[_0x1a1e28(0x1e1)]&&(_0xf9105[_0x1a1e28(0x1e1)][_0x1a1e28(0x1bf)](_0x1a1e28(0x25a))||_0xf9105[_0x1a1e28(0x1e1)][_0x1a1e28(0x1bf)](_0x1a1e28(0x24d))),_0x223c3a=(_0x1b28a2=_0xf9105['mcpServerUrl'])==null?void 0x0:_0x1b28a2['includes']('univer.plus'),_0x5a12a7=(_0x4280ff=_0xf9105[_0x1a1e28(0x1e1)])==null?void 0x0:_0x4280ff[_0x1a1e28(0x1bf)](_0x1a1e28(0x24d)),_0x2fc639=_0x223c3a?_0x1a1e28(0x16d):_0x1a1e28(0x182),_0xf76fbc=_0x4b316e['showDeveloperTools']&&(_0x223c3a||_0x5a12a7),[_0x3001b1,_0x18cb9d]=d['useState'](!_0x33ce43['trim']()),_0x13f1ab=(_0xd5c1e1,_0x4a2430)=>{const _0x3ba560=_0x1a1e28;if(_0x4a2430===s[_0x3ba560(0x27b)][_0x3ba560(0x1b3)])return _0x3ba560(0x16e);switch(_0xd5c1e1){case s['MCPConnectionStatus'][_0x3ba560(0x1cd)]:return _0x3ba560(0x253);case s[_0x3ba560(0x15b)][_0x3ba560(0x1ad)]:case s[_0x3ba560(0x15b)][_0x3ba560(0x1b2)]:return _0x3ba560(0x224);case s[_0x3ba560(0x15b)]['FAILED']:return _0x3ba560(0x16e);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x389f91=(_0xeca28d,_0x25c8aa)=>{const _0x660fa5=_0x1a1e28;if(_0x25c8aa===s[_0x660fa5(0x27b)]['UNAUTHORIZED'])return _0x660fa5(0x228);switch(_0xeca28d){case s[_0x660fa5(0x15b)][_0x660fa5(0x1cd)]:return _0x660fa5(0x1f1);case s['MCPConnectionStatus']['CONNECTING']:case s[_0x660fa5(0x15b)][_0x660fa5(0x1b2)]:return _0x660fa5(0x24b);case s['MCPConnectionStatus'][_0x660fa5(0x248)]:return _0x660fa5(0x228);default:return _0x660fa5(0x166);}},_0x34fc4c=_0x3dfa76=>{const _0x501921=_0x1a1e28;switch(_0x3dfa76){case s['MCPConnectionStatus'][_0x501921(0x1cd)]:return _0x31eeb7['t'](_0x501921(0x276));case s[_0x501921(0x15b)]['CONNECTING']:return _0x31eeb7['t']('mcpConfig.connectionStatus.connecting');case s[_0x501921(0x15b)][_0x501921(0x248)]:return _0x31eeb7['t'](_0x501921(0x1be));case s[_0x501921(0x15b)][_0x501921(0x1b2)]:return _0x31eeb7['t'](_0x501921(0x115));default:return _0x31eeb7['t'](_0x501921(0x1cf));}},_0x5ac3bb=_0x2108ee=>{const _0x7d79d9=_0x1a1e28;switch(_0x2108ee){case s[_0x7d79d9(0x27b)][_0x7d79d9(0x1b3)]:return _0x31eeb7['t'](_0x7d79d9(0x10a));case s[_0x7d79d9(0x27b)][_0x7d79d9(0x20e)]:return _0x31eeb7['t'](_0x7d79d9(0x231));case s[_0x7d79d9(0x27b)][_0x7d79d9(0x24e)]:return _0x31eeb7['t'](_0x7d79d9(0x1d2));case s[_0x7d79d9(0x27b)]['MAX_RETRIES_EXCEEDED']:return _0x31eeb7['t'](_0x7d79d9(0x164));default:return'';}},_0x2a46ce=d[_0x1a1e28(0x159)](()=>{const _0x2df204=_0x1a1e28,_0x5c51e4={..._0xf9105,'apiKey':_0x33ce43[_0x2df204(0x1af)](),'enableAuth':_0x3a2638};_0x3217b2(_0x5c51e4);},[_0xf9105,_0x33ce43,_0x3a2638,_0x3217b2]),_0x367f7a=_0x33ce43[_0x1a1e28(0x1af)]()['length']>0x0;return i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x22d),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x25f),'children':i['jsxs'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1d8),'children':[i[_0x1a1e28(0x18a)]('div',{'className':_0x1a1e28(0x127),'children':i[_0x1a1e28(0x18a)]('span',{'className':_0x1a1e28(0x1c0),'children':'⚙'})}),i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'children':i[_0x1a1e28(0x18a)]('p',{'className':_0x1a1e28(0x169),'children':_0x31eeb7['t'](_0x1a1e28(0x1c9))})})]})}),i['jsxs'](_0x1a1e28(0x172),{'className':_0x1a1e28(0xf6),'children':[i['jsx'](_0x1a1e28(0x172),{'className':f[_0x1a1e28(0x18c)](_0x1a1e28(0x1e8),_0x13f1ab(_0x553513,_0x3cd298)),'children':i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0xf5),'children':[i['jsx']('div',{'className':f[_0x1a1e28(0x18c)](_0x1a1e28(0x197),_0x389f91(_0x553513,_0x3cd298))}),i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'className':_0x1a1e28(0x260),'children':_0x34fc4c(_0x553513)})]})}),_0x3cd298!==s[_0x1a1e28(0x27b)][_0x1a1e28(0x1f9)]&&(_0x553513===s[_0x1a1e28(0x15b)]['FAILED']||_0x3cd298===s[_0x1a1e28(0x27b)][_0x1a1e28(0x1b3)])&&i['jsx'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x142),'children':i['jsxs'](_0x1a1e28(0x172),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x1a1e28(0x18a)]('p',{'className':_0x1a1e28(0x26e),'children':_0x5ac3bb(_0x3cd298)})]})})]}),i[_0x1a1e28(0x18a)]('div',{'className':_0x1a1e28(0xf2),'children':i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x222),'children':[i[_0x1a1e28(0x1d9)]('div',{'className':_0x1a1e28(0x1e2),'children':[i[_0x1a1e28(0x1d9)]('label',{'className':_0x1a1e28(0x151),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'children':'🔑'}),'\x20',_0x31eeb7['t'](_0x1a1e28(0x1bd)),i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'className':_0x1a1e28(0x266),'children':'*'}),_0x31b822&&i['jsx']('a',{'className':_0x1a1e28(0x177),'title':_0x31eeb7['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x18cb9d(!0x0),'children':i[_0x1a1e28(0x18a)](Y,{})})]}),i[_0x1a1e28(0x18a)](f['Input'],{'type':'text','placeholder':_0x31eeb7['t'](_0x1a1e28(0x24c)),'value':_0x33ce43,'disabled':_0x4cdaba,'autoComplete':_0x1a1e28(0x237),'onChange':_0x2d8cb9}),i[_0x1a1e28(0x18a)]('p',{'className':_0x1a1e28(0x22c),'children':_0x31eeb7['t'](_0x1a1e28(0x187))})]}),_0x31b822&&_0x3001b1&&i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i[_0x1a1e28(0x18a)]('a',{'className':_0x1a1e28(0x1bb),'role':_0x1a1e28(0x25c),'onClick':()=>_0x18cb9d(!0x1),'children':i['jsx'](F,{'className':_0x1a1e28(0xf3)})}),i['jsxs'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x192),'children':[i['jsx'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1c2),'children':i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'className':_0x1a1e28(0x104),'children':'🚀'})}),i[_0x1a1e28(0x1d9)]('div',{'className':_0x1a1e28(0x139),'children':[i[_0x1a1e28(0x18a)]('h4',{'className':_0x1a1e28(0x141),'children':_0x31eeb7['t'](_0x1a1e28(0x220))}),i[_0x1a1e28(0x18a)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x31eeb7['t'](_0x1a1e28(0x23a))}),i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x15d),'children':_0xf76fbc&&i['jsxs']('a',{'className':_0x1a1e28(0x1e3),'href':_0x2fc639,'target':_0x1a1e28(0x16f),'rel':_0x1a1e28(0x193),'children':[i['jsx'](_0x1a1e28(0x178),{'children':'🤖'}),_0x31eeb7['t'](_0x1a1e28(0x105)),i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'className':'univer-text-gray-400','children':'↗'})]})}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1d3),'children':['✨','\x20',_0x31eeb7['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x4b316e[_0x1a1e28(0x1f3)]&&i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x240),'children':[i['jsxs']('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'children':'🔗'}),'\x20',_0x31eeb7['t']('mcpConfig.connectionInfo')]}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1fc),'children':[i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x129),'children':[i[_0x1a1e28(0x18a)]('p',{'className':_0x1a1e28(0x201),'children':_0x31eeb7['t'](_0x1a1e28(0x20c))}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1e2),'children':[i['jsx'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x18f),'children':_0x31eeb7['t'](_0x1a1e28(0x251))}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1d7),'children':[i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0xf5),'children':[i[_0x1a1e28(0x18a)]('span',{'className':_0x1a1e28(0x1c1),'children':'1'}),_0x31eeb7['t'](_0x1a1e28(0x110))]}),i[_0x1a1e28(0x1d9)]('div',{'className':_0x1a1e28(0xf5),'children':[i[_0x1a1e28(0x18a)]('span',{'className':_0x1a1e28(0x1c1),'children':'2'}),_0x31eeb7['t'](_0x1a1e28(0x19c))]}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0xf5),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'className':_0x1a1e28(0x1c1),'children':'3'}),_0x31eeb7['t'](_0x1a1e28(0x227))]})]})]})]}),i['jsxs'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1e2),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x18f),'children':_0x1a1e28(0x13d)}),i[_0x1a1e28(0x18a)]('div',{'className':_0x1a1e28(0x1a4),'children':i[_0x1a1e28(0x18a)](_0x1a1e28(0x11b),{'className':_0x1a1e28(0x24a),'children':JSON[_0x1a1e28(0x273)]({'mcpServers':{'univer':{'url':_0x1a1e28(0x27c)+(_0x1187af||_0x1a1e28(0x16c)),'type':_0x1a1e28(0x161),'headers':{'Authorization':_0x1a1e28(0x125)+(_0x33ce43||_0x1a1e28(0xf8))}}}},null,0x2)})})]}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x129),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x18f),'children':_0x31eeb7['t'](_0x1a1e28(0x1d4))}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':'univer-space-y-2','children':[i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x1a1e28(0x1d9)]('div',{'className':_0x1a1e28(0x1ae),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x213),'children':'univer_session_id:'}),i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x22c),'children':_0x31eeb7['t'](_0x1a1e28(0x10b))})]})]}),i['jsxs'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x19f),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x195)}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x1ae),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x213),'children':'Authorization:'}),i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x22c),'children':_0x31eeb7['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i['jsx'](f['Button'],{'onClick':_0x2a46ce,'disabled':!_0x367f7a||_0x4cdaba,'className':_0x1a1e28(0x272),'children':_0x4cdaba?i[_0x1a1e28(0x1d9)](_0x1a1e28(0x178),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x178),{'children':'⟲'}),_0x31eeb7['t'](_0x1a1e28(0x239))]}):i[_0x1a1e28(0x1d9)](_0x1a1e28(0x178),{'className':_0x1a1e28(0xf5),'children':[i['jsx'](B,{}),_0x31eeb7['t'](_0x1a1e28(0x206))]})}),i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':_0x1a1e28(0x211),'children':i['jsxs'](_0x1a1e28(0x172),{'className':_0x1a1e28(0x16b),'children':[i['jsx'](_0x1a1e28(0x178),{'className':_0x1a1e28(0x1dd),'children':'💡'}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'className':_0x1a1e28(0xff),'children':[i[_0x1a1e28(0x18a)](_0x1a1e28(0x172),{'className':'univer-font-medium','children':_0x1a1e28(0x145)}),i[_0x1a1e28(0x1d9)](_0x1a1e28(0x172),{'children':['•',_0x31eeb7['t'](_0x1a1e28(0x21e))]}),i['jsxs'](_0x1a1e28(0x172),{'children':['•',_0x31eeb7['t'](_0x1a1e28(0x176))]})]})]})})]})})]});}const P=_0x31a787(0x275),z={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x31a787(0x1c5)],Pe=(_0x5e8638,_0x3593f8,_0x4ff557,_0xcc2b76)=>{const _0x5073c6=_0x31a787;for(var _0xe21e34=_0xcc2b76>0x1?void 0x0:_0xcc2b76?Se(_0x3593f8,_0x4ff557):_0x3593f8,_0x3d0c39=_0x5e8638[_0x5073c6(0x27a)]-0x1,_0x5f43d2;_0x3d0c39>=0x0;_0x3d0c39--)(_0x5f43d2=_0x5e8638[_0x3d0c39])&&(_0xe21e34=_0x5f43d2(_0xe21e34)||_0xe21e34);return _0xe21e34;},g=(_0x327828,_0x45d460)=>(_0x339d6c,_0x2df308)=>_0x45d460(_0x339d6c,_0x2df308,_0x327828);const O=_0x31a787(0x26a),D=_0x31a787(0x1fb);exports[_0x31a787(0x200)]=class extends u[_0x31a787(0x18d)]{constructor(_0x4e51ec,_0x1295eb,_0x1bf2c5,_0x57f437,_0x22605f,_0x5e8f16,_0x1e0974,_0xddfafc,_0xbef63a,_0x44d490){const _0x2e2ce6=_0x31a787;super(),I(this,_0x2e2ce6(0x1a0),new M[(_0x2e2ce6(0x1a6))](!0x1)),I(this,'_mcpCoreConfig$',new M['BehaviorSubject']({})),I(this,'_config$',new M[(_0x2e2ce6(0x1a6))]({})),I(this,_0x2e2ce6(0xf1),new M[(_0x2e2ce6(0x1a6))]('')),I(this,_0x2e2ce6(0x1da),async _0x49fb8b=>{const _0x1460e8=_0x2e2ce6;var _0x3d5412,_0x3964b2;this[_0x1460e8(0x1a0)][_0x1460e8(0x270)](!0x0);try{const _0x496472=await this[_0x1460e8(0x17c)](_0x49fb8b);if(!_0x496472[_0x1460e8(0x22a)]){this[_0x1460e8(0x116)]['show']({'type':f[_0x1460e8(0x214)][_0x1460e8(0xef)],'content':_0x496472[_0x1460e8(0x102)]||this['_localeService']['t'](_0x1460e8(0x1a9))});return;}_0x49fb8b[_0x1460e8(0xf0)]?await this[_0x1460e8(0x184)][_0x1460e8(0x11e)](O,_0x49fb8b[_0x1460e8(0xf0)]['trim']()):await this[_0x1460e8(0x184)]['removeItem'](O),this[_0x1460e8(0xf1)][_0x1460e8(0x270)](((_0x3d5412=_0x49fb8b['apiKey'])==null?void 0x0:_0x3d5412[_0x1460e8(0x1af)]())||''),this[_0x1460e8(0x207)][_0x1460e8(0x106)]({'Authorization':_0x1460e8(0x125)+((_0x3964b2=_0x49fb8b['apiKey'])==null?void 0x0:_0x3964b2[_0x1460e8(0x1af)]())}),this[_0x1460e8(0x116)][_0x1460e8(0x101)]({'type':f[_0x1460e8(0x214)]['Success'],'content':this[_0x1460e8(0x140)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x243217=_0x1460e8;this[_0x243217(0x1ba)]['close'](D);},0x320);}catch(_0x30fdad){this[_0x1460e8(0x1c7)]['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x30fdad),this['_messageService'][_0x1460e8(0x101)]({'type':f['MessageType']['Error'],'content':this[_0x1460e8(0x140)]['t']('mcpConfig.configError')});}finally{this[_0x1460e8(0x1a0)][_0x1460e8(0x270)](!0x1);}}),(this[_0x2e2ce6(0x168)]=_0x4e51ec,this[_0x2e2ce6(0x1ea)]=_0x1295eb,this[_0x2e2ce6(0x185)]=_0x1bf2c5,this[_0x2e2ce6(0x184)]=_0x57f437,this[_0x2e2ce6(0x1ba)]=_0x22605f,this[_0x2e2ce6(0x116)]=_0x5e8f16,this[_0x2e2ce6(0x11f)]=_0x1e0974,this['_localeService']=_0xddfafc,this[_0x2e2ce6(0x1c7)]=_0xbef63a,this[_0x2e2ce6(0x207)]=_0x44d490,this[_0x2e2ce6(0x188)](),this[_0x2e2ce6(0x108)](),this[_0x2e2ce6(0x25e)]());}[_0x31a787(0x1fe)](){const _0x5b0675=_0x31a787,_0x55a6d6=this['_configService'][_0x5b0675(0x223)](P);_0x55a6d6!=null&&_0x55a6d6['showDeveloperTools']&&this[_0x5b0675(0x1ba)][_0x5b0675(0x1e7)]({'id':D,'title':{'title':this[_0x5b0675(0x140)]['t'](_0x5b0675(0x13e))},'children':{'label':_0x5b0675(0x171)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3b5cf6=_0x5b0675;this[_0x3b5cf6(0x1ba)][_0x3b5cf6(0x1e4)](D);}});}['getCurrentConfig'](){const _0x395925=_0x31a787;return this[_0x395925(0x212)]['value'];}[_0x31a787(0x25e)](){const _0x2b193b=_0x31a787;this[_0x2b193b(0x209)](this['_componentManager'][_0x2b193b(0x20d)](_0x2b193b(0x171),this[_0x2b193b(0x24f)]()));}['_createConfigPanelComponent'](){const _0x51926d=_0x31a787;return v[_0x51926d(0x15f)](()=>{const _0x9df32d=_0x51926d;var _0x2f1494,_0x55d070,_0x36e628;return i[_0x9df32d(0x18a)](Z,{'config':this['_config$'][_0x9df32d(0x15c)],'mcpCoreConfig':this[_0x9df32d(0x212)]['value'],'currentApiKey$':this[_0x9df32d(0xf1)],'onSave':this['_handleConfigSave'],'loading':this[_0x9df32d(0x1a0)]['value'],'connectionStatus$':(_0x2f1494=this[_0x9df32d(0x207)])==null?void 0x0:_0x2f1494[_0x9df32d(0x238)],'connectionError$':(_0x55d070=this['_mcpConnectionController'])==null?void 0x0:_0x55d070[_0x9df32d(0x1ff)],'currentSessionId$':(_0x36e628=this[_0x9df32d(0x207)])==null?void 0x0:_0x36e628['sessionId$']});},this[_0x51926d(0x168)]);}[_0x31a787(0x188)](){const _0x4f067d=_0x31a787;this[_0x4f067d(0x209)](this[_0x4f067d(0x185)][_0x4f067d(0x135)](s[_0x4f067d(0x155)])[_0x4f067d(0xfd)](_0x3ed822=>{const _0x9e189f=_0x4f067d;this[_0x9e189f(0x212)]['next'](_0x3ed822||{});}));const _0x45e35b=this[_0x4f067d(0x185)][_0x4f067d(0x223)](s[_0x4f067d(0x155)]);this[_0x4f067d(0x212)][_0x4f067d(0x270)](_0x45e35b||{}),this[_0x4f067d(0x209)](this['_configService'][_0x4f067d(0x135)](P)[_0x4f067d(0xfd)](_0x4f2d20=>{const _0x2f76df=_0x4f067d;this[_0x2f76df(0x230)][_0x2f76df(0x270)](_0x4f2d20||{});}));const _0x15854a=this['_configService'][_0x4f067d(0x223)](P);this['_config$'][_0x4f067d(0x270)](_0x15854a||{});}async[_0x31a787(0x108)](){const _0xc7464e=_0x31a787,_0x5c0097=this[_0xc7464e(0x185)][_0xc7464e(0x223)](P);if(!(_0x5c0097!=null&&_0x5c0097[_0xc7464e(0x1f3)]))return;const _0x92a45=await this[_0xc7464e(0x184)][_0xc7464e(0x13c)](O);_0x92a45&&(this[_0xc7464e(0x207)]['__setCustomHeaders']({'Authorization':_0xc7464e(0x125)+_0x92a45}),this[_0xc7464e(0xf1)]['next'](_0x92a45));}async[_0x31a787(0x17c)](_0x48f9d8){const _0xb7a842=_0x31a787;if(!_0x48f9d8[_0xb7a842(0xf0)]||_0x48f9d8[_0xb7a842(0xf0)]['trim']()[_0xb7a842(0x27a)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0xb7a842(0x118))};if(_0x48f9d8[_0xb7a842(0xf0)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0xb7a842(0x140)]['t'](_0xb7a842(0x256))};try{const _0x59e0a5=await this['_injector'][_0xb7a842(0x15e)](s[_0xb7a842(0x1ee)])[_0xb7a842(0x20f)](_0x48f9d8['apiKey'][_0xb7a842(0x1af)]());return _0x59e0a5[_0xb7a842(0x22a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x59e0a5[_0xb7a842(0x174)]||this[_0xb7a842(0x140)]['t'](_0xb7a842(0x1ca))};}catch(_0x7aba59){return console[_0xb7a842(0x191)](_0xb7a842(0x1c6),_0x7aba59),{'isValid':!0x0};}}},exports[_0x31a787(0x200)]=Pe([g(0x0,u[_0x31a787(0xfb)](u[_0x31a787(0x1f7)])),g(0x1,v[_0x31a787(0x1bc)]),g(0x2,u['IConfigService']),g(0x3,u[_0x31a787(0x146)]),g(0x4,v['IDialogService']),g(0x5,v['IMessageService']),g(0x6,u[_0x31a787(0xfb)](v['ComponentManager'])),g(0x7,u['Inject'](u['LocaleService'])),g(0x8,u[_0x31a787(0x153)]),g(0x9,u[_0x31a787(0xfb)](s['MCPConnectionController']))],exports[_0x31a787(0x200)]);const b={'id':_0x31a787(0x25b),'type':u[_0x31a787(0x17f)][_0x31a787(0x121)],'handler':async(_0x7b1797,_0x4531fa)=>(_0x7b1797['get'](exports[_0x31a787(0x200)])[_0x31a787(0x1fe)](),!0x0)};function W(_0x52fffe,_0x298035){const _0x26d8d3=_0x31a787;switch(_0x52fffe){case s[_0x26d8d3(0x15b)]['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x26d8d3(0x15b)][_0x26d8d3(0x1ad)]:return'mcpStatus.connecting';case s[_0x26d8d3(0x15b)][_0x26d8d3(0x1cd)]:return'mcpStatus.connected';case s[_0x26d8d3(0x15b)][_0x26d8d3(0x248)]:switch(_0x298035){case s['MCPConnectionError']['UNAUTHORIZED']:return _0x26d8d3(0x26d);case s['MCPConnectionError'][_0x26d8d3(0x20e)]:return _0x26d8d3(0x226);case s['MCPConnectionError'][_0x26d8d3(0x24e)]:return _0x26d8d3(0x1ce);case s[_0x26d8d3(0x27b)][_0x26d8d3(0x17b)]:return _0x26d8d3(0x1f8);default:return _0x26d8d3(0x1ef);}case s[_0x26d8d3(0x15b)]['RETRYING']:return _0x26d8d3(0x262);default:return _0x26d8d3(0x23e);}}function Ie(_0x5482c4,_0x2f38cc,_0xa8b413,_0xd4ba10=!0x0){const _0x28beca=_0x31a787,_0x5b9de8=W(_0x5482c4,_0x2f38cc),_0x4b398a=_0xa8b413['t'](_0x5b9de8);return _0xd4ba10?_0x5482c4===s[_0x28beca(0x15b)][_0x28beca(0x1a7)]&&_0x2f38cc===s[_0x28beca(0x27b)][_0x28beca(0x1b3)]?_0x4b398a+_0x28beca(0x1a8)+_0xa8b413['t'](_0x28beca(0xfe)):_0x5482c4===s[_0x28beca(0x15b)][_0x28beca(0x1cd)]?''+_0x4b398a:_0x5482c4===s[_0x28beca(0x15b)]['DISCONNECTED']||_0x5482c4===s[_0x28beca(0x15b)][_0x28beca(0x248)]?_0x4b398a+_0x28beca(0x1a8)+_0xa8b413['t']('mcpStatus.clickToConnect'):_0x4b398a:_0x4b398a;}function _e(_0x58640f){const _0x1d39c8=_0x31a787;switch(_0x58640f){case s[_0x1d39c8(0x15b)][_0x1d39c8(0x1cd)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0x1d39c8(0x1ad)]:case s[_0x1d39c8(0x15b)]['RETRYING']:return'univer-text-yellow-500';case s[_0x1d39c8(0x15b)]['FAILED']:case s[_0x1d39c8(0x15b)]['DISCONNECTED']:return'univer-text-red-500';default:return _0x1d39c8(0x1b6);}}function X(_0x2aeb3f){const _0x2a1a36=_0x31a787,{status$:_0x2c937b,error$:_0x149401,onConfigure:_0x396b95,showClickable:_0x2999d7=!0x0}=_0x2aeb3f,_0x2ca4ea=v[_0x2a1a36(0x136)](_0x2c937b,s[_0x2a1a36(0x15b)][_0x2a1a36(0x1a7)]),_0x41315c=v['useObservable'](_0x149401,s[_0x2a1a36(0x27b)][_0x2a1a36(0x1f9)]),_0x22776e=v['useDependency'](u[_0x2a1a36(0x219)]),_0x36697d=_0x2ca4ea===s[_0x2a1a36(0x15b)][_0x2a1a36(0x1cd)];_0x2ca4ea===s[_0x2a1a36(0x15b)][_0x2a1a36(0x1ad)]||s[_0x2a1a36(0x15b)][_0x2a1a36(0x1b2)];const _0xcbb7f2=_0x22776e['t'](W(_0x2ca4ea,_0x41315c)),_0x3f27e0=Ie(_0x2ca4ea,_0x41315c,_0x22776e,_0x2999d7),_0xbdc9a5=_e(_0x2ca4ea),_0x20b923=_0x36697d?i[_0x2a1a36(0x18a)](V,{}):i['jsx'](q,{}),_0xf32c75=d['useCallback'](()=>{_0x2999d7&&_0x396b95&&_0x396b95();},[_0x2999d7,_0x396b95]);function _0x35545b(){const _0x10d117=_0x2a1a36;return i['jsxs'](_0x10d117(0x172),{'className':f[_0x10d117(0x18c)](_0x10d117(0x179),_0x2999d7&&_0x396b95&&_0x10d117(0x144)),'role':_0x10d117(0x25c),'onClick':_0x2999d7&&_0x396b95?_0xf32c75:void 0x0,'children':[i[_0x10d117(0x18a)]('div',{'className':f['clsx'](_0x10d117(0x124),_0xbdc9a5),'children':_0x20b923}),i[_0x10d117(0x18a)](_0x10d117(0x172),{'className':_0x10d117(0x137),'children':_0xcbb7f2})]});}return i[_0x2a1a36(0x18a)](f['Tooltip'],{'title':_0x3f27e0,'placement':_0x2a1a36(0x111),'children':_0x35545b()});}var ye=Object[_0x31a787(0x1c5)],Me=(_0x35eb70,_0x5431e0,_0x5345cb,_0x374272)=>{const _0x2bd33d=_0x31a787;for(var _0x22eede=_0x374272>0x1?void 0x0:_0x374272?ye(_0x5431e0,_0x5345cb):_0x5431e0,_0x5d8a49=_0x35eb70[_0x2bd33d(0x27a)]-0x1,_0x1a7538;_0x5d8a49>=0x0;_0x5d8a49--)(_0x1a7538=_0x35eb70[_0x5d8a49])&&(_0x22eede=_0x1a7538(_0x22eede)||_0x22eede);return _0x22eede;},N=(_0x103f0f,_0x2e3de1)=>(_0x20a019,_0x38109a)=>_0x2e3de1(_0x20a019,_0x38109a,_0x103f0f);exports[_0x31a787(0x12d)]=class extends u[_0x31a787(0x18d)]{constructor(_0x329a0c,_0x39b8c3,_0x20c9b8,_0x4af4a8){const _0x45e3ad=_0x31a787;super(),this['_injector']=_0x329a0c,this['_connectionController']=_0x39b8c3,this[_0x45e3ad(0x1ea)]=_0x20c9b8,this[_0x45e3ad(0x185)]=_0x4af4a8,this[_0x45e3ad(0x1e0)](),this[_0x45e3ad(0x130)]();}[_0x31a787(0x1e0)](){const _0x118933=_0x31a787,_0x59e52d=this['_configService']['getConfig'](P);_0x59e52d!=null&&_0x59e52d[_0x118933(0x1f3)]&&(this['_connectionController'][_0x118933(0x232)]=!0x1);}[_0x31a787(0x130)](){const _0x348065=_0x31a787,_0x49b3ea=this['_configService'][_0x348065(0x223)](P);(_0x49b3ea==null?void 0x0:_0x49b3ea['showStatus'])!==!0x1&&this[_0x348065(0x209)](this[_0x348065(0x1ea)][_0x348065(0x1f0)](v['BuiltInUIPart'][_0x348065(0x1ed)],()=>{const _0x856433=_0x348065;var _0x61c6a0;return v[_0x856433(0x15f)](Ne({'status$':this['_connectionController'][_0x856433(0x238)],'error$':this[_0x856433(0x1ac)]['connectionError$'],'onConfigure':()=>this[_0x856433(0x216)](),'showClickable':(_0x61c6a0=_0x49b3ea==null?void 0x0:_0x49b3ea['showDeveloperTools'])!=null?_0x61c6a0:!0x1}),this[_0x856433(0x168)]);}));}[_0x31a787(0x216)](){const _0x47b5e8=_0x31a787;this['_injector'][_0x47b5e8(0x15e)](exports[_0x47b5e8(0x200)])['showConfigPanel']();}},exports[_0x31a787(0x12d)]=Me([N(0x0,u['Inject'](u[_0x31a787(0x1f7)])),N(0x1,u[_0x31a787(0xfb)](s[_0x31a787(0x1ee)])),N(0x2,v[_0x31a787(0x1bc)]),N(0x3,u[_0x31a787(0x154)])],exports['MCPConnectionUIController']);function Ne(_0x36a8da){const {status$:_0x5ed57f,error$:_0x546b1f,onConfigure:_0x372772,showClickable:_0x541ad3}=_0x36a8da;return function(){const _0xba9514=_0x2c97;return i[_0xba9514(0x18a)](X,{'status$':_0x5ed57f,'error$':_0x546b1f,'onConfigure':_0x372772,'showClickable':_0x541ad3});};}function be(_0x388143){const _0xbe7ab6=_0x31a787;return{'id':b['id'],'type':v[_0xbe7ab6(0xf4)][_0xbe7ab6(0x225)],'icon':_0xbe7ab6(0x215),'title':_0xbe7ab6(0x13e),'tooltip':_0xbe7ab6(0x13e)};}const je={[v[_0x31a787(0x12e)][_0x31a787(0x112)]]:{[b['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x31a787(0x1c5)],we=(_0xb7d5f,_0x4436e5,_0x35b414,_0x17d174)=>{const _0x1ec266=_0x31a787;for(var _0x1476d3=_0x17d174>0x1?void 0x0:_0x17d174?Ee(_0x4436e5,_0x35b414):_0x4436e5,_0x2a2bd7=_0xb7d5f[_0x1ec266(0x27a)]-0x1,_0x33cc3e;_0x2a2bd7>=0x0;_0x2a2bd7--)(_0x33cc3e=_0xb7d5f[_0x2a2bd7])&&(_0x1476d3=_0x33cc3e(_0x1476d3)||_0x1476d3);return _0x1476d3;},G=(_0xbc41c7,_0x1e42da)=>(_0x282c6b,_0x246ec8)=>_0x1e42da(_0x282c6b,_0x246ec8,_0xbc41c7);exports[_0x31a787(0x11c)]=class extends u[_0x31a787(0x18d)]{constructor(_0x8ff355,_0x268cd6){const _0x57df57=_0x31a787;super(),this['_commandService']=_0x8ff355,this[_0x57df57(0x14d)]=_0x268cd6,this[_0x57df57(0x249)](),this[_0x57df57(0x117)]();}[_0x31a787(0x249)](){[b]['forEach'](_0x5197b6=>{const _0x3f3b53=_0x2c97;this['disposeWithMe'](this[_0x3f3b53(0x1a5)]['registerCommand'](_0x5197b6));});}[_0x31a787(0x117)](){const _0x431a60=_0x31a787;this[_0x431a60(0x14d)][_0x431a60(0x11a)](je);}},exports[_0x31a787(0x11c)]=we([G(0x0,u['ICommandService']),G(0x1,v['IMenuManagerService'])],exports[_0x31a787(0x11c)]);const Ae={'mcpStatus':{'disconnected':_0x31a787(0x167),'connecting':_0x31a787(0x198),'connected':_0x31a787(0x157),'failed':_0x31a787(0x126),'retrying':_0x31a787(0x26f),'unknown':_0x31a787(0x12a),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x31a787(0x245),'clickToConnect':_0x31a787(0x1fd),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x31a787(0x13d),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x31a787(0x1ab),'apiKeyHint':_0x31a787(0x1e5),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x31a787(0x175),'connectionInfo':_0x31a787(0x132),'mcpClientConfig':_0x31a787(0x132),'configInstructions':_0x31a787(0x19e),'configStepTitle':_0x31a787(0x271),'configStep1':_0x31a787(0x217),'configStep2':_0x31a787(0x194),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x31a787(0x247),'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':_0x31a787(0x246),'save':_0x31a787(0x1dc),'saving':_0x31a787(0xfa),'note1':_0x31a787(0x107),'note2':_0x31a787(0x22b),'configSaved':_0x31a787(0x19a),'configError':_0x31a787(0x1c4),'apiApplyInfo':{'title':_0x31a787(0x119),'description':_0x31a787(0x1f6),'univerAiLabel':_0x31a787(0x21b),'getStarted':_0x31a787(0x163)},'validation':{'apiKeyRequired':_0x31a787(0x1b1),'apiKeyTooShort':_0x31a787(0x10f),'invalidConfig':_0x31a787(0x1fa),'invalidApiKey':_0x31a787(0x234)},'connectionStatus':{'disconnected':_0x31a787(0x12c),'connecting':_0x31a787(0x14c),'connected':'Connected','failed':_0x31a787(0x1d5),'retrying':_0x31a787(0x235)},'connectionError':{'unauthorized':_0x31a787(0x26c),'sessionOccupied':_0x31a787(0x264),'networkError':_0x31a787(0x23f),'maxRetriesExceeded':_0x31a787(0x128)}}},Oe={'mcpStatus':{'disconnected':_0x31a787(0x199),'connecting':'MCP\x20连接中...','connected':_0x31a787(0x257),'failed':_0x31a787(0x269),'retrying':'MCP\x20重连中...','unknown':_0x31a787(0x1ec),'unauthorized':_0x31a787(0x11d),'sessionOccupied':_0x31a787(0x22e),'networkError':_0x31a787(0x21c),'maxRetriesExceeded':_0x31a787(0x18b),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x31a787(0x21a)},'mcpConfig':{'title':_0x31a787(0x22f),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x31a787(0x190),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x31a787(0x13f),'enableAuth':_0x31a787(0x1f5),'enableAuthHint':_0x31a787(0x17e),'connectionInfo':_0x31a787(0x12b),'mcpClientConfig':_0x31a787(0x12b),'configInstructions':_0x31a787(0x180),'configStepTitle':_0x31a787(0x14f),'configStep1':_0x31a787(0x13b),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x31a787(0x19d),'sessionId':_0x31a787(0x1b9),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x31a787(0x208),'configParameters':_0x31a787(0x23c),'maxRetries':_0x31a787(0x254),'save':_0x31a787(0x1d1),'saving':_0x31a787(0x162),'note1':_0x31a787(0x1a2),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x31a787(0x16a),'apiApplyInfo':{'title':_0x31a787(0x1c8),'description':_0x31a787(0x259),'univerAiLabel':_0x31a787(0x12f),'getStarted':_0x31a787(0x158)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x31a787(0x243),'invalidConfig':_0x31a787(0x14a),'invalidApiKey':_0x31a787(0x1db)},'connectionStatus':{'disconnected':'未连接','connecting':_0x31a787(0x147),'connected':_0x31a787(0x267),'failed':_0x31a787(0x1b8),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x31a787(0x1b0),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x31a787(0x10c),'maxRetriesExceeded':_0x31a787(0x160)}}},De=_0x31a787(0x1e6),Ue=_0x31a787(0xf9),J={'name':De,'version':Ue};var $e=Object[_0x31a787(0x10e)],Te=Object[_0x31a787(0x1c5)],ke=(_0x4dbbf0,_0x4672a2,_0x4ad68e)=>_0x4672a2 in _0x4dbbf0?$e(_0x4dbbf0,_0x4672a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ad68e}):_0x4dbbf0[_0x4672a2]=_0x4ad68e,Re=(_0x293635,_0x1f2de9,_0x8d4a9,_0x4081f5)=>{const _0x259b38=_0x31a787;for(var _0x46d3c5=_0x4081f5>0x1?void 0x0:_0x4081f5?Te(_0x1f2de9,_0x8d4a9):_0x1f2de9,_0xcff11f=_0x293635[_0x259b38(0x27a)]-0x1,_0x561539;_0xcff11f>=0x0;_0xcff11f--)(_0x561539=_0x293635[_0xcff11f])&&(_0x46d3c5=_0x561539(_0x46d3c5)||_0x46d3c5);return _0x46d3c5;},y=(_0x54f08b,_0x54c598)=>(_0x4d75de,_0x3b4354)=>_0x54c598(_0x4d75de,_0x3b4354,_0x54f08b),U=(_0x4ca790,_0x380a87,_0x635858)=>ke(_0x4ca790,typeof _0x380a87!=_0x31a787(0x218)?_0x380a87+'':_0x380a87,_0x635858);exports['UniverMCPUIPlugin']=class extends u[_0x31a787(0x196)]{constructor(_0x4fd2b1=z,_0x446029,_0x234cbf,_0x184a09,_0x2f5a8b,_0x230aba){const _0x3ca91c=_0x31a787;super(),this[_0x3ca91c(0x274)]=_0x4fd2b1,this[_0x3ca91c(0x168)]=_0x446029,this[_0x3ca91c(0x185)]=_0x234cbf,this[_0x3ca91c(0x1ea)]=_0x184a09,this['_localStorageService']=_0x2f5a8b,this[_0x3ca91c(0x140)]=_0x230aba;const {..._0x4614b6}=u[_0x3ca91c(0x18e)]({},z,this['_config']);this[_0x3ca91c(0x185)]['setConfig'](P,_0x4614b6);}async['onStarting'](){const _0x3247e7=_0x31a787,_0x298ba1=[[exports[_0x3247e7(0x12d)]],[exports[_0x3247e7(0x200)]],[exports[_0x3247e7(0x11c)]]];this['_injector']['has'](A[_0x3247e7(0x258)])||_0x298ba1['push']([A[_0x3247e7(0x258)],{'useClass':A[_0x3247e7(0x1cb)]}]),_0x298ba1['forEach'](_0x414402=>this['_injector'][_0x3247e7(0x268)](_0x414402)),this['_injector'][_0x3247e7(0x15e)](exports['MCPConnectionUIController']),this[_0x3247e7(0x168)]['get'](exports[_0x3247e7(0x200)]),this['_injector'][_0x3247e7(0x15e)](exports['MCPUIMenuController']);}},U(exports[_0x31a787(0x138)],_0x31a787(0x20b),'MCP_UI_PLUGIN'),U(exports[_0x31a787(0x138)],_0x31a787(0x183),J[_0x31a787(0x19b)]),U(exports[_0x31a787(0x138)],_0x31a787(0x241),J[_0x31a787(0x241)]),exports[_0x31a787(0x138)]=Re([u[_0x31a787(0x181)](s[_0x31a787(0x17a)]),y(0x1,u[_0x31a787(0xfb)](u['Injector'])),y(0x2,u[_0x31a787(0x154)]),y(0x3,v[_0x31a787(0x1bc)]),y(0x4,u[_0x31a787(0x146)]),y(0x5,u['Inject'](u['LocaleService']))],exports[_0x31a787(0x138)]),exports[_0x31a787(0x171)]=Z,exports[_0x31a787(0x23d)]=X,exports[_0x31a787(0x165)]=b,exports[_0x31a787(0x134)]=Ae,exports[_0x31a787(0x277)]=Oe;
|
|
1
|
+
const _0x3fc626=_0xab1b;(function(_0x2deef6,_0x5a0fbe){const _0x4f3fab=_0xab1b,_0x2d97d4=_0x2deef6();while(!![]){try{const _0xa573c8=-parseInt(_0x4f3fab(0x143))/0x1+parseInt(_0x4f3fab(0x198))/0x2*(parseInt(_0x4f3fab(0x17f))/0x3)+parseInt(_0x4f3fab(0x1ab))/0x4*(-parseInt(_0x4f3fab(0x142))/0x5)+-parseInt(_0x4f3fab(0x1fd))/0x6+parseInt(_0x4f3fab(0x134))/0x7*(parseInt(_0x4f3fab(0x23e))/0x8)+-parseInt(_0x4f3fab(0x1f2))/0x9*(-parseInt(_0x4f3fab(0x17d))/0xa)+parseInt(_0x4f3fab(0x15a))/0xb;if(_0xa573c8===_0x5a0fbe)break;else _0x2d97d4['push'](_0x2d97d4['shift']());}catch(_0x1af862){_0x2d97d4['push'](_0x2d97d4['shift']());}}}(_0x8cf7,0x1ca72),Object[_0x3fc626(0x1de)](exports,Symbol['toStringTag'],{'value':_0x3fc626(0x12d)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function l(_0x39c10f){const _0x4579bc=_0x3fc626;var _0x156d6a,_0x3b88fa;let {mcpCoreConfig:_0x15b682,onSave:_0x411a08,loading:_0xb3590e=!0x1,config:_0x2b0430,connectionStatus$:_0x218962,connectionError$:_0x368a14,currentApiKey$:_0x394c1d,currentSessionId$:_0x34beec}=_0x39c10f,_0x13df4c=(0x0,r[_0x4579bc(0x1ac)])(e[_0x4579bc(0x233)]),_0xdba016=(0x0,r[_0x4579bc(0x12c)])(_0x218962,t['MCPConnectionStatus'][_0x4579bc(0x176)]),_0x28e658=(0x0,r[_0x4579bc(0x12c)])(_0x368a14,t['MCPConnectionError'][_0x4579bc(0x1a9)]),_0x337d93=(0x0,r[_0x4579bc(0x12c)])(_0x34beec,''),[_0x560f51,_0x192a13]=(0x0,o[_0x4579bc(0x12b)])((0x0,r[_0x4579bc(0x12c)])(_0x394c1d,'')||''),_0x36c531=_0x2b0430['showDeveloperTools']&&_0x15b682['mcpServerUrl']&&(_0x15b682[_0x4579bc(0x14e)][_0x4579bc(0x1ce)](_0x4579bc(0x182))||_0x15b682[_0x4579bc(0x14e)][_0x4579bc(0x1ce)](_0x4579bc(0x230))),_0x4a658d=(_0x156d6a=_0x15b682[_0x4579bc(0x14e)])==null?void 0x0:_0x156d6a[_0x4579bc(0x1ce)]('univer.plus'),_0x9a09bd=(_0x3b88fa=_0x15b682[_0x4579bc(0x14e)])==null?void 0x0:_0x3b88fa['includes'](_0x4579bc(0x230)),_0x12cd72=_0x4a658d?_0x4579bc(0x1b4):_0x4579bc(0x16d),_0x4422ec=_0x2b0430['showDeveloperTools']&&(_0x4a658d||_0x9a09bd),[_0x265b77,_0x2e1717]=(0x0,o[_0x4579bc(0x12b)])(!_0x560f51['trim']()),_0x9aba41=(_0x33548a,_0x5a3a02)=>{const _0x353421=_0x4579bc;if(_0x5a3a02===t[_0x353421(0x215)][_0x353421(0x18a)])return _0x353421(0x18f);switch(_0x33548a){case t[_0x353421(0x1fb)][_0x353421(0x13f)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case t[_0x353421(0x1fb)][_0x353421(0x1c9)]:case t[_0x353421(0x1fb)]['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case t[_0x353421(0x1fb)][_0x353421(0x24f)]:return _0x353421(0x18f);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3e13ca=(_0x52ce78,_0x51f048)=>{const _0x5685e2=_0x4579bc;if(_0x51f048===t['MCPConnectionError']['UNAUTHORIZED'])return _0x5685e2(0x1ef);switch(_0x52ce78){case t['MCPConnectionStatus'][_0x5685e2(0x13f)]:return _0x5685e2(0x173);case t['MCPConnectionStatus']['CONNECTING']:case t['MCPConnectionStatus'][_0x5685e2(0x1bc)]:return _0x5685e2(0x125);case t[_0x5685e2(0x1fb)][_0x5685e2(0x24f)]:return _0x5685e2(0x1ef);default:return'univer-bg-gray-500';}},_0x1c866d=_0x3bc8f9=>{const _0x23e2f2=_0x4579bc;switch(_0x3bc8f9){case t['MCPConnectionStatus'][_0x23e2f2(0x13f)]:return _0x13df4c['t'](_0x23e2f2(0x190));case t[_0x23e2f2(0x1fb)][_0x23e2f2(0x1c9)]:return _0x13df4c['t'](_0x23e2f2(0x253));case t[_0x23e2f2(0x1fb)][_0x23e2f2(0x24f)]:return _0x13df4c['t'](_0x23e2f2(0x212));case t['MCPConnectionStatus']['RETRYING']:return _0x13df4c['t'](_0x23e2f2(0x1b5));default:return _0x13df4c['t'](_0x23e2f2(0x19c));}},_0x4784a4=_0x3bd013=>{const _0x5ba277=_0x4579bc;switch(_0x3bd013){case t[_0x5ba277(0x215)][_0x5ba277(0x18a)]:return _0x13df4c['t'](_0x5ba277(0x20a));case t['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x13df4c['t']('mcpConfig.connectionError.sessionOccupied');case t[_0x5ba277(0x215)][_0x5ba277(0x208)]:return _0x13df4c['t']('mcpConfig.connectionError.networkError');case t['MCPConnectionError'][_0x5ba277(0x1ca)]:return _0x13df4c['t'](_0x5ba277(0x11c));default:return'';}},_0xa8f8a1=(0x0,o[_0x4579bc(0x148)])(()=>{const _0x265293=_0x4579bc;_0x411a08({..._0x15b682,'apiKey':_0x560f51[_0x265293(0x213)](),'enableAuth':!0x0});},[_0x15b682,_0x560f51,!0x0,_0x411a08]),_0x49c906=_0x560f51['trim']()[_0x4579bc(0x1f5)]>0x0;return(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a4),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x121),'children':(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x1dd),'children':'⚙'})}),(0x0,s['jsx'])(_0x4579bc(0x11b),{'children':(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x234),'children':_0x13df4c['t'](_0x4579bc(0x1ed))})})]})}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x210),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':(0x0,n[_0x4579bc(0x183)])(_0x4579bc(0x1f0),_0x9aba41(_0xdba016,_0x28e658)),'children':(0x0,s['jsxs'])('div',{'className':_0x4579bc(0x153),'children':[(0x0,s['jsx'])(_0x4579bc(0x11b),{'className':(0x0,n[_0x4579bc(0x183)])(_0x4579bc(0x1bf),_0x3e13ca(_0xdba016,_0x28e658))}),(0x0,s['jsx'])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x250),'children':_0x1c866d(_0xdba016)})]})}),_0x28e658!==t['MCPConnectionError']['NONE']&&(_0xdba016===t[_0x4579bc(0x1fb)][_0x4579bc(0x24f)]||_0x28e658===t[_0x4579bc(0x215)]['UNAUTHORIZED'])&&(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':(0x0,s[_0x4579bc(0x119)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x188),'children':'⚠️'}),(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x209),'children':_0x4784a4(_0x28e658)})]})})]}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x221),'children':(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x23a),'children':[(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a2),'children':[(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x1e1),{'className':_0x4579bc(0x15d),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'children':'🔑'}),'\x20',_0x13df4c['t'](_0x4579bc(0x13c)),(0x0,s['jsx'])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x207),'children':'*'}),_0x36c531&&(0x0,s[_0x4579bc(0x126)])('a',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-blue-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','title':_0x13df4c['t']('mcpConfig.apiApplyInfo.title'),'role':_0x4579bc(0x1bb),'onClick':()=>_0x2e1717(!0x0),'children':(0x0,s[_0x4579bc(0x126)])(a['HelpIcon'],{})})]}),(0x0,s[_0x4579bc(0x126)])(n['Input'],{'type':'text','placeholder':_0x13df4c['t'](_0x4579bc(0x133)),'value':_0x560f51,'disabled':_0xb3590e,'autoComplete':_0x4579bc(0x1af),'onChange':_0x192a13}),(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x20c),'children':_0x13df4c['t']('mcpConfig.apiKeyHint')})]}),_0x36c531&&_0x265b77&&(0x0,s[_0x4579bc(0x119)])('div',{'className':_0x4579bc(0x1e7),'children':[(0x0,s[_0x4579bc(0x126)])('a',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','role':_0x4579bc(0x1bb),'onClick':()=>_0x2e1717(!0x1),'children':(0x0,s['jsx'])(a[_0x4579bc(0x11d)],{'className':_0x4579bc(0x1c0)})}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x24b),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1da),'children':(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x245),'children':'🚀'})}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':'univer-flex-1','children':[(0x0,s[_0x4579bc(0x126)])('h4',{'className':_0x4579bc(0x1c5),'children':_0x13df4c['t'](_0x4579bc(0x1d4))}),(0x0,s[_0x4579bc(0x126)])('p',{'className':_0x4579bc(0x251),'children':_0x13df4c['t'](_0x4579bc(0x18d))}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x145),'children':_0x4422ec&&(0x0,s['jsxs'])('a',{'className':_0x4579bc(0x1f7),'href':_0x12cd72,'target':_0x4579bc(0x15f),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])('span',{'children':'🤖'}),_0x13df4c['t'](_0x4579bc(0x109)),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,s['jsxs'])('div',{'className':_0x4579bc(0x1e0),'children':['✨','\x20',_0x13df4c['t'](_0x4579bc(0x1fc))]})]})]})]}),_0x2b0430[_0x4579bc(0x118)]&&(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[(0x0,s['jsxs'])('h4',{'className':_0x4579bc(0x114),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'children':'🔗'}),'\x20',_0x13df4c['t'](_0x4579bc(0x21b))]}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x246),'children':[(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1f3),'children':[(0x0,s[_0x4579bc(0x126)])('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x13df4c['t'](_0x4579bc(0x1ea))}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a2),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1ee),'children':_0x13df4c['t'](_0x4579bc(0x108))}),(0x0,s[_0x4579bc(0x119)])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x153),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x200),'children':'1'}),_0x13df4c['t'](_0x4579bc(0x1f6))]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x153),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x200),'children':'2'}),_0x13df4c['t'](_0x4579bc(0x168))]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x200),'children':'3'}),_0x13df4c['t'](_0x4579bc(0x243))]})]})]})]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':'univer-space-y-2','children':[(0x0,s[_0x4579bc(0x126)])('div',{'className':_0x4579bc(0x1ee),'children':'MCP\x20Configuration'}),(0x0,s['jsx'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1f9),'children':(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x16e),{'className':_0x4579bc(0x115),'children':JSON[_0x4579bc(0x232)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x337d93||_0x4579bc(0x178)),'type':_0x4579bc(0x231),'headers':{'Authorization':_0x4579bc(0x159)+(_0x560f51||'<API_KEY>')}}}},null,0x2)})})]}),(0x0,s['jsxs'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1f3),'children':[(0x0,s[_0x4579bc(0x126)])('div',{'className':_0x4579bc(0x1ee),'children':_0x13df4c['t'](_0x4579bc(0x14c))}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1a2),'children':[(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1b1)}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x10b),'children':[(0x0,s['jsx'])('div',{'className':_0x4579bc(0x136),'children':_0x4579bc(0x252)}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x20c),'children':_0x13df4c['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x248),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),(0x0,s[_0x4579bc(0x119)])('div',{'className':_0x4579bc(0x10b),'children':[(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x136),'children':_0x4579bc(0x1b3)}),(0x0,s['jsx'])(_0x4579bc(0x11b),{'className':_0x4579bc(0x20c),'children':_0x13df4c['t'](_0x4579bc(0x199))})]})]})]})]})]})]}),(0x0,s[_0x4579bc(0x126)])(n['Button'],{'onClick':_0xa8f8a1,'disabled':!_0x49c906||_0xb3590e,'className':_0x4579bc(0x24d),'children':_0xb3590e?(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x1d2),{'className':_0x4579bc(0x153),'children':[(0x0,s[_0x4579bc(0x126)])('span',{'children':'⟲'}),_0x13df4c['t'](_0x4579bc(0x137))]}):(0x0,s['jsxs'])(_0x4579bc(0x1d2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x4579bc(0x126)])(a[_0x4579bc(0x1d7)],{}),_0x13df4c['t']('mcpConfig.save')]})}),(0x0,s[_0x4579bc(0x126)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x17a),'children':(0x0,s[_0x4579bc(0x119)])('div',{'className':'univer-flex\x20univer-gap-3','children':[(0x0,s['jsx'])('span',{'className':_0x4579bc(0x20b),'children':'💡'}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'className':_0x4579bc(0x1e2),'children':[(0x0,s[_0x4579bc(0x126)])('div',{'className':_0x4579bc(0x239),'children':_0x4579bc(0x127)}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'children':['•',_0x13df4c['t'](_0x4579bc(0x259))]}),(0x0,s[_0x4579bc(0x119)])(_0x4579bc(0x11b),{'children':['•',_0x13df4c['t'](_0x4579bc(0x13b))]})]})]})})]})})]});}const u=_0x3fc626(0x1fa);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x55e5ef){'@babel/helpers - typeof';const _0x13f8d3=_0x3fc626;return f=typeof Symbol==_0x13f8d3(0x1a1)&&typeof Symbol[_0x13f8d3(0x21a)]==_0x13f8d3(0x255)?function(_0x4f8e97){return typeof _0x4f8e97;}:function(_0x55cd26){const _0x2f49de=_0x13f8d3;return _0x55cd26&&typeof Symbol==_0x2f49de(0x1a1)&&_0x55cd26[_0x2f49de(0x10c)]===Symbol&&_0x55cd26!==Symbol['prototype']?_0x2f49de(0x255):typeof _0x55cd26;},f(_0x55e5ef);}function p(_0x1f1eb2,_0x7f0aa8){const _0x3fd5ca=_0x3fc626;if(f(_0x1f1eb2)!='object'||!_0x1f1eb2)return _0x1f1eb2;var _0x40e65d=_0x1f1eb2[Symbol[_0x3fd5ca(0x154)]];if(_0x40e65d!==void 0x0){var _0x336fdf=_0x40e65d['call'](_0x1f1eb2,_0x7f0aa8||_0x3fd5ca(0x1a8));if(f(_0x336fdf)!=_0x3fd5ca(0x1e4))return _0x336fdf;throw TypeError(_0x3fd5ca(0x1d9));}return(_0x7f0aa8===_0x3fd5ca(0x13e)?String:Number)(_0x1f1eb2);}function m(_0x338130){const _0x30cc14=_0x3fc626;var _0x234ce7=p(_0x338130,_0x30cc14(0x13e));return f(_0x234ce7)==_0x30cc14(0x255)?_0x234ce7:_0x234ce7+'';}function h(_0x2348c7,_0x5f2cd1,_0x57276d){const _0x204c2c=_0x3fc626;return(_0x5f2cd1=m(_0x5f2cd1))in _0x2348c7?Object[_0x204c2c(0x1de)](_0x2348c7,_0x5f2cd1,{'value':_0x57276d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2348c7[_0x5f2cd1]=_0x57276d,_0x2348c7;}function g(_0x5da7e8,_0x563e46){return function(_0x18ed01,_0x53d1d7){_0x563e46(_0x18ed01,_0x53d1d7,_0x5da7e8);};}function _(_0x380827,_0x51fba6,_0x4db142,_0x5349dd){const _0xd863cb=_0x3fc626;var _0x54d656=arguments[_0xd863cb(0x1f5)],_0x295b4c=_0x54d656<0x3?_0x51fba6:_0x5349dd===null?_0x5349dd=Object[_0xd863cb(0x1d5)](_0x51fba6,_0x4db142):_0x5349dd,_0xc01eca;if(typeof Reflect==_0xd863cb(0x1e4)&&typeof Reflect[_0xd863cb(0x244)]=='function')_0x295b4c=Reflect[_0xd863cb(0x244)](_0x380827,_0x51fba6,_0x4db142,_0x5349dd);else{for(var _0xfc6b81=_0x380827[_0xd863cb(0x1f5)]-0x1;_0xfc6b81>=0x0;_0xfc6b81--)(_0xc01eca=_0x380827[_0xfc6b81])&&(_0x295b4c=(_0x54d656<0x3?_0xc01eca(_0x295b4c):_0x54d656>0x3?_0xc01eca(_0x51fba6,_0x4db142,_0x295b4c):_0xc01eca(_0x51fba6,_0x4db142))||_0x295b4c);}return _0x54d656>0x3&&_0x295b4c&&Object[_0xd863cb(0x1de)](_0x51fba6,_0x4db142,_0x295b4c),_0x295b4c;}const v=_0x3fc626(0x1df),y=_0x3fc626(0x238);let b=class extends e[_0x3fc626(0x1ec)]{constructor(_0x6cf0e0,_0x5c3c14,_0x1ec1a3,_0x2dd3b0,_0x1998b6,_0x2f97db,_0x33c496,_0x564249,_0x2752fc,_0x5af721){const _0x229766=_0x3fc626;super(),this['_injector']=_0x6cf0e0,this[_0x229766(0x218)]=_0x5c3c14,this[_0x229766(0x17c)]=_0x1ec1a3,this['_localStorageService']=_0x2dd3b0,this['_dialogService']=_0x1998b6,this[_0x229766(0x179)]=_0x2f97db,this[_0x229766(0x113)]=_0x33c496,this[_0x229766(0x1cc)]=_0x564249,this[_0x229766(0x202)]=_0x2752fc,this[_0x229766(0x1a0)]=_0x5af721,h(this,_0x229766(0x12a),new i[(_0x229766(0x224))](!0x1)),h(this,_0x229766(0x204),new i[(_0x229766(0x224))]({})),h(this,_0x229766(0x174),new i[(_0x229766(0x224))]({})),h(this,_0x229766(0x177),new i[(_0x229766(0x224))]('')),h(this,_0x229766(0x1e9),async _0x2792c8=>{const _0x204a76=_0x229766;this[_0x204a76(0x12a)]['next'](!0x0);try{var _0x16c495,_0x5d4d45;let _0x2b7eb9=await this['_validateConfig'](_0x2792c8);if(!_0x2b7eb9[_0x204a76(0x147)]){this[_0x204a76(0x179)][_0x204a76(0x107)]({'type':n['MessageType'][_0x204a76(0x1d0)],'content':_0x2b7eb9[_0x204a76(0x1d1)]||this[_0x204a76(0x1cc)]['t'](_0x204a76(0x19d))});return;}_0x2792c8[_0x204a76(0x219)]?await this[_0x204a76(0x158)][_0x204a76(0x1b7)](v,_0x2792c8[_0x204a76(0x219)][_0x204a76(0x213)]()):await this['_localStorageService'][_0x204a76(0x1ad)](v),this[_0x204a76(0x177)][_0x204a76(0x192)](((_0x16c495=_0x2792c8[_0x204a76(0x219)])==null?void 0x0:_0x16c495[_0x204a76(0x213)]())||''),this[_0x204a76(0x1a0)][_0x204a76(0x20f)]({'Authorization':_0x204a76(0x159)+((_0x5d4d45=_0x2792c8[_0x204a76(0x219)])==null?void 0x0:_0x5d4d45['trim']())}),this[_0x204a76(0x179)][_0x204a76(0x107)]({'type':n['MessageType'][_0x204a76(0x1f8)],'content':this[_0x204a76(0x1cc)]['t'](_0x204a76(0x1db))}),setTimeout(()=>{const _0x172940=_0x204a76;this[_0x172940(0x1f1)]['close'](y);},0x320);}catch(_0x20c3f1){this[_0x204a76(0x202)][_0x204a76(0x254)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x20c3f1),this['_messageService']['show']({'type':n['MessageType'][_0x204a76(0x1d0)],'content':this[_0x204a76(0x1cc)]['t']('mcpConfig.configError')});}finally{this[_0x204a76(0x12a)][_0x204a76(0x192)](!0x1);}}),this['_initConfigSync'](),this[_0x229766(0x106)](),this['_registerComponent']();}[_0x3fc626(0x257)](){const _0x33adaf=_0x3fc626;let _0x1fe038=this[_0x33adaf(0x17c)][_0x33adaf(0x105)](u);_0x1fe038!=null&&_0x1fe038['showDeveloperTools']&&this['_dialogService'][_0x33adaf(0x160)]({'id':y,'title':{'title':this[_0x33adaf(0x1cc)]['t'](_0x33adaf(0x1b8))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](y);}});}[_0x3fc626(0x156)](){const _0x41859f=_0x3fc626;return this[_0x41859f(0x204)][_0x41859f(0x15c)];}[_0x3fc626(0x1e3)](){const _0x54fda5=_0x3fc626;this[_0x54fda5(0x1c1)](this[_0x54fda5(0x113)][_0x54fda5(0x1e8)](_0x54fda5(0x1a3),this[_0x54fda5(0x15b)]()));}[_0x3fc626(0x15b)](){const _0x1c3efa=_0x3fc626;return(0x0,r[_0x1c3efa(0x19b)])(()=>{const _0x371ae6=_0x1c3efa;var _0x129d21,_0x7507c2,_0x1d8327;return(0x0,s['jsx'])(l,{'config':this[_0x371ae6(0x174)][_0x371ae6(0x15c)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x371ae6(0x15c)],'currentApiKey$':this[_0x371ae6(0x177)],'onSave':this[_0x371ae6(0x1e9)],'loading':this[_0x371ae6(0x12a)][_0x371ae6(0x15c)],'connectionStatus$':(_0x129d21=this[_0x371ae6(0x1a0)])==null?void 0x0:_0x129d21[_0x371ae6(0x11f)],'connectionError$':(_0x7507c2=this[_0x371ae6(0x1a0)])==null?void 0x0:_0x7507c2['connectionError$'],'currentSessionId$':(_0x1d8327=this[_0x371ae6(0x1a0)])==null?void 0x0:_0x1d8327[_0x371ae6(0x14b)]});},this['_injector']);}[_0x3fc626(0x227)](){const _0x2b4b93=_0x3fc626;this['disposeWithMe'](this[_0x2b4b93(0x17c)]['subscribeConfigValue$'](t[_0x2b4b93(0x1eb)])[_0x2b4b93(0x23b)](_0x475b02=>{const _0xc84553=_0x2b4b93;this[_0xc84553(0x204)][_0xc84553(0x192)](_0x475b02||{});}));let _0x43797d=this[_0x2b4b93(0x17c)][_0x2b4b93(0x105)](t[_0x2b4b93(0x1eb)]);this['_mcpCoreConfig$']['next'](_0x43797d||{}),this[_0x2b4b93(0x1c1)](this[_0x2b4b93(0x17c)][_0x2b4b93(0x170)](u)[_0x2b4b93(0x23b)](_0x1c6e40=>{const _0x512aa7=_0x2b4b93;this[_0x512aa7(0x174)][_0x512aa7(0x192)](_0x1c6e40||{});}));let _0x5f37bf=this[_0x2b4b93(0x17c)][_0x2b4b93(0x105)](u);this[_0x2b4b93(0x174)][_0x2b4b93(0x192)](_0x5f37bf||{});}async['_loadStoredApiKey'](){const _0x28f15f=_0x3fc626;let _0x124a9c=this['_configService'][_0x28f15f(0x105)](u);if(!(_0x124a9c!=null&&_0x124a9c[_0x28f15f(0x118)]))return;let _0x5cd5b7=await this[_0x28f15f(0x158)][_0x28f15f(0x167)](v);_0x5cd5b7&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x28f15f(0x159)+_0x5cd5b7}),this[_0x28f15f(0x177)]['next'](_0x5cd5b7));}async['_validateConfig'](_0xa440e6){const _0x35cd4e=_0x3fc626;if(!_0xa440e6[_0x35cd4e(0x219)]||_0xa440e6['apiKey'][_0x35cd4e(0x213)]()[_0x35cd4e(0x1f5)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x35cd4e(0x1cc)]['t'](_0x35cd4e(0x151))};if(_0xa440e6[_0x35cd4e(0x219)]['trim']()[_0x35cd4e(0x1f5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x35cd4e(0x1cc)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x521929=await this[_0x35cd4e(0x1cd)][_0x35cd4e(0x144)](t[_0x35cd4e(0x18c)])[_0x35cd4e(0x1a7)](_0xa440e6['apiKey'][_0x35cd4e(0x213)]());return _0x521929[_0x35cd4e(0x147)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x521929[_0x35cd4e(0x254)]||this[_0x35cd4e(0x1cc)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x5a4840){return console[_0x35cd4e(0x1ae)](_0x35cd4e(0x11e),_0x5a4840),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x3fc626(0x196)])(e[_0x3fc626(0x117)])),g(0x1,r[_0x3fc626(0x19a)]),g(0x2,e[_0x3fc626(0x138)]),g(0x3,e[_0x3fc626(0x1c3)]),g(0x4,r[_0x3fc626(0x116)]),g(0x5,r[_0x3fc626(0x241)]),g(0x6,(0x0,e['Inject'])(r[_0x3fc626(0x1f4)])),g(0x7,(0x0,e['Inject'])(e[_0x3fc626(0x233)])),g(0x8,e['ILogService']),g(0x9,(0x0,e[_0x3fc626(0x196)])(t[_0x3fc626(0x18c)]))],b);const x={'id':'mcp-ui.command.openConfigPanel','type':e[_0x3fc626(0x1c8)]['COMMAND'],'handler':async(_0x5cf28a,_0x779f29)=>(_0x5cf28a[_0x3fc626(0x144)](b)['showConfigPanel'](),!0x0)};function S(_0x360618,_0x26ef40){const _0x58c38a=_0x3fc626;switch(_0x360618){case t[_0x58c38a(0x1fb)]['DISCONNECTED']:return'mcpStatus.disconnected';case t[_0x58c38a(0x1fb)][_0x58c38a(0x1c9)]:return _0x58c38a(0x10d);case t[_0x58c38a(0x1fb)][_0x58c38a(0x13f)]:return _0x58c38a(0x249);case t[_0x58c38a(0x1fb)]['FAILED']:switch(_0x26ef40){case t[_0x58c38a(0x215)][_0x58c38a(0x18a)]:return _0x58c38a(0x22f);case t[_0x58c38a(0x215)][_0x58c38a(0x13d)]:return _0x58c38a(0x128);case t['MCPConnectionError']['NETWORK_ERROR']:return _0x58c38a(0x152);case t['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x58c38a(0x164);default:return'mcpStatus.failed';}case t[_0x58c38a(0x1fb)][_0x58c38a(0x1bc)]:return _0x58c38a(0x19e);default:return'mcpStatus.unknown';}}function C(_0x50ea07,_0x178c54,_0x5d32d4,_0x24fd36=!0x0){const _0x18beec=_0x3fc626;let _0x16ae1c=S(_0x50ea07,_0x178c54),_0x65e317=_0x5d32d4['t'](_0x16ae1c);return _0x24fd36?_0x50ea07===t[_0x18beec(0x1fb)][_0x18beec(0x176)]&&_0x178c54===t[_0x18beec(0x215)][_0x18beec(0x18a)]?_0x65e317+'\x20-\x20'+_0x5d32d4['t']('mcpStatus.clickToConfigure'):_0x50ea07===t[_0x18beec(0x1fb)][_0x18beec(0x13f)]?''+_0x65e317:_0x50ea07===t[_0x18beec(0x1fb)]['DISCONNECTED']||_0x50ea07===t[_0x18beec(0x1fb)][_0x18beec(0x24f)]?_0x65e317+_0x18beec(0x18e)+_0x5d32d4['t'](_0x18beec(0x237)):_0x65e317:_0x65e317;}function _0xab1b(_0x44bd99,_0x1f8cce){_0x44bd99=_0x44bd99-0x104;const _0x8cf79c=_0x8cf7();let _0xab1b8c=_0x8cf79c[_0x44bd99];return _0xab1b8c;}function w(_0x309788){const _0x37035a=_0x3fc626;switch(_0x309788){case t[_0x37035a(0x1fb)][_0x37035a(0x13f)]:return _0x37035a(0x150);case t['MCPConnectionStatus']['CONNECTING']:case t['MCPConnectionStatus']['RETRYING']:return _0x37035a(0x24c);case t['MCPConnectionStatus'][_0x37035a(0x24f)]:case t[_0x37035a(0x1fb)][_0x37035a(0x176)]:return _0x37035a(0x207);default:return'univer-text-gray-500';}}function _0x8cf7(){const _0x4c95b3=['univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_registerComponent','object','push','onStarting','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','_handleConfigSave','mcpConfig.configInstructions','MCP_PLUGIN_CONFIG_KEY','Disposable','mcpConfig.description','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-bg-red-500','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_dialogService','2169ZALrpd','univer-space-y-3','ComponentManager','length','mcpConfig.configStep1','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Success','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcp-ui.config','MCPConnectionStatus','mcpConfig.apiApplyInfo.getStarted','517320baGBQi','univer-flex\x20univer-items-center','保存配置','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-4\x20univer-items-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP:\x20超出最大重试次数','_logService','MCP\x20Retrying...','_mcpCoreConfig$','配置步骤:','MCP\x20已连接','univer-text-red-500','NETWORK_ERROR','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.connectionError.unauthorized','univer-shrink-0\x20univer-text-blue-500','univer-text-xs\x20univer-text-gray-500','最大重试次数','几秒钟内获取您的\x20API\x20密钥','__setCustomHeaders','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.connectionStatus.failed','trim','MCP:\x20网络错误','MCPConnectionError','version','Enter\x20your\x20API\x20key','_uiPartsService','apiKey','iterator','mcpConfig.connectionInfo','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','MCP:\x20会话\x20ID\x20已被占用','Tooltip','What\x20is\x20API\x20Key?','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','已连接','您的\x20API\x20密钥安全存储在本地存储中','BehaviorSubject','MCP\x20状态未知','_initAutoConnect','_initConfigSync','Configuration\x20Steps:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','MCP\x20Client\x20Configuration','配置参数:','UniverMCPUIPlugin','IMenuManagerService','mcpStatus.unauthorized','univer.ai','http','stringify','LocaleService','univer-text-sm\x20univer-text-gray-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','registerComponent','mcpStatus.clickToConnect','mcp-config-dialog','univer-font-medium','univer-space-y-5','subscribe','_menuManagerService','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','163448OdUeSf','API\x20密钥长度至少需要\x2010\x20位','registerCommand','IMessageService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.configStep3','decorate','univer-text-blue-600','univer-space-y-4','API\x20Key','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.connected','OnLineIcon','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-text-yellow-500','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','BUTTON','FAILED','univer-text-sm\x20univer-font-medium','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer_session_id:','mcpConfig.connectionStatus.connecting','error','symbol','启用身份验证','showConfigPanel','API\x20密钥无效,请检查密钥是否正确','mcpConfig.note1','超出最大重试次数,请稍后再试','Click\x20to\x20configure\x20MCP','getConfig','_loadStoredApiKey','show','mcpConfig.configStepTitle','mcpConfig.apiApplyInfo.univerAiLabel','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-min-w-0\x20univer-flex-1','constructor','mcpStatus.connecting','DependentOn','点击连接\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','showStatus','将配置添加到您的\x20MCP\x20客户端设置文件中','_componentManager','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-font-semibold\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','IDialogService','Injector','showDeveloperTools','jsxs','add','div','mcpConfig.connectionError.maxRetriesExceeded','CloseIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','connectionStatus$','Invalid\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Plugin','MCP\x20已断开','packageName','univer-bg-blue-500','jsx','Configuration\x20Notes:','mcpStatus.sessionOccupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_loading$','useState','useObservable','Module','请输入您的\x20API\x20密钥','MCP\x20连接失败','API\x20密钥','MCP\x20重连中...','MCPConnectionUIController','mcpConfig.apiKeyPlaceholder','21svVGJN','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.saving','IConfigService','复制以下\x20JSON\x20配置','@univerjs-pro/mcp-ui','mcpConfig.note2','mcpConfig.apiKey','SESSION_ID_OCCUPIED','string','CONNECTED','UniverMCPPlugin','_config','4315mxpFdH','175984GspICJ','get','univer-flex\x20univer-flex-wrap\x20univer-gap-2','连接失败','isValid','useCallback','_initializeCommands','MCP\x20Unknown\x20Status','sessionId$','mcpConfig.configParameters','启用身份验证以获得安全连接','mcpServerUrl','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-text-green-500','mcpConfig.validation.apiKeyRequired','mcpStatus.networkError','univer-flex\x20univer-items-center\x20univer-gap-2','toPrimitive','HEADER_MENU','getCurrentConfig','MCP\x20Disconnected','_localStorageService','Bearer\x20','1221572OLfLyp','_createConfigPanelComponent','value','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','配置保存成功','_blank','open','enUS','配置无效','Failed\x20to\x20save\x20configuration','mcpStatus.maxRetriesExceeded','MCP\x20Connected','配置保存失败','getItem','mcpConfig.configStep2','配置\x20MCP\x20使用\x20AI\x20操作电子表格','zhCN','点击配置\x20MCP','MCPUIMenuController','https://console.univer.ai','pre','连接中...','subscribeConfigValue$','Configuration\x20saved\x20successfully','Univer\x20AI\x20控制台','univer-bg-green-500','_config$','Click\x20to\x20connect\x20MCP','DISCONNECTED','_apiKey$','<SESSION_ID>','_messageService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Connected','_configService','5370QcvYWu','将以下配置添加到您的\x20MCP\x20客户端设置中:','33vZxDjx','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer.plus','clsx','Disconnected','_initStatusComponent','MenuItemType','OpenMCPConfigPanelCommand','univer-shrink-0\x20univer-text-red-500','Univer\x20AI\x20Console','UNAUTHORIZED','ISocketService','MCPConnectionController','mcpConfig.apiApplyInfo.description','\x20-\x20','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.connectionStatus.connected','merge','next','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','MCP\x20连接中...','Inject','未连接','42076rylkfl','mcpConfig.authorizationDescription','IUIPartsService','connectInjector','mcpConfig.connectionStatus.disconnected','mcpConfig.validation.invalidConfig','mcpStatus.retrying','Copy\x20the\x20JSON\x20configuration\x20below','_mcpConnectionController','function','univer-space-y-2','MCPConfigPanel','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','RibbonStartGroup','Session\x20ID','validateApiKey','default','NONE','MCP:\x20Network\x20Error','712NVgwDD','useDependency','removeItem','warn','off','带有\x20Bearer\x20前缀的\x20API\x20密钥。','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_connectionController','Authorization:','https://console.univer.plus','mcpConfig.connectionStatus.retrying','_handleConfigure','setItem','mcpConfig.title','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','重启您的\x20MCP\x20客户端以使配置生效','button','RETRYING','pluginName','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-size-2\x20univer-rounded-full','univer-size-4','disposeWithMe','Connection\x20Failed','ILocalStorageService','MCPConfigUIController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Configuration\x20Parameters:','什么是\x20API\x20密钥?','CommandType','CONNECTING','MAX_RETRIES_EXCEEDED','API\x20key\x20with\x20Bearer\x20prefix.','_localeService','_injector','includes','MCP\x20客户端配置','Error','errorMessage','span','_initializeMenus','mcpConfig.apiApplyInfo.title','getOwnPropertyDescriptor','MCP:\x20Unauthorized','CheckMarkIcon','_commandService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.configSaved','MCP:\x20Max\x20Retries\x20Exceeded','univer-text-white','defineProperty','mcp.apiKey','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','label'];_0x8cf7=function(){return _0x4c95b3;};return _0x8cf7();}function T(_0x323b53){const _0x4dcf09=_0x3fc626;let {status$:_0x19acc9,error$:_0x3a180e,onConfigure:_0x210e71,showClickable:_0x55b76d=!0x0}=_0x323b53,_0x11176f=(0x0,r[_0x4dcf09(0x12c)])(_0x19acc9,t[_0x4dcf09(0x1fb)][_0x4dcf09(0x176)]),_0x43dd94=(0x0,r[_0x4dcf09(0x12c)])(_0x3a180e,t[_0x4dcf09(0x215)][_0x4dcf09(0x1a9)]),_0x160153=(0x0,r[_0x4dcf09(0x1ac)])(e[_0x4dcf09(0x233)]),_0x496e45=_0x11176f===t[_0x4dcf09(0x1fb)][_0x4dcf09(0x13f)];_0x11176f===t['MCPConnectionStatus']['CONNECTING']||t[_0x4dcf09(0x1fb)][_0x4dcf09(0x1bc)];let _0x599a90=_0x160153['t'](S(_0x11176f,_0x43dd94)),_0x276470=C(_0x11176f,_0x43dd94,_0x160153,_0x55b76d),_0x39b859=w(_0x11176f),_0x157edf=_0x496e45?(0x0,s[_0x4dcf09(0x126)])(a[_0x4dcf09(0x24a)],{}):(0x0,s[_0x4dcf09(0x126)])(a['OffLineIcon'],{}),_0x574e2f=(0x0,o[_0x4dcf09(0x148)])(()=>{_0x55b76d&&_0x210e71&&_0x210e71();},[_0x55b76d,_0x210e71]);function _0x3ff473(){const _0x42f889=_0x4dcf09;return(0x0,s['jsxs'])(_0x42f889(0x11b),{'className':(0x0,n[_0x42f889(0x183)])(_0x42f889(0x1fe),_0x55b76d&&_0x210e71&&_0x42f889(0x194)),'role':_0x42f889(0x1bb),'onClick':_0x55b76d&&_0x210e71?_0x574e2f:void 0x0,'children':[(0x0,s[_0x42f889(0x126)])(_0x42f889(0x11b),{'className':(0x0,n[_0x42f889(0x183)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x39b859),'children':_0x157edf}),(0x0,s[_0x42f889(0x126)])('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x599a90})]});}return(0x0,s['jsx'])(n[_0x4dcf09(0x21f)],{'title':_0x276470,'placement':'bottom','children':_0x3ff473()});}let E=class extends e[_0x3fc626(0x1ec)]{constructor(_0x2af11b,_0x45bfda,_0xbfcc7a,_0x4420c6){const _0x55897e=_0x3fc626;super(),this[_0x55897e(0x1cd)]=_0x2af11b,this[_0x55897e(0x1b2)]=_0x45bfda,this[_0x55897e(0x218)]=_0xbfcc7a,this[_0x55897e(0x17c)]=_0x4420c6,this[_0x55897e(0x226)](),this[_0x55897e(0x185)]();}['_initAutoConnect'](){const _0x3ec28d=_0x3fc626;let _0x124b3f=this[_0x3ec28d(0x17c)]['getConfig'](u);_0x124b3f!=null&&_0x124b3f[_0x3ec28d(0x118)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x3fc626(0x185)](){const _0x3b4304=_0x3fc626;let _0x1f3910=this['_configService'][_0x3b4304(0x105)](u);(_0x1f3910==null?void 0x0:_0x1f3910[_0x3b4304(0x111)])!==!0x1&&this[_0x3b4304(0x1c1)](this['_uiPartsService'][_0x3b4304(0x236)](r['BuiltInUIPart'][_0x3b4304(0x155)],()=>{const _0x5d7040=_0x3b4304;var _0x3b3839;return(0x0,r['connectInjector'])(D({'status$':this[_0x5d7040(0x1b2)][_0x5d7040(0x11f)],'error$':this[_0x5d7040(0x1b2)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3b3839=_0x1f3910==null?void 0x0:_0x1f3910[_0x5d7040(0x118)])==null?!0x1:_0x3b3839}),this['_injector']);}));}[_0x3fc626(0x1b6)](){const _0x37288a=_0x3fc626;this[_0x37288a(0x1cd)][_0x37288a(0x144)](b)['showConfigPanel']();}};E=_([g(0x0,(0x0,e[_0x3fc626(0x196)])(e[_0x3fc626(0x117)])),g(0x1,(0x0,e[_0x3fc626(0x196)])(t[_0x3fc626(0x18c)])),g(0x2,r[_0x3fc626(0x19a)]),g(0x3,e[_0x3fc626(0x138)])],E);function D(_0x44f3ba){let {status$:_0x35fad0,error$:_0x2d1468,onConfigure:_0x4d83f9,showClickable:_0x44283b}=_0x44f3ba;return function(){const _0xfd05bc=_0xab1b;return(0x0,s[_0xfd05bc(0x126)])(T,{'status$':_0x35fad0,'error$':_0x2d1468,'onConfigure':_0x4d83f9,'showClickable':_0x44283b});};}function O(_0x97f0){const _0x56cd91=_0x3fc626;return{'id':x['id'],'type':r[_0x56cd91(0x186)][_0x56cd91(0x24e)],'icon':'MenuIcon','title':_0x56cd91(0x1b8),'tooltip':_0x56cd91(0x1b8)};}const k={[r[_0x3fc626(0x1a5)]['OTHERS']]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x3fc626(0x1ec)]{constructor(_0x29051e,_0x10610d){const _0x2991c7=_0x3fc626;super(),this[_0x2991c7(0x1d8)]=_0x29051e,this['_menuManagerService']=_0x10610d,this['_initializeCommands'](),this[_0x2991c7(0x1d3)]();}[_0x3fc626(0x149)](){[x]['forEach'](_0x43f9c1=>{const _0x551054=_0xab1b;this[_0x551054(0x1c1)](this['_commandService'][_0x551054(0x240)](_0x43f9c1));});}[_0x3fc626(0x1d3)](){const _0x5083f3=_0x3fc626;this[_0x5083f3(0x23c)]['mergeMenu'](k);}};A=_([g(0x0,e['ICommandService']),g(0x1,r[_0x3fc626(0x22e)])],A);const j={'mcpStatus':{'disconnected':_0x3fc626(0x157),'connecting':'MCP\x20Connecting...','connected':_0x3fc626(0x165),'failed':'MCP\x20Connection\x20Failed','retrying':_0x3fc626(0x203),'unknown':_0x3fc626(0x14a),'unauthorized':_0x3fc626(0x1d6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3fc626(0x1aa),'maxRetriesExceeded':_0x3fc626(0x1dc),'clickToConnect':_0x3fc626(0x175),'clickToConfigure':_0x3fc626(0x104)},'mcpConfig':{'title':_0x3fc626(0x193),'description':_0x3fc626(0x110),'apiKey':_0x3fc626(0x247),'apiKeyPlaceholder':_0x3fc626(0x217),'apiKeyHint':_0x3fc626(0x242),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3fc626(0x22b),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3fc626(0x228),'configStep1':_0x3fc626(0x19f),'configStep2':_0x3fc626(0x211),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3fc626(0x1a6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3fc626(0x1cb),'configParameters':_0x3fc626(0x1c6),'maxRetries':_0x3fc626(0x21d),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x3fc626(0x180),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3fc626(0x171),'configError':_0x3fc626(0x163),'apiApplyInfo':{'title':_0x3fc626(0x220),'description':_0x3fc626(0x14f),'univerAiLabel':_0x3fc626(0x189),'getStarted':_0x3fc626(0x21c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3fc626(0x235),'invalidConfig':_0x3fc626(0x120),'invalidApiKey':_0x3fc626(0x129)},'connectionStatus':{'disconnected':_0x3fc626(0x184),'connecting':'Connecting...','connected':_0x3fc626(0x17b),'failed':_0x3fc626(0x1c2),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3fc626(0x10a),'sessionOccupied':_0x3fc626(0x23d),'networkError':_0x3fc626(0x1b9),'maxRetriesExceeded':_0x3fc626(0x181)}}},M={'mcpStatus':{'disconnected':_0x3fc626(0x123),'connecting':_0x3fc626(0x195),'connected':_0x3fc626(0x206),'failed':_0x3fc626(0x12f),'retrying':_0x3fc626(0x131),'unknown':_0x3fc626(0x225),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x3fc626(0x21e),'networkError':_0x3fc626(0x214),'maxRetriesExceeded':_0x3fc626(0x201),'clickToConnect':_0x3fc626(0x10f),'clickToConfigure':_0x3fc626(0x16b)},'mcpConfig':{'title':_0x3fc626(0x22a),'description':_0x3fc626(0x169),'apiKey':_0x3fc626(0x130),'apiKeyPlaceholder':_0x3fc626(0x12e),'apiKeyHint':_0x3fc626(0x135),'enableAuth':_0x3fc626(0x256),'enableAuthHint':_0x3fc626(0x14d),'connectionInfo':_0x3fc626(0x1cf),'mcpClientConfig':_0x3fc626(0x1cf),'configInstructions':_0x3fc626(0x17e),'configStepTitle':_0x3fc626(0x205),'configStep1':_0x3fc626(0x139),'configStep2':_0x3fc626(0x112),'configStep3':_0x3fc626(0x1ba),'sessionId':'会话ID','sessionIdDescription':_0x3fc626(0x229),'authorizationDescription':_0x3fc626(0x1b0),'configParameters':_0x3fc626(0x22c),'maxRetries':_0x3fc626(0x20d),'save':_0x3fc626(0x1ff),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x3fc626(0x223),'configSaved':_0x3fc626(0x15e),'configError':_0x3fc626(0x166),'apiApplyInfo':{'title':_0x3fc626(0x1c7),'description':_0x3fc626(0x1be),'univerAiLabel':_0x3fc626(0x172),'getStarted':_0x3fc626(0x20e)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x3fc626(0x23f),'invalidConfig':_0x3fc626(0x162),'invalidApiKey':_0x3fc626(0x258)},'connectionStatus':{'disconnected':_0x3fc626(0x197),'connecting':_0x3fc626(0x16f),'connected':_0x3fc626(0x222),'failed':_0x3fc626(0x146),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3fc626(0x25a)}}};var N=_0x3fc626(0x13a),P='0.18.0';let F=class extends e[_0x3fc626(0x122)]{constructor(_0x36de97=d,_0x4e5f35,_0x338fc8,_0xa2c5b1,_0x5001a3,_0x117acd){const _0x47a7c0=_0x3fc626;super(),this[_0x47a7c0(0x141)]=_0x36de97,this[_0x47a7c0(0x1cd)]=_0x4e5f35,this['_configService']=_0x338fc8,this[_0x47a7c0(0x218)]=_0xa2c5b1,this['_localStorageService']=_0x5001a3,this['_localeService']=_0x117acd;let {..._0x4d59bd}=(0x0,e[_0x47a7c0(0x191)])({},d,this[_0x47a7c0(0x141)]);this[_0x47a7c0(0x17c)]['setConfig'](u,_0x4d59bd);}async[_0x3fc626(0x1e6)](){const _0xe885a8=_0x3fc626;let _0x5bcd07=[[E],[b],[A]];this[_0xe885a8(0x1cd)]['has'](c[_0xe885a8(0x18b)])||_0x5bcd07[_0xe885a8(0x1e5)]([c[_0xe885a8(0x18b)],{'useClass':c['WebSocketService']}]),_0x5bcd07['forEach'](_0x1530e7=>this[_0xe885a8(0x1cd)][_0xe885a8(0x11a)](_0x1530e7)),this['_injector']['get'](E),this[_0xe885a8(0x1cd)][_0xe885a8(0x144)](b),this[_0xe885a8(0x1cd)]['get'](A);}};h(F,_0x3fc626(0x1bd),'MCP_UI_PLUGIN'),h(F,_0x3fc626(0x124),N),h(F,_0x3fc626(0x216),P),F=_([(0x0,e[_0x3fc626(0x10e)])(t[_0x3fc626(0x140)]),g(0x1,(0x0,e['Inject'])(e[_0x3fc626(0x117)])),g(0x2,e[_0x3fc626(0x138)]),g(0x3,r[_0x3fc626(0x19a)]),g(0x4,e[_0x3fc626(0x1c3)]),g(0x5,(0x0,e['Inject'])(e[_0x3fc626(0x233)]))],F),exports[_0x3fc626(0x1a3)]=l,Object['defineProperty'](exports,_0x3fc626(0x1c4),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x3fc626(0x1de)](exports,_0x3fc626(0x132),{'enumerable':!0x0,'get':function(){return E;}}),exports['MCPStatusDisplay']=T,Object['defineProperty'](exports,_0x3fc626(0x16c),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x3fc626(0x187)]=x,Object[_0x3fc626(0x1de)](exports,_0x3fc626(0x22d),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x3fc626(0x161)]=j,exports[_0x3fc626(0x16a)]=M;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2018(){const _0x4e5bc9=['MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','1933485LBptlb','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','1216505lsjmxq','7671424MteKWx','Failed\x20to\x20save\x20configuration','Connected','exports','MCP\x20Retrying...','843808LKwbDw','Save\x20Configuration','265192TDsOMC','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','31RGdSEO','Session\x20ID','MCP\x20Connected','Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','2880390saZEOU','API\x20Key','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','MCP\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enter\x20your\x20API\x20key','Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','37774nAqlXk','MCP:\x20Max\x20Retries\x20Exceeded'];_0x2018=function(){return _0x4e5bc9;};return _0x2018();}const _0x380315=_0xa197;(function(_0x221589,_0x526321){const _0x56f7bb=_0xa197,_0x516ca6=_0x221589();while(!![]){try{const _0x22d1b2=parseInt(_0x56f7bb(0x70))/0x1*(parseInt(_0x56f7bb(0x8b))/0x2)+-parseInt(_0x56f7bb(0x90))/0x3+parseInt(_0x56f7bb(0x6e))/0x4+-parseInt(_0x56f7bb(0x93))/0x5+-parseInt(_0x56f7bb(0x7b))/0x6+parseInt(_0x56f7bb(0x99))/0x7+parseInt(_0x56f7bb(0x94))/0x8;if(_0x22d1b2===_0x526321)break;else _0x516ca6['push'](_0x516ca6['shift']());}catch(_0x39b1dd){_0x516ca6['push'](_0x516ca6['shift']());}}}(_0x2018,0x58b8e));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x380315(0x7f),'connected':_0x380315(0x72),'failed':'MCP\x20Connection\x20Failed','retrying':_0x380315(0x98),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x380315(0x7a),'networkError':_0x380315(0x8d),'maxRetriesExceeded':_0x380315(0x8c),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x380315(0x80),'description':_0x380315(0x86),'apiKey':_0x380315(0x7c),'apiKeyPlaceholder':_0x380315(0x82),'apiKeyHint':_0x380315(0x8e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x380315(0x7e),'connectionInfo':_0x380315(0x77),'mcpClientConfig':_0x380315(0x77),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x380315(0x74),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x380315(0x71),'sessionIdDescription':_0x380315(0x91),'authorizationDescription':_0x380315(0x85),'configParameters':_0x380315(0x92),'maxRetries':_0x380315(0x7d),'save':_0x380315(0x6d),'saving':'Saving...','note1':_0x380315(0x6f),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x380315(0x95),'apiApplyInfo':{'title':_0x380315(0x78),'description':_0x380315(0x81),'univerAiLabel':_0x380315(0x8f),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x380315(0x76),'apiKeyTooShort':_0x380315(0x79),'invalidConfig':_0x380315(0x73),'invalidApiKey':_0x380315(0x89)},'connectionStatus':{'disconnected':_0x380315(0x83),'connecting':'Connecting...','connected':_0x380315(0x96),'failed':_0x380315(0x88),'retrying':_0x380315(0x75)},'connectionError':{'unauthorized':_0x380315(0x84),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x380315(0x8a),'maxRetriesExceeded':_0x380315(0x87)}}};function _0xa197(_0xa2dcbd,_0xb44613){_0xa2dcbd=_0xa2dcbd-0x6d;const _0x201894=_0x2018();let _0xa19738=_0x201894[_0xa2dcbd];return _0xa19738;}module[_0x380315(0x97)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x337ec1=_0x3931;(function(_0x266c42,_0x445242){const _0x478ced=_0x3931,_0x595995=_0x266c42();while(!![]){try{const _0x16695b=parseInt(_0x478ced(0x187))/0x1*(-parseInt(_0x478ced(0x181))/0x2)+-parseInt(_0x478ced(0x197))/0x3*(parseInt(_0x478ced(0x19e))/0x4)+parseInt(_0x478ced(0x19a))/0x5*(parseInt(_0x478ced(0x182))/0x6)+parseInt(_0x478ced(0x183))/0x7+-parseInt(_0x478ced(0x19f))/0x8+-parseInt(_0x478ced(0x18e))/0x9*(parseInt(_0x478ced(0x198))/0xa)+parseInt(_0x478ced(0x1a0))/0xb;if(_0x16695b===_0x445242)break;else _0x595995['push'](_0x595995['shift']());}catch(_0x136b3d){_0x595995['push'](_0x595995['shift']());}}}(_0x2f55,0xaf486));function _0x3931(_0xea234,_0x55b544){_0xea234=_0xea234-0x170;const _0x2f55fa=_0x2f55();let _0x3931d8=_0x2f55fa[_0xea234];return _0x3931d8;}function _0x2f55(){const _0x3bfc32=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','5vLIypj','Disconnected','Max\x20Retries','MCP\x20Client\x20Configuration','488YwZOsX','7137984sPYbDa','25906639OMUdQu','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','Connecting...','Click\x20to\x20configure\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Steps:','MCP\x20Connecting...','MCP\x20Connected','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Get\x20your\x20API\x20key\x20in\x20seconds','29566XCUIiZ','3822402yOhWnb','2889593ajvMif','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','MCP\x20Configuration','16JFhejp','Enter\x20your\x20API\x20key','Configuration\x20saved\x20successfully','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Retrying...','Connection\x20Failed','10116747PPkTlT','Save\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','10677VfPQIr','10OjPgQG'];_0x2f55=function(){return _0x3bfc32;};return _0x2f55();}const e={'mcpStatus':{'disconnected':_0x337ec1(0x175),'connecting':_0x337ec1(0x17b),'connected':_0x337ec1(0x17c),'failed':_0x337ec1(0x17d),'retrying':_0x337ec1(0x185),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x337ec1(0x172),'sessionOccupied':_0x337ec1(0x190),'networkError':_0x337ec1(0x1a2),'maxRetriesExceeded':_0x337ec1(0x194),'clickToConnect':_0x337ec1(0x176),'clickToConfigure':_0x337ec1(0x1a4)},'mcpConfig':{'title':_0x337ec1(0x186),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x337ec1(0x188),'apiKeyHint':_0x337ec1(0x174),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x337ec1(0x19d),'mcpClientConfig':_0x337ec1(0x19d),'configInstructions':_0x337ec1(0x195),'configStepTitle':_0x337ec1(0x17a),'configStep1':_0x337ec1(0x1a1),'configStep2':_0x337ec1(0x193),'configStep3':_0x337ec1(0x171),'sessionId':'Session\x20ID','sessionIdDescription':_0x337ec1(0x184),'authorizationDescription':_0x337ec1(0x191),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x337ec1(0x19c),'save':_0x337ec1(0x18f),'saving':_0x337ec1(0x18a),'note1':_0x337ec1(0x17e),'note2':_0x337ec1(0x192),'configSaved':_0x337ec1(0x189),'configError':_0x337ec1(0x177),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x337ec1(0x170),'univerAiLabel':_0x337ec1(0x178),'getStarted':_0x337ec1(0x180)},'validation':{'apiKeyRequired':_0x337ec1(0x17f),'apiKeyTooShort':_0x337ec1(0x173),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x337ec1(0x179)},'connectionStatus':{'disconnected':_0x337ec1(0x19b),'connecting':_0x337ec1(0x1a3),'connected':_0x337ec1(0x196),'failed':_0x337ec1(0x18d),'retrying':_0x337ec1(0x18c)},'connectionError':{'unauthorized':_0x337ec1(0x18b),'sessionOccupied':_0x337ec1(0x199),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2b79a3=_0x540e;(function(_0x531121,_0x3e179d){const _0xd60005=_0x540e,_0x5055f3=_0x531121();while(!![]){try{const _0x2b8660=parseInt(_0xd60005(0x122))/0x1*(-parseInt(_0xd60005(0x121))/0x2)+-parseInt(_0xd60005(0x12b))/0x3+parseInt(_0xd60005(0x117))/0x4+parseInt(_0xd60005(0x10e))/0x5+-parseInt(_0xd60005(0x138))/0x6+parseInt(_0xd60005(0x13e))/0x7+parseInt(_0xd60005(0x126))/0x8*(parseInt(_0xd60005(0x10a))/0x9);if(_0x2b8660===_0x3e179d)break;else _0x5055f3['push'](_0x5055f3['shift']());}catch(_0x500e7e){_0x5055f3['push'](_0x5055f3['shift']());}}}(_0x3178,0xa0bb8));const e={'mcpStatus':{'disconnected':_0x2b79a3(0x12a),'connecting':_0x2b79a3(0x13a),'connected':_0x2b79a3(0x10c),'failed':_0x2b79a3(0x13c),'retrying':'MCP\x20Retrying...','unknown':_0x2b79a3(0x115),'unauthorized':_0x2b79a3(0x119),'sessionOccupied':_0x2b79a3(0x120),'networkError':_0x2b79a3(0x12e),'maxRetriesExceeded':_0x2b79a3(0x129),'clickToConnect':_0x2b79a3(0x140),'clickToConfigure':_0x2b79a3(0x10f)},'mcpConfig':{'title':_0x2b79a3(0x112),'description':_0x2b79a3(0x11a),'apiKey':_0x2b79a3(0x11b),'apiKeyPlaceholder':_0x2b79a3(0x131),'apiKeyHint':_0x2b79a3(0x12c),'enableAuth':_0x2b79a3(0x10b),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2b79a3(0x135),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2b79a3(0x136),'configStepTitle':_0x2b79a3(0x11c),'configStep1':_0x2b79a3(0x13b),'configStep2':_0x2b79a3(0x11f),'configStep3':_0x2b79a3(0x13d),'sessionId':_0x2b79a3(0x11e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2b79a3(0x118),'configParameters':_0x2b79a3(0x116),'maxRetries':_0x2b79a3(0x130),'save':_0x2b79a3(0x127),'saving':_0x2b79a3(0x123),'note1':_0x2b79a3(0x13f),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2b79a3(0x128),'configError':_0x2b79a3(0x109),'apiApplyInfo':{'title':_0x2b79a3(0x139),'description':_0x2b79a3(0x125),'univerAiLabel':_0x2b79a3(0x12f),'getStarted':_0x2b79a3(0x137)},'validation':{'apiKeyRequired':_0x2b79a3(0x10d),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2b79a3(0x113),'invalidApiKey':_0x2b79a3(0x134)},'connectionStatus':{'disconnected':_0x2b79a3(0x11d),'connecting':_0x2b79a3(0x133),'connected':_0x2b79a3(0x124),'failed':_0x2b79a3(0x111),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2b79a3(0x132),'sessionOccupied':_0x2b79a3(0x12d),'networkError':_0x2b79a3(0x108),'maxRetriesExceeded':_0x2b79a3(0x110)}}};function _0x3178(){const _0xa276e5=['API\x20Key','Configuration\x20Steps:','Disconnected','Session\x20ID','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','31982FFXXfi','71hvDxTj','Saving...','Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','24xPlgAb','Save\x20Configuration','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','3415005wQorBx','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Max\x20Retries','Enter\x20your\x20API\x20key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','232230smgmAH','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3370549DnXkPD','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','4140324XgCZqr','Enable\x20Authentication','MCP\x20Connected','API\x20key\x20is\x20required','2570685LTaAoF','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Configuration','Invalid\x20configuration','exports','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','2380036KltMMi','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0x3178=function(){return _0xa276e5;};return _0x3178();}function _0x540e(_0x176fe7,_0x5165f0){_0x176fe7=_0x176fe7-0x108;const _0x3178f5=_0x3178();let _0x540ef9=_0x3178f5[_0x176fe7];return _0x540ef9;}module[_0x2b79a3(0x114)]=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xf253(_0x39cf98,_0x1e0152){_0x39cf98=_0x39cf98-0xef;const _0x12ae53=_0x12ae();let _0xf253f8=_0x12ae53[_0x39cf98];return _0xf253f8;}function _0x12ae(){const _0x28002b=['Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2207235wlFifs','Enable\x20authentication\x20for\x20secure\x20connections','2LtAvoc','Configuration\x20saved\x20successfully','Enable\x20Authentication','MCP\x20Disconnected','Saving...','Max\x20Retries','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Connected','API\x20Key','5256240JpaGlQ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Session\x20ID','MCP\x20Configuration','12GNUZek','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Parameters:','4711567PBlXyW','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','7891506mhdynk','exports','5237706XbEmHQ','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','Connection\x20Failed','22911705XnnRQc','1747383RnunZR'];_0x12ae=function(){return _0x28002b;};return _0x12ae();}const _0x28c482=_0xf253;(function(_0x36b23f,_0x499910){const _0xcd17b9=_0xf253,_0x400a7e=_0x36b23f();while(!![]){try{const _0x5c8e1d=parseInt(_0xcd17b9(0xf5))/0x1+parseInt(_0xcd17b9(0xfa))/0x2*(parseInt(_0xcd17b9(0xef))/0x3)+-parseInt(_0xcd17b9(0x117))/0x4*(parseInt(_0xcd17b9(0xf8))/0x5)+parseInt(_0xcd17b9(0x11e))/0x6+-parseInt(_0xcd17b9(0x11a))/0x7+parseInt(_0xcd17b9(0x10a))/0x8+-parseInt(_0xcd17b9(0xf4))/0x9;if(_0x5c8e1d===_0x499910)break;else _0x400a7e['push'](_0x400a7e['shift']());}catch(_0x5b786f){_0x400a7e['push'](_0x400a7e['shift']());}}}(_0x12ae,0xe131f));const e={'mcpStatus':{'disconnected':_0x28c482(0xfd),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x28c482(0x111),'retrying':_0x28c482(0x100),'unknown':_0x28c482(0x107),'unauthorized':_0x28c482(0x112),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x28c482(0x11b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x28c482(0x10f)},'mcpConfig':{'title':_0x28c482(0x116),'description':_0x28c482(0x104),'apiKey':_0x28c482(0x109),'apiKeyPlaceholder':_0x28c482(0xf6),'apiKeyHint':_0x28c482(0x11d),'enableAuth':_0x28c482(0xfc),'enableAuthHint':_0x28c482(0xf9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x28c482(0x11c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x28c482(0x101),'configStep3':_0x28c482(0x105),'sessionId':_0x28c482(0x115),'sessionIdDescription':_0x28c482(0xf1),'authorizationDescription':_0x28c482(0x103),'configParameters':_0x28c482(0x119),'maxRetries':_0x28c482(0xff),'save':_0x28c482(0xf2),'saving':_0x28c482(0xfe),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x28c482(0xfb),'configError':_0x28c482(0x113),'apiApplyInfo':{'title':_0x28c482(0x106),'description':_0x28c482(0xf7),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x28c482(0x10d)},'validation':{'apiKeyRequired':_0x28c482(0xf0),'apiKeyTooShort':_0x28c482(0x118),'invalidConfig':_0x28c482(0x114),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x28c482(0x10e),'connecting':'Connecting...','connected':_0x28c482(0x108),'failed':_0x28c482(0xf3),'retrying':_0x28c482(0x10c)},'connectionError':{'unauthorized':_0x28c482(0x110),'sessionOccupied':_0x28c482(0x102),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x28c482(0x10b)}}};module[_0x28c482(0x11f)]=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5718(){const _0xf0df2=['MCP:\x20Network\x20Error','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4131295LudlSI','1453lPEmoE','452QErmmC','Max\x20Retries','11dGncOq','16JfvqNQ','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Univer\x20AI\x20Console','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','13502580pNRYQk','Enter\x20your\x20API\x20key','7108390uWuKSM','Save\x20Configuration','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','MCP:\x20Unauthorized','Disconnected','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','3LqTxNr','MCP\x20Disconnected','MCP\x20Connected','MCP\x20Connecting...','2188737tkxVaV','Session\x20ID','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','6nWPYaM','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3004425ZAiLaC','5342764hahhwy','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','exports','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0x5718=function(){return _0xf0df2;};return _0x5718();}const _0x51363e=_0x1788;function _0x1788(_0x534008,_0x419162){_0x534008=_0x534008-0xb3;const _0x57183d=_0x5718();let _0x1788c3=_0x57183d[_0x534008];return _0x1788c3;}(function(_0x58575e,_0x18d6fe){const _0x145765=_0x1788,_0x1fbbcf=_0x58575e();while(!![]){try{const _0x3fe8a1=-parseInt(_0x145765(0xcc))/0x1*(parseInt(_0x145765(0xcd))/0x2)+-parseInt(_0x145765(0xb4))/0x3*(-parseInt(_0x145765(0xc2))/0x4)+-parseInt(_0x145765(0xc1))/0x5+-parseInt(_0x145765(0xbe))/0x6*(parseInt(_0x145765(0xcb))/0x7)+parseInt(_0x145765(0xd0))/0x8*(parseInt(_0x145765(0xb8))/0x9)+-parseInt(_0x145765(0xdb))/0xa+-parseInt(_0x145765(0xcf))/0xb*(-parseInt(_0x145765(0xd9))/0xc);if(_0x3fe8a1===_0x18d6fe)break;else _0x1fbbcf['push'](_0x1fbbcf['shift']());}catch(_0x4b80fd){_0x1fbbcf['push'](_0x1fbbcf['shift']());}}}(_0x5718,0xaf0cd));const e={'mcpStatus':{'disconnected':_0x51363e(0xb5),'connecting':_0x51363e(0xb7),'connected':_0x51363e(0xb6),'failed':'MCP\x20Connection\x20Failed','retrying':_0x51363e(0xd7),'unknown':_0x51363e(0xe4),'unauthorized':_0x51363e(0xe1),'sessionOccupied':_0x51363e(0xbb),'networkError':_0x51363e(0xc9),'maxRetriesExceeded':_0x51363e(0xd2),'clickToConnect':_0x51363e(0xe0),'clickToConfigure':_0x51363e(0xdd)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x51363e(0xc8),'apiKey':_0x51363e(0xbd),'apiKeyPlaceholder':_0x51363e(0xda),'apiKeyHint':_0x51363e(0xc4),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x51363e(0xbc),'connectionInfo':_0x51363e(0xde),'mcpClientConfig':_0x51363e(0xde),'configInstructions':_0x51363e(0xca),'configStepTitle':_0x51363e(0xba),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x51363e(0xc0),'sessionId':_0x51363e(0xb9),'sessionIdDescription':_0x51363e(0xdf),'authorizationDescription':_0x51363e(0xb3),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x51363e(0xce),'save':_0x51363e(0xdc),'saving':_0x51363e(0xc5),'note1':_0x51363e(0xd5),'note2':_0x51363e(0xd8),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x51363e(0xc3),'apiApplyInfo':{'title':_0x51363e(0xd1),'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':_0x51363e(0xd6),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x51363e(0xe3),'apiKeyTooShort':_0x51363e(0xc7),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x51363e(0xd3)},'connectionStatus':{'disconnected':_0x51363e(0xe2),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x51363e(0xd4),'sessionOccupied':_0x51363e(0xbf),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x51363e(0xe5)}}};module[_0x51363e(0xc6)]=e;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x48fd(_0x42a015,_0x2bc311){_0x42a015=_0x42a015-0x117;const _0x11bd4a=_0x11bd();let _0x48fd67=_0x11bd4a[_0x42a015];return _0x48fd67;}function _0x11bd(){const _0x4e7269=['MCP:\x20セッションIDが使用中','セッションIDが現在使用中です。後でもう一度お試しください','接続失敗','設定パラメータ:','クリックしてMCPに接続','設定が正常に保存されました','認証に失敗しました。APIキーを確認してください','セキュアな接続のために認証を有効にする','MCP\x20接続失敗','4617nHwddF','APIキーは10文字以上である必要があります','最大再試行回数を超過しました。後でもう一度お試しください','接続中...','Univer\x20AIコンソール','1597078gkLIRD','MCP\x20再試行中...','868483MEXuiY','861755luhWfT','16OWTALw','無効な設定','設定手順:','2115684rLzycW','APIキーとは?','exports','MCP\x20接続済み','MCPクライアントの設定ファイルに設定を追加','MCP:\x20認証されていません','MCPを設定してAIでスプレッドシートを操作','接続済み','以下のJSON設定をコピー','設定の保存に失敗しました','4upgweW','MCP:\x20ネットワークエラー','クリックしてMCPを設定','APIキー','数秒でAPIキーを取得','MCP\x20未接続','APIキーは必須です','1354047FJDhWW','MCPクライアントの設定に次の設定を追加してください:','MCP:\x20最大再試行回数を超過','Bearerプレフィックス付きのAPIキー。','セッションID','再試行中...','設定を保存','最大再試行回数','379477wqIxzq'];_0x11bd=function(){return _0x4e7269;};return _0x11bd();}const _0x5e0f0a=_0x48fd;(function(_0x1504ea,_0x49fecf){const _0x67556c=_0x48fd,_0x4b530b=_0x1504ea();while(!![]){try{const _0x3da92b=parseInt(_0x67556c(0x11e))/0x1+-parseInt(_0x67556c(0x11c))/0x2+parseInt(_0x67556c(0x134))/0x3+parseInt(_0x67556c(0x12d))/0x4*(parseInt(_0x67556c(0x11f))/0x5)+-parseInt(_0x67556c(0x123))/0x6+parseInt(_0x67556c(0x13c))/0x7*(parseInt(_0x67556c(0x120))/0x8)+-parseInt(_0x67556c(0x117))/0x9;if(_0x3da92b===_0x49fecf)break;else _0x4b530b['push'](_0x4b530b['shift']());}catch(_0x5b6fea){_0x4b530b['push'](_0x4b530b['shift']());}}}(_0x11bd,0x6d9ab));const e={'mcpStatus':{'disconnected':_0x5e0f0a(0x132),'connecting':'MCP\x20接続中...','connected':_0x5e0f0a(0x126),'failed':_0x5e0f0a(0x145),'retrying':_0x5e0f0a(0x11d),'unknown':'MCP\x20不明な状態','unauthorized':_0x5e0f0a(0x128),'sessionOccupied':_0x5e0f0a(0x13d),'networkError':_0x5e0f0a(0x12e),'maxRetriesExceeded':_0x5e0f0a(0x136),'clickToConnect':_0x5e0f0a(0x141),'clickToConfigure':_0x5e0f0a(0x12f)},'mcpConfig':{'title':'MCP設定','description':_0x5e0f0a(0x129),'apiKey':_0x5e0f0a(0x130),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':'認証を有効にする','enableAuthHint':_0x5e0f0a(0x144),'connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':_0x5e0f0a(0x135),'configStepTitle':_0x5e0f0a(0x122),'configStep1':_0x5e0f0a(0x12b),'configStep2':_0x5e0f0a(0x127),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x5e0f0a(0x138),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x5e0f0a(0x137),'configParameters':_0x5e0f0a(0x140),'maxRetries':_0x5e0f0a(0x13b),'save':_0x5e0f0a(0x13a),'saving':'保存中...','note1':'設定の変更は直ちに有効になります','note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x5e0f0a(0x142),'configError':_0x5e0f0a(0x12c),'apiApplyInfo':{'title':_0x5e0f0a(0x124),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x5e0f0a(0x11b),'getStarted':_0x5e0f0a(0x131)},'validation':{'apiKeyRequired':_0x5e0f0a(0x133),'apiKeyTooShort':_0x5e0f0a(0x118),'invalidConfig':_0x5e0f0a(0x121),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':'未接続','connecting':_0x5e0f0a(0x11a),'connected':_0x5e0f0a(0x12a),'failed':_0x5e0f0a(0x13f),'retrying':_0x5e0f0a(0x139)},'connectionError':{'unauthorized':_0x5e0f0a(0x143),'sessionOccupied':_0x5e0f0a(0x13e),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x5e0f0a(0x119)}}};module[_0x5e0f0a(0x125)]=e;
|