@univerjs-pro/mcp-ui 0.12.1 → 0.12.2-experimental.20251201-5b27b55
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/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/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/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/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 +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5f019c=_0x6b3c;(function(_0x316eec,_0x850f4a){const _0x236b2a=_0x6b3c,_0x399394=_0x316eec();while(!![]){try{const _0x2be710=-parseInt(_0x236b2a(0x171))/0x1*(parseInt(_0x236b2a(0x19c))/0x2)+-parseInt(_0x236b2a(0x191))/0x3+-parseInt(_0x236b2a(0x106))/0x4+-parseInt(_0x236b2a(0x1d9))/0x5*(parseInt(_0x236b2a(0x200))/0x6)+-parseInt(_0x236b2a(0x10e))/0x7+parseInt(_0x236b2a(0x172))/0x8+parseInt(_0x236b2a(0x1f8))/0x9*(parseInt(_0x236b2a(0x129))/0xa);if(_0x2be710===_0x850f4a)break;else _0x399394['push'](_0x399394['shift']());}catch(_0x3b1966){_0x399394['push'](_0x399394['shift']());}}}(_0x297a,0xd8ce7));function _0x6b3c(_0x30b0e7,_0x209229){const _0x297a34=_0x297a();return _0x6b3c=function(_0x6b3c22,_0x58ec84){_0x6b3c22=_0x6b3c22-0xae;let _0x55c54d=_0x297a34[_0x6b3c22];return _0x55c54d;},_0x6b3c(_0x30b0e7,_0x209229);}var Pe=Object[_0x5f019c(0xd0)],Ee=(_0x47a8e3,_0x105a0d,_0x2a729d)=>_0x105a0d in _0x47a8e3?Pe(_0x47a8e3,_0x105a0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a729d}):_0x47a8e3[_0x105a0d]=_0x2a729d,x=(_0x1a17d5,_0x51eeb2,_0x5af4d4)=>Ee(_0x1a17d5,typeof _0x51eeb2!=_0x5f019c(0x117)?_0x51eeb2+'':_0x51eeb2,_0x5af4d4);import{LocaleService as _0x50797d,Inject as _0x4cd141,Injector as _0x18fe7e,IConfigService as _0x33daa9,ILocalStorageService as _0x2b2756,ILogService as _0x316a8d,Disposable as _0xc7b5a,CommandType as _0x3a3b52,ICommandService as _0x3df414,DependentOn as _0x315164,Plugin as _0x286071,merge as _0x3d6d7c}from'@univerjs/core';import{jsxs as _0x1531e0,jsx as _0x1b935a}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4f068b,MCPConnectionError as _0x5c2471,MCPConnectionController as _0x334a18,MCP_PLUGIN_CONFIG_KEY as _0x230f62,UniverMCPPlugin as _0x30ad4f}from'@univerjs-pro/mcp';import{clsx as _0x3f147d,Input as _0x5a0704,Button as _0x5d7281,MessageType as _0x7f0117,Tooltip as _0xfcef24}from'@univerjs/design';import{useDependency as _0x279bfc,useObservable as _0x275d33,IUIPartsService as _0x17ef3b,IDialogService as _0x8fcc48,IMessageService as _0x262fe0,ComponentManager as _0x507ecf,connectInjector as _0x5d84b6,BuiltInUIPart as _0x4b853b,MenuItemType as _0x553dde,RibbonStartGroup as _0x58e065,IMenuManagerService as _0x123cf1}from'@univerjs/ui';import{BehaviorSubject as _0x39757b}from'rxjs';import{useRef as _0x9e8766,createElement as _0x423eba,forwardRef as _0x5875ac,useState as _0x152b9c,useCallback as _0x5c82ba}from'react';import{ISocketService as _0x985069,WebSocketService as _0x42b82e}from'@univerjs/network';function b({ref:_0x5d4836,..._0xc7767d}){const _0x3ed517=_0x5f019c,{icon:_0x17b252,id:_0x41e9e1,className:_0x4bc967,extend:_0x5cc9ac,..._0xa56b78}=_0xc7767d,_0x22c814=('univerjs-icon\x20univerjs-icon-'+_0x41e9e1+'\x20'+(_0x4bc967||''))['trim'](),_0x514d3b=_0x9e8766('_'+We());return ae(_0x17b252,''+_0x41e9e1,{'defIds':_0x17b252['defIds'],'idSuffix':_0x514d3b[_0x3ed517(0xf4)]},{'ref':_0x5d4836,'className':_0x22c814,..._0xa56b78},_0x5cc9ac);}function _0x297a(){const _0x41e12a=['univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.apiApplyInfo.univerAiLabel','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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defineProperty','univer-text-xs\x20univer-text-gray-600','pluginName','配置参数:','_componentManager','https://console.univer.plus','_injector','RETRYING','_initConfigSync','Enter\x20your\x20API\x20key','off','Enable\x20authentication\x20for\x20secure\x20connections','open','next','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_createConfigPanelComponent','连接中...','errorMessage','entries','round','_logService','url(#$1','mcp.apiKey','univer-text-xs\x20univer-text-gray-500','off-line-icon','Configuration\x20saved\x20successfully','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionError.unauthorized','Connection\x20Failed','defs','getItem','权限验证失败,请检查您的\x20API\x20密钥','univer-size-2\x20univer-rounded-full','UniverIcon','mcpConfig.configStepTitle','current','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','未连接','_validateConfig','get','has','mcpConfig.connectionStatus.connected','_localStorageService','push','idSuffix','_connectionController','_handleConfigSave','mcpConfig.connectionStatus.failed','点击配置\x20MCP','trim','univer-space-y-3','replace','mcpConfig.note2','4048632GlgdBu','validateApiKey','mcpConfig.apiKeyHint','\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','Click\x20to\x20configure\x20MCP','_dialogService','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','4623339kYNmUg','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-space-y-5','mcpStatus.unauthorized','您的\x20API\x20密钥安全存储在本地存储中','fill','error','mcpConfig.configStep1','_uiPartsService','symbol','_mcpCoreConfig$','CONNECTED','connectionError$','NETWORK_ERROR','label','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','univer-flex\x20univer-items-start\x20univer-gap-3','_apiKey$','mcpStatus.maxRetriesExceeded','includes','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Error','registerCommand','close-icon','HelpIcon','API\x20密钥长度至少需要\x2010\x20位','HEADER_MENU','200JKOfMq','配置步骤:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.validation.invalidConfig','MCP\x20状态未知','mcpServerUrl','MCP:\x20Network\x20Error','mcpConfig.validation.apiKeyRequired','BUTTON','将配置添加到您的\x20MCP\x20客户端设置文件中','_initAutoConnect','univer.plus','CloseIcon','path','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpConfig.configStep2','mcpConfig.note1','displayName','保存配置','univer-size-4','univer-flex\x20univer-items-center\x20univer-gap-2','attrs','mcpStatus.disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','off-line-icon_clip0_910_343','div','Enable\x20Authentication','univer-text-gray-400','https://console.univer.ai','mcpConfig.connectionInfo','超出最大重试次数,请稍后再试','请输入您的\x20API\x20密钥','mcpConfig.validation.invalidApiKey','clipPath','重连中...','mcpConfig.connectionError.networkError','disposeWithMe','启用身份验证','mcpStatus.connecting','close','mask','isValid','button','pre','_initializeMenus','univer-text-yellow-500','white','MCP\x20Configuration','univer-bg-gray-500','univer-space-y-2','Saving...','_mcpConnectionController','mcpConfig.description','currentColor','univer-bg-red-500','mcpConfig.configSaved','mcpConfig.apiKey','univer-flex\x20univer-items-start\x20univer-gap-2','substring','Retrying...','univer-font-medium','MCPConfigPanel','_config$','mcpConfig.configInstructions','mcpConfig.configStep3','_blank','showStatus','Success','univer-text-sm\x20univer-text-gray-500','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','MCP\x20客户端配置','21621aWFicR','14135648cSZkfE','_loading$','getOwnPropertyDescriptor','showConfigPanel','tag','SESSION_ID_OCCUPIED','univer-flex\x20univer-gap-3','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','setItem','mcpConfig.apiKeyPlaceholder','配置\x20MCP\x20使用\x20AI\x20操作电子表格','value','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.apiApplyInfo.title','_loadStoredApiKey','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','random','MCP\x20连接失败','\x20-\x20','mcpStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','help-icon','showDeveloperTools','colorChannel1','Session\x20ID','apiKey','string','0\x200\x2016\x2016','mcpConfig.configParameters','Bearer\x20','5054625kOxuTl','add','evenodd','mcpStatus.connected','mcpConfig.connectionError.sessionOccupied','mcpStatus.sessionOccupied','subscribe','univer-text-gray-500','_initStatusComponent','Click\x20to\x20connect\x20MCP','show','8QtjMbE','OnLineIcon','univer-flex\x20univer-items-center','配置无效','sessionId$','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20连接中...','mcp-ui.config','Connecting...','univer.ai','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-white','mcpConfig.configError','noopener\x20noreferrer','<API_KEY>','_menuManagerService','warn','MCP\x20Client\x20Configuration','<SESSION_ID>','MCP:\x20超出最大重试次数','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','mcpStatus.retrying','API\x20密钥无效,请检查密钥是否正确','svg','toString','assign','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-flex\x20univer-items-center\x20univer-gap-3','Get\x20your\x20API\x20key\x20in\x20seconds','univer-shrink-0\x20univer-text-red-500','Connected','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP\x20Connection\x20Failed','MCP\x20Disconnected','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex-1','_commandService','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.clickToConnect','univer-text-red-500','重启您的\x20MCP\x20客户端以使配置生效','_messageService','xlink:href','enableAutoConnect','connectionStatus$','DISCONNECTED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Univer\x20AI\x20控制台','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.getStarted','on-line-icon','_localeService','CheckMarkIcon','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','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','5jvnueW','Authorization:','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-bg-blue-500','Univer\x20AI\x20Console','UNAUTHORIZED','children','translate(.97)','mcpConfig.apiApplyInfo.description','MenuIcon','M0\x200H16V16H0z','mcpStatus.unknown','MCP_UI_PLUGIN','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','none','url(#on-line-icon_clip0_910_349)','mcpConfig.save','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','连接失败','span','mcpConfig.title','最大重试次数','配置保存成功','Configuration\x20Steps:','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP:\x20Unauthorized','mcp-config-dialog','1156671AVaHJp','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-shrink-0\x20univer-text-blue-500','use','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','getConfig','https://mcp.univer.ai/mcp/?univer_session_id=','OTHERS','31818NjkZqO','启用身份验证以获得安全连接','mcpConfig.validation.apiKeyTooShort','mcpStatus.networkError','forEach','check-mark-icon','mcpConfig.authorizationDescription','MCP\x20Retrying...','MCP\x20配置','保存中...','API\x20密钥','text','map','CONNECTING','univer-min-w-0\x20univer-flex-1','__setCustomHeaders','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20已断开','Configuration\x20Notes:','url(#off-line-icon_clip0_910_343)','http://www.w3.org/2000/svg','univer_session_id:','length','_configService','1em','mcpConfig.saving','on-line-icon_clip0_910_349','NONE','removeItem'];_0x297a=function(){return _0x41e12a;};return _0x297a();}function ae(_0x571139,_0x464d8c,_0x14f9eb,_0x35b292,_0x38851a){const _0x502fce=_0x5f019c;return _0x423eba(_0x571139['tag'],{'key':_0x464d8c,...Ye(_0x571139,_0x14f9eb,_0x38851a),..._0x35b292},(Ze(_0x571139,_0x14f9eb)['children']||[])[_0x502fce(0xb9)]((_0x337600,_0x240eb2)=>ae(_0x337600,_0x464d8c+'-'+_0x571139[_0x502fce(0x176)]+'-'+_0x240eb2,_0x14f9eb,void 0x0,_0x38851a)));}function Ye(_0xcde3eb,_0x135c9d,_0x5b4cbd){const _0x13ab7f=_0x5f019c,_0x20505f={..._0xcde3eb[_0x13ab7f(0x13e)]};_0x5b4cbd!=null&&_0x5b4cbd[_0x13ab7f(0x18a)]&&_0x20505f[_0x13ab7f(0x113)]==='colorChannel1'&&(_0x20505f[_0x13ab7f(0x113)]=_0x5b4cbd[_0x13ab7f(0x18a)]),_0xcde3eb['tag']===_0x13ab7f(0x151)&&_0x20505f['id']&&(_0x20505f['id']=_0x20505f['id']+_0x135c9d[_0x13ab7f(0xfd)]),Object[_0x13ab7f(0xe2)](_0x20505f)[_0x13ab7f(0xb1)](([_0x1006ed,_0x2b46eb])=>{const _0x5521b1=_0x13ab7f;_0x1006ed===_0x5521b1(0x151)&&typeof _0x2b46eb=='string'&&(_0x20505f[_0x1006ed]=_0x2b46eb[_0x5521b1(0x104)](/url\(#(.*)\)/,_0x5521b1(0xe5)+_0x135c9d[_0x5521b1(0xfd)]+')'));});const {defIds:_0x56e804}=_0x135c9d;return!_0x56e804||_0x56e804[_0x13ab7f(0xc3)]===0x0||(_0xcde3eb[_0x13ab7f(0x176)]===_0x13ab7f(0x1fb)&&_0x20505f[_0x13ab7f(0x1cc)]&&(_0x20505f[_0x13ab7f(0x1cc)]=_0x20505f[_0x13ab7f(0x1cc)]+_0x135c9d[_0x13ab7f(0xfd)]),Object[_0x13ab7f(0xe2)](_0x20505f)[_0x13ab7f(0xb1)](([_0x3424c6,_0x38f9de])=>{const _0x505340=_0x13ab7f;typeof _0x38f9de=='string'&&(_0x20505f[_0x3424c6]=_0x38f9de[_0x505340(0x104)](/url\(#(.*)\)/,_0x505340(0xe5)+_0x135c9d[_0x505340(0xfd)]+')'));})),_0x20505f;}function Ze(_0x49f285,_0x4b5750){const _0x229034=_0x5f019c;var _0x4eab08;const {defIds:_0x3b5a7e}=_0x4b5750;return!_0x3b5a7e||_0x3b5a7e[_0x229034(0xc3)]===0x0?_0x49f285:_0x49f285[_0x229034(0x176)]===_0x229034(0xee)&&((_0x4eab08=_0x49f285[_0x229034(0x1df)])!=null&&_0x4eab08[_0x229034(0xc3)])?{..._0x49f285,'children':_0x49f285[_0x229034(0x1df)]['map'](_0x8fafd8=>typeof _0x8fafd8[_0x229034(0x13e)]['id']==_0x229034(0x18d)&&_0x3b5a7e&&_0x3b5a7e[_0x229034(0x121)](_0x8fafd8[_0x229034(0x13e)]['id'])?{..._0x8fafd8,'attrs':{..._0x8fafd8[_0x229034(0x13e)],'id':_0x8fafd8[_0x229034(0x13e)]['id']+_0x4b5750[_0x229034(0xfd)]}}:_0x8fafd8)}:_0x49f285;}function We(){const _0x5ce0dd=_0x5f019c;return Math[_0x5ce0dd(0x183)]()[_0x5ce0dd(0x1b8)](0x24)[_0x5ce0dd(0x163)](0x2,0x8);}b['displayName']=_0x5f019c(0xf2);const qe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':_0x5f019c(0xc1),'fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':'path','attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x1ee),'fillRule':_0x5f019c(0x193),'clipRule':'evenodd'}}]},le=_0x5875ac(function(_0x3890bd,_0x33a899){const _0x565261=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x3890bd,{'id':_0x565261(0xb2),'ref':_0x33a899,'icon':qe}));});le[_0x5f019c(0x13a)]=_0x5f019c(0x1d6);const Xe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':'1em'},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x10d)}}]},ue=_0x5875ac(function(_0x22aa33,_0x4132c8){const _0x18ead9=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x22aa33,{'id':_0x18ead9(0x125),'ref':_0x4132c8,'icon':Xe}));});ue[_0x5f019c(0x13a)]=_0x5f019c(0x135);const Je={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f019c(0x1e9),'viewBox':_0x5f019c(0x18e),'width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':'currentColor','d':_0x5f019c(0x182)}},{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x10f)}},{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x15e),'d':_0x5f019c(0x1f9),'fillRule':_0x5f019c(0x193),'clipRule':_0x5f019c(0x193)}}]},ve=_0x5875ac(function(_0x190b97,_0x345d66){const _0x2d5717=_0x5f019c;return _0x423eba(b,Object[_0x2d5717(0x1b9)]({},_0x190b97,{'id':_0x2d5717(0x188),'ref':_0x345d66,'icon':Je}));});ve[_0x5f019c(0x13a)]=_0x5f019c(0x126);const Qe={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5f019c(0xc5),'height':_0x5f019c(0xc5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f019c(0xc0)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'stroke':_0x5f019c(0x15e),'d':_0x5f019c(0x11d),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f019c(0x14a),'attrs':{'id':_0x5f019c(0x141)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'fill':_0x5f019c(0x157),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5f019c(0x141)]},de=_0x5875ac(function(_0x355bfe,_0x3f7349){const _0x29d99e=_0x5f019c;return _0x423eba(b,Object[_0x29d99e(0x1b9)]({},_0x355bfe,{'id':_0x29d99e(0xe8),'ref':_0x3f7349,'icon':Qe}));});de[_0x5f019c(0x13a)]='OffLineIcon';const en={'tag':_0x5f019c(0x1b7),'attrs':{'xmlns':_0x5f019c(0xc1),'fill':_0x5f019c(0x1e9),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5f019c(0xc5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f019c(0x1ea)},'children':[{'tag':_0x5f019c(0x136),'attrs':{'stroke':_0x5f019c(0x15e),'d':_0x5f019c(0x1b4),'strokeLinecap':_0x5f019c(0xe3),'strokeLinejoin':_0x5f019c(0xe3),'strokeWidth':1.2}}]},{'tag':_0x5f019c(0xee),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5f019c(0xc7)},'children':[{'tag':'path','attrs':{'fill':_0x5f019c(0x157),'d':_0x5f019c(0x1e3),'transform':_0x5f019c(0x1e0)}}]}]}],'defIds':[_0x5f019c(0xc7)]},ge=_0x5875ac(function(_0x1cb480,_0x3af4a1){const _0x3786f8=_0x5f019c;return _0x423eba(b,Object['assign']({},_0x1cb480,{'id':_0x3786f8(0x1d4),'ref':_0x3af4a1,'icon':en}));});ge['displayName']=_0x5f019c(0x19d);function nn(_0x33ac13){const _0x3630f2=_0x5f019c;var _0x5433b1,_0x1258c5;const {mcpCoreConfig:_0x154691,onSave:_0x103dee,loading:_0x4a8bee=!0x1,config:_0x4a4abf,connectionStatus$:_0x28cb0b,connectionError$:_0x2e8bcb,currentApiKey$:_0x3d0e0c,currentSessionId$:_0x2eb8f1}=_0x33ac13,_0x3e6e9c=_0x279bfc(_0x50797d),_0x371d37=_0x275d33(_0x28cb0b,_0x4f068b['DISCONNECTED']),_0x1cb307=_0x275d33(_0x2e8bcb,_0x5c2471[_0x3630f2(0xc8)]),_0x12a0b7=_0x275d33(_0x2eb8f1,''),_0x19f7a4=_0x275d33(_0x3d0e0c,''),[_0x15b9e0,_0x6a1912]=_0x152b9c(_0x19f7a4||''),_0x5800aa=!0x0,_0x31acc1=_0x4a4abf['showDeveloperTools']&&_0x154691[_0x3630f2(0x12e)]&&(_0x154691[_0x3630f2(0x12e)]['includes'](_0x3630f2(0x134))||_0x154691[_0x3630f2(0x12e)][_0x3630f2(0x121)]('univer.ai')),_0x4a176c=(_0x5433b1=_0x154691[_0x3630f2(0x12e)])==null?void 0x0:_0x5433b1['includes'](_0x3630f2(0x134)),_0x356811=(_0x1258c5=_0x154691['mcpServerUrl'])==null?void 0x0:_0x1258c5['includes'](_0x3630f2(0x1a9)),_0x14f519=_0x4a176c?_0x3630f2(0xd5):_0x3630f2(0x145),_0x38db21=_0x4a4abf[_0x3630f2(0x189)]&&(_0x4a176c||_0x356811),[_0x289281,_0x5afcbd]=_0x152b9c(!_0x15b9e0[_0x3630f2(0x102)]()),_0x5d013a=(_0x3b9ab6,_0x270356)=>{const _0x5def4f=_0x3630f2;if(_0x270356===_0x5c2471[_0x5def4f(0x1de)])return _0x5def4f(0x17a);switch(_0x3b9ab6){case _0x4f068b['CONNECTED']:return _0x5def4f(0x17f);case _0x4f068b[_0x5def4f(0xba)]:case _0x4f068b['RETRYING']:return _0x5def4f(0x1c6);case _0x4f068b[_0x5def4f(0x16f)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x5def4f(0x1fc);}},_0x1bd475=(_0x12b5b4,_0x7ec387)=>{const _0xac7960=_0x3630f2;if(_0x7ec387===_0x5c2471[_0xac7960(0x1de)])return _0xac7960(0x15f);switch(_0x12b5b4){case _0x4f068b[_0xac7960(0x119)]:return'univer-bg-green-500';case _0x4f068b[_0xac7960(0xba)]:case _0x4f068b[_0xac7960(0xd7)]:return _0xac7960(0x1dc);case _0x4f068b[_0xac7960(0x16f)]:return _0xac7960(0x15f);default:return _0xac7960(0x159);}},_0x2274f4=_0x1b5bdf=>{const _0x152138=_0x3630f2;switch(_0x1b5bdf){case _0x4f068b[_0x152138(0x119)]:return _0x3e6e9c['t'](_0x152138(0xfa));case _0x4f068b[_0x152138(0xba)]:return _0x3e6e9c['t']('mcpConfig.connectionStatus.connecting');case _0x4f068b[_0x152138(0x16f)]:return _0x3e6e9c['t'](_0x152138(0x100));case _0x4f068b[_0x152138(0xd7)]:return _0x3e6e9c['t']('mcpConfig.connectionStatus.retrying');default:return _0x3e6e9c['t']('mcpConfig.connectionStatus.disconnected');}},_0x409918=_0x39152f=>{const _0x24b0fd=_0x3630f2;switch(_0x39152f){case _0x5c2471[_0x24b0fd(0x1de)]:return _0x3e6e9c['t'](_0x24b0fd(0xec));case _0x5c2471['SESSION_ID_OCCUPIED']:return _0x3e6e9c['t'](_0x24b0fd(0x195));case _0x5c2471[_0x24b0fd(0x11b)]:return _0x3e6e9c['t'](_0x24b0fd(0x14c));case _0x5c2471[_0x24b0fd(0x1e6)]:return _0x3e6e9c['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x158026=_0x5c82ba(()=>{const _0x17a5f6=_0x3630f2,_0x17e9d9={..._0x154691,'apiKey':_0x15b9e0[_0x17a5f6(0x102)](),'enableAuth':_0x5800aa};_0x103dee(_0x17e9d9);},[_0x154691,_0x15b9e0,_0x5800aa,_0x103dee]),_0x20277d=_0x15b9e0['trim']()[_0x3630f2(0xc3)]>0x0;return _0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1bf),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xca),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1bb),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xeb),'children':_0x1b935a('span',{'className':_0x3630f2(0x1ab),'children':'⚙'})}),_0x1b935a(_0x3630f2(0x142),{'children':_0x1b935a('p',{'className':_0x3630f2(0x16d),'children':_0x3e6e9c['t'](_0x3630f2(0x15d))})})]})}),_0x1531e0('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3f147d('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x5d013a(_0x371d37,_0x1cb307)),'children':_0x1531e0(_0x3630f2(0x142),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3f147d(_0x3630f2(0xf1),_0x1bd475(_0x371d37,_0x1cb307))}),_0x1b935a(_0x3630f2(0x1f0),{'className':'univer-text-sm\x20univer-font-medium','children':_0x2274f4(_0x371d37)})]})}),_0x1cb307!==_0x5c2471['NONE']&&(_0x371d37===_0x4f068b[_0x3630f2(0x16f)]||_0x1cb307===_0x5c2471[_0x3630f2(0x1de)])&&_0x1b935a('div',{'className':_0x3630f2(0x1f5),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x162),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x1bd),'children':'⚠️'}),_0x1b935a('p',{'className':_0x3630f2(0x137),'children':_0x409918(_0x1cb307)})]})})]}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1ec),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x110),'children':[_0x1531e0('div',{'className':_0x3630f2(0x15a),'children':[_0x1531e0(_0x3630f2(0x11c),{'className':_0x3630f2(0x1a2),'children':[_0x1b935a('span',{'children':'🔑'}),'\x20',_0x3e6e9c['t'](_0x3630f2(0x161)),_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x1c9),'children':'*'}),_0x31acc1&&_0x1b935a('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':_0x3e6e9c['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x5afcbd(!0x0),'children':_0x1b935a(ve,{})})]}),_0x1b935a(_0x5a0704,{'type':_0x3630f2(0xb8),'placeholder':_0x3e6e9c['t'](_0x3630f2(0x17c)),'value':_0x15b9e0,'disabled':_0x4a8bee,'autoComplete':_0x3630f2(0xda),'onChange':_0x6a1912}),_0x1b935a('p',{'className':_0x3630f2(0xe7),'children':_0x3e6e9c['t'](_0x3630f2(0x108))})]}),_0x31acc1&&_0x289281&&_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0xf5),'children':[_0x1b935a('a',{'className':_0x3630f2(0x1d7),'role':'button','onClick':()=>_0x5afcbd(!0x1),'children':_0x1b935a(ue,{'className':_0x3630f2(0x13c)})}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1e7),'children':_0x1b935a(_0x3630f2(0x1f0),{'className':'univer-text-blue-600','children':'🚀'})}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1c4),'children':[_0x1b935a('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3e6e9c['t'](_0x3630f2(0x180))}),_0x1b935a('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3e6e9c['t'](_0x3630f2(0x1e1))}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xbd),'children':_0x38db21&&_0x1531e0('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x14f519,'target':_0x3630f2(0x16a),'rel':_0x3630f2(0x1ad),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'🤖'}),_0x3e6e9c['t'](_0x3630f2(0xcc)),_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0x144),'children':'↗'})]})}),_0x1531e0('div',{'className':_0x3630f2(0x1a3),'children':['✨','\x20',_0x3e6e9c['t'](_0x3630f2(0x1d3))]})]})]})]}),_0x4a4abf['showDeveloperTools']&&_0x1531e0(_0x3630f2(0x142),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1531e0('h4',{'className':_0x3630f2(0x12b),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'🔗'}),'\x20',_0x3e6e9c['t'](_0x3630f2(0x146))]}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-4','children':[_0x1531e0('div',{'className':_0x3630f2(0x103),'children':[_0x1b935a('p',{'className':_0x3630f2(0xd1),'children':_0x3e6e9c['t'](_0x3630f2(0x168))}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-2','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1d0),'children':_0x3e6e9c['t'](_0x3630f2(0xf3))}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x1aa),'children':[_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'1'}),_0x3e6e9c['t'](_0x3630f2(0x115))]}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'2'}),_0x3e6e9c['t'](_0x3630f2(0x138))]}),_0x1531e0('div',{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'className':_0x3630f2(0xcd),'children':'3'}),_0x3e6e9c['t'](_0x3630f2(0x169))]})]})]})]}),_0x1531e0('div',{'className':'univer-space-y-2','children':[_0x1b935a('div',{'className':_0x3630f2(0x1d0),'children':_0x3630f2(0x158)}),_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xea),'children':_0x1b935a(_0x3630f2(0x154),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x3630f2(0x1fe)+(_0x12a0b7||_0x3630f2(0x1b2)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x15b9e0||_0x3630f2(0x1ae))}}}},null,0x2)})})]}),_0x1531e0('div',{'className':_0x3630f2(0x103),'children':[_0x1b935a(_0x3630f2(0x142),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3e6e9c['t'](_0x3630f2(0x18f))}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x15a),'children':[_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x11e),'children':[_0x1b935a(_0x3630f2(0x142),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1b935a('div',{'className':_0x3630f2(0xde),'children':_0x3630f2(0xc2)}),_0x1b935a(_0x3630f2(0x142),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3e6e9c['t']('mcpConfig.sessionIdDescription')})]})]}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x11e),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x1c7)}),_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0xbb),'children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0xde),'children':_0x3630f2(0x1da)}),_0x1b935a('div',{'className':_0x3630f2(0xe7),'children':_0x3e6e9c['t'](_0x3630f2(0xb3))})]})]})]})]})]})]}),_0x1b935a(_0x5d7281,{'onClick':_0x158026,'disabled':!_0x20277d||_0x4a8bee,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x4a8bee?_0x1531e0('span',{'className':_0x3630f2(0x13d),'children':[_0x1b935a(_0x3630f2(0x1f0),{'children':'⟲'}),_0x3e6e9c['t'](_0x3630f2(0xc6))]}):_0x1531e0(_0x3630f2(0x1f0),{'className':_0x3630f2(0x13d),'children':[_0x1b935a(le,{}),_0x3e6e9c['t'](_0x3630f2(0x1eb))]})}),_0x1b935a('div',{'className':_0x3630f2(0x16e),'children':_0x1531e0(_0x3630f2(0x142),{'className':_0x3630f2(0x178),'children':[_0x1b935a('span',{'className':_0x3630f2(0x1fa),'children':'💡'}),_0x1531e0(_0x3630f2(0x142),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1b935a(_0x3630f2(0x142),{'className':_0x3630f2(0x165),'children':_0x3630f2(0xbf)}),_0x1531e0(_0x3630f2(0x142),{'children':['•',_0x3e6e9c['t'](_0x3630f2(0x139))]}),_0x1531e0(_0x3630f2(0x142),{'children':['•',_0x3e6e9c['t'](_0x3630f2(0x105))]})]})]})})]})})]});}const y=_0x5f019c(0x1a7),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5f019c(0x174)],tn=(_0x3fa174,_0x3afcf0,_0x233f36,_0x34f8ba)=>{const _0x489c26=_0x5f019c;for(var _0x348432=_0x34f8ba>0x1?void 0x0:_0x34f8ba?rn(_0x3afcf0,_0x233f36):_0x3afcf0,_0x593435=_0x3fa174[_0x489c26(0xc3)]-0x1,_0x18d379;_0x593435>=0x0;_0x593435--)(_0x18d379=_0x3fa174[_0x593435])&&(_0x348432=_0x18d379(_0x348432)||_0x348432);return _0x348432;},d=(_0x4f07ae,_0x461a86)=>(_0x35909c,_0x49770e)=>_0x461a86(_0x35909c,_0x49770e,_0x4f07ae);const U=_0x5f019c(0xe6),L=_0x5f019c(0x1f7);let I=class extends _0xc7b5a{constructor(_0x42f883,_0x60ab42,_0x432ce8,_0x139ac5,_0x300560,_0x429a5a,_0x44ae03,_0x40902a,_0x16a2c7,_0x5a690c){const _0x15a239=_0x5f019c;super(),x(this,_0x15a239(0x173),new _0x39757b(!0x1)),x(this,_0x15a239(0x118),new _0x39757b({})),x(this,_0x15a239(0x167),new _0x39757b({})),x(this,'_apiKey$',new _0x39757b('')),x(this,_0x15a239(0xff),async _0x447250=>{const _0x58084a=_0x15a239;var _0x2d276e,_0x2b0f49;this[_0x58084a(0x173)][_0x58084a(0xdd)](!0x0);try{const _0x3cd28c=await this[_0x58084a(0xf7)](_0x447250);if(!_0x3cd28c[_0x58084a(0x152)]){this[_0x58084a(0x1cb)]['show']({'type':_0x7f0117[_0x58084a(0x123)],'content':_0x3cd28c[_0x58084a(0xe1)]||this[_0x58084a(0x1d5)]['t'](_0x58084a(0x12c))});return;}_0x447250['apiKey']?await this['_localStorageService'][_0x58084a(0x17b)](U,_0x447250['apiKey'][_0x58084a(0x102)]()):await this['_localStorageService'][_0x58084a(0xc9)](U),this[_0x58084a(0x11f)]['next'](((_0x2d276e=_0x447250['apiKey'])==null?void 0x0:_0x2d276e[_0x58084a(0x102)]())||''),this[_0x58084a(0x15c)][_0x58084a(0xbc)]({'Authorization':_0x58084a(0x190)+((_0x2b0f49=_0x447250[_0x58084a(0x18c)])==null?void 0x0:_0x2b0f49[_0x58084a(0x102)]())}),this[_0x58084a(0x1cb)][_0x58084a(0x19b)]({'type':_0x7f0117[_0x58084a(0x16c)],'content':this[_0x58084a(0x1d5)]['t'](_0x58084a(0x160))}),setTimeout(()=>{const _0x2b512d=_0x58084a;this[_0x2b512d(0x10c)][_0x2b512d(0x150)](L);},0x320);}catch(_0x42bee9){this[_0x58084a(0xe4)][_0x58084a(0x114)](_0x58084a(0x1a1),_0x42bee9),this['_messageService'][_0x58084a(0x19b)]({'type':_0x7f0117['Error'],'content':this[_0x58084a(0x1d5)]['t'](_0x58084a(0x1ac))});}finally{this[_0x58084a(0x173)]['next'](!0x1);}}),(this[_0x15a239(0xd6)]=_0x42f883,this[_0x15a239(0x116)]=_0x60ab42,this[_0x15a239(0xc4)]=_0x432ce8,this[_0x15a239(0xfb)]=_0x139ac5,this[_0x15a239(0x10c)]=_0x300560,this['_messageService']=_0x429a5a,this[_0x15a239(0xd4)]=_0x44ae03,this[_0x15a239(0x1d5)]=_0x40902a,this[_0x15a239(0xe4)]=_0x16a2c7,this['_mcpConnectionController']=_0x5a690c,this['_initConfigSync'](),this[_0x15a239(0x181)](),this['_registerComponent']());}[_0x5f019c(0x175)](){const _0x4f3069=_0x5f019c,_0x3c2b7f=this[_0x4f3069(0xc4)][_0x4f3069(0x1fd)](y);_0x3c2b7f!=null&&_0x3c2b7f[_0x4f3069(0x189)]&&this[_0x4f3069(0x10c)][_0x4f3069(0xdc)]({'id':L,'title':{'title':this[_0x4f3069(0x1d5)]['t'](_0x4f3069(0x1f1))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xcdce0b=_0x4f3069;this[_0xcdce0b(0x10c)][_0xcdce0b(0x150)](L);}});}['getCurrentConfig'](){const _0x429449=_0x5f019c;return this[_0x429449(0x118)][_0x429449(0x17e)];}['_registerComponent'](){const _0x1dac24=_0x5f019c;this['disposeWithMe'](this[_0x1dac24(0xd4)]['register'](_0x1dac24(0x166),this[_0x1dac24(0xdf)]()));}[_0x5f019c(0xdf)](){const _0x49e19c=_0x5f019c;return _0x5d84b6(()=>{const _0x41af57=_0x6b3c;var _0x24b694,_0x417c4b,_0x102256;return _0x1b935a(nn,{'config':this[_0x41af57(0x167)]['value'],'mcpCoreConfig':this[_0x41af57(0x118)][_0x41af57(0x17e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x41af57(0xff)],'loading':this[_0x41af57(0x173)][_0x41af57(0x17e)],'connectionStatus$':(_0x24b694=this[_0x41af57(0x15c)])==null?void 0x0:_0x24b694[_0x41af57(0x1ce)],'connectionError$':(_0x417c4b=this[_0x41af57(0x15c)])==null?void 0x0:_0x417c4b['connectionError$'],'currentSessionId$':(_0x102256=this[_0x41af57(0x15c)])==null?void 0x0:_0x102256[_0x41af57(0x1a0)]});},this[_0x49e19c(0xd6)]);}[_0x5f019c(0xd8)](){const _0x2519ce=_0x5f019c;this[_0x2519ce(0x14d)](this[_0x2519ce(0xc4)]['subscribeConfigValue$'](_0x230f62)[_0x2519ce(0x197)](_0x308d3d=>{const _0x28abc4=_0x2519ce;this[_0x28abc4(0x118)][_0x28abc4(0xdd)](_0x308d3d||{});}));const _0x48dcd1=this['_configService'][_0x2519ce(0x1fd)](_0x230f62);this[_0x2519ce(0x118)]['next'](_0x48dcd1||{}),this['disposeWithMe'](this[_0x2519ce(0xc4)]['subscribeConfigValue$'](y)[_0x2519ce(0x197)](_0x5ba119=>{const _0x1cc10a=_0x2519ce;this[_0x1cc10a(0x167)][_0x1cc10a(0xdd)](_0x5ba119||{});}));const _0x4eaf2f=this['_configService'][_0x2519ce(0x1fd)](y);this[_0x2519ce(0x167)][_0x2519ce(0xdd)](_0x4eaf2f||{});}async[_0x5f019c(0x181)](){const _0x2cd940=_0x5f019c,_0x4fb3a2=this[_0x2cd940(0xc4)][_0x2cd940(0x1fd)](y);if(!(_0x4fb3a2!=null&&_0x4fb3a2[_0x2cd940(0x189)]))return;const _0x58552c=await this[_0x2cd940(0xfb)][_0x2cd940(0xef)](U);_0x58552c&&(this[_0x2cd940(0x15c)][_0x2cd940(0xbc)]({'Authorization':'Bearer\x20'+_0x58552c}),this['_apiKey$'][_0x2cd940(0xdd)](_0x58552c));}async[_0x5f019c(0xf7)](_0x368473){const _0x34a047=_0x5f019c;if(!_0x368473['apiKey']||_0x368473[_0x34a047(0x18c)][_0x34a047(0x102)]()[_0x34a047(0xc3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x34a047(0x1d5)]['t'](_0x34a047(0x130))};if(_0x368473['apiKey'][_0x34a047(0x102)]()[_0x34a047(0xc3)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x34a047(0x1d5)]['t'](_0x34a047(0xaf))};try{const _0x4a125c=await this['_injector'][_0x34a047(0xf8)](_0x334a18)[_0x34a047(0x107)](_0x368473[_0x34a047(0x18c)][_0x34a047(0x102)]());return _0x4a125c[_0x34a047(0x152)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4a125c[_0x34a047(0x114)]||this[_0x34a047(0x1d5)]['t'](_0x34a047(0x149))};}catch(_0x2305fa){return console[_0x34a047(0x1b0)](_0x34a047(0x1db),_0x2305fa),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4cd141(_0x18fe7e)),d(0x1,_0x17ef3b),d(0x2,_0x33daa9),d(0x3,_0x2b2756),d(0x4,_0x8fcc48),d(0x5,_0x262fe0),d(0x6,_0x4cd141(_0x507ecf)),d(0x7,_0x4cd141(_0x50797d)),d(0x8,_0x316a8d),d(0x9,_0x4cd141(_0x334a18))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x3a3b52['COMMAND'],'handler':async(_0x4b579a,_0x45c739)=>(_0x4b579a[_0x5f019c(0xf8)](I)[_0x5f019c(0x175)](),!0x0)};function pe(_0x3e1b80,_0x4e522c){const _0x5366ef=_0x5f019c;switch(_0x3e1b80){case _0x4f068b[_0x5366ef(0x1cf)]:return _0x5366ef(0x13f);case _0x4f068b['CONNECTING']:return _0x5366ef(0x14f);case _0x4f068b[_0x5366ef(0x119)]:return _0x5366ef(0x194);case _0x4f068b['FAILED']:switch(_0x4e522c){case _0x5c2471[_0x5366ef(0x1de)]:return _0x5366ef(0x111);case _0x5c2471[_0x5366ef(0x177)]:return _0x5366ef(0x196);case _0x5c2471['NETWORK_ERROR']:return _0x5366ef(0xb0);case _0x5c2471[_0x5366ef(0x1e6)]:return _0x5366ef(0x120);default:return _0x5366ef(0x186);}case _0x4f068b[_0x5366ef(0xd7)]:return _0x5366ef(0x1b5);default:return _0x5366ef(0x1e4);}}function on(_0x46a1d6,_0x3dfda2,_0x5468b9,_0x4a09b5=!0x0){const _0x3e0697=_0x5f019c,_0x13952d=pe(_0x46a1d6,_0x3dfda2),_0x3a7e34=_0x5468b9['t'](_0x13952d);return _0x4a09b5?_0x46a1d6===_0x4f068b['DISCONNECTED']&&_0x3dfda2===_0x5c2471[_0x3e0697(0x1de)]?_0x3a7e34+_0x3e0697(0x185)+_0x5468b9['t']('mcpStatus.clickToConfigure'):_0x46a1d6===_0x4f068b[_0x3e0697(0x119)]?''+_0x3a7e34:_0x46a1d6===_0x4f068b[_0x3e0697(0x1cf)]||_0x46a1d6===_0x4f068b[_0x3e0697(0x16f)]?_0x3a7e34+_0x3e0697(0x185)+_0x5468b9['t'](_0x3e0697(0x1c8)):_0x3a7e34:_0x3a7e34;}function sn(_0x52c72c){const _0x33d960=_0x5f019c;switch(_0x52c72c){case _0x4f068b['CONNECTED']:return'univer-text-green-500';case _0x4f068b[_0x33d960(0xba)]:case _0x4f068b[_0x33d960(0xd7)]:return _0x33d960(0x156);case _0x4f068b[_0x33d960(0x16f)]:case _0x4f068b[_0x33d960(0x1cf)]:return'univer-text-red-500';default:return _0x33d960(0x198);}}function cn(_0x123fd1){const _0x38a5d5=_0x5f019c,{status$:_0x669c53,error$:_0x4508f5,onConfigure:_0x5a134b,showClickable:_0x258c4a=!0x0}=_0x123fd1,_0x1db3ac=_0x275d33(_0x669c53,_0x4f068b[_0x38a5d5(0x1cf)]),_0x441cde=_0x275d33(_0x4508f5,_0x5c2471['NONE']),_0x3050b8=_0x279bfc(_0x50797d),_0x138a23=_0x1db3ac===_0x4f068b[_0x38a5d5(0x119)];_0x1db3ac===_0x4f068b[_0x38a5d5(0xba)]||_0x4f068b[_0x38a5d5(0xd7)];const _0x3fd286=_0x3050b8['t'](pe(_0x1db3ac,_0x441cde)),_0x30f939=on(_0x1db3ac,_0x441cde,_0x3050b8,_0x258c4a),_0x21b5d8=sn(_0x1db3ac),_0x35f11b=_0x138a23?_0x1b935a(ge,{}):_0x1b935a(de,{}),_0x317bf3=_0x5c82ba(()=>{_0x258c4a&&_0x5a134b&&_0x5a134b();},[_0x258c4a,_0x5a134b]);function _0x5aa77a(){const _0x1f330f=_0x38a5d5;return _0x1531e0(_0x1f330f(0x142),{'className':_0x3f147d(_0x1f330f(0x19e),_0x258c4a&&_0x5a134b&&_0x1f330f(0x109)),'role':_0x1f330f(0x153),'onClick':_0x258c4a&&_0x5a134b?_0x317bf3:void 0x0,'children':[_0x1b935a(_0x1f330f(0x142),{'className':_0x3f147d(_0x1f330f(0x1c3),_0x21b5d8),'children':_0x35f11b}),_0x1b935a(_0x1f330f(0x142),{'className':_0x1f330f(0x1d8),'children':_0x3fd286})]});}return _0x1b935a(_0xfcef24,{'title':_0x30f939,'placement':'bottom','children':_0x5aa77a()});}var an=Object[_0x5f019c(0x174)],ln=(_0x3f791a,_0x156c09,_0x4af2a1,_0x153095)=>{const _0x593773=_0x5f019c;for(var _0x424ff0=_0x153095>0x1?void 0x0:_0x153095?an(_0x156c09,_0x4af2a1):_0x156c09,_0x4d0a2e=_0x3f791a[_0x593773(0xc3)]-0x1,_0x47c42d;_0x4d0a2e>=0x0;_0x4d0a2e--)(_0x47c42d=_0x3f791a[_0x4d0a2e])&&(_0x424ff0=_0x47c42d(_0x424ff0)||_0x424ff0);return _0x424ff0;},M=(_0x3151cb,_0x4b09ac)=>(_0x1c3394,_0x154c0f)=>_0x4b09ac(_0x1c3394,_0x154c0f,_0x3151cb);let O=class extends _0xc7b5a{constructor(_0x39f363,_0x192650,_0x42aa45,_0x16e2b3){const _0x3ae215=_0x5f019c;super(),this['_injector']=_0x39f363,this['_connectionController']=_0x192650,this[_0x3ae215(0x116)]=_0x42aa45,this['_configService']=_0x16e2b3,this[_0x3ae215(0x133)](),this[_0x3ae215(0x199)]();}[_0x5f019c(0x133)](){const _0x2f3316=_0x5f019c,_0x107b5d=this['_configService'][_0x2f3316(0x1fd)](y);_0x107b5d!=null&&_0x107b5d[_0x2f3316(0x189)]&&(this[_0x2f3316(0xfe)][_0x2f3316(0x1cd)]=!0x1);}['_initStatusComponent'](){const _0x1a31a3=_0x5f019c,_0x569d26=this[_0x1a31a3(0xc4)]['getConfig'](y);(_0x569d26==null?void 0x0:_0x569d26[_0x1a31a3(0x16b)])!==!0x1&&this['disposeWithMe'](this[_0x1a31a3(0x116)]['registerComponent'](_0x4b853b[_0x1a31a3(0x128)],()=>{const _0x281de1=_0x1a31a3;var _0x46091b;return _0x5d84b6(un({'status$':this[_0x281de1(0xfe)][_0x281de1(0x1ce)],'error$':this[_0x281de1(0xfe)][_0x281de1(0x11a)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x46091b=_0x569d26==null?void 0x0:_0x569d26[_0x281de1(0x189)])!=null?_0x46091b:!0x1}),this[_0x281de1(0xd6)]);}));}['_handleConfigure'](){const _0x2132bf=_0x5f019c;this[_0x2132bf(0xd6)]['get'](I)['showConfigPanel']();}};O=ln([M(0x0,_0x4cd141(_0x18fe7e)),M(0x1,_0x4cd141(_0x334a18)),M(0x2,_0x17ef3b),M(0x3,_0x33daa9)],O);function un(_0x37c3c7){const {status$:_0x583d34,error$:_0x7da799,onConfigure:_0x424bf0,showClickable:_0x2d5bfb}=_0x37c3c7;return function(){return _0x1b935a(cn,{'status$':_0x583d34,'error$':_0x7da799,'onConfigure':_0x424bf0,'showClickable':_0x2d5bfb});};}function vn(_0x210f69){const _0x5cb580=_0x5f019c;return{'id':V['id'],'type':_0x553dde[_0x5cb580(0x131)],'icon':_0x5cb580(0x1e2),'title':_0x5cb580(0x1f1),'tooltip':_0x5cb580(0x1f1)};}const dn={[_0x58e065[_0x5f019c(0x1ff)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x5f019c(0x174)],pn=(_0x1ec733,_0x59f109,_0x190e79,_0x57ff1f)=>{const _0x1c5125=_0x5f019c;for(var _0xeefd31=_0x57ff1f>0x1?void 0x0:_0x57ff1f?gn(_0x59f109,_0x190e79):_0x59f109,_0x37f56c=_0x1ec733[_0x1c5125(0xc3)]-0x1,_0x3fc106;_0x37f56c>=0x0;_0x37f56c--)(_0x3fc106=_0x1ec733[_0x37f56c])&&(_0xeefd31=_0x3fc106(_0xeefd31)||_0xeefd31);return _0xeefd31;},re=(_0x19c325,_0x14d568)=>(_0x2e774f,_0x344641)=>_0x14d568(_0x2e774f,_0x344641,_0x19c325);let D=class extends _0xc7b5a{constructor(_0x124c85,_0x503a0c){const _0x417f8f=_0x5f019c;super(),this[_0x417f8f(0x1c5)]=_0x124c85,this['_menuManagerService']=_0x503a0c,this['_initializeCommands'](),this[_0x417f8f(0x155)]();}['_initializeCommands'](){const _0x5978c3=_0x5f019c;[V][_0x5978c3(0xb1)](_0xb0f07a=>{const _0x477513=_0x5978c3;this['disposeWithMe'](this[_0x477513(0x1c5)][_0x477513(0x124)](_0xb0f07a));});}[_0x5f019c(0x155)](){const _0x2f3ee2=_0x5f019c;this[_0x2f3ee2(0x1af)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x3df414),re(0x1,_0x123cf1)],D);const Mn={'mcpStatus':{'disconnected':_0x5f019c(0x1c1),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x5f019c(0x1c0),'retrying':_0x5f019c(0xb4),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5f019c(0x1f6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5f019c(0x12f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f019c(0x19a),'clickToConfigure':_0x5f019c(0x10b)},'mcpConfig':{'title':_0x5f019c(0x158),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5f019c(0x10a),'apiKeyPlaceholder':_0x5f019c(0xd9),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5f019c(0x143),'enableAuthHint':_0x5f019c(0xdb),'connectionInfo':_0x5f019c(0x1b1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5f019c(0x1f4),'configStep1':_0x5f019c(0x187),'configStep2':_0x5f019c(0xce),'configStep3':_0x5f019c(0x1a5),'sessionId':_0x5f019c(0x18b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5f019c(0x15b),'note1':_0x5f019c(0x179),'note2':_0x5f019c(0xcf),'configSaved':_0x5f019c(0xe9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5f019c(0x1ba),'univerAiLabel':_0x5f019c(0x1dd),'getStarted':_0x5f019c(0x1bc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5f019c(0x1a4),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5f019c(0x1a8),'connected':_0x5f019c(0x1be),'failed':_0x5f019c(0xed),'retrying':_0x5f019c(0x164)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5f019c(0x140),'networkError':_0x5f019c(0x122),'maxRetriesExceeded':_0x5f019c(0x1d2)}}},An={'mcpStatus':{'disconnected':_0x5f019c(0xbe),'connecting':_0x5f019c(0x1a6),'connected':'MCP\x20已连接','failed':_0x5f019c(0x184),'retrying':'MCP\x20重连中...','unknown':_0x5f019c(0x12d),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x5f019c(0x1b3),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x5f019c(0x101)},'mcpConfig':{'title':_0x5f019c(0xb5),'description':_0x5f019c(0x17d),'apiKey':_0x5f019c(0xb7),'apiKeyPlaceholder':_0x5f019c(0x148),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5f019c(0x14e),'enableAuthHint':_0x5f019c(0xae),'connectionInfo':_0x5f019c(0x170),'mcpClientConfig':_0x5f019c(0x170),'configInstructions':_0x5f019c(0x1c2),'configStepTitle':_0x5f019c(0x12a),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x5f019c(0x132),'configStep3':_0x5f019c(0x1ca),'sessionId':'会话ID','sessionIdDescription':_0x5f019c(0x1e8),'authorizationDescription':_0x5f019c(0xcb),'configParameters':_0x5f019c(0xd3),'maxRetries':_0x5f019c(0x1f2),'save':_0x5f019c(0x13b),'saving':_0x5f019c(0xb6),'note1':'配置更改将立即生效','note2':_0x5f019c(0x112),'configSaved':_0x5f019c(0x1f3),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5f019c(0x1ed),'univerAiLabel':_0x5f019c(0x1d1),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x5f019c(0x127),'invalidConfig':_0x5f019c(0x19f),'invalidApiKey':_0x5f019c(0x1b6)},'connectionStatus':{'disconnected':_0x5f019c(0xf6),'connecting':_0x5f019c(0xe0),'connected':'已连接','failed':_0x5f019c(0x1ef),'retrying':_0x5f019c(0x14b)},'connectionError':{'unauthorized':_0x5f019c(0xf0),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5f019c(0x147)}}};var fn=Object[_0x5f019c(0xd0)],hn=Object[_0x5f019c(0x174)],Cn=(_0x2e1262,_0xd2c7eb,_0x326125)=>_0xd2c7eb in _0x2e1262?fn(_0x2e1262,_0xd2c7eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x326125}):_0x2e1262[_0xd2c7eb]=_0x326125,mn=(_0x332425,_0x381954,_0x17f390,_0x7f478a)=>{for(var _0x45a72e=_0x7f478a>0x1?void 0x0:_0x7f478a?hn(_0x381954,_0x17f390):_0x381954,_0x494feb=_0x332425['length']-0x1,_0x507237;_0x494feb>=0x0;_0x494feb--)(_0x507237=_0x332425[_0x494feb])&&(_0x45a72e=_0x507237(_0x45a72e)||_0x45a72e);return _0x45a72e;},P=(_0x5e23f0,_0x14e854)=>(_0x2134e0,_0x483e95)=>_0x14e854(_0x2134e0,_0x483e95,_0x5e23f0),_n=(_0x3e20e9,_0x403ba5,_0x4e3c14)=>Cn(_0x3e20e9,_0x403ba5+'',_0x4e3c14);let j=class extends _0x286071{constructor(_0xc79697=ie,_0x2012e8,_0x58371a,_0x98ae61,_0x93620b,_0x4b30a8){const _0x79c2db=_0x5f019c;super(),this['_config']=_0xc79697,this['_injector']=_0x2012e8,this['_configService']=_0x58371a,this[_0x79c2db(0x116)]=_0x98ae61,this[_0x79c2db(0xfb)]=_0x93620b,this[_0x79c2db(0x1d5)]=_0x4b30a8;const {..._0x328217}=_0x3d6d7c({},ie,this['_config']);this[_0x79c2db(0xc4)]['setConfig'](y,_0x328217);}async['onStarting'](){const _0x4e51eb=_0x5f019c,_0x3bb12=[[O],[I],[D]];this[_0x4e51eb(0xd6)][_0x4e51eb(0xf9)](_0x985069)||_0x3bb12[_0x4e51eb(0xfc)]([_0x985069,{'useClass':_0x42b82e}]),_0x3bb12[_0x4e51eb(0xb1)](_0x1f73c7=>this[_0x4e51eb(0xd6)][_0x4e51eb(0x192)](_0x1f73c7)),this['_injector']['get'](O),this[_0x4e51eb(0xd6)][_0x4e51eb(0xf8)](I),this[_0x4e51eb(0xd6)][_0x4e51eb(0xf8)](D);}};_n(j,_0x5f019c(0xd2),_0x5f019c(0x1e5)),j=mn([_0x315164(_0x30ad4f),P(0x1,_0x4cd141(_0x18fe7e)),P(0x2,_0x33daa9),P(0x3,_0x17ef3b),P(0x4,_0x2b2756),P(0x5,_0x4cd141(_0x50797d))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x3929a6=_0x3e9c;(function(_0x5f1751,_0x1b3570){const _0x4ec982=_0x3e9c,_0x55295a=_0x5f1751();while(!![]){try{const _0x310760=parseInt(_0x4ec982(0x226))/0x1*(-parseInt(_0x4ec982(0x1ad))/0x2)+-parseInt(_0x4ec982(0x1ef))/0x3+parseInt(_0x4ec982(0x183))/0x4*(parseInt(_0x4ec982(0x1fd))/0x5)+-parseInt(_0x4ec982(0x1f1))/0x6+-parseInt(_0x4ec982(0x132))/0x7+parseInt(_0x4ec982(0x168))/0x8*(-parseInt(_0x4ec982(0x1e7))/0x9)+-parseInt(_0x4ec982(0x188))/0xa*(-parseInt(_0x4ec982(0x1aa))/0xb);if(_0x310760===_0x1b3570)break;else _0x55295a['push'](_0x55295a['shift']());}catch(_0x3581f7){_0x55295a['push'](_0x55295a['shift']());}}}(_0x3334,0xb0af6));var Pe=Object[_0x3929a6(0x178)],Ee=(_0x105ce3,_0x37db25,_0x328ea6)=>_0x37db25 in _0x105ce3?Pe(_0x105ce3,_0x37db25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x328ea6}):_0x105ce3[_0x37db25]=_0x328ea6,x=(_0x4dd97e,_0x4cb2c8,_0x83de89)=>Ee(_0x4dd97e,typeof _0x4cb2c8!=_0x3929a6(0x19f)?_0x4cb2c8+'':_0x4cb2c8,_0x83de89);import{LocaleService as _0x5d13f9,Inject as _0x901261,Injector as _0x12af15,IConfigService as _0x345048,ILocalStorageService as _0x5c6de4,ILogService as _0x2ea5ce,Disposable as _0x3785c6,CommandType as _0x399e21,ICommandService as _0x24076e,DependentOn as _0xc3765e,Plugin as _0x128301,merge as _0x447f02}from'@univerjs/core';import{jsxs as _0x2a7540,jsx as _0x57c40c}from'react/jsx-runtime';import{MCPConnectionStatus as _0x283523,MCPConnectionError as _0x53fc13,MCPConnectionController as _0x55fd70,MCP_PLUGIN_CONFIG_KEY as _0x33d426,UniverMCPPlugin as _0x1eb124}from'@univerjs-pro/mcp';import{clsx as _0x60f6b9,Input as _0x1dc3e0,Button as _0x1f2e6b,MessageType as _0x13b55a,Tooltip as _0x5ae357}from'@univerjs/design';import{useDependency as _0x1aaa63,useObservable as _0x58d2fc,IUIPartsService as _0x572d10,IDialogService as _0x4086f5,IMessageService as _0x194814,ComponentManager as _0xfa840,connectInjector as _0x28f80f,BuiltInUIPart as _0x496d0f,MenuItemType as _0x4f84c3,RibbonStartGroup as _0x3ea561,IMenuManagerService as _0x3a1212}from'@univerjs/ui';import{BehaviorSubject as _0x1845a2}from'rxjs';import{useRef as _0x40ac54,createElement as _0x7790db,forwardRef as _0x3726a1,useState as _0x203def,useCallback as _0x572686}from'react';import{ISocketService as _0x130918,WebSocketService as _0x5e9e0e}from'@univerjs/network';function b({ref:_0x57aff3,..._0xa9dcd9}){const _0x2f76b1=_0x3929a6,{icon:_0x5d86c7,id:_0x2b090f,className:_0x7fee05,extend:_0x20b7e3,..._0x1a7903}=_0xa9dcd9,_0x164aa6=(_0x2f76b1(0x1b7)+_0x2b090f+'\x20'+(_0x7fee05||''))[_0x2f76b1(0x24a)](),_0x1b6bd3=_0x40ac54('_'+We());return ae(_0x5d86c7,''+_0x2b090f,{'defIds':_0x5d86c7['defIds'],'idSuffix':_0x1b6bd3['current']},{'ref':_0x57aff3,'className':_0x164aa6,..._0x1a7903},_0x20b7e3);}function ae(_0x57914b,_0x3baaf5,_0x40b316,_0x6877a5,_0x171c91){const _0x338e57=_0x3929a6;return _0x7790db(_0x57914b[_0x338e57(0x180)],{'key':_0x3baaf5,...Ye(_0x57914b,_0x40b316,_0x171c91),..._0x6877a5},(Ze(_0x57914b,_0x40b316)[_0x338e57(0x159)]||[])[_0x338e57(0x174)]((_0x5ed5c9,_0x101188)=>ae(_0x5ed5c9,_0x3baaf5+'-'+_0x57914b[_0x338e57(0x180)]+'-'+_0x101188,_0x40b316,void 0x0,_0x171c91)));}function Ye(_0x27e10d,_0x38074e,_0x3f668e){const _0x5de4c8=_0x3929a6,_0x6cf9fc={..._0x27e10d[_0x5de4c8(0x244)]};_0x3f668e!=null&&_0x3f668e[_0x5de4c8(0x1e3)]&&_0x6cf9fc['fill']===_0x5de4c8(0x1e3)&&(_0x6cf9fc['fill']=_0x3f668e[_0x5de4c8(0x1e3)]),_0x27e10d[_0x5de4c8(0x180)]===_0x5de4c8(0x22b)&&_0x6cf9fc['id']&&(_0x6cf9fc['id']=_0x6cf9fc['id']+_0x38074e[_0x5de4c8(0x1af)]),Object['entries'](_0x6cf9fc)[_0x5de4c8(0x21b)](([_0x37874d,_0x49cf00])=>{const _0x591735=_0x5de4c8;_0x37874d===_0x591735(0x22b)&&typeof _0x49cf00==_0x591735(0x11e)&&(_0x6cf9fc[_0x37874d]=_0x49cf00['replace'](/url\(#(.*)\)/,'url(#$1'+_0x38074e[_0x591735(0x1af)]+')'));});const {defIds:_0x120c9c}=_0x38074e;return!_0x120c9c||_0x120c9c['length']===0x0||(_0x27e10d['tag']==='use'&&_0x6cf9fc['xlink:href']&&(_0x6cf9fc[_0x5de4c8(0x1bb)]=_0x6cf9fc[_0x5de4c8(0x1bb)]+_0x38074e[_0x5de4c8(0x1af)]),Object[_0x5de4c8(0x24e)](_0x6cf9fc)['forEach'](([_0x275a32,_0x1e81dd])=>{const _0x292403=_0x5de4c8;typeof _0x1e81dd==_0x292403(0x11e)&&(_0x6cf9fc[_0x275a32]=_0x1e81dd[_0x292403(0x177)](/url\(#(.*)\)/,_0x292403(0x16e)+_0x38074e[_0x292403(0x1af)]+')'));})),_0x6cf9fc;}function Ze(_0x61bd9,_0x4fcb0a){const _0x26e9c8=_0x3929a6;var _0x292f67;const {defIds:_0x1cae88}=_0x4fcb0a;return!_0x1cae88||_0x1cae88[_0x26e9c8(0x230)]===0x0?_0x61bd9:_0x61bd9[_0x26e9c8(0x180)]==='defs'&&((_0x292f67=_0x61bd9['children'])!=null&&_0x292f67[_0x26e9c8(0x230)])?{..._0x61bd9,'children':_0x61bd9[_0x26e9c8(0x159)][_0x26e9c8(0x174)](_0x30cb23=>typeof _0x30cb23[_0x26e9c8(0x244)]['id']==_0x26e9c8(0x11e)&&_0x1cae88&&_0x1cae88[_0x26e9c8(0x1de)](_0x30cb23[_0x26e9c8(0x244)]['id'])?{..._0x30cb23,'attrs':{..._0x30cb23[_0x26e9c8(0x244)],'id':_0x30cb23[_0x26e9c8(0x244)]['id']+_0x4fcb0a['idSuffix']}}:_0x30cb23)}:_0x61bd9;}function We(){const _0x3a38d6=_0x3929a6;return Math['random']()[_0x3a38d6(0x23f)](0x24)[_0x3a38d6(0x11c)](0x2,0x8);}b['displayName']=_0x3929a6(0x195);const qe={'tag':_0x3929a6(0x14d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3929a6(0x1e5),'viewBox':_0x3929a6(0x1ec),'width':_0x3929a6(0x24b),'height':_0x3929a6(0x24b)},'children':[{'tag':_0x3929a6(0x1d7),'attrs':{'fill':_0x3929a6(0x235),'d':_0x3929a6(0x1fb),'fillRule':_0x3929a6(0x1a8),'clipRule':_0x3929a6(0x1a8)}}]},le=_0x3726a1(function(_0xb7df51,_0x92c050){const _0x57b63c=_0x3929a6;return _0x7790db(b,Object[_0x57b63c(0x121)]({},_0xb7df51,{'id':'check-mark-icon','ref':_0x92c050,'icon':qe}));});le[_0x3929a6(0x1eb)]='CheckMarkIcon';const Xe={'tag':_0x3929a6(0x14d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3929a6(0x1ec),'width':_0x3929a6(0x24b),'height':_0x3929a6(0x24b)},'children':[{'tag':_0x3929a6(0x1d7),'attrs':{'fill':'currentColor','d':_0x3929a6(0x241)}}]},ue=_0x3726a1(function(_0x536823,_0x26900b){const _0x1901f0=_0x3929a6;return _0x7790db(b,Object[_0x1901f0(0x121)]({},_0x536823,{'id':'close-icon','ref':_0x26900b,'icon':Xe}));});ue['displayName']='CloseIcon';function _0x3e9c(_0x2c30f1,_0x127285){const _0x3334ce=_0x3334();return _0x3e9c=function(_0x3e9cb5,_0x3a1636){_0x3e9cb5=_0x3e9cb5-0xfa;let _0x6143f4=_0x3334ce[_0x3e9cb5];return _0x6143f4;},_0x3e9c(_0x2c30f1,_0x127285);}const Je={'tag':'svg','attrs':{'xmlns':_0x3929a6(0x14e),'fill':_0x3929a6(0x1e5),'viewBox':_0x3929a6(0x1ec),'width':_0x3929a6(0x24b),'height':'1em'},'children':[{'tag':_0x3929a6(0x1d7),'attrs':{'fill':_0x3929a6(0x235),'d':_0x3929a6(0x120)}},{'tag':_0x3929a6(0x1d7),'attrs':{'fill':_0x3929a6(0x235),'d':_0x3929a6(0x23c)}},{'tag':_0x3929a6(0x1d7),'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':'evenodd','clipRule':_0x3929a6(0x1a8)}}]},ve=_0x3726a1(function(_0x3fef21,_0x43c1a7){const _0x10ea97=_0x3929a6;return _0x7790db(b,Object[_0x10ea97(0x121)]({},_0x3fef21,{'id':_0x10ea97(0x22c),'ref':_0x43c1a7,'icon':Je}));});ve[_0x3929a6(0x1eb)]=_0x3929a6(0x17e);const Qe={'tag':_0x3929a6(0x14d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3929a6(0x1e5),'viewBox':_0x3929a6(0x1ec),'width':'1em','height':_0x3929a6(0x24b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3929a6(0x187),'strokeLinecap':_0x3929a6(0x1b9),'strokeLinejoin':_0x3929a6(0x1b9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3929a6(0x1d5),'attrs':{'id':_0x3929a6(0x1cc)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x3929a6(0x1f6)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0x3726a1(function(_0x2d091f,_0x5f57e2){const _0x517ec6=_0x3929a6;return _0x7790db(b,Object[_0x517ec6(0x121)]({},_0x2d091f,{'id':_0x517ec6(0x23b),'ref':_0x5f57e2,'icon':Qe}));});de['displayName']='OffLineIcon';const en={'tag':'svg','attrs':{'xmlns':_0x3929a6(0x14e),'fill':'none','viewBox':_0x3929a6(0x124),'width':_0x3929a6(0x24b),'height':_0x3929a6(0x24b)},'children':[{'tag':'g','attrs':{'clipPath':_0x3929a6(0x126)},'children':[{'tag':'path','attrs':{'stroke':_0x3929a6(0x235),'d':_0x3929a6(0x1a7),'strokeLinecap':_0x3929a6(0x1b9),'strokeLinejoin':_0x3929a6(0x1b9),'strokeWidth':1.2}}]},{'tag':_0x3929a6(0x16f),'attrs':{},'children':[{'tag':_0x3929a6(0x1d5),'attrs':{'id':_0x3929a6(0x1a3)},'children':[{'tag':'path','attrs':{'fill':_0x3929a6(0x224),'d':_0x3929a6(0x1f6),'transform':_0x3929a6(0x1c1)}}]}]}],'defIds':[_0x3929a6(0x1a3)]},ge=_0x3726a1(function(_0xc04063,_0x268486){const _0x2e2622=_0x3929a6;return _0x7790db(b,Object[_0x2e2622(0x121)]({},_0xc04063,{'id':'on-line-icon','ref':_0x268486,'icon':en}));});ge['displayName']=_0x3929a6(0x17f);function nn(_0x19382a){const _0x249696=_0x3929a6;var _0xfbb518,_0x5eff6a;const {mcpCoreConfig:_0x416e37,onSave:_0x17de3d,loading:_0x5b07e0=!0x1,config:_0x53a93e,connectionStatus$:_0x44eac0,connectionError$:_0x1d0bbd,currentApiKey$:_0x23e296,currentSessionId$:_0x4de4e3}=_0x19382a,_0x2656f7=_0x1aaa63(_0x5d13f9),_0x56dcfe=_0x58d2fc(_0x44eac0,_0x283523[_0x249696(0x1c9)]),_0x14ca69=_0x58d2fc(_0x1d0bbd,_0x53fc13['NONE']),_0x2aad01=_0x58d2fc(_0x4de4e3,''),_0x24a3e4=_0x58d2fc(_0x23e296,''),[_0x168383,_0x657952]=_0x203def(_0x24a3e4||''),_0xcb0d14=!0x0,_0x387f7c=_0x53a93e[_0x249696(0x1fc)]&&_0x416e37[_0x249696(0x197)]&&(_0x416e37[_0x249696(0x197)][_0x249696(0x1de)](_0x249696(0x228))||_0x416e37[_0x249696(0x197)][_0x249696(0x1de)](_0x249696(0x107))),_0x14d9ff=(_0xfbb518=_0x416e37[_0x249696(0x197)])==null?void 0x0:_0xfbb518[_0x249696(0x1de)](_0x249696(0x228)),_0x1d0449=(_0x5eff6a=_0x416e37[_0x249696(0x197)])==null?void 0x0:_0x5eff6a[_0x249696(0x1de)](_0x249696(0x107)),_0xcf40f6=_0x14d9ff?_0x249696(0x19e):_0x249696(0x234),_0x2995fc=_0x53a93e[_0x249696(0x1fc)]&&(_0x14d9ff||_0x1d0449),[_0x2f2e90,_0x7ee74e]=_0x203def(!_0x168383[_0x249696(0x24a)]()),_0x28ee5a=(_0x5aeb22,_0x1217fa)=>{const _0xa77f5c=_0x249696;if(_0x1217fa===_0x53fc13[_0xa77f5c(0x211)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5aeb22){case _0x283523[_0xa77f5c(0x151)]:return _0xa77f5c(0x154);case _0x283523['CONNECTING']:case _0x283523[_0xa77f5c(0x18b)]:return _0xa77f5c(0x1df);case _0x283523[_0xa77f5c(0x236)]:return _0xa77f5c(0x1c4);default:return _0xa77f5c(0x1a9);}},_0x3b3dab=(_0x5e91d1,_0x36a76a)=>{const _0x323de5=_0x249696;if(_0x36a76a===_0x53fc13[_0x323de5(0x211)])return'univer-bg-red-500';switch(_0x5e91d1){case _0x283523[_0x323de5(0x151)]:return _0x323de5(0x105);case _0x283523[_0x323de5(0x18c)]:case _0x283523[_0x323de5(0x18b)]:return _0x323de5(0x150);case _0x283523[_0x323de5(0x236)]:return _0x323de5(0x167);default:return _0x323de5(0x1ac);}},_0xa50e7f=_0x5e9ef1=>{const _0x39970b=_0x249696;switch(_0x5e9ef1){case _0x283523[_0x39970b(0x151)]:return _0x2656f7['t'](_0x39970b(0x109));case _0x283523[_0x39970b(0x18c)]:return _0x2656f7['t'](_0x39970b(0x1ca));case _0x283523[_0x39970b(0x236)]:return _0x2656f7['t'](_0x39970b(0x1bd));case _0x283523[_0x39970b(0x18b)]:return _0x2656f7['t'](_0x39970b(0x13c));default:return _0x2656f7['t'](_0x39970b(0x1bc));}},_0x4bec27=_0xf72fac=>{const _0x3c27fe=_0x249696;switch(_0xf72fac){case _0x53fc13[_0x3c27fe(0x211)]:return _0x2656f7['t']('mcpConfig.connectionError.unauthorized');case _0x53fc13[_0x3c27fe(0x1e2)]:return _0x2656f7['t'](_0x3c27fe(0x181));case _0x53fc13['NETWORK_ERROR']:return _0x2656f7['t']('mcpConfig.connectionError.networkError');case _0x53fc13['MAX_RETRIES_EXCEEDED']:return _0x2656f7['t'](_0x3c27fe(0x10e));default:return'';}},_0x4b01ce=_0x572686(()=>{const _0x5ab5fb=_0x249696,_0x37a21f={..._0x416e37,'apiKey':_0x168383[_0x5ab5fb(0x24a)](),'enableAuth':_0xcb0d14};_0x17de3d(_0x37a21f);},[_0x416e37,_0x168383,_0xcb0d14,_0x17de3d]),_0x45304d=_0x168383[_0x249696(0x24a)]()[_0x249696(0x230)]>0x0;return _0x2a7540(_0x249696(0x1cb),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x57c40c(_0x249696(0x1cb),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x1f8),'children':[_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x13f),'children':_0x57c40c(_0x249696(0x11d),{'className':_0x249696(0x147),'children':'⚙'})}),_0x57c40c(_0x249696(0x1cb),{'children':_0x57c40c('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x2656f7['t'](_0x249696(0x179))})})]})}),_0x2a7540(_0x249696(0x1cb),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x57c40c('div',{'className':_0x60f6b9(_0x249696(0x12c),_0x28ee5a(_0x56dcfe,_0x14ca69)),'children':_0x2a7540(_0x249696(0x1cb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x57c40c('div',{'className':_0x60f6b9('univer-size-2\x20univer-rounded-full',_0x3b3dab(_0x56dcfe,_0x14ca69))}),_0x57c40c(_0x249696(0x11d),{'className':_0x249696(0x221),'children':_0xa50e7f(_0x56dcfe)})]})}),_0x14ca69!==_0x53fc13[_0x249696(0x209)]&&(_0x56dcfe===_0x283523['FAILED']||_0x14ca69===_0x53fc13[_0x249696(0x211)])&&_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x146),'children':_0x2a7540(_0x249696(0x1cb),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x57c40c(_0x249696(0x11d),{'className':_0x249696(0x149),'children':'⚠️'}),_0x57c40c('p',{'className':_0x249696(0x134),'children':_0x4bec27(_0x14ca69)})]})})]}),_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x16d),'children':_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x20a),'children':[_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x1fa),'children':[_0x2a7540('label',{'className':_0x249696(0x1a6),'children':[_0x57c40c(_0x249696(0x11d),{'children':'🔑'}),'\x20',_0x2656f7['t']('mcpConfig.apiKey'),_0x57c40c('span',{'className':'univer-text-red-500','children':'*'}),_0x387f7c&&_0x57c40c('a',{'className':_0x249696(0x156),'title':_0x2656f7['t'](_0x249696(0x173)),'role':_0x249696(0x1c8),'onClick':()=>_0x7ee74e(!0x0),'children':_0x57c40c(ve,{})})]}),_0x57c40c(_0x1dc3e0,{'type':_0x249696(0x218),'placeholder':_0x2656f7['t'](_0x249696(0x102)),'value':_0x168383,'disabled':_0x5b07e0,'autoComplete':_0x249696(0x10f),'onChange':_0x657952}),_0x57c40c('p',{'className':_0x249696(0x1e8),'children':_0x2656f7['t'](_0x249696(0x15b))})]}),_0x387f7c&&_0x2f2e90&&_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0xfa),'children':[_0x57c40c('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':'button','onClick':()=>_0x7ee74e(!0x1),'children':_0x57c40c(ue,{'className':_0x249696(0x1cf)})}),_0x2a7540(_0x249696(0x1cb),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x57c40c('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x57c40c('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x196),'children':[_0x57c40c('h4',{'className':_0x249696(0x20b),'children':_0x2656f7['t'](_0x249696(0x173))}),_0x57c40c('p',{'className':_0x249696(0x13a),'children':_0x2656f7['t'](_0x249696(0x23d))}),_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x161),'children':_0x2995fc&&_0x2a7540('a',{'className':_0x249696(0x1d6),'href':_0xcf40f6,'target':_0x249696(0x128),'rel':_0x249696(0x1f5),'children':[_0x57c40c('span',{'children':'🤖'}),_0x2656f7['t'](_0x249696(0x216)),_0x57c40c(_0x249696(0x11d),{'className':_0x249696(0x1be),'children':'↗'})]})}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x22f),'children':['✨','\x20',_0x2656f7['t'](_0x249696(0x1a0))]})]})]})]}),_0x53a93e[_0x249696(0x1fc)]&&_0x2a7540('div',{'className':_0x249696(0x14f),'children':[_0x2a7540('h4',{'className':_0x249696(0x123),'children':[_0x57c40c(_0x249696(0x11d),{'children':'🔗'}),'\x20',_0x2656f7['t'](_0x249696(0x112))]}),_0x2a7540('div',{'className':'univer-space-y-4','children':[_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x148),'children':[_0x57c40c('p',{'className':_0x249696(0x243),'children':_0x2656f7['t'](_0x249696(0x246))}),_0x2a7540('div',{'className':_0x249696(0x1fa),'children':[_0x57c40c(_0x249696(0x1cb),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2656f7['t'](_0x249696(0x24d))}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x15d),'children':[_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x122),'children':[_0x57c40c(_0x249696(0x11d),{'className':_0x249696(0x110),'children':'1'}),_0x2656f7['t'](_0x249696(0x242))]}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x122),'children':[_0x57c40c('span',{'className':_0x249696(0x110),'children':'2'}),_0x2656f7['t']('mcpConfig.configStep2')]}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x122),'children':[_0x57c40c(_0x249696(0x11d),{'className':_0x249696(0x110),'children':'3'}),_0x2656f7['t']('mcpConfig.configStep3')]})]})]})]}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x1fa),'children':[_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x23e),'children':'MCP\x20Configuration'}),_0x57c40c(_0x249696(0x1cb),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x57c40c(_0x249696(0x1f0),{'className':_0x249696(0x1d9),'children':JSON[_0x249696(0x1cd)]({'mcpServers':{'univer':{'url':_0x249696(0x116)+(_0x2aad01||_0x249696(0x198)),'type':_0x249696(0x1f7),'headers':{'Authorization':_0x249696(0x130)+(_0x168383||_0x249696(0x1c6))}}}},null,0x2)})})]}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x148),'children':[_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x23e),'children':_0x2656f7['t']('mcpConfig.configParameters')}),_0x2a7540('div',{'className':'univer-space-y-2','children':[_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x101),'children':[_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x20f)}),_0x2a7540(_0x249696(0x1cb),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x225),'children':_0x249696(0x14a)}),_0x57c40c(_0x249696(0x1cb),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2656f7['t'](_0x249696(0x1ba))})]})]}),_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x101),'children':[_0x57c40c('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2a7540('div',{'className':_0x249696(0x213),'children':[_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x225),'children':'Authorization:'}),_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0x1e8),'children':_0x2656f7['t'](_0x249696(0x133))})]})]})]})]})]})]}),_0x57c40c(_0x1f2e6b,{'onClick':_0x4b01ce,'disabled':!_0x45304d||_0x5b07e0,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x5b07e0?_0x2a7540(_0x249696(0x11d),{'className':_0x249696(0x122),'children':[_0x57c40c(_0x249696(0x11d),{'children':'⟲'}),_0x2656f7['t'](_0x249696(0x138))]}):_0x2a7540(_0x249696(0x11d),{'className':_0x249696(0x122),'children':[_0x57c40c(le,{}),_0x2656f7['t'](_0x249696(0x1e4))]})}),_0x57c40c(_0x249696(0x1cb),{'className':_0x249696(0xfe),'children':_0x2a7540(_0x249696(0x1cb),{'className':_0x249696(0x17a),'children':[_0x57c40c('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2a7540('div',{'className':_0x249696(0x18a),'children':[_0x57c40c(_0x249696(0x1cb),{'className':'univer-font-medium','children':_0x249696(0x1d4)}),_0x2a7540(_0x249696(0x1cb),{'children':['•',_0x2656f7['t'](_0x249696(0x1f4))]}),_0x2a7540(_0x249696(0x1cb),{'children':['•',_0x2656f7['t'](_0x249696(0x139))]})]})]})})]})})]});}const y=_0x3929a6(0x1ee),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0xbff00e,_0x3ce500,_0x25aa86,_0x2ff7b5)=>{const _0x46fea1=_0x3929a6;for(var _0x1058b1=_0x2ff7b5>0x1?void 0x0:_0x2ff7b5?rn(_0x3ce500,_0x25aa86):_0x3ce500,_0x21db5c=_0xbff00e[_0x46fea1(0x230)]-0x1,_0x18e4c5;_0x21db5c>=0x0;_0x21db5c--)(_0x18e4c5=_0xbff00e[_0x21db5c])&&(_0x1058b1=_0x18e4c5(_0x1058b1)||_0x1058b1);return _0x1058b1;},d=(_0x2cc866,_0x20e8ba)=>(_0xa2c409,_0x456b0a)=>_0x20e8ba(_0xa2c409,_0x456b0a,_0x2cc866);const U=_0x3929a6(0x247),L=_0x3929a6(0x17d);let I=class extends _0x3785c6{constructor(_0x2ff8e9,_0xa6d371,_0x224868,_0x529b9a,_0x2bc171,_0x2905d4,_0x932bdf,_0x33a3a6,_0x2411fd,_0x473c90){const _0x334cfc=_0x3929a6;super(),x(this,'_loading$',new _0x1845a2(!0x1)),x(this,'_mcpCoreConfig$',new _0x1845a2({})),x(this,_0x334cfc(0x19a),new _0x1845a2({})),x(this,_0x334cfc(0x20c),new _0x1845a2('')),x(this,_0x334cfc(0x144),async _0x28938f=>{const _0x4a5abe=_0x334cfc;var _0x2feaeb,_0xf7ffa9;this[_0x4a5abe(0x19c)][_0x4a5abe(0x210)](!0x0);try{const _0x4ece5f=await this[_0x4a5abe(0x1d1)](_0x28938f);if(!_0x4ece5f[_0x4a5abe(0x1ae)]){this[_0x4a5abe(0x111)][_0x4a5abe(0x1b6)]({'type':_0x13b55a['Error'],'content':_0x4ece5f['errorMessage']||this[_0x4a5abe(0x114)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x28938f[_0x4a5abe(0x1b5)]?await this[_0x4a5abe(0x143)]['setItem'](U,_0x28938f[_0x4a5abe(0x1b5)][_0x4a5abe(0x24a)]()):await this['_localStorageService'][_0x4a5abe(0x10d)](U),this[_0x4a5abe(0x20c)][_0x4a5abe(0x210)](((_0x2feaeb=_0x28938f[_0x4a5abe(0x1b5)])==null?void 0x0:_0x2feaeb[_0x4a5abe(0x24a)]())||''),this[_0x4a5abe(0x1b3)]['__setCustomHeaders']({'Authorization':_0x4a5abe(0x130)+((_0xf7ffa9=_0x28938f['apiKey'])==null?void 0x0:_0xf7ffa9[_0x4a5abe(0x24a)]())}),this[_0x4a5abe(0x111)][_0x4a5abe(0x1b6)]({'type':_0x13b55a['Success'],'content':this[_0x4a5abe(0x114)]['t'](_0x4a5abe(0x1e0))}),setTimeout(()=>{const _0x2b7c80=_0x4a5abe;this[_0x2b7c80(0x21a)][_0x2b7c80(0x12f)](L);},0x320);}catch(_0x1278be){this[_0x4a5abe(0x231)][_0x4a5abe(0x18e)](_0x4a5abe(0x189),_0x1278be),this['_messageService'][_0x4a5abe(0x1b6)]({'type':_0x13b55a[_0x4a5abe(0x15a)],'content':this['_localeService']['t'](_0x4a5abe(0x1a4))});}finally{this[_0x4a5abe(0x19c)]['next'](!0x1);}}),(this[_0x334cfc(0xfc)]=_0x2ff8e9,this['_uiPartsService']=_0xa6d371,this[_0x334cfc(0x1c0)]=_0x224868,this[_0x334cfc(0x143)]=_0x529b9a,this['_dialogService']=_0x2bc171,this[_0x334cfc(0x111)]=_0x2905d4,this[_0x334cfc(0x191)]=_0x932bdf,this[_0x334cfc(0x114)]=_0x33a3a6,this[_0x334cfc(0x231)]=_0x2411fd,this[_0x334cfc(0x1b3)]=_0x473c90,this[_0x334cfc(0x205)](),this['_loadStoredApiKey'](),this[_0x334cfc(0x13b)]());}[_0x3929a6(0x164)](){const _0x1224ad=_0x3929a6,_0x584298=this[_0x1224ad(0x1c0)][_0x1224ad(0x172)](y);_0x584298!=null&&_0x584298[_0x1224ad(0x1fc)]&&this[_0x1224ad(0x21a)]['open']({'id':L,'title':{'title':this['_localeService']['t'](_0x1224ad(0x106))},'children':{'label':_0x1224ad(0x1c5)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5bf5af=_0x1224ad;this[_0x5bf5af(0x21a)][_0x5bf5af(0x12f)](L);}});}[_0x3929a6(0x1ea)](){const _0x29152c=_0x3929a6;return this[_0x29152c(0x131)][_0x29152c(0x238)];}[_0x3929a6(0x13b)](){const _0x90c419=_0x3929a6;this[_0x90c419(0x1dc)](this[_0x90c419(0x191)][_0x90c419(0x21d)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x3929a6(0x1b8)](){const _0x3192df=_0x3929a6;return _0x28f80f(()=>{const _0x159e7a=_0x3e9c;var _0x3db73d,_0x1c6b07,_0xe36aa9;return _0x57c40c(nn,{'config':this['_config$'][_0x159e7a(0x238)],'mcpCoreConfig':this[_0x159e7a(0x131)][_0x159e7a(0x238)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x159e7a(0x19c)]['value'],'connectionStatus$':(_0x3db73d=this['_mcpConnectionController'])==null?void 0x0:_0x3db73d[_0x159e7a(0x1f3)],'connectionError$':(_0x1c6b07=this[_0x159e7a(0x1b3)])==null?void 0x0:_0x1c6b07[_0x159e7a(0x227)],'currentSessionId$':(_0xe36aa9=this[_0x159e7a(0x1b3)])==null?void 0x0:_0xe36aa9['sessionId$']});},this[_0x3192df(0xfc)]);}[_0x3929a6(0x205)](){const _0x5b7194=_0x3929a6;this[_0x5b7194(0x1dc)](this[_0x5b7194(0x1c0)][_0x5b7194(0x16c)](_0x33d426)[_0x5b7194(0x119)](_0x1d697b=>{const _0x44c480=_0x5b7194;this[_0x44c480(0x131)]['next'](_0x1d697b||{});}));const _0x1f6d61=this['_configService'][_0x5b7194(0x172)](_0x33d426);this[_0x5b7194(0x131)][_0x5b7194(0x210)](_0x1f6d61||{}),this['disposeWithMe'](this[_0x5b7194(0x1c0)][_0x5b7194(0x16c)](y)['subscribe'](_0x6d1561=>{const _0x3f99b9=_0x5b7194;this[_0x3f99b9(0x19a)][_0x3f99b9(0x210)](_0x6d1561||{});}));const _0x495399=this[_0x5b7194(0x1c0)][_0x5b7194(0x172)](y);this[_0x5b7194(0x19a)][_0x5b7194(0x210)](_0x495399||{});}async[_0x3929a6(0x160)](){const _0x29511c=_0x3929a6,_0x5d3fba=this[_0x29511c(0x1c0)]['getConfig'](y);if(!(_0x5d3fba!=null&&_0x5d3fba[_0x29511c(0x1fc)]))return;const _0x6b4fa9=await this['_localStorageService'][_0x29511c(0x125)](U);_0x6b4fa9&&(this['_mcpConnectionController'][_0x29511c(0x245)]({'Authorization':_0x29511c(0x130)+_0x6b4fa9}),this[_0x29511c(0x20c)][_0x29511c(0x210)](_0x6b4fa9));}async[_0x3929a6(0x1d1)](_0xeac384){const _0x52b272=_0x3929a6;if(!_0xeac384[_0x52b272(0x1b5)]||_0xeac384['apiKey'][_0x52b272(0x24a)]()[_0x52b272(0x230)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x52b272(0x114)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0xeac384[_0x52b272(0x1b5)][_0x52b272(0x24a)]()[_0x52b272(0x230)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x52b272(0x114)]['t'](_0x52b272(0x21e))};try{const _0x4ee893=await this[_0x52b272(0xfc)]['get'](_0x55fd70)[_0x52b272(0x10c)](_0xeac384[_0x52b272(0x1b5)][_0x52b272(0x24a)]());return _0x4ee893['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4ee893[_0x52b272(0x18e)]||this[_0x52b272(0x114)]['t'](_0x52b272(0x219))};}catch(_0x6b2745){return console[_0x52b272(0x142)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x6b2745),{'isValid':!0x0};}}};I=tn([d(0x0,_0x901261(_0x12af15)),d(0x1,_0x572d10),d(0x2,_0x345048),d(0x3,_0x5c6de4),d(0x4,_0x4086f5),d(0x5,_0x194814),d(0x6,_0x901261(_0xfa840)),d(0x7,_0x901261(_0x5d13f9)),d(0x8,_0x2ea5ce),d(0x9,_0x901261(_0x55fd70))],I);const V={'id':_0x3929a6(0x17b),'type':_0x399e21[_0x3929a6(0x190)],'handler':async(_0x18d92b,_0x15b451)=>(_0x18d92b[_0x3929a6(0x1b2)](I)[_0x3929a6(0x164)](),!0x0)};function pe(_0x23bacb,_0x298288){const _0x4d4a93=_0x3929a6;switch(_0x23bacb){case _0x283523[_0x4d4a93(0x1c9)]:return _0x4d4a93(0x15c);case _0x283523['CONNECTING']:return _0x4d4a93(0x249);case _0x283523['CONNECTED']:return _0x4d4a93(0x21f);case _0x283523['FAILED']:switch(_0x298288){case _0x53fc13[_0x4d4a93(0x211)]:return _0x4d4a93(0x15e);case _0x53fc13[_0x4d4a93(0x1e2)]:return _0x4d4a93(0x217);case _0x53fc13[_0x4d4a93(0x1ff)]:return _0x4d4a93(0x220);case _0x53fc13[_0x4d4a93(0x1f9)]:return _0x4d4a93(0x115);default:return'mcpStatus.failed';}case _0x283523['RETRYING']:return _0x4d4a93(0x1a2);default:return _0x4d4a93(0x19d);}}function on(_0xedb808,_0xd93b76,_0x150082,_0x777b65=!0x0){const _0xf26100=_0x3929a6,_0xa24f18=pe(_0xedb808,_0xd93b76),_0x1e3a31=_0x150082['t'](_0xa24f18);return _0x777b65?_0xedb808===_0x283523[_0xf26100(0x1c9)]&&_0xd93b76===_0x53fc13[_0xf26100(0x211)]?_0x1e3a31+'\x20-\x20'+_0x150082['t'](_0xf26100(0x16b)):_0xedb808===_0x283523[_0xf26100(0x151)]?''+_0x1e3a31:_0xedb808===_0x283523[_0xf26100(0x1c9)]||_0xedb808===_0x283523[_0xf26100(0x236)]?_0x1e3a31+'\x20-\x20'+_0x150082['t'](_0xf26100(0x12a)):_0x1e3a31:_0x1e3a31;}function sn(_0x1337e9){const _0x20fdf9=_0x3929a6;switch(_0x1337e9){case _0x283523[_0x20fdf9(0x151)]:return _0x20fdf9(0x171);case _0x283523['CONNECTING']:case _0x283523[_0x20fdf9(0x18b)]:return _0x20fdf9(0x100);case _0x283523[_0x20fdf9(0x236)]:case _0x283523['DISCONNECTED']:return _0x20fdf9(0xff);default:return _0x20fdf9(0x158);}}function cn(_0x2e0885){const _0x53d3bf=_0x3929a6,{status$:_0x5860bc,error$:_0x1457f2,onConfigure:_0x1422fc,showClickable:_0x48622b=!0x0}=_0x2e0885,_0x2141ab=_0x58d2fc(_0x5860bc,_0x283523[_0x53d3bf(0x1c9)]),_0x3f4895=_0x58d2fc(_0x1457f2,_0x53fc13[_0x53d3bf(0x209)]),_0x380493=_0x1aaa63(_0x5d13f9),_0x492b2f=_0x2141ab===_0x283523[_0x53d3bf(0x151)];_0x2141ab===_0x283523[_0x53d3bf(0x18c)]||_0x283523[_0x53d3bf(0x18b)];const _0x28d1af=_0x380493['t'](pe(_0x2141ab,_0x3f4895)),_0xb65d8a=on(_0x2141ab,_0x3f4895,_0x380493,_0x48622b),_0x197648=sn(_0x2141ab),_0xb9e0f0=_0x492b2f?_0x57c40c(ge,{}):_0x57c40c(de,{}),_0x5f5a4b=_0x572686(()=>{_0x48622b&&_0x1422fc&&_0x1422fc();},[_0x48622b,_0x1422fc]);function _0x32192(){const _0x4a61e0=_0x53d3bf;return _0x2a7540(_0x4a61e0(0x1cb),{'className':_0x60f6b9(_0x4a61e0(0x203),_0x48622b&&_0x1422fc&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x4a61e0(0x1c8),'onClick':_0x48622b&&_0x1422fc?_0x5f5a4b:void 0x0,'children':[_0x57c40c(_0x4a61e0(0x1cb),{'className':_0x60f6b9(_0x4a61e0(0x103),_0x197648),'children':_0xb9e0f0}),_0x57c40c(_0x4a61e0(0x1cb),{'className':_0x4a61e0(0x1ce),'children':_0x28d1af})]});}return _0x57c40c(_0x5ae357,{'title':_0xb65d8a,'placement':_0x53d3bf(0x1e1),'children':_0x32192()});}var an=Object[_0x3929a6(0xfd)],ln=(_0x446bdd,_0x40a041,_0x2f598b,_0x5b3459)=>{const _0x45116e=_0x3929a6;for(var _0x87752=_0x5b3459>0x1?void 0x0:_0x5b3459?an(_0x40a041,_0x2f598b):_0x40a041,_0x2fa174=_0x446bdd[_0x45116e(0x230)]-0x1,_0x2a38e1;_0x2fa174>=0x0;_0x2fa174--)(_0x2a38e1=_0x446bdd[_0x2fa174])&&(_0x87752=_0x2a38e1(_0x87752)||_0x87752);return _0x87752;},M=(_0x8384c7,_0x26da17)=>(_0x266cd3,_0x4fb80f)=>_0x26da17(_0x266cd3,_0x4fb80f,_0x8384c7);let O=class extends _0x3785c6{constructor(_0x1e4940,_0x3174b9,_0xd718b4,_0x4caa47){const _0x523a11=_0x3929a6;super(),this[_0x523a11(0xfc)]=_0x1e4940,this[_0x523a11(0x207)]=_0x3174b9,this[_0x523a11(0x22d)]=_0xd718b4,this['_configService']=_0x4caa47,this[_0x523a11(0x248)](),this[_0x523a11(0x12e)]();}[_0x3929a6(0x248)](){const _0xfcc4ee=_0x3929a6,_0x1bf2be=this[_0xfcc4ee(0x1c0)]['getConfig'](y);_0x1bf2be!=null&&_0x1bf2be[_0xfcc4ee(0x1fc)]&&(this[_0xfcc4ee(0x207)][_0xfcc4ee(0x206)]=!0x1);}[_0x3929a6(0x12e)](){const _0x2ba18d=_0x3929a6,_0x2388b6=this[_0x2ba18d(0x1c0)][_0x2ba18d(0x172)](y);(_0x2388b6==null?void 0x0:_0x2388b6[_0x2ba18d(0x1d0)])!==!0x1&&this[_0x2ba18d(0x1dc)](this[_0x2ba18d(0x22d)][_0x2ba18d(0x10a)](_0x496d0f[_0x2ba18d(0x1db)],()=>{const _0xa2ffb9=_0x2ba18d;var _0x4e0fbb;return _0x28f80f(un({'status$':this['_connectionController'][_0xa2ffb9(0x1f3)],'error$':this['_connectionController'][_0xa2ffb9(0x227)],'onConfigure':()=>this[_0xa2ffb9(0x12d)](),'showClickable':(_0x4e0fbb=_0x2388b6==null?void 0x0:_0x2388b6['showDeveloperTools'])!=null?_0x4e0fbb:!0x1}),this['_injector']);}));}[_0x3929a6(0x12d)](){const _0x5042f6=_0x3929a6;this[_0x5042f6(0xfc)][_0x5042f6(0x1b2)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x901261(_0x12af15)),M(0x1,_0x901261(_0x55fd70)),M(0x2,_0x572d10),M(0x3,_0x345048)],O);function un(_0x3fc649){const {status$:_0xca3ff2,error$:_0x35b0d,onConfigure:_0x187cbf,showClickable:_0x66f9ee}=_0x3fc649;return function(){return _0x57c40c(cn,{'status$':_0xca3ff2,'error$':_0x35b0d,'onConfigure':_0x187cbf,'showClickable':_0x66f9ee});};}function vn(_0x21440e){const _0x3aa7bd=_0x3929a6;return{'id':V['id'],'type':_0x4f84c3[_0x3aa7bd(0x202)],'icon':_0x3aa7bd(0x201),'title':_0x3aa7bd(0x106),'tooltip':_0x3aa7bd(0x106)};}function _0x3334(){const _0x13cf54=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-gray-500','children','Error','mcpConfig.apiKeyHint','mcpStatus.disconnected','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.unauthorized','MCP\x20连接中...','_loadStoredApiKey','univer-flex\x20univer-flex-wrap\x20univer-gap-2','请输入您的\x20API\x20密钥','Retrying...','showConfigPanel','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','univer-bg-red-500','3284912OrBtgV','MCP\x20重连中...','重连中...','mcpStatus.clickToConfigure','subscribeConfigValue$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','url(#$1','defs','Session\x20ID','univer-text-green-500','getConfig','mcpConfig.apiApplyInfo.title','map','配置保存成功','MCP:\x20网络错误','replace','defineProperty','mcpConfig.description','univer-flex\x20univer-gap-3','mcp-ui.command.openConfigPanel','mergeMenu','mcp-config-dialog','HelpIcon','OnLineIcon','tag','mcpConfig.connectionError.sessionOccupied','配置步骤:','28KTCUxd','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','10PMySOw','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','RETRYING','CONNECTING','MCP:\x20Max\x20Retries\x20Exceeded','error','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','COMMAND','_componentManager','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','配置参数:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UniverIcon','univer-flex-1','mcpServerUrl','<SESSION_ID>','配置更改将立即生效','_config$','重启您的\x20MCP\x20客户端以使配置生效','_loading$','mcpStatus.unknown','https://console.univer.plus','symbol','mcpConfig.apiApplyInfo.getStarted','Failed\x20to\x20save\x20configuration','mcpStatus.retrying','on-line-icon_clip0_910_349','mcpConfig.configError','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','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','evenodd','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','58313783qOpyAV','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-bg-gray-500','30HONYuw','isValid','idSuffix','您的\x20API\x20密钥安全存储在本地存储中','_initializeCommands','get','_mcpConnectionController','未连接','apiKey','show','univerjs-icon\x20univerjs-icon-','_createConfigPanelComponent','round','mcpConfig.sessionIdDescription','xlink:href','mcpConfig.connectionStatus.disconnected','mcpConfig.connectionStatus.failed','univer-text-gray-400','has','_configService','translate(.97)','MCP\x20Connection\x20Failed','OTHERS','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCPConfigPanel','<API_KEY>','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','button','DISCONNECTED','mcpConfig.connectionStatus.connecting','div','off-line-icon_clip0_910_343','stringify','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-size-4','showStatus','_validateConfig','会话\x20ID\x20已被占用,请稍后再试','MCP\x20状态未知','Configuration\x20Notes:','clipPath','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','path','MCP:\x20Unauthorized','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Save\x20Configuration','HEADER_MENU','disposeWithMe','什么是\x20API\x20密钥?','includes','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.configSaved','bottom','SESSION_ID_OCCUPIED','colorChannel1','mcpConfig.save','none','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9iDxHEM','univer-text-xs\x20univer-text-gray-500','启用身份验证','getCurrentConfig','displayName','0\x200\x2016\x2016','Configuration\x20Steps:','mcp-ui.config','4199853VOpzva','pre','4967736ddyTCW','MCP\x20已断开','connectionStatus$','mcpConfig.note1','noopener\x20noreferrer','M0\x200H16V16H0z','http','univer-flex\x20univer-items-center\x20univer-gap-3','MAX_RETRIES_EXCEEDED','univer-space-y-2','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','showDeveloperTools','214255lbzTNi','_menuManagerService','NETWORK_ERROR','setConfig','MenuIcon','BUTTON','univer-flex\x20univer-items-center','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_initConfigSync','enableAutoConnect','_connectionController','保存配置','NONE','univer-space-y-5','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_apiKey$','点击连接\x20MCP','Enter\x20your\x20API\x20key','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','next','UNAUTHORIZED','Copy\x20the\x20JSON\x20configuration\x20below','univer-min-w-0\x20univer-flex-1','将以下配置添加到您的\x20MCP\x20客户端设置中:','What\x20is\x20API\x20Key?','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.sessionOccupied','text','mcpConfig.validation.invalidApiKey','_dialogService','forEach','保存中...','register','mcpConfig.validation.apiKeyTooShort','mcpStatus.connected','mcpStatus.networkError','univer-text-sm\x20univer-font-medium','Disconnected','_initializeMenus','white','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','70353yTaITk','connectionError$','univer.plus','MCP\x20Connecting...','MCP\x20Disconnected','mask','help-icon','_uiPartsService','add','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','length','_logService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','权限验证失败,请检查您的\x20API\x20密钥','https://console.univer.ai','currentColor','FAILED','配置保存失败','value','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','off-line-icon','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','mcpConfig.apiApplyInfo.description','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','toString','MCP\x20配置','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','mcpConfig.configStep1','univer-text-xs\x20univer-text-gray-600','attrs','__setCustomHeaders','mcpConfig.configInstructions','mcp.apiKey','_initAutoConnect','mcpStatus.connecting','trim','1em','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.configStepTitle','entries','Connected','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','MCP\x20Unknown\x20Status','_injector','getOwnPropertyDescriptor','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-red-500','univer-text-yellow-500','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.apiKeyPlaceholder','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Network\x20Error','univer-bg-green-500','mcpConfig.title','univer.ai','MCP\x20客户端配置','mcpConfig.connectionStatus.connected','registerComponent','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','validateApiKey','removeItem','mcpConfig.connectionError.maxRetriesExceeded','off','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','_messageService','mcpConfig.connectionInfo','_config','_localeService','mcpStatus.maxRetriesExceeded','https://mcp.univer.ai/mcp/?univer_session_id=','MCP:\x20会话\x20ID\x20已被占用','连接失败','subscribe','API\x20密钥不能为空','Enable\x20Authentication','substring','span','string','最大重试次数','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','assign','univer-flex\x20univer-items-center\x20univer-gap-2','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','0\x200\x2017\x2016','getItem','url(#on-line-icon_clip0_910_349)','已连接','_blank','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.clickToConnect','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_handleConfigure','_initStatusComponent','close','Bearer\x20','_mcpCoreConfig$','8285844aSZnLv','mcpConfig.authorizationDescription','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','pluginName','几秒钟内获取您的\x20API\x20密钥','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.saving','mcpConfig.note2','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_registerComponent','mcpConfig.connectionStatus.retrying','API\x20密钥','Invalid\x20configuration','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20连接失败','MCP:\x20未授权','warn','_localStorageService','_handleConfigSave','连接中...','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-text-white','univer-space-y-3','univer-shrink-0\x20univer-text-red-500','univer_session_id:','您的\x20API\x20密钥将在此浏览器中本地存储','_commandService','svg','http://www.w3.org/2000/svg','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-bg-blue-500','CONNECTED','MCP\x20已连接','MCP\x20Connected','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP:\x20超出最大重试次数','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'];_0x3334=function(){return _0x13cf54;};return _0x3334();}const dn={[_0x3ea561[_0x3929a6(0x1c3)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3929a6(0xfd)],pn=(_0x991035,_0x417b4c,_0x1384e6,_0x2e6b82)=>{for(var _0x42b131=_0x2e6b82>0x1?void 0x0:_0x2e6b82?gn(_0x417b4c,_0x1384e6):_0x417b4c,_0x1f8087=_0x991035['length']-0x1,_0x4ad669;_0x1f8087>=0x0;_0x1f8087--)(_0x4ad669=_0x991035[_0x1f8087])&&(_0x42b131=_0x4ad669(_0x42b131)||_0x42b131);return _0x42b131;},re=(_0xecd7c4,_0xee4d0a)=>(_0x5a0531,_0x2fc72f)=>_0xee4d0a(_0x5a0531,_0x2fc72f,_0xecd7c4);let D=class extends _0x3785c6{constructor(_0x1b3422,_0x17a305){const _0x4bd06f=_0x3929a6;super(),this[_0x4bd06f(0x14c)]=_0x1b3422,this['_menuManagerService']=_0x17a305,this[_0x4bd06f(0x1b1)](),this[_0x4bd06f(0x223)]();}[_0x3929a6(0x1b1)](){const _0x5373b9=_0x3929a6;[V][_0x5373b9(0x21b)](_0x4aaaaa=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x4aaaaa));});}['_initializeMenus'](){const _0x4dc3d7=_0x3929a6;this[_0x4dc3d7(0x1fe)][_0x4dc3d7(0x17c)](dn);}};D=pn([re(0x0,_0x24076e),re(0x1,_0x3a1212)],D);const Mn={'mcpStatus':{'disconnected':_0x3929a6(0x22a),'connecting':_0x3929a6(0x229),'connected':_0x3929a6(0x153),'failed':_0x3929a6(0x1c2),'retrying':'MCP\x20Retrying...','unknown':_0x3929a6(0xfb),'unauthorized':_0x3929a6(0x1d8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3929a6(0x104),'maxRetriesExceeded':_0x3929a6(0x18d),'clickToConnect':_0x3929a6(0x165),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3929a6(0x1a5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3929a6(0x20e),'apiKeyHint':_0x3929a6(0x1e6),'enableAuth':_0x3929a6(0x11b),'enableAuthHint':_0x3929a6(0x12b),'connectionInfo':_0x3929a6(0x185),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3929a6(0x137),'configStepTitle':_0x3929a6(0x1ed),'configStep1':_0x3929a6(0x212),'configStep2':_0x3929a6(0x184),'configStep3':_0x3929a6(0x204),'sessionId':_0x3929a6(0x170),'sessionIdDescription':_0x3929a6(0x18f),'authorizationDescription':_0x3929a6(0x129),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x3929a6(0x23a),'save':_0x3929a6(0x1da),'saving':'Saving...','note1':_0x3929a6(0x157),'note2':_0x3929a6(0x192),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3929a6(0x1a1),'apiApplyInfo':{'title':_0x3929a6(0x215),'description':_0x3929a6(0x24c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3929a6(0x239)},'validation':{'apiKeyRequired':_0x3929a6(0x166),'apiKeyTooShort':_0x3929a6(0x10b),'invalidConfig':_0x3929a6(0x13e),'invalidApiKey':_0x3929a6(0x232)},'connectionStatus':{'disconnected':_0x3929a6(0x222),'connecting':'Connecting...','connected':_0x3929a6(0x24f),'failed':'Connection\x20Failed','retrying':_0x3929a6(0x163)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3929a6(0x186),'networkError':_0x3929a6(0x194),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x3929a6(0x1f2),'connecting':_0x3929a6(0x15f),'connected':_0x3929a6(0x152),'failed':_0x3929a6(0x140),'retrying':_0x3929a6(0x169),'unknown':_0x3929a6(0x1d3),'unauthorized':_0x3929a6(0x141),'sessionOccupied':_0x3929a6(0x117),'networkError':_0x3929a6(0x176),'maxRetriesExceeded':_0x3929a6(0x155),'clickToConnect':_0x3929a6(0x20d),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3929a6(0x240),'description':_0x3929a6(0x1ab),'apiKey':_0x3929a6(0x13d),'apiKeyPlaceholder':_0x3929a6(0x162),'apiKeyHint':_0x3929a6(0x14b),'enableAuth':_0x3929a6(0x1e9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3929a6(0x108),'configInstructions':_0x3929a6(0x214),'configStepTitle':_0x3929a6(0x182),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3929a6(0x19b),'sessionId':'会话ID','sessionIdDescription':_0x3929a6(0x1c7),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x3929a6(0x193),'maxRetries':_0x3929a6(0x11f),'save':_0x3929a6(0x208),'saving':_0x3929a6(0x21c),'note1':_0x3929a6(0x199),'note2':_0x3929a6(0x1b0),'configSaved':_0x3929a6(0x175),'configError':_0x3929a6(0x237),'apiApplyInfo':{'title':_0x3929a6(0x1dd),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x3929a6(0x136)},'validation':{'apiKeyRequired':_0x3929a6(0x11a),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x3929a6(0x1b4),'connecting':_0x3929a6(0x145),'connected':_0x3929a6(0x127),'failed':_0x3929a6(0x118),'retrying':_0x3929a6(0x16a)},'connectionError':{'unauthorized':_0x3929a6(0x233),'sessionOccupied':_0x3929a6(0x1d2),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x3929a6(0x178)],hn=Object[_0x3929a6(0xfd)],Cn=(_0x6406db,_0x31bcec,_0xea285)=>_0x31bcec in _0x6406db?fn(_0x6406db,_0x31bcec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xea285}):_0x6406db[_0x31bcec]=_0xea285,mn=(_0x427466,_0x32dce2,_0x39c02b,_0x390520)=>{for(var _0x2c94fd=_0x390520>0x1?void 0x0:_0x390520?hn(_0x32dce2,_0x39c02b):_0x32dce2,_0x321d65=_0x427466['length']-0x1,_0x4ca678;_0x321d65>=0x0;_0x321d65--)(_0x4ca678=_0x427466[_0x321d65])&&(_0x2c94fd=_0x4ca678(_0x2c94fd)||_0x2c94fd);return _0x2c94fd;},P=(_0x3c0a67,_0x43b96d)=>(_0x3c8236,_0x19bb85)=>_0x43b96d(_0x3c8236,_0x19bb85,_0x3c0a67),_n=(_0x5d31ec,_0x122ff3,_0x45c986)=>Cn(_0x5d31ec,_0x122ff3+'',_0x45c986);let j=class extends _0x128301{constructor(_0x53041b=ie,_0x2df0bb,_0x24e83e,_0x6716b0,_0x93b4b8,_0x51779a){const _0x1b9030=_0x3929a6;super(),this[_0x1b9030(0x113)]=_0x53041b,this['_injector']=_0x2df0bb,this['_configService']=_0x24e83e,this['_uiPartsService']=_0x6716b0,this[_0x1b9030(0x143)]=_0x93b4b8,this[_0x1b9030(0x114)]=_0x51779a;const {..._0x203794}=_0x447f02({},ie,this[_0x1b9030(0x113)]);this[_0x1b9030(0x1c0)][_0x1b9030(0x200)](y,_0x203794);}async['onStarting'](){const _0xc6c45d=_0x3929a6,_0x4946df=[[O],[I],[D]];this[_0xc6c45d(0xfc)][_0xc6c45d(0x1bf)](_0x130918)||_0x4946df['push']([_0x130918,{'useClass':_0x5e9e0e}]),_0x4946df[_0xc6c45d(0x21b)](_0x5a9d37=>this[_0xc6c45d(0xfc)][_0xc6c45d(0x22e)](_0x5a9d37)),this[_0xc6c45d(0xfc)][_0xc6c45d(0x1b2)](O),this[_0xc6c45d(0xfc)][_0xc6c45d(0x1b2)](I),this[_0xc6c45d(0xfc)][_0xc6c45d(0x1b2)](D);}};_n(j,_0x3929a6(0x135),'MCP_UI_PLUGIN'),j=mn([_0xc3765e(_0x1eb124),P(0x1,_0x901261(_0x12af15)),P(0x2,_0x345048),P(0x3,_0x572d10),P(0x4,_0x5c6de4),P(0x5,_0x901261(_0x5d13f9))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a2b81=_0x936d;(function(_0x18d2fa,_0x1d7530){const _0x3f5eef=_0x936d,_0x24266f=_0x18d2fa();while(!![]){try{const _0x381e93=parseInt(_0x3f5eef(0x13d))/0x1*(-parseInt(_0x3f5eef(0x154))/0x2)+-parseInt(_0x3f5eef(0x16c))/0x3*(parseInt(_0x3f5eef(0x155))/0x4)+parseInt(_0x3f5eef(0x161))/0x5*(-parseInt(_0x3f5eef(0x156))/0x6)+parseInt(_0x3f5eef(0x16a))/0x7*(parseInt(_0x3f5eef(0x15d))/0x8)+parseInt(_0x3f5eef(0x14a))/0x9*(-parseInt(_0x3f5eef(0x145))/0xa)+parseInt(_0x3f5eef(0x146))/0xb*(parseInt(_0x3f5eef(0x15a))/0xc)+parseInt(_0x3f5eef(0x170))/0xd;if(_0x381e93===_0x1d7530)break;else _0x24266f['push'](_0x24266f['shift']());}catch(_0xd9cbdd){_0x24266f['push'](_0x24266f['shift']());}}}(_0x5285,0x25c47));function _0x5285(){const _0x1bba83=['MCP:\x20Unauthorized','120KZTqlA','Univer\x20AI\x20Console','Connection\x20Failed','1554136JKCjZa','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','91305NZtmdb','Configuration\x20Steps:','Session\x20ID','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','7qTUnBT','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','350619pAjWmQ','Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Retrying...','5691504XqjwNp','Enable\x20authentication\x20for\x20secure\x20connections','61034AFfirl','MCP\x20Disconnected','MCP\x20Connection\x20Failed','Connected','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','150NSaygF','242506ovfZLP','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Invalid\x20configuration','136359yerpBF','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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','8ipMMgj','4IjqqKT','36UgFSej','MCP\x20Connected','MCP\x20Connecting...'];_0x5285=function(){return _0x1bba83;};return _0x5285();}const e={'mcpStatus':{'disconnected':_0x5a2b81(0x13e),'connecting':_0x5a2b81(0x158),'connected':_0x5a2b81(0x157),'failed':_0x5a2b81(0x13f),'retrying':_0x5a2b81(0x143),'unknown':_0x5a2b81(0x148),'unauthorized':_0x5a2b81(0x159),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5a2b81(0x141),'maxRetriesExceeded':_0x5a2b81(0x166),'clickToConnect':_0x5a2b81(0x167),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5a2b81(0x14f),'apiKey':_0x5a2b81(0x14b),'apiKeyPlaceholder':_0x5a2b81(0x15e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5a2b81(0x171),'connectionInfo':_0x5a2b81(0x14e),'mcpClientConfig':_0x5a2b81(0x14e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5a2b81(0x162),'configStep1':_0x5a2b81(0x14c),'configStep2':_0x5a2b81(0x16b),'configStep3':_0x5a2b81(0x169),'sessionId':_0x5a2b81(0x163),'sessionIdDescription':_0x5a2b81(0x152),'authorizationDescription':_0x5a2b81(0x16e),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x5a2b81(0x168),'saving':_0x5a2b81(0x165),'note1':_0x5a2b81(0x164),'note2':_0x5a2b81(0x15f),'configSaved':_0x5a2b81(0x153),'configError':_0x5a2b81(0x160),'apiApplyInfo':{'title':_0x5a2b81(0x147),'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':_0x5a2b81(0x15b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5a2b81(0x151),'invalidConfig':_0x5a2b81(0x149),'invalidApiKey':_0x5a2b81(0x144)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5a2b81(0x16d),'connected':_0x5a2b81(0x140),'failed':_0x5a2b81(0x15c),'retrying':_0x5a2b81(0x16f)},'connectionError':{'unauthorized':_0x5a2b81(0x142),'sessionOccupied':_0x5a2b81(0x150),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5a2b81(0x14d)}}},n=e;function _0x936d(_0x45412e,_0x175c6b){const _0x528586=_0x5285();return _0x936d=function(_0x936d5f,_0x49c306){_0x936d5f=_0x936d5f-0x13d;let _0xf9f439=_0x528586[_0x936d5f];return _0xf9f439;},_0x936d(_0x45412e,_0x175c6b);}export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1c8578=_0x1c95;function _0x52da(){const _0x1c4c10=['Connected','What\x20is\x20API\x20Key?','1193040UnIDcJ','Univer\x20AI\x20Console','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Client\x20Configuration','2906ZbAEsw','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','995138zBaFCE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','632TfXPym','Session\x20ID','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','Configuration\x20saved\x20successfully','12UBYUQK','Enable\x20Authentication','2498121eHnFox','MCP:\x20Max\x20Retries\x20Exceeded','Connecting...','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','12951488dwIbJT','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','10vDYjiv','Disconnected','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1288615DqcLfN','MCP\x20Disconnected','Saving...','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','1068Ckzuga','MCP\x20Connected','Connection\x20Failed','81193jDuSWD','MCP\x20Connecting...'];_0x52da=function(){return _0x1c4c10;};return _0x52da();}(function(_0x325e1c,_0x517769){const _0x4dc07b=_0x1c95,_0x3b2e7d=_0x325e1c();while(!![]){try{const _0x5b1204=-parseInt(_0x4dc07b(0x1a1))/0x1+-parseInt(_0x4dc07b(0x19d))/0x2*(-parseInt(_0x4dc07b(0x18d))/0x3)+parseInt(_0x4dc07b(0x177))/0x4*(parseInt(_0x4dc07b(0x188))/0x5)+parseInt(_0x4dc07b(0x194))/0x6+parseInt(_0x4dc07b(0x190))/0x7*(parseInt(_0x4dc07b(0x1a3))/0x8)+-parseInt(_0x4dc07b(0x179))/0x9*(-parseInt(_0x4dc07b(0x184))/0xa)+-parseInt(_0x4dc07b(0x17f))/0xb;if(_0x5b1204===_0x517769)break;else _0x3b2e7d['push'](_0x3b2e7d['shift']());}catch(_0xac8c07){_0x3b2e7d['push'](_0x3b2e7d['shift']());}}}(_0x52da,0x7ca9d));function _0x1c95(_0x30c041,_0x3b84ba){const _0x52daf7=_0x52da();return _0x1c95=function(_0x1c9545,_0x49c8e0){_0x1c9545=_0x1c9545-0x172;let _0x4ee5eb=_0x52daf7[_0x1c9545];return _0x4ee5eb;},_0x1c95(_0x30c041,_0x3b84ba);}const e={'mcpStatus':{'disconnected':_0x1c8578(0x189),'connecting':_0x1c8578(0x191),'connected':_0x1c8578(0x18e),'failed':_0x1c8578(0x197),'retrying':_0x1c8578(0x17c),'unknown':_0x1c8578(0x173),'unauthorized':_0x1c8578(0x1a6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1c8578(0x1a7),'maxRetriesExceeded':_0x1c8578(0x17a),'clickToConnect':_0x1c8578(0x1a8),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1c8578(0x19e),'apiKeyPlaceholder':_0x1c8578(0x1a5),'apiKeyHint':_0x1c8578(0x19b),'enableAuth':_0x1c8578(0x178),'enableAuthHint':_0x1c8578(0x19f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1c8578(0x19c),'configInstructions':_0x1c8578(0x172),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1c8578(0x187),'configStep3':_0x1c8578(0x174),'sessionId':_0x1c8578(0x1a4),'sessionIdDescription':_0x1c8578(0x19a),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x1c8578(0x18b),'save':_0x1c8578(0x1a0),'saving':_0x1c8578(0x18a),'note1':_0x1c8578(0x1a2),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1c8578(0x176),'configError':_0x1c8578(0x186),'apiApplyInfo':{'title':_0x1c8578(0x193),'description':_0x1c8578(0x17d),'univerAiLabel':_0x1c8578(0x195),'getStarted':_0x1c8578(0x18c)},'validation':{'apiKeyRequired':_0x1c8578(0x17e),'apiKeyTooShort':_0x1c8578(0x182),'invalidConfig':_0x1c8578(0x175),'invalidApiKey':_0x1c8578(0x198)},'connectionStatus':{'disconnected':_0x1c8578(0x185),'connecting':_0x1c8578(0x17b),'connected':_0x1c8578(0x192),'failed':_0x1c8578(0x18f),'retrying':_0x1c8578(0x180)},'connectionError':{'unauthorized':_0x1c8578(0x181),'sessionOccupied':_0x1c8578(0x196),'networkError':_0x1c8578(0x199),'maxRetriesExceeded':_0x1c8578(0x183)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x20f5(_0x2b385f,_0x79f996){const _0x3a02ac=_0x3a02();return _0x20f5=function(_0x20f5fd,_0x3c44ad){_0x20f5fd=_0x20f5fd-0x104;let _0xf198b1=_0x3a02ac[_0x20f5fd];return _0xf198b1;},_0x20f5(_0x2b385f,_0x79f996);}function _0x3a02(){const _0x4b25c8=['Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Max\x20Retries','4334838tuZmUe','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2429632JtDAOq','1788USAyVS','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20saved\x20successfully','API\x20Key','8922109PYFcQi','Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Saving...','MCP\x20Connected','MCP\x20Client\x20Configuration','188hKOkhM','Enter\x20your\x20API\x20key','1376pldrWc','9MIOQNP','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','5PRVTdN','11XNvlOb','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','MCP\x20Configuration','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','28717oToKYt','Univer\x20AI\x20Console','1264OUWRKB','4600910zoLFpi','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','31101zHprjr'];_0x3a02=function(){return _0x4b25c8;};return _0x3a02();}const _0x10139d=_0x20f5;(function(_0x4b9914,_0x36f31b){const _0x52472b=_0x20f5,_0x3972bc=_0x4b9914();while(!![]){try{const _0x31f5e1=parseInt(_0x52472b(0x111))/0x1*(-parseInt(_0x52472b(0x133))/0x2)+-parseInt(_0x52472b(0x114))/0x3*(parseInt(_0x52472b(0x131))/0x4)+parseInt(_0x52472b(0x137))/0x5*(parseInt(_0x52472b(0x118))/0x6)+parseInt(_0x52472b(0x12a))/0x7+parseInt(_0x52472b(0x11f))/0x8*(parseInt(_0x52472b(0x134))/0x9)+-parseInt(_0x52472b(0x112))/0xa*(parseInt(_0x52472b(0x138))/0xb)+parseInt(_0x52472b(0x120))/0xc*(parseInt(_0x52472b(0x10f))/0xd);if(_0x31f5e1===_0x36f31b)break;else _0x3972bc['push'](_0x3972bc['shift']());}catch(_0x1c75d8){_0x3972bc['push'](_0x3972bc['shift']());}}}(_0x3a02,0xc6785));const e={'mcpStatus':{'disconnected':_0x10139d(0x10c),'connecting':_0x10139d(0x135),'connected':_0x10139d(0x12f),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x10139d(0x105),'sessionOccupied':_0x10139d(0x108),'networkError':_0x10139d(0x11b),'maxRetriesExceeded':_0x10139d(0x12c),'clickToConnect':_0x10139d(0x136),'clickToConfigure':_0x10139d(0x10d)},'mcpConfig':{'title':_0x10139d(0x104),'description':_0x10139d(0x124),'apiKey':_0x10139d(0x129),'apiKeyPlaceholder':_0x10139d(0x132),'apiKeyHint':_0x10139d(0x139),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x10139d(0x130),'configInstructions':_0x10139d(0x116),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x10139d(0x127),'configStep2':_0x10139d(0x122),'configStep3':_0x10139d(0x113),'sessionId':_0x10139d(0x109),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x10139d(0x10e),'configParameters':_0x10139d(0x123),'maxRetries':_0x10139d(0x117),'save':_0x10139d(0x115),'saving':_0x10139d(0x12e),'note1':_0x10139d(0x10b),'note2':_0x10139d(0x106),'configSaved':_0x10139d(0x128),'configError':_0x10139d(0x11c),'apiApplyInfo':{'title':_0x10139d(0x119),'description':_0x10139d(0x121),'univerAiLabel':_0x10139d(0x110),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x10139d(0x11d),'apiKeyTooShort':_0x10139d(0x11a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x10139d(0x13a),'connecting':_0x10139d(0x10a),'connected':_0x10139d(0x125),'failed':'Connection\x20Failed','retrying':_0x10139d(0x12b)},'connectionError':{'unauthorized':_0x10139d(0x11e),'sessionOccupied':_0x10139d(0x12d),'networkError':_0x10139d(0x126),'maxRetriesExceeded':_0x10139d(0x107)}}},n=e;export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4cbbe4=_0x4202;(function(_0x2b19ba,_0x1bc47e){const _0x3f9a64=_0x4202,_0x3b3621=_0x2b19ba();while(!![]){try{const _0x3621fe=parseInt(_0x3f9a64(0xbc))/0x1+parseInt(_0x3f9a64(0xce))/0x2+-parseInt(_0x3f9a64(0xb4))/0x3+parseInt(_0x3f9a64(0xc1))/0x4+-parseInt(_0x3f9a64(0xa9))/0x5*(-parseInt(_0x3f9a64(0xb9))/0x6)+-parseInt(_0x3f9a64(0xbf))/0x7+-parseInt(_0x3f9a64(0xc8))/0x8*(parseInt(_0x3f9a64(0xc5))/0x9);if(_0x3621fe===_0x1bc47e)break;else _0x3b3621['push'](_0x3b3621['shift']());}catch(_0x176dc5){_0x3b3621['push'](_0x3b3621['shift']());}}}(_0x5e17,0xbefd7));const e={'mcpStatus':{'disconnected':_0x4cbbe4(0xcc),'connecting':'MCP\x20Connecting...','connected':_0x4cbbe4(0xb0),'failed':_0x4cbbe4(0xb2),'retrying':_0x4cbbe4(0xd1),'unknown':_0x4cbbe4(0xac),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4cbbe4(0xcb),'networkError':_0x4cbbe4(0xc7),'maxRetriesExceeded':_0x4cbbe4(0xb8),'clickToConnect':_0x4cbbe4(0xb3),'clickToConfigure':_0x4cbbe4(0xd6)},'mcpConfig':{'title':_0x4cbbe4(0xc4),'description':_0x4cbbe4(0xb5),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4cbbe4(0xa8),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4cbbe4(0xc9),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4cbbe4(0xc0),'configStep1':_0x4cbbe4(0xb7),'configStep2':_0x4cbbe4(0xbb),'configStep3':_0x4cbbe4(0xc2),'sessionId':_0x4cbbe4(0xb6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4cbbe4(0xbd),'maxRetries':_0x4cbbe4(0xd3),'save':'Save\x20Configuration','saving':_0x4cbbe4(0xaa),'note1':_0x4cbbe4(0xae),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4cbbe4(0xcd),'configError':_0x4cbbe4(0xd5),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4cbbe4(0xa7),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4cbbe4(0xd2)},'validation':{'apiKeyRequired':_0x4cbbe4(0xd4),'apiKeyTooShort':_0x4cbbe4(0xca),'invalidConfig':_0x4cbbe4(0xba),'invalidApiKey':_0x4cbbe4(0xab)},'connectionStatus':{'disconnected':_0x4cbbe4(0xcf),'connecting':'Connecting...','connected':_0x4cbbe4(0xd0),'failed':_0x4cbbe4(0xbe),'retrying':_0x4cbbe4(0xc6)},'connectionError':{'unauthorized':_0x4cbbe4(0xaf),'sessionOccupied':_0x4cbbe4(0xad),'networkError':_0x4cbbe4(0xb1),'maxRetriesExceeded':_0x4cbbe4(0xc3)}}},n=e;function _0x5e17(){const _0x1e637f=['2865564eQmNFi','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Max\x20Retries\x20Exceeded','232758wQjvJP','Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1379734Aktphw','Configuration\x20Parameters:','Connection\x20Failed','2515737UnPKcf','Configuration\x20Steps:','4109244goPaCm','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','18rLZvMn','Retrying...','MCP:\x20Network\x20Error','5052616woRTNa','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','Configuration\x20saved\x20successfully','974934xgfzqf','Disconnected','Connected','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','60kXraWM','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP'];_0x5e17=function(){return _0x1e637f;};return _0x5e17();}function _0x4202(_0x202f15,_0x25998d){const _0x5e17db=_0x5e17();return _0x4202=function(_0x420266,_0x3906ee){_0x420266=_0x420266-0xa7;let _0x599d2c=_0x5e17db[_0x420266];return _0x599d2c;},_0x4202(_0x202f15,_0x25998d);}export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x59edd8=_0x753d;function _0x753d(_0x22a836,_0x4cda3b){const _0x3065b9=_0x3065();return _0x753d=function(_0x753d3e,_0x1e3265){_0x753d3e=_0x753d3e-0x15e;let _0x5c594c=_0x3065b9[_0x753d3e];return _0x5c594c;},_0x753d(_0x22a836,_0x4cda3b);}(function(_0x2fc15f,_0x5e59){const _0x539bf3=_0x753d,_0x55c1f8=_0x2fc15f();while(!![]){try{const _0x5b3a33=-parseInt(_0x539bf3(0x16f))/0x1*(-parseInt(_0x539bf3(0x183))/0x2)+-parseInt(_0x539bf3(0x185))/0x3*(-parseInt(_0x539bf3(0x172))/0x4)+parseInt(_0x539bf3(0x17e))/0x5+parseInt(_0x539bf3(0x186))/0x6*(-parseInt(_0x539bf3(0x18a))/0x7)+parseInt(_0x539bf3(0x17f))/0x8*(parseInt(_0x539bf3(0x173))/0x9)+-parseInt(_0x539bf3(0x184))/0xa+-parseInt(_0x539bf3(0x18d))/0xb;if(_0x5b3a33===_0x5e59)break;else _0x55c1f8['push'](_0x55c1f8['shift']());}catch(_0x1a08a6){_0x55c1f8['push'](_0x55c1f8['shift']());}}}(_0x3065,0xf0b69));const e={'mcpStatus':{'disconnected':_0x59edd8(0x171),'connecting':_0x59edd8(0x17d),'connected':_0x59edd8(0x15f),'failed':_0x59edd8(0x16c),'retrying':_0x59edd8(0x174),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x59edd8(0x166),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x59edd8(0x17c),'clickToConnect':_0x59edd8(0x182),'clickToConfigure':_0x59edd8(0x16e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x59edd8(0x167),'apiKey':_0x59edd8(0x16d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x59edd8(0x17a),'enableAuthHint':_0x59edd8(0x16b),'connectionInfo':_0x59edd8(0x161),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x59edd8(0x178),'configStep1':_0x59edd8(0x179),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x59edd8(0x18b),'sessionId':_0x59edd8(0x176),'sessionIdDescription':_0x59edd8(0x162),'authorizationDescription':_0x59edd8(0x163),'configParameters':_0x59edd8(0x17b),'maxRetries':_0x59edd8(0x164),'save':_0x59edd8(0x188),'saving':_0x59edd8(0x175),'note1':_0x59edd8(0x169),'note2':_0x59edd8(0x168),'configSaved':_0x59edd8(0x180),'configError':_0x59edd8(0x160),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x59edd8(0x18c),'univerAiLabel':_0x59edd8(0x177),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x59edd8(0x187),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x59edd8(0x16a),'invalidApiKey':_0x59edd8(0x181)},'connectionStatus':{'disconnected':_0x59edd8(0x15e),'connecting':_0x59edd8(0x165),'connected':'Connected','failed':_0x59edd8(0x189),'retrying':_0x59edd8(0x170)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x59edd8(0x18e)}}},n=e;export{n as default};function _0x3065(){const _0x3a3e8d=['Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','API\x20Key','Click\x20to\x20configure\x20MCP','345350IqmOYb','Retrying...','MCP\x20Disconnected','2949612RyqXAt','108495tYqopA','MCP\x20Retrying...','Saving...','Session\x20ID','Univer\x20AI\x20Console','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','7053570wtMSgy','344xhHbDi','Configuration\x20saved\x20successfully','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','8JcFFut','10228230WqOtBS','3esXMNl','3501162aNxLIU','API\x20key\x20is\x20required','Save\x20Configuration','Connection\x20Failed','7Tlyrgw','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\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.','16011281biOLuJ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','MCP\x20Connected','Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','Connecting...','MCP:\x20Session\x20ID\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration'];_0x3065=function(){return _0x3a3e8d;};return _0x3065();}
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5171(){const _0x346edf=['2102088MYGXIl','1672EwaROB','9yAGDKk','MCP:\x20認証されていません','認証に失敗しました。APIキーを確認してください','35578Lxfsoo','設定を保存','602iyUyJR','17344muEuSG','MCP:\x20セッションIDが使用中','Bearerプレフィックス付きのAPIキー。','クリックしてMCPに接続','11buzqhX','APIキーを入力してください','MCP:\x20ネットワークエラー','MCP\x20接続失敗','ネットワーク接続エラー。インターネット接続を確認してください','設定の変更は直ちに有効になります','MCP\x20接続済み','数秒でAPIキーを取得','設定パラメータ:','最大再試行回数を超過しました。後でもう一度お試しください','セッションIDが現在使用中です。後でもう一度お試しください','設定の保存に失敗しました','APIキーは必須です','77720TdXNwg','Univer\x20AIコンソール','APIキーはこのブラウザのローカルに保存されます','設定が正常に保存されました','17qZODqe','認証を有効にする','APIキー','315924NFsKwI','接続失敗','以下のJSON設定をコピー','MCP\x20未接続','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','再試行中...','APIキーとは?','2994aleYmO','MCPクライアント設定','設定手順:','MCPクライアントの設定に次の設定を追加してください:','MCPを設定してAIでスプレッドシートを操作','APIキーはローカルストレージに安全に保存されます','セッションID','APIキーは10文字以上である必要があります','MCP設定','6780GtxjxL','MCPクライアントの設定ファイルに設定を追加','保存中...','MCP\x20再試行中...'];_0x5171=function(){return _0x346edf;};return _0x5171();}const _0x1108bc=_0xbace;(function(_0x33b6e9,_0x13ae9b){const _0x55a937=_0xbace,_0x310cf5=_0x33b6e9();while(!![]){try{const _0x5d853a=-parseInt(_0x55a937(0xe2))/0x1*(-parseInt(_0x55a937(0xfe))/0x2)+parseInt(_0x55a937(0xec))/0x3*(parseInt(_0x55a937(0xfa))/0x4)+-parseInt(_0x55a937(0xf5))/0x5+-parseInt(_0x55a937(0xf9))/0x6+-parseInt(_0x55a937(0x100))/0x7*(parseInt(_0x55a937(0x101))/0x8)+parseInt(_0x55a937(0xfb))/0x9*(parseInt(_0x55a937(0xde))/0xa)+parseInt(_0x55a937(0x105))/0xb*(parseInt(_0x55a937(0xe5))/0xc);if(_0x5d853a===_0x13ae9b)break;else _0x310cf5['push'](_0x310cf5['shift']());}catch(_0x4c6499){_0x310cf5['push'](_0x310cf5['shift']());}}}(_0x5171,0x349e4));function _0xbace(_0x4a636d,_0x5abe1e){const _0x517132=_0x5171();return _0xbace=function(_0xbace6,_0xcf02e5){_0xbace6=_0xbace6-0xd8;let _0x753188=_0x517132[_0xbace6];return _0x753188;},_0xbace(_0x4a636d,_0x5abe1e);}const e={'mcpStatus':{'disconnected':_0x1108bc(0xe8),'connecting':'MCP\x20接続中...','connected':_0x1108bc(0x10b),'failed':_0x1108bc(0x108),'retrying':_0x1108bc(0xf8),'unknown':'MCP\x20不明な状態','unauthorized':_0x1108bc(0xfc),'sessionOccupied':_0x1108bc(0x102),'networkError':_0x1108bc(0x107),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x1108bc(0x104),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x1108bc(0xf4),'description':_0x1108bc(0xf0),'apiKey':_0x1108bc(0xe4),'apiKeyPlaceholder':_0x1108bc(0x106),'apiKeyHint':_0x1108bc(0xe0),'enableAuth':_0x1108bc(0xe3),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x1108bc(0xed),'mcpClientConfig':_0x1108bc(0xed),'configInstructions':_0x1108bc(0xef),'configStepTitle':_0x1108bc(0xee),'configStep1':_0x1108bc(0xe7),'configStep2':_0x1108bc(0xf6),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x1108bc(0xf2),'sessionIdDescription':_0x1108bc(0xe9),'authorizationDescription':_0x1108bc(0x103),'configParameters':_0x1108bc(0xd9),'maxRetries':'最大再試行回数','save':_0x1108bc(0xff),'saving':_0x1108bc(0xf7),'note1':_0x1108bc(0x10a),'note2':_0x1108bc(0xf1),'configSaved':_0x1108bc(0xe1),'configError':_0x1108bc(0xdc),'apiApplyInfo':{'title':_0x1108bc(0xeb),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x1108bc(0xdf),'getStarted':_0x1108bc(0xd8)},'validation':{'apiKeyRequired':_0x1108bc(0xdd),'apiKeyTooShort':_0x1108bc(0xf3),'invalidConfig':'無効な設定','invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':'未接続','connecting':'接続中...','connected':'接続済み','failed':_0x1108bc(0xe6),'retrying':_0x1108bc(0xea)},'connectionError':{'unauthorized':_0x1108bc(0xfd),'sessionOccupied':_0x1108bc(0xdb),'networkError':_0x1108bc(0x109),'maxRetriesExceeded':_0x1108bc(0xda)}}};export{e as default};
|