@univerjs-pro/mcp-ui 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x38e032=_0x5162;(function(_0x607294,_0x2650df){const _0x580169=_0x5162,_0x222e49=_0x607294();while(!![]){try{const _0x3c5dea=parseInt(_0x580169(0x170))/0x1+parseInt(_0x580169(0x1b9))/0x2+parseInt(_0x580169(0x137))/0x3*(-parseInt(_0x580169(0x169))/0x4)+parseInt(_0x580169(0x22d))/0x5*(parseInt(_0x580169(0x22b))/0x6)+-parseInt(_0x580169(0x188))/0x7*(-parseInt(_0x580169(0x140))/0x8)+parseInt(_0x580169(0x234))/0x9*(-parseInt(_0x580169(0x237))/0xa)+parseInt(_0x580169(0x193))/0xb*(-parseInt(_0x580169(0x1c6))/0xc);if(_0x3c5dea===_0x2650df)break;else _0x222e49['push'](_0x222e49['shift']());}catch(_0x18e184){_0x222e49['push'](_0x222e49['shift']());}}}(_0x592d,0x2cfc1));var Pe=Object[_0x38e032(0x129)],Ee=(_0x231409,_0x3313d5,_0x5aaf1c)=>_0x3313d5 in _0x231409?Pe(_0x231409,_0x3313d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5aaf1c}):_0x231409[_0x3313d5]=_0x5aaf1c,x=(_0xf7184b,_0x1477a8,_0x2f5d3f)=>Ee(_0xf7184b,typeof _0x1477a8!=_0x38e032(0x147)?_0x1477a8+'':_0x1477a8,_0x2f5d3f);import{LocaleService as _0x2cd658,Inject as _0x2dc60e,Injector as _0x57c3fd,Disposable as _0x5b9a6f,IConfigService as _0x1d0ad6,ILocalStorageService as _0x3c915b,ILogService as _0x1d31a2,CommandType as _0x5ae180,ICommandService as _0x2c4476,DependentOn as _0x3841bd,Plugin as _0x147660,merge as _0x505fa9}from'@univerjs/core';import{jsxs as _0x310502,jsx as _0xd8d81b}from'react/jsx-runtime';import{MCPConnectionStatus as _0x2ac4f3,MCPConnectionError as _0x4b8d84,MCPConnectionController as _0xafd2ed,MCP_PLUGIN_CONFIG_KEY as _0x2471aa,UniverMCPPlugin as _0xa5a329}from'@univerjs-pro/mcp';import{clsx as _0xa1e1e9,Input as _0x4583e1,Button as _0x53a0df,MessageType as _0x5edd10,Tooltip as _0x5ec2c7}from'@univerjs/design';function _0x5162(_0x35a0d6,_0x5e50a2){_0x35a0d6=_0x35a0d6-0x121;const _0x592dc1=_0x592d();let _0x516206=_0x592dc1[_0x35a0d6];return _0x516206;}import{useDependency as _0x58672d,useObservable as _0x2de466,ComponentManager as _0x111deb,connectInjector as _0x597448,IUIPartsService as _0x21b0fa,IDialogService as _0x12f11f,IMessageService as _0x2069f9,BuiltInUIPart as _0xea10c4,MenuItemType as _0x23d8b1,RibbonStartGroup as _0x433100,IMenuManagerService as _0x36e5d4}from'@univerjs/ui';import{BehaviorSubject as _0xbfc369}from'rxjs';import{useRef as _0x5e2456,createElement as _0x210398,forwardRef as _0x30bdc3,useState as _0x1698f1,useCallback as _0x1ff9c2}from'react';function _0x592d(){const _0x5e0b13=['univer-space-y-5','mcpConfig.connectionStatus.failed','replace','mcpConfig.connectionStatus.connecting','_initAutoConnect','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','您的\x20API\x20密钥将在此浏览器中本地存储','Save\x20Configuration','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpStatus.networkError','mcpConfig.save','14AuCxRy','value','mcpConfig.validation.apiKeyTooShort','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','colorChannel1','xlink:href','mcpStatus.unknown','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','配置步骤:','CONNECTED','idSuffix','165594YyGIHE','保存配置','mcpConfig.configStepTitle','_loading$','pluginName','univer-text-blue-600','会话ID','RETRYING','mcp.apiKey','getCurrentConfig','MCPConfigPanel','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_logService','univer-bg-gray-500','mcpStatus.unauthorized','mcpStatus.connecting','mcp-ui.command.openConfigPanel','add','mcpConfig.configStep1','Copy\x20the\x20JSON\x20configuration\x20below','_apiKey$','_mcpConnectionController','MCP\x20状态未知','Failed\x20to\x20save\x20configuration','HEADER_MENU','\x20-\x20','您的\x20API\x20密钥安全存储在本地存储中','entries','register','保存中...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpStatus.failed','网络连接错误,请检查您的网络连接','MCP\x20Connection\x20Failed','mcpStatus.retrying','univer-shrink-0\x20univer-text-red-500','univer-flex\x20univer-items-start\x20univer-gap-3','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','695372GYlgzo','translate(.97)','span','defs','MCP:\x20未授权','mcpConfig.configStep2','close-icon','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','isValid','mcpConfig.connectionError.unauthorized','_injector','pre','MCP\x20Unknown\x20Status','408dArEhV','warn','label','NETWORK_ERROR','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','show','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','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','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','univer-flex\x20univer-items-center','连接失败','enableAutoConnect','univer-flex\x20univer-items-center\x20univer-gap-2','round','MCP\x20连接失败','Error','connectionStatus$','MCP:\x20会话\x20ID\x20已被占用','setItem','mcp-ui.config','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_validateConfig','mcpConfig.connectionStatus.connected','url(#$1','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-gray-500','_localStorageService','mcpConfig.sessionIdDescription','push','权限验证失败,请检查您的\x20API\x20密钥','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_mcpCoreConfig$','点击连接\x20MCP','_initializeCommands','errorMessage','url(#off-line-icon_clip0_910_343)','MCP\x20Retrying...','Session\x20ID','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.note1','Saving...','https://console.univer.plus','path','Connecting...','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','最大重试次数','univer-mr-2\x20univer-flex\x20univer-text-xl','_configService','getOwnPropertyDescriptor','未连接','mcp-config-dialog','showConfigPanel','univer-min-w-0\x20univer-flex-1','MCP_UI_PLUGIN','error','none','MCP:\x20Network\x20Error','disposeWithMe','https://mcp.univer.ai/mcp/?univer_session_id=','<SESSION_ID>','\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','配置保存成功','mcpConfig.apiApplyInfo.title','div','mcpConfig.title','什么是\x20API\x20密钥?','CONNECTING','Max\x20Retries','mcpConfig.connectionInfo','Disconnected','univer-bg-red-500','onStarting','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','off','连接中...','mcpStatus.maxRetriesExceeded','univer-space-y-3','DISCONNECTED','MCP:\x20Session\x20ID\x20Occupied','current','CloseIcon','svg','getConfig','mcpConfig.apiApplyInfo.getStarted','has','MCP:\x20超出最大重试次数','univer-text-gray-400','assign','启用身份验证以获得安全连接','会话\x20ID\x20已被占用,请稍后再试','_config$','0\x200\x2016\x2016','tag','children','displayName','NONE','MCP\x20Configuration','API\x20Key','MCP\x20连接中...','1434silknw','MCP\x20Disconnected','4245vDzNDG','map','_localeService','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','MCP\x20已断开','带有\x20Bearer\x20前缀的\x20API\x20密钥。','504ZAihTr','_loadStoredApiKey','配置保存失败','62030JgwVEM','length','配置参数:','Connected','_createConfigPanelComponent','noopener\x20noreferrer','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-space-y-4','forEach','_initializeMenus','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20重连中...','配置更改将立即生效','CheckMarkIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Configuration\x20saved\x20successfully','showDeveloperTools','_blank','univer-text-green-500','univer-bg-blue-500','clipPath','toString','_commandService','mcpConfig.connectionError.maxRetriesExceeded','OTHERS','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Configuration\x20Steps:','button','registerComponent','M0\x200H16V16H0z','mcpStatus.connected','Invalid\x20configuration','http://www.w3.org/2000/svg','将配置添加到您的\x20MCP\x20客户端设置文件中','connectionError$','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','UniverIcon','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20Max\x20Retries\x20Exceeded','_connectionController','mcpStatus.sessionOccupied','includes','currentColor','univer.plus','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥不能为空','MenuIcon','_uiPartsService','univer-text-white','substring','Configuration\x20Parameters:','mcpConfig.configError','trim','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','use','mergeMenu','sessionId$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','超出最大重试次数,请稍后再试','text','_messageService','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-space-y-2','open','Bearer\x20','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.sessionOccupied','random','univer.ai','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','请输入您的\x20API\x20密钥','defineProperty','apiKey','__setCustomHeaders','MCP\x20配置','stringify','启用身份验证','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.validation.invalidConfig','Retrying...','mcpConfig.description','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','75237RcZVjt','MCP:\x20网络错误','Univer\x20AI\x20控制台','mcpConfig.authorizationDescription','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','on-line-icon','_registerComponent','1370032gyAEuP','subscribeConfigValue$','mcpConfig.connectionStatus.retrying','attrs','OnLineIcon','_handleConfigSave','univer-font-medium','symbol','univer-text-red-500','mcpServerUrl','MAX_RETRIES_EXCEEDED','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Connecting...','mcpConfig.apiApplyInfo.description','UNAUTHORIZED','_componentManager','string','getItem','on-line-icon_clip0_910_349','defIds','off-line-icon_clip0_910_343','mcpConfig.connectionError.networkError','close','get','check-mark-icon','FAILED','fill','univer-text-xs\x20univer-text-gray-500','subscribe','_dialogService','univer-flex\x20univer-gap-3','0\x200\x2017\x2016','Authorization:','API\x20密钥无效,请检查密钥是否正确','mcpConfig.connectionStatus.disconnected','What\x20is\x20API\x20Key?','evenodd','API\x20key\x20with\x20Bearer\x20prefix.','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','MCP\x20客户端配置','Connection\x20Failed','20mohMqt','next','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20Client\x20Configuration','mcpStatus.clickToConnect','_initStatusComponent','_menuManagerService','275751cTFMHJ','univer-size-4','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','univer-shrink-0\x20univer-text-blue-500','_handleConfigure','1em','复制以下\x20JSON\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20key\x20is\x20required','重连中...','mcpConfig.configSaved'];_0x592d=function(){return _0x5e0b13;};return _0x592d();}import{ISocketService as _0x2bd910,WebSocketService as _0x4ad1da}from'@univerjs/network';function b({ref:_0x568ac4,..._0x22c4c3}){const _0x44c388=_0x38e032,{icon:_0x4335d9,id:_0x484308,className:_0x7ca7be,extend:_0x333502,..._0x3677f6}=_0x22c4c3,_0x8b4e24=('univerjs-icon\x20univerjs-icon-'+_0x484308+'\x20'+(_0x7ca7be||''))['trim'](),_0x5696d6=_0x5e2456('_'+We());return ae(_0x4335d9,''+_0x484308,{'defIds':_0x4335d9[_0x44c388(0x153)],'idSuffix':_0x5696d6[_0x44c388(0x217)]},{'ref':_0x568ac4,'className':_0x8b4e24,..._0x3677f6},_0x333502);}function ae(_0x5f0134,_0x5e4871,_0x5e8d60,_0x5e76f3,_0x4c4e7b){const _0x150ba9=_0x38e032;return _0x210398(_0x5f0134[_0x150ba9(0x224)],{'key':_0x5e4871,...Ye(_0x5f0134,_0x5e8d60,_0x4c4e7b),..._0x5e76f3},(Ze(_0x5f0134,_0x5e8d60)['children']||[])[_0x150ba9(0x22e)]((_0x301466,_0x29d421)=>ae(_0x301466,_0x5e4871+'-'+_0x5f0134['tag']+'-'+_0x29d421,_0x5e8d60,void 0x0,_0x4c4e7b)));}function Ye(_0x3a9ef1,_0x187933,_0x4025ed){const _0x76e3bf=_0x38e032,_0x523111={..._0x3a9ef1[_0x76e3bf(0x143)]};_0x4025ed!=null&&_0x4025ed[_0x76e3bf(0x18c)]&&_0x523111['fill']===_0x76e3bf(0x18c)&&(_0x523111[_0x76e3bf(0x15a)]=_0x4025ed[_0x76e3bf(0x18c)]),_0x3a9ef1['tag']==='mask'&&_0x523111['id']&&(_0x523111['id']=_0x523111['id']+_0x187933[_0x76e3bf(0x192)]),Object[_0x76e3bf(0x1ae)](_0x523111)[_0x76e3bf(0x23f)](([_0x4cd2a9,_0x1d2c46])=>{const _0x3d8977=_0x76e3bf;_0x4cd2a9==='mask'&&typeof _0x1d2c46==_0x3d8977(0x150)&&(_0x523111[_0x4cd2a9]=_0x1d2c46['replace'](/url\(#(.*)\)/,'url(#$1'+_0x187933['idSuffix']+')'));});const {defIds:_0x34d5a2}=_0x187933;return!_0x34d5a2||_0x34d5a2['length']===0x0||(_0x3a9ef1['tag']===_0x76e3bf(0x26d)&&_0x523111[_0x76e3bf(0x18d)]&&(_0x523111[_0x76e3bf(0x18d)]=_0x523111['xlink:href']+_0x187933['idSuffix']),Object[_0x76e3bf(0x1ae)](_0x523111)[_0x76e3bf(0x23f)](([_0x3f3a80,_0x91fa66])=>{const _0x27bb51=_0x76e3bf;typeof _0x91fa66=='string'&&(_0x523111[_0x3f3a80]=_0x91fa66[_0x27bb51(0x17e)](/url\(#(.*)\)/,_0x27bb51(0x1de)+_0x187933[_0x27bb51(0x192)]+')'));})),_0x523111;}function Ze(_0xd6168a,_0x1b9ebd){const _0x5dbe20=_0x38e032;var _0x2ec40f;const {defIds:_0x36cb08}=_0x1b9ebd;return!_0x36cb08||_0x36cb08[_0x5dbe20(0x238)]===0x0?_0xd6168a:_0xd6168a[_0x5dbe20(0x224)]==='defs'&&((_0x2ec40f=_0xd6168a[_0x5dbe20(0x225)])!=null&&_0x2ec40f['length'])?{..._0xd6168a,'children':_0xd6168a[_0x5dbe20(0x225)]['map'](_0xd40404=>typeof _0xd40404[_0x5dbe20(0x143)]['id']==_0x5dbe20(0x150)&&_0x36cb08&&_0x36cb08[_0x5dbe20(0x260)](_0xd40404['attrs']['id'])?{..._0xd40404,'attrs':{..._0xd40404[_0x5dbe20(0x143)],'id':_0xd40404['attrs']['id']+_0x1b9ebd[_0x5dbe20(0x192)]}}:_0xd40404)}:_0xd6168a;}function We(){const _0x249758=_0x38e032;return Math[_0x249758(0x125)]()[_0x249758(0x24c)](0x24)[_0x249758(0x268)](0x2,0x8);}b[_0x38e032(0x226)]=_0x38e032(0x25b);const qe={'tag':'svg','attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':_0x38e032(0x223),'width':'1em','height':_0x38e032(0x176)},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x1c0),'fillRule':'evenodd','clipRule':_0x38e032(0x164)}}]},le=_0x30bdc3(function(_0x5a8d56,_0x2da3f2){const _0x30540a=_0x38e032;return _0x210398(b,Object[_0x30540a(0x21f)]({},_0x5a8d56,{'id':_0x30540a(0x158),'ref':_0x2da3f2,'icon':qe}));});le['displayName']=_0x38e032(0x244);const Xe={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x38e032(0x176)},'children':[{'tag':'path','attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x13b)}}]},ue=_0x30bdc3(function(_0x3ca71e,_0x3e37ac){const _0x29e268=_0x38e032;return _0x210398(b,Object[_0x29e268(0x21f)]({},_0x3ca71e,{'id':_0x29e268(0x1bf),'ref':_0x3e37ac,'icon':Xe}));});ue['displayName']=_0x38e032(0x218);const Je={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':_0x38e032(0x223),'width':_0x38e032(0x176),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x166)}},{'tag':_0x38e032(0x1f2),'attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x127)}},{'tag':_0x38e032(0x1f2),'attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x130),'fillRule':'evenodd','clipRule':_0x38e032(0x164)}}]},ve=_0x30bdc3(function(_0x57e432,_0x429917){const _0x10677b=_0x38e032;return _0x210398(b,Object[_0x10677b(0x21f)]({},_0x57e432,{'id':'help-icon','ref':_0x429917,'icon':Je}));});ve[_0x38e032(0x226)]='HelpIcon';const Qe={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':_0x38e032(0x223),'width':_0x38e032(0x176),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x38e032(0x1eb)},'children':[{'tag':'path','attrs':{'stroke':_0x38e032(0x261),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x38e032(0x1d4),'strokeLinejoin':_0x38e032(0x1d4),'strokeWidth':1.2}}]},{'tag':_0x38e032(0x1bc),'attrs':{},'children':[{'tag':_0x38e032(0x24b),'attrs':{'id':_0x38e032(0x154)},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x38e032(0x154)]},de=_0x30bdc3(function(_0xc7bf29,_0x2c591b){const _0x1521ed=_0x38e032;return _0x210398(b,Object[_0x1521ed(0x21f)]({},_0xc7bf29,{'id':'off-line-icon','ref':_0x2c591b,'icon':Qe}));});de[_0x38e032(0x226)]='OffLineIcon';const en={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':'none','viewBox':_0x38e032(0x15f),'width':_0x38e032(0x176),'height':_0x38e032(0x176)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x38e032(0x1d4),'strokeLinejoin':_0x38e032(0x1d4),'strokeWidth':1.2}}]},{'tag':_0x38e032(0x1bc),'attrs':{},'children':[{'tag':_0x38e032(0x24b),'attrs':{'id':_0x38e032(0x152)},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'fill':'white','d':_0x38e032(0x254),'transform':_0x38e032(0x1ba)}}]}]}],'defIds':[_0x38e032(0x152)]},ge=_0x30bdc3(function(_0x579e55,_0x4cecb0){const _0xb5b334=_0x38e032;return _0x210398(b,Object[_0xb5b334(0x21f)]({},_0x579e55,{'id':_0xb5b334(0x13e),'ref':_0x4cecb0,'icon':en}));});ge[_0x38e032(0x226)]=_0x38e032(0x144);function nn(_0x1b348f){const _0x3c039e=_0x38e032;var _0x5735a0,_0x16104c;const {mcpCoreConfig:_0x54e357,onSave:_0xcaecae,loading:_0xfcbd30=!0x1,config:_0x950fa9,connectionStatus$:_0x4d20ee,connectionError$:_0x113bc9,currentApiKey$:_0x5961d7,currentSessionId$:_0x12f279}=_0x1b348f,_0xef4894=_0x58672d(_0x2cd658),_0x1845f3=_0x2de466(_0x4d20ee,_0x2ac4f3[_0x3c039e(0x215)]),_0x12d856=_0x2de466(_0x113bc9,_0x4b8d84[_0x3c039e(0x227)]),_0x1dee0d=_0x2de466(_0x12f279,''),_0x4f297b=_0x2de466(_0x5961d7,''),[_0x2f3b51,_0x55a3db]=_0x1698f1(_0x4f297b||''),_0x7f206a=!0x0,_0x49751f=_0x950fa9['showDeveloperTools']&&_0x54e357['mcpServerUrl']&&(_0x54e357[_0x3c039e(0x149)][_0x3c039e(0x260)]('univer.plus')||_0x54e357[_0x3c039e(0x149)]['includes'](_0x3c039e(0x126))),_0x154735=(_0x5735a0=_0x54e357[_0x3c039e(0x149)])==null?void 0x0:_0x5735a0[_0x3c039e(0x260)](_0x3c039e(0x262)),_0x4454d8=(_0x16104c=_0x54e357['mcpServerUrl'])==null?void 0x0:_0x16104c[_0x3c039e(0x260)](_0x3c039e(0x126)),_0x113a40=_0x154735?_0x3c039e(0x1f1):'https://console.univer.ai',_0x5c0dd0=_0x950fa9[_0x3c039e(0x247)]&&(_0x154735||_0x4454d8),[_0x1066fe,_0x2befd8]=_0x1698f1(!_0x2f3b51['trim']()),_0xceba64=(_0x43eb3b,_0x144f0d)=>{const _0x53e0a3=_0x3c039e;if(_0x144f0d===_0x4b8d84['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x43eb3b){case _0x2ac4f3[_0x53e0a3(0x191)]:return _0x53e0a3(0x18f);case _0x2ac4f3[_0x53e0a3(0x20a)]:case _0x2ac4f3['RETRYING']:return _0x53e0a3(0x23d);case _0x2ac4f3[_0x53e0a3(0x159)]:return _0x53e0a3(0x270);default:return _0x53e0a3(0x210);}},_0x1a3135=(_0x121fb3,_0x49e197)=>{const _0x3dd8b9=_0x3c039e;if(_0x49e197===_0x4b8d84[_0x3dd8b9(0x14e)])return'univer-bg-red-500';switch(_0x121fb3){case _0x2ac4f3[_0x3dd8b9(0x191)]:return'univer-bg-green-500';case _0x2ac4f3[_0x3dd8b9(0x20a)]:case _0x2ac4f3['RETRYING']:return _0x3dd8b9(0x24a);case _0x2ac4f3[_0x3dd8b9(0x159)]:return _0x3dd8b9(0x20e);default:return _0x3dd8b9(0x1a0);}},_0x1825e4=_0x4de8b3=>{const _0x50fa1e=_0x3c039e;switch(_0x4de8b3){case _0x2ac4f3[_0x50fa1e(0x191)]:return _0xef4894['t'](_0x50fa1e(0x1dd));case _0x2ac4f3[_0x50fa1e(0x20a)]:return _0xef4894['t'](_0x50fa1e(0x17f));case _0x2ac4f3[_0x50fa1e(0x159)]:return _0xef4894['t'](_0x50fa1e(0x17d));case _0x2ac4f3[_0x50fa1e(0x19a)]:return _0xef4894['t'](_0x50fa1e(0x142));default:return _0xef4894['t'](_0x50fa1e(0x162));}},_0x57cdcd=_0x54ea18=>{const _0x2468dd=_0x3c039e;switch(_0x54ea18){case _0x4b8d84[_0x2468dd(0x14e)]:return _0xef4894['t'](_0x2468dd(0x1c2));case _0x4b8d84['SESSION_ID_OCCUPIED']:return _0xef4894['t'](_0x2468dd(0x124));case _0x4b8d84['NETWORK_ERROR']:return _0xef4894['t'](_0x2468dd(0x155));case _0x4b8d84[_0x2468dd(0x14a)]:return _0xef4894['t'](_0x2468dd(0x24e));default:return'';}},_0x4adc4f=_0x1ff9c2(()=>{const _0x38b31c=_0x3c039e,_0x17b38a={..._0x54e357,'apiKey':_0x2f3b51[_0x38b31c(0x26b)](),'enableAuth':_0x7f206a};_0xcaecae(_0x17b38a);},[_0x54e357,_0x2f3b51,_0x7f206a,_0xcaecae]),_0x165a7c=_0x2f3b51[_0x3c039e(0x26b)]()[_0x3c039e(0x238)]>0x0;return _0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1f4),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x16b),'children':_0x310502('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x267),'children':'⚙'})}),_0xd8d81b('div',{'children':_0xd8d81b('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0xef4894['t'](_0x3c039e(0x134))})})]})}),_0x310502(_0x3c039e(0x207),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0xd8d81b('div',{'className':_0xa1e1e9(_0x3c039e(0x185),_0xceba64(_0x1845f3,_0x12d856)),'children':_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0xa1e1e9('univer-size-2\x20univer-rounded-full',_0x1a3135(_0x1845f3,_0x12d856))}),_0xd8d81b(_0x3c039e(0x1bb),{'className':'univer-text-sm\x20univer-font-medium','children':_0x1825e4(_0x1845f3)})]})}),_0x12d856!==_0x4b8d84['NONE']&&(_0x1845f3===_0x2ac4f3[_0x3c039e(0x159)]||_0x12d856===_0x4b8d84[_0x3c039e(0x14e)])&&_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x250),'children':_0x310502(_0x3c039e(0x207),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1b6),'children':'⚠️'}),_0xd8d81b('p',{'className':_0x3c039e(0x13c),'children':_0x57cdcd(_0x12d856)})]})})]}),_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x310502('div',{'className':_0x3c039e(0x17c),'children':[_0x310502(_0x3c039e(0x207),{'className':'univer-space-y-2','children':[_0x310502(_0x3c039e(0x1c8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'🔑'}),'\x20',_0xef4894['t']('mcpConfig.apiKey'),_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x148),'children':'*'}),_0x49751f&&_0xd8d81b('a',{'className':_0x3c039e(0x274),'title':_0xef4894['t'](_0x3c039e(0x206)),'role':_0x3c039e(0x252),'onClick':()=>_0x2befd8(!0x0),'children':_0xd8d81b(ve,{})})]}),_0xd8d81b(_0x4583e1,{'type':_0x3c039e(0x272),'placeholder':_0xef4894['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x2f3b51,'disabled':_0xfcbd30,'autoComplete':_0x3c039e(0x211),'onChange':_0x55a3db}),_0xd8d81b('p',{'className':_0x3c039e(0x15b),'children':_0xef4894['t']('mcpConfig.apiKeyHint')})]}),_0x49751f&&_0x1066fe&&_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1ce),'children':[_0xd8d81b('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':_0x3c039e(0x252),'onClick':()=>_0x2befd8(!0x1),'children':_0xd8d81b(ue,{'className':_0x3c039e(0x171)})}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x13d),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0xd8d81b('span',{'className':_0x3c039e(0x198),'children':'🚀'})}),_0x310502('div',{'className':'univer-flex-1','children':[_0xd8d81b('h4',{'className':_0x3c039e(0x1ee),'children':_0xef4894['t']('mcpConfig.apiApplyInfo.title')}),_0xd8d81b('p',{'className':_0x3c039e(0x123),'children':_0xef4894['t'](_0x3c039e(0x14d))}),_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5c0dd0&&_0x310502('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':_0x113a40,'target':_0x3c039e(0x248),'rel':_0x3c039e(0x23c),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'🤖'}),_0xef4894['t'](_0x3c039e(0x1e0)),_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x21e),'children':'↗'})]})}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1df),'children':['✨','\x20',_0xef4894['t'](_0x3c039e(0x21b))]})]})]})]}),_0x950fa9[_0x3c039e(0x247)]&&_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x14b),'children':[_0x310502('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'🔗'}),'\x20',_0xef4894['t'](_0x3c039e(0x20c))]}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x23e),'children':[_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x214),'children':[_0xd8d81b('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0xef4894['t']('mcpConfig.configInstructions')}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x275),'children':[_0xd8d81b('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xef4894['t'](_0x3c039e(0x195))}),_0x310502(_0x3c039e(0x207),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1b8),'children':'1'}),_0xef4894['t'](_0x3c039e(0x1a5))]}),_0x310502('div',{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b('span',{'className':_0x3c039e(0x1b8),'children':'2'}),_0xef4894['t'](_0x3c039e(0x1be))]}),_0x310502('div',{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0xef4894['t']('mcpConfig.configStep3')]})]})]})]}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x275),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x12f),'children':'MCP\x20Configuration'}),_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x1db),'children':_0xd8d81b(_0x3c039e(0x1c4),{'className':_0x3c039e(0x245),'children':JSON[_0x3c039e(0x12d)]({'mcpServers':{'univer':{'url':_0x3c039e(0x202)+(_0x1dee0d||_0x3c039e(0x203)),'type':'http','headers':{'Authorization':_0x3c039e(0x122)+(_0x2f3b51||'<API_KEY>')}}}},null,0x2)})})]}),_0x310502('div',{'className':'univer-space-y-3','children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x12f),'children':_0xef4894['t']('mcpConfig.configParameters')}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x275),'children':[_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1b7),'children':[_0xd8d81b('div',{'className':_0x3c039e(0x135)}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1fc),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x18b),'children':'univer_session_id:'}),_0xd8d81b('div',{'className':_0x3c039e(0x15b),'children':_0xef4894['t'](_0x3c039e(0x1e3))})]})]}),_0x310502('div',{'className':_0x3c039e(0x1b7),'children':[_0xd8d81b('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x310502('div',{'className':_0x3c039e(0x1fc),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x18b),'children':_0x3c039e(0x160)}),_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x15b),'children':_0xef4894['t'](_0x3c039e(0x13a))})]})]})]})]})]})]}),_0xd8d81b(_0x53a0df,{'onClick':_0x4adc4f,'disabled':!_0x165a7c||_0xfcbd30,'className':_0x3c039e(0x1cf),'children':_0xfcbd30?_0x310502(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'⟲'}),_0xef4894['t']('mcpConfig.saving')]}):_0x310502(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(le,{}),_0xef4894['t'](_0x3c039e(0x187))]})}),_0xd8d81b('div',{'className':_0x3c039e(0x1cc),'children':_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x15e),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x174),'children':'💡'}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x178),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x146),'children':'Configuration\x20Notes:'}),_0x310502(_0x3c039e(0x207),{'children':['•',_0xef4894['t'](_0x3c039e(0x1ef))]}),_0x310502('div',{'children':['•',_0xef4894['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x38e032(0x1da),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x38e032(0x1f8)],tn=(_0x410935,_0x186492,_0x4b0328,_0x68f682)=>{for(var _0x5dfda6=_0x68f682>0x1?void 0x0:_0x68f682?rn(_0x186492,_0x4b0328):_0x186492,_0x498550=_0x410935['length']-0x1,_0x435940;_0x498550>=0x0;_0x498550--)(_0x435940=_0x410935[_0x498550])&&(_0x5dfda6=_0x435940(_0x5dfda6)||_0x5dfda6);return _0x5dfda6;},d=(_0x2a3dd7,_0x1725de)=>(_0x54e99d,_0x1400ba)=>_0x1725de(_0x54e99d,_0x1400ba,_0x2a3dd7);const U=_0x38e032(0x19b),L=_0x38e032(0x1fa);let I=class extends _0x5b9a6f{constructor(_0x4f4292,_0x19aac5,_0x24d122,_0x16667d,_0x1d139a,_0x26c3df,_0x40665,_0x36354f,_0x4eacf9,_0x4911d){const _0x58b19a=_0x38e032;super(),x(this,'_loading$',new _0xbfc369(!0x1)),x(this,_0x58b19a(0x1e7),new _0xbfc369({})),x(this,_0x58b19a(0x222),new _0xbfc369({})),x(this,'_apiKey$',new _0xbfc369('')),x(this,_0x58b19a(0x145),async _0x22ec33=>{const _0x9e09b=_0x58b19a;var _0x12c81b,_0xbd101a;this[_0x9e09b(0x196)][_0x9e09b(0x16a)](!0x0);try{const _0x324587=await this['_validateConfig'](_0x22ec33);if(!_0x324587[_0x9e09b(0x1c1)]){this[_0x9e09b(0x273)][_0x9e09b(0x1cb)]({'type':_0x5edd10[_0x9e09b(0x1d6)],'content':_0x324587[_0x9e09b(0x1ea)]||this[_0x9e09b(0x22f)]['t'](_0x9e09b(0x132))});return;}_0x22ec33[_0x9e09b(0x12a)]?await this[_0x9e09b(0x1e2)][_0x9e09b(0x1d9)](U,_0x22ec33[_0x9e09b(0x12a)][_0x9e09b(0x26b)]()):await this[_0x9e09b(0x1e2)]['removeItem'](U),this[_0x9e09b(0x1a7)][_0x9e09b(0x16a)](((_0x12c81b=_0x22ec33[_0x9e09b(0x12a)])==null?void 0x0:_0x12c81b[_0x9e09b(0x26b)]())||''),this['_mcpConnectionController'][_0x9e09b(0x12b)]({'Authorization':'Bearer\x20'+((_0xbd101a=_0x22ec33[_0x9e09b(0x12a)])==null?void 0x0:_0xbd101a[_0x9e09b(0x26b)]())}),this[_0x9e09b(0x273)]['show']({'type':_0x5edd10['Success'],'content':this[_0x9e09b(0x22f)]['t'](_0x9e09b(0x17b))}),setTimeout(()=>{const _0x38d499=_0x9e09b;this[_0x38d499(0x15d)][_0x38d499(0x156)](L);},0x320);}catch(_0x205c93){this[_0x9e09b(0x19f)]['error'](_0x9e09b(0x19e),_0x205c93),this[_0x9e09b(0x273)]['show']({'type':_0x5edd10[_0x9e09b(0x1d6)],'content':this[_0x9e09b(0x22f)]['t'](_0x9e09b(0x26a))});}finally{this[_0x9e09b(0x196)]['next'](!0x1);}}),(this[_0x58b19a(0x1c3)]=_0x4f4292,this['_uiPartsService']=_0x19aac5,this['_configService']=_0x24d122,this[_0x58b19a(0x1e2)]=_0x16667d,this[_0x58b19a(0x15d)]=_0x1d139a,this[_0x58b19a(0x273)]=_0x26c3df,this[_0x58b19a(0x14f)]=_0x40665,this[_0x58b19a(0x22f)]=_0x36354f,this[_0x58b19a(0x19f)]=_0x4eacf9,this['_mcpConnectionController']=_0x4911d,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x58b19a(0x13f)]());}['showConfigPanel'](){const _0x41a2a=_0x38e032,_0x59c8cc=this['_configService'][_0x41a2a(0x21a)](y);_0x59c8cc!=null&&_0x59c8cc[_0x41a2a(0x247)]&&this[_0x41a2a(0x15d)][_0x41a2a(0x121)]({'id':L,'title':{'title':this[_0x41a2a(0x22f)]['t'](_0x41a2a(0x208))},'children':{'label':_0x41a2a(0x19d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2d8fea=_0x41a2a;this[_0x2d8fea(0x15d)]['close'](L);}});}[_0x38e032(0x19c)](){const _0x13add6=_0x38e032;return this['_mcpCoreConfig$'][_0x13add6(0x189)];}[_0x38e032(0x13f)](){const _0x1de449=_0x38e032;this[_0x1de449(0x201)](this['_componentManager'][_0x1de449(0x1af)](_0x1de449(0x19d),this['_createConfigPanelComponent']()));}[_0x38e032(0x23b)](){const _0x17080d=_0x38e032;return _0x597448(()=>{const _0x44e3c5=_0x5162;var _0x4cd21b,_0x185468,_0x280a90;return _0xd8d81b(nn,{'config':this['_config$'][_0x44e3c5(0x189)],'mcpCoreConfig':this[_0x44e3c5(0x1e7)]['value'],'currentApiKey$':this[_0x44e3c5(0x1a7)],'onSave':this[_0x44e3c5(0x145)],'loading':this[_0x44e3c5(0x196)][_0x44e3c5(0x189)],'connectionStatus$':(_0x4cd21b=this['_mcpConnectionController'])==null?void 0x0:_0x4cd21b[_0x44e3c5(0x1d7)],'connectionError$':(_0x185468=this['_mcpConnectionController'])==null?void 0x0:_0x185468[_0x44e3c5(0x259)],'currentSessionId$':(_0x280a90=this[_0x44e3c5(0x1a8)])==null?void 0x0:_0x280a90[_0x44e3c5(0x26f)]});},this[_0x17080d(0x1c3)]);}['_initConfigSync'](){const _0x14a1d4=_0x38e032;this[_0x14a1d4(0x201)](this[_0x14a1d4(0x1f7)][_0x14a1d4(0x141)](_0x2471aa)[_0x14a1d4(0x15c)](_0x456ccd=>{const _0x5e451b=_0x14a1d4;this[_0x5e451b(0x1e7)][_0x5e451b(0x16a)](_0x456ccd||{});}));const _0x52064c=this[_0x14a1d4(0x1f7)]['getConfig'](_0x2471aa);this[_0x14a1d4(0x1e7)]['next'](_0x52064c||{}),this['disposeWithMe'](this['_configService'][_0x14a1d4(0x141)](y)['subscribe'](_0x48d8b0=>{const _0xd107c5=_0x14a1d4;this['_config$'][_0xd107c5(0x16a)](_0x48d8b0||{});}));const _0x2771e5=this[_0x14a1d4(0x1f7)]['getConfig'](y);this[_0x14a1d4(0x222)]['next'](_0x2771e5||{});}async[_0x38e032(0x235)](){const _0x26c572=_0x38e032,_0xdb5f05=this[_0x26c572(0x1f7)][_0x26c572(0x21a)](y);if(!(_0xdb5f05!=null&&_0xdb5f05[_0x26c572(0x247)]))return;const _0x2180d0=await this[_0x26c572(0x1e2)][_0x26c572(0x151)](U);_0x2180d0&&(this[_0x26c572(0x1a8)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x2180d0}),this[_0x26c572(0x1a7)]['next'](_0x2180d0));}async[_0x38e032(0x1dc)](_0x45f4b6){const _0x240152=_0x38e032;if(!_0x45f4b6[_0x240152(0x12a)]||_0x45f4b6[_0x240152(0x12a)][_0x240152(0x26b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x240152(0x22f)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x45f4b6['apiKey'][_0x240152(0x26b)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x240152(0x22f)]['t'](_0x240152(0x18a))};try{const _0x1f5691=await this[_0x240152(0x1c3)][_0x240152(0x157)](_0xafd2ed)['validateApiKey'](_0x45f4b6[_0x240152(0x12a)]['trim']());return _0x1f5691['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f5691[_0x240152(0x1fe)]||this[_0x240152(0x22f)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2ddf0a){return console[_0x240152(0x1c7)](_0x240152(0x182),_0x2ddf0a),{'isValid':!0x0};}}};I=tn([d(0x0,_0x2dc60e(_0x57c3fd)),d(0x1,_0x21b0fa),d(0x2,_0x1d0ad6),d(0x3,_0x3c915b),d(0x4,_0x12f11f),d(0x5,_0x2069f9),d(0x6,_0x2dc60e(_0x111deb)),d(0x7,_0x2dc60e(_0x2cd658)),d(0x8,_0x1d31a2),d(0x9,_0x2dc60e(_0xafd2ed))],I);const V={'id':_0x38e032(0x1a3),'type':_0x5ae180['COMMAND'],'handler':async(_0x239956,_0x567c80)=>(_0x239956[_0x38e032(0x157)](I)['showConfigPanel'](),!0x0)};function pe(_0x3810df,_0x25bf16){const _0x39c4b5=_0x38e032;switch(_0x3810df){case _0x2ac4f3[_0x39c4b5(0x215)]:return'mcpStatus.disconnected';case _0x2ac4f3['CONNECTING']:return _0x39c4b5(0x1a2);case _0x2ac4f3[_0x39c4b5(0x191)]:return _0x39c4b5(0x255);case _0x2ac4f3[_0x39c4b5(0x159)]:switch(_0x25bf16){case _0x4b8d84[_0x39c4b5(0x14e)]:return _0x39c4b5(0x1a1);case _0x4b8d84['SESSION_ID_OCCUPIED']:return _0x39c4b5(0x25f);case _0x4b8d84[_0x39c4b5(0x1c9)]:return _0x39c4b5(0x186);case _0x4b8d84[_0x39c4b5(0x14a)]:return _0x39c4b5(0x213);default:return _0x39c4b5(0x1b2);}case _0x2ac4f3['RETRYING']:return _0x39c4b5(0x1b5);default:return _0x39c4b5(0x18e);}}function on(_0x243126,_0x270517,_0x354635,_0x5bae68=!0x0){const _0x835944=_0x38e032,_0x4b108d=pe(_0x243126,_0x270517),_0x4358a9=_0x354635['t'](_0x4b108d);return _0x5bae68?_0x243126===_0x2ac4f3['DISCONNECTED']&&_0x270517===_0x4b8d84['UNAUTHORIZED']?_0x4358a9+_0x835944(0x1ac)+_0x354635['t']('mcpStatus.clickToConfigure'):_0x243126===_0x2ac4f3[_0x835944(0x191)]?''+_0x4358a9:_0x243126===_0x2ac4f3[_0x835944(0x215)]||_0x243126===_0x2ac4f3[_0x835944(0x159)]?_0x4358a9+_0x835944(0x1ac)+_0x354635['t'](_0x835944(0x16d)):_0x4358a9:_0x4358a9;}function sn(_0x399c9d){const _0x8ecb2f=_0x38e032;switch(_0x399c9d){case _0x2ac4f3[_0x8ecb2f(0x191)]:return _0x8ecb2f(0x249);case _0x2ac4f3['CONNECTING']:case _0x2ac4f3['RETRYING']:return'univer-text-yellow-500';case _0x2ac4f3[_0x8ecb2f(0x159)]:case _0x2ac4f3['DISCONNECTED']:return _0x8ecb2f(0x148);default:return _0x8ecb2f(0x1e1);}}function cn(_0x4c6515){const _0x4f28da=_0x38e032,{status$:_0x10ad5e,error$:_0x564fd6,onConfigure:_0x3824b6,showClickable:_0x37e3cf=!0x0}=_0x4c6515,_0x1cce47=_0x2de466(_0x10ad5e,_0x2ac4f3[_0x4f28da(0x215)]),_0x59cdc0=_0x2de466(_0x564fd6,_0x4b8d84[_0x4f28da(0x227)]),_0x1f5857=_0x58672d(_0x2cd658),_0x47e578=_0x1cce47===_0x2ac4f3['CONNECTED'];_0x1cce47===_0x2ac4f3['CONNECTING']||_0x2ac4f3['RETRYING'];const _0x1a0809=_0x1f5857['t'](pe(_0x1cce47,_0x59cdc0)),_0xfa368c=on(_0x1cce47,_0x59cdc0,_0x1f5857,_0x37e3cf),_0x38c9b7=sn(_0x1cce47),_0x48d62d=_0x47e578?_0xd8d81b(ge,{}):_0xd8d81b(de,{}),_0x1196e4=_0x1ff9c2(()=>{_0x37e3cf&&_0x3824b6&&_0x3824b6();},[_0x37e3cf,_0x3824b6]);function _0x64ce6f(){const _0x534658=_0x4f28da;return _0x310502(_0x534658(0x207),{'className':_0xa1e1e9(_0x534658(0x1d0),_0x37e3cf&&_0x3824b6&&_0x534658(0x204)),'role':_0x534658(0x252),'onClick':_0x37e3cf&&_0x3824b6?_0x1196e4:void 0x0,'children':[_0xd8d81b(_0x534658(0x207),{'className':_0xa1e1e9(_0x534658(0x1f6),_0x38c9b7),'children':_0x48d62d}),_0xd8d81b(_0x534658(0x207),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1a0809})]});}return _0xd8d81b(_0x5ec2c7,{'title':_0xfa368c,'placement':'bottom','children':_0x64ce6f()});}var an=Object[_0x38e032(0x1f8)],ln=(_0x2b8ac8,_0x5b8c80,_0x1cb834,_0x21c8e1)=>{const _0x413aca=_0x38e032;for(var _0x422edc=_0x21c8e1>0x1?void 0x0:_0x21c8e1?an(_0x5b8c80,_0x1cb834):_0x5b8c80,_0x17e061=_0x2b8ac8[_0x413aca(0x238)]-0x1,_0x295caf;_0x17e061>=0x0;_0x17e061--)(_0x295caf=_0x2b8ac8[_0x17e061])&&(_0x422edc=_0x295caf(_0x422edc)||_0x422edc);return _0x422edc;},M=(_0x11700c,_0x51160e)=>(_0x158e2f,_0x2a3286)=>_0x51160e(_0x158e2f,_0x2a3286,_0x11700c);let O=class extends _0x5b9a6f{constructor(_0x3de368,_0x534861,_0x2e4cd2,_0x382308){const _0x2225e1=_0x38e032;super(),this['_injector']=_0x3de368,this['_connectionController']=_0x534861,this[_0x2225e1(0x266)]=_0x2e4cd2,this[_0x2225e1(0x1f7)]=_0x382308,this[_0x2225e1(0x180)](),this['_initStatusComponent']();}[_0x38e032(0x180)](){const _0x21d1c3=_0x38e032,_0x41614d=this['_configService'][_0x21d1c3(0x21a)](y);_0x41614d!=null&&_0x41614d[_0x21d1c3(0x247)]&&(this['_connectionController'][_0x21d1c3(0x1d2)]=!0x1);}[_0x38e032(0x16e)](){const _0x3fb0e1=_0x38e032,_0x287952=this[_0x3fb0e1(0x1f7)][_0x3fb0e1(0x21a)](y);(_0x287952==null?void 0x0:_0x287952['showStatus'])!==!0x1&&this[_0x3fb0e1(0x201)](this[_0x3fb0e1(0x266)][_0x3fb0e1(0x253)](_0xea10c4[_0x3fb0e1(0x1ab)],()=>{const _0x3e044a=_0x3fb0e1;var _0x58073a;return _0x597448(un({'status$':this[_0x3e044a(0x25e)]['connectionStatus$'],'error$':this[_0x3e044a(0x25e)][_0x3e044a(0x259)],'onConfigure':()=>this[_0x3e044a(0x175)](),'showClickable':(_0x58073a=_0x287952==null?void 0x0:_0x287952[_0x3e044a(0x247)])!=null?_0x58073a:!0x1}),this[_0x3e044a(0x1c3)]);}));}[_0x38e032(0x175)](){const _0x2dccb7=_0x38e032;this['_injector'][_0x2dccb7(0x157)](I)[_0x2dccb7(0x1fb)]();}};O=ln([M(0x0,_0x2dc60e(_0x57c3fd)),M(0x1,_0x2dc60e(_0xafd2ed)),M(0x2,_0x21b0fa),M(0x3,_0x1d0ad6)],O);function un(_0x3c6c76){const {status$:_0x1b3477,error$:_0x44e004,onConfigure:_0x4ca46a,showClickable:_0x5e3b7c}=_0x3c6c76;return function(){return _0xd8d81b(cn,{'status$':_0x1b3477,'error$':_0x44e004,'onConfigure':_0x4ca46a,'showClickable':_0x5e3b7c});};}function vn(_0x133fd2){const _0x39aebc=_0x38e032;return{'id':V['id'],'type':_0x23d8b1['BUTTON'],'icon':_0x39aebc(0x265),'title':_0x39aebc(0x208),'tooltip':_0x39aebc(0x208)};}const dn={[_0x433100[_0x38e032(0x24f)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x38e032(0x1f8)],pn=(_0x4c97ea,_0x51de1e,_0x1576e7,_0x31754b)=>{for(var _0x151345=_0x31754b>0x1?void 0x0:_0x31754b?gn(_0x51de1e,_0x1576e7):_0x51de1e,_0x5a764e=_0x4c97ea['length']-0x1,_0x113812;_0x5a764e>=0x0;_0x5a764e--)(_0x113812=_0x4c97ea[_0x5a764e])&&(_0x151345=_0x113812(_0x151345)||_0x151345);return _0x151345;},re=(_0x221ec2,_0xd9459a)=>(_0x53accb,_0x51d649)=>_0xd9459a(_0x53accb,_0x51d649,_0x221ec2);let D=class extends _0x5b9a6f{constructor(_0x171ad7,_0x4a095f){const _0x4dee3c=_0x38e032;super(),this[_0x4dee3c(0x24d)]=_0x171ad7,this[_0x4dee3c(0x16f)]=_0x4a095f,this[_0x4dee3c(0x1e9)](),this['_initializeMenus']();}[_0x38e032(0x1e9)](){const _0x46ca35=_0x38e032;[V][_0x46ca35(0x23f)](_0x508e2e=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x508e2e));});}[_0x38e032(0x240)](){const _0x6c3098=_0x38e032;this[_0x6c3098(0x16f)][_0x6c3098(0x26e)](dn);}};D=pn([re(0x0,_0x2c4476),re(0x1,_0x36e5d4)],D);const Mn={'mcpStatus':{'disconnected':_0x38e032(0x22c),'connecting':_0x38e032(0x14c),'connected':'MCP\x20Connected','failed':_0x38e032(0x1b4),'retrying':_0x38e032(0x1ec),'unknown':_0x38e032(0x1c5),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x38e032(0x216),'networkError':_0x38e032(0x200),'maxRetriesExceeded':_0x38e032(0x25d),'clickToConnect':_0x38e032(0x231),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x38e032(0x228),'description':_0x38e032(0x241),'apiKey':_0x38e032(0x229),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x38e032(0x26c),'enableAuth':_0x38e032(0x173),'enableAuthHint':_0x38e032(0x230),'connectionInfo':_0x38e032(0x16c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x38e032(0x25a),'configStepTitle':_0x38e032(0x251),'configStep1':_0x38e032(0x1a6),'configStep2':_0x38e032(0x136),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x38e032(0x1ed),'sessionIdDescription':_0x38e032(0x1ca),'authorizationDescription':_0x38e032(0x165),'configParameters':_0x38e032(0x269),'maxRetries':_0x38e032(0x20b),'save':_0x38e032(0x184),'saving':_0x38e032(0x1f0),'note1':_0x38e032(0x131),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x38e032(0x246),'configError':_0x38e032(0x1aa),'apiApplyInfo':{'title':_0x38e032(0x163),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x38e032(0x179),'apiKeyTooShort':_0x38e032(0x181),'invalidConfig':_0x38e032(0x256),'invalidApiKey':_0x38e032(0x172)},'connectionStatus':{'disconnected':_0x38e032(0x20d),'connecting':_0x38e032(0x1f3),'connected':_0x38e032(0x23a),'failed':_0x38e032(0x168),'retrying':_0x38e032(0x133)},'connectionError':{'unauthorized':_0x38e032(0x1b1),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x38e032(0x1e6),'maxRetriesExceeded':_0x38e032(0x1cd)}}},An={'mcpStatus':{'disconnected':_0x38e032(0x232),'connecting':_0x38e032(0x22a),'connected':'MCP\x20已连接','failed':_0x38e032(0x1d5),'retrying':_0x38e032(0x242),'unknown':_0x38e032(0x1a9),'unauthorized':_0x38e032(0x1bd),'sessionOccupied':_0x38e032(0x1d8),'networkError':_0x38e032(0x138),'maxRetriesExceeded':_0x38e032(0x21d),'clickToConnect':_0x38e032(0x1e8),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x38e032(0x12c),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x38e032(0x128),'apiKeyHint':_0x38e032(0x183),'enableAuth':_0x38e032(0x12e),'enableAuthHint':_0x38e032(0x220),'connectionInfo':_0x38e032(0x167),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x38e032(0x190),'configStep1':_0x38e032(0x177),'configStep2':_0x38e032(0x258),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x38e032(0x199),'sessionIdDescription':_0x38e032(0x263),'authorizationDescription':_0x38e032(0x233),'configParameters':_0x38e032(0x239),'maxRetries':_0x38e032(0x1f5),'save':_0x38e032(0x194),'saving':_0x38e032(0x1b0),'note1':_0x38e032(0x243),'note2':_0x38e032(0x1ad),'configSaved':_0x38e032(0x205),'configError':_0x38e032(0x236),'apiApplyInfo':{'title':_0x38e032(0x209),'description':_0x38e032(0x25c),'univerAiLabel':_0x38e032(0x139),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x38e032(0x264),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x38e032(0x161)},'connectionStatus':{'disconnected':_0x38e032(0x1f9),'connecting':_0x38e032(0x212),'connected':'已连接','failed':_0x38e032(0x1d1),'retrying':_0x38e032(0x17a)},'connectionError':{'unauthorized':_0x38e032(0x1e5),'sessionOccupied':_0x38e032(0x221),'networkError':_0x38e032(0x1b3),'maxRetriesExceeded':_0x38e032(0x271)}}};var fn=Object[_0x38e032(0x129)],hn=Object[_0x38e032(0x1f8)],Cn=(_0x39b704,_0x31ec3a,_0x5d46ce)=>_0x31ec3a in _0x39b704?fn(_0x39b704,_0x31ec3a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d46ce}):_0x39b704[_0x31ec3a]=_0x5d46ce,mn=(_0x3b0c2a,_0x3e211e,_0x55ee08,_0x407ea9)=>{for(var _0x1dcc35=_0x407ea9>0x1?void 0x0:_0x407ea9?hn(_0x3e211e,_0x55ee08):_0x3e211e,_0x483ba6=_0x3b0c2a['length']-0x1,_0x2508f3;_0x483ba6>=0x0;_0x483ba6--)(_0x2508f3=_0x3b0c2a[_0x483ba6])&&(_0x1dcc35=_0x2508f3(_0x1dcc35)||_0x1dcc35);return _0x1dcc35;},P=(_0x25683c,_0x4eaed1)=>(_0x49157f,_0x3a4864)=>_0x4eaed1(_0x49157f,_0x3a4864,_0x25683c),_n=(_0x553497,_0x3d0481,_0x266afd)=>Cn(_0x553497,_0x3d0481+'',_0x266afd);let j=class extends _0x147660{constructor(_0x31bb6f=ie,_0x102db6,_0x25813d,_0xc39d3b,_0x2c91e7,_0xb2fab6){const _0x465864=_0x38e032;super(),this['_config']=_0x31bb6f,this[_0x465864(0x1c3)]=_0x102db6,this[_0x465864(0x1f7)]=_0x25813d,this['_uiPartsService']=_0xc39d3b,this[_0x465864(0x1e2)]=_0x2c91e7,this[_0x465864(0x22f)]=_0xb2fab6;const {..._0x2ae088}=_0x505fa9({},ie,this['_config']);this['_configService']['setConfig'](y,_0x2ae088);}async[_0x38e032(0x20f)](){const _0x2349be=_0x38e032,_0x46e494=[[O],[I],[D]];this[_0x2349be(0x1c3)][_0x2349be(0x21c)](_0x2bd910)||_0x46e494[_0x2349be(0x1e4)]([_0x2bd910,{'useClass':_0x4ad1da}]),_0x46e494[_0x2349be(0x23f)](_0x1e9e52=>this[_0x2349be(0x1c3)][_0x2349be(0x1a4)](_0x1e9e52)),this['_injector'][_0x2349be(0x157)](O),this[_0x2349be(0x1c3)][_0x2349be(0x157)](I),this[_0x2349be(0x1c3)][_0x2349be(0x157)](D);}};_n(j,_0x38e032(0x197),_0x38e032(0x1fd)),j=mn([_0x3841bd(_0xa5a329),P(0x1,_0x2dc60e(_0x57c3fd)),P(0x2,_0x1d0ad6),P(0x3,_0x21b0fa),P(0x4,_0x3c915b),P(0x5,_0x2dc60e(_0x2cd658))],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 _0x40ccc8=_0x2802;(function(_0x16cb73,_0x3b804a){const _0x54a0ca=_0x2802,_0x1b35f5=_0x16cb73();while(!![]){try{const _0x10dcb3=parseInt(_0x54a0ca(0x2aa))/0x1+parseInt(_0x54a0ca(0x1c3))/0x2*(-parseInt(_0x54a0ca(0x256))/0x3)+parseInt(_0x54a0ca(0x201))/0x4*(parseInt(_0x54a0ca(0x1ee))/0x5)+parseInt(_0x54a0ca(0x21f))/0x6*(parseInt(_0x54a0ca(0x2f1))/0x7)+parseInt(_0x54a0ca(0x2b0))/0x8+parseInt(_0x54a0ca(0x1d6))/0x9+-parseInt(_0x54a0ca(0x20d))/0xa*(parseInt(_0x54a0ca(0x2e7))/0xb);if(_0x10dcb3===_0x3b804a)break;else _0x1b35f5['push'](_0x1b35f5['shift']());}catch(_0x4f8158){_0x1b35f5['push'](_0x1b35f5['shift']());}}}(_0x131e,0xa5eaf));function _0x131e(){const _0x51bf0d=['_initializeMenus','1266738xnbMXP','_configService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_commandService','mcpConfig.validation.invalidApiKey','univer-flex-1','3785312TtgmZo','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','off-line-icon_clip0_910_343','univer-shrink-0\x20univer-text-red-500','univer-text-red-500','univer.ai','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-space-y-5','Max\x20Retries','tag','_loadStoredApiKey','mcpConfig.saving','http','MCP\x20Connecting...','https://console.univer.plus','error','_registerComponent','apiKey','currentColor','map','validateApiKey','Connection\x20Failed','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','mcpConfig.configStep2','_localStorageService','Univer\x20AI\x20控制台','SESSION_ID_OCCUPIED','MCP\x20Retrying...','displayName','_localeService','MCP:\x20未授权','warn','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','CheckMarkIcon','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','show','_initAutoConnect','_apiKey$','mcpConfig.validation.invalidConfig','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-green-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','权限验证失败,请检查您的\x20API\x20密钥','setItem','mcpConfig.apiApplyInfo.description','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.configError','substring','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','round','mcpConfig.authorizationDescription','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20已连接','open','UNAUTHORIZED','5093jvFYRt','onStarting','_validateConfig','MCP:\x20Max\x20Retries\x20Exceeded','univer-space-y-2','_handleConfigSave','includes','on-line-icon_clip0_910_349','mcpConfig.configInstructions','会话ID','4718dPITvX','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-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','M0\x200H16V16H0z','MCP\x20客户端配置','_connectionController','MCP\x20Connected','_initializeCommands','defs','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','MCP:\x20Network\x20Error','最大重试次数','univer-bg-green-500','close-icon','univer-text-white','replace','mcpStatus.failed','API\x20Key','MCP\x20Connection\x20Failed','none','fill','mcpStatus.retrying','UniverIcon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','您的\x20API\x20密钥将在此浏览器中本地存储','Enable\x20Authentication','bottom','getCurrentConfig','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','RETRYING','url(#on-line-icon_clip0_910_349)','Univer\x20AI\x20Console','242242ktiebE','isValid','mcpConfig.connectionStatus.connecting','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mergeMenu','mcp-ui.config','toString','removeItem','univer.plus','MCP\x20连接中...','clipPath','univer-text-gray-500','mcpConfig.sessionIdDescription','mcpStatus.unauthorized','API\x20密钥','API\x20密钥不能为空','mcpConfig.note1','has','evenodd','12027591gGPJXA','connectionStatus$','univer-text-gray-400','<SESSION_ID>','get','几秒钟内获取您的\x20API\x20密钥','univer-bg-gray-500','mcpConfig.note2','_initConfigSync','Configuration\x20Steps:','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','HEADER_MENU','配置步骤:','string','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_blank','close','mcpConfig.configStep3','univer-flex\x20univer-items-center','NETWORK_ERROR','Disconnected','重连中...','mcpConfig.connectionStatus.disconnected','31305RKttrC','mcpConfig.connectionInfo','xlink:href','univer-text-xs\x20univer-text-gray-500','pre','MCPConfigPanel','Configuration\x20Notes:','\x20-\x20','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','button','mcpStatus.connected','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','_messageService','Connected','univer-space-y-3','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','mcpConfig.configParameters','636RccFSm','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStepTitle','length','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','_dialogService','mcpConfig.apiApplyInfo.title','assign','showStatus','_logService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.connectionError.sessionOccupied','76900VBIbWG','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','use','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.apiKey','<API_KEY>','forEach','mask','univer-flex\x20univer-gap-3','errorMessage','MCP\x20Client\x20Configuration','univer-mr-2\x20univer-flex\x20univer-text-xl','_injector','idSuffix','url(#$1','getConfig','univer-min-w-0\x20univer-flex-1','11202OtuGMu','defIds','MCP:\x20Unauthorized','_config','mcpConfig.configSaved','disposeWithMe','subscribeConfigValue$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.maxRetriesExceeded','_menuManagerService','univer-space-y-4','attrs','svg','_componentManager','https://console.univer.ai','mcpConfig.connectionError.maxRetriesExceeded','NONE','mcpStatus.clickToConfigure','Bearer\x20','register','MCP\x20Configuration','mcpConfig.validation.apiKeyTooShort','on-line-icon','OTHERS','_handleConfigure','path','showConfigPanel','OffLineIcon','MCP:\x20会话\x20ID\x20已被占用','启用身份验证','mcpConfig.configStep1','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpServerUrl','univer-flex\x20univer-items-start\x20univer-gap-2','Configuration\x20Parameters:','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-sm\x20univer-font-medium','univer-shrink-0\x20univer-text-blue-500','span','Retrying...','Click\x20to\x20configure\x20MCP','Error','univer-flex\x20univer-items-center\x20univer-gap-3','label','Connecting...','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','value','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','配置参数:','DISCONNECTED','__setCustomHeaders','0\x200\x2017\x2016','MCP\x20Unknown\x20Status','univer-flex\x20univer-flex-wrap\x20univer-gap-2','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','27YZnNAF','Saving...','registerCommand','MCP\x20状态未知','复制以下\x20JSON\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','http://www.w3.org/2000/svg','univer_session_id:','1em','enableAutoConnect','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20Session\x20ID\x20Occupied','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20key\x20is\x20required','current','_initStatusComponent','配置保存失败','mcpConfig.connectionError.unauthorized','点击配置\x20MCP','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.save','FAILED','0\x200\x2016\x2016','stringify','保存配置','mcpStatus.clickToConnect','getOwnPropertyDescriptor','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','_config$','MAX_RETRIES_EXCEEDED','univer-bg-red-500','univer-text-blue-600','Configuration\x20saved\x20successfully','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20Disconnected','mcpConfig.apiKeyPlaceholder','next','MCP\x20重连中...','连接中...','connectionError$','API\x20密钥无效,请检查密钥是否正确','add','univer-size-4','white','getItem','push','_uiPartsService','_mcpConnectionController','symbol','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','CONNECTING','univer-size-2\x20univer-rounded-full','noopener\x20noreferrer','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.title','mcpStatus.unknown','您的\x20API\x20密钥安全存储在本地存储中','mcp-ui.command.openConfigPanel','div','trim','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','defineProperty','HelpIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.disconnected','将以下配置添加到您的\x20MCP\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','CloseIcon','配置\x20MCP\x20使用\x20AI\x20操作电子表格','CONNECTED','subscribe','_createConfigPanelComponent','Session\x20ID','check-mark-icon','showDeveloperTools','mcpStatus.networkError','配置无效','会话\x20ID\x20已被占用,请稍后再试','_loading$'];_0x131e=function(){return _0x51bf0d;};return _0x131e();}var Pe=Object[_0x40ccc8(0x297)],Ee=(_0x13fd15,_0x36fc0f,_0x27a5c0)=>_0x36fc0f in _0x13fd15?Pe(_0x13fd15,_0x36fc0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27a5c0}):_0x13fd15[_0x36fc0f]=_0x27a5c0,x=(_0x51d97f,_0x30c0ff,_0x4d3cd8)=>Ee(_0x51d97f,typeof _0x30c0ff!=_0x40ccc8(0x286)?_0x30c0ff+'':_0x30c0ff,_0x4d3cd8);import{LocaleService as _0x107ca3,Inject as _0x1ca309,Injector as _0x3fe1d3,Disposable as _0x6acc8b,IConfigService as _0x1ebc76,ILocalStorageService as _0x4f2aff,ILogService as _0x388d5b,CommandType as _0x1d46da,ICommandService as _0x30479e,DependentOn as _0x8f0b0d,Plugin as _0x44ad04,merge as _0x43d2a8}from'@univerjs/core';import{jsxs as _0xee378a,jsx as _0x5b5ab4}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3ad37c,MCPConnectionError as _0x2e25a2,MCPConnectionController as _0x3eedd7,MCP_PLUGIN_CONFIG_KEY as _0x3c7cee,UniverMCPPlugin as _0x5deffb}from'@univerjs-pro/mcp';import{clsx as _0x3a4900,Input as _0x57b735,Button as _0x276e83,MessageType as _0x15cfd2,Tooltip as _0x2da013}from'@univerjs/design';import{useDependency as _0x41acb3,useObservable as _0x34587d,ComponentManager as _0x381966,connectInjector as _0x77b1a,IUIPartsService as _0x1ba609,IDialogService as _0x25d838,IMessageService as _0x2245a4,BuiltInUIPart as _0x1625f9,MenuItemType as _0x3da010,RibbonStartGroup as _0x3a8c60,IMenuManagerService as _0x3cba23}from'@univerjs/ui';import{BehaviorSubject as _0x520f03}from'rxjs';import{useRef as _0x6c42ea,createElement as _0x2f456f,forwardRef as _0xddccfe,useState as _0x4dc814,useCallback as _0x55100c}from'react';import{ISocketService as _0x36fae0,WebSocketService as _0x168f83}from'@univerjs/network';function b({ref:_0xb9f5fc,..._0x5ddbb3}){const _0x1607cf=_0x40ccc8,{icon:_0xcfb534,id:_0x2f160a,className:_0x45c6ea,extend:_0x37b1ea,..._0xcea507}=_0x5ddbb3,_0x199b48=('univerjs-icon\x20univerjs-icon-'+_0x2f160a+'\x20'+(_0x45c6ea||''))['trim'](),_0x2a0096=_0x6c42ea('_'+We());return ae(_0xcfb534,''+_0x2f160a,{'defIds':_0xcfb534[_0x1607cf(0x220)],'idSuffix':_0x2a0096[_0x1607cf(0x264)]},{'ref':_0xb9f5fc,'className':_0x199b48,..._0xcea507},_0x37b1ea);}function ae(_0x5f2dd8,_0x21b5b5,_0x5ab0bf,_0x888865,_0x358f06){const _0x550c35=_0x40ccc8;return _0x2f456f(_0x5f2dd8[_0x550c35(0x2b9)],{'key':_0x21b5b5,...Ye(_0x5f2dd8,_0x5ab0bf,_0x358f06),..._0x888865},(Ze(_0x5f2dd8,_0x5ab0bf)['children']||[])[_0x550c35(0x2c3)]((_0x4b05b4,_0x4578cb)=>ae(_0x4b05b4,_0x21b5b5+'-'+_0x5f2dd8['tag']+'-'+_0x4578cb,_0x5ab0bf,void 0x0,_0x358f06)));}function Ye(_0xb50425,_0x37b960,_0x168f69){const _0x57fe24=_0x40ccc8,_0x186ad8={..._0xb50425[_0x57fe24(0x22a)]};_0x168f69!=null&&_0x168f69['colorChannel1']&&_0x186ad8[_0x57fe24(0x306)]===_0x57fe24(0x1e0)&&(_0x186ad8[_0x57fe24(0x306)]=_0x168f69[_0x57fe24(0x1e0)]),_0xb50425['tag']===_0x57fe24(0x215)&&_0x186ad8['id']&&(_0x186ad8['id']=_0x186ad8['id']+_0x37b960[_0x57fe24(0x21b)]),Object['entries'](_0x186ad8)['forEach'](([_0x328b79,_0x331235])=>{const _0x5b3db7=_0x57fe24;_0x328b79==='mask'&&typeof _0x331235==_0x5b3db7(0x1e4)&&(_0x186ad8[_0x328b79]=_0x331235[_0x5b3db7(0x301)](/url\(#(.*)\)/,_0x5b3db7(0x21c)+_0x37b960[_0x5b3db7(0x21b)]+')'));});const {defIds:_0x328a74}=_0x37b960;return!_0x328a74||_0x328a74[_0x57fe24(0x204)]===0x0||(_0xb50425['tag']===_0x57fe24(0x210)&&_0x186ad8[_0x57fe24(0x1f0)]&&(_0x186ad8[_0x57fe24(0x1f0)]=_0x186ad8[_0x57fe24(0x1f0)]+_0x37b960[_0x57fe24(0x21b)]),Object['entries'](_0x186ad8)[_0x57fe24(0x214)](([_0x3938b3,_0x5302a1])=>{const _0x5a0010=_0x57fe24;typeof _0x5302a1==_0x5a0010(0x1e4)&&(_0x186ad8[_0x3938b3]=_0x5302a1[_0x5a0010(0x301)](/url\(#(.*)\)/,_0x5a0010(0x21c)+_0x37b960[_0x5a0010(0x21b)]+')'));})),_0x186ad8;}function Ze(_0x3bc1d1,_0x4b8dd6){const _0x326a14=_0x40ccc8;var _0xf1bdf1;const {defIds:_0x2d4bc4}=_0x4b8dd6;return!_0x2d4bc4||_0x2d4bc4['length']===0x0?_0x3bc1d1:_0x3bc1d1[_0x326a14(0x2b9)]===_0x326a14(0x2fa)&&((_0xf1bdf1=_0x3bc1d1['children'])!=null&&_0xf1bdf1[_0x326a14(0x204)])?{..._0x3bc1d1,'children':_0x3bc1d1['children'][_0x326a14(0x2c3)](_0xb4f385=>typeof _0xb4f385['attrs']['id']==_0x326a14(0x1e4)&&_0x2d4bc4&&_0x2d4bc4[_0x326a14(0x2ed)](_0xb4f385[_0x326a14(0x22a)]['id'])?{..._0xb4f385,'attrs':{..._0xb4f385['attrs'],'id':_0xb4f385[_0x326a14(0x22a)]['id']+_0x4b8dd6[_0x326a14(0x21b)]}}:_0xb4f385)}:_0x3bc1d1;}function We(){const _0x12b052=_0x40ccc8;return Math['random']()[_0x12b052(0x1c9)](0x24)[_0x12b052(0x2df)](0x2,0x8);}b['displayName']=_0x40ccc8(0x308);const qe={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x40ccc8(0x305),'viewBox':_0x40ccc8(0x26c),'width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':'path','attrs':{'fill':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x25b),'fillRule':_0x40ccc8(0x1d5),'clipRule':_0x40ccc8(0x1d5)}}]},le=_0xddccfe(function(_0x518d99,_0x49f02d){const _0x21434f=_0x40ccc8;return _0x2f456f(b,Object[_0x21434f(0x208)]({},_0x518d99,{'id':_0x21434f(0x2a3),'ref':_0x49f02d,'icon':qe}));});le['displayName']=_0x40ccc8(0x2d1);const Xe={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x40ccc8(0x305),'viewBox':_0x40ccc8(0x26c),'width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x29c)}}]},ue=_0xddccfe(function(_0x73efde,_0x578bf2){const _0x3405a0=_0x40ccc8;return _0x2f456f(b,Object[_0x3405a0(0x208)]({},_0x73efde,{'id':_0x3405a0(0x2ff),'ref':_0x578bf2,'icon':Xe}));});ue[_0x40ccc8(0x2cc)]=_0x40ccc8(0x29d);const Je={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':_0x40ccc8(0x25c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'fill':'currentColor','d':_0x40ccc8(0x2c6)}},{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x205)}},{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x2c2),'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':_0x40ccc8(0x1d5)}}]},ve=_0xddccfe(function(_0x38a5bf,_0x140453){const _0xcce16b=_0x40ccc8;return _0x2f456f(b,Object[_0xcce16b(0x208)]({},_0x38a5bf,{'id':'help-icon','ref':_0x140453,'icon':Je}));});ve['displayName']=_0x40ccc8(0x298);const Qe={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':_0x40ccc8(0x25c),'fill':_0x40ccc8(0x305),'viewBox':'0\x200\x2016\x2016','width':_0x40ccc8(0x25e),'height':_0x40ccc8(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'stroke':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x24e),'strokeLinecap':_0x40ccc8(0x2e1),'strokeLinejoin':_0x40ccc8(0x2e1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x40ccc8(0x1cd),'attrs':{'id':_0x40ccc8(0x2b2)},'children':[{'tag':'path','attrs':{'fill':_0x40ccc8(0x281),'d':_0x40ccc8(0x2f5)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0xddccfe(function(_0x3bd43d,_0x27bc12){const _0x1bc258=_0x40ccc8;return _0x2f456f(b,Object[_0x1bc258(0x208)]({},_0x3bd43d,{'id':'off-line-icon','ref':_0x27bc12,'icon':Qe}));});de[_0x40ccc8(0x2cc)]=_0x40ccc8(0x23a);const en={'tag':_0x40ccc8(0x22b),'attrs':{'xmlns':_0x40ccc8(0x25c),'fill':_0x40ccc8(0x305),'viewBox':_0x40ccc8(0x252),'width':_0x40ccc8(0x25e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x40ccc8(0x1c1)},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'stroke':_0x40ccc8(0x2c2),'d':_0x40ccc8(0x1ff),'strokeLinecap':_0x40ccc8(0x2e1),'strokeLinejoin':_0x40ccc8(0x2e1),'strokeWidth':1.2}}]},{'tag':_0x40ccc8(0x2fa),'attrs':{},'children':[{'tag':_0x40ccc8(0x1cd),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x40ccc8(0x238),'attrs':{'fill':_0x40ccc8(0x281),'d':_0x40ccc8(0x2f5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x40ccc8(0x2ee)]},ge=_0xddccfe(function(_0xdb79fc,_0x396279){const _0x3efc82=_0x40ccc8;return _0x2f456f(b,Object[_0x3efc82(0x208)]({},_0xdb79fc,{'id':_0x3efc82(0x235),'ref':_0x396279,'icon':en}));});ge[_0x40ccc8(0x2cc)]='OnLineIcon';function nn(_0x202157){const _0x165ae1=_0x40ccc8;var _0x19cb33,_0x4f2097;const {mcpCoreConfig:_0x2ffb26,onSave:_0x18fb59,loading:_0x3a3a4b=!0x1,config:_0x20daa4,connectionStatus$:_0x344681,connectionError$:_0x5bce4e,currentApiKey$:_0x547386,currentSessionId$:_0x411ebb}=_0x202157,_0x655f24=_0x41acb3(_0x107ca3),_0x2f2830=_0x34587d(_0x344681,_0x3ad37c[_0x165ae1(0x250)]),_0x5c1058=_0x34587d(_0x5bce4e,_0x2e25a2[_0x165ae1(0x22f)]),_0x57652b=_0x34587d(_0x411ebb,''),_0x1c5918=_0x34587d(_0x547386,''),[_0xb16823,_0x24a539]=_0x4dc814(_0x1c5918||''),_0x193a44=!0x0,_0x2fe0d5=_0x20daa4[_0x165ae1(0x2a4)]&&_0x2ffb26[_0x165ae1(0x23f)]&&(_0x2ffb26[_0x165ae1(0x23f)][_0x165ae1(0x2ed)](_0x165ae1(0x1cb))||_0x2ffb26['mcpServerUrl'][_0x165ae1(0x2ed)]('univer.ai')),_0x246e9b=(_0x19cb33=_0x2ffb26[_0x165ae1(0x23f)])==null?void 0x0:_0x19cb33[_0x165ae1(0x2ed)](_0x165ae1(0x1cb)),_0x33e623=(_0x4f2097=_0x2ffb26[_0x165ae1(0x23f)])==null?void 0x0:_0x4f2097[_0x165ae1(0x2ed)](_0x165ae1(0x2b5)),_0x2b792b=_0x246e9b?_0x165ae1(0x2be):_0x165ae1(0x22d),_0x16927f=_0x20daa4[_0x165ae1(0x2a4)]&&(_0x246e9b||_0x33e623),[_0x20a9ab,_0x24d693]=_0x4dc814(!_0xb16823[_0x165ae1(0x293)]()),_0x2f0daa=(_0x22e21e,_0x4060c3)=>{const _0x5f3cf3=_0x165ae1;if(_0x4060c3===_0x2e25a2[_0x5f3cf3(0x2e6)])return _0x5f3cf3(0x1f9);switch(_0x22e21e){case _0x3ad37c[_0x5f3cf3(0x29f)]:return _0x5f3cf3(0x2b6);case _0x3ad37c[_0x5f3cf3(0x288)]:case _0x3ad37c['RETRYING']:return _0x5f3cf3(0x2f3);case _0x3ad37c[_0x5f3cf3(0x26b)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x5f3cf3(0x20b);}},_0x1f76fe=(_0x2b6eec,_0x2117af)=>{const _0x18bbf2=_0x165ae1;if(_0x2117af===_0x2e25a2[_0x18bbf2(0x2e6)])return _0x18bbf2(0x274);switch(_0x2b6eec){case _0x3ad37c['CONNECTED']:return _0x18bbf2(0x2fe);case _0x3ad37c['CONNECTING']:case _0x3ad37c[_0x18bbf2(0x1c0)]:return'univer-bg-blue-500';case _0x3ad37c['FAILED']:return'univer-bg-red-500';default:return _0x18bbf2(0x1dc);}},_0xd7d348=_0xe1cde3=>{const _0xd3f325=_0x165ae1;switch(_0xe1cde3){case _0x3ad37c[_0xd3f325(0x29f)]:return _0x655f24['t']('mcpConfig.connectionStatus.connected');case _0x3ad37c[_0xd3f325(0x288)]:return _0x655f24['t'](_0xd3f325(0x1c5));case _0x3ad37c['FAILED']:return _0x655f24['t']('mcpConfig.connectionStatus.failed');case _0x3ad37c[_0xd3f325(0x1c0)]:return _0x655f24['t']('mcpConfig.connectionStatus.retrying');default:return _0x655f24['t'](_0xd3f325(0x1ed));}},_0x21de76=_0xce52d7=>{const _0x5c0d45=_0x165ae1;switch(_0xce52d7){case _0x2e25a2['UNAUTHORIZED']:return _0x655f24['t'](_0x5c0d45(0x267));case _0x2e25a2[_0x5c0d45(0x2ca)]:return _0x655f24['t'](_0x5c0d45(0x20c));case _0x2e25a2[_0x5c0d45(0x1ea)]:return _0x655f24['t']('mcpConfig.connectionError.networkError');case _0x2e25a2['MAX_RETRIES_EXCEEDED']:return _0x655f24['t'](_0x5c0d45(0x22e));default:return'';}},_0x4a3a5c=_0x55100c(()=>{const _0x2c7e46=_0x165ae1,_0x112524={..._0x2ffb26,'apiKey':_0xb16823[_0x2c7e46(0x293)](),'enableAuth':_0x193a44};_0x18fb59(_0x112524);},[_0x2ffb26,_0xb16823,_0x193a44,_0x18fb59]),_0x2a663b=_0xb16823[_0x165ae1(0x293)]()[_0x165ae1(0x204)]>0x0;return _0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x24c),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0xee378a('div',{'className':_0x165ae1(0x249),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x2f4),'children':_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x300),'children':'⚙'})}),_0x5b5ab4(_0x165ae1(0x292),{'children':_0x5b5ab4('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x655f24['t']('mcpConfig.description')})})]})}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2e0),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x3a4900(_0x165ae1(0x28d),_0x2f0daa(_0x2f2830,_0x5c1058)),'children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x3a4900(_0x165ae1(0x289),_0x1f76fe(_0x2f2830,_0x5c1058))}),_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x243),'children':_0xd7d348(_0x2f2830)})]})}),_0x5c1058!==_0x2e25a2[_0x165ae1(0x22f)]&&(_0x2f2830===_0x3ad37c[_0x165ae1(0x26b)]||_0x5c1058===_0x2e25a2[_0x165ae1(0x2e6)])&&_0x5b5ab4('div',{'className':_0x165ae1(0x2b1),'children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x240),'children':[_0x5b5ab4('span',{'className':_0x165ae1(0x2b3),'children':'⚠️'}),_0x5b5ab4('p',{'className':_0x165ae1(0x242),'children':_0x21de76(_0x5c1058)})]})})]}),_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2b7),'children':[_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2eb),'children':[_0xee378a(_0x165ae1(0x24a),{'className':_0x165ae1(0x1e1),'children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'🔑'}),'\x20',_0x655f24['t'](_0x165ae1(0x212)),_0x5b5ab4(_0x165ae1(0x245),{'className':'univer-text-red-500','children':'*'}),_0x2fe0d5&&_0x5b5ab4('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':_0x655f24['t'](_0x165ae1(0x207)),'role':_0x165ae1(0x1f7),'onClick':()=>_0x24d693(!0x0),'children':_0x5b5ab4(ve,{})})]}),_0x5b5ab4(_0x57b735,{'type':'text','placeholder':_0x655f24['t'](_0x165ae1(0x279)),'value':_0xb16823,'disabled':_0x3a3a4b,'autoComplete':'off','onChange':_0x24a539}),_0x5b5ab4('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x655f24['t']('mcpConfig.apiKeyHint')})]}),_0x2fe0d5&&_0x20a9ab&&_0xee378a(_0x165ae1(0x292),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x5b5ab4('a',{'className':_0x165ae1(0x2f2),'role':'button','onClick':()=>_0x24d693(!0x1),'children':_0x5b5ab4(ue,{'className':_0x165ae1(0x280)})}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2dd),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x20e),'children':_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x275),'children':'🚀'})}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2af),'children':[_0x5b5ab4('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x655f24['t'](_0x165ae1(0x207))}),_0x5b5ab4('p',{'className':_0x165ae1(0x1f6),'children':_0x655f24['t'](_0x165ae1(0x2dc))}),_0x5b5ab4('div',{'className':_0x165ae1(0x254),'children':_0x16927f&&_0xee378a('a',{'className':_0x165ae1(0x2fb),'href':_0x2b792b,'target':_0x165ae1(0x1e6),'rel':_0x165ae1(0x28a),'children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'🤖'}),_0x655f24['t'](_0x165ae1(0x28c)),_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x1d8),'children':'↗'})]})}),_0xee378a(_0x165ae1(0x292),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x655f24['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x20daa4[_0x165ae1(0x2a4)]&&_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x294),'children':[_0xee378a('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'🔗'}),'\x20',_0x655f24['t'](_0x165ae1(0x1ef))]}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x229),'children':[_0xee378a('div',{'className':_0x165ae1(0x1fe),'children':[_0x5b5ab4('p',{'className':_0x165ae1(0x1fa),'children':_0x655f24['t'](_0x165ae1(0x2ef))}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2eb),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x269),'children':_0x655f24['t'](_0x165ae1(0x203))}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x299),'children':[_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x245),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x655f24['t'](_0x165ae1(0x23d))]}),_0xee378a('div',{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x2d2),'children':'2'}),_0x655f24['t'](_0x165ae1(0x2c7))]}),_0xee378a(_0x165ae1(0x292),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5b5ab4('span',{'className':_0x165ae1(0x2d2),'children':'3'}),_0x655f24['t'](_0x165ae1(0x1e8))]})]})]})]}),_0xee378a('div',{'className':_0x165ae1(0x2eb),'children':[_0x5b5ab4('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x165ae1(0x233)}),_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x2d7),'children':_0x5b5ab4(_0x165ae1(0x1f2),{'className':_0x165ae1(0x1bf),'children':JSON[_0x165ae1(0x26d)]({'mcpServers':{'univer':{'url':_0x165ae1(0x202)+(_0x57652b||_0x165ae1(0x1d9)),'type':_0x165ae1(0x2bc),'headers':{'Authorization':'Bearer\x20'+(_0xb16823||_0x165ae1(0x213))}}}},null,0x2)})})]}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x1fe),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x655f24['t'](_0x165ae1(0x200))}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x2eb),'children':[_0xee378a(_0x165ae1(0x292),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x262)}),_0xee378a('div',{'className':_0x165ae1(0x21e),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x226),'children':_0x165ae1(0x25d)}),_0x5b5ab4('div',{'className':_0x165ae1(0x1f1),'children':_0x655f24['t'](_0x165ae1(0x1cf))})]})]}),_0xee378a(_0x165ae1(0x292),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x262)}),_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x21e),'children':[_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x226),'children':'Authorization:'}),_0x5b5ab4(_0x165ae1(0x292),{'className':_0x165ae1(0x1f1),'children':_0x655f24['t'](_0x165ae1(0x2e2))})]})]})]})]})]})]}),_0x5b5ab4(_0x276e83,{'onClick':_0x4a3a5c,'disabled':!_0x2a663b||_0x3a3a4b,'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':_0x3a3a4b?_0xee378a('span',{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(_0x165ae1(0x245),{'children':'⟲'}),_0x655f24['t'](_0x165ae1(0x2bb))]}):_0xee378a(_0x165ae1(0x245),{'className':_0x165ae1(0x260),'children':[_0x5b5ab4(le,{}),_0x655f24['t'](_0x165ae1(0x26a))]})}),_0x5b5ab4('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0xee378a(_0x165ae1(0x292),{'className':_0x165ae1(0x216),'children':[_0x5b5ab4(_0x165ae1(0x245),{'className':_0x165ae1(0x244),'children':'💡'}),_0xee378a(_0x165ae1(0x292),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x5b5ab4(_0x165ae1(0x292),{'className':'univer-font-medium','children':_0x165ae1(0x1f4)}),_0xee378a(_0x165ae1(0x292),{'children':['•',_0x655f24['t'](_0x165ae1(0x1d3))]}),_0xee378a(_0x165ae1(0x292),{'children':['•',_0x655f24['t'](_0x165ae1(0x1dd))]})]})]})})]})})]});}const y=_0x40ccc8(0x1c8),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x40ccc8(0x270)],tn=(_0x8d3dcd,_0x3e3f29,_0x4ffc9c,_0x5c5f24)=>{const _0x6ae69f=_0x40ccc8;for(var _0x545032=_0x5c5f24>0x1?void 0x0:_0x5c5f24?rn(_0x3e3f29,_0x4ffc9c):_0x3e3f29,_0x20ed72=_0x8d3dcd[_0x6ae69f(0x204)]-0x1,_0x5e05f1;_0x20ed72>=0x0;_0x20ed72--)(_0x5e05f1=_0x8d3dcd[_0x20ed72])&&(_0x545032=_0x5e05f1(_0x545032)||_0x545032);return _0x545032;},d=(_0x80a462,_0x2c3435)=>(_0x5aaf8e,_0x362885)=>_0x2c3435(_0x5aaf8e,_0x362885,_0x80a462);const U='mcp.apiKey',L='mcp-config-dialog';let I=class extends _0x6acc8b{constructor(_0xb5ec05,_0xd38563,_0x557bdf,_0x1614ba,_0x154b14,_0x1e193c,_0x3e98c8,_0x585583,_0x51184b,_0x1610fe){const _0x4ca231=_0x40ccc8;super(),x(this,_0x4ca231(0x2a8),new _0x520f03(!0x1)),x(this,_0x4ca231(0x1fb),new _0x520f03({})),x(this,_0x4ca231(0x272),new _0x520f03({})),x(this,_0x4ca231(0x2d5),new _0x520f03('')),x(this,_0x4ca231(0x2ec),async _0x23139d=>{const _0x5779b1=_0x4ca231;var _0x1cc44e,_0x518670;this['_loading$']['next'](!0x0);try{const _0x5b2b5f=await this['_validateConfig'](_0x23139d);if(!_0x5b2b5f[_0x5779b1(0x1c4)]){this[_0x5779b1(0x1fc)][_0x5779b1(0x2d3)]({'type':_0x15cfd2[_0x5779b1(0x248)],'content':_0x5b2b5f[_0x5779b1(0x217)]||this[_0x5779b1(0x2cd)]['t'](_0x5779b1(0x2d6))});return;}_0x23139d['apiKey']?await this[_0x5779b1(0x2c8)][_0x5779b1(0x2db)](U,_0x23139d[_0x5779b1(0x2c1)][_0x5779b1(0x293)]()):await this['_localStorageService'][_0x5779b1(0x1ca)](U),this[_0x5779b1(0x2d5)][_0x5779b1(0x27a)](((_0x1cc44e=_0x23139d[_0x5779b1(0x2c1)])==null?void 0x0:_0x1cc44e['trim']())||''),this[_0x5779b1(0x285)][_0x5779b1(0x251)]({'Authorization':'Bearer\x20'+((_0x518670=_0x23139d['apiKey'])==null?void 0x0:_0x518670['trim']())}),this[_0x5779b1(0x1fc)][_0x5779b1(0x2d3)]({'type':_0x15cfd2['Success'],'content':this[_0x5779b1(0x2cd)]['t'](_0x5779b1(0x223))}),setTimeout(()=>{const _0x58d6a7=_0x5779b1;this['_dialogService'][_0x58d6a7(0x1e7)](L);},0x320);}catch(_0x408b33){this[_0x5779b1(0x20a)][_0x5779b1(0x2bf)](_0x5779b1(0x2ac),_0x408b33),this['_messageService'][_0x5779b1(0x2d3)]({'type':_0x15cfd2[_0x5779b1(0x248)],'content':this['_localeService']['t'](_0x5779b1(0x2de))});}finally{this[_0x5779b1(0x2a8)][_0x5779b1(0x27a)](!0x1);}}),(this['_injector']=_0xb5ec05,this[_0x4ca231(0x284)]=_0xd38563,this[_0x4ca231(0x2ab)]=_0x557bdf,this[_0x4ca231(0x2c8)]=_0x1614ba,this[_0x4ca231(0x206)]=_0x154b14,this['_messageService']=_0x1e193c,this[_0x4ca231(0x22c)]=_0x3e98c8,this[_0x4ca231(0x2cd)]=_0x585583,this[_0x4ca231(0x20a)]=_0x51184b,this[_0x4ca231(0x285)]=_0x1610fe,this[_0x4ca231(0x1de)](),this[_0x4ca231(0x2ba)](),this[_0x4ca231(0x2c0)]());}[_0x40ccc8(0x239)](){const _0x28dba9=_0x40ccc8,_0x2ba3b5=this['_configService'][_0x28dba9(0x21d)](y);_0x2ba3b5!=null&&_0x2ba3b5[_0x28dba9(0x2a4)]&&this[_0x28dba9(0x206)][_0x28dba9(0x2e5)]({'id':L,'title':{'title':this[_0x28dba9(0x2cd)]['t'](_0x28dba9(0x28e))},'children':{'label':_0x28dba9(0x1f3)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4dd2f6=_0x28dba9;this[_0x4dd2f6(0x206)]['close'](L);}});}[_0x40ccc8(0x1be)](){const _0x18473a=_0x40ccc8;return this[_0x18473a(0x1fb)]['value'];}['_registerComponent'](){const _0x5b3b05=_0x40ccc8;this['disposeWithMe'](this[_0x5b3b05(0x22c)][_0x5b3b05(0x232)](_0x5b3b05(0x1f3),this[_0x5b3b05(0x2a1)]()));}[_0x40ccc8(0x2a1)](){const _0x562c2f=_0x40ccc8;return _0x77b1a(()=>{const _0x2304e5=_0x2802;var _0x36e71d,_0x1faf9d,_0x595094;return _0x5b5ab4(nn,{'config':this[_0x2304e5(0x272)][_0x2304e5(0x24d)],'mcpCoreConfig':this[_0x2304e5(0x1fb)][_0x2304e5(0x24d)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x2304e5(0x2a8)][_0x2304e5(0x24d)],'connectionStatus$':(_0x36e71d=this[_0x2304e5(0x285)])==null?void 0x0:_0x36e71d[_0x2304e5(0x1d7)],'connectionError$':(_0x1faf9d=this[_0x2304e5(0x285)])==null?void 0x0:_0x1faf9d[_0x2304e5(0x27d)],'currentSessionId$':(_0x595094=this[_0x2304e5(0x285)])==null?void 0x0:_0x595094['sessionId$']});},this[_0x562c2f(0x21a)]);}[_0x40ccc8(0x1de)](){const _0x3bf977=_0x40ccc8;this[_0x3bf977(0x224)](this[_0x3bf977(0x2ab)]['subscribeConfigValue$'](_0x3c7cee)[_0x3bf977(0x2a0)](_0x419949=>{this['_mcpCoreConfig$']['next'](_0x419949||{});}));const _0x44266d=this[_0x3bf977(0x2ab)][_0x3bf977(0x21d)](_0x3c7cee);this['_mcpCoreConfig$'][_0x3bf977(0x27a)](_0x44266d||{}),this[_0x3bf977(0x224)](this['_configService'][_0x3bf977(0x225)](y)[_0x3bf977(0x2a0)](_0x4e5fb2=>{const _0x501125=_0x3bf977;this[_0x501125(0x272)][_0x501125(0x27a)](_0x4e5fb2||{});}));const _0x557a86=this[_0x3bf977(0x2ab)][_0x3bf977(0x21d)](y);this[_0x3bf977(0x272)][_0x3bf977(0x27a)](_0x557a86||{});}async[_0x40ccc8(0x2ba)](){const _0x22e0bc=_0x40ccc8,_0x110ec0=this['_configService'][_0x22e0bc(0x21d)](y);if(!(_0x110ec0!=null&&_0x110ec0[_0x22e0bc(0x2a4)]))return;const _0x10e452=await this[_0x22e0bc(0x2c8)][_0x22e0bc(0x282)](U);_0x10e452&&(this[_0x22e0bc(0x285)][_0x22e0bc(0x251)]({'Authorization':_0x22e0bc(0x231)+_0x10e452}),this[_0x22e0bc(0x2d5)]['next'](_0x10e452));}async[_0x40ccc8(0x2e9)](_0xd75f86){const _0x2c72c3=_0x40ccc8;if(!_0xd75f86[_0x2c72c3(0x2c1)]||_0xd75f86[_0x2c72c3(0x2c1)][_0x2c72c3(0x293)]()[_0x2c72c3(0x204)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2c72c3(0x2cd)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0xd75f86['apiKey'][_0x2c72c3(0x293)]()[_0x2c72c3(0x204)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2c72c3(0x2cd)]['t'](_0x2c72c3(0x234))};try{const _0xa232d1=await this['_injector'][_0x2c72c3(0x1da)](_0x3eedd7)[_0x2c72c3(0x2c4)](_0xd75f86['apiKey']['trim']());return _0xa232d1[_0x2c72c3(0x1c4)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xa232d1['error']||this[_0x2c72c3(0x2cd)]['t'](_0x2c72c3(0x2ae))};}catch(_0x45c4c9){return console[_0x2c72c3(0x2cf)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x45c4c9),{'isValid':!0x0};}}};I=tn([d(0x0,_0x1ca309(_0x3fe1d3)),d(0x1,_0x1ba609),d(0x2,_0x1ebc76),d(0x3,_0x4f2aff),d(0x4,_0x25d838),d(0x5,_0x2245a4),d(0x6,_0x1ca309(_0x381966)),d(0x7,_0x1ca309(_0x107ca3)),d(0x8,_0x388d5b),d(0x9,_0x1ca309(_0x3eedd7))],I);const V={'id':_0x40ccc8(0x291),'type':_0x1d46da['COMMAND'],'handler':async(_0x42ee97,_0x15bccf)=>(_0x42ee97[_0x40ccc8(0x1da)](I)['showConfigPanel'](),!0x0)};function pe(_0x4421f3,_0x5d7738){const _0x3515da=_0x40ccc8;switch(_0x4421f3){case _0x3ad37c[_0x3515da(0x250)]:return _0x3515da(0x29a);case _0x3ad37c[_0x3515da(0x288)]:return'mcpStatus.connecting';case _0x3ad37c['CONNECTED']:return _0x3515da(0x1f8);case _0x3ad37c['FAILED']:switch(_0x5d7738){case _0x2e25a2['UNAUTHORIZED']:return _0x3515da(0x1d0);case _0x2e25a2[_0x3515da(0x2ca)]:return'mcpStatus.sessionOccupied';case _0x2e25a2['NETWORK_ERROR']:return _0x3515da(0x2a5);case _0x2e25a2[_0x3515da(0x273)]:return _0x3515da(0x227);default:return _0x3515da(0x302);}case _0x3ad37c[_0x3515da(0x1c0)]:return _0x3515da(0x307);default:return _0x3515da(0x28f);}}function on(_0x11ba13,_0x505a58,_0x36b2ac,_0x2ba9c1=!0x0){const _0x4f1ae3=_0x40ccc8,_0x40ec85=pe(_0x11ba13,_0x505a58),_0x39934b=_0x36b2ac['t'](_0x40ec85);return _0x2ba9c1?_0x11ba13===_0x3ad37c[_0x4f1ae3(0x250)]&&_0x505a58===_0x2e25a2[_0x4f1ae3(0x2e6)]?_0x39934b+_0x4f1ae3(0x1f5)+_0x36b2ac['t'](_0x4f1ae3(0x230)):_0x11ba13===_0x3ad37c[_0x4f1ae3(0x29f)]?''+_0x39934b:_0x11ba13===_0x3ad37c[_0x4f1ae3(0x250)]||_0x11ba13===_0x3ad37c['FAILED']?_0x39934b+_0x4f1ae3(0x1f5)+_0x36b2ac['t'](_0x4f1ae3(0x26f)):_0x39934b:_0x39934b;}function sn(_0x5791b1){const _0x5eee14=_0x40ccc8;switch(_0x5791b1){case _0x3ad37c[_0x5eee14(0x29f)]:return _0x5eee14(0x2d8);case _0x3ad37c[_0x5eee14(0x288)]:case _0x3ad37c[_0x5eee14(0x1c0)]:return'univer-text-yellow-500';case _0x3ad37c[_0x5eee14(0x26b)]:case _0x3ad37c[_0x5eee14(0x250)]:return _0x5eee14(0x2b4);default:return _0x5eee14(0x1ce);}}function cn(_0x3d0d1f){const _0x29eb87=_0x40ccc8,{status$:_0x51ab0a,error$:_0x129573,onConfigure:_0x2f0958,showClickable:_0xe8a695=!0x0}=_0x3d0d1f,_0x2e4d36=_0x34587d(_0x51ab0a,_0x3ad37c['DISCONNECTED']),_0x1631a7=_0x34587d(_0x129573,_0x2e25a2[_0x29eb87(0x22f)]),_0x59fa25=_0x41acb3(_0x107ca3),_0x3b9245=_0x2e4d36===_0x3ad37c[_0x29eb87(0x29f)];_0x2e4d36===_0x3ad37c['CONNECTING']||_0x3ad37c[_0x29eb87(0x1c0)];const _0x3de7df=_0x59fa25['t'](pe(_0x2e4d36,_0x1631a7)),_0x2da766=on(_0x2e4d36,_0x1631a7,_0x59fa25,_0xe8a695),_0x4cd66b=sn(_0x2e4d36),_0x300731=_0x3b9245?_0x5b5ab4(ge,{}):_0x5b5ab4(de,{}),_0x443847=_0x55100c(()=>{_0xe8a695&&_0x2f0958&&_0x2f0958();},[_0xe8a695,_0x2f0958]);function _0x3ebda5(){const _0x50bbee=_0x29eb87;return _0xee378a(_0x50bbee(0x292),{'className':_0x3a4900(_0x50bbee(0x1e9),_0xe8a695&&_0x2f0958&&_0x50bbee(0x309)),'role':_0x50bbee(0x1f7),'onClick':_0xe8a695&&_0x2f0958?_0x443847:void 0x0,'children':[_0x5b5ab4('div',{'className':_0x3a4900(_0x50bbee(0x219),_0x4cd66b),'children':_0x300731}),_0x5b5ab4(_0x50bbee(0x292),{'className':_0x50bbee(0x2e3),'children':_0x3de7df})]});}return _0x5b5ab4(_0x2da013,{'title':_0x2da766,'placement':_0x29eb87(0x1bd),'children':_0x3ebda5()});}var an=Object[_0x40ccc8(0x270)],ln=(_0x45a4fb,_0x3dd5b8,_0x4f7f4a,_0x43490c)=>{for(var _0x27e9c9=_0x43490c>0x1?void 0x0:_0x43490c?an(_0x3dd5b8,_0x4f7f4a):_0x3dd5b8,_0x28f21b=_0x45a4fb['length']-0x1,_0x54fd92;_0x28f21b>=0x0;_0x28f21b--)(_0x54fd92=_0x45a4fb[_0x28f21b])&&(_0x27e9c9=_0x54fd92(_0x27e9c9)||_0x27e9c9);return _0x27e9c9;},M=(_0x214082,_0x154187)=>(_0x5bb745,_0xbf84d9)=>_0x154187(_0x5bb745,_0xbf84d9,_0x214082);let O=class extends _0x6acc8b{constructor(_0x3f6324,_0x4adeb4,_0x19f183,_0x359670){const _0x457908=_0x40ccc8;super(),this['_injector']=_0x3f6324,this['_connectionController']=_0x4adeb4,this[_0x457908(0x284)]=_0x19f183,this[_0x457908(0x2ab)]=_0x359670,this[_0x457908(0x2d4)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x2c7c8=_0x40ccc8,_0x22daba=this['_configService'][_0x2c7c8(0x21d)](y);_0x22daba!=null&&_0x22daba['showDeveloperTools']&&(this[_0x2c7c8(0x2f7)][_0x2c7c8(0x25f)]=!0x1);}[_0x40ccc8(0x265)](){const _0x4cac52=_0x40ccc8,_0x4ba5d0=this[_0x4cac52(0x2ab)][_0x4cac52(0x21d)](y);(_0x4ba5d0==null?void 0x0:_0x4ba5d0[_0x4cac52(0x209)])!==!0x1&&this[_0x4cac52(0x224)](this[_0x4cac52(0x284)]['registerComponent'](_0x1625f9[_0x4cac52(0x1e2)],()=>{const _0x54b07d=_0x4cac52;var _0x2f7192;return _0x77b1a(un({'status$':this[_0x54b07d(0x2f7)][_0x54b07d(0x1d7)],'error$':this[_0x54b07d(0x2f7)][_0x54b07d(0x27d)],'onConfigure':()=>this[_0x54b07d(0x237)](),'showClickable':(_0x2f7192=_0x4ba5d0==null?void 0x0:_0x4ba5d0[_0x54b07d(0x2a4)])!=null?_0x2f7192:!0x1}),this[_0x54b07d(0x21a)]);}));}['_handleConfigure'](){const _0x405057=_0x40ccc8;this['_injector']['get'](I)[_0x405057(0x239)]();}};function _0x2802(_0x44aa44,_0x27fac3){_0x44aa44=_0x44aa44-0x1bc;const _0x131e91=_0x131e();let _0x2802f0=_0x131e91[_0x44aa44];return _0x2802f0;}O=ln([M(0x0,_0x1ca309(_0x3fe1d3)),M(0x1,_0x1ca309(_0x3eedd7)),M(0x2,_0x1ba609),M(0x3,_0x1ebc76)],O);function un(_0x419b1a){const {status$:_0x2105a5,error$:_0x2d3713,onConfigure:_0x12249e,showClickable:_0x1b549f}=_0x419b1a;return function(){return _0x5b5ab4(cn,{'status$':_0x2105a5,'error$':_0x2d3713,'onConfigure':_0x12249e,'showClickable':_0x1b549f});};}function vn(_0x3b7d7f){const _0x4e8344=_0x40ccc8;return{'id':V['id'],'type':_0x3da010['BUTTON'],'icon':'MenuIcon','title':_0x4e8344(0x28e),'tooltip':_0x4e8344(0x28e)};}const dn={[_0x3a8c60[_0x40ccc8(0x236)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x40ccc8(0x270)],pn=(_0x2472dd,_0x596e7d,_0x365ad9,_0x384dcf)=>{for(var _0x1c1541=_0x384dcf>0x1?void 0x0:_0x384dcf?gn(_0x596e7d,_0x365ad9):_0x596e7d,_0x5efb0e=_0x2472dd['length']-0x1,_0x44bf31;_0x5efb0e>=0x0;_0x5efb0e--)(_0x44bf31=_0x2472dd[_0x5efb0e])&&(_0x1c1541=_0x44bf31(_0x1c1541)||_0x1c1541);return _0x1c1541;},re=(_0x972efe,_0x52b20c)=>(_0x24bca4,_0x4a9741)=>_0x52b20c(_0x24bca4,_0x4a9741,_0x972efe);let D=class extends _0x6acc8b{constructor(_0x1dd3c4,_0x571520){const _0x16d091=_0x40ccc8;super(),this[_0x16d091(0x2ad)]=_0x1dd3c4,this['_menuManagerService']=_0x571520,this[_0x16d091(0x2f9)](),this[_0x16d091(0x2a9)]();}[_0x40ccc8(0x2f9)](){const _0x529dcc=_0x40ccc8;[V][_0x529dcc(0x214)](_0x1db24a=>{const _0x274412=_0x529dcc;this['disposeWithMe'](this[_0x274412(0x2ad)][_0x274412(0x258)](_0x1db24a));});}[_0x40ccc8(0x2a9)](){const _0x3b33f8=_0x40ccc8;this[_0x3b33f8(0x228)][_0x3b33f8(0x1c7)](dn);}};D=pn([re(0x0,_0x30479e),re(0x1,_0x3cba23)],D);const Mn={'mcpStatus':{'disconnected':_0x40ccc8(0x278),'connecting':_0x40ccc8(0x2bd),'connected':_0x40ccc8(0x2f8),'failed':_0x40ccc8(0x304),'retrying':_0x40ccc8(0x2cb),'unknown':_0x40ccc8(0x253),'unauthorized':_0x40ccc8(0x221),'sessionOccupied':_0x40ccc8(0x261),'networkError':_0x40ccc8(0x2fc),'maxRetriesExceeded':_0x40ccc8(0x2ea),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x40ccc8(0x247)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x40ccc8(0x271),'apiKey':_0x40ccc8(0x303),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x40ccc8(0x296),'enableAuth':_0x40ccc8(0x1bc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x40ccc8(0x218),'mcpClientConfig':_0x40ccc8(0x218),'configInstructions':_0x40ccc8(0x2d0),'configStepTitle':_0x40ccc8(0x1df),'configStep1':_0x40ccc8(0x30b),'configStep2':_0x40ccc8(0x20f),'configStep3':_0x40ccc8(0x1e5),'sessionId':_0x40ccc8(0x2a2),'sessionIdDescription':_0x40ccc8(0x2d9),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x40ccc8(0x241),'maxRetries':_0x40ccc8(0x2b8),'save':'Save\x20Configuration','saving':_0x40ccc8(0x257),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x40ccc8(0x276),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x40ccc8(0x287),'univerAiLabel':_0x40ccc8(0x1c2),'getStarted':_0x40ccc8(0x295)},'validation':{'apiKeyRequired':_0x40ccc8(0x263),'apiKeyTooShort':_0x40ccc8(0x23e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x40ccc8(0x1eb),'connecting':_0x40ccc8(0x24b),'connected':_0x40ccc8(0x1fd),'failed':_0x40ccc8(0x2c5),'retrying':_0x40ccc8(0x246)},'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':_0x40ccc8(0x30a)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x40ccc8(0x1cc),'connected':_0x40ccc8(0x2e4),'failed':'MCP\x20连接失败','retrying':_0x40ccc8(0x27b),'unknown':_0x40ccc8(0x259),'unauthorized':_0x40ccc8(0x2ce),'sessionOccupied':_0x40ccc8(0x23b),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x40ccc8(0x268)},'mcpConfig':{'title':'MCP\x20配置','description':_0x40ccc8(0x29e),'apiKey':_0x40ccc8(0x1d1),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x40ccc8(0x30c),'enableAuth':_0x40ccc8(0x23c),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x40ccc8(0x2f6),'mcpClientConfig':_0x40ccc8(0x2f6),'configInstructions':_0x40ccc8(0x29b),'configStepTitle':_0x40ccc8(0x1e3),'configStep1':_0x40ccc8(0x25a),'configStep2':_0x40ccc8(0x277),'configStep3':_0x40ccc8(0x28b),'sessionId':_0x40ccc8(0x2f0),'sessionIdDescription':_0x40ccc8(0x255),'authorizationDescription':_0x40ccc8(0x211),'configParameters':_0x40ccc8(0x24f),'maxRetries':_0x40ccc8(0x2fd),'save':_0x40ccc8(0x26e),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x40ccc8(0x290),'configSaved':'配置保存成功','configError':_0x40ccc8(0x266),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x40ccc8(0x1c6),'univerAiLabel':_0x40ccc8(0x2c9),'getStarted':_0x40ccc8(0x1db)},'validation':{'apiKeyRequired':_0x40ccc8(0x1d2),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x40ccc8(0x2a6),'invalidApiKey':_0x40ccc8(0x27e)},'connectionStatus':{'disconnected':'未连接','connecting':_0x40ccc8(0x27c),'connected':'已连接','failed':'连接失败','retrying':_0x40ccc8(0x1ec)},'connectionError':{'unauthorized':_0x40ccc8(0x2da),'sessionOccupied':_0x40ccc8(0x2a7),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x40ccc8(0x297)],hn=Object[_0x40ccc8(0x270)],Cn=(_0x26bebc,_0xa4bb92,_0x15edc5)=>_0xa4bb92 in _0x26bebc?fn(_0x26bebc,_0xa4bb92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15edc5}):_0x26bebc[_0xa4bb92]=_0x15edc5,mn=(_0x219842,_0x27f756,_0x356d21,_0x491dcd)=>{const _0x3cd844=_0x40ccc8;for(var _0x46f95f=_0x491dcd>0x1?void 0x0:_0x491dcd?hn(_0x27f756,_0x356d21):_0x27f756,_0x25ccfa=_0x219842[_0x3cd844(0x204)]-0x1,_0x3d99ef;_0x25ccfa>=0x0;_0x25ccfa--)(_0x3d99ef=_0x219842[_0x25ccfa])&&(_0x46f95f=_0x3d99ef(_0x46f95f)||_0x46f95f);return _0x46f95f;},P=(_0x32e985,_0x4d87a5)=>(_0x10704c,_0xa1b2ea)=>_0x4d87a5(_0x10704c,_0xa1b2ea,_0x32e985),_n=(_0x2e8ada,_0x4ea314,_0x3a4d15)=>Cn(_0x2e8ada,_0x4ea314+'',_0x3a4d15);let j=class extends _0x44ad04{constructor(_0x44f58c=ie,_0x338838,_0x628d70,_0x509d2a,_0x1c868d,_0x49b9e5){const _0x4e77a5=_0x40ccc8;super(),this[_0x4e77a5(0x222)]=_0x44f58c,this[_0x4e77a5(0x21a)]=_0x338838,this[_0x4e77a5(0x2ab)]=_0x628d70,this['_uiPartsService']=_0x509d2a,this[_0x4e77a5(0x2c8)]=_0x1c868d,this[_0x4e77a5(0x2cd)]=_0x49b9e5;const {..._0x5f0be1}=_0x43d2a8({},ie,this['_config']);this[_0x4e77a5(0x2ab)]['setConfig'](y,_0x5f0be1);}async[_0x40ccc8(0x2e8)](){const _0x27efd1=_0x40ccc8,_0x5591da=[[O],[I],[D]];this[_0x27efd1(0x21a)][_0x27efd1(0x1d4)](_0x36fae0)||_0x5591da[_0x27efd1(0x283)]([_0x36fae0,{'useClass':_0x168f83}]),_0x5591da[_0x27efd1(0x214)](_0x46490e=>this[_0x27efd1(0x21a)][_0x27efd1(0x27f)](_0x46490e)),this['_injector'][_0x27efd1(0x1da)](O),this['_injector'][_0x27efd1(0x1da)](I),this['_injector']['get'](D);}};_n(j,'pluginName','MCP_UI_PLUGIN'),j=mn([_0x8f0b0d(_0x5deffb),P(0x1,_0x1ca309(_0x3fe1d3)),P(0x2,_0x1ebc76),P(0x3,_0x1ba609),P(0x4,_0x4f2aff),P(0x5,_0x1ca309(_0x107ca3))],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
|
-
function
|
|
1
|
+
const _0x3df7aa=_0x4a5f;function _0x4a5f(_0x1d054a,_0x5bcd28){_0x1d054a=_0x1d054a-0x164;const _0x287ea2=_0x287e();let _0x4a5f4a=_0x287ea2[_0x1d054a];return _0x4a5f4a;}function _0x287e(){const _0x2f43b4=['2379184ZhMfnn','Connecting...','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','715197CeMTpA','Enable\x20Authentication','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console','398210rYBfse','7733090TyqUJR','MCP:\x20Network\x20Error','4rfKjFp','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','Connection\x20Failed','205905XRJkAN','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Saving...','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Steps:','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Max\x20Retries\x20Exceeded','6UScHYV','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2qEuxNM','Configuration\x20Parameters:','MCP\x20Configuration','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1185579rAYiSE','MCP:\x20Unauthorized','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','1964275gZUJut'];_0x287e=function(){return _0x2f43b4;};return _0x287e();}(function(_0x1360ec,_0x2ba6b0){const _0x4b7808=_0x4a5f,_0x6d5ada=_0x1360ec();while(!![]){try{const _0x1f3b13=parseInt(_0x4b7808(0x16f))/0x1*(-parseInt(_0x4b7808(0x186))/0x2)+parseInt(_0x4b7808(0x16b))/0x3*(-parseInt(_0x4b7808(0x172))/0x4)+parseInt(_0x4b7808(0x193))/0x5*(-parseInt(_0x4b7808(0x183))/0x6)+parseInt(_0x4b7808(0x179))/0x7+parseInt(_0x4b7808(0x194))/0x8+parseInt(_0x4b7808(0x18e))/0x9+parseInt(_0x4b7808(0x170))/0xa;if(_0x1f3b13===_0x2ba6b0)break;else _0x6d5ada['push'](_0x6d5ada['shift']());}catch(_0x570d0c){_0x6d5ada['push'](_0x6d5ada['shift']());}}}(_0x287e,0x31695));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x3df7aa(0x169),'retrying':_0x3df7aa(0x192),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3df7aa(0x18f),'sessionOccupied':_0x3df7aa(0x17b),'networkError':_0x3df7aa(0x171),'maxRetriesExceeded':_0x3df7aa(0x182),'clickToConnect':_0x3df7aa(0x175),'clickToConfigure':_0x3df7aa(0x177)},'mcpConfig':{'title':_0x3df7aa(0x188),'description':_0x3df7aa(0x164),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x3df7aa(0x17d),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3df7aa(0x16c),'enableAuthHint':_0x3df7aa(0x191),'connectionInfo':_0x3df7aa(0x184),'mcpClientConfig':_0x3df7aa(0x184),'configInstructions':_0x3df7aa(0x185),'configStepTitle':_0x3df7aa(0x17f),'configStep1':_0x3df7aa(0x16d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3df7aa(0x18a),'sessionId':_0x3df7aa(0x168),'sessionIdDescription':_0x3df7aa(0x165),'authorizationDescription':_0x3df7aa(0x181),'configParameters':_0x3df7aa(0x187),'maxRetries':_0x3df7aa(0x190),'save':'Save\x20Configuration','saving':_0x3df7aa(0x17c),'note1':_0x3df7aa(0x18d),'note2':_0x3df7aa(0x18c),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3df7aa(0x17a),'apiApplyInfo':{'title':_0x3df7aa(0x180),'description':_0x3df7aa(0x173),'univerAiLabel':_0x3df7aa(0x16e),'getStarted':_0x3df7aa(0x17e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3df7aa(0x18b),'invalidConfig':_0x3df7aa(0x176),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3df7aa(0x189),'connecting':_0x3df7aa(0x195),'connected':_0x3df7aa(0x196),'failed':_0x3df7aa(0x178),'retrying':_0x3df7aa(0x174)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3df7aa(0x167),'networkError':_0x3df7aa(0x166),'maxRetriesExceeded':_0x3df7aa(0x16a)}}},n=e;export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x86129c=_0x11db;(function(_0x2af369,_0x3784cb){const _0x188e42=_0x11db,_0x45403f=_0x2af369();while(!![]){try{const _0x39bd25=parseInt(_0x188e42(0x194))/0x1*(-parseInt(_0x188e42(0x1af))/0x2)+parseInt(_0x188e42(0x1bb))/0x3*(-parseInt(_0x188e42(0x196))/0x4)+-parseInt(_0x188e42(0x1bc))/0x5+parseInt(_0x188e42(0x19f))/0x6+-parseInt(_0x188e42(0x1b9))/0x7+parseInt(_0x188e42(0x1a6))/0x8+-parseInt(_0x188e42(0x1ae))/0x9*(-parseInt(_0x188e42(0x1b1))/0xa);if(_0x39bd25===_0x3784cb)break;else _0x45403f['push'](_0x45403f['shift']());}catch(_0x21f01a){_0x45403f['push'](_0x45403f['shift']());}}}(_0x2580,0x5e277));function _0x11db(_0x5d3f02,_0x4caa89){_0x5d3f02=_0x5d3f02-0x18f;const _0x258021=_0x2580();let _0x11db99=_0x258021[_0x5d3f02];return _0x11db99;}function _0x2580(){const _0x4cb886=['Session\x20ID','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','72990OyhJKp','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Save\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','4626544AsCQxG','MCP\x20Retrying...','MCP\x20Configuration','API\x20key\x20is\x20required','Configuration\x20Steps:','Disconnected','Enable\x20Authentication','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','72lWnhNk','6730lCoDDw','MCP\x20Unknown\x20Status','1190220RQGSDL','Saving...','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','MCP\x20Connection\x20Failed','89719bhxnRS','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','921753WunVdn','1946955rHTKIv','Configuration\x20saved\x20successfully','Connected','Click\x20to\x20connect\x20MCP','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.','133qRxwbD','Connection\x20Failed','4rUGqic'];_0x2580=function(){return _0x4cb886;};return _0x2580();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x86129c(0x19d),'connected':'MCP\x20Connected','failed':_0x86129c(0x1b8),'retrying':_0x86129c(0x1a7),'unknown':_0x86129c(0x1b0),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x86129c(0x1b4),'networkError':_0x86129c(0x1b3),'maxRetriesExceeded':_0x86129c(0x19c),'clickToConnect':_0x86129c(0x191),'clickToConfigure':_0x86129c(0x19b)},'mcpConfig':{'title':_0x86129c(0x1a8),'description':_0x86129c(0x19a),'apiKey':_0x86129c(0x1b7),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x86129c(0x19e),'enableAuth':_0x86129c(0x1ac),'enableAuthHint':_0x86129c(0x1a5),'connectionInfo':_0x86129c(0x199),'mcpClientConfig':_0x86129c(0x199),'configInstructions':_0x86129c(0x1ad),'configStepTitle':_0x86129c(0x1aa),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x86129c(0x1a0),'configStep3':_0x86129c(0x1a3),'sessionId':_0x86129c(0x197),'sessionIdDescription':_0x86129c(0x192),'authorizationDescription':_0x86129c(0x193),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x86129c(0x1a1),'save':_0x86129c(0x1a4),'saving':_0x86129c(0x1b2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x86129c(0x1ba),'configSaved':_0x86129c(0x18f),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x86129c(0x1b5),'description':_0x86129c(0x198),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x86129c(0x1a9),'apiKeyTooShort':_0x86129c(0x1b6),'invalidConfig':_0x86129c(0x1a2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x86129c(0x1ab),'connecting':'Connecting...','connected':_0x86129c(0x190),'failed':_0x86129c(0x195),'retrying':'Retrying...'},'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':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3bf1cd=_0x194b;function _0x194b(_0x18f81b,_0x69470f){_0x18f81b=_0x18f81b-0x1e7;const _0x3a55c7=_0x3a55();let _0x194b7b=_0x3a55c7[_0x18f81b];return _0x194b7b;}(function(_0x327942,_0xb75d6){const _0x3b7a35=_0x194b,_0x88d122=_0x327942();while(!![]){try{const _0x5b7e40=-parseInt(_0x3b7a35(0x1ff))/0x1+-parseInt(_0x3b7a35(0x1f7))/0x2*(-parseInt(_0x3b7a35(0x1ed))/0x3)+parseInt(_0x3b7a35(0x213))/0x4+-parseInt(_0x3b7a35(0x214))/0x5*(-parseInt(_0x3b7a35(0x1fe))/0x6)+-parseInt(_0x3b7a35(0x1e9))/0x7+-parseInt(_0x3b7a35(0x215))/0x8+parseInt(_0x3b7a35(0x201))/0x9;if(_0x5b7e40===_0xb75d6)break;else _0x88d122['push'](_0x88d122['shift']());}catch(_0xc0545e){_0x88d122['push'](_0x88d122['shift']());}}}(_0x3a55,0x66726));const e={'mcpStatus':{'disconnected':_0x3bf1cd(0x1fa),'connecting':_0x3bf1cd(0x210),'connected':_0x3bf1cd(0x20e),'failed':_0x3bf1cd(0x1f3),'retrying':_0x3bf1cd(0x1fd),'unknown':_0x3bf1cd(0x207),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3bf1cd(0x202),'networkError':_0x3bf1cd(0x1f4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3bf1cd(0x200),'clickToConfigure':_0x3bf1cd(0x1fb)},'mcpConfig':{'title':_0x3bf1cd(0x211),'description':_0x3bf1cd(0x216),'apiKey':_0x3bf1cd(0x205),'apiKeyPlaceholder':_0x3bf1cd(0x1f5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3bf1cd(0x1ea),'connectionInfo':_0x3bf1cd(0x204),'mcpClientConfig':_0x3bf1cd(0x204),'configInstructions':_0x3bf1cd(0x1fc),'configStepTitle':_0x3bf1cd(0x1f8),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3bf1cd(0x212),'configStep3':_0x3bf1cd(0x1f0),'sessionId':_0x3bf1cd(0x20f),'sessionIdDescription':_0x3bf1cd(0x20d),'authorizationDescription':_0x3bf1cd(0x20a),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x3bf1cd(0x209),'save':_0x3bf1cd(0x20b),'saving':_0x3bf1cd(0x203),'note1':_0x3bf1cd(0x1f6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3bf1cd(0x1ef),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3bf1cd(0x208),'description':_0x3bf1cd(0x1f1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3bf1cd(0x1f2)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3bf1cd(0x1f9)},'connectionStatus':{'disconnected':_0x3bf1cd(0x1ec),'connecting':'Connecting...','connected':_0x3bf1cd(0x1e7),'failed':'Connection\x20Failed','retrying':_0x3bf1cd(0x206)},'connectionError':{'unauthorized':_0x3bf1cd(0x1ee),'sessionOccupied':_0x3bf1cd(0x1e8),'networkError':_0x3bf1cd(0x20c),'maxRetriesExceeded':_0x3bf1cd(0x1eb)}}},n=e;function _0x3a55(){const _0x32dd87=['Retrying...','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','Save\x20Configuration','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.','MCP\x20Connected','Session\x20ID','MCP\x20Connecting...','MCP\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2653520kofAJF','4745IOEezs','4303376KjDWTo','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2351251HdMiOW','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','12TgSnul','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','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.','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','240764VfcGER','Configuration\x20Steps:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','1542UrZFba','629569rACyff','Click\x20to\x20connect\x20MCP','4807845FCKHXU','MCP:\x20Session\x20ID\x20Occupied','Saving...','MCP\x20Client\x20Configuration','API\x20Key'];_0x3a55=function(){return _0x32dd87;};return _0x3a55();}export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2057fa=_0x19a8;function _0x19a8(_0x6525b9,_0x245139){_0x6525b9=_0x6525b9-0x85;const _0x3d1b5f=_0x3d1b();let _0x19a853=_0x3d1b5f[_0x6525b9];return _0x19a853;}(function(_0x451451,_0x47eca9){const _0x242819=_0x19a8,_0xc5d4de=_0x451451();while(!![]){try{const _0x52fb3f=parseInt(_0x242819(0x94))/0x1+-parseInt(_0x242819(0x90))/0x2*(parseInt(_0x242819(0x86))/0x3)+-parseInt(_0x242819(0xa6))/0x4*(parseInt(_0x242819(0xa2))/0x5)+parseInt(_0x242819(0xa3))/0x6*(-parseInt(_0x242819(0x92))/0x7)+-parseInt(_0x242819(0x8d))/0x8*(parseInt(_0x242819(0xb3))/0x9)+-parseInt(_0x242819(0x9d))/0xa+parseInt(_0x242819(0xa4))/0xb;if(_0x52fb3f===_0x47eca9)break;else _0xc5d4de['push'](_0xc5d4de['shift']());}catch(_0x374513){_0xc5d4de['push'](_0xc5d4de['shift']());}}}(_0x3d1b,0x53e56));const e={'mcpStatus':{'disconnected':_0x2057fa(0x9c),'connecting':_0x2057fa(0x85),'connected':_0x2057fa(0x97),'failed':_0x2057fa(0xb1),'retrying':_0x2057fa(0x87),'unknown':_0x2057fa(0xa8),'unauthorized':_0x2057fa(0x9a),'sessionOccupied':_0x2057fa(0xb0),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2057fa(0xa5),'clickToConnect':_0x2057fa(0x99),'clickToConfigure':_0x2057fa(0xb5)},'mcpConfig':{'title':_0x2057fa(0xa7),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2057fa(0xaa),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2057fa(0x8e),'enableAuth':_0x2057fa(0xaf),'enableAuthHint':_0x2057fa(0xb4),'connectionInfo':_0x2057fa(0xa9),'mcpClientConfig':_0x2057fa(0xa9),'configInstructions':_0x2057fa(0x96),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2057fa(0xb6),'configStep2':_0x2057fa(0xac),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2057fa(0x9f),'sessionIdDescription':_0x2057fa(0x8f),'authorizationDescription':_0x2057fa(0xa1),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x2057fa(0x9e),'saving':_0x2057fa(0x8a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2057fa(0x8c),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2057fa(0x91),'apiApplyInfo':{'title':_0x2057fa(0xad),'description':_0x2057fa(0x89),'univerAiLabel':_0x2057fa(0x98),'getStarted':_0x2057fa(0x9b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2057fa(0xab),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2057fa(0x95)},'connectionStatus':{'disconnected':_0x2057fa(0x88),'connecting':'Connecting...','connected':_0x2057fa(0xa0),'failed':_0x2057fa(0xb2),'retrying':_0x2057fa(0x93)},'connectionError':{'unauthorized':_0x2057fa(0x8b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2057fa(0xae)}}},n=e;export{n as default};function _0x3d1b(){const _0x333e14=['2aLdelo','Failed\x20to\x20save\x20configuration','146293RFyGWO','Retrying...','543141LpqkLd','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','6762910UWJBsL','Save\x20Configuration','Session\x20ID','Connected','API\x20key\x20with\x20Bearer\x20prefix.','140qLImuS','6ZNnrgu','21661552TcfaSs','MCP:\x20Max\x20Retries\x20Exceeded','94748GhsxFT','MCP\x20Configuration','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connection\x20Failed','Connection\x20Failed','36gBASBl','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','1564575yQzIZX','MCP\x20Retrying...','Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','573568WGZNQA','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x3d1b=function(){return _0x333e14;};return _0x3d1b();}
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3fcb0a=_0x3fe5;function _0x240d(){const _0x42f977=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','38588242VEycgp','398394eErFnu','API\x20key\x20with\x20Bearer\x20prefix.','993670zjGDXS','49JgFSeX','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Retrying...','3lwpAdz','API\x20Key','9677ehTjxN','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1199696CfLQFx','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2116046kygOMp','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Retrying...','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','5952168hgIqgq','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20configure\x20MCP','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','Disconnected','Enable\x20Authentication','20AaEZuy','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Save\x20Configuration','12JBQakA','Configuration\x20Steps:','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Disconnected','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','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'];_0x240d=function(){return _0x42f977;};return _0x240d();}(function(_0x198c6c,_0x44b88e){const _0x4bf161=_0x3fe5,_0x155ceb=_0x198c6c();while(!![]){try{const _0x268a6f=parseInt(_0x4bf161(0x17a))/0x1+parseInt(_0x4bf161(0x17f))/0x2*(-parseInt(_0x4bf161(0x178))/0x3)+-parseInt(_0x4bf161(0x163))/0x4*(-parseInt(_0x4bf161(0x170))/0x5)+-parseInt(_0x4bf161(0x185))/0x6+-parseInt(_0x4bf161(0x171))/0x7*(parseInt(_0x4bf161(0x17c))/0x8)+-parseInt(_0x4bf161(0x16e))/0x9*(parseInt(_0x4bf161(0x15f))/0xa)+parseInt(_0x4bf161(0x16d))/0xb;if(_0x268a6f===_0x44b88e)break;else _0x155ceb['push'](_0x155ceb['shift']());}catch(_0x5a7ebf){_0x155ceb['push'](_0x155ceb['shift']());}}}(_0x240d,0xe1f90));const e={'mcpStatus':{'disconnected':_0x3fcb0a(0x167),'connecting':_0x3fcb0a(0x15c),'connected':'MCP\x20Connected','failed':_0x3fcb0a(0x169),'retrying':_0x3fcb0a(0x177),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3fcb0a(0x175),'clickToConnect':_0x3fcb0a(0x165),'clickToConfigure':_0x3fcb0a(0x187)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3fcb0a(0x176),'apiKey':_0x3fcb0a(0x179),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3fcb0a(0x15a),'enableAuth':_0x3fcb0a(0x15e),'enableAuthHint':_0x3fcb0a(0x16b),'connectionInfo':_0x3fcb0a(0x168),'mcpClientConfig':_0x3fcb0a(0x168),'configInstructions':_0x3fcb0a(0x17e),'configStepTitle':_0x3fcb0a(0x164),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3fcb0a(0x166),'configStep3':_0x3fcb0a(0x184),'sessionId':'Session\x20ID','sessionIdDescription':_0x3fcb0a(0x17d),'authorizationDescription':_0x3fcb0a(0x16f),'configParameters':_0x3fcb0a(0x174),'maxRetries':'Max\x20Retries','save':_0x3fcb0a(0x162),'saving':_0x3fcb0a(0x188),'note1':_0x3fcb0a(0x160),'note2':_0x3fcb0a(0x186),'configSaved':_0x3fcb0a(0x161),'configError':_0x3fcb0a(0x172),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3fcb0a(0x16a),'univerAiLabel':_0x3fcb0a(0x183),'getStarted':_0x3fcb0a(0x180)},'validation':{'apiKeyRequired':_0x3fcb0a(0x181),'apiKeyTooShort':_0x3fcb0a(0x16c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3fcb0a(0x15d),'connecting':'Connecting...','connected':'Connected','failed':_0x3fcb0a(0x173),'retrying':_0x3fcb0a(0x182)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3fcb0a(0x17b),'networkError':_0x3fcb0a(0x15b),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x3fe5(_0x5c3a8c,_0x2b1b62){_0x5c3a8c=_0x5c3a8c-0x15a;const _0x240dab=_0x240d();let _0x3fe556=_0x240dab[_0x5c3a8c];return _0x3fe556;}export{n as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x10bd(_0x1c3b4f,_0x41eec5){_0x1c3b4f=_0x1c3b4f-0x1ec;const _0x1ea034=_0x1ea0();let _0x10bdf0=_0x1ea034[_0x1c3b4f];return _0x10bdf0;}const _0x2ab541=_0x10bd;function _0x1ea0(){const _0x24c8d0=['ネットワーク接続エラー。インターネット接続を確認してください','設定パラメータ:','設定手順:','再試行中...','MCP\x20接続中...','MCP:\x20認証されていません','セキュアな接続のために認証を有効にする','数秒でAPIキーを取得','MCP\x20接続失敗','クリックしてMCPに接続','19368IWAcBW','1750218sfWxkC','無効な設定','MCP:\x20セッションIDが使用中','接続中...','APIキーはこのブラウザのローカルに保存されます','271290KNLviw','クリックしてMCPを設定','無効なAPIキーです。キーが正しいか確認してください','APIキーを入力してください','Univer\x20AIコンソール','MCPクライアント設定','MCPクライアントの設定ファイルに設定を追加','2179170ghyVNQ','APIキーは10文字以上である必要があります','セッションID','未接続','接続失敗','5jejXor','Bearerプレフィックス付きのAPIキー。','160877VKnkAH','MCP\x20不明な状態','設定の変更は直ちに有効になります','最大再試行回数を超過しました。後でもう一度お試しください','67851SSEGPA','MCPを設定してAIでスプレッドシートを操作','16dOPucQ','MCP:\x20最大再試行回数を超過','接続済み','APIキー','631309OQFQak','APIキーは必須です','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','保存中...','MCP\x20再試行中...','以下のJSON設定をコピー','認証に失敗しました。APIキーを確認してください','最大再試行回数','設定を保存','MCPクライアントを再起動して設定を適用','MCP設定','MCP\x20未接続','8NwskJL'];_0x1ea0=function(){return _0x24c8d0;};return _0x1ea0();}(function(_0xb51d1,_0x4baf8e){const _0x87475e=_0x10bd,_0x5e4b7f=_0xb51d1();while(!![]){try{const _0x112a63=parseInt(_0x87475e(0x21f))/0x1+parseInt(_0x87475e(0x211))/0x2+parseInt(_0x87475e(0x20b))/0x3*(parseInt(_0x87475e(0x1f0))/0x4)+parseInt(_0x87475e(0x21d))/0x5*(-parseInt(_0x87475e(0x20c))/0x6)+-parseInt(_0x87475e(0x1f4))/0x7*(parseInt(_0x87475e(0x200))/0x8)+parseInt(_0x87475e(0x1ee))/0x9+parseInt(_0x87475e(0x218))/0xa;if(_0x112a63===_0x4baf8e)break;else _0x5e4b7f['push'](_0x5e4b7f['shift']());}catch(_0x310542){_0x5e4b7f['push'](_0x5e4b7f['shift']());}}}(_0x1ea0,0x28818));const e={'mcpStatus':{'disconnected':_0x2ab541(0x1ff),'connecting':_0x2ab541(0x205),'connected':'MCP\x20接続済み','failed':_0x2ab541(0x209),'retrying':_0x2ab541(0x1f8),'unknown':_0x2ab541(0x220),'unauthorized':_0x2ab541(0x206),'sessionOccupied':_0x2ab541(0x20e),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x2ab541(0x1f1),'clickToConnect':_0x2ab541(0x20a),'clickToConfigure':_0x2ab541(0x212)},'mcpConfig':{'title':_0x2ab541(0x1fe),'description':_0x2ab541(0x1ef),'apiKey':_0x2ab541(0x1f3),'apiKeyPlaceholder':_0x2ab541(0x214),'apiKeyHint':_0x2ab541(0x210),'enableAuth':'認証を有効にする','enableAuthHint':_0x2ab541(0x207),'connectionInfo':_0x2ab541(0x216),'mcpClientConfig':_0x2ab541(0x216),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x2ab541(0x203),'configStep1':_0x2ab541(0x1f9),'configStep2':_0x2ab541(0x217),'configStep3':_0x2ab541(0x1fd),'sessionId':_0x2ab541(0x21a),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x2ab541(0x21e),'configParameters':_0x2ab541(0x202),'maxRetries':_0x2ab541(0x1fb),'save':_0x2ab541(0x1fc),'saving':_0x2ab541(0x1f7),'note1':_0x2ab541(0x1ec),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':'APIキーとは?','description':_0x2ab541(0x1f6),'univerAiLabel':_0x2ab541(0x215),'getStarted':_0x2ab541(0x208)},'validation':{'apiKeyRequired':_0x2ab541(0x1f5),'apiKeyTooShort':_0x2ab541(0x219),'invalidConfig':_0x2ab541(0x20d),'invalidApiKey':_0x2ab541(0x213)},'connectionStatus':{'disconnected':_0x2ab541(0x21b),'connecting':_0x2ab541(0x20f),'connected':_0x2ab541(0x1f2),'failed':_0x2ab541(0x21c),'retrying':_0x2ab541(0x204)},'connectionError':{'unauthorized':_0x2ab541(0x1fa),'sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':_0x2ab541(0x201),'maxRetriesExceeded':_0x2ab541(0x1ed)}}};export{e as default};
|