@univerjs-pro/mcp-ui 0.15.4 → 0.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2a4830=_0x4002;(function(_0x50456d,_0x35beb7){const _0x30367f=_0x4002,_0x38ad16=_0x50456d();while(!![]){try{const _0x3b39ce=parseInt(_0x30367f(0x116))/0x1+-parseInt(_0x30367f(0xc2))/0x2*(parseInt(_0x30367f(0x1f2))/0x3)+-parseInt(_0x30367f(0xec))/0x4*(parseInt(_0x30367f(0x10d))/0x5)+parseInt(_0x30367f(0x146))/0x6+parseInt(_0x30367f(0x15e))/0x7+-parseInt(_0x30367f(0xcb))/0x8*(parseInt(_0x30367f(0xb4))/0x9)+-parseInt(_0x30367f(0x195))/0xa;if(_0x3b39ce===_0x35beb7)break;else _0x38ad16['push'](_0x38ad16['shift']());}catch(_0x52b4fe){_0x38ad16['push'](_0x38ad16['shift']());}}}(_0x5866,0x9cf6b));var ae=Object['defineProperty'],le=(_0xfbf794,_0x215975,_0x399dc8)=>_0x215975 in _0xfbf794?ae(_0xfbf794,_0x215975,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x399dc8}):_0xfbf794[_0x215975]=_0x399dc8,I=(_0x30eca2,_0x11476d,_0x2206fd)=>le(_0x30eca2,typeof _0x11476d!=_0x2a4830(0x141)?_0x11476d+'':_0x11476d,_0x2206fd);Object[_0x2a4830(0x1dd)](exports,Symbol[_0x2a4830(0x147)],{'value':_0x2a4830(0x11f)});function _0x5866(){const _0x7e940b=['mcpConfig.save','text','mcpConfig.sessionIdDescription','createElement','M0\x200H16V16H0z','IUIPartsService','errorMessage','includes','Tooltip','mcpConfig.connectionInfo','2035tvdCQF','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','connectInjector','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionError.unauthorized','apiKey','mcp.apiKey','univer-text-green-500','1127897rwwTJb','Input','Disconnected','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','Authorization:','svg','mcpStatus.retrying','RibbonStartGroup','_registerComponent','Module','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Invalid\x20configuration','mcpConfig.connectionStatus.retrying','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','close-icon','enableAutoConnect','API\x20密钥','CONNECTED','univer-text-sm\x20univer-font-medium','showConfigPanel','API\x20key\x20is\x20required','IMessageService','removeItem','_configService','Save\x20Configuration','UniverIcon','mcpConfig.configStep1','配置保存失败','univer-shrink-0\x20univer-text-blue-500','Bearer\x20','SESSION_ID_OCCUPIED','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','_menuManagerService','Click\x20to\x20configure\x20MCP','点击配置\x20MCP','univer-text-blue-600','forwardRef','mask','connectionStatus$','MCPStatusDisplay','已连接','https://console.univer.plus','symbol','bottom','evenodd','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','您的\x20API\x20密钥安全存储在本地存储中','5244918hvlZmh','toStringTag','subscribe','has','registerComponent','Click\x20to\x20connect\x20MCP','OnLineIcon','get','mcp-ui.config','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Success','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20已连接','什么是\x20API\x20密钥?','map','ISocketService','IDialogService','MCP:\x20Unauthorized','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20超出最大重试次数','useDependency','1674722muDRjD','Session\x20ID','univer-bg-green-500','MCP:\x20Max\x20Retries\x20Exceeded','displayName','pluginName','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','onStarting','_logService','_handleConfigSave','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','value','defs','univer-bg-red-500','round','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','defIds','univer-space-y-4','配置无效','univerjs-icon\x20univerjs-icon-','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.configError','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.configInstructions','mcpStatus.maxRetriesExceeded','stringify','mcpConfig.configStepTitle','isValid','entries','univer-flex\x20univer-flex-wrap\x20univer-gap-2','https://console.univer.ai','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','BehaviorSubject','_localStorageService','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','会话ID','_initConfigSync','mergeMenu','zhCN','Button','span','check-mark-icon','_loadStoredApiKey','_uiPartsService','API\x20密钥不能为空','univer-flex\x20univer-items-center\x20univer-gap-2','UNAUTHORIZED','\x20-\x20','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-start\x20univer-gap-2','Enable\x20Authentication','univer-font-medium','MCP:\x20网络错误','colorChannel1','224390fcjfWj','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Inject','API\x20key\x20with\x20Bearer\x20prefix.','MCPConnectionStatus','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Configuration\x20Parameters:','_commandService','mcpConfig.configStep2','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','mcpConfig.description','UniverMCPUIPlugin','NONE','MCP\x20Unknown\x20Status','将配置添加到您的\x20MCP\x20客户端设置文件中','_initAutoConnect','带有\x20Bearer\x20前缀的\x20API\x20密钥。','CommandType','_injector','univer-space-y-3','jsxs','超出最大重试次数,请稍后再试','trim','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','0\x200\x2016\x2016','_config','API\x20密钥无效,请检查密钥是否正确','MCP\x20Disconnected','_initStatusComponent','univer.plus','mcpConfig.authorizationDescription','univer-text-red-500','show','univer-bg-gray-500','0\x200\x2017\x2016','none','mcpStatus.disconnected','push','_componentManager','mcpStatus.sessionOccupied','What\x20is\x20API\x20Key?','help-icon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP:\x20会话\x20ID\x20已被占用','univer-text-xs\x20univer-text-gray-600','权限验证失败,请检查您的\x20API\x20密钥','toString','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Univer\x20AI\x20控制台','Injector','_validateConfig','mcpConfig.connectionError.sessionOccupied','MCPConfigPanel','off','IMenuManagerService','getOwnPropertyDescriptor','UniverMCPPlugin','mcpStatus.unauthorized','useObservable','univer-space-y-2','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','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','close','MCP\x20Client\x20Configuration','mcp-ui.command.openConfigPanel','random','univer-text-gray-400','RETRYING','on-line-icon','validateApiKey','xlink:href','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','defineProperty','button','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpStatus.connecting','OffLineIcon','div','MCPConnectionUIController','connectionError$','univer-text-gray-500','__setCustomHeaders','1em','useCallback','MCP\x20客户端配置','Configuration\x20Notes:','<SESSION_ID>','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','translate(.97)','MCP:\x20Session\x20ID\x20Occupied','_initializeMenus','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','MCP\x20连接失败','3VlFTgx','Plugin','sessionId$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','use','Max\x20Retries','ILocalStorageService','连接失败','OTHERS','univer-flex\x20univer-items-center','_localeService','<API_KEY>','MenuIcon','length','_initializeCommands','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','FAILED','会话\x20ID\x20已被占用,请稍后再试','currentColor','mcpConfig.configStep3','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','add','url(#$1','mcpConfig.title','LocaleService','univer.ai','off-line-icon','_dialogService','MCP_PLUGIN_CONFIG_KEY','启用身份验证以获得安全连接','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','url(#off-line-icon_clip0_910_343)','useState','Disposable','mcpConfig.validation.invalidApiKey','最大重试次数','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','getConfig','enUS','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.description','IConfigService','NETWORK_ERROR','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','几秒钟内获取您的\x20API\x20密钥','MCPUIMenuController','\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','off-line-icon_clip0_910_343','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','substring','_messageService','useRef','disposeWithMe','ComponentManager','MCP\x20Configuration','HelpIcon','_handleConfigure','showDeveloperTools','warn','_blank','mcp-config-dialog','配置更改将立即生效','univer-space-y-5','BuiltInUIPart','path','_apiKey$','univer-flex\x20univer-items-center\x20univer-gap-3','DependentOn','subscribeConfigValue$','Error','error','18otOUoG','mcpConfig.connectionStatus.failed','配置保存成功','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Connecting...','next','MessageType','register','WebSocketService','fill','children','attrs','_loading$','网络连接错误,请检查您的网络连接','322634OSbQeA','_mcpCoreConfig$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','请输入您的\x20API\x20密钥','MAX_RETRIES_EXCEEDED','Enter\x20your\x20API\x20key','clsx','MCPConfigUIController','MCP\x20状态未知','795632CZJust','MCPConnectionError','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','mcpServerUrl','clipPath','mcpStatus.clickToConnect','启用身份验证','univer-text-xs\x20univer-text-gray-500','_mcpConnectionController','_createConfigPanelComponent','noopener\x20noreferrer','mcpConfig.connectionStatus.disconnected','current','assign','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.saving','配置参数:','_connectionController','mcpStatus.connected','MCP\x20重连中...','MCP\x20连接中...','mcpConfig.apiApplyInfo.title','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','点击连接\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','replace','univer-min-w-0\x20univer-flex-1','mcpConfig.apiKey','idSuffix','mcpConfig.note1','open','tag','11948ncgxYl','setConfig','mcpStatus.unknown','MCP\x20Connected','jsx','MCPConnectionController','setItem','您的\x20API\x20密钥将在此浏览器中本地存储','MenuItemType','forEach','Univer\x20AI\x20Console','getCurrentConfig','string','http://www.w3.org/2000/svg','CONNECTING','ICommandService','Connection\x20Failed','_config$','mcpConfig.note2','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionStatus.connecting','mcpConfig.apiKeyPlaceholder','DISCONNECTED'];_0x5866=function(){return _0x7e940b;};return _0x5866();}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:_0x121da,..._0x4dbc6c}){const _0xfed03b=_0x2a4830,{icon:_0x4a27e1,id:_0x20d783,className:_0x5ec0cc,extend:_0x18d565,..._0x4a7204}=_0x4dbc6c,_0x4dc96a=(_0xfed03b(0x172)+_0x20d783+'\x20'+(_0x5ec0cc||''))[_0xfed03b(0x1ab)](),_0x305cee=d[_0xfed03b(0x226)]('_'+de());return G(_0x4a27e1,''+_0x20d783,{'defIds':_0x4a27e1[_0xfed03b(0x16f)],'idSuffix':_0x305cee[_0xfed03b(0xd7)]},{'ref':_0x121da,'className':_0x4dc96a,..._0x4a7204},_0x18d565);}function G(_0x3cd32d,_0x351d76,_0x298794,_0x484ddc,_0x26e84e){const _0x8e0702=_0x2a4830;return d[_0x8e0702(0x106)](_0x3cd32d[_0x8e0702(0xeb)],{'key':_0x351d76,...ue(_0x3cd32d,_0x298794,_0x26e84e),..._0x484ddc},(ve(_0x3cd32d,_0x298794)['children']||[])[_0x8e0702(0x155)]((_0x338c2d,_0x478e91)=>G(_0x338c2d,_0x351d76+'-'+_0x3cd32d['tag']+'-'+_0x478e91,_0x298794,void 0x0,_0x26e84e)));}function ue(_0x5a807d,_0x112c0c,_0x147cdd){const _0x13c867=_0x2a4830,_0x36aca3={..._0x5a807d['attrs']};_0x147cdd!=null&&_0x147cdd[_0x13c867(0x194)]&&_0x36aca3['fill']===_0x13c867(0x194)&&(_0x36aca3[_0x13c867(0xbd)]=_0x147cdd['colorChannel1']),_0x5a807d[_0x13c867(0xeb)]===_0x13c867(0x13c)&&_0x36aca3['id']&&(_0x36aca3['id']=_0x36aca3['id']+_0x112c0c[_0x13c867(0xe8)]),Object[_0x13c867(0x17b)](_0x36aca3)['forEach'](([_0x4a71af,_0x486cfe])=>{const _0x240b71=_0x13c867;_0x4a71af==='mask'&&typeof _0x486cfe=='string'&&(_0x36aca3[_0x4a71af]=_0x486cfe[_0x240b71(0xe5)](/url\(#(.*)\)/,'url(#$1'+_0x112c0c[_0x240b71(0xe8)]+')'));});const {defIds:_0x3b4681}=_0x112c0c;return!_0x3b4681||_0x3b4681[_0x13c867(0x1ff)]===0x0||(_0x5a807d['tag']===_0x13c867(0x1f6)&&_0x36aca3[_0x13c867(0x1db)]&&(_0x36aca3[_0x13c867(0x1db)]=_0x36aca3[_0x13c867(0x1db)]+_0x112c0c[_0x13c867(0xe8)]),Object['entries'](_0x36aca3)[_0x13c867(0xf5)](([_0x34e63c,_0xb4cb0])=>{const _0x7cb013=_0x13c867;typeof _0xb4cb0=='string'&&(_0x36aca3[_0x34e63c]=_0xb4cb0['replace'](/url\(#(.*)\)/,_0x7cb013(0x209)+_0x112c0c[_0x7cb013(0xe8)]+')'));})),_0x36aca3;}function ve(_0x2303c9,_0x309638){const _0x151a13=_0x2a4830;var _0x366308;const {defIds:_0x8c666}=_0x309638;return!_0x8c666||_0x8c666['length']===0x0?_0x2303c9:_0x2303c9[_0x151a13(0xeb)]===_0x151a13(0x16a)&&((_0x366308=_0x2303c9[_0x151a13(0xbe)])!=null&&_0x366308[_0x151a13(0x1ff)])?{..._0x2303c9,'children':_0x2303c9[_0x151a13(0xbe)]['map'](_0x697984=>typeof _0x697984[_0x151a13(0xbf)]['id']==_0x151a13(0xf8)&&_0x8c666&&_0x8c666[_0x151a13(0x10a)](_0x697984[_0x151a13(0xbf)]['id'])?{..._0x697984,'attrs':{..._0x697984['attrs'],'id':_0x697984[_0x151a13(0xbf)]['id']+_0x309638[_0x151a13(0xe8)]}}:_0x697984)}:_0x2303c9;}function de(){const _0x14c656=_0x2a4830;return Math[_0x14c656(0x1d6)]()[_0x14c656(0x1c3)](0x24)[_0x14c656(0x224)](0x2,0x8);}_[_0x2a4830(0x162)]=_0x2a4830(0x130);const Ce={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a4830(0x1b8),'viewBox':'0\x200\x2016\x2016','width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0x211),'fillRule':_0x2a4830(0x143),'clipRule':_0x2a4830(0x143)}}]},H=d['forwardRef'](function(_0x32b00c,_0x46c4c0){const _0x2211c7=_0x2a4830;return d['createElement'](_,Object['assign']({},_0x32b00c,{'id':_0x2211c7(0x188),'ref':_0x46c4c0,'icon':Ce}));});H[_0x2a4830(0x162)]='CheckMarkIcon';const ge={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':_0x2a4830(0xf9),'fill':'none','viewBox':_0x2a4830(0x1ad),'width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0x119)}}]},B=d[_0x2a4830(0x13b)](function(_0x5513f4,_0x538d53){const _0x2847d2=_0x2a4830;return d[_0x2847d2(0x106)](_,Object[_0x2847d2(0xd8)]({},_0x5513f4,{'id':_0x2847d2(0x125),'ref':_0x538d53,'icon':ge}));});B[_0x2a4830(0x162)]='CloseIcon';const fe={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':_0x2a4830(0xf9),'fill':_0x2a4830(0x1b8),'viewBox':_0x2a4830(0x1ad),'width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0xcd)}},{'tag':_0x2a4830(0xad),'attrs':{'fill':_0x2a4830(0x204),'d':_0x2a4830(0x1d1),'fillRule':_0x2a4830(0x143),'clipRule':'evenodd'}}]},F=d[_0x2a4830(0x13b)](function(_0x238490,_0x72267e){const _0x54f459=_0x2a4830;return d[_0x54f459(0x106)](_,Object[_0x54f459(0xd8)]({},_0x238490,{'id':_0x54f459(0x1be),'ref':_0x72267e,'icon':fe}));});F['displayName']=_0x2a4830(0x22a);const pe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a4830(0x1b8),'viewBox':_0x2a4830(0x1ad),'width':_0x2a4830(0x1e7),'height':_0x2a4830(0x1e7)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a4830(0x212)},'children':[{'tag':'path','attrs':{'stroke':_0x2a4830(0x204),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2a4830(0x16c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2a4830(0x16a),'attrs':{},'children':[{'tag':_0x2a4830(0xcf),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2a4830(0x107)}}]}]}],'defIds':[_0x2a4830(0x222)]},Y=d[_0x2a4830(0x13b)](function(_0x16c95e,_0x4fb904){const _0x241e75=_0x2a4830;return d[_0x241e75(0x106)](_,Object[_0x241e75(0xd8)]({},_0x16c95e,{'id':_0x241e75(0x20d),'ref':_0x4fb904,'icon':pe}));});Y[_0x2a4830(0x162)]=_0x2a4830(0x1e1);const he={'tag':_0x2a4830(0x11b),'attrs':{'xmlns':_0x2a4830(0xf9),'fill':_0x2a4830(0x1b8),'viewBox':_0x2a4830(0x1b7),'width':'1em','height':_0x2a4830(0x1e7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2a4830(0xad),'attrs':{'stroke':_0x2a4830(0x204),'d':_0x2a4830(0x1ec),'strokeLinecap':_0x2a4830(0x16c),'strokeLinejoin':_0x2a4830(0x16c),'strokeWidth':1.2}}]},{'tag':_0x2a4830(0x16a),'attrs':{},'children':[{'tag':_0x2a4830(0xcf),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2a4830(0x107),'transform':_0x2a4830(0x1ed)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x2a4830(0x13b)](function(_0x3110c0,_0x1c8de7){const _0x4d2861=_0x2a4830;return d[_0x4d2861(0x106)](_,Object[_0x4d2861(0xd8)]({},_0x3110c0,{'id':_0x4d2861(0x1d9),'ref':_0x1c8de7,'icon':he}));});q['displayName']=_0x2a4830(0x14c);function V(_0x3c681d){const _0x360f3a=_0x2a4830;var _0x552351,_0x31bf4a;const {mcpCoreConfig:_0x1b81b9,onSave:_0x5609a8,loading:_0x473068=!0x1,config:_0x40c91e,connectionStatus$:_0x41b3bd,connectionError$:_0x40c2c0,currentApiKey$:_0x5c46ed,currentSessionId$:_0x28f7f5}=_0x3c681d,_0x4af89a=v[_0x360f3a(0x15d)](u[_0x360f3a(0x20b)]),_0x4f64ff=v[_0x360f3a(0x1cf)](_0x41b3bd,s[_0x360f3a(0x199)][_0x360f3a(0x102)]),_0x1514d8=v['useObservable'](_0x40c2c0,s['MCPConnectionError'][_0x360f3a(0x1a1)]),_0x2d5e32=v['useObservable'](_0x28f7f5,''),_0x207b58=v[_0x360f3a(0x1cf)](_0x5c46ed,''),[_0x36d4e0,_0x1be6e4]=d[_0x360f3a(0x213)](_0x207b58||''),_0xcce1fd=!0x0,_0x338e58=_0x40c91e[_0x360f3a(0x22c)]&&_0x1b81b9[_0x360f3a(0xce)]&&(_0x1b81b9[_0x360f3a(0xce)][_0x360f3a(0x10a)](_0x360f3a(0x1b2))||_0x1b81b9[_0x360f3a(0xce)][_0x360f3a(0x10a)](_0x360f3a(0x20c))),_0x59eb47=(_0x552351=_0x1b81b9[_0x360f3a(0xce)])==null?void 0x0:_0x552351[_0x360f3a(0x10a)](_0x360f3a(0x1b2)),_0x1a72f4=(_0x31bf4a=_0x1b81b9[_0x360f3a(0xce)])==null?void 0x0:_0x31bf4a[_0x360f3a(0x10a)](_0x360f3a(0x20c)),_0x523d00=_0x59eb47?_0x360f3a(0x140):_0x360f3a(0x17d),_0x55ca99=_0x40c91e['showDeveloperTools']&&(_0x59eb47||_0x1a72f4),[_0x56d3b5,_0x53c080]=d[_0x360f3a(0x213)](!_0x36d4e0['trim']()),_0x1ff6a7=(_0x4f7093,_0x382c21)=>{const _0xe9b5c3=_0x360f3a;if(_0x382c21===s[_0xe9b5c3(0xcc)]['UNAUTHORIZED'])return _0xe9b5c3(0x173);switch(_0x4f7093){case s[_0xe9b5c3(0x199)][_0xe9b5c3(0x128)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0xe9b5c3(0x199)][_0xe9b5c3(0xfa)]:case s[_0xe9b5c3(0x199)][_0xe9b5c3(0x1d8)]:return _0xe9b5c3(0x1c4);case s[_0xe9b5c3(0x199)][_0xe9b5c3(0x202)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0xe9b5c3(0x1d2);}},_0x5155d3=(_0x494932,_0x1d86d6)=>{const _0x1b8f35=_0x360f3a;if(_0x1d86d6===s[_0x1b8f35(0xcc)][_0x1b8f35(0x18d)])return _0x1b8f35(0x16b);switch(_0x494932){case s[_0x1b8f35(0x199)][_0x1b8f35(0x128)]:return _0x1b8f35(0x160);case s[_0x1b8f35(0x199)]['CONNECTING']:case s['MCPConnectionStatus']['RETRYING']:return'univer-bg-blue-500';case s[_0x1b8f35(0x199)]['FAILED']:return _0x1b8f35(0x16b);default:return _0x1b8f35(0x1b6);}},_0x219c21=_0x24a8d7=>{const _0x1228dc=_0x360f3a;switch(_0x24a8d7){case s['MCPConnectionStatus'][_0x1228dc(0x128)]:return _0x4af89a['t']('mcpConfig.connectionStatus.connected');case s[_0x1228dc(0x199)][_0x1228dc(0xfa)]:return _0x4af89a['t'](_0x1228dc(0x100));case s[_0x1228dc(0x199)][_0x1228dc(0x202)]:return _0x4af89a['t'](_0x1228dc(0xb5));case s[_0x1228dc(0x199)][_0x1228dc(0x1d8)]:return _0x4af89a['t'](_0x1228dc(0x123));default:return _0x4af89a['t'](_0x1228dc(0xd6));}},_0x5ef593=_0xb47451=>{const _0x4e5c14=_0x360f3a;switch(_0xb47451){case s[_0x4e5c14(0xcc)][_0x4e5c14(0x18d)]:return _0x4af89a['t'](_0x4e5c14(0x112));case s[_0x4e5c14(0xcc)][_0x4e5c14(0x135)]:return _0x4af89a['t'](_0x4e5c14(0x1c8));case s['MCPConnectionError'][_0x4e5c14(0x21d)]:return _0x4af89a['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x4af89a['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4e450f=d[_0x360f3a(0x1e8)](()=>{const _0x4548e5=_0x360f3a,_0x297e27={..._0x1b81b9,'apiKey':_0x36d4e0[_0x4548e5(0x1ab)](),'enableAuth':_0xcce1fd};_0x5609a8(_0x297e27);},[_0x1b81b9,_0x36d4e0,_0xcce1fd,_0x5609a8]),_0x53f2a5=_0x36d4e0[_0x360f3a(0x1ab)]()[_0x360f3a(0x1ff)]>0x0;return i['jsxs'](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1bf),'children':i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0xaf),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x19a),'children':i['jsx'](_0x360f3a(0x187),{'className':'univer-text-white','children':'⚙'})}),i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'children':i[_0x360f3a(0xf0)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4af89a['t'](_0x360f3a(0x19f))})})]})}),i['jsxs']('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i['jsx'](_0x360f3a(0x1e2),{'className':f[_0x360f3a(0xc8)](_0x360f3a(0x1df),_0x1ff6a7(_0x4f64ff,_0x1514d8)),'children':i['jsxs'](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':f[_0x360f3a(0xc8)]('univer-size-2\x20univer-rounded-full',_0x5155d3(_0x4f64ff,_0x1514d8))}),i['jsx'](_0x360f3a(0x187),{'className':_0x360f3a(0x129),'children':_0x219c21(_0x4f64ff)})]})}),_0x1514d8!==s[_0x360f3a(0xcc)][_0x360f3a(0x1a1)]&&(_0x4f64ff===s['MCPConnectionStatus'][_0x360f3a(0x202)]||_0x1514d8===s[_0x360f3a(0xcc)][_0x360f3a(0x18d)])&&i['jsx'](_0x360f3a(0x1e2),{'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'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x190),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0x10e),'children':_0x5ef593(_0x1514d8)})]})})]}),i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0xe4),'children':i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x231),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1d0),'children':[i[_0x360f3a(0x1a9)]('label',{'className':_0x360f3a(0xb7),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'🔑'}),'\x20',_0x4af89a['t'](_0x360f3a(0xe7)),i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x1b4),'children':'*'}),_0x338e58&&i[_0x360f3a(0xf0)]('a',{'className':'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','title':_0x4af89a['t'](_0x360f3a(0xe0)),'role':_0x360f3a(0x1de),'onClick':()=>_0x53c080(!0x0),'children':i[_0x360f3a(0xf0)](F,{})})]}),i[_0x360f3a(0xf0)](f[_0x360f3a(0x117)],{'type':_0x360f3a(0x104),'placeholder':_0x4af89a['t'](_0x360f3a(0x101)),'value':_0x36d4e0,'disabled':_0x473068,'autoComplete':_0x360f3a(0x1ca),'onChange':_0x1be6e4}),i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0xd2),'children':_0x4af89a['t']('mcpConfig.apiKeyHint')})]}),_0x338e58&&_0x56d3b5&&i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xe1),'children':[i[_0x360f3a(0xf0)]('a',{'className':_0x360f3a(0x19e),'role':_0x360f3a(0x1de),'onClick':()=>_0x53c080(!0x1),'children':i[_0x360f3a(0xf0)](B,{'className':'univer-size-4'})}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x181),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i['jsx'](_0x360f3a(0x187),{'className':_0x360f3a(0x13a),'children':'🚀'})}),i[_0x360f3a(0x1a9)]('div',{'className':'univer-flex-1','children':[i[_0x360f3a(0xf0)]('h4',{'className':_0x360f3a(0x18f),'children':_0x4af89a['t'](_0x360f3a(0xe0))}),i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0x120),'children':_0x4af89a['t'](_0x360f3a(0x21b))}),i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0x17c),'children':_0x55ca99&&i['jsxs']('a',{'className':_0x360f3a(0x223),'href':_0x523d00,'target':_0x360f3a(0x22e),'rel':_0x360f3a(0xd5),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'🤖'}),_0x4af89a['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x1d7),'children':'↗'})]})}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x110),'children':['✨','\x20',_0x4af89a['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x40c91e[_0x360f3a(0x22c)]&&i[_0x360f3a(0x1a9)]('div',{'className':_0x360f3a(0x144),'children':[i[_0x360f3a(0x1a9)]('h4',{'className':_0x360f3a(0xd9),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'🔗'}),'\x20',_0x4af89a['t'](_0x360f3a(0x10c))]}),i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x170),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1a8),'children':[i[_0x360f3a(0xf0)]('p',{'className':_0x360f3a(0x1c1),'children':_0x4af89a['t'](_0x360f3a(0x176))}),i[_0x360f3a(0x1a9)]('div',{'className':'univer-space-y-2','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x17e),'children':_0x4af89a['t'](_0x360f3a(0x179))}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x164),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x217),'children':'1'}),_0x4af89a['t'](_0x360f3a(0x131))]}),i[_0x360f3a(0x1a9)]('div',{'className':_0x360f3a(0x18c),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x217),'children':'2'}),_0x4af89a['t'](_0x360f3a(0x19d))]}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x18c),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x217),'children':'3'}),_0x4af89a['t'](_0x360f3a(0x205))]})]})]})]}),i['jsxs']('div',{'className':_0x360f3a(0x1d0),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x17e),'children':_0x360f3a(0x229)}),i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0x121),'children':i['jsx']('pre',{'className':_0x360f3a(0x1dc),'children':JSON[_0x360f3a(0x178)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x2d5e32||_0x360f3a(0x1eb)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x36d4e0||_0x360f3a(0x1fd))}}}},null,0x2)})})]}),i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1a8),'children':[i['jsx'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x17e),'children':_0x4af89a['t']('mcpConfig.configParameters')}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x1d0),'children':[i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xff),'children':[i['jsx']('div',{'className':_0x360f3a(0x21e)}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xe6),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x16e),'children':'univer_session_id:'}),i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0xd2),'children':_0x4af89a['t'](_0x360f3a(0x105))})]})]}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x21e)}),i['jsxs'](_0x360f3a(0x1e2),{'className':_0x360f3a(0xe6),'children':[i['jsx'](_0x360f3a(0x1e2),{'className':_0x360f3a(0x16e),'children':_0x360f3a(0x11a)}),i['jsx'](_0x360f3a(0x1e2),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4af89a['t'](_0x360f3a(0x1b3))})]})]})]})]})]})]}),i[_0x360f3a(0xf0)](f[_0x360f3a(0x186)],{'onClick':_0x4e450f,'disabled':!_0x53f2a5||_0x473068,'className':_0x360f3a(0x1f0),'children':_0x473068?i[_0x360f3a(0x1a9)](_0x360f3a(0x187),{'className':_0x360f3a(0x18c),'children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'children':'⟲'}),_0x4af89a['t'](_0x360f3a(0xda))]}):i[_0x360f3a(0x1a9)](_0x360f3a(0x187),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x360f3a(0xf0)](H,{}),_0x4af89a['t'](_0x360f3a(0x103))]})}),i['jsx'](_0x360f3a(0x1e2),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x360f3a(0xf0)](_0x360f3a(0x187),{'className':_0x360f3a(0x133),'children':'💡'}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'className':_0x360f3a(0x196),'children':[i[_0x360f3a(0xf0)]('div',{'className':_0x360f3a(0x192),'children':_0x360f3a(0x1ea)}),i[_0x360f3a(0x1a9)](_0x360f3a(0x1e2),{'children':['•',_0x4af89a['t'](_0x360f3a(0xe9))]}),i['jsxs']('div',{'children':['•',_0x4af89a['t'](_0x360f3a(0xfe))]})]})]})})]})})]});}const P=_0x2a4830(0x14e),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object['getOwnPropertyDescriptor'],xe=(_0x458ed5,_0x3f6752,_0x2f77c0,_0x5b22c3)=>{const _0x33c856=_0x2a4830;for(var _0x4917c2=_0x5b22c3>0x1?void 0x0:_0x5b22c3?me(_0x3f6752,_0x2f77c0):_0x3f6752,_0x34b1a5=_0x458ed5[_0x33c856(0x1ff)]-0x1,_0x2a0d22;_0x34b1a5>=0x0;_0x34b1a5--)(_0x2a0d22=_0x458ed5[_0x34b1a5])&&(_0x4917c2=_0x2a0d22(_0x4917c2)||_0x4917c2);return _0x4917c2;},g=(_0x4cfe18,_0x133726)=>(_0x4d61d8,_0x459f8f)=>_0x133726(_0x4d61d8,_0x459f8f,_0x4cfe18);const O=_0x2a4830(0x114),D=_0x2a4830(0x22f);exports[_0x2a4830(0xc9)]=class extends u[_0x2a4830(0x214)]{constructor(_0x480ef6,_0x161cf9,_0x2fb872,_0x1081ec,_0x5b1f75,_0x3fd513,_0x59b5d9,_0x2abad3,_0x450f32,_0x1b610e){const _0x48d44b=_0x2a4830;super(),I(this,_0x48d44b(0xc0),new M[(_0x48d44b(0x17f))](!0x1)),I(this,_0x48d44b(0xc3),new M[(_0x48d44b(0x17f))]({})),I(this,_0x48d44b(0xfd),new M[(_0x48d44b(0x17f))]({})),I(this,_0x48d44b(0xae),new M[(_0x48d44b(0x17f))]('')),I(this,_0x48d44b(0x167),async _0x5cbdb4=>{const _0x383bd7=_0x48d44b;var _0x480c0b,_0x2ab718;this[_0x383bd7(0xc0)]['next'](!0x0);try{const _0x395319=await this[_0x383bd7(0x1c7)](_0x5cbdb4);if(!_0x395319[_0x383bd7(0x17a)]){this[_0x383bd7(0x225)][_0x383bd7(0x1b5)]({'type':f[_0x383bd7(0xba)][_0x383bd7(0xb2)],'content':_0x395319[_0x383bd7(0x109)]||this[_0x383bd7(0x1fc)]['t'](_0x383bd7(0x21a))});return;}_0x5cbdb4[_0x383bd7(0x113)]?await this['_localStorageService'][_0x383bd7(0xf2)](O,_0x5cbdb4[_0x383bd7(0x113)][_0x383bd7(0x1ab)]()):await this[_0x383bd7(0x180)][_0x383bd7(0x12d)](O),this[_0x383bd7(0xae)][_0x383bd7(0xb9)](((_0x480c0b=_0x5cbdb4[_0x383bd7(0x113)])==null?void 0x0:_0x480c0b[_0x383bd7(0x1ab)]())||''),this[_0x383bd7(0xd3)][_0x383bd7(0x1e6)]({'Authorization':_0x383bd7(0x134)+((_0x2ab718=_0x5cbdb4['apiKey'])==null?void 0x0:_0x2ab718[_0x383bd7(0x1ab)]())}),this[_0x383bd7(0x225)][_0x383bd7(0x1b5)]({'type':f[_0x383bd7(0xba)][_0x383bd7(0x151)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2bdcef=_0x383bd7;this[_0x2bdcef(0x20e)]['close'](D);},0x320);}catch(_0x3b25e5){this['_logService'][_0x383bd7(0xb3)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3b25e5),this[_0x383bd7(0x225)][_0x383bd7(0x1b5)]({'type':f[_0x383bd7(0xba)][_0x383bd7(0xb2)],'content':this[_0x383bd7(0x1fc)]['t'](_0x383bd7(0x174))});}finally{this[_0x383bd7(0xc0)][_0x383bd7(0xb9)](!0x1);}}),(this[_0x48d44b(0x1a7)]=_0x480ef6,this[_0x48d44b(0x18a)]=_0x161cf9,this[_0x48d44b(0x12e)]=_0x2fb872,this[_0x48d44b(0x180)]=_0x1081ec,this[_0x48d44b(0x20e)]=_0x5b1f75,this[_0x48d44b(0x225)]=_0x3fd513,this[_0x48d44b(0x1bb)]=_0x59b5d9,this[_0x48d44b(0x1fc)]=_0x2abad3,this[_0x48d44b(0x166)]=_0x450f32,this[_0x48d44b(0xd3)]=_0x1b610e,this[_0x48d44b(0x183)](),this[_0x48d44b(0x189)](),this[_0x48d44b(0x11e)]());}['showConfigPanel'](){const _0x3a8f3a=_0x2a4830,_0x117b2d=this[_0x3a8f3a(0x12e)]['getConfig'](P);_0x117b2d!=null&&_0x117b2d[_0x3a8f3a(0x22c)]&&this[_0x3a8f3a(0x20e)][_0x3a8f3a(0xea)]({'id':D,'title':{'title':this[_0x3a8f3a(0x1fc)]['t'](_0x3a8f3a(0x20a))},'children':{'label':_0x3a8f3a(0x1c9)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2e6349=_0x3a8f3a;this[_0x2e6349(0x20e)][_0x2e6349(0x1d3)](D);}});}[_0x2a4830(0xf7)](){return this['_mcpCoreConfig$']['value'];}[_0x2a4830(0x11e)](){const _0x1afa04=_0x2a4830;this[_0x1afa04(0x227)](this[_0x1afa04(0x1bb)][_0x1afa04(0xbb)](_0x1afa04(0x1c9),this['_createConfigPanelComponent']()));}[_0x2a4830(0xd4)](){const _0x46ed3c=_0x2a4830;return v[_0x46ed3c(0x10f)](()=>{const _0x2a6407=_0x46ed3c;var _0x3592ef,_0x4b660d,_0x2ff5c8;return i[_0x2a6407(0xf0)](V,{'config':this[_0x2a6407(0xfd)][_0x2a6407(0x169)],'mcpCoreConfig':this[_0x2a6407(0xc3)]['value'],'currentApiKey$':this[_0x2a6407(0xae)],'onSave':this['_handleConfigSave'],'loading':this[_0x2a6407(0xc0)][_0x2a6407(0x169)],'connectionStatus$':(_0x3592ef=this[_0x2a6407(0xd3)])==null?void 0x0:_0x3592ef[_0x2a6407(0x13d)],'connectionError$':(_0x4b660d=this[_0x2a6407(0xd3)])==null?void 0x0:_0x4b660d['connectionError$'],'currentSessionId$':(_0x2ff5c8=this[_0x2a6407(0xd3)])==null?void 0x0:_0x2ff5c8[_0x2a6407(0x1f4)]});},this[_0x46ed3c(0x1a7)]);}['_initConfigSync'](){const _0x310006=_0x2a4830;this[_0x310006(0x227)](this[_0x310006(0x12e)][_0x310006(0xb1)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x310006(0x148)](_0x49e826=>{const _0x4f3123=_0x310006;this[_0x4f3123(0xc3)][_0x4f3123(0xb9)](_0x49e826||{});}));const _0x156854=this[_0x310006(0x12e)][_0x310006(0x218)](s[_0x310006(0x20f)]);this[_0x310006(0xc3)][_0x310006(0xb9)](_0x156854||{}),this[_0x310006(0x227)](this[_0x310006(0x12e)][_0x310006(0xb1)](P)[_0x310006(0x148)](_0x5d5245=>{const _0x2efada=_0x310006;this[_0x2efada(0xfd)]['next'](_0x5d5245||{});}));const _0xc03cc5=this['_configService']['getConfig'](P);this[_0x310006(0xfd)][_0x310006(0xb9)](_0xc03cc5||{});}async[_0x2a4830(0x189)](){const _0x2e15a5=_0x2a4830,_0x5af155=this[_0x2e15a5(0x12e)][_0x2e15a5(0x218)](P);if(!(_0x5af155!=null&&_0x5af155[_0x2e15a5(0x22c)]))return;const _0x40f98b=await this[_0x2e15a5(0x180)]['getItem'](O);_0x40f98b&&(this['_mcpConnectionController'][_0x2e15a5(0x1e6)]({'Authorization':_0x2e15a5(0x134)+_0x40f98b}),this['_apiKey$'][_0x2e15a5(0xb9)](_0x40f98b));}async[_0x2a4830(0x1c7)](_0x3c29c0){const _0x201e1c=_0x2a4830;if(!_0x3c29c0[_0x201e1c(0x113)]||_0x3c29c0[_0x201e1c(0x113)]['trim']()[_0x201e1c(0x1ff)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x201e1c(0x1fc)]['t'](_0x201e1c(0x111))};if(_0x3c29c0[_0x201e1c(0x113)][_0x201e1c(0x1ab)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x201e1c(0x1fc)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x46f3e6=await this[_0x201e1c(0x1a7)][_0x201e1c(0x14d)](s[_0x201e1c(0xf1)])[_0x201e1c(0x1da)](_0x3c29c0[_0x201e1c(0x113)]['trim']());return _0x46f3e6[_0x201e1c(0x17a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x46f3e6[_0x201e1c(0xb3)]||this['_localeService']['t'](_0x201e1c(0x215))};}catch(_0xc0965d){return console[_0x201e1c(0x22d)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0xc0965d),{'isValid':!0x0};}}},exports[_0x2a4830(0xc9)]=xe([g(0x0,u[_0x2a4830(0x197)](u['Injector'])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x2a4830(0x21c)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x2a4830(0x157)]),g(0x5,v[_0x2a4830(0x12c)]),g(0x6,u['Inject'](v[_0x2a4830(0x228)])),g(0x7,u[_0x2a4830(0x197)](u[_0x2a4830(0x20b)])),g(0x8,u['ILogService']),g(0x9,u[_0x2a4830(0x197)](s[_0x2a4830(0xf1)]))],exports[_0x2a4830(0xc9)]);const b={'id':_0x2a4830(0x1d5),'type':u[_0x2a4830(0x1a6)]['COMMAND'],'handler':async(_0x467e89,_0x414207)=>(_0x467e89['get'](exports[_0x2a4830(0xc9)])[_0x2a4830(0x12a)](),!0x0)};function Z(_0x21c77b,_0x212981){const _0x11f779=_0x2a4830;switch(_0x21c77b){case s[_0x11f779(0x199)]['DISCONNECTED']:return _0x11f779(0x1b9);case s[_0x11f779(0x199)][_0x11f779(0xfa)]:return _0x11f779(0x1e0);case s[_0x11f779(0x199)][_0x11f779(0x128)]:return _0x11f779(0xdd);case s[_0x11f779(0x199)]['FAILED']:switch(_0x212981){case s[_0x11f779(0xcc)][_0x11f779(0x18d)]:return _0x11f779(0x1ce);case s[_0x11f779(0xcc)][_0x11f779(0x135)]:return _0x11f779(0x1bc);case s[_0x11f779(0xcc)]['NETWORK_ERROR']:return'mcpStatus.networkError';case s[_0x11f779(0xcc)][_0x11f779(0xc6)]:return _0x11f779(0x177);default:return'mcpStatus.failed';}case s[_0x11f779(0x199)]['RETRYING']:return _0x11f779(0x11c);default:return _0x11f779(0xee);}}function _0x4002(_0x14989b,_0x3e5e7b){_0x14989b=_0x14989b-0xac;const _0x586657=_0x5866();let _0x400289=_0x586657[_0x14989b];return _0x400289;}function Se(_0xd4d15,_0x543146,_0x167028,_0x5a10fe=!0x0){const _0x53f14e=_0x2a4830,_0x4f459f=Z(_0xd4d15,_0x543146),_0x4159cf=_0x167028['t'](_0x4f459f);return _0x5a10fe?_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x102)]&&_0x543146===s[_0x53f14e(0xcc)][_0x53f14e(0x18d)]?_0x4159cf+_0x53f14e(0x18e)+_0x167028['t']('mcpStatus.clickToConfigure'):_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x128)]?''+_0x4159cf:_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x102)]||_0xd4d15===s[_0x53f14e(0x199)][_0x53f14e(0x202)]?_0x4159cf+'\x20-\x20'+_0x167028['t'](_0x53f14e(0xd0)):_0x4159cf:_0x4159cf;}function Pe(_0x3f054c){const _0x512e68=_0x2a4830;switch(_0x3f054c){case s[_0x512e68(0x199)][_0x512e68(0x128)]:return _0x512e68(0x115);case s['MCPConnectionStatus']['CONNECTING']:case s['MCPConnectionStatus'][_0x512e68(0x1d8)]:return'univer-text-yellow-500';case s[_0x512e68(0x199)]['FAILED']:case s[_0x512e68(0x199)][_0x512e68(0x102)]:return _0x512e68(0x1b4);default:return _0x512e68(0x1e5);}}function W(_0x554562){const _0x9942f4=_0x2a4830,{status$:_0x5364f9,error$:_0x2d8f5c,onConfigure:_0x28e45a,showClickable:_0x1f724e=!0x0}=_0x554562,_0xa4e084=v[_0x9942f4(0x1cf)](_0x5364f9,s[_0x9942f4(0x199)]['DISCONNECTED']),_0x20972c=v[_0x9942f4(0x1cf)](_0x2d8f5c,s[_0x9942f4(0xcc)][_0x9942f4(0x1a1)]),_0xb18bc0=v[_0x9942f4(0x15d)](u[_0x9942f4(0x20b)]),_0xcc839a=_0xa4e084===s[_0x9942f4(0x199)][_0x9942f4(0x128)];_0xa4e084===s[_0x9942f4(0x199)][_0x9942f4(0xfa)]||s[_0x9942f4(0x199)][_0x9942f4(0x1d8)];const _0x4c2ac1=_0xb18bc0['t'](Z(_0xa4e084,_0x20972c)),_0x28dc2a=Se(_0xa4e084,_0x20972c,_0xb18bc0,_0x1f724e),_0x31894d=Pe(_0xa4e084),_0x35627f=_0xcc839a?i[_0x9942f4(0xf0)](q,{}):i[_0x9942f4(0xf0)](Y,{}),_0x2a7fab=d[_0x9942f4(0x1e8)](()=>{_0x1f724e&&_0x28e45a&&_0x28e45a();},[_0x1f724e,_0x28e45a]);function _0xa7ab1f(){const _0x3ce90d=_0x9942f4;return i[_0x3ce90d(0x1a9)]('div',{'className':f[_0x3ce90d(0xc8)](_0x3ce90d(0x1fb),_0x1f724e&&_0x28e45a&&_0x3ce90d(0x221)),'role':_0x3ce90d(0x1de),'onClick':_0x1f724e&&_0x28e45a?_0x2a7fab:void 0x0,'children':[i[_0x3ce90d(0xf0)]('div',{'className':f['clsx'](_0x3ce90d(0x16d),_0x31894d),'children':_0x35627f}),i[_0x3ce90d(0xf0)](_0x3ce90d(0x1e2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4c2ac1})]});}return i[_0x9942f4(0xf0)](f[_0x9942f4(0x10b)],{'title':_0x28dc2a,'placement':_0x9942f4(0x142),'children':_0xa7ab1f()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x2113fb,_0x1c7bac,_0x1f52c6,_0x744f84)=>{const _0x1e7d03=_0x2a4830;for(var _0x43f3b3=_0x744f84>0x1?void 0x0:_0x744f84?Ie(_0x1c7bac,_0x1f52c6):_0x1c7bac,_0x1933ee=_0x2113fb[_0x1e7d03(0x1ff)]-0x1,_0x2ac481;_0x1933ee>=0x0;_0x1933ee--)(_0x2ac481=_0x2113fb[_0x1933ee])&&(_0x43f3b3=_0x2ac481(_0x43f3b3)||_0x43f3b3);return _0x43f3b3;},N=(_0x38387f,_0x1e3ef7)=>(_0x1dbd6b,_0x460831)=>_0x1e3ef7(_0x1dbd6b,_0x460831,_0x38387f);exports['MCPConnectionUIController']=class extends u[_0x2a4830(0x214)]{constructor(_0x41ea15,_0x119ec5,_0x3a3883,_0x1582a4){const _0x19d8be=_0x2a4830;super(),this[_0x19d8be(0x1a7)]=_0x41ea15,this['_connectionController']=_0x119ec5,this[_0x19d8be(0x18a)]=_0x3a3883,this['_configService']=_0x1582a4,this[_0x19d8be(0x1a4)](),this['_initStatusComponent']();}[_0x2a4830(0x1a4)](){const _0x267907=_0x2a4830,_0x1cc5e5=this['_configService'][_0x267907(0x218)](P);_0x1cc5e5!=null&&_0x1cc5e5[_0x267907(0x22c)]&&(this[_0x267907(0xdc)][_0x267907(0x126)]=!0x1);}[_0x2a4830(0x1b1)](){const _0x3ee4a8=_0x2a4830,_0x263f04=this[_0x3ee4a8(0x12e)][_0x3ee4a8(0x218)](P);(_0x263f04==null?void 0x0:_0x263f04['showStatus'])!==!0x1&&this[_0x3ee4a8(0x227)](this['_uiPartsService'][_0x3ee4a8(0x14a)](v[_0x3ee4a8(0xac)]['HEADER_MENU'],()=>{const _0x58b5e1=_0x3ee4a8;var _0xd51a00;return v[_0x58b5e1(0x10f)](ye({'status$':this['_connectionController'][_0x58b5e1(0x13d)],'error$':this['_connectionController'][_0x58b5e1(0x1e4)],'onConfigure':()=>this[_0x58b5e1(0x22b)](),'showClickable':(_0xd51a00=_0x263f04==null?void 0x0:_0x263f04[_0x58b5e1(0x22c)])!=null?_0xd51a00:!0x1}),this[_0x58b5e1(0x1a7)]);}));}[_0x2a4830(0x22b)](){const _0x474c3e=_0x2a4830;this[_0x474c3e(0x1a7)][_0x474c3e(0x14d)](exports[_0x474c3e(0xc9)])[_0x474c3e(0x12a)]();}},exports[_0x2a4830(0x1e3)]=_e([N(0x0,u[_0x2a4830(0x197)](u[_0x2a4830(0x1c6)])),N(0x1,u[_0x2a4830(0x197)](s[_0x2a4830(0xf1)])),N(0x2,v[_0x2a4830(0x108)]),N(0x3,u[_0x2a4830(0x21c)])],exports[_0x2a4830(0x1e3)]);function ye(_0x4da7a5){const {status$:_0x11dcbe,error$:_0x52135a,onConfigure:_0x521880,showClickable:_0x59c3b6}=_0x4da7a5;return function(){const _0x530e2c=_0x4002;return i[_0x530e2c(0xf0)](W,{'status$':_0x11dcbe,'error$':_0x52135a,'onConfigure':_0x521880,'showClickable':_0x59c3b6});};}function Me(_0x58db21){const _0x5ec793=_0x2a4830;return{'id':b['id'],'type':v[_0x5ec793(0xf4)]['BUTTON'],'icon':_0x5ec793(0x1fe),'title':_0x5ec793(0x20a),'tooltip':_0x5ec793(0x20a)};}const Ne={[v[_0x2a4830(0x11d)][_0x2a4830(0x1fa)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x2a4830(0x1cc)],je=(_0x581c72,_0x3f9916,_0x985ec1,_0x64b548)=>{for(var _0x34455c=_0x64b548>0x1?void 0x0:_0x64b548?be(_0x3f9916,_0x985ec1):_0x3f9916,_0x436950=_0x581c72['length']-0x1,_0x6c101a;_0x436950>=0x0;_0x436950--)(_0x6c101a=_0x581c72[_0x436950])&&(_0x34455c=_0x6c101a(_0x34455c)||_0x34455c);return _0x34455c;},z=(_0x48402a,_0x26f975)=>(_0x93137a,_0x545383)=>_0x26f975(_0x93137a,_0x545383,_0x48402a);exports[_0x2a4830(0x220)]=class extends u['Disposable']{constructor(_0x22a787,_0x5254b4){const _0x36029b=_0x2a4830;super(),this[_0x36029b(0x19c)]=_0x22a787,this[_0x36029b(0x137)]=_0x5254b4,this['_initializeCommands'](),this[_0x36029b(0x1ef)]();}[_0x2a4830(0x200)](){const _0x22dda6=_0x2a4830;[b][_0x22dda6(0xf5)](_0xdebe09=>{const _0x3ebfb6=_0x22dda6;this[_0x3ebfb6(0x227)](this[_0x3ebfb6(0x19c)]['registerCommand'](_0xdebe09));});}['_initializeMenus'](){const _0x38ddc6=_0x2a4830;this[_0x38ddc6(0x137)][_0x38ddc6(0x184)](Ne);}},exports[_0x2a4830(0x220)]=je([z(0x0,u[_0x2a4830(0xfb)]),z(0x1,v[_0x2a4830(0x1cb)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x2a4830(0x1b0),'connecting':_0x2a4830(0xb8),'connected':_0x2a4830(0xef),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2a4830(0x1a2),'unauthorized':_0x2a4830(0x158),'sessionOccupied':_0x2a4830(0x1ee),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2a4830(0x161),'clickToConnect':_0x2a4830(0x14b),'clickToConfigure':_0x2a4830(0x138)},'mcpConfig':{'title':_0x2a4830(0x229),'description':_0x2a4830(0x1f5),'apiKey':_0x2a4830(0x14f),'apiKeyPlaceholder':_0x2a4830(0xc7),'apiKeyHint':_0x2a4830(0x168),'enableAuth':_0x2a4830(0x191),'enableAuthHint':_0x2a4830(0x15a),'connectionInfo':_0x2a4830(0x1d4),'mcpClientConfig':_0x2a4830(0x1d4),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x2a4830(0x159),'configStep2':_0x2a4830(0x152),'configStep3':_0x2a4830(0x124),'sessionId':_0x2a4830(0x15f),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2a4830(0x198),'configParameters':_0x2a4830(0x19b),'maxRetries':_0x2a4830(0x1f7),'save':_0x2a4830(0x12f),'saving':_0x2a4830(0x206),'note1':_0x2a4830(0x207),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2a4830(0x1bd),'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':_0x2a4830(0xf6),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2a4830(0x12b),'apiKeyTooShort':_0x2a4830(0xe3),'invalidConfig':_0x2a4830(0x122),'invalidApiKey':_0x2a4830(0x150)},'connectionStatus':{'disconnected':_0x2a4830(0x118),'connecting':'Connecting...','connected':'Connected','failed':_0x2a4830(0xfc),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2a4830(0x175),'sessionOccupied':_0x2a4830(0x201),'networkError':_0x2a4830(0x15b),'maxRetriesExceeded':_0x2a4830(0x1ac)}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x2a4830(0xdf),'connected':_0x2a4830(0x153),'failed':_0x2a4830(0x1f1),'retrying':_0x2a4830(0xde),'unknown':_0x2a4830(0xca),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x2a4830(0x1c0),'networkError':_0x2a4830(0x193),'maxRetriesExceeded':_0x2a4830(0x15c),'clickToConnect':_0x2a4830(0xe2),'clickToConfigure':_0x2a4830(0x139)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2a4830(0x127),'apiKeyPlaceholder':_0x2a4830(0xc5),'apiKeyHint':_0x2a4830(0xf3),'enableAuth':_0x2a4830(0xd1),'enableAuthHint':_0x2a4830(0x210),'connectionInfo':_0x2a4830(0x1e9),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x2a4830(0x1a3),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x2a4830(0x182),'sessionIdDescription':_0x2a4830(0x136),'authorizationDescription':_0x2a4830(0x1a5),'configParameters':_0x2a4830(0xdb),'maxRetries':_0x2a4830(0x216),'save':'保存配置','saving':'保存中...','note1':_0x2a4830(0x230),'note2':_0x2a4830(0x145),'configSaved':_0x2a4830(0xb6),'configError':_0x2a4830(0x132),'apiApplyInfo':{'title':_0x2a4830(0x154),'description':_0x2a4830(0xc4),'univerAiLabel':_0x2a4830(0x1c5),'getStarted':_0x2a4830(0x21f)},'validation':{'apiKeyRequired':_0x2a4830(0x18b),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x2a4830(0x171),'invalidApiKey':_0x2a4830(0x1af)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x2a4830(0x13f),'failed':_0x2a4830(0x1f9),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x2a4830(0x1c2),'sessionOccupied':_0x2a4830(0x203),'networkError':_0x2a4830(0xc1),'maxRetriesExceeded':_0x2a4830(0x1aa)}}};var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0x389318,_0x1dc07e,_0x2b521e)=>_0x1dc07e in _0x389318?Ae(_0x389318,_0x1dc07e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b521e}):_0x389318[_0x1dc07e]=_0x2b521e,Ue=(_0x3336a2,_0x240e8f,_0x3af5b0,_0x307e4e)=>{const _0x2f01ed=_0x2a4830;for(var _0x22b35a=_0x307e4e>0x1?void 0x0:_0x307e4e?Oe(_0x240e8f,_0x3af5b0):_0x240e8f,_0xfa2408=_0x3336a2[_0x2f01ed(0x1ff)]-0x1,_0x51509f;_0xfa2408>=0x0;_0xfa2408--)(_0x51509f=_0x3336a2[_0xfa2408])&&(_0x22b35a=_0x51509f(_0x22b35a)||_0x22b35a);return _0x22b35a;},y=(_0x338b8b,_0x32036c)=>(_0x2b6b5a,_0x159024)=>_0x32036c(_0x2b6b5a,_0x159024,_0x338b8b),$e=(_0x174984,_0x2071f5,_0x571386)=>De(_0x174984,_0x2071f5+'',_0x571386);exports[_0x2a4830(0x1a0)]=class extends u[_0x2a4830(0x1f3)]{constructor(_0x3424e0=L,_0x20aee5,_0x451645,_0x5e6e49,_0x1086e5,_0x597eb9){const _0xa83948=_0x2a4830;super(),this[_0xa83948(0x1ae)]=_0x3424e0,this[_0xa83948(0x1a7)]=_0x20aee5,this['_configService']=_0x451645,this[_0xa83948(0x18a)]=_0x5e6e49,this[_0xa83948(0x180)]=_0x1086e5,this['_localeService']=_0x597eb9;const {..._0x69bc00}=u['merge']({},L,this['_config']);this[_0xa83948(0x12e)][_0xa83948(0xed)](P,_0x69bc00);}async[_0x2a4830(0x165)](){const _0x494518=_0x2a4830,_0x45c590=[[exports[_0x494518(0x1e3)]],[exports[_0x494518(0xc9)]],[exports[_0x494518(0x220)]]];this[_0x494518(0x1a7)][_0x494518(0x149)](A[_0x494518(0x156)])||_0x45c590[_0x494518(0x1ba)]([A[_0x494518(0x156)],{'useClass':A[_0x494518(0xbc)]}]),_0x45c590[_0x494518(0xf5)](_0x57c413=>this[_0x494518(0x1a7)][_0x494518(0x208)](_0x57c413)),this[_0x494518(0x1a7)][_0x494518(0x14d)](exports[_0x494518(0x1e3)]),this[_0x494518(0x1a7)][_0x494518(0x14d)](exports[_0x494518(0xc9)]),this['_injector'][_0x494518(0x14d)](exports['MCPUIMenuController']);}},$e(exports[_0x2a4830(0x1a0)],_0x2a4830(0x163),'MCP_UI_PLUGIN'),exports['UniverMCPUIPlugin']=Ue([u[_0x2a4830(0xb0)](s[_0x2a4830(0x1cd)]),y(0x1,u[_0x2a4830(0x197)](u['Injector'])),y(0x2,u[_0x2a4830(0x21c)]),y(0x3,v[_0x2a4830(0x108)]),y(0x4,u[_0x2a4830(0x1f8)]),y(0x5,u[_0x2a4830(0x197)](u[_0x2a4830(0x20b)]))],exports[_0x2a4830(0x1a0)]),exports['MCPConfigPanel']=V,exports[_0x2a4830(0x13e)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x2a4830(0x219)]=Ee,exports[_0x2a4830(0x185)]=we;
|
|
1
|
+
'use strict';const _0x320784=_0x5131;(function(_0x42720d,_0x14ba90){const _0x192b1b=_0x5131,_0x426456=_0x42720d();while(!![]){try{const _0x5de6ad=-parseInt(_0x192b1b(0x2fc))/0x1*(parseInt(_0x192b1b(0x22c))/0x2)+-parseInt(_0x192b1b(0x1fe))/0x3*(parseInt(_0x192b1b(0x1f6))/0x4)+-parseInt(_0x192b1b(0x202))/0x5*(-parseInt(_0x192b1b(0x231))/0x6)+parseInt(_0x192b1b(0x34c))/0x7*(-parseInt(_0x192b1b(0x22e))/0x8)+parseInt(_0x192b1b(0x2e3))/0x9*(-parseInt(_0x192b1b(0x23a))/0xa)+parseInt(_0x192b1b(0x2de))/0xb+parseInt(_0x192b1b(0x1c8))/0xc*(parseInt(_0x192b1b(0x335))/0xd);if(_0x5de6ad===_0x14ba90)break;else _0x426456['push'](_0x426456['shift']());}catch(_0x5b04ac){_0x426456['push'](_0x426456['shift']());}}}(_0x3fa7,0x6fb06));var ae=Object[_0x320784(0x205)],le=(_0x345163,_0x291557,_0x53f2ae)=>_0x291557 in _0x345163?ae(_0x345163,_0x291557,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53f2ae}):_0x345163[_0x291557]=_0x53f2ae,I=(_0x51529c,_0x3c2ba4,_0x523ad9)=>le(_0x51529c,typeof _0x3c2ba4!='symbol'?_0x3c2ba4+'':_0x3c2ba4,_0x523ad9);Object[_0x320784(0x205)](exports,Symbol[_0x320784(0x303)],{'value':_0x320784(0x351)});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:_0x14c949,..._0x18ef49}){const _0x179fd9=_0x320784,{icon:_0x53b7f2,id:_0x185af9,className:_0x535cc9,extend:_0x419a50,..._0x3b8a77}=_0x18ef49,_0x3389b0=(_0x179fd9(0x2d4)+_0x185af9+'\x20'+(_0x535cc9||''))['trim'](),_0xc09208=d[_0x179fd9(0x243)]('_'+de());return G(_0x53b7f2,''+_0x185af9,{'defIds':_0x53b7f2[_0x179fd9(0x297)],'idSuffix':_0xc09208[_0x179fd9(0x254)]},{'ref':_0x14c949,'className':_0x3389b0,..._0x3b8a77},_0x419a50);}function G(_0x3aac20,_0x4c8ec6,_0x1e5333,_0x2ffa7b,_0x541e8e){const _0x49f950=_0x320784;return d[_0x49f950(0x212)](_0x3aac20[_0x49f950(0x1e0)],{'key':_0x4c8ec6,...ue(_0x3aac20,_0x1e5333,_0x541e8e),..._0x2ffa7b},(ve(_0x3aac20,_0x1e5333)['children']||[])[_0x49f950(0x1df)]((_0x2a50f0,_0x10d59a)=>G(_0x2a50f0,_0x4c8ec6+'-'+_0x3aac20[_0x49f950(0x1e0)]+'-'+_0x10d59a,_0x1e5333,void 0x0,_0x541e8e)));}function ue(_0x445dc7,_0x140d96,_0x5d18ce){const _0xe4141c=_0x320784,_0x4c979c={..._0x445dc7['attrs']};_0x5d18ce!=null&&_0x5d18ce[_0xe4141c(0x2f4)]&&_0x4c979c[_0xe4141c(0x285)]===_0xe4141c(0x2f4)&&(_0x4c979c[_0xe4141c(0x285)]=_0x5d18ce[_0xe4141c(0x2f4)]),_0x445dc7[_0xe4141c(0x1e0)]==='mask'&&_0x4c979c['id']&&(_0x4c979c['id']=_0x4c979c['id']+_0x140d96[_0xe4141c(0x1f9)]),Object['entries'](_0x4c979c)[_0xe4141c(0x237)](([_0x130ae8,_0x2ca02d])=>{const _0x5844ee=_0xe4141c;_0x130ae8===_0x5844ee(0x30e)&&typeof _0x2ca02d=='string'&&(_0x4c979c[_0x130ae8]=_0x2ca02d[_0x5844ee(0x250)](/url\(#(.*)\)/,_0x5844ee(0x2ef)+_0x140d96[_0x5844ee(0x1f9)]+')'));});const {defIds:_0x148b6c}=_0x140d96;return!_0x148b6c||_0x148b6c[_0xe4141c(0x235)]===0x0||(_0x445dc7[_0xe4141c(0x1e0)]===_0xe4141c(0x218)&&_0x4c979c['xlink:href']&&(_0x4c979c[_0xe4141c(0x336)]=_0x4c979c[_0xe4141c(0x336)]+_0x140d96[_0xe4141c(0x1f9)]),Object[_0xe4141c(0x272)](_0x4c979c)[_0xe4141c(0x237)](([_0x3d71a5,_0xf52a39])=>{const _0x2acec1=_0xe4141c;typeof _0xf52a39=='string'&&(_0x4c979c[_0x3d71a5]=_0xf52a39[_0x2acec1(0x250)](/url\(#(.*)\)/,_0x2acec1(0x2ef)+_0x140d96['idSuffix']+')'));})),_0x4c979c;}function ve(_0x3d8922,_0x3bbb51){const _0x50383e=_0x320784;var _0x4c995f;const {defIds:_0x484dd6}=_0x3bbb51;return!_0x484dd6||_0x484dd6[_0x50383e(0x235)]===0x0?_0x3d8922:_0x3d8922[_0x50383e(0x1e0)]===_0x50383e(0x357)&&((_0x4c995f=_0x3d8922[_0x50383e(0x1de)])!=null&&_0x4c995f['length'])?{..._0x3d8922,'children':_0x3d8922[_0x50383e(0x1de)][_0x50383e(0x1df)](_0xa98621=>typeof _0xa98621[_0x50383e(0x317)]['id']==_0x50383e(0x1eb)&&_0x484dd6&&_0x484dd6['includes'](_0xa98621[_0x50383e(0x317)]['id'])?{..._0xa98621,'attrs':{..._0xa98621['attrs'],'id':_0xa98621[_0x50383e(0x317)]['id']+_0x3bbb51[_0x50383e(0x1f9)]}}:_0xa98621)}:_0x3d8922;}function de(){const _0x35c047=_0x320784;return Math[_0x35c047(0x341)]()[_0x35c047(0x304)](0x24)['substring'](0x2,0x8);}_['displayName']=_0x320784(0x252);const Ce={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':'none','viewBox':_0x320784(0x2ea),'width':'1em','height':'1em'},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':'currentColor','d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x320784(0x329)}}]},H=d[_0x320784(0x28b)](function(_0x53c3ab,_0x529cee){const _0x25e61d=_0x320784;return d[_0x25e61d(0x212)](_,Object[_0x25e61d(0x358)]({},_0x53c3ab,{'id':_0x25e61d(0x209),'ref':_0x529cee,'icon':Ce}));});H['displayName']=_0x320784(0x2ad);const ge={'tag':'svg','attrs':{'xmlns':_0x320784(0x2d9),'fill':_0x320784(0x302),'viewBox':_0x320784(0x2ea),'width':_0x320784(0x31b),'height':_0x320784(0x31b)},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x2f2),'d':_0x320784(0x284)}}]},B=d[_0x320784(0x28b)](function(_0x474318,_0x409f5d){const _0x2a3eb6=_0x320784;return d['createElement'](_,Object[_0x2a3eb6(0x358)]({},_0x474318,{'id':_0x2a3eb6(0x32e),'ref':_0x409f5d,'icon':ge}));});B[_0x320784(0x1f7)]=_0x320784(0x1cc);const fe={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x320784(0x31b),'height':'1em'},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x2f2),'d':_0x320784(0x2e2)}},{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x2f2),'d':_0x320784(0x236)}},{'tag':_0x320784(0x26f),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x320784(0x329),'clipRule':_0x320784(0x329)}}]},F=d[_0x320784(0x28b)](function(_0x10e0de,_0x399270){const _0x15161f=_0x320784;return d[_0x15161f(0x212)](_,Object[_0x15161f(0x358)]({},_0x10e0de,{'id':'help-icon','ref':_0x399270,'icon':fe}));});function _0x5131(_0x19972a,_0x495a89){_0x19972a=_0x19972a-0x1c7;const _0x3fa71d=_0x3fa7();let _0x51313b=_0x3fa71d[_0x19972a];return _0x51313b;}F[_0x320784(0x1f7)]=_0x320784(0x2f0);const pe={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':_0x320784(0x302),'viewBox':_0x320784(0x2ea),'width':'1em','height':_0x320784(0x31b)},'children':[{'tag':'g','attrs':{'clipPath':_0x320784(0x2b6)},'children':[{'tag':_0x320784(0x26f),'attrs':{'stroke':_0x320784(0x2f2),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x320784(0x320),'strokeLinejoin':_0x320784(0x320),'strokeWidth':1.2}}]},{'tag':_0x320784(0x357),'attrs':{},'children':[{'tag':_0x320784(0x23d),'attrs':{'id':_0x320784(0x31d)},'children':[{'tag':'path','attrs':{'fill':_0x320784(0x256),'d':_0x320784(0x337)}}]}]}],'defIds':[_0x320784(0x31d)]},Y=d[_0x320784(0x28b)](function(_0x1176d8,_0x533bfd){const _0x5344c7=_0x320784;return d['createElement'](_,Object['assign']({},_0x1176d8,{'id':_0x5344c7(0x2b9),'ref':_0x533bfd,'icon':pe}));});Y['displayName']=_0x320784(0x30b);const he={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':'none','viewBox':_0x320784(0x267),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x320784(0x2e7)},'children':[{'tag':_0x320784(0x26f),'attrs':{'stroke':_0x320784(0x2f2),'d':_0x320784(0x1cd),'strokeLinecap':'round','strokeLinejoin':_0x320784(0x320),'strokeWidth':1.2}}]},{'tag':_0x320784(0x357),'attrs':{},'children':[{'tag':_0x320784(0x23d),'attrs':{'id':_0x320784(0x2fa)},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x256),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x320784(0x2fa)]},q=d[_0x320784(0x28b)](function(_0x4db1bf,_0x425e96){const _0x1af41f=_0x320784;return d['createElement'](_,Object[_0x1af41f(0x358)]({},_0x4db1bf,{'id':'on-line-icon','ref':_0x425e96,'icon':he}));});q[_0x320784(0x1f7)]=_0x320784(0x1f4);function V(_0x3a60e6){const _0x35374c=_0x320784;var _0x547305,_0x38f334;const {mcpCoreConfig:_0x3a07ac,onSave:_0x39af4e,loading:_0xafe168=!0x1,config:_0x205216,connectionStatus$:_0x5aa44c,connectionError$:_0x50aa74,currentApiKey$:_0x246c73,currentSessionId$:_0x51ee6b}=_0x3a60e6,_0x4e3c0f=v[_0x35374c(0x2bc)](u[_0x35374c(0x2b0)]),_0x15d873=v[_0x35374c(0x31a)](_0x5aa44c,s[_0x35374c(0x301)][_0x35374c(0x20a)]),_0x40cf62=v[_0x35374c(0x31a)](_0x50aa74,s[_0x35374c(0x30d)]['NONE']),_0x20bd1b=v[_0x35374c(0x31a)](_0x51ee6b,''),_0x106bbf=v[_0x35374c(0x31a)](_0x246c73,''),[_0x34a889,_0x590e43]=d[_0x35374c(0x280)](_0x106bbf||''),_0x105e00=!0x0,_0x59c2a3=_0x205216[_0x35374c(0x2d7)]&&_0x3a07ac[_0x35374c(0x2f3)]&&(_0x3a07ac[_0x35374c(0x2f3)][_0x35374c(0x300)](_0x35374c(0x2eb))||_0x3a07ac[_0x35374c(0x2f3)][_0x35374c(0x300)](_0x35374c(0x228))),_0x5c43a0=(_0x547305=_0x3a07ac[_0x35374c(0x2f3)])==null?void 0x0:_0x547305[_0x35374c(0x300)](_0x35374c(0x2eb)),_0x4f1e13=(_0x38f334=_0x3a07ac[_0x35374c(0x2f3)])==null?void 0x0:_0x38f334[_0x35374c(0x300)](_0x35374c(0x228)),_0x571afe=_0x5c43a0?_0x35374c(0x1d3):_0x35374c(0x239),_0x30f897=_0x205216[_0x35374c(0x2d7)]&&(_0x5c43a0||_0x4f1e13),[_0xf5d841,_0x1923de]=d[_0x35374c(0x280)](!_0x34a889['trim']()),_0x96419c=(_0x5a5c5b,_0x1499e0)=>{const _0x26d264=_0x35374c;if(_0x1499e0===s[_0x26d264(0x30d)]['UNAUTHORIZED'])return _0x26d264(0x219);switch(_0x5a5c5b){case s[_0x26d264(0x301)]['CONNECTED']:return _0x26d264(0x265);case s[_0x26d264(0x301)][_0x26d264(0x248)]:case s[_0x26d264(0x301)][_0x26d264(0x217)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x26d264(0x301)][_0x26d264(0x2a0)]:return _0x26d264(0x219);default:return _0x26d264(0x353);}},_0x5e059f=(_0x10a6a8,_0x148214)=>{const _0x2ddad7=_0x35374c;if(_0x148214===s[_0x2ddad7(0x30d)]['UNAUTHORIZED'])return _0x2ddad7(0x347);switch(_0x10a6a8){case s['MCPConnectionStatus'][_0x2ddad7(0x2e9)]:return'univer-bg-green-500';case s[_0x2ddad7(0x301)][_0x2ddad7(0x248)]:case s['MCPConnectionStatus'][_0x2ddad7(0x217)]:return _0x2ddad7(0x1f2);case s[_0x2ddad7(0x301)][_0x2ddad7(0x2a0)]:return'univer-bg-red-500';default:return _0x2ddad7(0x2b8);}},_0xaec1be=_0x2e63fa=>{const _0x420948=_0x35374c;switch(_0x2e63fa){case s['MCPConnectionStatus']['CONNECTED']:return _0x4e3c0f['t'](_0x420948(0x325));case s[_0x420948(0x301)][_0x420948(0x248)]:return _0x4e3c0f['t'](_0x420948(0x29d));case s['MCPConnectionStatus'][_0x420948(0x2a0)]:return _0x4e3c0f['t']('mcpConfig.connectionStatus.failed');case s[_0x420948(0x301)][_0x420948(0x217)]:return _0x4e3c0f['t'](_0x420948(0x20d));default:return _0x4e3c0f['t'](_0x420948(0x259));}},_0x25d556=_0x4725ad=>{const _0x38e64f=_0x35374c;switch(_0x4725ad){case s[_0x38e64f(0x30d)][_0x38e64f(0x20c)]:return _0x4e3c0f['t'](_0x38e64f(0x2e1));case s[_0x38e64f(0x30d)][_0x38e64f(0x331)]:return _0x4e3c0f['t'](_0x38e64f(0x2f7));case s[_0x38e64f(0x30d)][_0x38e64f(0x2af)]:return _0x4e3c0f['t'](_0x38e64f(0x2e5));case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x4e3c0f['t'](_0x38e64f(0x29c));default:return'';}},_0xf21be1=d[_0x35374c(0x253)](()=>{const _0x266bc9=_0x35374c,_0x3d3356={..._0x3a07ac,'apiKey':_0x34a889[_0x266bc9(0x220)](),'enableAuth':_0x105e00};_0x39af4e(_0x3d3356);},[_0x3a07ac,_0x34a889,_0x105e00,_0x39af4e]),_0x16be96=_0x34a889[_0x35374c(0x220)]()['length']>0x0;return i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x22d),'children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x354),'children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x26b),'children':[i[_0x35374c(0x286)]('div',{'className':_0x35374c(0x24a),'children':i['jsx'](_0x35374c(0x2da),{'className':_0x35374c(0x25e),'children':'⚙'})}),i[_0x35374c(0x286)](_0x35374c(0x310),{'children':i['jsx']('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4e3c0f['t'](_0x35374c(0x2e8))})})]})}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x2f9),'children':[i['jsx']('div',{'className':f[_0x35374c(0x1ee)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x96419c(_0x15d873,_0x40cf62)),'children':i[_0x35374c(0x26c)]('div',{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':f['clsx'](_0x35374c(0x224),_0x5e059f(_0x15d873,_0x40cf62))}),i['jsx'](_0x35374c(0x2da),{'className':_0x35374c(0x225),'children':_0xaec1be(_0x15d873)})]})}),_0x40cf62!==s['MCPConnectionError']['NONE']&&(_0x15d873===s[_0x35374c(0x301)][_0x35374c(0x2a0)]||_0x40cf62===s[_0x35374c(0x30d)][_0x35374c(0x20c)])&&i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x277),'children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x2ae),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x221),'children':'⚠️'}),i[_0x35374c(0x286)]('p',{'className':_0x35374c(0x30a),'children':_0x25d556(_0x40cf62)})]})})]}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x311),'children':[i[_0x35374c(0x26c)]('div',{'className':_0x35374c(0x261),'children':[i[_0x35374c(0x26c)](_0x35374c(0x340),{'className':_0x35374c(0x309),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'children':'🔑'}),'\x20',_0x4e3c0f['t'](_0x35374c(0x281)),i[_0x35374c(0x286)]('span',{'className':_0x35374c(0x22b),'children':'*'}),_0x59c2a3&&i[_0x35374c(0x286)]('a',{'className':_0x35374c(0x245),'title':_0x4e3c0f['t'](_0x35374c(0x216)),'role':_0x35374c(0x251),'onClick':()=>_0x1923de(!0x0),'children':i[_0x35374c(0x286)](F,{})})]}),i[_0x35374c(0x286)](f['Input'],{'type':_0x35374c(0x22a),'placeholder':_0x4e3c0f['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x34a889,'disabled':_0xafe168,'autoComplete':_0x35374c(0x23e),'onChange':_0x590e43}),i['jsx']('p',{'className':_0x35374c(0x270),'children':_0x4e3c0f['t'](_0x35374c(0x34f))})]}),_0x59c2a3&&_0xf5d841&&i[_0x35374c(0x26c)](_0x35374c(0x310),{'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[_0x35374c(0x286)]('a',{'className':_0x35374c(0x27a),'role':'button','onClick':()=>_0x1923de(!0x1),'children':i['jsx'](B,{'className':_0x35374c(0x342)})}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x35374c(0x286)]('span',{'className':_0x35374c(0x339),'children':'🚀'})}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x32a),'children':[i[_0x35374c(0x286)]('h4',{'className':_0x35374c(0x2ba),'children':_0x4e3c0f['t'](_0x35374c(0x216))}),i[_0x35374c(0x286)]('p',{'className':_0x35374c(0x296),'children':_0x4e3c0f['t'](_0x35374c(0x282))}),i['jsx'](_0x35374c(0x310),{'className':_0x35374c(0x2cc),'children':_0x30f897&&i[_0x35374c(0x26c)]('a',{'className':_0x35374c(0x1d0),'href':_0x571afe,'target':_0x35374c(0x27b),'rel':'noopener\x20noreferrer','children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'children':'🤖'}),_0x4e3c0f['t'](_0x35374c(0x33c)),i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0x35374c(0x310),{'className':_0x35374c(0x1cb),'children':['✨','\x20',_0x4e3c0f['t'](_0x35374c(0x24d))]})]})]})]}),_0x205216[_0x35374c(0x2d7)]&&i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x32f),'children':[i[_0x35374c(0x26c)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i['jsx'](_0x35374c(0x2da),{'children':'🔗'}),'\x20',_0x4e3c0f['t'](_0x35374c(0x2b3))]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x343),'children':[i['jsxs']('div',{'className':_0x35374c(0x2f8),'children':[i[_0x35374c(0x286)]('p',{'className':_0x35374c(0x1d9),'children':_0x4e3c0f['t']('mcpConfig.configInstructions')}),i[_0x35374c(0x26c)]('div',{'className':'univer-space-y-2','children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4e3c0f['t'](_0x35374c(0x1d4))}),i['jsxs'](_0x35374c(0x310),{'className':_0x35374c(0x2b7),'children':[i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x24b),'children':'1'}),_0x4e3c0f['t'](_0x35374c(0x24f))]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)]('span',{'className':_0x35374c(0x24b),'children':'2'}),_0x4e3c0f['t']('mcpConfig.configStep2')]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x24b),'children':'3'}),_0x4e3c0f['t'](_0x35374c(0x2f1))]})]})]})]}),i['jsxs'](_0x35374c(0x310),{'className':'univer-space-y-2','children':[i['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x232),'children':i['jsx']('pre',{'className':_0x35374c(0x249),'children':JSON[_0x35374c(0x312)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x20bd1b||_0x35374c(0x328)),'type':'http','headers':{'Authorization':_0x35374c(0x271)+(_0x34a889||_0x35374c(0x308))}}}},null,0x2)})})]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x2f8),'children':[i['jsx']('div',{'className':_0x35374c(0x27c),'children':_0x4e3c0f['t'](_0x35374c(0x29a))}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x261),'children':[i[_0x35374c(0x26c)]('div',{'className':_0x35374c(0x257),'children':[i[_0x35374c(0x286)]('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x290),'children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x35374c(0x269)}),i['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4e3c0f['t'](_0x35374c(0x299))})]})]}),i['jsxs'](_0x35374c(0x310),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x348)}),i['jsxs']('div',{'className':_0x35374c(0x290),'children':[i['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x35374c(0x273)}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x270),'children':_0x4e3c0f['t'](_0x35374c(0x346))})]})]})]})]})]})]}),i[_0x35374c(0x286)](f[_0x35374c(0x2ee)],{'onClick':_0xf21be1,'disabled':!_0x16be96||_0xafe168,'className':_0x35374c(0x211),'children':_0xafe168?i[_0x35374c(0x26c)](_0x35374c(0x2da),{'className':_0x35374c(0x24c),'children':[i['jsx'](_0x35374c(0x2da),{'children':'⟲'}),_0x4e3c0f['t'](_0x35374c(0x255))]}):i[_0x35374c(0x26c)](_0x35374c(0x2da),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](H,{}),_0x4e3c0f['t']('mcpConfig.save')]})}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x25a),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x31e),'children':'💡'}),i['jsxs'](_0x35374c(0x310),{'className':_0x35374c(0x293),'children':[i[_0x35374c(0x286)]('div',{'className':'univer-font-medium','children':_0x35374c(0x28d)}),i[_0x35374c(0x26c)]('div',{'children':['•',_0x4e3c0f['t'](_0x35374c(0x268))]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'children':['•',_0x4e3c0f['t'](_0x35374c(0x213))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x320784(0x25d)],xe=(_0x45257b,_0x2415f7,_0x47807,_0x28dfa7)=>{const _0x5d287d=_0x320784;for(var _0x5609f5=_0x28dfa7>0x1?void 0x0:_0x28dfa7?me(_0x2415f7,_0x47807):_0x2415f7,_0x8b7cdb=_0x45257b[_0x5d287d(0x235)]-0x1,_0x2fd78a;_0x8b7cdb>=0x0;_0x8b7cdb--)(_0x2fd78a=_0x45257b[_0x8b7cdb])&&(_0x5609f5=_0x2fd78a(_0x5609f5)||_0x5609f5);return _0x5609f5;},g=(_0xb432d3,_0x3f87cd)=>(_0x2d6ae9,_0x30546a)=>_0x3f87cd(_0x2d6ae9,_0x30546a,_0xb432d3);const O=_0x320784(0x2ab),D=_0x320784(0x2a1);exports['MCPConfigUIController']=class extends u[_0x320784(0x230)]{constructor(_0x137500,_0xbf0e89,_0xc39d0e,_0x77fc7a,_0x508be4,_0x10f40f,_0xdcc4cb,_0x32ff1e,_0x36bf7f,_0x37a1bd){const _0x282d95=_0x320784;super(),I(this,_0x282d95(0x350),new M[(_0x282d95(0x2dc))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x282d95(0x2dc))]({})),I(this,_0x282d95(0x330),new M[(_0x282d95(0x2dc))]({})),I(this,_0x282d95(0x2c9),new M['BehaviorSubject']('')),I(this,_0x282d95(0x208),async _0x21e3d2=>{const _0x49e328=_0x282d95;var _0x2cdf71,_0x458b0e;this[_0x49e328(0x350)][_0x49e328(0x226)](!0x0);try{const _0x14cd10=await this[_0x49e328(0x33b)](_0x21e3d2);if(!_0x14cd10[_0x49e328(0x1d7)]){this[_0x49e328(0x1fa)][_0x49e328(0x2a9)]({'type':f['MessageType'][_0x49e328(0x260)],'content':_0x14cd10[_0x49e328(0x2f6)]||this[_0x49e328(0x240)]['t'](_0x49e328(0x333))});return;}_0x21e3d2[_0x49e328(0x2fd)]?await this[_0x49e328(0x27f)][_0x49e328(0x2c2)](O,_0x21e3d2[_0x49e328(0x2fd)][_0x49e328(0x220)]()):await this[_0x49e328(0x27f)][_0x49e328(0x276)](O),this[_0x49e328(0x2c9)][_0x49e328(0x226)](((_0x2cdf71=_0x21e3d2['apiKey'])==null?void 0x0:_0x2cdf71[_0x49e328(0x220)]())||''),this[_0x49e328(0x2b4)][_0x49e328(0x204)]({'Authorization':'Bearer\x20'+((_0x458b0e=_0x21e3d2[_0x49e328(0x2fd)])==null?void 0x0:_0x458b0e['trim']())}),this[_0x49e328(0x1fa)][_0x49e328(0x2a9)]({'type':f[_0x49e328(0x352)][_0x49e328(0x242)],'content':this[_0x49e328(0x240)]['t'](_0x49e328(0x29e))}),setTimeout(()=>{const _0x3c26c4=_0x49e328;this[_0x3c26c4(0x298)][_0x3c26c4(0x2bf)](D);},0x320);}catch(_0x1ec140){this[_0x49e328(0x30f)][_0x49e328(0x2be)](_0x49e328(0x279),_0x1ec140),this[_0x49e328(0x1fa)][_0x49e328(0x2a9)]({'type':f[_0x49e328(0x352)][_0x49e328(0x260)],'content':this[_0x49e328(0x240)]['t'](_0x49e328(0x344))});}finally{this['_loading$'][_0x49e328(0x226)](!0x1);}}),(this['_injector']=_0x137500,this[_0x282d95(0x1e1)]=_0xbf0e89,this[_0x282d95(0x1ec)]=_0xc39d0e,this[_0x282d95(0x27f)]=_0x77fc7a,this[_0x282d95(0x298)]=_0x508be4,this[_0x282d95(0x1fa)]=_0x10f40f,this['_componentManager']=_0xdcc4cb,this['_localeService']=_0x32ff1e,this[_0x282d95(0x30f)]=_0x36bf7f,this['_mcpConnectionController']=_0x37a1bd,this[_0x282d95(0x33f)](),this['_loadStoredApiKey'](),this[_0x282d95(0x2ed)]());}[_0x320784(0x275)](){const _0x57de0a=_0x320784,_0x106e3d=this['_configService'][_0x57de0a(0x21a)](P);_0x106e3d!=null&&_0x106e3d[_0x57de0a(0x2d7)]&&this['_dialogService']['open']({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3f0834=_0x57de0a;this[_0x3f0834(0x298)][_0x3f0834(0x2bf)](D);}});}[_0x320784(0x1c9)](){const _0x1ca7b7=_0x320784;return this[_0x1ca7b7(0x32c)]['value'];}[_0x320784(0x2ed)](){const _0xb07ee3=_0x320784;this[_0xb07ee3(0x2e0)](this[_0xb07ee3(0x2d8)][_0xb07ee3(0x2b1)](_0xb07ee3(0x28f),this[_0xb07ee3(0x24e)]()));}[_0x320784(0x24e)](){const _0x5efdbe=_0x320784;return v[_0x5efdbe(0x234)](()=>{const _0x43ea5b=_0x5efdbe;var _0x3da777,_0x352363,_0x14619e;return i[_0x43ea5b(0x286)](V,{'config':this[_0x43ea5b(0x330)][_0x43ea5b(0x306)],'mcpCoreConfig':this[_0x43ea5b(0x32c)]['value'],'currentApiKey$':this[_0x43ea5b(0x2c9)],'onSave':this[_0x43ea5b(0x208)],'loading':this[_0x43ea5b(0x350)][_0x43ea5b(0x306)],'connectionStatus$':(_0x3da777=this['_mcpConnectionController'])==null?void 0x0:_0x3da777['connectionStatus$'],'connectionError$':(_0x352363=this[_0x43ea5b(0x2b4)])==null?void 0x0:_0x352363[_0x43ea5b(0x1ca)],'currentSessionId$':(_0x14619e=this[_0x43ea5b(0x2b4)])==null?void 0x0:_0x14619e[_0x43ea5b(0x214)]});},this['_injector']);}[_0x320784(0x33f)](){const _0x1c789b=_0x320784;this[_0x1c789b(0x2e0)](this[_0x1c789b(0x1ec)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0x1c789b(0x1d8)](_0x5ebdbb=>{const _0x4d40db=_0x1c789b;this[_0x4d40db(0x32c)][_0x4d40db(0x226)](_0x5ebdbb||{});}));const _0x2e3f4f=this[_0x1c789b(0x1ec)][_0x1c789b(0x21a)](s[_0x1c789b(0x263)]);this['_mcpCoreConfig$'][_0x1c789b(0x226)](_0x2e3f4f||{}),this[_0x1c789b(0x2e0)](this[_0x1c789b(0x1ec)][_0x1c789b(0x355)](P)[_0x1c789b(0x1d8)](_0x1c2449=>{const _0x1aa4b9=_0x1c789b;this['_config$'][_0x1aa4b9(0x226)](_0x1c2449||{});}));const _0x362e88=this[_0x1c789b(0x1ec)][_0x1c789b(0x21a)](P);this[_0x1c789b(0x330)][_0x1c789b(0x226)](_0x362e88||{});}async['_loadStoredApiKey'](){const _0x4e50f9=_0x320784,_0x1a8b84=this[_0x4e50f9(0x1ec)]['getConfig'](P);if(!(_0x1a8b84!=null&&_0x1a8b84[_0x4e50f9(0x2d7)]))return;const _0x218323=await this[_0x4e50f9(0x27f)][_0x4e50f9(0x1e8)](O);_0x218323&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x4e50f9(0x271)+_0x218323}),this[_0x4e50f9(0x2c9)]['next'](_0x218323));}async[_0x320784(0x33b)](_0x26445b){const _0x4ec796=_0x320784;if(!_0x26445b[_0x4ec796(0x2fd)]||_0x26445b[_0x4ec796(0x2fd)][_0x4ec796(0x220)]()[_0x4ec796(0x235)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4ec796(0x240)]['t'](_0x4ec796(0x287))};if(_0x26445b[_0x4ec796(0x2fd)]['trim']()[_0x4ec796(0x235)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4ec796(0x240)]['t'](_0x4ec796(0x1d1))};try{const _0x55c2df=await this[_0x4ec796(0x21e)][_0x4ec796(0x1ff)](s[_0x4ec796(0x2c0)])[_0x4ec796(0x2bb)](_0x26445b[_0x4ec796(0x2fd)]['trim']());return _0x55c2df[_0x4ec796(0x1d7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x55c2df[_0x4ec796(0x2be)]||this[_0x4ec796(0x240)]['t'](_0x4ec796(0x2d6))};}catch(_0x4005ac){return console[_0x4ec796(0x2f5)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x4005ac),{'isValid':!0x0};}}},exports[_0x320784(0x258)]=xe([g(0x0,u[_0x320784(0x246)](u[_0x320784(0x318)])),g(0x1,v[_0x320784(0x30c)]),g(0x2,u[_0x320784(0x305)]),g(0x3,u[_0x320784(0x23c)]),g(0x4,v[_0x320784(0x2e4)]),g(0x5,v[_0x320784(0x2a3)]),g(0x6,u['Inject'](v[_0x320784(0x207)])),g(0x7,u[_0x320784(0x246)](u[_0x320784(0x2b0)])),g(0x8,u[_0x320784(0x2cd)]),g(0x9,u[_0x320784(0x246)](s[_0x320784(0x2c0)]))],exports[_0x320784(0x258)]);const b={'id':_0x320784(0x34d),'type':u[_0x320784(0x21c)][_0x320784(0x1cf)],'handler':async(_0x41175d,_0x413668)=>(_0x41175d[_0x320784(0x1ff)](exports[_0x320784(0x258)])[_0x320784(0x275)](),!0x0)};function Z(_0x48c3b9,_0x144890){const _0x438bd7=_0x320784;switch(_0x48c3b9){case s[_0x438bd7(0x301)][_0x438bd7(0x20a)]:return'mcpStatus.disconnected';case s['MCPConnectionStatus']['CONNECTING']:return'mcpStatus.connecting';case s['MCPConnectionStatus'][_0x438bd7(0x2e9)]:return _0x438bd7(0x2d1);case s[_0x438bd7(0x301)]['FAILED']:switch(_0x144890){case s[_0x438bd7(0x30d)][_0x438bd7(0x20c)]:return _0x438bd7(0x206);case s['MCPConnectionError'][_0x438bd7(0x331)]:return _0x438bd7(0x2ce);case s[_0x438bd7(0x30d)]['NETWORK_ERROR']:return _0x438bd7(0x33a);case s[_0x438bd7(0x30d)][_0x438bd7(0x31f)]:return _0x438bd7(0x1d6);default:return'mcpStatus.failed';}case s[_0x438bd7(0x301)][_0x438bd7(0x217)]:return _0x438bd7(0x2c3);default:return _0x438bd7(0x29b);}}function Se(_0x45c191,_0x1a400e,_0x2ca67e,_0xbe3635=!0x0){const _0x4e9adb=_0x320784,_0x178136=Z(_0x45c191,_0x1a400e),_0x23ec48=_0x2ca67e['t'](_0x178136);return _0xbe3635?_0x45c191===s[_0x4e9adb(0x301)][_0x4e9adb(0x20a)]&&_0x1a400e===s[_0x4e9adb(0x30d)][_0x4e9adb(0x20c)]?_0x23ec48+_0x4e9adb(0x222)+_0x2ca67e['t']('mcpStatus.clickToConfigure'):_0x45c191===s[_0x4e9adb(0x301)]['CONNECTED']?''+_0x23ec48:_0x45c191===s[_0x4e9adb(0x301)][_0x4e9adb(0x20a)]||_0x45c191===s[_0x4e9adb(0x301)][_0x4e9adb(0x2a0)]?_0x23ec48+_0x4e9adb(0x222)+_0x2ca67e['t'](_0x4e9adb(0x1f1)):_0x23ec48:_0x23ec48;}function Pe(_0x305da4){const _0x495036=_0x320784;switch(_0x305da4){case s[_0x495036(0x301)][_0x495036(0x2e9)]:return _0x495036(0x319);case s[_0x495036(0x301)][_0x495036(0x248)]:case s[_0x495036(0x301)]['RETRYING']:return'univer-text-yellow-500';case s[_0x495036(0x301)]['FAILED']:case s[_0x495036(0x301)][_0x495036(0x20a)]:return _0x495036(0x22b);default:return _0x495036(0x283);}}function W(_0x45af5a){const _0xbb0b0=_0x320784,{status$:_0x27d34b,error$:_0x48b654,onConfigure:_0x355a61,showClickable:_0x24e0ab=!0x0}=_0x45af5a,_0x12d47e=v['useObservable'](_0x27d34b,s['MCPConnectionStatus'][_0xbb0b0(0x20a)]),_0x271ab7=v[_0xbb0b0(0x31a)](_0x48b654,s['MCPConnectionError'][_0xbb0b0(0x28c)]),_0x4209c5=v[_0xbb0b0(0x2bc)](u[_0xbb0b0(0x2b0)]),_0x396ad2=_0x12d47e===s[_0xbb0b0(0x301)][_0xbb0b0(0x2e9)];_0x12d47e===s[_0xbb0b0(0x301)]['CONNECTING']||s[_0xbb0b0(0x301)]['RETRYING'];const _0x2b1920=_0x4209c5['t'](Z(_0x12d47e,_0x271ab7)),_0x1cc180=Se(_0x12d47e,_0x271ab7,_0x4209c5,_0x24e0ab),_0x32243d=Pe(_0x12d47e),_0x39e1bc=_0x396ad2?i[_0xbb0b0(0x286)](q,{}):i['jsx'](Y,{}),_0xb81e9e=d[_0xbb0b0(0x253)](()=>{_0x24e0ab&&_0x355a61&&_0x355a61();},[_0x24e0ab,_0x355a61]);function _0x3a0bf8(){const _0xd60e9a=_0xbb0b0;return i[_0xd60e9a(0x26c)](_0xd60e9a(0x310),{'className':f[_0xd60e9a(0x1ee)](_0xd60e9a(0x32d),_0x24e0ab&&_0x355a61&&_0xd60e9a(0x323)),'role':'button','onClick':_0x24e0ab&&_0x355a61?_0xb81e9e:void 0x0,'children':[i['jsx'](_0xd60e9a(0x310),{'className':f[_0xd60e9a(0x1ee)](_0xd60e9a(0x1dc),_0x32243d),'children':_0x39e1bc}),i[_0xd60e9a(0x286)](_0xd60e9a(0x310),{'className':_0xd60e9a(0x31c),'children':_0x2b1920})]});}return i[_0xbb0b0(0x286)](f[_0xbb0b0(0x332)],{'title':_0x1cc180,'placement':_0xbb0b0(0x2ac),'children':_0x3a0bf8()});}var Ie=Object[_0x320784(0x25d)],_e=(_0x5dee68,_0x5b8d6d,_0x437a7b,_0x4d9847)=>{const _0x6b27ab=_0x320784;for(var _0x3b9573=_0x4d9847>0x1?void 0x0:_0x4d9847?Ie(_0x5b8d6d,_0x437a7b):_0x5b8d6d,_0x44d6b9=_0x5dee68[_0x6b27ab(0x235)]-0x1,_0x35560d;_0x44d6b9>=0x0;_0x44d6b9--)(_0x35560d=_0x5dee68[_0x44d6b9])&&(_0x3b9573=_0x35560d(_0x3b9573)||_0x3b9573);return _0x3b9573;},N=(_0x183011,_0x289217)=>(_0x2b4a27,_0x5bb9be)=>_0x289217(_0x2b4a27,_0x5bb9be,_0x183011);exports[_0x320784(0x2c5)]=class extends u[_0x320784(0x230)]{constructor(_0x4097d7,_0x25e6a4,_0x5d0daf,_0x56fcd9){const _0x50dba4=_0x320784;super(),this[_0x50dba4(0x21e)]=_0x4097d7,this[_0x50dba4(0x227)]=_0x25e6a4,this['_uiPartsService']=_0x5d0daf,this[_0x50dba4(0x1ec)]=_0x56fcd9,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x320784(0x2d0)](){const _0x5c7635=_0x320784,_0x18382f=this[_0x5c7635(0x1ec)][_0x5c7635(0x21a)](P);_0x18382f!=null&&_0x18382f['showDeveloperTools']&&(this[_0x5c7635(0x227)]['enableAutoConnect']=!0x1);}[_0x320784(0x334)](){const _0x564072=_0x320784,_0x2d4fa5=this[_0x564072(0x1ec)][_0x564072(0x21a)](P);(_0x2d4fa5==null?void 0x0:_0x2d4fa5['showStatus'])!==!0x1&&this[_0x564072(0x2e0)](this[_0x564072(0x1e1)][_0x564072(0x26a)](v[_0x564072(0x322)][_0x564072(0x2b2)],()=>{const _0x23e8b3=_0x564072;var _0x28d3c4;return v['connectInjector'](ye({'status$':this['_connectionController'][_0x23e8b3(0x274)],'error$':this['_connectionController'][_0x23e8b3(0x1ca)],'onConfigure':()=>this[_0x23e8b3(0x1e2)](),'showClickable':(_0x28d3c4=_0x2d4fa5==null?void 0x0:_0x2d4fa5[_0x23e8b3(0x2d7)])!=null?_0x28d3c4:!0x1}),this['_injector']);}));}[_0x320784(0x1e2)](){const _0x17cac3=_0x320784;this[_0x17cac3(0x21e)]['get'](exports[_0x17cac3(0x258)])[_0x17cac3(0x275)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u['Inject'](u[_0x320784(0x318)])),N(0x1,u[_0x320784(0x246)](s[_0x320784(0x2c0)])),N(0x2,v[_0x320784(0x30c)]),N(0x3,u[_0x320784(0x305)])],exports[_0x320784(0x2c5)]);function ye(_0x38da77){const {status$:_0x363143,error$:_0x539842,onConfigure:_0x2c8dd3,showClickable:_0x37e8f5}=_0x38da77;return function(){const _0x9cfc9f=_0x5131;return i[_0x9cfc9f(0x286)](W,{'status$':_0x363143,'error$':_0x539842,'onConfigure':_0x2c8dd3,'showClickable':_0x37e8f5});};}function Me(_0x2abb9e){const _0x5bfa18=_0x320784;return{'id':b['id'],'type':v[_0x5bfa18(0x2a4)]['BUTTON'],'icon':_0x5bfa18(0x2a5),'title':_0x5bfa18(0x28e),'tooltip':_0x5bfa18(0x28e)};}const Ne={[v[_0x320784(0x27e)][_0x320784(0x1e7)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0xecae9,_0x5b06b9,_0x3666a0,_0xf7094a)=>{for(var _0x1cac18=_0xf7094a>0x1?void 0x0:_0xf7094a?be(_0x5b06b9,_0x3666a0):_0x5b06b9,_0x1bad34=_0xecae9['length']-0x1,_0x2cf1d6;_0x1bad34>=0x0;_0x1bad34--)(_0x2cf1d6=_0xecae9[_0x1bad34])&&(_0x1cac18=_0x2cf1d6(_0x1cac18)||_0x1cac18);return _0x1cac18;},z=(_0x12901f,_0x50577c)=>(_0x4505b3,_0x2fd9cf)=>_0x50577c(_0x4505b3,_0x2fd9cf,_0x12901f);exports['MCPUIMenuController']=class extends u['Disposable']{constructor(_0x2c6403,_0x501f4f){const _0x6bd799=_0x320784;super(),this[_0x6bd799(0x33e)]=_0x2c6403,this[_0x6bd799(0x34a)]=_0x501f4f,this[_0x6bd799(0x2c4)](),this[_0x6bd799(0x2ca)]();}['_initializeCommands'](){const _0x32ac16=_0x320784;[b][_0x32ac16(0x237)](_0x438dbe=>{const _0x4b79b4=_0x32ac16;this[_0x4b79b4(0x2e0)](this[_0x4b79b4(0x33e)][_0x4b79b4(0x278)](_0x438dbe));});}[_0x320784(0x2ca)](){const _0x4b47e0=_0x320784;this[_0x4b47e0(0x34a)][_0x4b47e0(0x1d5)](Ne);}},exports[_0x320784(0x25c)]=je([z(0x0,u[_0x320784(0x321)]),z(0x1,v[_0x320784(0x338)])],exports['MCPUIMenuController']);function _0x3fa7(){const _0x5c5935=['MAX_RETRIES_EXCEEDED','round','ICommandService','BuiltInUIPart','\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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.connectionStatus.connected','Connected','启用身份验证','<SESSION_ID>','evenodd','univer-flex-1','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_mcpCoreConfig$','univer-flex\x20univer-items-center','close-icon','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_config$','SESSION_ID_OCCUPIED','Tooltip','mcpConfig.validation.invalidConfig','_initStatusComponent','13wNAAVE','xlink:href','M0\x200H16V16H0z','IMenuManagerService','univer-text-blue-600','mcpStatus.networkError','_validateConfig','mcpConfig.apiApplyInfo.univerAiLabel','Saving...','_commandService','_initConfigSync','label','random','univer-size-4','univer-space-y-4','mcpConfig.configError','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.authorizationDescription','univer-bg-red-500','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Failed\x20to\x20save\x20configuration','_menuManagerService','MCP\x20状态未知','7819YtYDxP','mcp-ui.command.openConfigPanel','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.apiKeyHint','_loading$','Module','MessageType','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','subscribeConfigValue$','Enter\x20your\x20API\x20key','defs','assign','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','21424344yAvTzt','getCurrentConfig','connectionError$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CloseIcon','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','配置保存失败','COMMAND','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.validation.apiKeyTooShort','Max\x20Retries','https://console.univer.plus','mcpConfig.configStepTitle','mergeMenu','mcpStatus.maxRetriesExceeded','isValid','subscribe','univer-text-xs\x20univer-text-gray-600','API\x20key\x20with\x20Bearer\x20prefix.','配置更改将立即生效','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Session\x20ID\x20Occupied','children','map','tag','_uiPartsService','_handleConfigure','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥长度至少需要\x2010\x20位','MCP\x20客户端配置','OTHERS','getItem','Retrying...','What\x20is\x20API\x20Key?','string','_configService','重连中...','clsx','几秒钟内获取您的\x20API\x20密钥','ISocketService','mcpStatus.clickToConnect','univer-bg-blue-500','未连接','OnLineIcon','会话\x20ID\x20已被占用,请稍后再试','28cEWiZp','displayName','onStarting','idSuffix','_messageService','MCP\x20Connecting...','MCP\x20连接失败','Invalid\x20configuration','88503ecFrts','get','push','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','297535TOBMcN','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','__setCustomHeaders','defineProperty','mcpStatus.unauthorized','ComponentManager','_handleConfigSave','check-mark-icon','DISCONNECTED','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','UNAUTHORIZED','mcpConfig.connectionStatus.retrying','_config','MCP\x20Client\x20Configuration','网络连接错误,请检查您的网络连接','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','createElement','mcpConfig.note2','sessionId$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.apiApplyInfo.title','RETRYING','use','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','getConfig','Get\x20your\x20API\x20key\x20in\x20seconds','CommandType','什么是\x20API\x20密钥?','_injector','Connection\x20Failed','trim','univer-shrink-0\x20univer-text-red-500','\x20-\x20','MCP:\x20会话\x20ID\x20已被占用','univer-size-2\x20univer-rounded-full','univer-text-sm\x20univer-font-medium','next','_connectionController','univer.ai','权限验证失败,请检查您的\x20API\x20密钥','text','univer-text-red-500','2446EVVAst','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','2552IUrJyt','API\x20Key','Disposable','18FFywxz','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','超出最大重试次数,请稍后再试','connectInjector','length','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','forEach','MCP_UI_PLUGIN','https://console.univer.ai','1250yGpkSe','点击连接\x20MCP','ILocalStorageService','clipPath','off','将以下配置添加到您的\x20MCP\x20客户端设置中:','_localeService','Configuration\x20Parameters:','Success','useRef','保存配置','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','Inject','pluginName','CONNECTING','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.apiApplyInfo.getStarted','_createConfigPanelComponent','mcpConfig.configStep1','replace','button','UniverIcon','useCallback','current','mcpConfig.saving','white','univer-flex\x20univer-items-start\x20univer-gap-3','MCPConfigUIController','mcpConfig.connectionStatus.disconnected','univer-flex\x20univer-gap-3','连接失败','MCPUIMenuController','getOwnPropertyDescriptor','univer-text-white','连接中...','Error','univer-space-y-2','WebSocketService','MCP_PLUGIN_CONFIG_KEY','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Univer\x20AI\x20控制台','0\x200\x2017\x2016','mcpConfig.note1','univer_session_id:','registerComponent','univer-flex\x20univer-items-center\x20univer-gap-3','jsxs','Configuration\x20saved\x20successfully','zhCN','path','univer-text-xs\x20univer-text-gray-500','Bearer\x20','entries','Authorization:','connectionStatus$','showConfigPanel','removeItem','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','registerCommand','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','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','_blank','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Connected','RibbonStartGroup','_localStorageService','useState','mcpConfig.apiKey','mcpConfig.apiApplyInfo.description','univer-text-gray-500','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','fill','jsx','mcpConfig.validation.apiKeyRequired','MCP\x20重连中...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','forwardRef','NONE','Configuration\x20Notes:','mcpConfig.title','MCPConfigPanel','univer-min-w-0\x20univer-flex-1','DependentOn','MCP:\x20Unauthorized','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','OpenMCPConfigPanelCommand','最大重试次数','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','defIds','_dialogService','mcpConfig.sessionIdDescription','mcpConfig.configParameters','mcpStatus.unknown','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionStatus.connecting','mcpConfig.configSaved','复制以下\x20JSON\x20配置','FAILED','mcp-config-dialog','请输入您的\x20API\x20密钥','IMessageService','MenuItemType','MenuIcon','UniverMCPUIPlugin','配置保存成功','您的\x20API\x20密钥将在此浏览器中本地存储','show','Session\x20ID','mcp.apiKey','bottom','CheckMarkIcon','univer-flex\x20univer-items-start\x20univer-gap-2','NETWORK_ERROR','LocaleService','register','HEADER_MENU','mcpConfig.connectionInfo','_mcpConnectionController','API\x20密钥无效,请检查密钥是否正确','url(#off-line-icon_clip0_910_343)','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-bg-gray-500','off-line-icon','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','validateApiKey','useDependency','MCP\x20Configuration','error','close','MCPConnectionController','MCP\x20已断开','setItem','mcpStatus.retrying','_initializeCommands','MCPConnectionUIController','Configuration\x20Steps:','配置步骤:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_apiKey$','_initializeMenus','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-flex\x20univer-flex-wrap\x20univer-gap-2','ILogService','mcpStatus.sessionOccupied','Save\x20Configuration','_initAutoConnect','mcpStatus.connected','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP:\x20超出最大重试次数','univerjs-icon\x20univerjs-icon-','enUS','mcpConfig.validation.invalidApiKey','showDeveloperTools','_componentManager','http://www.w3.org/2000/svg','span','Click\x20to\x20configure\x20MCP','BehaviorSubject','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2476958iAYzSM','MCP\x20配置','disposeWithMe','mcpConfig.connectionError.unauthorized','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','41355XYkGoD','IDialogService','mcpConfig.connectionError.networkError','Enable\x20authentication\x20for\x20secure\x20connections','url(#on-line-icon_clip0_910_349)','mcpConfig.description','CONNECTED','0\x200\x2016\x2016','univer.plus','Copy\x20the\x20JSON\x20configuration\x20below','_registerComponent','Button','url(#$1','HelpIcon','mcpConfig.configStep3','currentColor','mcpServerUrl','colorChannel1','warn','errorMessage','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','on-line-icon_clip0_910_349','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','486Lgafkj','apiKey','svg','已连接','includes','MCPConnectionStatus','none','toStringTag','toString','IConfigService','value','您的\x20API\x20密钥安全存储在本地存储中','<API_KEY>','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','OffLineIcon','IUIPartsService','MCPConnectionError','mask','_logService','div','univer-space-y-5','stringify','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','MCP\x20连接中...','attrs','Injector','univer-text-green-500','useObservable','1em','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','off-line-icon_clip0_910_343','univer-shrink-0\x20univer-text-blue-500'];_0x3fa7=function(){return _0x5c5935;};return _0x3fa7();}const Ee={'mcpStatus':{'disconnected':_0x320784(0x28a),'connecting':_0x320784(0x1fb),'connected':_0x320784(0x27d),'failed':_0x320784(0x314),'retrying':'MCP\x20Retrying...','unknown':_0x320784(0x315),'unauthorized':_0x320784(0x292),'sessionOccupied':_0x320784(0x1dd),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x320784(0x313),'clickToConnect':_0x320784(0x1e3),'clickToConfigure':_0x320784(0x2db)},'mcpConfig':{'title':_0x320784(0x2bd),'description':_0x320784(0x215),'apiKey':_0x320784(0x22f),'apiKeyPlaceholder':_0x320784(0x356),'apiKeyHint':_0x320784(0x2dd),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x320784(0x2e6),'connectionInfo':_0x320784(0x20f),'mcpClientConfig':_0x320784(0x20f),'configInstructions':_0x320784(0x201),'configStepTitle':_0x320784(0x2c6),'configStep1':_0x320784(0x2ec),'configStep2':_0x320784(0x34e),'configStep3':_0x320784(0x1e4),'sessionId':_0x320784(0x2aa),'sessionIdDescription':_0x320784(0x345),'authorizationDescription':_0x320784(0x1da),'configParameters':_0x320784(0x241),'maxRetries':_0x320784(0x1d2),'save':_0x320784(0x2cf),'saving':_0x320784(0x33d),'note1':_0x320784(0x203),'note2':_0x320784(0x1c7),'configSaved':_0x320784(0x26d),'configError':_0x320784(0x349),'apiApplyInfo':{'title':_0x320784(0x1ea),'description':_0x320784(0x20b),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x320784(0x21b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x320784(0x324),'invalidConfig':_0x320784(0x1fd),'invalidApiKey':_0x320784(0x264)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x320784(0x326),'failed':_0x320784(0x21f),'retrying':_0x320784(0x1e9)},'connectionError':{'unauthorized':_0x320784(0x289),'sessionOccupied':_0x320784(0x2c8),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x320784(0x2fb)}}},we={'mcpStatus':{'disconnected':_0x320784(0x2c1),'connecting':_0x320784(0x316),'connected':'MCP\x20已连接','failed':_0x320784(0x1fc),'retrying':_0x320784(0x288),'unknown':_0x320784(0x34b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x320784(0x223),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x320784(0x2d3),'clickToConnect':_0x320784(0x23b),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x320784(0x2df),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x320784(0x2a2),'apiKeyHint':_0x320784(0x2a8),'enableAuth':_0x320784(0x327),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x320784(0x1e6),'configInstructions':_0x320784(0x23f),'configStepTitle':_0x320784(0x2c7),'configStep1':_0x320784(0x29f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x320784(0x2d2),'authorizationDescription':_0x320784(0x2cb),'configParameters':'配置参数:','maxRetries':_0x320784(0x295),'save':_0x320784(0x244),'saving':'保存中...','note1':_0x320784(0x1db),'note2':_0x320784(0x307),'configSaved':_0x320784(0x2a7),'configError':_0x320784(0x1ce),'apiApplyInfo':{'title':_0x320784(0x21d),'description':_0x320784(0x32b),'univerAiLabel':_0x320784(0x266),'getStarted':_0x320784(0x1ef)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x320784(0x1e5),'invalidConfig':'配置无效','invalidApiKey':_0x320784(0x2b5)},'connectionStatus':{'disconnected':_0x320784(0x1f3),'connecting':_0x320784(0x25f),'connected':_0x320784(0x2ff),'failed':_0x320784(0x25b),'retrying':_0x320784(0x1ed)},'connectionError':{'unauthorized':_0x320784(0x229),'sessionOccupied':_0x320784(0x1f5),'networkError':_0x320784(0x210),'maxRetriesExceeded':_0x320784(0x233)}}};var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0x512214,_0x134a1a,_0x4510de)=>_0x134a1a in _0x512214?Ae(_0x512214,_0x134a1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4510de}):_0x512214[_0x134a1a]=_0x4510de,Ue=(_0x2fc36c,_0x1e38ca,_0x3f4084,_0x25db69)=>{const _0x5777be=_0x320784;for(var _0x41b163=_0x25db69>0x1?void 0x0:_0x25db69?Oe(_0x1e38ca,_0x3f4084):_0x1e38ca,_0x47b06b=_0x2fc36c[_0x5777be(0x235)]-0x1,_0x1c4849;_0x47b06b>=0x0;_0x47b06b--)(_0x1c4849=_0x2fc36c[_0x47b06b])&&(_0x41b163=_0x1c4849(_0x41b163)||_0x41b163);return _0x41b163;},y=(_0x5b789e,_0x1401fc)=>(_0xc700a8,_0x200d62)=>_0x1401fc(_0xc700a8,_0x200d62,_0x5b789e),$e=(_0x597854,_0x45823f,_0x512998)=>De(_0x597854,_0x45823f+'',_0x512998);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x1d1c7f=L,_0x31283f,_0x4437c3,_0x2f20d3,_0x24000d,_0x3ce51d){const _0x11657d=_0x320784;super(),this[_0x11657d(0x20e)]=_0x1d1c7f,this[_0x11657d(0x21e)]=_0x31283f,this[_0x11657d(0x1ec)]=_0x4437c3,this['_uiPartsService']=_0x2f20d3,this[_0x11657d(0x27f)]=_0x24000d,this[_0x11657d(0x240)]=_0x3ce51d;const {..._0x58c093}=u['merge']({},L,this['_config']);this[_0x11657d(0x1ec)]['setConfig'](P,_0x58c093);}async[_0x320784(0x1f8)](){const _0x1cc731=_0x320784,_0x9c0b44=[[exports[_0x1cc731(0x2c5)]],[exports[_0x1cc731(0x258)]],[exports[_0x1cc731(0x25c)]]];this[_0x1cc731(0x21e)]['has'](A[_0x1cc731(0x1f0)])||_0x9c0b44[_0x1cc731(0x200)]([A[_0x1cc731(0x1f0)],{'useClass':A[_0x1cc731(0x262)]}]),_0x9c0b44[_0x1cc731(0x237)](_0x4e81bf=>this[_0x1cc731(0x21e)]['add'](_0x4e81bf)),this[_0x1cc731(0x21e)][_0x1cc731(0x1ff)](exports[_0x1cc731(0x2c5)]),this['_injector']['get'](exports[_0x1cc731(0x258)]),this[_0x1cc731(0x21e)][_0x1cc731(0x1ff)](exports[_0x1cc731(0x25c)]);}},$e(exports['UniverMCPUIPlugin'],_0x320784(0x247),_0x320784(0x238)),exports['UniverMCPUIPlugin']=Ue([u[_0x320784(0x291)](s['UniverMCPPlugin']),y(0x1,u[_0x320784(0x246)](u[_0x320784(0x318)])),y(0x2,u[_0x320784(0x305)]),y(0x3,v[_0x320784(0x30c)]),y(0x4,u[_0x320784(0x23c)]),y(0x5,u[_0x320784(0x246)](u[_0x320784(0x2b0)]))],exports[_0x320784(0x2a6)]),exports[_0x320784(0x28f)]=V,exports['MCPStatusDisplay']=W,exports[_0x320784(0x294)]=b,exports[_0x320784(0x2d5)]=Ee,exports[_0x320784(0x26e)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x52bb(){const _0x476ea9=['exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','Saving...','1140923BevXTO','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connecting...','100801GCHPCZ','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','6wtpqJb','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','2hWHFBh','2204264FRuIVC','117060wcWyMJ','MCP\x20Connecting...','Disconnected','MCP\x20Unknown\x20Status','709002fpseXp','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','1501915PCTAqi','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','535884uuNhBf','API\x20key\x20with\x20Bearer\x20prefix.','Connected','6vIySyc','Configuration\x20saved\x20successfully','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Configuration\x20Steps:'];_0x52bb=function(){return _0x476ea9;};return _0x52bb();}const _0x51a1ed=_0xdfc7;function _0xdfc7(_0x1dc4ff,_0x3b7c4e){_0x1dc4ff=_0x1dc4ff-0x19c;const _0x52bb0a=_0x52bb();let _0xdfc772=_0x52bb0a[_0x1dc4ff];return _0xdfc772;}(function(_0x48ec80,_0x499c56){const _0x395709=_0xdfc7,_0x487663=_0x48ec80();while(!![]){try{const _0x1eb247=-parseInt(_0x395709(0x19f))/0x1*(-parseInt(_0x395709(0x1aa))/0x2)+parseInt(_0x395709(0x1a4))/0x3*(parseInt(_0x395709(0x1c3))/0x4)+-parseInt(_0x395709(0x1c0))/0x5*(-parseInt(_0x395709(0x1c6))/0x6)+-parseInt(_0x395709(0x19c))/0x7+-parseInt(_0x395709(0x1ab))/0x8+-parseInt(_0x395709(0x1b0))/0x9+parseInt(_0x395709(0x1ac))/0xa;if(_0x1eb247===_0x499c56)break;else _0x487663['push'](_0x487663['shift']());}catch(_0x531232){_0x487663['push'](_0x487663['shift']());}}}(_0x52bb,0x27ecc));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x51a1ed(0x1ad),'connected':_0x51a1ed(0x1cd),'failed':'MCP\x20Connection\x20Failed','retrying':_0x51a1ed(0x1bf),'unknown':_0x51a1ed(0x1af),'unauthorized':_0x51a1ed(0x1a9),'sessionOccupied':_0x51a1ed(0x1ce),'networkError':_0x51a1ed(0x1bc),'maxRetriesExceeded':_0x51a1ed(0x1b7),'clickToConnect':_0x51a1ed(0x1a0),'clickToConfigure':_0x51a1ed(0x1bd)},'mcpConfig':{'title':_0x51a1ed(0x1cf),'description':_0x51a1ed(0x1b2),'apiKey':_0x51a1ed(0x1a6),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x51a1ed(0x1a5),'enableAuth':_0x51a1ed(0x1c9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x51a1ed(0x1a8),'mcpClientConfig':_0x51a1ed(0x1a8),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x51a1ed(0x1ca),'configStep1':_0x51a1ed(0x1c2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x51a1ed(0x1a3),'sessionId':'Session\x20ID','sessionIdDescription':_0x51a1ed(0x19d),'authorizationDescription':_0x51a1ed(0x1c4),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x51a1ed(0x1b1),'save':'Save\x20Configuration','saving':_0x51a1ed(0x1d0),'note1':_0x51a1ed(0x1b8),'note2':_0x51a1ed(0x1bb),'configSaved':_0x51a1ed(0x1c7),'configError':_0x51a1ed(0x1c8),'apiApplyInfo':{'title':_0x51a1ed(0x1a7),'description':_0x51a1ed(0x1b4),'univerAiLabel':_0x51a1ed(0x1a1),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x51a1ed(0x1b9),'apiKeyTooShort':_0x51a1ed(0x1b6),'invalidConfig':_0x51a1ed(0x1ba),'invalidApiKey':_0x51a1ed(0x1b5)},'connectionStatus':{'disconnected':_0x51a1ed(0x1ae),'connecting':_0x51a1ed(0x19e),'connected':_0x51a1ed(0x1c5),'failed':_0x51a1ed(0x1c1),'retrying':_0x51a1ed(0x1b3)},'connectionError':{'unauthorized':_0x51a1ed(0x1be),'sessionOccupied':_0x51a1ed(0x1cc),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x51a1ed(0x1a2)}}},n=e;module[_0x51a1ed(0x1cb)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x2f97(){const _0x171252=['Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','MCP\x20Connecting...','Session\x20ID','223396dIbYWE','2882781tcTOfA','MCP\x20Client\x20Configuration','3798995GaYcsK','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','10qbOfeo','exports','12CehdWR','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1067PmasQW','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1714120JUKnNJ','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','Save\x20Configuration','2sTCnDC','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1275027CtOLnn','7fKchcz','4086bCGxol','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','API\x20Key','122316QPeZTD','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x2f97=function(){return _0x171252;};return _0x2f97();}const _0x34deb0=_0x59e8;(function(_0xcf76f0,_0x4aba14){const _0x5e74f1=_0x59e8,_0x571bd8=_0xcf76f0();while(!![]){try{const _0x538ed8=parseInt(_0x5e74f1(0xb9))/0x1*(parseInt(_0x5e74f1(0xb7))/0x2)+parseInt(_0x5e74f1(0xa5))/0x3*(-parseInt(_0x5e74f1(0x9a))/0x4)+parseInt(_0x5e74f1(0x9d))/0x5+-parseInt(_0x5e74f1(0xbb))/0x6*(parseInt(_0x5e74f1(0xba))/0x7)+-parseInt(_0x5e74f1(0xb0))/0x8+parseInt(_0x5e74f1(0x9b))/0x9*(parseInt(_0x5e74f1(0xa3))/0xa)+parseInt(_0x5e74f1(0xad))/0xb*(-parseInt(_0x5e74f1(0xc3))/0xc);if(_0x538ed8===_0x4aba14)break;else _0x571bd8['push'](_0x571bd8['shift']());}catch(_0x5b5b32){_0x571bd8['push'](_0x571bd8['shift']());}}}(_0x2f97,0xe2948));function _0x59e8(_0x196c52,_0x1146a0){_0x196c52=_0x196c52-0x94;const _0x2f9747=_0x2f97();let _0x59e82f=_0x2f9747[_0x196c52];return _0x59e82f;}const e={'mcpStatus':{'disconnected':_0x34deb0(0xaa),'connecting':_0x34deb0(0x98),'connected':'MCP\x20Connected','failed':_0x34deb0(0xb1),'retrying':'MCP\x20Retrying...','unknown':_0x34deb0(0xb4),'unauthorized':_0x34deb0(0xbf),'sessionOccupied':_0x34deb0(0xa7),'networkError':_0x34deb0(0xb5),'maxRetriesExceeded':_0x34deb0(0xa1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x34deb0(0xa0)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x34deb0(0xa8),'apiKey':_0x34deb0(0xc2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x34deb0(0xac),'enableAuth':_0x34deb0(0x95),'enableAuthHint':_0x34deb0(0xc5),'connectionInfo':_0x34deb0(0x9c),'mcpClientConfig':_0x34deb0(0x9c),'configInstructions':_0x34deb0(0xa9),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x34deb0(0xb2),'sessionId':_0x34deb0(0x99),'sessionIdDescription':_0x34deb0(0xbe),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x34deb0(0xa2),'maxRetries':_0x34deb0(0xb3),'save':_0x34deb0(0xb6),'saving':_0x34deb0(0xae),'note1':_0x34deb0(0x94),'note2':_0x34deb0(0x9f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x34deb0(0x9e),'apiApplyInfo':{'title':_0x34deb0(0xbc),'description':_0x34deb0(0xa6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x34deb0(0xbd),'apiKeyTooShort':_0x34deb0(0xc6),'invalidConfig':_0x34deb0(0xab),'invalidApiKey':_0x34deb0(0x96)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x34deb0(0xc1),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x34deb0(0x97)},'connectionError':{'unauthorized':_0x34deb0(0xc0),'sessionOccupied':_0x34deb0(0xc4),'networkError':_0x34deb0(0xb8),'maxRetriesExceeded':_0x34deb0(0xaf)}}};module[_0x34deb0(0xa4)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x257622=_0x1fdb;(function(_0x581ab7,_0x4bfec0){const _0x340768=_0x1fdb,_0x18ceeb=_0x581ab7();while(!![]){try{const _0x284585=parseInt(_0x340768(0x89))/0x1*(parseInt(_0x340768(0xab))/0x2)+-parseInt(_0x340768(0x94))/0x3*(parseInt(_0x340768(0x90))/0x4)+parseInt(_0x340768(0xa7))/0x5+-parseInt(_0x340768(0x91))/0x6*(-parseInt(_0x340768(0xb2))/0x7)+parseInt(_0x340768(0xa1))/0x8*(-parseInt(_0x340768(0x8a))/0x9)+parseInt(_0x340768(0x8c))/0xa+-parseInt(_0x340768(0x85))/0xb*(-parseInt(_0x340768(0xaf))/0xc);if(_0x284585===_0x4bfec0)break;else _0x18ceeb['push'](_0x18ceeb['shift']());}catch(_0x3001ea){_0x18ceeb['push'](_0x18ceeb['shift']());}}}(_0x1584,0x81052));function _0x1584(){const _0x1034fb=['MCP\x20Configuration','3732LtDWMx','Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','56357pnGnzd','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','Session\x20ID','4367cOPvmb','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','519tSnaUM','16956BvgloE','Enable\x20Authentication','1816410acUiWy','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','MCP\x20Retrying...','52wVgXsq','654BbITbe','MCP\x20Connecting...','MCP\x20Disconnected','136218TkLuYh','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Unknown\x20Status','3144WxIjvj','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','exports','2424890YAgPca','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','738rjFVKn','Connected','MCP:\x20Unauthorized'];_0x1584=function(){return _0x1034fb;};return _0x1584();}const e={'mcpStatus':{'disconnected':_0x257622(0x93),'connecting':_0x257622(0x92),'connected':'MCP\x20Connected','failed':_0x257622(0xa9),'retrying':_0x257622(0x8f),'unknown':_0x257622(0xa0),'unauthorized':_0x257622(0xad),'sessionOccupied':_0x257622(0x87),'networkError':_0x257622(0x88),'maxRetriesExceeded':_0x257622(0x82),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x257622(0x9a)},'mcpConfig':{'title':_0x257622(0xae),'description':_0x257622(0x9f),'apiKey':_0x257622(0x83),'apiKeyPlaceholder':_0x257622(0xa2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x257622(0x8b),'enableAuthHint':_0x257622(0x9c),'connectionInfo':_0x257622(0xa8),'mcpClientConfig':_0x257622(0xa8),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x257622(0xa3),'configStep2':_0x257622(0x9b),'configStep3':_0x257622(0xb3),'sessionId':_0x257622(0x84),'sessionIdDescription':_0x257622(0x98),'authorizationDescription':_0x257622(0x95),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x257622(0x86),'save':_0x257622(0x8e),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x257622(0xb1),'configSaved':_0x257622(0x96),'configError':_0x257622(0xa5),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x257622(0x99),'univerAiLabel':_0x257622(0x97),'getStarted':_0x257622(0x9e)},'validation':{'apiKeyRequired':_0x257622(0xa4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x257622(0x81),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x257622(0xac),'failed':_0x257622(0x9d),'retrying':_0x257622(0xb0)},'connectionError':{'unauthorized':_0x257622(0x8d),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x257622(0xaa),'maxRetriesExceeded':_0x257622(0x80)}}},n=e;function _0x1fdb(_0x583b75,_0xa1be29){_0x583b75=_0x583b75-0x80;const _0x1584c9=_0x1584();let _0x1fdb56=_0x1584c9[_0x583b75];return _0x1fdb56;}module[_0x257622(0xa6)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2b3219=_0x3c97;(function(_0x40c1e7,_0x1b9e35){const _0x2e689a=_0x3c97,_0x457765=_0x40c1e7();while(!![]){try{const _0x257dcb=-parseInt(_0x2e689a(0x128))/0x1*(parseInt(_0x2e689a(0x118))/0x2)+parseInt(_0x2e689a(0x117))/0x3*(parseInt(_0x2e689a(0x123))/0x4)+parseInt(_0x2e689a(0x106))/0x5+-parseInt(_0x2e689a(0x10f))/0x6*(-parseInt(_0x2e689a(0x112))/0x7)+-parseInt(_0x2e689a(0x136))/0x8+-parseInt(_0x2e689a(0x11a))/0x9*(parseInt(_0x2e689a(0x12d))/0xa)+parseInt(_0x2e689a(0x131))/0xb;if(_0x257dcb===_0x1b9e35)break;else _0x457765['push'](_0x457765['shift']());}catch(_0xe94450){_0x457765['push'](_0x457765['shift']());}}}(_0x3faf,0x81c4b));function _0x3c97(_0x450140,_0x34eea8){_0x450140=_0x450140-0x104;const _0x3faf8a=_0x3faf();let _0x3c9711=_0x3faf8a[_0x450140];return _0x3c9711;}const e={'mcpStatus':{'disconnected':_0x2b3219(0x134),'connecting':'MCP\x20Connecting...','connected':_0x2b3219(0x12b),'failed':_0x2b3219(0x129),'retrying':'MCP\x20Retrying...','unknown':_0x2b3219(0x110),'unauthorized':_0x2b3219(0x127),'sessionOccupied':_0x2b3219(0x133),'networkError':_0x2b3219(0x10d),'maxRetriesExceeded':_0x2b3219(0x137),'clickToConnect':_0x2b3219(0x138),'clickToConfigure':_0x2b3219(0x10b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2b3219(0x126),'apiKey':_0x2b3219(0x139),'apiKeyPlaceholder':_0x2b3219(0x119),'apiKeyHint':_0x2b3219(0x108),'enableAuth':_0x2b3219(0x11c),'enableAuthHint':_0x2b3219(0x12f),'connectionInfo':_0x2b3219(0x114),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2b3219(0x10c),'sessionId':_0x2b3219(0x109),'sessionIdDescription':_0x2b3219(0x121),'authorizationDescription':_0x2b3219(0x113),'configParameters':_0x2b3219(0x125),'maxRetries':_0x2b3219(0x12e),'save':_0x2b3219(0x11e),'saving':_0x2b3219(0x115),'note1':_0x2b3219(0x11b),'note2':_0x2b3219(0x12c),'configSaved':_0x2b3219(0x122),'configError':_0x2b3219(0x12a),'apiApplyInfo':{'title':_0x2b3219(0x130),'description':_0x2b3219(0x11f),'univerAiLabel':_0x2b3219(0x132),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2b3219(0x111),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2b3219(0x116),'invalidApiKey':_0x2b3219(0x10a)},'connectionStatus':{'disconnected':_0x2b3219(0x104),'connecting':_0x2b3219(0x124),'connected':_0x2b3219(0x120),'failed':_0x2b3219(0x107),'retrying':_0x2b3219(0x13a)},'connectionError':{'unauthorized':_0x2b3219(0x10e),'sessionOccupied':_0x2b3219(0x135),'networkError':_0x2b3219(0x11d),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2b3219(0x105)]=n;function _0x3faf(){const _0x25c7db=['Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2874DpYlzh','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','6146OuZYFl','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','Saving...','Invalid\x20configuration','3EincPR','36lRCvYT','Enter\x20your\x20API\x20key','683190SvtUCi','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','413492VaKkKJ','Connecting...','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','49635KtzVGw','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','10pkfkCj','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','What\x20is\x20API\x20Key?','13014892FllzNQ','Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','8400728TXEHiF','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','API\x20Key','Retrying...','Disconnected','exports','4219275geeVEl','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP'];_0x3faf=function(){return _0x25c7db;};return _0x3faf();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x188ce8=_0x5962;(function(_0x1e5974,_0x4c981d){const _0x456187=_0x5962,_0x5cca8d=_0x1e5974();while(!![]){try{const _0x230b3b=-parseInt(_0x456187(0xc0))/0x1+parseInt(_0x456187(0xb1))/0x2*(parseInt(_0x456187(0xac))/0x3)+-parseInt(_0x456187(0xaa))/0x4+parseInt(_0x456187(0xc2))/0x5+parseInt(_0x456187(0xad))/0x6+parseInt(_0x456187(0xba))/0x7+parseInt(_0x456187(0xc9))/0x8;if(_0x230b3b===_0x4c981d)break;else _0x5cca8d['push'](_0x5cca8d['shift']());}catch(_0xd7eaaf){_0x5cca8d['push'](_0x5cca8d['shift']());}}}(_0x4dc5,0xadb8e));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x188ce8(0xa8),'connected':'MCP\x20Connected','failed':_0x188ce8(0xa6),'retrying':'MCP\x20Retrying...','unknown':_0x188ce8(0xa7),'unauthorized':_0x188ce8(0xc5),'sessionOccupied':_0x188ce8(0xc7),'networkError':_0x188ce8(0x9c),'maxRetriesExceeded':_0x188ce8(0xa2),'clickToConnect':_0x188ce8(0x9e),'clickToConfigure':_0x188ce8(0xa0)},'mcpConfig':{'title':_0x188ce8(0xa1),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x188ce8(0xbe),'apiKeyHint':_0x188ce8(0xbf),'enableAuth':_0x188ce8(0xbd),'enableAuthHint':_0x188ce8(0x9f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x188ce8(0xb8),'configInstructions':_0x188ce8(0xca),'configStepTitle':_0x188ce8(0xa9),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x188ce8(0xae),'configStep3':_0x188ce8(0x9d),'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':_0x188ce8(0xa3),'configParameters':_0x188ce8(0xc8),'maxRetries':_0x188ce8(0xb5),'save':_0x188ce8(0xc6),'saving':'Saving...','note1':_0x188ce8(0xb7),'note2':_0x188ce8(0xb9),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x188ce8(0xa5),'apiApplyInfo':{'title':_0x188ce8(0xb2),'description':_0x188ce8(0xb3),'univerAiLabel':_0x188ce8(0xb4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x188ce8(0xc3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x188ce8(0xc4),'connecting':_0x188ce8(0xbb),'connected':_0x188ce8(0xb6),'failed':_0x188ce8(0xb0),'retrying':_0x188ce8(0xc1)},'connectionError':{'unauthorized':_0x188ce8(0xa4),'sessionOccupied':_0x188ce8(0xbc),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x188ce8(0xaf)}}},n=e;function _0x5962(_0x2483db,_0x3a9cdf){_0x2483db=_0x2483db-0x9c;const _0x4dc531=_0x4dc5();let _0x59623d=_0x4dc531[_0x2483db];return _0x59623d;}module[_0x188ce8(0xab)]=n;function _0x4dc5(){const _0x4eba5d=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','319750DjPRKZ','Retrying...','956315vBssDl','Invalid\x20configuration','Disconnected','MCP:\x20Unauthorized','Save\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Parameters:','5619992ZwnCYy','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Configuration\x20Steps:','5643864UsnwXq','exports','474123hhRMZe','4291638jwJLSj','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','6zSUNSd','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Univer\x20AI\x20Console','Max\x20Retries','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2513868OsoLmG','Connecting...'];_0x4dc5=function(){return _0x4eba5d;};return _0x4dc5();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x53f7ae=_0x56e0;(function(_0x197d35,_0x2b3a7f){const _0x356e82=_0x56e0,_0x38f29e=_0x197d35();while(!![]){try{const _0x1c73a7=-parseInt(_0x356e82(0x181))/0x1*(parseInt(_0x356e82(0x165))/0x2)+parseInt(_0x356e82(0x186))/0x3*(-parseInt(_0x356e82(0x173))/0x4)+-parseInt(_0x356e82(0x175))/0x5*(parseInt(_0x356e82(0x161))/0x6)+-parseInt(_0x356e82(0x15b))/0x7+parseInt(_0x356e82(0x160))/0x8+parseInt(_0x356e82(0x169))/0x9*(parseInt(_0x356e82(0x17c))/0xa)+parseInt(_0x356e82(0x184))/0xb*(parseInt(_0x356e82(0x15d))/0xc);if(_0x1c73a7===_0x2b3a7f)break;else _0x38f29e['push'](_0x38f29e['shift']());}catch(_0x40a1ec){_0x38f29e['push'](_0x38f29e['shift']());}}}(_0x13c7,0xd9800));function _0x13c7(){const _0x59b01b=['MCPを設定してAIでスプレッドシートを操作','3231076sXkWQs','無効なAPIキーです。キーが正しいか確認してください','435WGLtKy','接続失敗','設定手順:','MCP\x20接続済み','設定の変更は直ちに有効になります','APIキー','MCP:\x20最大再試行回数を超過','10gFzbEU','認証を有効にする','最大再試行回数を超過しました。後でもう一度お試しください','APIキーはこのブラウザのローカルに保存されます','MCPクライアントを再起動して設定を適用','1fECeuc','セッションIDが現在使用中です。後でもう一度お試しください','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','38496579pjmCdk','無効な設定','3xnMjvw','以下のJSON設定をコピー','8840678KFuQwk','MCPクライアント設定','12qKaPyY','MCPクライアントの設定に次の設定を追加してください:','クリックしてMCPに接続','2360024sIaRUM','72630kdNxbl','セッションID','設定の保存に失敗しました','セキュアな接続のために認証を有効にする','1850314kpxqnl','設定を保存','Bearerプレフィックス付きのAPIキー。','Univer\x20AIコンソール','10306827cuaZuS','exports','MCPクライアントの設定ファイルに設定を追加','MCP\x20再試行中...','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','設定パラメータ:','APIキーはローカルストレージに安全に保存されます','認証に失敗しました。APIキーを確認してください','MCP設定'];_0x13c7=function(){return _0x59b01b;};return _0x13c7();}function _0x56e0(_0x6d64,_0x29fbea){_0x6d64=_0x6d64-0x15a;const _0x13c7fc=_0x13c7();let _0x56e0fb=_0x13c7fc[_0x6d64];return _0x56e0fb;}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':_0x53f7ae(0x178),'failed':'MCP\x20接続失敗','retrying':_0x53f7ae(0x16c),'unknown':'MCP\x20不明な状態','unauthorized':'MCP:\x20認証されていません','sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x53f7ae(0x17b),'clickToConnect':_0x53f7ae(0x15f),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x53f7ae(0x171),'description':_0x53f7ae(0x172),'apiKey':_0x53f7ae(0x17a),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x53f7ae(0x17f),'enableAuth':_0x53f7ae(0x17d),'enableAuthHint':_0x53f7ae(0x164),'connectionInfo':_0x53f7ae(0x15c),'mcpClientConfig':_0x53f7ae(0x15c),'configInstructions':_0x53f7ae(0x15e),'configStepTitle':_0x53f7ae(0x177),'configStep1':_0x53f7ae(0x15a),'configStep2':_0x53f7ae(0x16b),'configStep3':_0x53f7ae(0x180),'sessionId':_0x53f7ae(0x162),'sessionIdDescription':_0x53f7ae(0x16d),'authorizationDescription':_0x53f7ae(0x167),'configParameters':_0x53f7ae(0x16e),'maxRetries':'最大再試行回数','save':_0x53f7ae(0x166),'saving':'保存中...','note1':_0x53f7ae(0x179),'note2':_0x53f7ae(0x16f),'configSaved':'設定が正常に保存されました','configError':_0x53f7ae(0x163),'apiApplyInfo':{'title':'APIキーとは?','description':_0x53f7ae(0x183),'univerAiLabel':_0x53f7ae(0x168),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x53f7ae(0x185),'invalidApiKey':_0x53f7ae(0x174)},'connectionStatus':{'disconnected':'未接続','connecting':'接続中...','connected':'接続済み','failed':_0x53f7ae(0x176),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x53f7ae(0x170),'sessionOccupied':_0x53f7ae(0x182),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x53f7ae(0x17e)}}};module[_0x53f7ae(0x16a)]=e;
|