@univerjs-pro/mcp-ui 0.10.14-nightly.202511031023 → 0.10.14-nightly.202511070640
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x360554=_0x5312;function _0x2ac6(){const _0x576b25=['MCP\x20已连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','MAX_RETRIES_EXCEEDED','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','subscribe','4452048FbYRss','RETRYING','registerComponent','_initializeCommands','colorChannel1','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MenuIcon','<API_KEY>','http://www.w3.org/2000/svg','MCP:\x20Network\x20Error','register','setItem','mcp-config-dialog','OpenMCPConfigPanelCommand','current','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','substring','MCP\x20Retrying...','univer-size-2\x20univer-rounded-full','MCPConfigPanel','forwardRef','getConfig','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.disconnected','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','MCP\x20Unknown\x20Status','Disposable','IDialogService','配置更改将立即生效','OTHERS','Configuration\x20Parameters:','mcpConfig.connectionStatus.disconnected','ISocketService','会话ID','2114660ejMOXE','保存配置','CommandType','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','超出最大重试次数,请稍后再试','MenuItemType','on-line-icon_clip0_910_349','0\x200\x2017\x2016','connectionError$','Inject','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_injector','mcpStatus.clickToConnect','_apiKey$','请输入您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20Authentication','启用身份验证','MCP\x20Connection\x20Failed','span','What\x20is\x20API\x20Key?','450534SqXifE','mcpConfig.title','UniverMCPUIPlugin','BUTTON','mcpConfig.connectionStatus.failed','HEADER_MENU','setConfig','24DXnAFa','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','复制以下\x20JSON\x20配置','MessageType','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.failed','useCallback','getCurrentConfig','showStatus','配置无效','getOwnPropertyDescriptor','MCP\x20连接中...','mcpConfig.configSaved','API\x20密钥不能为空','Success','MCP\x20已断开','univer-mr-2\x20univer-flex\x20univer-text-xl','useObservable','Click\x20to\x20configure\x20MCP','mcpConfig.connectionError.maxRetriesExceeded','已连接','UniverIcon','clipPath','disposeWithMe','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Connecting...','MCP\x20客户端配置','MCP_UI_PLUGIN','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','BehaviorSubject','UNAUTHORIZED','_dialogService','DISCONNECTED','ILocalStorageService','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','children','UniverMCPPlugin','网络连接错误,请检查您的网络连接','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','close','Input','MCP:\x20未授权','MCP:\x20Unauthorized','length','mcpConfig.authorizationDescription','button','none','pre','defIds','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','_mcpConnectionController','CloseIcon','connectInjector','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','RibbonStartGroup','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','mcpConfig.note1','mcp-ui.config','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcp-ui.command.openConfigPanel','univer-flex\x20univer-items-start\x20univer-gap-3','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','evenodd','MCPConnectionStatus','round','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpStatus.unknown','mcpConfig.configInstructions','MCP\x20重连中...','mcpStatus.sessionOccupied','mcpStatus.maxRetriesExceeded','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','off-line-icon','univer-text-red-500','warn','https://console.univer.ai','idSuffix','path','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.configStep2','registerCommand','string','https://mcp.univer.ai/mcp/?univer_session_id=','Error','Connection\x20Failed','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_blank','MCPConnectionError','random','Injector','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_initializeMenus','http','div','univer-text-xs\x20univer-text-gray-500','ICommandService','isValid','includes','mcpConfig.connectionError.sessionOccupied','最大重试次数','univer-shrink-0\x20univer-text-blue-500','_menuManagerService','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Client\x20Configuration','mcpConfig.configStep1','fill','连接中...','createElement','connectionStatus$','useRef','subscribeConfigValue$','M0\x200H16V16H0z','NETWORK_ERROR','mcpConfig.apiApplyInfo.getStarted','mcpConfig.configError','https://console.univer.plus','enUS','url(#off-line-icon_clip0_910_343)','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-min-w-0\x20univer-flex-1','show','481880zuaSNM','_localeService','会话\x20ID\x20已被占用,请稍后再试','mcp.apiKey','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','CONNECTING','Configuration\x20saved\x20successfully','IMessageService','MCP:\x20会话\x20ID\x20已被占用','_uiPartsService','MCPConnectionController','mcpConfig.validation.apiKeyTooShort','mcpStatus.connecting','_loading$','trim','配置保存失败','univer-text-gray-400','attrs','univer-space-y-3','Univer\x20AI\x20Console','assign','mcpConfig.description','2OiNrZe','mcpStatus.networkError','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','open','merge','univer-shrink-0\x20univer-text-red-500','mcpConfig.save','MCP\x20配置','BuiltInUIPart','mcpConfig.apiKey','Failed\x20to\x20save\x20configuration','MCPUIMenuController','OffLineIcon','保存中...','univerjs-icon\x20univerjs-icon-','univer-text-white','LocaleService','NONE','univer-bg-blue-500','next','enableAutoConnect','Enter\x20your\x20API\x20key','toString','symbol','Button','mcpStatus.retrying','translate(.97)','useState','displayName','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','SESSION_ID_OCCUPIED','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','jsxs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','\x20-\x20','check-mark-icon','forEach','ILogService','replace','_configService','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','API\x20Key','Session\x20ID','push','univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connecting','Bearer\x20','mcpConfig.configParameters','mcpConfig.apiKeyPlaceholder','mask','_mcpCoreConfig$','help-icon','map','CONNECTED','onStarting','mcpConfig.apiApplyInfo.title','API\x20密钥','MCPConfigUIController','_handleConfigSave','univer-text-blue-600','_initAutoConnect','MCP\x20状态未知','mcpConfig.connectionError.networkError','tag','几秒钟内获取您的\x20API\x20密钥','jsx','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer.plus','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.connectionStatus.connected','get','validateApiKey','_componentManager','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','has','mcpConfig.apiApplyInfo.description','HelpIcon','Max\x20Retries','WebSocketService','MCP:\x20超出最大重试次数','off','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','_config$','mcpServerUrl','_initConfigSync','defs','MCP_PLUGIN_CONFIG_KEY','mcpStatus.connected','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.connectionInfo','defineProperty','url(#$1','您的\x20API\x20密钥安全存储在本地存储中','Enable\x20authentication\x20for\x20secure\x20connections','_connectionController','univer-bg-green-500','univer-bg-red-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCPConnectionUIController','Tooltip','xlink:href','0\x200\x2016\x2016','IUIPartsService','点击配置\x20MCP','2243836McXdBw','entries','重连中...','Configuration\x20Steps:','noopener\x20noreferrer','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','error','univer-text-sm\x20univer-font-medium','showDeveloperTools','<SESSION_ID>','univer_session_id:','apiKey','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Save\x20Configuration','mcpConfig.apiApplyInfo.univerAiLabel','useDependency','CheckMarkIcon','91072MGDYLW','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.clickToConfigure','1em','svg','MCP:\x20网络错误','showConfigPanel','univer.ai','white','_config','Authorization:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStep3','FAILED','配置参数:','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','use','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_loadStoredApiKey','API\x20key\x20is\x20required','Disconnected','univer-text-sm\x20univer-text-gray-500','IConfigService','currentColor','url(#on-line-icon_clip0_910_349)','text','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','univer-flex\x20univer-items-center\x20univer-gap-2','univer-space-y-2','MCPStatusDisplay','sessionId$','_validateConfig','mcpConfig.connectionError.unauthorized','_messageService','938784jYxuKe','API\x20密钥无效,请检查密钥是否正确','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','off-line-icon_clip0_910_343','配置保存成功','mcpConfig.validation.invalidConfig','stringify','Univer\x20AI\x20控制台','连接失败','on-line-icon','clsx','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','__setCustomHeaders','mcpConfig.validation.apiKeyRequired','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_localStorageService'];_0x2ac6=function(){return _0x576b25;};return _0x2ac6();}(function(_0x805d66,_0x39d83e){const _0x1610a2=_0x5312,_0x21c319=_0x805d66();while(!![]){try{const _0x2f4cfb=parseInt(_0x1610a2(0x29e))/0x1*(parseInt(_0x1610a2(0x223))/0x2)+-parseInt(_0x1610a2(0x30e))/0x3+-parseInt(_0x1610a2(0x2f9))/0x4+-parseInt(_0x1610a2(0x20d))/0x5+-parseInt(_0x1610a2(0x2c2))/0x6+-parseInt(_0x1610a2(0x28c))/0x7+-parseInt(_0x1610a2(0x315))/0x8*(-parseInt(_0x1610a2(0x2d7))/0x9);if(_0x2f4cfb===_0x39d83e)break;else _0x21c319['push'](_0x21c319['shift']());}catch(_0x146fdf){_0x21c319['push'](_0x21c319['shift']());}}}(_0x2ac6,0x4ed29));var ae=Object[_0x360554(0x27e)],le=(_0x4ab7b5,_0x3346c1,_0x420a5e)=>_0x3346c1 in _0x4ab7b5?ae(_0x4ab7b5,_0x3346c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x420a5e}):_0x4ab7b5[_0x3346c1]=_0x420a5e,I=(_0xc9fdf4,_0x32a6d6,_0x45ba8f)=>le(_0xc9fdf4,typeof _0x32a6d6!=_0x360554(0x23a)?_0x32a6d6+'':_0x32a6d6,_0x45ba8f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0xf53bb7,..._0x451b20}){const _0x13f73a=_0x360554,{icon:_0x1c80ff,id:_0x3ed25a,className:_0x4b0ce1,extend:_0x310a72,..._0x62d6fa}=_0x451b20,_0x655034=(_0x13f73a(0x231)+_0x3ed25a+'\x20'+(_0x4b0ce1||''))[_0x13f73a(0x21b)](),_0x1169be=d[_0x13f73a(0x200)]('_'+de());return G(_0x1c80ff,''+_0x3ed25a,{'defIds':_0x1c80ff[_0x13f73a(0x34a)],'idSuffix':_0x1169be[_0x13f73a(0x2e5)]},{'ref':_0xf53bb7,'className':_0x655034,..._0x62d6fa},_0x310a72);}function G(_0x4a0d9e,_0x14b7cd,_0x3116a9,_0x270dfe,_0x43ecc0){const _0x46539d=_0x360554;return d[_0x46539d(0x1fe)](_0x4a0d9e['tag'],{'key':_0x14b7cd,...ue(_0x4a0d9e,_0x3116a9,_0x43ecc0),..._0x270dfe},(ve(_0x4a0d9e,_0x3116a9)[_0x46539d(0x339)]||[])[_0x46539d(0x258)]((_0x34aab8,_0x162c49)=>G(_0x34aab8,_0x14b7cd+'-'+_0x4a0d9e[_0x46539d(0x263)]+'-'+_0x162c49,_0x3116a9,void 0x0,_0x43ecc0)));}function ue(_0x423929,_0x4c90bc,_0xa6c102){const _0x5ce445=_0x360554,_0x3668b9={..._0x423929[_0x5ce445(0x21e)]};_0xa6c102!=null&&_0xa6c102['colorChannel1']&&_0x3668b9[_0x5ce445(0x1fc)]==='colorChannel1'&&(_0x3668b9['fill']=_0xa6c102[_0x5ce445(0x2db)]),_0x423929['tag']==='mask'&&_0x3668b9['id']&&(_0x3668b9['id']=_0x3668b9['id']+_0x4c90bc[_0x5ce445(0x368)]),Object['entries'](_0x3668b9)[_0x5ce445(0x247)](([_0x29fb2f,_0x35c01a])=>{const _0x581120=_0x5ce445;_0x29fb2f===_0x581120(0x255)&&typeof _0x35c01a==_0x581120(0x36d)&&(_0x3668b9[_0x29fb2f]=_0x35c01a[_0x581120(0x249)](/url\(#(.*)\)/,'url(#$1'+_0x4c90bc[_0x581120(0x368)]+')'));});const {defIds:_0x4ac083}=_0x4c90bc;return!_0x4ac083||_0x4ac083['length']===0x0||(_0x423929['tag']===_0x5ce445(0x2af)&&_0x3668b9[_0x5ce445(0x288)]&&(_0x3668b9[_0x5ce445(0x288)]=_0x3668b9['xlink:href']+_0x4c90bc['idSuffix']),Object[_0x5ce445(0x28d)](_0x3668b9)[_0x5ce445(0x247)](([_0xb5a20,_0x20f09c])=>{const _0x320ba5=_0x5ce445;typeof _0x20f09c==_0x320ba5(0x36d)&&(_0x3668b9[_0xb5a20]=_0x20f09c[_0x320ba5(0x249)](/url\(#(.*)\)/,_0x320ba5(0x27f)+_0x4c90bc[_0x320ba5(0x368)]+')'));})),_0x3668b9;}function ve(_0x5bf25d,_0x23d920){const _0x41ea1e=_0x360554;var _0x59aa81;const {defIds:_0x47071c}=_0x23d920;return!_0x47071c||_0x47071c['length']===0x0?_0x5bf25d:_0x5bf25d['tag']===_0x41ea1e(0x279)&&((_0x59aa81=_0x5bf25d[_0x41ea1e(0x339)])!=null&&_0x59aa81[_0x41ea1e(0x345)])?{..._0x5bf25d,'children':_0x5bf25d[_0x41ea1e(0x339)][_0x41ea1e(0x258)](_0x2f6c1d=>typeof _0x2f6c1d['attrs']['id']==_0x41ea1e(0x36d)&&_0x47071c&&_0x47071c[_0x41ea1e(0x1f4)](_0x2f6c1d[_0x41ea1e(0x21e)]['id'])?{..._0x2f6c1d,'attrs':{..._0x2f6c1d[_0x41ea1e(0x21e)],'id':_0x2f6c1d[_0x41ea1e(0x21e)]['id']+_0x23d920[_0x41ea1e(0x368)]}}:_0x2f6c1d)}:_0x5bf25d;}function de(){const _0x3b2595=_0x360554;return Math[_0x3b2595(0x374)]()[_0x3b2595(0x239)](0x24)[_0x3b2595(0x2e7)](0x2,0x8);}_[_0x360554(0x23f)]=_0x360554(0x32a);const Ce={'tag':'svg','attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x360554(0x2a1)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x360554(0x275),'fillRule':_0x360554(0x359),'clipRule':_0x360554(0x359)}}]},H=d['forwardRef'](function(_0x1a6e6e,_0x1ac921){const _0x538b4e=_0x360554;return d[_0x538b4e(0x1fe)](_,Object['assign']({},_0x1a6e6e,{'id':_0x538b4e(0x246),'ref':_0x1ac921,'icon':Ce}));});function _0x5312(_0x3e7aa0,_0x375aa0){const _0x2ac636=_0x2ac6();return _0x5312=function(_0x5312b2,_0x5a220e){_0x5312b2=_0x5312b2-0x1f2;let _0x451b18=_0x2ac636[_0x5312b2];return _0x451b18;},_0x5312(_0x3e7aa0,_0x375aa0);}H[_0x360554(0x23f)]=_0x360554(0x29d);const ge={'tag':_0x360554(0x2a2),'attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':_0x360554(0x289),'width':'1em','height':'1em'},'children':[{'tag':_0x360554(0x369),'attrs':{'fill':'currentColor','d':_0x360554(0x34b)}}]},B=d[_0x360554(0x2eb)](function(_0x3f8e8e,_0x1f017e){const _0x1ede0c=_0x360554;return d['createElement'](_,Object[_0x1ede0c(0x221)]({},_0x3f8e8e,{'id':'close-icon','ref':_0x1f017e,'icon':ge}));});B[_0x360554(0x23f)]=_0x360554(0x34d);const fe={'tag':_0x360554(0x2a2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x360554(0x348),'viewBox':'0\x200\x2016\x2016','width':_0x360554(0x2a1),'height':_0x360554(0x2a1)},'children':[{'tag':'path','attrs':{'fill':_0x360554(0x2b6),'d':_0x360554(0x2ef)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x360554(0x2e6)}},{'tag':_0x360554(0x369),'attrs':{'fill':_0x360554(0x2b6),'d':_0x360554(0x33f),'fillRule':_0x360554(0x359),'clipRule':'evenodd'}}]},F=d[_0x360554(0x2eb)](function(_0x1fc197,_0xecd86e){const _0x4ed872=_0x360554;return d[_0x4ed872(0x1fe)](_,Object[_0x4ed872(0x221)]({},_0x1fc197,{'id':_0x4ed872(0x257),'ref':_0xecd86e,'icon':fe}));});F[_0x360554(0x23f)]=_0x360554(0x270);const pe={'tag':_0x360554(0x2a2),'attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':_0x360554(0x289),'width':_0x360554(0x2a1),'height':_0x360554(0x2a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x360554(0x208)},'children':[{'tag':'path','attrs':{'stroke':_0x360554(0x2b6),'d':_0x360554(0x2fc),'strokeLinecap':_0x360554(0x35b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x360554(0x279),'attrs':{},'children':[{'tag':_0x360554(0x32b),'attrs':{'id':_0x360554(0x2c5)},'children':[{'tag':'path','attrs':{'fill':_0x360554(0x2a6),'d':_0x360554(0x202)}}]}]}],'defIds':[_0x360554(0x2c5)]},Y=d[_0x360554(0x2eb)](function(_0x43a2c5,_0x322e2c){const _0x143a14=_0x360554;return d[_0x143a14(0x1fe)](_,Object[_0x143a14(0x221)]({},_0x43a2c5,{'id':_0x143a14(0x364),'ref':_0x322e2c,'icon':pe}));});Y['displayName']=_0x360554(0x22f);const he={'tag':_0x360554(0x2a2),'attrs':{'xmlns':_0x360554(0x2df),'fill':_0x360554(0x348),'viewBox':_0x360554(0x300),'width':_0x360554(0x2a1),'height':_0x360554(0x2a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x360554(0x2b7)},'children':[{'tag':_0x360554(0x369),'attrs':{'stroke':_0x360554(0x2b6),'d':_0x360554(0x352),'strokeLinecap':_0x360554(0x35b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x360554(0x279),'attrs':{},'children':[{'tag':_0x360554(0x32b),'attrs':{'id':_0x360554(0x2ff)},'children':[{'tag':_0x360554(0x369),'attrs':{'fill':'white','d':_0x360554(0x202),'transform':_0x360554(0x23d)}}]}]}],'defIds':[_0x360554(0x2ff)]},q=d[_0x360554(0x2eb)](function(_0x4ef9bb,_0x1d378c){const _0x144a34=_0x360554;return d[_0x144a34(0x1fe)](_,Object['assign']({},_0x4ef9bb,{'id':_0x144a34(0x2cb),'ref':_0x1d378c,'icon':he}));});q[_0x360554(0x23f)]='OnLineIcon';function V(_0x48464f){const _0x2ec7c5=_0x360554;var _0x480887,_0x976d69;const {mcpCoreConfig:_0x12f9bb,onSave:_0x4022a2,loading:_0x282757=!0x1,config:_0x270d2c,connectionStatus$:_0x9cd1c,connectionError$:_0x4e6e24,currentApiKey$:_0x4788f4,currentSessionId$:_0x77adc5}=_0x48464f,_0x586247=v[_0x2ec7c5(0x29c)](u[_0x2ec7c5(0x233)]),_0x1b04c1=v[_0x2ec7c5(0x326)](_0x9cd1c,s['MCPConnectionStatus'][_0x2ec7c5(0x335)]),_0x24d125=v[_0x2ec7c5(0x326)](_0x4e6e24,s[_0x2ec7c5(0x373)]['NONE']),_0x143ced=v[_0x2ec7c5(0x326)](_0x77adc5,''),_0x27c010=v[_0x2ec7c5(0x326)](_0x4788f4,''),[_0x190efc,_0x178b82]=d[_0x2ec7c5(0x23e)](_0x27c010||''),_0x22a499=!0x0,_0x1443f3=_0x270d2c['showDeveloperTools']&&_0x12f9bb[_0x2ec7c5(0x277)]&&(_0x12f9bb[_0x2ec7c5(0x277)]['includes'](_0x2ec7c5(0x267))||_0x12f9bb[_0x2ec7c5(0x277)][_0x2ec7c5(0x1f4)](_0x2ec7c5(0x2a5))),_0x540804=(_0x480887=_0x12f9bb[_0x2ec7c5(0x277)])==null?void 0x0:_0x480887['includes'](_0x2ec7c5(0x267)),_0x4790b8=(_0x976d69=_0x12f9bb[_0x2ec7c5(0x277)])==null?void 0x0:_0x976d69[_0x2ec7c5(0x1f4)]('univer.ai'),_0x149603=_0x540804?_0x2ec7c5(0x206):_0x2ec7c5(0x367),_0x321029=_0x270d2c[_0x2ec7c5(0x294)]&&(_0x540804||_0x4790b8),[_0x6ceb04,_0x20be29]=d[_0x2ec7c5(0x23e)](!_0x190efc['trim']()),_0x3b9942=(_0x55bca1,_0x1b5052)=>{const _0x3f8692=_0x2ec7c5;if(_0x1b5052===s['MCPConnectionError'][_0x3f8692(0x333)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x55bca1){case s[_0x3f8692(0x35a)][_0x3f8692(0x259)]:return _0x3f8692(0x240);case s[_0x3f8692(0x35a)][_0x3f8692(0x212)]:case s['MCPConnectionStatus']['RETRYING']:return _0x3f8692(0x299);case s[_0x3f8692(0x35a)][_0x3f8692(0x2ab)]:return _0x3f8692(0x350);default:return _0x3f8692(0x211);}},_0x436dc7=(_0x3c44ac,_0x2763b9)=>{const _0x50a01a=_0x2ec7c5;if(_0x2763b9===s[_0x50a01a(0x373)][_0x50a01a(0x333)])return _0x50a01a(0x284);switch(_0x3c44ac){case s[_0x50a01a(0x35a)][_0x50a01a(0x259)]:return _0x50a01a(0x283);case s[_0x50a01a(0x35a)][_0x50a01a(0x212)]:case s[_0x50a01a(0x35a)][_0x50a01a(0x2d8)]:return _0x50a01a(0x235);case s[_0x50a01a(0x35a)]['FAILED']:return _0x50a01a(0x284);default:return'univer-bg-gray-500';}},_0x201cf5=_0x38b7e3=>{const _0x4653ea=_0x2ec7c5;switch(_0x38b7e3){case s[_0x4653ea(0x35a)]['CONNECTED']:return _0x586247['t'](_0x4653ea(0x269));case s[_0x4653ea(0x35a)]['CONNECTING']:return _0x586247['t'](_0x4653ea(0x251));case s['MCPConnectionStatus'][_0x4653ea(0x2ab)]:return _0x586247['t'](_0x4653ea(0x312));case s[_0x4653ea(0x35a)][_0x4653ea(0x2d8)]:return _0x586247['t']('mcpConfig.connectionStatus.retrying');default:return _0x586247['t'](_0x4653ea(0x2f6));}},_0x404b1d=_0x364437=>{const _0xcc95f2=_0x2ec7c5;switch(_0x364437){case s[_0xcc95f2(0x373)][_0xcc95f2(0x333)]:return _0x586247['t'](_0xcc95f2(0x2c0));case s[_0xcc95f2(0x373)][_0xcc95f2(0x241)]:return _0x586247['t'](_0xcc95f2(0x1f5));case s['MCPConnectionError'][_0xcc95f2(0x203)]:return _0x586247['t'](_0xcc95f2(0x262));case s[_0xcc95f2(0x373)][_0xcc95f2(0x2d4)]:return _0x586247['t'](_0xcc95f2(0x328));default:return'';}},_0x554bf4=d[_0x2ec7c5(0x31b)](()=>{const _0x28ce9e=_0x2ec7c5,_0x92f141={..._0x12f9bb,'apiKey':_0x190efc[_0x28ce9e(0x21b)](),'enableAuth':_0x22a499};_0x4022a2(_0x92f141);},[_0x12f9bb,_0x190efc,_0x22a499,_0x4022a2]),_0x65dab0=_0x190efc['trim']()[_0x2ec7c5(0x345)]>0x0;return i['jsxs'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x35d),'children':[i['jsx'](_0x2ec7c5(0x379),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i[_0x2ec7c5(0x243)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x371),'children':i['jsx'](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x232),'children':'⚙'})}),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'children':i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x2b4),'children':_0x586247['t'](_0x2ec7c5(0x222))})})]})}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x225),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':f[_0x2ec7c5(0x2cc)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x3b9942(_0x1b04c1,_0x24d125)),'children':i['jsxs'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bb),'children':[i['jsx']('div',{'className':f[_0x2ec7c5(0x2cc)](_0x2ec7c5(0x2e9),_0x436dc7(_0x1b04c1,_0x24d125))}),i[_0x2ec7c5(0x265)]('span',{'className':_0x2ec7c5(0x293),'children':_0x201cf5(_0x1b04c1)})]})}),_0x24d125!==s[_0x2ec7c5(0x373)][_0x2ec7c5(0x234)]&&(_0x1b04c1===s['MCPConnectionStatus'][_0x2ec7c5(0x2ab)]||_0x24d125===s['MCPConnectionError'][_0x2ec7c5(0x333)])&&i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x285),'children':i['jsxs'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x1f9),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x228),'children':'⚠️'}),i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x376),'children':_0x404b1d(_0x24d125)})]})})]}),i[_0x2ec7c5(0x265)]('div',{'className':_0x2ec7c5(0x2cd),'children':i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-5','children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-2','children':[i['jsxs']('label',{'className':_0x2ec7c5(0x20a),'children':[i['jsx'](_0x2ec7c5(0x30c),{'children':'🔑'}),'\x20',_0x586247['t'](_0x2ec7c5(0x22c)),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x365),'children':'*'}),_0x1443f3&&i['jsx']('a',{'className':_0x2ec7c5(0x209),'title':_0x586247['t'](_0x2ec7c5(0x25b)),'role':_0x2ec7c5(0x347),'onClick':()=>_0x20be29(!0x0),'children':i['jsx'](F,{})})]}),i['jsx'](f[_0x2ec7c5(0x342)],{'type':_0x2ec7c5(0x2b8),'placeholder':_0x586247['t'](_0x2ec7c5(0x254)),'value':_0x190efc,'disabled':_0x282757,'autoComplete':_0x2ec7c5(0x274),'onChange':_0x178b82}),i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x37a),'children':_0x586247['t']('mcpConfig.apiKeyHint')})]}),_0x1443f3&&_0x6ceb04&&i[_0x2ec7c5(0x243)]('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i[_0x2ec7c5(0x265)]('a',{'className':_0x2ec7c5(0x331),'role':_0x2ec7c5(0x347),'onClick':()=>_0x20be29(!0x1),'children':i[_0x2ec7c5(0x265)](B,{'className':'univer-size-4'})}),i['jsxs']('div',{'className':_0x2ec7c5(0x27c),'children':[i['jsx']('div',{'className':_0x2ec7c5(0x2c4),'children':i[_0x2ec7c5(0x265)]('span',{'className':_0x2ec7c5(0x25f),'children':'🚀'})}),i[_0x2ec7c5(0x243)]('div',{'className':'univer-flex-1','children':[i[_0x2ec7c5(0x265)]('h4',{'className':_0x2ec7c5(0x266),'children':_0x586247['t'](_0x2ec7c5(0x25b))}),i[_0x2ec7c5(0x265)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x586247['t'](_0x2ec7c5(0x26f))}),i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2b0),'children':_0x321029&&i[_0x2ec7c5(0x243)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x149603,'target':_0x2ec7c5(0x372),'rel':_0x2ec7c5(0x290),'children':[i['jsx']('span',{'children':'🤖'}),_0x586247['t'](_0x2ec7c5(0x29b)),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x21d),'children':'↗'})]})}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2d5),'children':['✨','\x20',_0x586247['t'](_0x2ec7c5(0x204))]})]})]})]}),_0x270d2c[_0x2ec7c5(0x294)]&&i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x268),'children':[i[_0x2ec7c5(0x243)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'children':'🔗'}),'\x20',_0x586247['t'](_0x2ec7c5(0x27d))]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-4','children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x21f),'children':[i[_0x2ec7c5(0x265)]('p',{'className':_0x2ec7c5(0x250),'children':_0x586247['t'](_0x2ec7c5(0x35f))}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bc),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x36a),'children':_0x586247['t']('mcpConfig.configStepTitle')}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x319),'children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x363),'children':'1'}),_0x586247['t'](_0x2ec7c5(0x1fb))]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bb),'children':[i['jsx']('span',{'className':_0x2ec7c5(0x363),'children':'2'}),_0x586247['t'](_0x2ec7c5(0x36b))]}),i[_0x2ec7c5(0x243)]('div',{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x363),'children':'3'}),_0x586247['t'](_0x2ec7c5(0x2aa))]})]})]})]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2bc),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x36a),'children':'MCP\x20Configuration'}),i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x2dc),'children':i[_0x2ec7c5(0x265)](_0x2ec7c5(0x349),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x2ec7c5(0x2c8)]({'mcpServers':{'univer':{'url':_0x2ec7c5(0x36e)+(_0x143ced||_0x2ec7c5(0x295)),'type':_0x2ec7c5(0x378),'headers':{'Authorization':_0x2ec7c5(0x252)+(_0x190efc||_0x2ec7c5(0x2de))}}}},null,0x2)})})]}),i['jsxs']('div',{'className':_0x2ec7c5(0x21f),'children':[i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x36a),'children':_0x586247['t'](_0x2ec7c5(0x253))}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-space-y-2','children':[i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x357),'children':[i['jsx'](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x29f)}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x20b),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2ec7c5(0x296)}),i['jsx']('div',{'className':_0x2ec7c5(0x37a),'children':_0x586247['t']('mcpConfig.sessionIdDescription')})]})]}),i['jsxs']('div',{'className':_0x2ec7c5(0x357),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':_0x2ec7c5(0x29f)}),i['jsxs'](_0x2ec7c5(0x379),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x2ec7c5(0x265)]('div',{'className':_0x2ec7c5(0x24c),'children':_0x2ec7c5(0x2a8)}),i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x586247['t'](_0x2ec7c5(0x346))})]})]})]})]})]})]}),i['jsx'](f[_0x2ec7c5(0x23b)],{'onClick':_0x554bf4,'disabled':!_0x65dab0||_0x282757,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x282757?i['jsxs'](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'children':'⟲'}),_0x586247['t']('mcpConfig.saving')]}):i[_0x2ec7c5(0x243)]('span',{'className':_0x2ec7c5(0x2bb),'children':[i[_0x2ec7c5(0x265)](H,{}),_0x586247['t'](_0x2ec7c5(0x229))]})}),i[_0x2ec7c5(0x265)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x30c),{'className':_0x2ec7c5(0x1f7),'children':'💡'}),i[_0x2ec7c5(0x243)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x2ec7c5(0x265)](_0x2ec7c5(0x379),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),i[_0x2ec7c5(0x243)]('div',{'children':['•',_0x586247['t'](_0x2ec7c5(0x353))]}),i[_0x2ec7c5(0x243)](_0x2ec7c5(0x379),{'children':['•',_0x586247['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x360554(0x354),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x360554(0x31f)],xe=(_0x363007,_0x10b516,_0xbff49,_0x5ba170)=>{for(var _0x4a9ad3=_0x5ba170>0x1?void 0x0:_0x5ba170?me(_0x10b516,_0xbff49):_0x10b516,_0xef6279=_0x363007['length']-0x1,_0x1bd27b;_0xef6279>=0x0;_0xef6279--)(_0x1bd27b=_0x363007[_0xef6279])&&(_0x4a9ad3=_0x1bd27b(_0x4a9ad3)||_0x4a9ad3);return _0x4a9ad3;},g=(_0x391413,_0x17dd8b)=>(_0x511f2f,_0x5f4e1c)=>_0x17dd8b(_0x511f2f,_0x5f4e1c,_0x391413);const O=_0x360554(0x210),D=_0x360554(0x2e3);exports[_0x360554(0x25d)]=class extends u[_0x360554(0x2f1)]{constructor(_0x3d422d,_0x2be2b1,_0x4ca31c,_0x27d417,_0x2c382e,_0x5b06c9,_0x3ea9be,_0x3173f2,_0x2a67ba,_0x41e441){const _0x114498=_0x360554;super(),I(this,_0x114498(0x21a),new M[(_0x114498(0x332))](!0x1)),I(this,_0x114498(0x256),new M[(_0x114498(0x332))]({})),I(this,_0x114498(0x276),new M[(_0x114498(0x332))]({})),I(this,_0x114498(0x306),new M[(_0x114498(0x332))]('')),I(this,_0x114498(0x25e),async _0x5d4179=>{const _0x563f75=_0x114498;var _0x22e966,_0x4bd035;this[_0x563f75(0x21a)][_0x563f75(0x236)](!0x0);try{const _0x1b3c38=await this[_0x563f75(0x2bf)](_0x5d4179);if(!_0x1b3c38[_0x563f75(0x1f3)]){this[_0x563f75(0x2c1)]['show']({'type':f[_0x563f75(0x318)][_0x563f75(0x36f)],'content':_0x1b3c38['errorMessage']||this[_0x563f75(0x20e)]['t'](_0x563f75(0x2c7))});return;}_0x5d4179[_0x563f75(0x297)]?await this[_0x563f75(0x2d1)][_0x563f75(0x2e2)](O,_0x5d4179['apiKey'][_0x563f75(0x21b)]()):await this[_0x563f75(0x2d1)]['removeItem'](O),this[_0x563f75(0x306)]['next'](((_0x22e966=_0x5d4179['apiKey'])==null?void 0x0:_0x22e966[_0x563f75(0x21b)]())||''),this[_0x563f75(0x34c)][_0x563f75(0x2ce)]({'Authorization':'Bearer\x20'+((_0x4bd035=_0x5d4179[_0x563f75(0x297)])==null?void 0x0:_0x4bd035[_0x563f75(0x21b)]())}),this[_0x563f75(0x2c1)][_0x563f75(0x20c)]({'type':f[_0x563f75(0x318)][_0x563f75(0x323)],'content':this[_0x563f75(0x20e)]['t'](_0x563f75(0x321))}),setTimeout(()=>{this['_dialogService']['close'](D);},0x320);}catch(_0x260f3e){this['_logService'][_0x563f75(0x292)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x260f3e),this[_0x563f75(0x2c1)]['show']({'type':f[_0x563f75(0x318)]['Error'],'content':this[_0x563f75(0x20e)]['t'](_0x563f75(0x205))});}finally{this[_0x563f75(0x21a)][_0x563f75(0x236)](!0x1);}}),(this[_0x114498(0x304)]=_0x3d422d,this[_0x114498(0x216)]=_0x2be2b1,this[_0x114498(0x24a)]=_0x4ca31c,this[_0x114498(0x2d1)]=_0x27d417,this['_dialogService']=_0x2c382e,this[_0x114498(0x2c1)]=_0x5b06c9,this[_0x114498(0x26c)]=_0x3ea9be,this[_0x114498(0x20e)]=_0x3173f2,this['_logService']=_0x2a67ba,this[_0x114498(0x34c)]=_0x41e441,this['_initConfigSync'](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0x360554(0x2a4)](){const _0x37e575=_0x360554,_0x34ae67=this[_0x37e575(0x24a)][_0x37e575(0x2ec)](P);_0x34ae67!=null&&_0x34ae67[_0x37e575(0x294)]&&this[_0x37e575(0x334)][_0x37e575(0x226)]({'id':D,'title':{'title':this['_localeService']['t'](_0x37e575(0x30f))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x47abca=_0x37e575;this[_0x47abca(0x334)][_0x47abca(0x341)](D);}});}[_0x360554(0x31c)](){const _0x2b374c=_0x360554;return this[_0x2b374c(0x256)]['value'];}['_registerComponent'](){const _0xab1573=_0x360554;this['disposeWithMe'](this['_componentManager'][_0xab1573(0x2e1)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){const _0x366087=_0x360554;return v[_0x366087(0x34e)](()=>{const _0x3cdb79=_0x366087;var _0x9456bc,_0x3800bf,_0x5a3e64;return i['jsx'](V,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x3cdb79(0x256)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x3cdb79(0x25e)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x9456bc=this[_0x3cdb79(0x34c)])==null?void 0x0:_0x9456bc[_0x3cdb79(0x1ff)],'connectionError$':(_0x3800bf=this['_mcpConnectionController'])==null?void 0x0:_0x3800bf[_0x3cdb79(0x301)],'currentSessionId$':(_0x5a3e64=this[_0x3cdb79(0x34c)])==null?void 0x0:_0x5a3e64[_0x3cdb79(0x2be)]});},this[_0x366087(0x304)]);}[_0x360554(0x278)](){const _0x1d526c=_0x360554;this['disposeWithMe'](this[_0x1d526c(0x24a)][_0x1d526c(0x201)](s[_0x1d526c(0x27a)])['subscribe'](_0x1fd00a=>{const _0x51ea15=_0x1d526c;this[_0x51ea15(0x256)]['next'](_0x1fd00a||{});}));const _0x3291f7=this[_0x1d526c(0x24a)]['getConfig'](s[_0x1d526c(0x27a)]);this[_0x1d526c(0x256)][_0x1d526c(0x236)](_0x3291f7||{}),this[_0x1d526c(0x32c)](this[_0x1d526c(0x24a)][_0x1d526c(0x201)](P)[_0x1d526c(0x2d6)](_0xb6cd47=>{const _0x2c4497=_0x1d526c;this[_0x2c4497(0x276)][_0x2c4497(0x236)](_0xb6cd47||{});}));const _0x58ee8b=this[_0x1d526c(0x24a)][_0x1d526c(0x2ec)](P);this[_0x1d526c(0x276)][_0x1d526c(0x236)](_0x58ee8b||{});}async[_0x360554(0x2b1)](){const _0x2e8c59=_0x360554,_0x1dfb48=this[_0x2e8c59(0x24a)][_0x2e8c59(0x2ec)](P);if(!(_0x1dfb48!=null&&_0x1dfb48['showDeveloperTools']))return;const _0x39657d=await this[_0x2e8c59(0x2d1)]['getItem'](O);_0x39657d&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x2e8c59(0x252)+_0x39657d}),this[_0x2e8c59(0x306)]['next'](_0x39657d));}async[_0x360554(0x2bf)](_0x5e8c2a){const _0x43ff2f=_0x360554;if(!_0x5e8c2a[_0x43ff2f(0x297)]||_0x5e8c2a[_0x43ff2f(0x297)][_0x43ff2f(0x21b)]()[_0x43ff2f(0x345)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x43ff2f(0x2cf))};if(_0x5e8c2a[_0x43ff2f(0x297)][_0x43ff2f(0x21b)]()[_0x43ff2f(0x345)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x43ff2f(0x20e)]['t'](_0x43ff2f(0x218))};try{const _0x43fb75=await this[_0x43ff2f(0x304)][_0x43ff2f(0x26a)](s[_0x43ff2f(0x217)])[_0x43ff2f(0x26b)](_0x5e8c2a[_0x43ff2f(0x297)][_0x43ff2f(0x21b)]());return _0x43fb75['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x43fb75['error']||this[_0x43ff2f(0x20e)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2f5090){return console[_0x43ff2f(0x366)](_0x43ff2f(0x32d),_0x2f5090),{'isValid':!0x0};}}},exports[_0x360554(0x25d)]=xe([g(0x0,u['Inject'](u[_0x360554(0x375)])),g(0x1,v[_0x360554(0x28a)]),g(0x2,u[_0x360554(0x2b5)]),g(0x3,u[_0x360554(0x336)]),g(0x4,v[_0x360554(0x2f2)]),g(0x5,v[_0x360554(0x214)]),g(0x6,u[_0x360554(0x302)](v['ComponentManager'])),g(0x7,u[_0x360554(0x302)](u[_0x360554(0x233)])),g(0x8,u[_0x360554(0x248)]),g(0x9,u[_0x360554(0x302)](s[_0x360554(0x217)]))],exports[_0x360554(0x25d)]);const b={'id':_0x360554(0x356),'type':u[_0x360554(0x2fb)]['COMMAND'],'handler':async(_0x483a94,_0xb4b5c8)=>(_0x483a94[_0x360554(0x26a)](exports[_0x360554(0x25d)])[_0x360554(0x2a4)](),!0x0)};function Z(_0x3fcbf0,_0x5caf0f){const _0x373a44=_0x360554;switch(_0x3fcbf0){case s[_0x373a44(0x35a)][_0x373a44(0x335)]:return _0x373a44(0x2ee);case s['MCPConnectionStatus'][_0x373a44(0x212)]:return _0x373a44(0x219);case s[_0x373a44(0x35a)]['CONNECTED']:return _0x373a44(0x27b);case s[_0x373a44(0x35a)][_0x373a44(0x2ab)]:switch(_0x5caf0f){case s[_0x373a44(0x373)][_0x373a44(0x333)]:return'mcpStatus.unauthorized';case s[_0x373a44(0x373)][_0x373a44(0x241)]:return _0x373a44(0x361);case s[_0x373a44(0x373)][_0x373a44(0x203)]:return _0x373a44(0x224);case s[_0x373a44(0x373)][_0x373a44(0x2d4)]:return _0x373a44(0x362);default:return _0x373a44(0x31a);}case s['MCPConnectionStatus'][_0x373a44(0x2d8)]:return _0x373a44(0x23c);default:return _0x373a44(0x35e);}}function Se(_0x192e2a,_0xc08b04,_0x1f060b,_0x166e93=!0x0){const _0xfb9b80=_0x360554,_0x10f06e=Z(_0x192e2a,_0xc08b04),_0x1b1351=_0x1f060b['t'](_0x10f06e);return _0x166e93?_0x192e2a===s['MCPConnectionStatus'][_0xfb9b80(0x335)]&&_0xc08b04===s[_0xfb9b80(0x373)][_0xfb9b80(0x333)]?_0x1b1351+'\x20-\x20'+_0x1f060b['t'](_0xfb9b80(0x2a0)):_0x192e2a===s[_0xfb9b80(0x35a)][_0xfb9b80(0x259)]?''+_0x1b1351:_0x192e2a===s['MCPConnectionStatus'][_0xfb9b80(0x335)]||_0x192e2a===s[_0xfb9b80(0x35a)]['FAILED']?_0x1b1351+_0xfb9b80(0x245)+_0x1f060b['t'](_0xfb9b80(0x305)):_0x1b1351:_0x1b1351;}function Pe(_0x58ddc9){const _0xeb890e=_0x360554;switch(_0x58ddc9){case s['MCPConnectionStatus'][_0xeb890e(0x259)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0xeb890e(0x212)]:case s['MCPConnectionStatus']['RETRYING']:return'univer-text-yellow-500';case s[_0xeb890e(0x35a)]['FAILED']:case s[_0xeb890e(0x35a)][_0xeb890e(0x335)]:return _0xeb890e(0x365);default:return'univer-text-gray-500';}}function W(_0x1cdf4b){const _0x375d94=_0x360554,{status$:_0x43d770,error$:_0x5c926e,onConfigure:_0x517c4a,showClickable:_0x47eba7=!0x0}=_0x1cdf4b,_0x53187e=v['useObservable'](_0x43d770,s[_0x375d94(0x35a)][_0x375d94(0x335)]),_0x12ce61=v[_0x375d94(0x326)](_0x5c926e,s[_0x375d94(0x373)]['NONE']),_0xe7a498=v[_0x375d94(0x29c)](u['LocaleService']),_0x191460=_0x53187e===s[_0x375d94(0x35a)][_0x375d94(0x259)];_0x53187e===s['MCPConnectionStatus']['CONNECTING']||s[_0x375d94(0x35a)]['RETRYING'];const _0x498def=_0xe7a498['t'](Z(_0x53187e,_0x12ce61)),_0x610544=Se(_0x53187e,_0x12ce61,_0xe7a498,_0x47eba7),_0x2f96fa=Pe(_0x53187e),_0x316baa=_0x191460?i[_0x375d94(0x265)](q,{}):i[_0x375d94(0x265)](Y,{}),_0x1733bd=d[_0x375d94(0x31b)](()=>{_0x47eba7&&_0x517c4a&&_0x517c4a();},[_0x47eba7,_0x517c4a]);function _0x4a586b(){const _0x6cfa8b=_0x375d94;return i[_0x6cfa8b(0x243)](_0x6cfa8b(0x379),{'className':f[_0x6cfa8b(0x2cc)]('univer-flex\x20univer-items-center',_0x47eba7&&_0x517c4a&&_0x6cfa8b(0x358)),'role':'button','onClick':_0x47eba7&&_0x517c4a?_0x1733bd:void 0x0,'children':[i['jsx']('div',{'className':f['clsx'](_0x6cfa8b(0x325),_0x2f96fa),'children':_0x316baa}),i[_0x6cfa8b(0x265)](_0x6cfa8b(0x379),{'className':_0x6cfa8b(0x26d),'children':_0x498def})]});}return i['jsx'](f[_0x375d94(0x287)],{'title':_0x610544,'placement':'bottom','children':_0x4a586b()});}var Ie=Object[_0x360554(0x31f)],_e=(_0x44cc7e,_0x441531,_0x9cf66f,_0x2184d6)=>{const _0x29d5dc=_0x360554;for(var _0x1fe5a2=_0x2184d6>0x1?void 0x0:_0x2184d6?Ie(_0x441531,_0x9cf66f):_0x441531,_0x5ef1bb=_0x44cc7e[_0x29d5dc(0x345)]-0x1,_0x243c0b;_0x5ef1bb>=0x0;_0x5ef1bb--)(_0x243c0b=_0x44cc7e[_0x5ef1bb])&&(_0x1fe5a2=_0x243c0b(_0x1fe5a2)||_0x1fe5a2);return _0x1fe5a2;},N=(_0x396183,_0x1ef7ea)=>(_0x255d8d,_0x53afcc)=>_0x1ef7ea(_0x255d8d,_0x53afcc,_0x396183);exports['MCPConnectionUIController']=class extends u[_0x360554(0x2f1)]{constructor(_0x2ba38c,_0x143fe8,_0x5b2bdb,_0x405fda){const _0x4dd8ee=_0x360554;super(),this[_0x4dd8ee(0x304)]=_0x2ba38c,this['_connectionController']=_0x143fe8,this['_uiPartsService']=_0x5b2bdb,this['_configService']=_0x405fda,this[_0x4dd8ee(0x260)](),this['_initStatusComponent']();}[_0x360554(0x260)](){const _0x9e6d4a=_0x360554,_0x320d72=this[_0x9e6d4a(0x24a)][_0x9e6d4a(0x2ec)](P);_0x320d72!=null&&_0x320d72[_0x9e6d4a(0x294)]&&(this[_0x9e6d4a(0x282)][_0x9e6d4a(0x237)]=!0x1);}['_initStatusComponent'](){const _0x5b317b=_0x360554,_0x7b14c0=this[_0x5b317b(0x24a)][_0x5b317b(0x2ec)](P);(_0x7b14c0==null?void 0x0:_0x7b14c0[_0x5b317b(0x31d)])!==!0x1&&this[_0x5b317b(0x32c)](this[_0x5b317b(0x216)][_0x5b317b(0x2d9)](v[_0x5b317b(0x22b)][_0x5b317b(0x313)],()=>{const _0x5728aa=_0x5b317b;var _0x35d985;return v[_0x5728aa(0x34e)](ye({'status$':this['_connectionController'][_0x5728aa(0x1ff)],'error$':this[_0x5728aa(0x282)][_0x5728aa(0x301)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x35d985=_0x7b14c0==null?void 0x0:_0x7b14c0[_0x5728aa(0x294)])!=null?_0x35d985:!0x1}),this[_0x5728aa(0x304)]);}));}['_handleConfigure'](){const _0x5541b3=_0x360554;this[_0x5541b3(0x304)][_0x5541b3(0x26a)](exports['MCPConfigUIController'])[_0x5541b3(0x2a4)]();}},exports[_0x360554(0x286)]=_e([N(0x0,u[_0x360554(0x302)](u['Injector'])),N(0x1,u[_0x360554(0x302)](s[_0x360554(0x217)])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x360554(0x2b5)])],exports[_0x360554(0x286)]);function ye(_0x2b9331){const {status$:_0x3ce0a4,error$:_0x597238,onConfigure:_0x2752c4,showClickable:_0x39d222}=_0x2b9331;return function(){const _0x2252af=_0x5312;return i[_0x2252af(0x265)](W,{'status$':_0x3ce0a4,'error$':_0x597238,'onConfigure':_0x2752c4,'showClickable':_0x39d222});};}function Me(_0x5bef5b){const _0xe2121c=_0x360554;return{'id':b['id'],'type':v[_0xe2121c(0x2fe)][_0xe2121c(0x311)],'icon':_0xe2121c(0x2dd),'title':_0xe2121c(0x30f),'tooltip':_0xe2121c(0x30f)};}const Ne={[v[_0x360554(0x351)][_0x360554(0x2f4)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x15ad76,_0x4f9bb2,_0x6d6a43,_0x539103)=>{const _0x2d903d=_0x360554;for(var _0x19366d=_0x539103>0x1?void 0x0:_0x539103?be(_0x4f9bb2,_0x6d6a43):_0x4f9bb2,_0x587135=_0x15ad76[_0x2d903d(0x345)]-0x1,_0x4284a6;_0x587135>=0x0;_0x587135--)(_0x4284a6=_0x15ad76[_0x587135])&&(_0x19366d=_0x4284a6(_0x19366d)||_0x19366d);return _0x19366d;},z=(_0x3ce24b,_0x22387a)=>(_0x4e1658,_0x45c7c8)=>_0x22387a(_0x4e1658,_0x45c7c8,_0x3ce24b);exports[_0x360554(0x22e)]=class extends u[_0x360554(0x2f1)]{constructor(_0x34c0d5,_0x4f8a7d){const _0x3edd09=_0x360554;super(),this['_commandService']=_0x34c0d5,this[_0x3edd09(0x1f8)]=_0x4f8a7d,this[_0x3edd09(0x2da)](),this[_0x3edd09(0x377)]();}[_0x360554(0x2da)](){const _0x10875e=_0x360554;[b][_0x10875e(0x247)](_0x2c09b1=>{const _0x1a9161=_0x10875e;this[_0x1a9161(0x32c)](this['_commandService'][_0x1a9161(0x36c)](_0x2c09b1));});}[_0x360554(0x377)](){const _0x53c892=_0x360554;this[_0x53c892(0x1f8)]['mergeMenu'](Ne);}},exports[_0x360554(0x22e)]=je([z(0x0,u[_0x360554(0x1f2)]),z(0x1,v['IMenuManagerService'])],exports[_0x360554(0x22e)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x360554(0x33d),'failed':_0x360554(0x30b),'retrying':_0x360554(0x2e8),'unknown':_0x360554(0x2f0),'unauthorized':_0x360554(0x344),'sessionOccupied':_0x360554(0x2ba),'networkError':_0x360554(0x2e0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x360554(0x2b9),'clickToConfigure':_0x360554(0x327)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x360554(0x33c),'apiKey':_0x360554(0x24d),'apiKeyPlaceholder':_0x360554(0x238),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x360554(0x309),'enableAuthHint':_0x360554(0x281),'connectionInfo':_0x360554(0x1fa),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x360554(0x308),'configStepTitle':_0x360554(0x28f),'configStep1':_0x360554(0x2ad),'configStep2':_0x360554(0x303),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x360554(0x24e),'sessionIdDescription':_0x360554(0x355),'authorizationDescription':_0x360554(0x34f),'configParameters':_0x360554(0x2f5),'maxRetries':_0x360554(0x271),'save':_0x360554(0x29a),'saving':'Saving...','note1':_0x360554(0x24b),'note2':_0x360554(0x337),'configSaved':_0x360554(0x213),'configError':_0x360554(0x22d),'apiApplyInfo':{'title':_0x360554(0x30d),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x360554(0x220),'getStarted':_0x360554(0x33e)},'validation':{'apiKeyRequired':_0x360554(0x2b2),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x360554(0x242)},'connectionStatus':{'disconnected':_0x360554(0x2b3),'connecting':_0x360554(0x32e),'connected':_0x360554(0x338),'failed':_0x360554(0x370),'retrying':_0x360554(0x2ae)},'connectionError':{'unauthorized':_0x360554(0x340),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x360554(0x244),'maxRetriesExceeded':_0x360554(0x316)}}},we={'mcpStatus':{'disconnected':_0x360554(0x324),'connecting':_0x360554(0x320),'connected':_0x360554(0x2d2),'failed':'MCP\x20连接失败','retrying':_0x360554(0x360),'unknown':_0x360554(0x261),'unauthorized':_0x360554(0x343),'sessionOccupied':_0x360554(0x215),'networkError':_0x360554(0x2a3),'maxRetriesExceeded':_0x360554(0x273),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x360554(0x28b)},'mcpConfig':{'title':_0x360554(0x22a),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x360554(0x25c),'apiKeyPlaceholder':_0x360554(0x307),'apiKeyHint':_0x360554(0x298),'enableAuth':_0x360554(0x30a),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x360554(0x32f),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x360554(0x2d3),'configStepTitle':'配置步骤:','configStep1':_0x360554(0x317),'configStep2':_0x360554(0x35c),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x360554(0x2f8),'sessionIdDescription':_0x360554(0x291),'authorizationDescription':_0x360554(0x2a9),'configParameters':_0x360554(0x2ac),'maxRetries':_0x360554(0x1f6),'save':_0x360554(0x2fa),'saving':_0x360554(0x230),'note1':_0x360554(0x2f3),'note2':_0x360554(0x280),'configSaved':_0x360554(0x2c6),'configError':_0x360554(0x21c),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x360554(0x2d0),'univerAiLabel':_0x360554(0x2c9),'getStarted':_0x360554(0x264)},'validation':{'apiKeyRequired':_0x360554(0x322),'apiKeyTooShort':_0x360554(0x2ed),'invalidConfig':_0x360554(0x31e),'invalidApiKey':_0x360554(0x2c3)},'connectionStatus':{'disconnected':'未连接','connecting':_0x360554(0x1fd),'connected':_0x360554(0x329),'failed':_0x360554(0x2ca),'retrying':_0x360554(0x28e)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x360554(0x20f),'networkError':_0x360554(0x33b),'maxRetriesExceeded':_0x360554(0x2fd)}}};var Ae=Object[_0x360554(0x27e)],Oe=Object[_0x360554(0x31f)],De=(_0x31a63c,_0x58151a,_0xff2c9b)=>_0x58151a in _0x31a63c?Ae(_0x31a63c,_0x58151a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xff2c9b}):_0x31a63c[_0x58151a]=_0xff2c9b,Ue=(_0x5d00b2,_0x14cfb7,_0x4cd942,_0x35f9d2)=>{const _0x3201d5=_0x360554;for(var _0x40b0df=_0x35f9d2>0x1?void 0x0:_0x35f9d2?Oe(_0x14cfb7,_0x4cd942):_0x14cfb7,_0xf207f0=_0x5d00b2[_0x3201d5(0x345)]-0x1,_0x3acfba;_0xf207f0>=0x0;_0xf207f0--)(_0x3acfba=_0x5d00b2[_0xf207f0])&&(_0x40b0df=_0x3acfba(_0x40b0df)||_0x40b0df);return _0x40b0df;},y=(_0x3ec787,_0x20d08a)=>(_0x4f6c6f,_0x59f447)=>_0x20d08a(_0x4f6c6f,_0x59f447,_0x3ec787),$e=(_0x2d5c68,_0x378a11,_0x48178a)=>De(_0x2d5c68,_0x378a11+'',_0x48178a);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x38f803=L,_0x1bfece,_0x1a87b6,_0x306270,_0x396284,_0x4873b7){const _0x3f492d=_0x360554;super(),this[_0x3f492d(0x2a7)]=_0x38f803,this[_0x3f492d(0x304)]=_0x1bfece,this[_0x3f492d(0x24a)]=_0x1a87b6,this[_0x3f492d(0x216)]=_0x306270,this[_0x3f492d(0x2d1)]=_0x396284,this[_0x3f492d(0x20e)]=_0x4873b7;const {..._0x3db70d}=u[_0x3f492d(0x227)]({},L,this[_0x3f492d(0x2a7)]);this[_0x3f492d(0x24a)][_0x3f492d(0x314)](P,_0x3db70d);}async[_0x360554(0x25a)](){const _0x467773=_0x360554,_0x5afc4b=[[exports[_0x467773(0x286)]],[exports[_0x467773(0x25d)]],[exports[_0x467773(0x22e)]]];this[_0x467773(0x304)][_0x467773(0x26e)](A[_0x467773(0x2f7)])||_0x5afc4b[_0x467773(0x24f)]([A[_0x467773(0x2f7)],{'useClass':A[_0x467773(0x272)]}]),_0x5afc4b[_0x467773(0x247)](_0x58add0=>this[_0x467773(0x304)]['add'](_0x58add0)),this[_0x467773(0x304)][_0x467773(0x26a)](exports[_0x467773(0x286)]),this[_0x467773(0x304)][_0x467773(0x26a)](exports[_0x467773(0x25d)]),this[_0x467773(0x304)]['get'](exports[_0x467773(0x22e)]);}},$e(exports['UniverMCPUIPlugin'],'pluginName',_0x360554(0x330)),exports[_0x360554(0x310)]=Ue([u['DependentOn'](s[_0x360554(0x33a)]),y(0x1,u[_0x360554(0x302)](u['Injector'])),y(0x2,u[_0x360554(0x2b5)]),y(0x3,v[_0x360554(0x28a)]),y(0x4,u[_0x360554(0x336)]),y(0x5,u['Inject'](u['LocaleService']))],exports[_0x360554(0x310)]),exports[_0x360554(0x2ea)]=V,exports[_0x360554(0x2bd)]=W,exports[_0x360554(0x2e4)]=b,exports[_0x360554(0x207)]=Ee,exports['zhCN']=we;
|
|
1
|
+
'use strict';const _0x417fc1=_0x4d62;(function(_0x23ccba,_0x430cc4){const _0x4adc08=_0x4d62,_0x5b156e=_0x23ccba();while(!![]){try{const _0x4f7e8c=-parseInt(_0x4adc08(0x1ac))/0x1+parseInt(_0x4adc08(0x13f))/0x2*(parseInt(_0x4adc08(0x13d))/0x3)+-parseInt(_0x4adc08(0x15a))/0x4*(parseInt(_0x4adc08(0xfa))/0x5)+-parseInt(_0x4adc08(0x139))/0x6+parseInt(_0x4adc08(0x237))/0x7*(-parseInt(_0x4adc08(0x27f))/0x8)+-parseInt(_0x4adc08(0x1f6))/0x9*(-parseInt(_0x4adc08(0x148))/0xa)+parseInt(_0x4adc08(0x20f))/0xb;if(_0x4f7e8c===_0x430cc4)break;else _0x5b156e['push'](_0x5b156e['shift']());}catch(_0x120d39){_0x5b156e['push'](_0x5b156e['shift']());}}}(_0x1944,0x60a9d));var ae=Object[_0x417fc1(0x101)],le=(_0x1f1c87,_0xe66d1e,_0x456e6c)=>_0xe66d1e in _0x1f1c87?ae(_0x1f1c87,_0xe66d1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x456e6c}):_0x1f1c87[_0xe66d1e]=_0x456e6c,I=(_0x1d0f3c,_0x53f741,_0x1f5bb3)=>le(_0x1d0f3c,typeof _0x53f741!=_0x417fc1(0x25c)?_0x53f741+'':_0x53f741,_0x1f5bb3);Object[_0x417fc1(0x101)](exports,Symbol[_0x417fc1(0x22e)],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x2e0e94,..._0x4cd645}){const _0x530024=_0x417fc1,{icon:_0x5c8f4c,id:_0x578549,className:_0x9bbbe2,extend:_0xb463e6,..._0xd6307}=_0x4cd645,_0x548ca3=(_0x530024(0x15e)+_0x578549+'\x20'+(_0x9bbbe2||''))[_0x530024(0x120)](),_0x3f4e27=d[_0x530024(0x150)]('_'+de());return G(_0x5c8f4c,''+_0x578549,{'defIds':_0x5c8f4c[_0x530024(0x266)],'idSuffix':_0x3f4e27[_0x530024(0x196)]},{'ref':_0x2e0e94,'className':_0x548ca3,..._0xd6307},_0xb463e6);}function G(_0x5de7a5,_0x3c6f5a,_0x1a6229,_0x37ea57,_0x24fc49){const _0xd56654=_0x417fc1;return d[_0xd56654(0x184)](_0x5de7a5['tag'],{'key':_0x3c6f5a,...ue(_0x5de7a5,_0x1a6229,_0x24fc49),..._0x37ea57},(ve(_0x5de7a5,_0x1a6229)[_0xd56654(0x103)]||[])['map']((_0x5a1969,_0x3b7673)=>G(_0x5a1969,_0x3c6f5a+'-'+_0x5de7a5[_0xd56654(0x1b1)]+'-'+_0x3b7673,_0x1a6229,void 0x0,_0x24fc49)));}function ue(_0x248634,_0x5c7f91,_0x4f32aa){const _0xd9c418=_0x417fc1,_0x372e31={..._0x248634[_0xd9c418(0x163)]};_0x4f32aa!=null&&_0x4f32aa[_0xd9c418(0x25a)]&&_0x372e31[_0xd9c418(0x13c)]===_0xd9c418(0x25a)&&(_0x372e31[_0xd9c418(0x13c)]=_0x4f32aa[_0xd9c418(0x25a)]),_0x248634[_0xd9c418(0x1b1)]===_0xd9c418(0x1d7)&&_0x372e31['id']&&(_0x372e31['id']=_0x372e31['id']+_0x5c7f91[_0xd9c418(0x1e3)]),Object['entries'](_0x372e31)[_0xd9c418(0x12e)](([_0x2769dc,_0x7e96de])=>{const _0x410150=_0xd9c418;_0x2769dc===_0x410150(0x1d7)&&typeof _0x7e96de==_0x410150(0x136)&&(_0x372e31[_0x2769dc]=_0x7e96de[_0x410150(0x1cc)](/url\(#(.*)\)/,_0x410150(0x1c7)+_0x5c7f91[_0x410150(0x1e3)]+')'));});const {defIds:_0x54cd4b}=_0x5c7f91;return!_0x54cd4b||_0x54cd4b['length']===0x0||(_0x248634[_0xd9c418(0x1b1)]==='use'&&_0x372e31[_0xd9c418(0x15b)]&&(_0x372e31[_0xd9c418(0x15b)]=_0x372e31[_0xd9c418(0x15b)]+_0x5c7f91[_0xd9c418(0x1e3)]),Object[_0xd9c418(0x198)](_0x372e31)[_0xd9c418(0x12e)](([_0x512ba0,_0x3c8dba])=>{const _0x18ec94=_0xd9c418;typeof _0x3c8dba=='string'&&(_0x372e31[_0x512ba0]=_0x3c8dba[_0x18ec94(0x1cc)](/url\(#(.*)\)/,_0x18ec94(0x1c7)+_0x5c7f91['idSuffix']+')'));})),_0x372e31;}function ve(_0x5d3384,_0x28d528){const _0x5bc89a=_0x417fc1;var _0x2d3ffb;const {defIds:_0x566290}=_0x28d528;return!_0x566290||_0x566290['length']===0x0?_0x5d3384:_0x5d3384['tag']===_0x5bc89a(0x1d0)&&((_0x2d3ffb=_0x5d3384[_0x5bc89a(0x103)])!=null&&_0x2d3ffb[_0x5bc89a(0x109)])?{..._0x5d3384,'children':_0x5d3384[_0x5bc89a(0x103)][_0x5bc89a(0x13a)](_0x512b2e=>typeof _0x512b2e[_0x5bc89a(0x163)]['id']=='string'&&_0x566290&&_0x566290['includes'](_0x512b2e[_0x5bc89a(0x163)]['id'])?{..._0x512b2e,'attrs':{..._0x512b2e['attrs'],'id':_0x512b2e[_0x5bc89a(0x163)]['id']+_0x28d528[_0x5bc89a(0x1e3)]}}:_0x512b2e)}:_0x5d3384;}function de(){const _0x29fa68=_0x417fc1;return Math[_0x29fa68(0x1e2)]()[_0x29fa68(0x210)](0x24)[_0x29fa68(0x1c4)](0x2,0x8);}_[_0x417fc1(0x130)]='UniverIcon';const Ce={'tag':_0x417fc1(0x253),'attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x269),'width':_0x417fc1(0x169),'height':'1em'},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':_0x417fc1(0x274),'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':_0x417fc1(0x1e5),'clipRule':_0x417fc1(0x1e5)}}]},H=d[_0x417fc1(0x122)](function(_0x1844bc,_0x1c9b95){const _0x1af580=_0x417fc1;return d[_0x1af580(0x184)](_,Object[_0x1af580(0x243)]({},_0x1844bc,{'id':'check-mark-icon','ref':_0x1c9b95,'icon':Ce}));});H[_0x417fc1(0x130)]=_0x417fc1(0x21c);const ge={'tag':_0x417fc1(0x253),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x269),'width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':'path','attrs':{'fill':_0x417fc1(0x274),'d':_0x417fc1(0x1af)}}]},B=d['forwardRef'](function(_0x198efc,_0x2b0a7e){const _0x229d3d=_0x417fc1;return d[_0x229d3d(0x184)](_,Object['assign']({},_0x198efc,{'id':_0x229d3d(0x15d),'ref':_0x2b0a7e,'icon':ge}));});B[_0x417fc1(0x130)]=_0x417fc1(0x1fa);const fe={'tag':'svg','attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x269),'width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':'currentColor','d':_0x417fc1(0x23f)}},{'tag':_0x417fc1(0x203),'attrs':{'fill':'currentColor','d':_0x417fc1(0x160)}},{'tag':_0x417fc1(0x203),'attrs':{'fill':'currentColor','d':_0x417fc1(0x107),'fillRule':_0x417fc1(0x1e5),'clipRule':_0x417fc1(0x1e5)}}]},F=d['forwardRef'](function(_0x5b0182,_0x1692b5){const _0x28e32c=_0x417fc1;return d[_0x28e32c(0x184)](_,Object[_0x28e32c(0x243)]({},_0x5b0182,{'id':'help-icon','ref':_0x1692b5,'icon':fe}));});F[_0x417fc1(0x130)]=_0x417fc1(0x142);function _0x4d62(_0x37c416,_0x5b8b9f){const _0x194456=_0x1944();return _0x4d62=function(_0x4d6243,_0x5497e0){_0x4d6243=_0x4d6243-0xf5;let _0x1dfe49=_0x194456[_0x4d6243];return _0x1dfe49;},_0x4d62(_0x37c416,_0x5b8b9f);}const pe={'tag':_0x417fc1(0x253),'attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':'0\x200\x2016\x2016','width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x417fc1(0x203),'attrs':{'stroke':_0x417fc1(0x274),'d':_0x417fc1(0x156),'strokeLinecap':'round','strokeLinejoin':_0x417fc1(0xfb),'strokeWidth':1.2}}]},{'tag':_0x417fc1(0x1d0),'attrs':{},'children':[{'tag':_0x417fc1(0x1a4),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':_0x417fc1(0x1f2),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x417fc1(0x1ff)]},Y=d[_0x417fc1(0x122)](function(_0x39bd97,_0x1f8a60){const _0x415ad1=_0x417fc1;return d[_0x415ad1(0x184)](_,Object[_0x415ad1(0x243)]({},_0x39bd97,{'id':_0x415ad1(0x1ca),'ref':_0x1f8a60,'icon':pe}));});Y[_0x417fc1(0x130)]=_0x417fc1(0x153);const he={'tag':_0x417fc1(0x253),'attrs':{'xmlns':_0x417fc1(0x164),'fill':_0x417fc1(0x28a),'viewBox':_0x417fc1(0x1f1),'width':_0x417fc1(0x169),'height':_0x417fc1(0x169)},'children':[{'tag':'g','attrs':{'clipPath':_0x417fc1(0x1da)},'children':[{'tag':_0x417fc1(0x203),'attrs':{'stroke':_0x417fc1(0x274),'d':_0x417fc1(0x229),'strokeLinecap':_0x417fc1(0xfb),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x417fc1(0x1d0),'attrs':{},'children':[{'tag':_0x417fc1(0x1a4),'attrs':{'id':_0x417fc1(0x186)},'children':[{'tag':_0x417fc1(0x203),'attrs':{'fill':_0x417fc1(0x1f2),'d':_0x417fc1(0x1d1),'transform':_0x417fc1(0x18f)}}]}]}],'defIds':[_0x417fc1(0x186)]},q=d['forwardRef'](function(_0x35a7c8,_0x22ea9c){const _0x239967=_0x417fc1;return d['createElement'](_,Object[_0x239967(0x243)]({},_0x35a7c8,{'id':_0x239967(0x129),'ref':_0x22ea9c,'icon':he}));});q[_0x417fc1(0x130)]=_0x417fc1(0x1fb);function V(_0x7d4398){const _0x1916ce=_0x417fc1;var _0x308bfd,_0x128652;const {mcpCoreConfig:_0x18c041,onSave:_0x4afed8,loading:_0x38b628=!0x1,config:_0x1f5ff4,connectionStatus$:_0x3ab1ad,connectionError$:_0x13fb14,currentApiKey$:_0x5235ab,currentSessionId$:_0x1c7e61}=_0x7d4398,_0x22ea9e=v[_0x1916ce(0x21e)](u[_0x1916ce(0x10a)]),_0x45de82=v[_0x1916ce(0x10f)](_0x3ab1ad,s[_0x1916ce(0x11e)][_0x1916ce(0x24d)]),_0xca95a8=v[_0x1916ce(0x10f)](_0x13fb14,s[_0x1916ce(0x131)][_0x1916ce(0x1a6)]),_0x4cf841=v[_0x1916ce(0x10f)](_0x1c7e61,''),_0x4b6f47=v[_0x1916ce(0x10f)](_0x5235ab,''),[_0x49c2c8,_0x472ce9]=d['useState'](_0x4b6f47||''),_0x3e7c55=!0x0,_0x352e50=_0x1f5ff4['showDeveloperTools']&&_0x18c041[_0x1916ce(0x1c3)]&&(_0x18c041['mcpServerUrl'][_0x1916ce(0x25e)](_0x1916ce(0x19a))||_0x18c041[_0x1916ce(0x1c3)][_0x1916ce(0x25e)](_0x1916ce(0x16b))),_0x5211ed=(_0x308bfd=_0x18c041[_0x1916ce(0x1c3)])==null?void 0x0:_0x308bfd[_0x1916ce(0x25e)]('univer.plus'),_0x297372=(_0x128652=_0x18c041[_0x1916ce(0x1c3)])==null?void 0x0:_0x128652[_0x1916ce(0x25e)](_0x1916ce(0x16b)),_0x1a75bf=_0x5211ed?_0x1916ce(0x27d):_0x1916ce(0x290),_0x3f70c7=_0x1f5ff4[_0x1916ce(0x251)]&&(_0x5211ed||_0x297372),[_0x2d8e04,_0x5c1d2a]=d['useState'](!_0x49c2c8[_0x1916ce(0x120)]()),_0x44f01c=(_0x40fcc7,_0x20267c)=>{const _0x7fc9ba=_0x1916ce;if(_0x20267c===s[_0x7fc9ba(0x131)][_0x7fc9ba(0x102)])return _0x7fc9ba(0x141);switch(_0x40fcc7){case s['MCPConnectionStatus'][_0x7fc9ba(0x193)]:return _0x7fc9ba(0x10d);case s[_0x7fc9ba(0x11e)][_0x7fc9ba(0x1d8)]:case s[_0x7fc9ba(0x11e)][_0x7fc9ba(0x168)]:return _0x7fc9ba(0x254);case s[_0x7fc9ba(0x11e)]['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x7fc9ba(0x26f);}},_0x24fd50=(_0x40df51,_0x216a48)=>{const _0x3736a6=_0x1916ce;if(_0x216a48===s[_0x3736a6(0x131)][_0x3736a6(0x102)])return'univer-bg-red-500';switch(_0x40df51){case s[_0x3736a6(0x11e)]['CONNECTED']:return _0x3736a6(0x1c6);case s[_0x3736a6(0x11e)][_0x3736a6(0x1d8)]:case s[_0x3736a6(0x11e)][_0x3736a6(0x168)]:return _0x3736a6(0x218);case s['MCPConnectionStatus']['FAILED']:return _0x3736a6(0xfe);default:return _0x3736a6(0x1ee);}},_0x4cedf3=_0x335811=>{const _0x33f6b8=_0x1916ce;switch(_0x335811){case s[_0x33f6b8(0x11e)]['CONNECTED']:return _0x22ea9e['t'](_0x33f6b8(0x100));case s['MCPConnectionStatus']['CONNECTING']:return _0x22ea9e['t'](_0x33f6b8(0x1bc));case s[_0x33f6b8(0x11e)][_0x33f6b8(0x236)]:return _0x22ea9e['t'](_0x33f6b8(0x11d));case s[_0x33f6b8(0x11e)]['RETRYING']:return _0x22ea9e['t'](_0x33f6b8(0x11b));default:return _0x22ea9e['t'](_0x33f6b8(0x151));}},_0x416186=_0x34069c=>{const _0x30d4ab=_0x1916ce;switch(_0x34069c){case s[_0x30d4ab(0x131)][_0x30d4ab(0x102)]:return _0x22ea9e['t'](_0x30d4ab(0x1a1));case s[_0x30d4ab(0x131)][_0x30d4ab(0xf5)]:return _0x22ea9e['t'](_0x30d4ab(0x1c1));case s[_0x30d4ab(0x131)]['NETWORK_ERROR']:return _0x22ea9e['t'](_0x30d4ab(0x19b));case s[_0x30d4ab(0x131)]['MAX_RETRIES_EXCEEDED']:return _0x22ea9e['t'](_0x30d4ab(0x258));default:return'';}},_0x249ef7=d[_0x1916ce(0x1b2)](()=>{const _0x1bd053=_0x1916ce,_0x1c90ca={..._0x18c041,'apiKey':_0x49c2c8[_0x1bd053(0x120)](),'enableAuth':_0x3e7c55};_0x4afed8(_0x1c90ca);},[_0x18c041,_0x49c2c8,_0x3e7c55,_0x4afed8]),_0xef685=_0x49c2c8['trim']()[_0x1916ce(0x109)]>0x0;return i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x166),'children':[i[_0x1916ce(0x213)]('div',{'className':_0x1916ce(0x27c),'children':i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x171),'children':[i['jsx']('div',{'className':_0x1916ce(0x1ba),'children':i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x1b6),'children':'⚙'})}),i['jsx'](_0x1916ce(0x12f),{'children':i[_0x1916ce(0x213)]('p',{'className':_0x1916ce(0xf6),'children':_0x22ea9e['t']('mcpConfig.description')})})]})}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x265),'children':[i[_0x1916ce(0x213)]('div',{'className':f[_0x1916ce(0x147)](_0x1916ce(0xfd),_0x44f01c(_0x45de82,_0xca95a8)),'children':i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x1ea),'children':[i['jsx'](_0x1916ce(0x12f),{'className':f[_0x1916ce(0x147)](_0x1916ce(0x1a8),_0x24fd50(_0x45de82,_0xca95a8))}),i['jsx'](_0x1916ce(0x24c),{'className':_0x1916ce(0x222),'children':_0x4cedf3(_0x45de82)})]})}),_0xca95a8!==s[_0x1916ce(0x131)][_0x1916ce(0x1a6)]&&(_0x45de82===s['MCPConnectionStatus'][_0x1916ce(0x236)]||_0xca95a8===s['MCPConnectionError'][_0x1916ce(0x102)])&&i['jsx'](_0x1916ce(0x12f),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x135),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x110),'children':'⚠️'}),i[_0x1916ce(0x213)]('p',{'className':_0x1916ce(0x247),'children':_0x416186(_0xca95a8)})]})})]}),i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x220),'children':i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x165),'children':[i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x205),'children':[i[_0x1916ce(0x197)]('label',{'className':_0x1916ce(0x273),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'🔑'}),'\x20',_0x22ea9e['t'](_0x1916ce(0x182)),i['jsx']('span',{'className':_0x1916ce(0x167),'children':'*'}),_0x352e50&&i[_0x1916ce(0x213)]('a',{'className':_0x1916ce(0x16e),'title':_0x22ea9e['t']('mcpConfig.apiApplyInfo.title'),'role':_0x1916ce(0x1df),'onClick':()=>_0x5c1d2a(!0x0),'children':i['jsx'](F,{})})]}),i[_0x1916ce(0x213)](f[_0x1916ce(0x260)],{'type':_0x1916ce(0x16a),'placeholder':_0x22ea9e['t'](_0x1916ce(0x225)),'value':_0x49c2c8,'disabled':_0x38b628,'autoComplete':_0x1916ce(0x26e),'onChange':_0x472ce9}),i[_0x1916ce(0x213)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x22ea9e['t']('mcpConfig.apiKeyHint')})]}),_0x352e50&&_0x2d8e04&&i['jsxs']('div',{'className':_0x1916ce(0x24f),'children':[i['jsx']('a',{'className':_0x1916ce(0x155),'role':_0x1916ce(0x1df),'onClick':()=>_0x5c1d2a(!0x1),'children':i['jsx'](B,{'className':_0x1916ce(0x1b3)})}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i['jsx']('div',{'className':_0x1916ce(0x17a),'children':i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x143),'children':'🚀'})}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x1f4),'children':[i[_0x1916ce(0x213)]('h4',{'className':_0x1916ce(0x280),'children':_0x22ea9e['t'](_0x1916ce(0x246))}),i['jsx']('p',{'className':_0x1916ce(0x25d),'children':_0x22ea9e['t']('mcpConfig.apiApplyInfo.description')}),i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x1ad),'children':_0x3f70c7&&i[_0x1916ce(0x197)]('a',{'className':_0x1916ce(0x259),'href':_0x1a75bf,'target':'_blank','rel':_0x1916ce(0x281),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'🤖'}),_0x22ea9e['t'](_0x1916ce(0x1e1)),i['jsx']('span',{'className':_0x1916ce(0x140),'children':'↗'})]})}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x289),'children':['✨','\x20',_0x22ea9e['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1f5ff4[_0x1916ce(0x251)]&&i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x268),'children':[i[_0x1916ce(0x197)]('h4',{'className':_0x1916ce(0x233),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'🔗'}),'\x20',_0x22ea9e['t'](_0x1916ce(0x245))]}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x272),'children':[i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x188),'children':[i[_0x1916ce(0x213)]('p',{'className':_0x1916ce(0x1a9),'children':_0x22ea9e['t'](_0x1916ce(0x209))}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':'univer-space-y-2','children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x22ea9e['t'](_0x1916ce(0xf9))}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x12d),'children':[i[_0x1916ce(0x197)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x1a2),'children':'1'}),_0x22ea9e['t'](_0x1916ce(0x21f))]}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x1ea),'children':[i['jsx'](_0x1916ce(0x24c),{'className':_0x1916ce(0x1a2),'children':'2'}),_0x22ea9e['t']('mcpConfig.configStep2')]}),i[_0x1916ce(0x197)]('div',{'className':_0x1916ce(0x1ea),'children':[i[_0x1916ce(0x213)]('span',{'className':_0x1916ce(0x1a2),'children':'3'}),_0x22ea9e['t'](_0x1916ce(0x22a))]})]})]})]}),i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x205),'children':[i[_0x1916ce(0x213)]('div',{'className':_0x1916ce(0x12a),'children':_0x1916ce(0x1ed)}),i['jsx'](_0x1916ce(0x12f),{'className':_0x1916ce(0x17e),'children':i['jsx']('pre',{'className':_0x1916ce(0x1f5),'children':JSON[_0x1916ce(0x1bb)]({'mcpServers':{'univer':{'url':_0x1916ce(0x138)+(_0x4cf841||_0x1916ce(0x235)),'type':_0x1916ce(0x117),'headers':{'Authorization':_0x1916ce(0x21b)+(_0x49c2c8||_0x1916ce(0x114))}}}},null,0x2)})})]}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x188),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x22ea9e['t'](_0x1916ce(0x1e0))}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x205),'children':[i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x14f),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x23e)}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x223),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x15f),'children':'univer_session_id:'}),i[_0x1916ce(0x213)]('div',{'className':_0x1916ce(0x15c),'children':_0x22ea9e['t']('mcpConfig.sessionIdDescription')})]})]}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x14f),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x23e)}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x223),'children':[i['jsx'](_0x1916ce(0x12f),{'className':_0x1916ce(0x15f),'children':_0x1916ce(0x277)}),i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x15c),'children':_0x22ea9e['t'](_0x1916ce(0x231))})]})]})]})]})]})]}),i[_0x1916ce(0x213)](f[_0x1916ce(0x19f)],{'onClick':_0x249ef7,'disabled':!_0xef685||_0x38b628,'className':_0x1916ce(0x159),'children':_0x38b628?i['jsxs'](_0x1916ce(0x24c),{'className':_0x1916ce(0x1ea),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'children':'⟲'}),_0x22ea9e['t'](_0x1916ce(0x14b))]}):i['jsxs'](_0x1916ce(0x24c),{'className':_0x1916ce(0x1ea),'children':[i[_0x1916ce(0x213)](H,{}),_0x22ea9e['t']('mcpConfig.save')]})}),i['jsx'](_0x1916ce(0x12f),{'className':_0x1916ce(0x267),'children':i['jsxs'](_0x1916ce(0x12f),{'className':_0x1916ce(0x221),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x24c),{'className':_0x1916ce(0x146),'children':'💡'}),i[_0x1916ce(0x197)](_0x1916ce(0x12f),{'className':_0x1916ce(0x1dc),'children':[i[_0x1916ce(0x213)](_0x1916ce(0x12f),{'className':_0x1916ce(0x27a),'children':_0x1916ce(0x111)}),i[_0x1916ce(0x197)]('div',{'children':['•',_0x22ea9e['t'](_0x1916ce(0x14c))]}),i['jsxs'](_0x1916ce(0x12f),{'children':['•',_0x22ea9e['t'](_0x1916ce(0x189))]})]})]})})]})})]});}const P=_0x417fc1(0x154),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x417fc1(0x25f)],xe=(_0xf1099,_0xa1fb3e,_0x316f94,_0x3cf651)=>{const _0x535da7=_0x417fc1;for(var _0x6334f9=_0x3cf651>0x1?void 0x0:_0x3cf651?me(_0xa1fb3e,_0x316f94):_0xa1fb3e,_0xae48f0=_0xf1099[_0x535da7(0x109)]-0x1,_0x41a57c;_0xae48f0>=0x0;_0xae48f0--)(_0x41a57c=_0xf1099[_0xae48f0])&&(_0x6334f9=_0x41a57c(_0x6334f9)||_0x6334f9);return _0x6334f9;},g=(_0x22d667,_0x1a7076)=>(_0xcaade6,_0x3b6fdc)=>_0x1a7076(_0xcaade6,_0x3b6fdc,_0x22d667);const O=_0x417fc1(0x1aa),D=_0x417fc1(0x219);exports['MCPConfigUIController']=class extends u[_0x417fc1(0x19e)]{constructor(_0x1ec713,_0x584d6c,_0x1e2df0,_0x1eb3b3,_0x305607,_0x1d700e,_0x66c788,_0x1fa3fa,_0x3a9f38,_0x48de1b){const _0x246737=_0x417fc1;super(),I(this,_0x246737(0x248),new M['BehaviorSubject'](!0x1)),I(this,_0x246737(0x173),new M[(_0x246737(0x152))]({})),I(this,_0x246737(0x1d6),new M[(_0x246737(0x152))]({})),I(this,_0x246737(0x116),new M[(_0x246737(0x152))]('')),I(this,_0x246737(0x137),async _0x190f8d=>{const _0x35199d=_0x246737;var _0x275961,_0x4f438b;this['_loading$'][_0x35199d(0x1ce)](!0x0);try{const _0x439747=await this['_validateConfig'](_0x190f8d);if(!_0x439747[_0x35199d(0x252)]){this[_0x35199d(0x124)][_0x35199d(0x199)]({'type':f[_0x35199d(0x149)][_0x35199d(0x1be)],'content':_0x439747[_0x35199d(0x14a)]||this[_0x35199d(0x216)]['t'](_0x35199d(0x191))});return;}_0x190f8d['apiKey']?await this[_0x35199d(0x1bf)]['setItem'](O,_0x190f8d[_0x35199d(0x1cb)][_0x35199d(0x120)]()):await this[_0x35199d(0x1bf)][_0x35199d(0x211)](O),this[_0x35199d(0x116)][_0x35199d(0x1ce)](((_0x275961=_0x190f8d['apiKey'])==null?void 0x0:_0x275961['trim']())||''),this['_mcpConnectionController'][_0x35199d(0x104)]({'Authorization':_0x35199d(0x21b)+((_0x4f438b=_0x190f8d['apiKey'])==null?void 0x0:_0x4f438b[_0x35199d(0x120)]())}),this[_0x35199d(0x124)][_0x35199d(0x199)]({'type':f[_0x35199d(0x149)]['Success'],'content':this[_0x35199d(0x216)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x456084=_0x35199d;this['_dialogService'][_0x456084(0x1a7)](D);},0x320);}catch(_0x224386){this[_0x35199d(0x113)]['error'](_0x35199d(0x118),_0x224386),this['_messageService']['show']({'type':f[_0x35199d(0x149)][_0x35199d(0x1be)],'content':this[_0x35199d(0x216)]['t'](_0x35199d(0x1e4))});}finally{this[_0x35199d(0x248)][_0x35199d(0x1ce)](!0x1);}}),(this[_0x246737(0x23c)]=_0x1ec713,this[_0x246737(0x204)]=_0x584d6c,this[_0x246737(0x158)]=_0x1e2df0,this[_0x246737(0x1bf)]=_0x1eb3b3,this['_dialogService']=_0x305607,this[_0x246737(0x124)]=_0x1d700e,this[_0x246737(0x1cd)]=_0x66c788,this[_0x246737(0x216)]=_0x1fa3fa,this[_0x246737(0x113)]=_0x3a9f38,this['_mcpConnectionController']=_0x48de1b,this['_initConfigSync'](),this[_0x246737(0x1f7)](),this['_registerComponent']());}['showConfigPanel'](){const _0x1f2598=_0x417fc1,_0x219900=this[_0x1f2598(0x158)][_0x1f2598(0x1d2)](P);_0x219900!=null&&_0x219900[_0x1f2598(0x251)]&&this[_0x1f2598(0x20c)][_0x1f2598(0x22c)]({'id':D,'title':{'title':this[_0x1f2598(0x216)]['t'](_0x1f2598(0x178))},'children':{'label':_0x1f2598(0x279)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x59663b=_0x1f2598;this[_0x59663b(0x20c)][_0x59663b(0x1a7)](D);}});}[_0x417fc1(0x112)](){const _0x4067f0=_0x417fc1;return this['_mcpCoreConfig$'][_0x4067f0(0x284)];}[_0x417fc1(0x28c)](){const _0x4e4247=_0x417fc1;this[_0x4e4247(0x28f)](this['_componentManager'][_0x4e4247(0x20d)](_0x4e4247(0x279),this[_0x4e4247(0x234)]()));}['_createConfigPanelComponent'](){const _0x356d4b=_0x417fc1;return v[_0x356d4b(0x1b0)](()=>{const _0x4935a6=_0x356d4b;var _0x4915f5,_0x4680a2,_0x58a10a;return i[_0x4935a6(0x213)](V,{'config':this[_0x4935a6(0x1d6)]['value'],'mcpCoreConfig':this[_0x4935a6(0x173)][_0x4935a6(0x284)],'currentApiKey$':this[_0x4935a6(0x116)],'onSave':this[_0x4935a6(0x137)],'loading':this[_0x4935a6(0x248)][_0x4935a6(0x284)],'connectionStatus$':(_0x4915f5=this[_0x4935a6(0x144)])==null?void 0x0:_0x4915f5[_0x4935a6(0x1ef)],'connectionError$':(_0x4680a2=this['_mcpConnectionController'])==null?void 0x0:_0x4680a2[_0x4935a6(0x1ec)],'currentSessionId$':(_0x58a10a=this['_mcpConnectionController'])==null?void 0x0:_0x58a10a['sessionId$']});},this[_0x356d4b(0x23c)]);}[_0x417fc1(0x1a5)](){const _0x4cd5a4=_0x417fc1;this[_0x4cd5a4(0x28f)](this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1b8)](s[_0x4cd5a4(0x22d)])['subscribe'](_0x2fa26d=>{const _0x1f9083=_0x4cd5a4;this[_0x1f9083(0x173)][_0x1f9083(0x1ce)](_0x2fa26d||{});}));const _0xf8754b=this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1d2)](s[_0x4cd5a4(0x22d)]);this[_0x4cd5a4(0x173)][_0x4cd5a4(0x1ce)](_0xf8754b||{}),this[_0x4cd5a4(0x28f)](this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1b8)](P)['subscribe'](_0x192f11=>{const _0x769a7e=_0x4cd5a4;this[_0x769a7e(0x1d6)][_0x769a7e(0x1ce)](_0x192f11||{});}));const _0x41f62e=this[_0x4cd5a4(0x158)][_0x4cd5a4(0x1d2)](P);this[_0x4cd5a4(0x1d6)][_0x4cd5a4(0x1ce)](_0x41f62e||{});}async[_0x417fc1(0x1f7)](){const _0x6f4c34=_0x417fc1,_0x2367e2=this[_0x6f4c34(0x158)][_0x6f4c34(0x1d2)](P);if(!(_0x2367e2!=null&&_0x2367e2[_0x6f4c34(0x251)]))return;const _0x358b76=await this['_localStorageService'][_0x6f4c34(0x1fd)](O);_0x358b76&&(this[_0x6f4c34(0x144)][_0x6f4c34(0x104)]({'Authorization':_0x6f4c34(0x21b)+_0x358b76}),this[_0x6f4c34(0x116)][_0x6f4c34(0x1ce)](_0x358b76));}async['_validateConfig'](_0x30b216){const _0x38aa87=_0x417fc1;if(!_0x30b216[_0x38aa87(0x1cb)]||_0x30b216[_0x38aa87(0x1cb)][_0x38aa87(0x120)]()[_0x38aa87(0x109)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x38aa87(0x216)]['t'](_0x38aa87(0x132))};if(_0x30b216[_0x38aa87(0x1cb)][_0x38aa87(0x120)]()[_0x38aa87(0x109)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x38aa87(0x232))};try{const _0x4deb15=await this[_0x38aa87(0x23c)]['get'](s[_0x38aa87(0x28b)])[_0x38aa87(0x1fc)](_0x30b216[_0x38aa87(0x1cb)][_0x38aa87(0x120)]());return _0x4deb15[_0x38aa87(0x252)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4deb15[_0x38aa87(0x1b4)]||this[_0x38aa87(0x216)]['t'](_0x38aa87(0x286))};}catch(_0x47639d){return console[_0x38aa87(0x26b)](_0x38aa87(0x1e8),_0x47639d),{'isValid':!0x0};}}},exports[_0x417fc1(0x17b)]=xe([g(0x0,u[_0x417fc1(0x157)](u['Injector'])),g(0x1,v[_0x417fc1(0x183)]),g(0x2,u[_0x417fc1(0x16f)]),g(0x3,u[_0x417fc1(0x1b9)]),g(0x4,v['IDialogService']),g(0x5,v['IMessageService']),g(0x6,u[_0x417fc1(0x157)](v[_0x417fc1(0x127)])),g(0x7,u[_0x417fc1(0x157)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x417fc1(0x157)](s[_0x417fc1(0x28b)]))],exports['MCPConfigUIController']);const b={'id':_0x417fc1(0x192),'type':u['CommandType'][_0x417fc1(0x207)],'handler':async(_0x1dbc98,_0x51463c)=>(_0x1dbc98[_0x417fc1(0x26d)](exports['MCPConfigUIController'])[_0x417fc1(0x1d5)](),!0x0)};function Z(_0x191014,_0x19da5a){const _0x7b51dc=_0x417fc1;switch(_0x191014){case s[_0x7b51dc(0x11e)][_0x7b51dc(0x24d)]:return _0x7b51dc(0x190);case s[_0x7b51dc(0x11e)][_0x7b51dc(0x1d8)]:return _0x7b51dc(0x194);case s[_0x7b51dc(0x11e)][_0x7b51dc(0x193)]:return _0x7b51dc(0x121);case s[_0x7b51dc(0x11e)][_0x7b51dc(0x236)]:switch(_0x19da5a){case s[_0x7b51dc(0x131)][_0x7b51dc(0x102)]:return _0x7b51dc(0x201);case s['MCPConnectionError'][_0x7b51dc(0xf5)]:return _0x7b51dc(0x23d);case s[_0x7b51dc(0x131)][_0x7b51dc(0x16d)]:return _0x7b51dc(0x16c);case s[_0x7b51dc(0x131)][_0x7b51dc(0x1f3)]:return _0x7b51dc(0x11f);default:return'mcpStatus.failed';}case s[_0x7b51dc(0x11e)][_0x7b51dc(0x168)]:return _0x7b51dc(0x26a);default:return _0x7b51dc(0x18c);}}function Se(_0x584b2b,_0x300fd6,_0x3a3062,_0x1b46b7=!0x0){const _0x2c95d4=_0x417fc1,_0x40a3b1=Z(_0x584b2b,_0x300fd6),_0x4d9fc6=_0x3a3062['t'](_0x40a3b1);return _0x1b46b7?_0x584b2b===s[_0x2c95d4(0x11e)][_0x2c95d4(0x24d)]&&_0x300fd6===s[_0x2c95d4(0x131)][_0x2c95d4(0x102)]?_0x4d9fc6+_0x2c95d4(0x202)+_0x3a3062['t'](_0x2c95d4(0x119)):_0x584b2b===s[_0x2c95d4(0x11e)]['CONNECTED']?''+_0x4d9fc6:_0x584b2b===s[_0x2c95d4(0x11e)][_0x2c95d4(0x24d)]||_0x584b2b===s['MCPConnectionStatus'][_0x2c95d4(0x236)]?_0x4d9fc6+_0x2c95d4(0x202)+_0x3a3062['t']('mcpStatus.clickToConnect'):_0x4d9fc6:_0x4d9fc6;}function Pe(_0x5db2a8){const _0x467f6=_0x417fc1;switch(_0x5db2a8){case s[_0x467f6(0x11e)][_0x467f6(0x193)]:return'univer-text-green-500';case s[_0x467f6(0x11e)][_0x467f6(0x1d8)]:case s[_0x467f6(0x11e)]['RETRYING']:return _0x467f6(0x1b5);case s[_0x467f6(0x11e)][_0x467f6(0x236)]:case s[_0x467f6(0x11e)][_0x467f6(0x24d)]:return _0x467f6(0x167);default:return _0x467f6(0x172);}}function W(_0xb6ef54){const _0xa8d942=_0x417fc1,{status$:_0xe8f422,error$:_0x5731af,onConfigure:_0x18dc7f,showClickable:_0x61b49b=!0x0}=_0xb6ef54,_0x23172a=v[_0xa8d942(0x10f)](_0xe8f422,s[_0xa8d942(0x11e)][_0xa8d942(0x24d)]),_0x6de7a8=v[_0xa8d942(0x10f)](_0x5731af,s[_0xa8d942(0x131)][_0xa8d942(0x1a6)]),_0x36d978=v[_0xa8d942(0x21e)](u[_0xa8d942(0x10a)]),_0xecb09d=_0x23172a===s[_0xa8d942(0x11e)][_0xa8d942(0x193)];_0x23172a===s[_0xa8d942(0x11e)][_0xa8d942(0x1d8)]||s[_0xa8d942(0x11e)][_0xa8d942(0x168)];const _0x4f9347=_0x36d978['t'](Z(_0x23172a,_0x6de7a8)),_0x5b4b79=Se(_0x23172a,_0x6de7a8,_0x36d978,_0x61b49b),_0x484634=Pe(_0x23172a),_0x15343f=_0xecb09d?i[_0xa8d942(0x213)](q,{}):i[_0xa8d942(0x213)](Y,{}),_0xb2a03b=d['useCallback'](()=>{_0x61b49b&&_0x18dc7f&&_0x18dc7f();},[_0x61b49b,_0x18dc7f]);function _0x34a1dd(){const _0x55abcf=_0xa8d942;return i[_0x55abcf(0x197)](_0x55abcf(0x12f),{'className':f['clsx']('univer-flex\x20univer-items-center',_0x61b49b&&_0x18dc7f&&_0x55abcf(0x18a)),'role':_0x55abcf(0x1df),'onClick':_0x61b49b&&_0x18dc7f?_0xb2a03b:void 0x0,'children':[i[_0x55abcf(0x213)](_0x55abcf(0x12f),{'className':f['clsx'](_0x55abcf(0x249),_0x484634),'children':_0x15343f}),i[_0x55abcf(0x213)]('div',{'className':_0x55abcf(0x1c8),'children':_0x4f9347})]});}return i[_0xa8d942(0x213)](f['Tooltip'],{'title':_0x5b4b79,'placement':_0xa8d942(0x176),'children':_0x34a1dd()});}var Ie=Object[_0x417fc1(0x25f)],_e=(_0x33b041,_0x3a36c2,_0x3d9c95,_0x275f88)=>{for(var _0x294e5b=_0x275f88>0x1?void 0x0:_0x275f88?Ie(_0x3a36c2,_0x3d9c95):_0x3a36c2,_0x187f56=_0x33b041['length']-0x1,_0x53fe52;_0x187f56>=0x0;_0x187f56--)(_0x53fe52=_0x33b041[_0x187f56])&&(_0x294e5b=_0x53fe52(_0x294e5b)||_0x294e5b);return _0x294e5b;},N=(_0x352e98,_0x297528)=>(_0xa57618,_0x45f540)=>_0x297528(_0xa57618,_0x45f540,_0x352e98);exports[_0x417fc1(0x174)]=class extends u[_0x417fc1(0x19e)]{constructor(_0x1a73e7,_0x40ebfa,_0x39eac,_0x128738){const _0x1c3435=_0x417fc1;super(),this[_0x1c3435(0x23c)]=_0x1a73e7,this[_0x1c3435(0x1a0)]=_0x40ebfa,this['_uiPartsService']=_0x39eac,this[_0x1c3435(0x158)]=_0x128738,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x417fc1(0x24a)](){const _0x512988=_0x417fc1,_0x17b82e=this[_0x512988(0x158)][_0x512988(0x1d2)](P);_0x17b82e!=null&&_0x17b82e[_0x512988(0x251)]&&(this[_0x512988(0x1a0)][_0x512988(0x11a)]=!0x1);}[_0x417fc1(0x262)](){const _0x54d50a=_0x417fc1,_0xa7c557=this[_0x54d50a(0x158)][_0x54d50a(0x1d2)](P);(_0xa7c557==null?void 0x0:_0xa7c557[_0x54d50a(0x1d4)])!==!0x1&&this[_0x54d50a(0x28f)](this[_0x54d50a(0x204)]['registerComponent'](v[_0x54d50a(0x1ae)][_0x54d50a(0x242)],()=>{const _0x160fa2=_0x54d50a;var _0x55bc60;return v[_0x160fa2(0x1b0)](ye({'status$':this[_0x160fa2(0x1a0)][_0x160fa2(0x1ef)],'error$':this[_0x160fa2(0x1a0)][_0x160fa2(0x1ec)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x55bc60=_0xa7c557==null?void 0x0:_0xa7c557[_0x160fa2(0x251)])!=null?_0x55bc60:!0x1}),this[_0x160fa2(0x23c)]);}));}['_handleConfigure'](){const _0x1d868=_0x417fc1;this[_0x1d868(0x23c)][_0x1d868(0x26d)](exports['MCPConfigUIController'])[_0x1d868(0x1d5)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u['Inject'](u[_0x417fc1(0x1ab)])),N(0x1,u[_0x417fc1(0x157)](s[_0x417fc1(0x28b)])),N(0x2,v[_0x417fc1(0x183)]),N(0x3,u[_0x417fc1(0x16f)])],exports[_0x417fc1(0x174)]);function ye(_0x54ac48){const {status$:_0x3917ea,error$:_0x250b30,onConfigure:_0x577ed3,showClickable:_0x57bdef}=_0x54ac48;return function(){const _0x500dfd=_0x4d62;return i[_0x500dfd(0x213)](W,{'status$':_0x3917ea,'error$':_0x250b30,'onConfigure':_0x577ed3,'showClickable':_0x57bdef});};}function Me(_0x2f5d6){const _0x23ff19=_0x417fc1;return{'id':b['id'],'type':v[_0x23ff19(0x1f8)][_0x23ff19(0x162)],'icon':'MenuIcon','title':_0x23ff19(0x178),'tooltip':_0x23ff19(0x178)};}const Ne={[v[_0x417fc1(0x180)][_0x417fc1(0x241)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x268e11,_0x52a6bc,_0x59c7cf,_0x16a66d)=>{const _0x149506=_0x417fc1;for(var _0x5bb0c0=_0x16a66d>0x1?void 0x0:_0x16a66d?be(_0x52a6bc,_0x59c7cf):_0x52a6bc,_0x5a145e=_0x268e11[_0x149506(0x109)]-0x1,_0x47140a;_0x5a145e>=0x0;_0x5a145e--)(_0x47140a=_0x268e11[_0x5a145e])&&(_0x5bb0c0=_0x47140a(_0x5bb0c0)||_0x5bb0c0);return _0x5bb0c0;},z=(_0x275c7a,_0x2a1e5b)=>(_0xa6c2d4,_0x4cba0d)=>_0x2a1e5b(_0xa6c2d4,_0x4cba0d,_0x275c7a);exports[_0x417fc1(0x226)]=class extends u[_0x417fc1(0x19e)]{constructor(_0x5d2d9e,_0x103517){const _0x1a2b55=_0x417fc1;super(),this['_commandService']=_0x5d2d9e,this[_0x1a2b55(0x278)]=_0x103517,this[_0x1a2b55(0x1de)](),this[_0x1a2b55(0x115)]();}[_0x417fc1(0x1de)](){const _0x5eb351=_0x417fc1;[b][_0x5eb351(0x12e)](_0x29477d=>{const _0x44ab55=_0x5eb351;this[_0x44ab55(0x28f)](this['_commandService'][_0x44ab55(0x23a)](_0x29477d));});}[_0x417fc1(0x115)](){const _0xa5827f=_0x417fc1;this[_0xa5827f(0x278)][_0xa5827f(0x22f)](Ne);}},exports[_0x417fc1(0x226)]=je([z(0x0,u[_0x417fc1(0x1c2)]),z(0x1,v[_0x417fc1(0x17d)])],exports[_0x417fc1(0x226)]);function _0x1944(){const _0x292fce=['MCP:\x20会话\x20ID\x20已被占用','0\x200\x2017\x2016','white','MAX_RETRIES_EXCEEDED','univer-flex-1','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','3640941NOJBxE','_loadStoredApiKey','MenuItemType','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','CloseIcon','OnLineIcon','validateApiKey','getItem','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','off-line-icon_clip0_910_343','Disconnected','mcpStatus.unauthorized','\x20-\x20','path','_uiPartsService','univer-space-y-2','WebSocketService','COMMAND','Enter\x20your\x20API\x20key','mcpConfig.configInstructions','_config','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_dialogService','register','Univer\x20AI\x20控制台','5796043STaQIq','toString','removeItem','Session\x20ID','jsx','UniverMCPUIPlugin','保存配置','_localeService','UniverMCPPlugin','univer-bg-blue-500','mcp-config-dialog','最大重试次数','Bearer\x20','CheckMarkIcon','什么是\x20API\x20密钥?','useDependency','mcpConfig.configStep1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-gap-3','univer-text-sm\x20univer-font-medium','univer-min-w-0\x20univer-flex-1','MCP\x20Connected','mcpConfig.apiKeyPlaceholder','MCPUIMenuController','点击配置\x20MCP','MCP:\x20Network\x20Error','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','mcpConfig.configStep3','Get\x20your\x20API\x20key\x20in\x20seconds','open','MCP_PLUGIN_CONFIG_KEY','toStringTag','mergeMenu','setConfig','mcpConfig.authorizationDescription','mcpConfig.validation.apiKeyTooShort','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_createConfigPanelComponent','<SESSION_ID>','FAILED','7MgtYfS','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','会话ID','registerCommand','配置参数:','_injector','mcpStatus.sessionOccupied','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','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','merge','OTHERS','HEADER_MENU','assign','API\x20Key','mcpConfig.connectionInfo','mcpConfig.apiApplyInfo.title','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_loading$','univer-mr-2\x20univer-flex\x20univer-text-xl','_initAutoConnect','DependentOn','span','DISCONNECTED','复制以下\x20JSON\x20配置','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','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','showDeveloperTools','isValid','svg','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20连接失败','MCP\x20已断开','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.connectionError.maxRetriesExceeded','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','colorChannel1','启用身份验证以获得安全连接','symbol','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','includes','getOwnPropertyDescriptor','Input','Enable\x20authentication\x20for\x20secure\x20connections','_initStatusComponent','MCP\x20Connection\x20Failed','权限验证失败,请检查您的\x20API\x20密钥','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','defIds','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','0\x200\x2016\x2016','mcpStatus.retrying','warn','Invalid\x20configuration','get','off','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MCP\x20Client\x20Configuration','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-4','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','currentColor','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Authorization:','_menuManagerService','MCPConfigPanel','univer-font-medium','请输入您的\x20API\x20密钥','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','https://console.univer.plus','OpenMCPConfigPanelCommand','488280ctpbhF','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','noopener\x20noreferrer','保存中...','配置步骤:','value','What\x20is\x20API\x20Key?','mcpConfig.validation.invalidApiKey','点击连接\x20MCP','MCP:\x20网络错误','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','none','MCPConnectionController','_registerComponent','重连中...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','disposeWithMe','https://console.univer.ai','SESSION_ID_OCCUPIED','univer-text-sm\x20univer-text-gray-500','MCP_UI_PLUGIN','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.configStepTitle','270HpglUo','round','Retrying...','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-bg-red-500','Connecting...','mcpConfig.connectionStatus.connected','defineProperty','UNAUTHORIZED','children','__setCustomHeaders','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥不能为空','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','length','LocaleService','MCP\x20配置','Save\x20Configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Configuration\x20Steps:','useObservable','univer-shrink-0\x20univer-text-red-500','Configuration\x20Notes:','getCurrentConfig','_logService','<API_KEY>','_initializeMenus','_apiKey$','http','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpStatus.clickToConfigure','enableAutoConnect','mcpConfig.connectionStatus.retrying','Plugin','mcpConfig.connectionStatus.failed','MCPConnectionStatus','mcpStatus.maxRetriesExceeded','trim','mcpStatus.connected','forwardRef','将以下配置添加到您的\x20MCP\x20客户端设置中:','_messageService','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','ComponentManager','MCP\x20客户端配置','on-line-icon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','ISocketService','Enable\x20Authentication','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','forEach','div','displayName','MCPConnectionError','mcpConfig.validation.apiKeyRequired','未连接','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-flex\x20univer-items-start\x20univer-gap-2','string','_handleConfigSave','https://mcp.univer.ai/mcp/?univer_session_id=','4516698tZVtsp','map','MCP:\x20Session\x20ID\x20Occupied','fill','45645XHjwPo','MCP\x20重连中...','92inJTKC','univer-text-gray-400','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','HelpIcon','univer-text-blue-600','_mcpConnectionController','enUS','univer-shrink-0\x20univer-text-blue-500','clsx','10BUVRSq','MessageType','errorMessage','mcpConfig.saving','mcpConfig.note1','连接中...','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-start\x20univer-gap-3','useRef','mcpConfig.connectionStatus.disconnected','BehaviorSubject','OffLineIcon','mcp-ui.config','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','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','Inject','_configService','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','9808eRWgPC','xlink:href','univer-text-xs\x20univer-text-gray-500','close-icon','univerjs-icon\x20univerjs-icon-','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','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','Copy\x20the\x20JSON\x20configuration\x20below','BUTTON','attrs','http://www.w3.org/2000/svg','univer-space-y-5','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-red-500','RETRYING','1em','text','univer.ai','mcpStatus.networkError','NETWORK_ERROR','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','IConfigService','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-gray-500','_mcpCoreConfig$','MCPConnectionUIController','MCP\x20Disconnected','bottom','配置保存成功','mcpConfig.title','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MCPConfigUIController','Configuration\x20Parameters:','IMenuManagerService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','has','RibbonStartGroup','MCP\x20Unknown\x20Status','mcpConfig.apiKey','IUIPartsService','createElement','onStarting','on-line-icon_clip0_910_349','zhCN','univer-space-y-3','mcpConfig.note2','\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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.unknown','API\x20密钥无效,请检查密钥是否正确','Click\x20to\x20connect\x20MCP','translate(.97)','mcpStatus.disconnected','mcpConfig.validation.invalidConfig','mcp-ui.command.openConfigPanel','CONNECTED','mcpStatus.connecting','pluginName','current','jsxs','entries','show','univer.plus','mcpConfig.connectionError.networkError','API\x20密钥长度至少需要\x2010\x20位','MCP\x20Retrying...','Disposable','Button','_connectionController','mcpConfig.connectionError.unauthorized','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','Max\x20Retries','clipPath','_initConfigSync','NONE','close','univer-size-2\x20univer-rounded-full','univer-text-xs\x20univer-text-gray-600','mcp.apiKey','Injector','289193ePBHBV','univer-flex\x20univer-flex-wrap\x20univer-gap-2','BuiltInUIPart','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','connectInjector','tag','useCallback','univer-size-4','error','univer-text-yellow-500','univer-text-white','会话\x20ID\x20已被占用,请稍后再试','subscribeConfigValue$','ILocalStorageService','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','stringify','mcpConfig.connectionStatus.connecting','Click\x20to\x20configure\x20MCP','Error','_localStorageService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.connectionError.sessionOccupied','ICommandService','mcpServerUrl','substring','超出最大重试次数,请稍后再试','univer-bg-green-500','url(#$1','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','连接失败','off-line-icon','apiKey','replace','_componentManager','next','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','defs','M0\x200H16V16H0z','getConfig','网络连接错误,请检查您的网络连接','showStatus','showConfigPanel','_config$','mask','CONNECTING','MCP\x20状态未知','url(#on-line-icon_clip0_910_349)','Configuration\x20saved\x20successfully','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','push','_initializeCommands','button','mcpConfig.configParameters','mcpConfig.apiApplyInfo.univerAiLabel','random','idSuffix','mcpConfig.configError','evenodd','add','MCP:\x20Max\x20Retries\x20Exceeded','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','启用身份验证','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20Unauthorized','connectionError$','MCP\x20Configuration','univer-bg-gray-500','connectionStatus$'];_0x1944=function(){return _0x292fce;};return _0x1944();}const Ee={'mcpStatus':{'disconnected':_0x417fc1(0x175),'connecting':'MCP\x20Connecting...','connected':_0x417fc1(0x224),'failed':_0x417fc1(0x263),'retrying':_0x417fc1(0x19d),'unknown':_0x417fc1(0x181),'unauthorized':_0x417fc1(0x1eb),'sessionOccupied':_0x417fc1(0x13b),'networkError':_0x417fc1(0x228),'maxRetriesExceeded':_0x417fc1(0x1e7),'clickToConnect':_0x417fc1(0x18e),'clickToConfigure':_0x417fc1(0x1bd)},'mcpConfig':{'title':_0x417fc1(0x1ed),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x417fc1(0x244),'apiKeyPlaceholder':_0x417fc1(0x208),'apiKeyHint':_0x417fc1(0x108),'enableAuth':_0x417fc1(0x12c),'enableAuthHint':_0x417fc1(0x261),'connectionInfo':_0x417fc1(0x270),'mcpClientConfig':_0x417fc1(0x270),'configInstructions':_0x417fc1(0x1fe),'configStepTitle':_0x417fc1(0x10e),'configStep1':_0x417fc1(0x161),'configStep2':_0x417fc1(0x179),'configStep3':_0x417fc1(0x238),'sessionId':_0x417fc1(0x212),'sessionIdDescription':_0x417fc1(0x257),'authorizationDescription':_0x417fc1(0xf8),'configParameters':_0x417fc1(0x17c),'maxRetries':_0x417fc1(0x1a3),'save':_0x417fc1(0x10c),'saving':'Saving...','note1':_0x417fc1(0x1f9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x417fc1(0x1db),'configError':_0x417fc1(0x275),'apiApplyInfo':{'title':_0x417fc1(0x285),'description':_0x417fc1(0x126),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x417fc1(0x22b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x417fc1(0x276),'invalidConfig':_0x417fc1(0x26c),'invalidApiKey':_0x417fc1(0x1c0)},'connectionStatus':{'disconnected':_0x417fc1(0x200),'connecting':_0x417fc1(0xff),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x417fc1(0xfc)},'connectionError':{'unauthorized':_0x417fc1(0x28e),'sessionOccupied':_0x417fc1(0x20b),'networkError':_0x417fc1(0x1cf),'maxRetriesExceeded':_0x417fc1(0x18b)}}},we={'mcpStatus':{'disconnected':_0x417fc1(0x256),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x417fc1(0x255),'retrying':_0x417fc1(0x13e),'unknown':_0x417fc1(0x1d9),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x417fc1(0x1f0),'networkError':_0x417fc1(0x288),'maxRetriesExceeded':_0x417fc1(0x14e),'clickToConnect':_0x417fc1(0x287),'clickToConfigure':_0x417fc1(0x227)},'mcpConfig':{'title':_0x417fc1(0x10b),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x417fc1(0x27b),'apiKeyHint':_0x417fc1(0x105),'enableAuth':_0x417fc1(0x1e9),'enableAuthHint':_0x417fc1(0x25b),'connectionInfo':_0x417fc1(0x128),'mcpClientConfig':_0x417fc1(0x128),'configInstructions':_0x417fc1(0x123),'configStepTitle':_0x417fc1(0x283),'configStep1':_0x417fc1(0x24e),'configStep2':_0x417fc1(0x170),'configStep3':_0x417fc1(0x271),'sessionId':_0x417fc1(0x239),'sessionIdDescription':_0x417fc1(0x134),'authorizationDescription':_0x417fc1(0x125),'configParameters':_0x417fc1(0x23b),'maxRetries':_0x417fc1(0x21a),'save':_0x417fc1(0x215),'saving':_0x417fc1(0x282),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x417fc1(0x177),'configError':'配置保存失败','apiApplyInfo':{'title':_0x417fc1(0x21d),'description':_0x417fc1(0x250),'univerAiLabel':_0x417fc1(0x20e),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x417fc1(0x106),'apiKeyTooShort':_0x417fc1(0x19c),'invalidConfig':'配置无效','invalidApiKey':_0x417fc1(0x18d)},'connectionStatus':{'disconnected':_0x417fc1(0x133),'connecting':_0x417fc1(0x14d),'connected':'已连接','failed':_0x417fc1(0x1c9),'retrying':_0x417fc1(0x28d)},'connectionError':{'unauthorized':_0x417fc1(0x264),'sessionOccupied':_0x417fc1(0x1b7),'networkError':_0x417fc1(0x1d3),'maxRetriesExceeded':_0x417fc1(0x1c5)}}};var Ae=Object['defineProperty'],Oe=Object[_0x417fc1(0x25f)],De=(_0x38df2e,_0x3f18e6,_0xbcef0f)=>_0x3f18e6 in _0x38df2e?Ae(_0x38df2e,_0x3f18e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbcef0f}):_0x38df2e[_0x3f18e6]=_0xbcef0f,Ue=(_0x104edd,_0x54686b,_0x2280ea,_0x5f09b5)=>{const _0x379a70=_0x417fc1;for(var _0x1e09fe=_0x5f09b5>0x1?void 0x0:_0x5f09b5?Oe(_0x54686b,_0x2280ea):_0x54686b,_0x4c1b7b=_0x104edd[_0x379a70(0x109)]-0x1,_0x529b62;_0x4c1b7b>=0x0;_0x4c1b7b--)(_0x529b62=_0x104edd[_0x4c1b7b])&&(_0x1e09fe=_0x529b62(_0x1e09fe)||_0x1e09fe);return _0x1e09fe;},y=(_0x1fa5eb,_0x274c7f)=>(_0x5223b2,_0x361dad)=>_0x274c7f(_0x5223b2,_0x361dad,_0x1fa5eb),$e=(_0x469396,_0x10a69b,_0x35777d)=>De(_0x469396,_0x10a69b+'',_0x35777d);exports['UniverMCPUIPlugin']=class extends u[_0x417fc1(0x11c)]{constructor(_0x5b00c6=L,_0x5349b4,_0x121a19,_0xbfa7f8,_0x3d0c4f,_0x224700){const _0x4f5e0e=_0x417fc1;super(),this[_0x4f5e0e(0x20a)]=_0x5b00c6,this[_0x4f5e0e(0x23c)]=_0x5349b4,this[_0x4f5e0e(0x158)]=_0x121a19,this['_uiPartsService']=_0xbfa7f8,this['_localStorageService']=_0x3d0c4f,this[_0x4f5e0e(0x216)]=_0x224700;const {..._0x171bad}=u[_0x4f5e0e(0x240)]({},L,this[_0x4f5e0e(0x20a)]);this[_0x4f5e0e(0x158)][_0x4f5e0e(0x230)](P,_0x171bad);}async[_0x417fc1(0x185)](){const _0x2ff84e=_0x417fc1,_0xccb46c=[[exports[_0x2ff84e(0x174)]],[exports[_0x2ff84e(0x17b)]],[exports[_0x2ff84e(0x226)]]];this[_0x2ff84e(0x23c)][_0x2ff84e(0x17f)](A['ISocketService'])||_0xccb46c[_0x2ff84e(0x1dd)]([A[_0x2ff84e(0x12b)],{'useClass':A[_0x2ff84e(0x206)]}]),_0xccb46c[_0x2ff84e(0x12e)](_0x2e2145=>this[_0x2ff84e(0x23c)][_0x2ff84e(0x1e6)](_0x2e2145)),this[_0x2ff84e(0x23c)][_0x2ff84e(0x26d)](exports[_0x2ff84e(0x174)]),this['_injector']['get'](exports[_0x2ff84e(0x17b)]),this[_0x2ff84e(0x23c)][_0x2ff84e(0x26d)](exports['MCPUIMenuController']);}},$e(exports[_0x417fc1(0x214)],_0x417fc1(0x195),_0x417fc1(0xf7)),exports[_0x417fc1(0x214)]=Ue([u[_0x417fc1(0x24b)](s[_0x417fc1(0x217)]),y(0x1,u[_0x417fc1(0x157)](u[_0x417fc1(0x1ab)])),y(0x2,u['IConfigService']),y(0x3,v[_0x417fc1(0x183)]),y(0x4,u[_0x417fc1(0x1b9)]),y(0x5,u[_0x417fc1(0x157)](u[_0x417fc1(0x10a)]))],exports['UniverMCPUIPlugin']),exports[_0x417fc1(0x279)]=V,exports['MCPStatusDisplay']=W,exports[_0x417fc1(0x27e)]=b,exports[_0x417fc1(0x145)]=Ee,exports[_0x417fc1(0x187)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x332ada=_0x52bb;(function(_0x39098d,_0x322fad){const _0x232cda=_0x52bb,_0x4b1a1a=_0x39098d();while(!![]){try{const _0x1b84ef=-parseInt(_0x232cda(0xa2))/0x1+parseInt(_0x232cda(0xbf))/0x2+-parseInt(_0x232cda(0xb9))/0x3+-parseInt(_0x232cda(0xbe))/0x4*(-parseInt(_0x232cda(0xbd))/0x5)+parseInt(_0x232cda(0xb3))/0x6*(-parseInt(_0x232cda(0xab))/0x7)+-parseInt(_0x232cda(0xc2))/0x8*(parseInt(_0x232cda(0xa7))/0x9)+parseInt(_0x232cda(0x9e))/0xa*(parseInt(_0x232cda(0xc1))/0xb);if(_0x1b84ef===_0x322fad)break;else _0x4b1a1a['push'](_0x4b1a1a['shift']());}catch(_0x558118){_0x4b1a1a['push'](_0x4b1a1a['shift']());}}}(_0x1ce8,0x9702b));function _0x52bb(_0xf0cce6,_0x311c79){const _0x1ce810=_0x1ce8();return _0x52bb=function(_0x52bbe6,_0x374598){_0x52bbe6=_0x52bbe6-0x9d;let _0x398fa3=_0x1ce810[_0x52bbe6];return _0x398fa3;},_0x52bb(_0xf0cce6,_0x311c79);}const e={'mcpStatus':{'disconnected':_0x332ada(0x9f),'connecting':_0x332ada(0xc9),'connected':_0x332ada(0xa1),'failed':'MCP\x20Connection\x20Failed','retrying':_0x332ada(0xb7),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x332ada(0xa8),'sessionOccupied':_0x332ada(0xb5),'networkError':_0x332ada(0xc0),'maxRetriesExceeded':_0x332ada(0xbc),'clickToConnect':_0x332ada(0xa9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x332ada(0xb2),'description':_0x332ada(0xa0),'apiKey':_0x332ada(0xc5),'apiKeyPlaceholder':_0x332ada(0xb4),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x332ada(0xa6),'enableAuthHint':_0x332ada(0xb6),'connectionInfo':_0x332ada(0x9d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x332ada(0xb1),'configStep1':_0x332ada(0xb8),'configStep2':_0x332ada(0xca),'configStep3':_0x332ada(0xc7),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x332ada(0xc3),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x332ada(0xa5),'saving':'Saving...','note1':_0x332ada(0xbb),'note2':_0x332ada(0xad),'configSaved':_0x332ada(0xc8),'configError':_0x332ada(0xcb),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x332ada(0xb0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x332ada(0xae),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x332ada(0xc4),'connecting':_0x332ada(0xaa),'connected':_0x332ada(0xc6),'failed':_0x332ada(0xac),'retrying':_0x332ada(0xaf)},'connectionError':{'unauthorized':_0x332ada(0xa4),'sessionOccupied':_0x332ada(0xba),'networkError':_0x332ada(0xa3),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x1ce8(){const _0x398aa8=['Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','Univer\x20AI\x20Console','Configuration\x20Steps:','MCP\x20Configuration','472698NQRGkT','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','3488430NRzdmV','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','15Rkcojo','1122796HwGcFD','2233404dVpBJV','MCP:\x20Network\x20Error','1706221AEpGWo','1867992fuIRQV','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','API\x20Key','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','80vlbxlv','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','948490CkTJEw','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','Enable\x20Authentication','9coWNWo','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Connecting...','21DGshbB'];_0x1ce8=function(){return _0x398aa8;};return _0x1ce8();}module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x325658=_0x5152;(function(_0x2fec9a,_0x15ede5){const _0x32461a=_0x5152,_0x5ac7a8=_0x2fec9a();while(!![]){try{const _0x3152a9=parseInt(_0x32461a(0x1b2))/0x1*(parseInt(_0x32461a(0x1b6))/0x2)+-parseInt(_0x32461a(0x1c2))/0x3*(parseInt(_0x32461a(0x1e0))/0x4)+-parseInt(_0x32461a(0x1cf))/0x5*(parseInt(_0x32461a(0x1b9))/0x6)+parseInt(_0x32461a(0x1d7))/0x7+-parseInt(_0x32461a(0x1ba))/0x8*(parseInt(_0x32461a(0x1bd))/0x9)+parseInt(_0x32461a(0x1c1))/0xa*(-parseInt(_0x32461a(0x1cb))/0xb)+parseInt(_0x32461a(0x1bf))/0xc*(parseInt(_0x32461a(0x1b3))/0xd);if(_0x3152a9===_0x15ede5)break;else _0x5ac7a8['push'](_0x5ac7a8['shift']());}catch(_0x162df9){_0x5ac7a8['push'](_0x5ac7a8['shift']());}}}(_0x7874,0xd5f2e));function _0x5152(_0x1fdc14,_0x3dc7cc){const _0x787476=_0x7874();return _0x5152=function(_0x5152af,_0x550711){_0x5152af=_0x5152af-0x1b0;let _0x1c9565=_0x787476[_0x5152af];return _0x1c9565;},_0x5152(_0x1fdc14,_0x3dc7cc);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x325658(0x1ce),'failed':_0x325658(0x1d5),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x325658(0x1e2),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x325658(0x1c4),'maxRetriesExceeded':_0x325658(0x1db),'clickToConnect':_0x325658(0x1b7),'clickToConfigure':_0x325658(0x1c9)},'mcpConfig':{'title':_0x325658(0x1c8),'description':_0x325658(0x1c6),'apiKey':_0x325658(0x1c0),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x325658(0x1b5),'configInstructions':_0x325658(0x1d4),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x325658(0x1d9),'configStep2':_0x325658(0x1bc),'configStep3':_0x325658(0x1dd),'sessionId':_0x325658(0x1dc),'sessionIdDescription':_0x325658(0x1d2),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x325658(0x1bb),'maxRetries':_0x325658(0x1d8),'save':_0x325658(0x1cc),'saving':_0x325658(0x1de),'note1':_0x325658(0x1b4),'note2':_0x325658(0x1cd),'configSaved':_0x325658(0x1b1),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x325658(0x1d6),'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':_0x325658(0x1c5),'getStarted':_0x325658(0x1d1)},'validation':{'apiKeyRequired':_0x325658(0x1da),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x325658(0x1d3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x325658(0x1b0),'connecting':_0x325658(0x1e1),'connected':_0x325658(0x1ca),'failed':_0x325658(0x1c3),'retrying':_0x325658(0x1be)},'connectionError':{'unauthorized':_0x325658(0x1df),'sessionOccupied':_0x325658(0x1b8),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x325658(0x1c7)}}};module[_0x325658(0x1d0)]=e;function _0x7874(){const _0x3e836b=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','1035sdiUYm','exports','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','9183937fBOmFg','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','6193124nrGhER','Connecting...','MCP:\x20Unauthorized','Disconnected','Configuration\x20saved\x20successfully','5VVcVgU','103129WFVpeH','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','308714jGBTCe','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','15786OGhbTF','2538288aPFikd','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','9TvRuvW','Retrying...','1992Swguzp','API\x20Key','220AUmcIJ','3hohPCo','Connection\x20Failed','MCP:\x20Network\x20Error','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Click\x20to\x20configure\x20MCP','Connected','57068NJOAoL','Save\x20Configuration'];_0x7874=function(){return _0x3e836b;};return _0x7874();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5c0916=_0x1672;(function(_0x2020fe,_0x467da7){const _0x16ab90=_0x1672,_0x4554fc=_0x2020fe();while(!![]){try{const _0x1b01c4=-parseInt(_0x16ab90(0xed))/0x1*(-parseInt(_0x16ab90(0xd6))/0x2)+-parseInt(_0x16ab90(0xfe))/0x3*(-parseInt(_0x16ab90(0xf6))/0x4)+parseInt(_0x16ab90(0xd8))/0x5*(-parseInt(_0x16ab90(0xd9))/0x6)+-parseInt(_0x16ab90(0xef))/0x7+parseInt(_0x16ab90(0xeb))/0x8+parseInt(_0x16ab90(0xd7))/0x9+-parseInt(_0x16ab90(0xf4))/0xa*(parseInt(_0x16ab90(0xff))/0xb);if(_0x1b01c4===_0x467da7)break;else _0x4554fc['push'](_0x4554fc['shift']());}catch(_0x31075e){_0x4554fc['push'](_0x4554fc['shift']());}}}(_0x1d8d,0x2c73c));function _0x1d8d(){const _0x5410ce=['API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1398aWqEAO','2068wUFQsJ','Connection\x20Failed','Retrying...','API\x20key\x20is\x20required','API\x20Key','Configuration\x20Parameters:','720DDmQPE','1080630GzDIsG','23745dYnhsZ','126uZQozy','What\x20is\x20API\x20Key?','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','Connecting...','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','1890600ccIdMC','Univer\x20AI\x20Console','878AliZtU','Click\x20to\x20configure\x20MCP','96082auEwmY','MCP\x20Disconnected','Max\x20Retries','MCP\x20Connection\x20Failed','Session\x20ID','30560oGwgRz','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1696yvPNuS','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration'];_0x1d8d=function(){return _0x5410ce;};return _0x1d8d();}function _0x1672(_0x40acbf,_0x264676){const _0x1d8d2d=_0x1d8d();return _0x1672=function(_0x1672af,_0x2434ba){_0x1672af=_0x1672af-0xd6;let _0x242ec8=_0x1d8d2d[_0x1672af];return _0x242ec8;},_0x1672(_0x40acbf,_0x264676);}const e={'mcpStatus':{'disconnected':_0x5c0916(0xf0),'connecting':'MCP\x20Connecting...','connected':_0x5c0916(0xe5),'failed':_0x5c0916(0xf2),'retrying':_0x5c0916(0xe0),'unknown':_0x5c0916(0xf9),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5c0916(0xe4),'clickToConnect':_0x5c0916(0xea),'clickToConfigure':_0x5c0916(0xee)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5c0916(0x103),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5c0916(0xe9),'enableAuth':_0x5c0916(0xe2),'enableAuthHint':_0x5c0916(0xe1),'connectionInfo':_0x5c0916(0xde),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5c0916(0xf8),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5c0916(0xdc),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5c0916(0xf3),'sessionIdDescription':_0x5c0916(0xe3),'authorizationDescription':_0x5c0916(0xfc),'configParameters':_0x5c0916(0x104),'maxRetries':_0x5c0916(0xf1),'save':'Save\x20Configuration','saving':_0x5c0916(0xdb),'note1':_0x5c0916(0xe7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x5c0916(0xfb),'apiApplyInfo':{'title':_0x5c0916(0xda),'description':_0x5c0916(0xf7),'univerAiLabel':_0x5c0916(0xec),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5c0916(0x102),'apiKeyTooShort':_0x5c0916(0xdd),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5c0916(0xfd)},'connectionStatus':{'disconnected':_0x5c0916(0xe8),'connecting':_0x5c0916(0xdf),'connected':_0x5c0916(0xe6),'failed':_0x5c0916(0x100),'retrying':_0x5c0916(0x101)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5c0916(0xf5),'networkError':_0x5c0916(0xfa),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4c8f96=_0x82c0;(function(_0x3b9b5f,_0x293bb8){const _0x339ebc=_0x82c0,_0x3f37dc=_0x3b9b5f();while(!![]){try{const _0x23cd86=-parseInt(_0x339ebc(0x16c))/0x1*(parseInt(_0x339ebc(0x168))/0x2)+-parseInt(_0x339ebc(0x146))/0x3+parseInt(_0x339ebc(0x145))/0x4*(parseInt(_0x339ebc(0x148))/0x5)+parseInt(_0x339ebc(0x162))/0x6+-parseInt(_0x339ebc(0x14d))/0x7*(-parseInt(_0x339ebc(0x159))/0x8)+parseInt(_0x339ebc(0x16b))/0x9*(parseInt(_0x339ebc(0x164))/0xa)+-parseInt(_0x339ebc(0x158))/0xb;if(_0x23cd86===_0x293bb8)break;else _0x3f37dc['push'](_0x3f37dc['shift']());}catch(_0x2d33bb){_0x3f37dc['push'](_0x3f37dc['shift']());}}}(_0x3d01,0x3df5b));function _0x82c0(_0x2e588c,_0x7b3857){const _0x3d0119=_0x3d01();return _0x82c0=function(_0x82c099,_0x3c9b75){_0x82c099=_0x82c099-0x141;let _0x17a169=_0x3d0119[_0x82c099];return _0x17a169;},_0x82c0(_0x2e588c,_0x7b3857);}function _0x3d01(){const _0x251521=['Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','exports','MCP\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','8361815HMHoqd','8Eoxqga','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Unauthorized','MCP\x20Disconnected','1798548ICNnge','Configuration\x20Steps:','2597340PjFfDO','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','182110IEHPsl','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','9NquvJK','3mMhVBS','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','MCP\x20Connecting...','Connecting...','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','Max\x20Retries','3524EuvEql','589371jHJzVx','API\x20Key','2555pMaaxD','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','3317237FexepN','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x3d01=function(){return _0x251521;};return _0x3d01();}const e={'mcpStatus':{'disconnected':_0x4c8f96(0x161),'connecting':_0x4c8f96(0x16f),'connected':_0x4c8f96(0x14a),'failed':_0x4c8f96(0x14b),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4c8f96(0x160),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4c8f96(0x165),'clickToConnect':_0x4c8f96(0x153),'clickToConfigure':_0x4c8f96(0x150)},'mcpConfig':{'title':_0x4c8f96(0x156),'description':_0x4c8f96(0x15e),'apiKey':_0x4c8f96(0x147),'apiKeyPlaceholder':_0x4c8f96(0x143),'apiKeyHint':_0x4c8f96(0x15f),'enableAuth':_0x4c8f96(0x15c),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4c8f96(0x171),'configInstructions':_0x4c8f96(0x142),'configStepTitle':_0x4c8f96(0x163),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4c8f96(0x16d),'configStep3':_0x4c8f96(0x15a),'sessionId':_0x4c8f96(0x15b),'sessionIdDescription':_0x4c8f96(0x14e),'authorizationDescription':_0x4c8f96(0x141),'configParameters':_0x4c8f96(0x16e),'maxRetries':_0x4c8f96(0x144),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4c8f96(0x151),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4c8f96(0x166),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4c8f96(0x149)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4c8f96(0x15d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4c8f96(0x14c)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4c8f96(0x170),'connected':_0x4c8f96(0x167),'failed':_0x4c8f96(0x152),'retrying':_0x4c8f96(0x16a)},'connectionError':{'unauthorized':_0x4c8f96(0x154),'sessionOccupied':_0x4c8f96(0x14f),'networkError':_0x4c8f96(0x169),'maxRetriesExceeded':_0x4c8f96(0x157)}}},n=e;module[_0x4c8f96(0x155)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x2b70(){const _0x4089a1=['225323WbMdVr','Retrying...','Invalid\x20configuration','24910guPRdJ','6lPfLXl','207fagiKf','MCP:\x20Unauthorized','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','77443hRpnzP','MCP\x20Client\x20Configuration','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Click\x20to\x20connect\x20MCP','Save\x20Configuration','1312080eRqPDa','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','What\x20is\x20API\x20Key?','exports','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','982254tIHAWp','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Max\x20Retries','336165QfGsVX','Session\x20ID','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','56LNrVoC','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','604652RIrsbd','MCP\x20Connected','MCP\x20Connection\x20Failed','Configuration\x20Steps:','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connecting...','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x2b70=function(){return _0x4089a1;};return _0x2b70();}const _0x221262=_0x470a;function _0x470a(_0x476409,_0x2210cd){const _0x2b70a0=_0x2b70();return _0x470a=function(_0x470a1d,_0x5a5239){_0x470a1d=_0x470a1d-0x7d;let _0xcd36bf=_0x2b70a0[_0x470a1d];return _0xcd36bf;},_0x470a(_0x476409,_0x2210cd);}(function(_0x4a2921,_0xf9e978){const _0x1a7e8f=_0x470a,_0x1d42b=_0x4a2921();while(!![]){try{const _0x3543c8=parseInt(_0x1a7e8f(0x82))/0x1+parseInt(_0x1a7e8f(0x89))/0x2+-parseInt(_0x1a7e8f(0x90))/0x3+parseInt(_0x1a7e8f(0x9d))/0x4+-parseInt(_0x1a7e8f(0x94))/0x5*(-parseInt(_0x1a7e8f(0xae))/0x6)+parseInt(_0x1a7e8f(0xaa))/0x7*(-parseInt(_0x1a7e8f(0x9a))/0x8)+-parseInt(_0x1a7e8f(0xaf))/0x9*(parseInt(_0x1a7e8f(0xad))/0xa);if(_0x3543c8===_0xf9e978)break;else _0x1d42b['push'](_0x1d42b['shift']());}catch(_0x3bbdf8){_0x1d42b['push'](_0x1d42b['shift']());}}}(_0x2b70,0x53755));const e={'mcpStatus':{'disconnected':_0x221262(0x9c),'connecting':_0x221262(0xa5),'connected':_0x221262(0x9e),'failed':_0x221262(0x9f),'retrying':_0x221262(0xb1),'unknown':_0x221262(0xa6),'unauthorized':_0x221262(0xb0),'sessionOccupied':_0x221262(0x97),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x221262(0x9b),'clickToConnect':_0x221262(0x87),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x221262(0xa8),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x221262(0x81),'apiKeyPlaceholder':_0x221262(0x91),'apiKeyHint':_0x221262(0xa3),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x221262(0x80),'connectionInfo':_0x221262(0x83),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x221262(0x85),'configStepTitle':_0x221262(0xa0),'configStep1':_0x221262(0xa7),'configStep2':_0x221262(0xa4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x221262(0x95),'sessionIdDescription':_0x221262(0x7e),'authorizationDescription':_0x221262(0x8f),'configParameters':_0x221262(0x7f),'maxRetries':_0x221262(0x93),'save':_0x221262(0x88),'saving':_0x221262(0x86),'note1':_0x221262(0x92),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x221262(0x8e),'configError':_0x221262(0xa2),'apiApplyInfo':{'title':_0x221262(0x8b),'description':_0x221262(0x8a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x221262(0x8d)},'validation':{'apiKeyRequired':_0x221262(0xa1),'apiKeyTooShort':_0x221262(0x98),'invalidConfig':_0x221262(0xac),'invalidApiKey':_0x221262(0x99)},'connectionStatus':{'disconnected':_0x221262(0x84),'connecting':'Connecting...','connected':'Connected','failed':_0x221262(0x96),'retrying':_0x221262(0xab)},'connectionError':{'unauthorized':_0x221262(0x7d),'sessionOccupied':_0x221262(0xa9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x221262(0x8c)]=n;
|