@univerjs-pro/mcp-ui 0.19.0 → 0.20.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/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3eccf6=_0x6f34;(function(_0x3d9143,_0x1c5cba){const _0x4a28cb=_0x6f34,_0x40c0f6=_0x3d9143();while(!![]){try{const _0x4c2f6d=parseInt(_0x4a28cb(0x290))/0x1+parseInt(_0x4a28cb(0x26d))/0x2+parseInt(_0x4a28cb(0x214))/0x3+parseInt(_0x4a28cb(0x2a5))/0x4*(-parseInt(_0x4a28cb(0x265))/0x5)+-parseInt(_0x4a28cb(0x1a9))/0x6+parseInt(_0x4a28cb(0x1cb))/0x7+-parseInt(_0x4a28cb(0x268))/0x8;if(_0x4c2f6d===_0x1c5cba)break;else _0x40c0f6['push'](_0x40c0f6['shift']());}catch(_0x3c9471){_0x40c0f6['push'](_0x40c0f6['shift']());}}}(_0x35dc,0x7d66e),Object[_0x3eccf6(0x190)](exports,Symbol[_0x3eccf6(0x1f4)],{'value':_0x3eccf6(0x1ab)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function _0x35dc(){const _0x4a017e=['重启您的\x20MCP\x20客户端以使配置生效','MCPConfigUIController','mcp.apiKey','1694526QoXklS','0.19.0','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20密钥无效,请检查密钥是否正确','mcpConfig.configParameters','WebSocketService','get','univer-space-y-5','Enable\x20Authentication','保存配置','什么是\x20API\x20密钥?','您的\x20API\x20密钥安全存储在本地存储中','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','zhCN','mcpConfig.connectionError.maxRetriesExceeded','CONNECTING','disposeWithMe','_componentManager','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.configSaved','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','RETRYING','MCP\x20Client\x20Configuration','useCallback','univer-size-4','https://console.univer.ai','mcpConfig.configStepTitle','useObservable','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','iterator','univer-flex\x20univer-items-start\x20univer-gap-3','_initializeCommands','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Configuration\x20saved\x20successfully','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20Parameters:','univer-shrink-0\x20univer-text-blue-500','univer-flex\x20univer-items-center','univer-text-white','validateApiKey','div','FAILED','https://console.univer.plus','decorate','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Plugin','<SESSION_ID>','mcpStatus.maxRetriesExceeded','未连接','mcpConfig.description','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','超出最大重试次数,请稍后再试','text','bottom','mcpConfig.sessionIdDescription','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initializeMenus','LocaleService','Enter\x20your\x20API\x20key','ILogService','has','onStarting','mcpStatus.connecting','_messageService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_config','_config$','Copy\x20the\x20JSON\x20configuration\x20below','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-4','mcpConfig.connectionStatus.connecting','Disconnected','showConfigPanel','MCP\x20配置','string','_createConfigPanelComponent','UniverMCPUIPlugin','5wYTOXT','_uiPartsService','univer.ai','13032bhcFLe','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Error','mcpConfig.title','object','1346660PjNqDQ','value','connectionStatus$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpConfig.connectionStatus.retrying','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex-1','Injector','BUTTON','next','SESSION_ID_OCCUPIED','isValid','COMMAND','IConfigService','_localeService','MCP\x20客户端配置','default','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_connectionController','trim','mcpConfig.authorizationDescription','连接失败','MCPConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-3','apiKey','mcpConfig.apiKeyHint','univer-font-medium','setConfig','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','Max\x20Retries','packageName','univer-bg-blue-500','配置保存失败','univer-text-red-500','最大重试次数','346364zLEBoT','register','connectInjector','mcpConfig.validation.invalidApiKey','span','univer.plus','NONE','mcpConfig.configError','mcpConfig.configStep2','Button','配置无效','Success','\x20-\x20','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_commandService','mcpConfig.configInstructions','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','API\x20密钥不能为空','MCP\x20已断开','MCPConnectionUIController','点击连接\x20MCP','1986764alRxXO','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.validation.invalidConfig','ILocalStorageService','jsx','function','OpenMCPConfigPanelCommand','subscribeConfigValue$','CloseIcon','配置更改将立即生效','getItem','univer-text-green-500','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-text-gray-500','IUIPartsService','mcpServerUrl','univer-min-w-0\x20univer-flex-1','Enable\x20authentication\x20for\x20secure\x20connections','HEADER_MENU','univer-text-gray-400','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','_logService','MCP\x20Connected','MCP:\x20未授权','Click\x20to\x20configure\x20MCP','button','mcpConfig.note2','mcpConfig.connectionError.unauthorized','univer-flex\x20univer-items-start\x20univer-gap-2','UNAUTHORIZED','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.apiApplyInfo.getStarted','mcpConfig.connectionInfo','_handleConfigure','网络连接错误,请检查您的网络连接','MCP:\x20会话\x20ID\x20已被占用','univer-bg-red-500','mcpConfig.connectionError.sessionOccupied','_registerComponent','Tooltip','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','配置保存成功','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','enUS','API\x20key\x20with\x20Bearer\x20prefix.','Inject','MCP:\x20网络错误','复制以下\x20JSON\x20配置','mcp-ui.command.openConfigPanel','showStatus','_dialogService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','MCP\x20已连接','setItem','version','连接中...','MenuIcon','已连接','univer-flex\x20univer-items-center\x20univer-gap-2','MCPConnectionError','mcpConfig.validation.apiKeyTooShort','errorMessage','MCP:\x20Network\x20Error','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mergeMenu','<API_KEY>','UniverMCPPlugin','noopener\x20noreferrer','BuiltInUIPart','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','_initStatusComponent','MCP_PLUGIN_CONFIG_KEY','MCP:\x20Max\x20Retries\x20Exceeded','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.connectionStatus.failed','启用身份验证以获得安全连接','OTHERS','defineProperty','mcpConfig.note1','NETWORK_ERROR','MCP\x20Unknown\x20Status','MCP\x20连接中...','mcpConfig.configStep3','merge','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','API\x20密钥长度至少需要\x2010\x20位','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥','MCP\x20状态未知','mcpStatus.clickToConfigure','includes','MessageType','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','useDependency','ICommandService','Bearer\x20','Retrying...','配置参数:','clsx','label','mcpStatus.networkError','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','5411952BpUqPR','_configService','Module','mcpStatus.retrying','univer-space-y-2','Failed\x20to\x20save\x20configuration','MCPConnectionController','MAX_RETRIES_EXCEEDED','univer-text-xs\x20univer-text-gray-500','ISocketService','mcpConfig.save','API\x20Key','pre','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connecting...','show','connectionError$','subscribe','配置步骤:','HelpIcon','warn','__setCustomHeaders','请输入您的\x20API\x20密钥','Disposable','保存中...','_injector','CONNECTED','_validateConfig','_blank','Invalid\x20configuration','mcpStatus.sessionOccupied','univer-space-y-3','showDeveloperTools','2305954WJKXmH','将以下配置添加到您的\x20MCP\x20客户端设置中:','Authorization:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Session\x20ID','mcp-ui.config','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.apiKeyPlaceholder','_loading$','mcpStatus.unknown','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.apiKey','mcpConfig.configStep1','DependentOn','_initAutoConnect','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_mcpCoreConfig$','mcpConfig.apiApplyInfo.title','MCP:\x20超出最大重试次数','MenuItemType','mcpConfig.saving','mcpStatus.failed','MCPConnectionStatus','_loadStoredApiKey','univer-text-yellow-500','CheckMarkIcon','_localStorageService','add','mcpConfig.connectionStatus.disconnected','BehaviorSubject','prototype','Connecting...','MCP\x20连接失败','univer-text-xs\x20univer-text-gray-600','symbol','OnLineIcon','mcpConfig.apiApplyInfo.description','http','close','mcpStatus.unauthorized','toStringTag','_mcpConnectionController','_menuManagerService','univer_session_id:','length','error','mcpStatus.disconnected','jsxs','getConfig','Configuration\x20Notes:','useState','univer-text-sm\x20univer-font-medium','重连中...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Input','API\x20key\x20is\x20required','_handleConfigSave','removeItem','mcpConfig.connectionError.networkError','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','点击配置\x20MCP','RibbonStartGroup','off','_initConfigSync','_apiKey$','enableAutoConnect','getOwnPropertyDescriptor','DISCONNECTED','权限验证失败,请检查您的\x20API\x20密钥'];_0x35dc=function(){return _0x4a017e;};return _0x35dc();}function l(_0x4655af){const _0x3eb18b=_0x3eccf6;var _0x5910e0,_0x78909e;let {mcpCoreConfig:_0x5d566d,onSave:_0x4d8ffe,loading:_0x474337=!0x1,config:_0x2637ce,connectionStatus$:_0x57500e,connectionError$:_0x1ca9bc,currentApiKey$:_0x3bd242,currentSessionId$:_0x4352c1}=_0x4655af,_0x4ac9aa=(0x0,r[_0x3eb18b(0x1a0)])(e[_0x3eb18b(0x251)]),_0x40aba6=(0x0,r[_0x3eb18b(0x231)])(_0x57500e,t[_0x3eb18b(0x1e2)][_0x3eb18b(0x20f)]),_0x2931ed=(0x0,r[_0x3eb18b(0x231)])(_0x1ca9bc,t[_0x3eb18b(0x17d)]['NONE']),_0x49689d=(0x0,r[_0x3eb18b(0x231)])(_0x4352c1,''),[_0x3bbe40,_0x5851b7]=(0x0,o[_0x3eb18b(0x1fe)])((0x0,r[_0x3eb18b(0x231)])(_0x3bd242,'')||''),_0x1ae6c1=_0x2637ce[_0x3eb18b(0x1ca)]&&_0x5d566d[_0x3eb18b(0x2b4)]&&(_0x5d566d[_0x3eb18b(0x2b4)][_0x3eb18b(0x19d)](_0x3eb18b(0x295))||_0x5d566d['mcpServerUrl']['includes'](_0x3eb18b(0x267))),_0x417fba=(_0x5910e0=_0x5d566d[_0x3eb18b(0x2b4)])==null?void 0x0:_0x5910e0[_0x3eb18b(0x19d)]('univer.plus'),_0x4e549f=(_0x78909e=_0x5d566d[_0x3eb18b(0x2b4)])==null?void 0x0:_0x78909e[_0x3eb18b(0x19d)]('univer.ai'),_0x417a93=_0x417fba?_0x3eb18b(0x241):_0x3eb18b(0x22f),_0x5efdab=_0x2637ce[_0x3eb18b(0x1ca)]&&(_0x417fba||_0x4e549f),[_0x2325e0,_0xa99540]=(0x0,o['useState'])(!_0x3bbe40['trim']()),_0x45b5c3=(_0x4306c5,_0x497a80)=>{const _0x377341=_0x3eb18b;if(_0x497a80===t['MCPConnectionError'][_0x377341(0x2c2)])return _0x377341(0x1da);switch(_0x4306c5){case t[_0x377341(0x1e2)][_0x377341(0x1c4)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case t[_0x377341(0x1e2)][_0x377341(0x224)]:case t[_0x377341(0x1e2)][_0x377341(0x22b)]:return _0x377341(0x24f);case t['MCPConnectionStatus'][_0x377341(0x240)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x377341(0x270);}},_0x4f7c85=(_0x216b10,_0x26cdbe)=>{const _0x1f6bb5=_0x3eb18b;if(_0x26cdbe===t[_0x1f6bb5(0x17d)][_0x1f6bb5(0x2c2)])return _0x1f6bb5(0x2c9);switch(_0x216b10){case t[_0x1f6bb5(0x1e2)]['CONNECTED']:return'univer-bg-green-500';case t[_0x1f6bb5(0x1e2)][_0x1f6bb5(0x224)]:case t[_0x1f6bb5(0x1e2)][_0x1f6bb5(0x22b)]:return _0x1f6bb5(0x28c);case t[_0x1f6bb5(0x1e2)][_0x1f6bb5(0x240)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x1ccc2a=_0x3e4b4a=>{const _0x42ae1c=_0x3eb18b;switch(_0x3e4b4a){case t[_0x42ae1c(0x1e2)][_0x42ae1c(0x1c4)]:return _0x4ac9aa['t'](_0x42ae1c(0x2b1));case t['MCPConnectionStatus'][_0x42ae1c(0x224)]:return _0x4ac9aa['t'](_0x42ae1c(0x25e));case t[_0x42ae1c(0x1e2)][_0x42ae1c(0x240)]:return _0x4ac9aa['t'](_0x42ae1c(0x18d));case t[_0x42ae1c(0x1e2)][_0x42ae1c(0x22b)]:return _0x4ac9aa['t'](_0x42ae1c(0x271));default:return _0x4ac9aa['t'](_0x42ae1c(0x1e8));}},_0x52cf3c=_0x116997=>{const _0x21937e=_0x3eb18b;switch(_0x116997){case t[_0x21937e(0x17d)][_0x21937e(0x2c2)]:return _0x4ac9aa['t'](_0x21937e(0x2c0));case t[_0x21937e(0x17d)]['SESSION_ID_OCCUPIED']:return _0x4ac9aa['t'](_0x21937e(0x2ca));case t[_0x21937e(0x17d)][_0x21937e(0x192)]:return _0x4ac9aa['t'](_0x21937e(0x206));case t[_0x21937e(0x17d)]['MAX_RETRIES_EXCEEDED']:return _0x4ac9aa['t'](_0x21937e(0x223));default:return'';}},_0x4f8778=(0x0,o[_0x3eb18b(0x22d)])(()=>{const _0x363c12=_0x3eb18b;_0x4d8ffe({..._0x5d566d,'apiKey':_0x3bbe40[_0x363c12(0x280)](),'enableAuth':!0x0});},[_0x5d566d,_0x3bbe40,!0x0,_0x4d8ffe]),_0x58569b=_0x3bbe40['trim']()[_0x3eb18b(0x1f8)]>0x0;return(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x269),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x284),'children':[(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x197),'children':(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x23d),'children':'⚙'})}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'children':(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x2b2),'children':_0x4ac9aa['t'](_0x3eb18b(0x249))})})]})}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x29d),'children':[(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':(0x0,n[_0x3eb18b(0x1a5)])(_0x3eb18b(0x27e),_0x45b5c3(_0x40aba6,_0x2931ed)),'children':(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':(0x0,n[_0x3eb18b(0x1a5)])('univer-size-2\x20univer-rounded-full',_0x4f7c85(_0x40aba6,_0x2931ed))}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x1ff),'children':_0x1ccc2a(_0x40aba6)})]})}),_0x2931ed!==t['MCPConnectionError'][_0x3eb18b(0x296)]&&(_0x40aba6===t['MCPConnectionStatus'][_0x3eb18b(0x240)]||_0x2931ed===t[_0x3eb18b(0x17d)][_0x3eb18b(0x2c2)])&&(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x182),'children':(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x2c1),'children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x237),'children':_0x52cf3c(_0x2931ed)})]})})]}),(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x1d1),'children':(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x21c),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1ad),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x1a6),{'className':_0x3eb18b(0x207),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'children':'🔑'}),'\x20',_0x4ac9aa['t'](_0x3eb18b(0x1d6)),(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':'univer-text-red-500','children':'*'}),_0x1ae6c1&&(0x0,s['jsx'])('a',{'className':_0x3eb18b(0x25c),'title':_0x4ac9aa['t'](_0x3eb18b(0x1dd)),'role':_0x3eb18b(0x2be),'onClick':()=>_0xa99540(!0x0),'children':(0x0,s[_0x3eb18b(0x2a9)])(a[_0x3eb18b(0x1bd)],{})})]}),(0x0,s['jsx'])(n[_0x3eb18b(0x202)],{'type':_0x3eb18b(0x24c),'placeholder':_0x4ac9aa['t'](_0x3eb18b(0x1d2)),'value':_0x3bbe40,'disabled':_0x474337,'autoComplete':_0x3eb18b(0x20a),'onChange':_0x5851b7}),(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x1b1),'children':_0x4ac9aa['t'](_0x3eb18b(0x286))})]}),_0x1ae6c1&&_0x2325e0&&(0x0,s['jsxs'])('div',{'className':_0x3eb18b(0x227),'children':[(0x0,s[_0x3eb18b(0x2a9)])('a',{'className':_0x3eb18b(0x188),'role':'button','onClick':()=>_0xa99540(!0x1),'children':(0x0,s[_0x3eb18b(0x2a9)])(a[_0x3eb18b(0x2ad)],{'className':_0x3eb18b(0x22e)})}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x244),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x273),'children':[(0x0,s[_0x3eb18b(0x2a9)])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4ac9aa['t'](_0x3eb18b(0x1dd))}),(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x22a),'children':_0x4ac9aa['t'](_0x3eb18b(0x1f0))}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x243),'children':_0x5efdab&&(0x0,s[_0x3eb18b(0x1fb)])('a',{'className':_0x3eb18b(0x289),'href':_0x417a93,'target':_0x3eb18b(0x1c6),'rel':_0x3eb18b(0x186),'children':[(0x0,s[_0x3eb18b(0x2a9)])('span',{'children':'🤖'}),_0x4ac9aa['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x2b8),'children':'↗'})]})}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4ac9aa['t'](_0x3eb18b(0x2c4))]})]})]})]}),_0x2637ce[_0x3eb18b(0x1ca)]&&(0x0,s['jsxs'])('div',{'className':_0x3eb18b(0x221),'children':[(0x0,s['jsxs'])('h4',{'className':_0x3eb18b(0x1a8),'children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'children':'🔗'}),'\x20',_0x4ac9aa['t'](_0x3eb18b(0x2c5))]}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':_0x3eb18b(0x25d),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1c9),'children':[(0x0,s[_0x3eb18b(0x2a9)])('p',{'className':_0x3eb18b(0x1ed),'children':_0x4ac9aa['t'](_0x3eb18b(0x29f))}),(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1ad),'children':[(0x0,s['jsx'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1ce),'children':_0x4ac9aa['t'](_0x3eb18b(0x230))}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x201),'children':[(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'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'}),_0x4ac9aa['t'](_0x3eb18b(0x1d7))]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x17c),'children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x2b9),'children':'2'}),_0x4ac9aa['t'](_0x3eb18b(0x298))]}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x2b9),'children':'3'}),_0x4ac9aa['t'](_0x3eb18b(0x195))]})]})]})]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':'univer-space-y-2','children':[(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x1ce),'children':_0x3eb18b(0x175)}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1b6),'children':(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x1b5),{'className':_0x3eb18b(0x216),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x49689d||_0x3eb18b(0x246)),'type':_0x3eb18b(0x1f1),'headers':{'Authorization':_0x3eb18b(0x1a2)+(_0x3bbe40||_0x3eb18b(0x184))}}}},null,0x2)})})]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1c9),'children':[(0x0,s['jsx'])('div',{'className':_0x3eb18b(0x1ce),'children':_0x4ac9aa['t'](_0x3eb18b(0x219))}),(0x0,s['jsxs'])('div',{'className':'univer-space-y-2','children':[(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':_0x3eb18b(0x235),'children':[(0x0,s['jsx'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x239)}),(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x2b5),'children':[(0x0,s['jsx'])('div',{'className':_0x3eb18b(0x2a0),'children':_0x3eb18b(0x1f7)}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1b1),'children':_0x4ac9aa['t'](_0x3eb18b(0x24e))})]})]}),(0x0,s[_0x3eb18b(0x1fb)])('div',{'className':_0x3eb18b(0x235),'children':[(0x0,s['jsx'])('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x2b5),'children':[(0x0,s['jsx'])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x3eb18b(0x1cd)}),(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x1b1),'children':_0x4ac9aa['t'](_0x3eb18b(0x281))})]})]})]})]})]})]}),(0x0,s[_0x3eb18b(0x2a9)])(n[_0x3eb18b(0x299)],{'onClick':_0x4f8778,'disabled':!_0x58569b||_0x474337,'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':_0x474337?(0x0,s['jsxs'])('span',{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(_0x3eb18b(0x294),{'children':'⟲'}),_0x4ac9aa['t'](_0x3eb18b(0x1e0))]}):(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x17c),'children':[(0x0,s[_0x3eb18b(0x2a9)])(a[_0x3eb18b(0x1e5)],{}),_0x4ac9aa['t'](_0x3eb18b(0x1b3))]})}),(0x0,s[_0x3eb18b(0x2a9)])('div',{'className':_0x3eb18b(0x181),'children':(0x0,s['jsxs'])(_0x3eb18b(0x23f),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,s['jsx'])(_0x3eb18b(0x294),{'className':_0x3eb18b(0x23b),'children':'💡'}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x16b),'children':[(0x0,s['jsx'])(_0x3eb18b(0x23f),{'className':_0x3eb18b(0x287),'children':_0x3eb18b(0x1fd)}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'children':['•',_0x4ac9aa['t'](_0x3eb18b(0x191))]}),(0x0,s[_0x3eb18b(0x1fb)])(_0x3eb18b(0x23f),{'children':['•',_0x4ac9aa['t'](_0x3eb18b(0x2bf))]})]})]})})]})})]});}const u=_0x3eccf6(0x1d0);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x43d154){'@babel/helpers - typeof';const _0x48f2d5=_0x3eccf6;return f=typeof Symbol=='function'&&typeof Symbol[_0x48f2d5(0x234)]==_0x48f2d5(0x1ee)?function(_0x52156d){return typeof _0x52156d;}:function(_0x24dae2){const _0x5b3589=_0x48f2d5;return _0x24dae2&&typeof Symbol==_0x5b3589(0x2aa)&&_0x24dae2['constructor']===Symbol&&_0x24dae2!==Symbol[_0x5b3589(0x1ea)]?_0x5b3589(0x1ee):typeof _0x24dae2;},f(_0x43d154);}function p(_0x194ad3,_0x59f25f){const _0x5b4159=_0x3eccf6;if(f(_0x194ad3)!='object'||!_0x194ad3)return _0x194ad3;var _0x3a9307=_0x194ad3[Symbol['toPrimitive']];if(_0x3a9307!==void 0x0){var _0x24ecb9=_0x3a9307['call'](_0x194ad3,_0x59f25f||_0x5b4159(0x27d));if(f(_0x24ecb9)!=_0x5b4159(0x26c))return _0x24ecb9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x59f25f==='string'?String:Number)(_0x194ad3);}function m(_0x450a4e){const _0x4faf5d=_0x3eccf6;var _0x2919f5=p(_0x450a4e,_0x4faf5d(0x262));return f(_0x2919f5)==_0x4faf5d(0x1ee)?_0x2919f5:_0x2919f5+'';}function h(_0x32702a,_0x2d1c47,_0x27a222){const _0x1538a0=_0x3eccf6;return(_0x2d1c47=m(_0x2d1c47))in _0x32702a?Object[_0x1538a0(0x190)](_0x32702a,_0x2d1c47,{'value':_0x27a222,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32702a[_0x2d1c47]=_0x27a222,_0x32702a;}function g(_0x530001,_0x38a8a4){return function(_0xe672a8,_0x1e1734){_0x38a8a4(_0xe672a8,_0x1e1734,_0x530001);};}function _(_0x370b5a,_0x722ae,_0xf09c4,_0x4e81b9){const _0x38b2=_0x3eccf6;var _0xcb07f3=arguments[_0x38b2(0x1f8)],_0x5c0bfd=_0xcb07f3<0x3?_0x722ae:_0x4e81b9===null?_0x4e81b9=Object[_0x38b2(0x20e)](_0x722ae,_0xf09c4):_0x4e81b9,_0x4b50de;if(typeof Reflect==_0x38b2(0x26c)&&typeof Reflect[_0x38b2(0x242)]=='function')_0x5c0bfd=Reflect[_0x38b2(0x242)](_0x370b5a,_0x722ae,_0xf09c4,_0x4e81b9);else{for(var _0x5010e4=_0x370b5a[_0x38b2(0x1f8)]-0x1;_0x5010e4>=0x0;_0x5010e4--)(_0x4b50de=_0x370b5a[_0x5010e4])&&(_0x5c0bfd=(_0xcb07f3<0x3?_0x4b50de(_0x5c0bfd):_0xcb07f3>0x3?_0x4b50de(_0x722ae,_0xf09c4,_0x5c0bfd):_0x4b50de(_0x722ae,_0xf09c4))||_0x5c0bfd);}return _0xcb07f3>0x3&&_0x5c0bfd&&Object[_0x38b2(0x190)](_0x722ae,_0xf09c4,_0x5c0bfd),_0x5c0bfd;}const v=_0x3eccf6(0x213),y='mcp-config-dialog';function _0x6f34(_0x3a34fb,_0x197001){_0x3a34fb=_0x3a34fb-0x168;const _0x35dc34=_0x35dc();let _0x6f34c1=_0x35dc34[_0x3a34fb];return _0x6f34c1;}let b=class extends e[_0x3eccf6(0x1c1)]{constructor(_0x17e0fe,_0x5148c1,_0xda9540,_0xc549c5,_0x5345f4,_0x9bb7f8,_0x5b4b9b,_0x417763,_0x5d598c,_0x44b8f5){const _0x49145e=_0x3eccf6;super(),this['_injector']=_0x17e0fe,this[_0x49145e(0x266)]=_0x5148c1,this[_0x49145e(0x1aa)]=_0xda9540,this[_0x49145e(0x1e6)]=_0xc549c5,this['_dialogService']=_0x5345f4,this[_0x49145e(0x257)]=_0x9bb7f8,this['_componentManager']=_0x5b4b9b,this[_0x49145e(0x27b)]=_0x417763,this[_0x49145e(0x2ba)]=_0x5d598c,this[_0x49145e(0x1f5)]=_0x44b8f5,h(this,'_loading$',new i[(_0x49145e(0x1e9))](!0x1)),h(this,_0x49145e(0x1dc),new i[(_0x49145e(0x1e9))]({})),h(this,'_config$',new i[(_0x49145e(0x1e9))]({})),h(this,_0x49145e(0x20c),new i['BehaviorSubject']('')),h(this,'_handleConfigSave',async _0x13c5f3=>{const _0x1a66e9=_0x49145e;this['_loading$'][_0x1a66e9(0x276)](!0x0);try{var _0x59d045,_0x3e84d7;let _0x55d82c=await this['_validateConfig'](_0x13c5f3);if(!_0x55d82c[_0x1a66e9(0x278)]){this[_0x1a66e9(0x257)]['show']({'type':n[_0x1a66e9(0x19e)][_0x1a66e9(0x26a)],'content':_0x55d82c[_0x1a66e9(0x17f)]||this[_0x1a66e9(0x27b)]['t'](_0x1a66e9(0x2a7))});return;}_0x13c5f3[_0x1a66e9(0x285)]?await this[_0x1a66e9(0x1e6)][_0x1a66e9(0x177)](v,_0x13c5f3['apiKey'][_0x1a66e9(0x280)]()):await this[_0x1a66e9(0x1e6)][_0x1a66e9(0x205)](v),this[_0x1a66e9(0x20c)]['next'](((_0x59d045=_0x13c5f3['apiKey'])==null?void 0x0:_0x59d045[_0x1a66e9(0x280)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x3e84d7=_0x13c5f3[_0x1a66e9(0x285)])==null?void 0x0:_0x3e84d7[_0x1a66e9(0x280)]())}),this[_0x1a66e9(0x257)]['show']({'type':n[_0x1a66e9(0x19e)][_0x1a66e9(0x29b)],'content':this[_0x1a66e9(0x27b)]['t'](_0x1a66e9(0x229))}),setTimeout(()=>{const _0x418f19=_0x1a66e9;this[_0x418f19(0x173)][_0x418f19(0x1f2)](y);},0x320);}catch(_0x20e02c){this[_0x1a66e9(0x2ba)][_0x1a66e9(0x1f9)](_0x1a66e9(0x2a6),_0x20e02c),this[_0x1a66e9(0x257)][_0x1a66e9(0x1b9)]({'type':n[_0x1a66e9(0x19e)][_0x1a66e9(0x26a)],'content':this[_0x1a66e9(0x27b)]['t'](_0x1a66e9(0x297))});}finally{this[_0x1a66e9(0x1d3)][_0x1a66e9(0x276)](!0x1);}}),this[_0x49145e(0x20b)](),this[_0x49145e(0x1e3)](),this[_0x49145e(0x2cb)]();}[_0x3eccf6(0x260)](){const _0x4e7f3b=_0x3eccf6;let _0x3ffd6c=this[_0x4e7f3b(0x1aa)]['getConfig'](u);_0x3ffd6c!=null&&_0x3ffd6c['showDeveloperTools']&&this[_0x4e7f3b(0x173)]['open']({'id':y,'title':{'title':this[_0x4e7f3b(0x27b)]['t']('mcpConfig.title')},'children':{'label':_0x4e7f3b(0x283)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5b2042=_0x4e7f3b;this[_0x5b2042(0x173)][_0x5b2042(0x1f2)](y);}});}['getCurrentConfig'](){const _0x3ce3da=_0x3eccf6;return this[_0x3ce3da(0x1dc)][_0x3ce3da(0x26e)];}[_0x3eccf6(0x2cb)](){const _0x57813c=_0x3eccf6;this[_0x57813c(0x225)](this[_0x57813c(0x226)][_0x57813c(0x291)](_0x57813c(0x283),this[_0x57813c(0x263)]()));}[_0x3eccf6(0x263)](){const _0x3809d8=_0x3eccf6;return(0x0,r[_0x3809d8(0x292)])(()=>{const _0x402099=_0x3809d8;var _0x1993c9,_0x2f6dcb,_0x25f914;return(0x0,s[_0x402099(0x2a9)])(l,{'config':this['_config$'][_0x402099(0x26e)],'mcpCoreConfig':this[_0x402099(0x1dc)][_0x402099(0x26e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x402099(0x204)],'loading':this[_0x402099(0x1d3)]['value'],'connectionStatus$':(_0x1993c9=this[_0x402099(0x1f5)])==null?void 0x0:_0x1993c9[_0x402099(0x26f)],'connectionError$':(_0x2f6dcb=this[_0x402099(0x1f5)])==null?void 0x0:_0x2f6dcb[_0x402099(0x1ba)],'currentSessionId$':(_0x25f914=this['_mcpConnectionController'])==null?void 0x0:_0x25f914['sessionId$']});},this[_0x3809d8(0x1c3)]);}[_0x3eccf6(0x20b)](){const _0x5eb87b=_0x3eccf6;this[_0x5eb87b(0x225)](this[_0x5eb87b(0x1aa)][_0x5eb87b(0x2ac)](t[_0x5eb87b(0x18a)])[_0x5eb87b(0x1bb)](_0x1ebd6a=>{this['_mcpCoreConfig$']['next'](_0x1ebd6a||{});}));let _0x1c2465=this['_configService']['getConfig'](t[_0x5eb87b(0x18a)]);this['_mcpCoreConfig$']['next'](_0x1c2465||{}),this[_0x5eb87b(0x225)](this[_0x5eb87b(0x1aa)]['subscribeConfigValue$'](u)[_0x5eb87b(0x1bb)](_0x345e6d=>{const _0x1ec2a4=_0x5eb87b;this[_0x1ec2a4(0x25a)][_0x1ec2a4(0x276)](_0x345e6d||{});}));let _0x21ebd4=this['_configService'][_0x5eb87b(0x1fc)](u);this[_0x5eb87b(0x25a)][_0x5eb87b(0x276)](_0x21ebd4||{});}async[_0x3eccf6(0x1e3)](){const _0x10ae38=_0x3eccf6;let _0x559433=this[_0x10ae38(0x1aa)][_0x10ae38(0x1fc)](u);if(!(_0x559433!=null&&_0x559433['showDeveloperTools']))return;let _0x5867bb=await this[_0x10ae38(0x1e6)][_0x10ae38(0x2af)](v);_0x5867bb&&(this['_mcpConnectionController'][_0x10ae38(0x1bf)]({'Authorization':_0x10ae38(0x1a2)+_0x5867bb}),this['_apiKey$'][_0x10ae38(0x276)](_0x5867bb));}async[_0x3eccf6(0x1c5)](_0x4785a8){const _0xd5841e=_0x3eccf6;if(!_0x4785a8[_0xd5841e(0x285)]||_0x4785a8[_0xd5841e(0x285)][_0xd5841e(0x280)]()[_0xd5841e(0x1f8)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x4785a8[_0xd5841e(0x285)][_0xd5841e(0x280)]()[_0xd5841e(0x1f8)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xd5841e(0x27b)]['t'](_0xd5841e(0x17e))};try{let _0x404a4f=await this[_0xd5841e(0x1c3)]['get'](t['MCPConnectionController'])[_0xd5841e(0x23e)](_0x4785a8[_0xd5841e(0x285)]['trim']());return _0x404a4f['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x404a4f[_0xd5841e(0x1f9)]||this[_0xd5841e(0x27b)]['t'](_0xd5841e(0x293))};}catch(_0x58d8b3){return console[_0xd5841e(0x1be)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x58d8b3),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x3eccf6(0x16e)])(e['Injector'])),g(0x1,r[_0x3eccf6(0x2b3)]),g(0x2,e[_0x3eccf6(0x27a)]),g(0x3,e[_0x3eccf6(0x2a8)]),g(0x4,r['IDialogService']),g(0x5,r['IMessageService']),g(0x6,(0x0,e['Inject'])(r['ComponentManager'])),g(0x7,(0x0,e[_0x3eccf6(0x16e)])(e['LocaleService'])),g(0x8,e[_0x3eccf6(0x253)]),g(0x9,(0x0,e[_0x3eccf6(0x16e)])(t[_0x3eccf6(0x1af)]))],b);const x={'id':_0x3eccf6(0x171),'type':e['CommandType'][_0x3eccf6(0x279)],'handler':async(_0x4fea65,_0x34171a)=>(_0x4fea65[_0x3eccf6(0x21b)](b)[_0x3eccf6(0x260)](),!0x0)};function S(_0xe6fde4,_0x13ae53){const _0x1b3eb4=_0x3eccf6;switch(_0xe6fde4){case t['MCPConnectionStatus'][_0x1b3eb4(0x20f)]:return _0x1b3eb4(0x1fa);case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x224)]:return _0x1b3eb4(0x256);case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x1c4)]:return'mcpStatus.connected';case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x240)]:switch(_0x13ae53){case t[_0x1b3eb4(0x17d)][_0x1b3eb4(0x2c2)]:return _0x1b3eb4(0x1f3);case t[_0x1b3eb4(0x17d)][_0x1b3eb4(0x277)]:return _0x1b3eb4(0x1c8);case t['MCPConnectionError'][_0x1b3eb4(0x192)]:return _0x1b3eb4(0x1a7);case t['MCPConnectionError'][_0x1b3eb4(0x1b0)]:return _0x1b3eb4(0x247);default:return _0x1b3eb4(0x1e1);}case t[_0x1b3eb4(0x1e2)][_0x1b3eb4(0x22b)]:return _0x1b3eb4(0x1ac);default:return _0x1b3eb4(0x1d4);}}function C(_0x19dece,_0x67c98a,_0x330ac2,_0x3cfd45=!0x0){const _0x156a0f=_0x3eccf6;let _0x42e384=S(_0x19dece,_0x67c98a),_0x197494=_0x330ac2['t'](_0x42e384);return _0x3cfd45?_0x19dece===t[_0x156a0f(0x1e2)][_0x156a0f(0x20f)]&&_0x67c98a===t[_0x156a0f(0x17d)][_0x156a0f(0x2c2)]?_0x197494+_0x156a0f(0x29c)+_0x330ac2['t'](_0x156a0f(0x19c)):_0x19dece===t[_0x156a0f(0x1e2)][_0x156a0f(0x1c4)]?''+_0x197494:_0x19dece===t['MCPConnectionStatus'][_0x156a0f(0x20f)]||_0x19dece===t['MCPConnectionStatus'][_0x156a0f(0x240)]?_0x197494+_0x156a0f(0x29c)+_0x330ac2['t']('mcpStatus.clickToConnect'):_0x197494:_0x197494;}function w(_0x5665c9){const _0x15629a=_0x3eccf6;switch(_0x5665c9){case t[_0x15629a(0x1e2)][_0x15629a(0x1c4)]:return _0x15629a(0x2b0);case t[_0x15629a(0x1e2)]['CONNECTING']:case t[_0x15629a(0x1e2)][_0x15629a(0x22b)]:return _0x15629a(0x1e4);case t['MCPConnectionStatus'][_0x15629a(0x240)]:case t[_0x15629a(0x1e2)][_0x15629a(0x20f)]:return _0x15629a(0x28e);default:return'univer-text-gray-500';}}function T(_0x569e46){const _0x4cd89d=_0x3eccf6;let {status$:_0x1c927c,error$:_0x1c0bea,onConfigure:_0x30716e,showClickable:_0x3b41ca=!0x0}=_0x569e46,_0x485bcb=(0x0,r[_0x4cd89d(0x231)])(_0x1c927c,t['MCPConnectionStatus'][_0x4cd89d(0x20f)]),_0x178379=(0x0,r['useObservable'])(_0x1c0bea,t[_0x4cd89d(0x17d)][_0x4cd89d(0x296)]),_0x1cae16=(0x0,r[_0x4cd89d(0x1a0)])(e[_0x4cd89d(0x251)]),_0x1f7180=_0x485bcb===t[_0x4cd89d(0x1e2)][_0x4cd89d(0x1c4)];_0x485bcb===t[_0x4cd89d(0x1e2)][_0x4cd89d(0x224)]||t[_0x4cd89d(0x1e2)][_0x4cd89d(0x22b)];let _0x39fcf1=_0x1cae16['t'](S(_0x485bcb,_0x178379)),_0x2b44d6=C(_0x485bcb,_0x178379,_0x1cae16,_0x3b41ca),_0x105260=w(_0x485bcb),_0x1f5d4a=_0x1f7180?(0x0,s['jsx'])(a[_0x4cd89d(0x1ef)],{}):(0x0,s['jsx'])(a['OffLineIcon'],{}),_0x3b7ec6=(0x0,o[_0x4cd89d(0x22d)])(()=>{_0x3b41ca&&_0x30716e&&_0x30716e();},[_0x3b41ca,_0x30716e]);function _0x23b421(){const _0x11fb2d=_0x4cd89d;return(0x0,s['jsxs'])(_0x11fb2d(0x23f),{'className':(0x0,n[_0x11fb2d(0x1a5)])(_0x11fb2d(0x23c),_0x3b41ca&&_0x30716e&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x11fb2d(0x2be),'onClick':_0x3b41ca&&_0x30716e?_0x3b7ec6:void 0x0,'children':[(0x0,s[_0x11fb2d(0x2a9)])(_0x11fb2d(0x23f),{'className':(0x0,n['clsx'])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x105260),'children':_0x1f5d4a}),(0x0,s[_0x11fb2d(0x2a9)])(_0x11fb2d(0x23f),{'className':_0x11fb2d(0x24a),'children':_0x39fcf1})]});}return(0x0,s[_0x4cd89d(0x2a9)])(n[_0x4cd89d(0x168)],{'title':_0x2b44d6,'placement':_0x4cd89d(0x24d),'children':_0x23b421()});}let E=class extends e[_0x3eccf6(0x1c1)]{constructor(_0x481c20,_0x345c98,_0x1fca0e,_0xf39fb3){const _0xb67fa2=_0x3eccf6;super(),this[_0xb67fa2(0x1c3)]=_0x481c20,this['_connectionController']=_0x345c98,this[_0xb67fa2(0x266)]=_0x1fca0e,this[_0xb67fa2(0x1aa)]=_0xf39fb3,this['_initAutoConnect'](),this[_0xb67fa2(0x189)]();}[_0x3eccf6(0x1d9)](){const _0x3d2cf3=_0x3eccf6;let _0x3c7283=this[_0x3d2cf3(0x1aa)]['getConfig'](u);_0x3c7283!=null&&_0x3c7283['showDeveloperTools']&&(this[_0x3d2cf3(0x27f)][_0x3d2cf3(0x20d)]=!0x1);}[_0x3eccf6(0x189)](){const _0x2f881b=_0x3eccf6;let _0x4ccf82=this['_configService'][_0x2f881b(0x1fc)](u);(_0x4ccf82==null?void 0x0:_0x4ccf82[_0x2f881b(0x172)])!==!0x1&&this[_0x2f881b(0x225)](this['_uiPartsService']['registerComponent'](r[_0x2f881b(0x187)][_0x2f881b(0x2b7)],()=>{const _0x3567dc=_0x2f881b;var _0x88c89c;return(0x0,r['connectInjector'])(D({'status$':this[_0x3567dc(0x27f)][_0x3567dc(0x26f)],'error$':this[_0x3567dc(0x27f)]['connectionError$'],'onConfigure':()=>this[_0x3567dc(0x2c6)](),'showClickable':(_0x88c89c=_0x4ccf82==null?void 0x0:_0x4ccf82[_0x3567dc(0x1ca)])==null?!0x1:_0x88c89c}),this[_0x3567dc(0x1c3)]);}));}[_0x3eccf6(0x2c6)](){const _0x1ab5db=_0x3eccf6;this[_0x1ab5db(0x1c3)][_0x1ab5db(0x21b)](b)[_0x1ab5db(0x260)]();}};E=_([g(0x0,(0x0,e['Inject'])(e[_0x3eccf6(0x274)])),g(0x1,(0x0,e['Inject'])(t[_0x3eccf6(0x1af)])),g(0x2,r[_0x3eccf6(0x2b3)]),g(0x3,e['IConfigService'])],E);function D(_0x4905b8){let {status$:_0x3cff0a,error$:_0x3a5c9a,onConfigure:_0x463acc,showClickable:_0x2d3e5b}=_0x4905b8;return function(){const _0x496e7d=_0x6f34;return(0x0,s[_0x496e7d(0x2a9)])(T,{'status$':_0x3cff0a,'error$':_0x3a5c9a,'onConfigure':_0x463acc,'showClickable':_0x2d3e5b});};}function O(_0x345923){const _0x4344d3=_0x3eccf6;return{'id':x['id'],'type':r[_0x4344d3(0x1df)][_0x4344d3(0x275)],'icon':_0x4344d3(0x17a),'title':'mcpConfig.title','tooltip':_0x4344d3(0x26b)};}const k={[r[_0x3eccf6(0x209)][_0x3eccf6(0x18f)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x3eccf6(0x1c1)]{constructor(_0xf9481f,_0x1b8103){const _0x982c55=_0x3eccf6;super(),this[_0x982c55(0x29e)]=_0xf9481f,this[_0x982c55(0x1f6)]=_0x1b8103,this['_initializeCommands'](),this[_0x982c55(0x250)]();}[_0x3eccf6(0x236)](){[x]['forEach'](_0xc38e6f=>{const _0x2a56fa=_0x6f34;this[_0x2a56fa(0x225)](this[_0x2a56fa(0x29e)]['registerCommand'](_0xc38e6f));});}[_0x3eccf6(0x250)](){const _0xc9594b=_0x3eccf6;this[_0xc9594b(0x1f6)][_0xc9594b(0x183)](k);}};A=_([g(0x0,e[_0x3eccf6(0x1a1)]),g(0x1,r['IMenuManagerService'])],A);const j={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3eccf6(0x1b8),'connected':_0x3eccf6(0x2bb),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x3eccf6(0x193),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3eccf6(0x180),'maxRetriesExceeded':_0x3eccf6(0x18b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3eccf6(0x2bd)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3eccf6(0x19f),'apiKey':_0x3eccf6(0x1b4),'apiKeyPlaceholder':_0x3eccf6(0x252),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3eccf6(0x21d),'enableAuthHint':_0x3eccf6(0x2b6),'connectionInfo':_0x3eccf6(0x22c),'mcpClientConfig':_0x3eccf6(0x22c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x3eccf6(0x25b),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3eccf6(0x174),'sessionId':_0x3eccf6(0x1cf),'sessionIdDescription':_0x3eccf6(0x217),'authorizationDescription':_0x3eccf6(0x16d),'configParameters':_0x3eccf6(0x23a),'maxRetries':_0x3eccf6(0x28a),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3eccf6(0x233),'configSaved':_0x3eccf6(0x238),'configError':_0x3eccf6(0x1ae),'apiApplyInfo':{'title':_0x3eccf6(0x232),'description':_0x3eccf6(0x258),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3eccf6(0x203),'apiKeyTooShort':_0x3eccf6(0x228),'invalidConfig':_0x3eccf6(0x1c7),'invalidApiKey':_0x3eccf6(0x272)},'connectionStatus':{'disconnected':_0x3eccf6(0x25f),'connecting':_0x3eccf6(0x1eb),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x3eccf6(0x1a3)},'connectionError':{'unauthorized':_0x3eccf6(0x1db),'sessionOccupied':_0x3eccf6(0x2c3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3eccf6(0x169)}}},M={'mcpStatus':{'disconnected':_0x3eccf6(0x2a2),'connecting':_0x3eccf6(0x194),'connected':_0x3eccf6(0x176),'failed':_0x3eccf6(0x1ec),'retrying':'MCP\x20重连中...','unknown':_0x3eccf6(0x19b),'unauthorized':_0x3eccf6(0x2bc),'sessionOccupied':_0x3eccf6(0x2c8),'networkError':_0x3eccf6(0x16f),'maxRetriesExceeded':_0x3eccf6(0x1de),'clickToConnect':_0x3eccf6(0x2a4),'clickToConfigure':_0x3eccf6(0x208)},'mcpConfig':{'title':_0x3eccf6(0x261),'description':_0x3eccf6(0x1d5),'apiKey':_0x3eccf6(0x19a),'apiKeyPlaceholder':_0x3eccf6(0x1c0),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x3eccf6(0x18e),'connectionInfo':_0x3eccf6(0x27c),'mcpClientConfig':_0x3eccf6(0x27c),'configInstructions':_0x3eccf6(0x1cc),'configStepTitle':_0x3eccf6(0x1bc),'configStep1':_0x3eccf6(0x170),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3eccf6(0x211),'sessionId':'会话ID','sessionIdDescription':_0x3eccf6(0x199),'authorizationDescription':_0x3eccf6(0x1b7),'configParameters':_0x3eccf6(0x1a4),'maxRetries':_0x3eccf6(0x28f),'save':_0x3eccf6(0x21e),'saving':_0x3eccf6(0x1c2),'note1':_0x3eccf6(0x2ae),'note2':_0x3eccf6(0x220),'configSaved':_0x3eccf6(0x16a),'configError':_0x3eccf6(0x28d),'apiApplyInfo':{'title':_0x3eccf6(0x21f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x3eccf6(0x2a1),'apiKeyTooShort':_0x3eccf6(0x198),'invalidConfig':_0x3eccf6(0x29a),'invalidApiKey':_0x3eccf6(0x218)},'connectionStatus':{'disconnected':_0x3eccf6(0x248),'connecting':_0x3eccf6(0x179),'connected':_0x3eccf6(0x17b),'failed':_0x3eccf6(0x282),'retrying':_0x3eccf6(0x200)},'connectionError':{'unauthorized':_0x3eccf6(0x210),'sessionOccupied':_0x3eccf6(0x18c),'networkError':_0x3eccf6(0x2c7),'maxRetriesExceeded':_0x3eccf6(0x24b)}}};var N='@univerjs-pro/mcp-ui',P=_0x3eccf6(0x215);let F=class extends e[_0x3eccf6(0x245)]{constructor(_0x16798b=d,_0x15fcf6,_0x3008f2,_0x3810af,_0x1a3fae,_0x2399f5){const _0xe6766d=_0x3eccf6;super(),this[_0xe6766d(0x259)]=_0x16798b,this[_0xe6766d(0x1c3)]=_0x15fcf6,this[_0xe6766d(0x1aa)]=_0x3008f2,this[_0xe6766d(0x266)]=_0x3810af,this[_0xe6766d(0x1e6)]=_0x1a3fae,this[_0xe6766d(0x27b)]=_0x2399f5;let {..._0x27fcc5}=(0x0,e[_0xe6766d(0x196)])({},d,this[_0xe6766d(0x259)]);this[_0xe6766d(0x1aa)][_0xe6766d(0x288)](u,_0x27fcc5);}async[_0x3eccf6(0x255)](){const _0x4d4b18=_0x3eccf6;let _0xff06f7=[[E],[b],[A]];this[_0x4d4b18(0x1c3)][_0x4d4b18(0x254)](c[_0x4d4b18(0x1b2)])||_0xff06f7['push']([c['ISocketService'],{'useClass':c[_0x4d4b18(0x21a)]}]),_0xff06f7['forEach'](_0x1a9741=>this[_0x4d4b18(0x1c3)][_0x4d4b18(0x1e7)](_0x1a9741)),this['_injector'][_0x4d4b18(0x21b)](E),this[_0x4d4b18(0x1c3)][_0x4d4b18(0x21b)](b),this[_0x4d4b18(0x1c3)][_0x4d4b18(0x21b)](A);}};h(F,'pluginName','MCP_UI_PLUGIN'),h(F,_0x3eccf6(0x28b),N),h(F,_0x3eccf6(0x178),P),F=_([(0x0,e[_0x3eccf6(0x1d8)])(t[_0x3eccf6(0x185)]),g(0x1,(0x0,e['Inject'])(e['Injector'])),g(0x2,e['IConfigService']),g(0x3,r[_0x3eccf6(0x2b3)]),g(0x4,e[_0x3eccf6(0x2a8)]),g(0x5,(0x0,e[_0x3eccf6(0x16e)])(e[_0x3eccf6(0x251)]))],F),exports[_0x3eccf6(0x283)]=l,Object[_0x3eccf6(0x190)](exports,_0x3eccf6(0x212),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x3eccf6(0x2a3),{'enumerable':!0x0,'get':function(){return E;}}),exports['MCPStatusDisplay']=T,Object[_0x3eccf6(0x190)](exports,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x3eccf6(0x2ab)]=x,Object['defineProperty'](exports,_0x3eccf6(0x264),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x3eccf6(0x16c)]=j,exports[_0x3eccf6(0x222)]=M;
|
|
1
|
+
const _0x8849ec=_0x1a3d;(function(_0x3a1357,_0x19a455){const _0x282245=_0x1a3d,_0x1031ac=_0x3a1357();while(!![]){try{const _0x5bee67=-parseInt(_0x282245(0xd8))/0x1*(parseInt(_0x282245(0x131))/0x2)+-parseInt(_0x282245(0x186))/0x3+-parseInt(_0x282245(0x91))/0x4+parseInt(_0x282245(0x18d))/0x5*(-parseInt(_0x282245(0x173))/0x6)+-parseInt(_0x282245(0x1bd))/0x7*(-parseInt(_0x282245(0x152))/0x8)+parseInt(_0x282245(0xfd))/0x9*(parseInt(_0x282245(0x13a))/0xa)+parseInt(_0x282245(0x12d))/0xb*(parseInt(_0x282245(0x81))/0xc);if(_0x5bee67===_0x19a455)break;else _0x1031ac['push'](_0x1031ac['shift']());}catch(_0x11356d){_0x1031ac['push'](_0x1031ac['shift']());}}}(_0x1127,0xd0460),Object[_0x8849ec(0x1b4)](exports,Symbol[_0x8849ec(0xc4)],{'value':_0x8849ec(0x12f)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function l(_0x186b59){const _0x4ec51e=_0x8849ec;var _0x385eb3,_0x46003f;let {mcpCoreConfig:_0x50d355,onSave:_0x362cb4,loading:_0x40ffcd=!0x1,config:_0x1958ad,connectionStatus$:_0x5df51e,connectionError$:_0x2240eb,currentApiKey$:_0x1a3738,currentSessionId$:_0x4b6b1a}=_0x186b59,_0x137f91=(0x0,r[_0x4ec51e(0x1b2)])(e[_0x4ec51e(0x8b)]),_0x195a70=(0x0,r[_0x4ec51e(0x1ad)])(_0x5df51e,t[_0x4ec51e(0x10a)][_0x4ec51e(0x19c)]),_0x121505=(0x0,r['useObservable'])(_0x2240eb,t[_0x4ec51e(0x13c)][_0x4ec51e(0x13b)]),_0x2622f6=(0x0,r[_0x4ec51e(0x1ad)])(_0x4b6b1a,''),[_0x258c52,_0x338b91]=(0x0,o[_0x4ec51e(0xdb)])((0x0,r[_0x4ec51e(0x1ad)])(_0x1a3738,'')||''),_0xedd941=_0x1958ad[_0x4ec51e(0x15c)]&&_0x50d355[_0x4ec51e(0x168)]&&(_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x155))||_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x180))),_0x26ac22=(_0x385eb3=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x385eb3[_0x4ec51e(0xbb)](_0x4ec51e(0x155)),_0x3a0167=(_0x46003f=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x46003f[_0x4ec51e(0xbb)]('univer.ai'),_0x5c1904=_0x26ac22?_0x4ec51e(0x106):_0x4ec51e(0xb6),_0x5ce002=_0x1958ad['showDeveloperTools']&&(_0x26ac22||_0x3a0167),[_0x4fffef,_0x3ec940]=(0x0,o[_0x4ec51e(0xdb)])(!_0x258c52[_0x4ec51e(0xbe)]()),_0x29c992=(_0xf8d46c,_0x558102)=>{const _0x13f34b=_0x4ec51e;if(_0x558102===t[_0x13f34b(0x13c)][_0x13f34b(0x169)])return _0x13f34b(0x113);switch(_0xf8d46c){case t[_0x13f34b(0x10a)][_0x13f34b(0x1a7)]:return _0x13f34b(0x9e);case t[_0x13f34b(0x10a)]['CONNECTING']:case t['MCPConnectionStatus'][_0x13f34b(0x181)]:return _0x13f34b(0x18b);case t[_0x13f34b(0x10a)][_0x13f34b(0x179)]:return _0x13f34b(0x113);default:return _0x13f34b(0x1ae);}},_0x2714dd=(_0x563cf2,_0x57352c)=>{const _0x51560b=_0x4ec51e;if(_0x57352c===t['MCPConnectionError'][_0x51560b(0x169)])return _0x51560b(0xe5);switch(_0x563cf2){case t['MCPConnectionStatus'][_0x51560b(0x1a7)]:return _0x51560b(0xf6);case t['MCPConnectionStatus']['CONNECTING']:case t[_0x51560b(0x10a)][_0x51560b(0x181)]:return'univer-bg-blue-500';case t['MCPConnectionStatus']['FAILED']:return _0x51560b(0xe5);default:return _0x51560b(0xce);}},_0x4045ec=_0x4a3a7e=>{const _0x25a835=_0x4ec51e;switch(_0x4a3a7e){case t[_0x25a835(0x10a)][_0x25a835(0x1a7)]:return _0x137f91['t'](_0x25a835(0x118));case t['MCPConnectionStatus'][_0x25a835(0x14d)]:return _0x137f91['t'](_0x25a835(0xa0));case t['MCPConnectionStatus']['FAILED']:return _0x137f91['t']('mcpConfig.connectionStatus.failed');case t[_0x25a835(0x10a)][_0x25a835(0x181)]:return _0x137f91['t'](_0x25a835(0x8c));default:return _0x137f91['t']('mcpConfig.connectionStatus.disconnected');}},_0x23551d=_0x527d7a=>{const _0x5500f2=_0x4ec51e;switch(_0x527d7a){case t[_0x5500f2(0x13c)][_0x5500f2(0x169)]:return _0x137f91['t'](_0x5500f2(0x16f));case t[_0x5500f2(0x13c)][_0x5500f2(0xe4)]:return _0x137f91['t'](_0x5500f2(0x95));case t[_0x5500f2(0x13c)][_0x5500f2(0x19e)]:return _0x137f91['t']('mcpConfig.connectionError.networkError');case t['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x137f91['t'](_0x5500f2(0xfc));default:return'';}},_0x2f432d=(0x0,o['useCallback'])(()=>{const _0x20cb3e=_0x4ec51e;_0x362cb4({..._0x50d355,'apiKey':_0x258c52[_0x20cb3e(0xbe)](),'enableAuth':!0x0});},[_0x50d355,_0x258c52,!0x0,_0x362cb4]),_0xe47cff=_0x258c52['trim']()['length']>0x0;return(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0x11a),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x127),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x192),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1b1),'children':'⚙'})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'children':(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x137f91['t'](_0x4ec51e(0xf5))})})]})}),(0x0,s['jsxs'])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':(0x0,n['clsx'])(_0x4ec51e(0xe3),_0x29c992(_0x195a70,_0x121505)),'children':(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':(0x0,n['clsx'])(_0x4ec51e(0x17b),_0x2714dd(_0x195a70,_0x121505))}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1cf),'children':_0x4045ec(_0x195a70)})]})}),_0x121505!==t[_0x4ec51e(0x13c)]['NONE']&&(_0x195a70===t['MCPConnectionStatus'][_0x4ec51e(0x179)]||_0x121505===t[_0x4ec51e(0x13c)][_0x4ec51e(0x169)])&&(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd4),'children':(0x0,s['jsxs'])('div',{'className':_0x4ec51e(0x98),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x14b),'children':'⚠️'}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x23551d(_0x121505)})]})})]}),(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x17f),'children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-5','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x1a4),{'className':_0x4ec51e(0x187),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🔑'}),'\x20',_0x137f91['t'](_0x4ec51e(0xa6)),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x133),'children':'*'}),_0xedd941&&(0x0,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0x17e),'title':_0x137f91['t']('mcpConfig.apiApplyInfo.title'),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x0),'children':(0x0,s[_0x4ec51e(0x1c8)])(a['HelpIcon'],{})})]}),(0x0,s[_0x4ec51e(0x1c8)])(n['Input'],{'type':_0x4ec51e(0xf3),'placeholder':_0x137f91['t'](_0x4ec51e(0x165)),'value':_0x258c52,'disabled':_0x40ffcd,'autoComplete':'off','onChange':_0x338b91}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.apiKeyHint')})]}),_0xedd941&&_0x4fffef&&(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'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':[(0x0,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0xca),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x1),'children':(0x0,s['jsx'])(a[_0x4ec51e(0x124)],{'className':_0x4ec51e(0x94)})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x160),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc8),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x140),'children':[(0x0,s[_0x4ec51e(0x1c8)])('h4',{'className':_0x4ec51e(0xb9),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.title')}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x184),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.description')}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb2),'children':_0x5ce002&&(0x0,s[_0x4ec51e(0xdc)])('a',{'className':_0x4ec51e(0x1b6),'href':_0x5c1904,'target':_0x4ec51e(0xa4),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🤖'}),_0x137f91['t'](_0x4ec51e(0x158)),(0x0,s['jsx'])('span',{'className':_0x4ec51e(0x1bb),'children':'↗'})]})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x90),'children':['✨','\x20',_0x137f91['t'](_0x4ec51e(0x1c7))]})]})]})]}),_0x1958ad['showDeveloperTools']&&(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1cb),'children':[(0x0,s[_0x4ec51e(0xdc)])('h4',{'className':_0x4ec51e(0x123),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'children':'🔗'}),'\x20',_0x137f91['t']('mcpConfig.connectionInfo')]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x18f),'children':[(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-space-y-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x17a),'children':_0x137f91['t'](_0x4ec51e(0x1d1))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0xa8))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xfa),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s['jsx'])('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':'1'}),_0x137f91['t'](_0x4ec51e(0xb7))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'2'}),_0x137f91['t'](_0x4ec51e(0x174))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'3'}),_0x137f91['t'](_0x4ec51e(0x18a))]})]})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ec51e(0xea)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1aa),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x191),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x4ec51e(0x1cd)]({'mcpServers':{'univer':{'url':_0x4ec51e(0x1a9)+(_0x2622f6||_0x4ec51e(0x170)),'type':_0x4ec51e(0xde),'headers':{'Authorization':_0x4ec51e(0x11b)+(_0x258c52||_0x4ec51e(0x159))}}}},null,0x2)})})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x96),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0x135))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b3),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x1a2)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x185)}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x137f91['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,s[_0x4ec51e(0x1c8)])(n[_0x4ec51e(0x156)],{'onClick':_0x2f432d,'disabled':!_0xe47cff||_0x40ffcd,'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':_0x40ffcd?(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])('span',{'children':'⟲'}),_0x137f91['t']('mcpConfig.saving')]}):(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(a[_0x4ec51e(0xae)],{}),_0x137f91['t'](_0x4ec51e(0x101))]})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd9),'children':(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xb0),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x82),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x132),'children':_0x4ec51e(0x18e)}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0x128))]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0xf9))]})]})]})})]})})]});}const u=_0x8849ec(0xf8);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x323a7a){'@babel/helpers - typeof';const _0x787327=_0x8849ec;return f=typeof Symbol==_0x787327(0xad)&&typeof Symbol[_0x787327(0xc7)]==_0x787327(0xd3)?function(_0x5f260d){return typeof _0x5f260d;}:function(_0x2dc10b){const _0x2a7d17=_0x787327;return _0x2dc10b&&typeof Symbol==_0x2a7d17(0xad)&&_0x2dc10b[_0x2a7d17(0x14f)]===Symbol&&_0x2dc10b!==Symbol[_0x2a7d17(0x12a)]?_0x2a7d17(0xd3):typeof _0x2dc10b;},f(_0x323a7a);}function p(_0x1fa25b,_0x2a8140){const _0x576146=_0x8849ec;if(f(_0x1fa25b)!='object'||!_0x1fa25b)return _0x1fa25b;var _0x444a5b=_0x1fa25b[Symbol[_0x576146(0xe6)]];if(_0x444a5b!==void 0x0){var _0x20beec=_0x444a5b['call'](_0x1fa25b,_0x2a8140||'default');if(f(_0x20beec)!=_0x576146(0xaf))return _0x20beec;throw TypeError(_0x576146(0x1d3));}return(_0x2a8140===_0x576146(0xa1)?String:Number)(_0x1fa25b);}function m(_0x5c2a7f){const _0x14ed63=_0x8849ec;var _0x40988c=p(_0x5c2a7f,_0x14ed63(0xa1));return f(_0x40988c)==_0x14ed63(0xd3)?_0x40988c:_0x40988c+'';}function h(_0x2efc0f,_0x309882,_0x536a67){return(_0x309882=m(_0x309882))in _0x2efc0f?Object['defineProperty'](_0x2efc0f,_0x309882,{'value':_0x536a67,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2efc0f[_0x309882]=_0x536a67,_0x2efc0f;}function g(_0x35fced,_0x42cd52){return function(_0x223721,_0x3f16da){_0x42cd52(_0x223721,_0x3f16da,_0x35fced);};}function _0x1127(){const _0x54c52e=['Session\x20ID','mcp.apiKey','_initializeMenus','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','1286684EFFRlZ','MCP:\x20Session\x20ID\x20Occupied','启用身份验证以获得安全连接','univer-size-4','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','mcpStatus.clickToConfigure','univer-flex\x20univer-items-start\x20univer-gap-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_connectionController','MCP\x20连接失败','mcpStatus.connecting','Invalid\x20configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','showStatus','mcpConfig.connectionStatus.connecting','string','将以下配置添加到您的\x20MCP\x20客户端设置中:','apiKey','_blank','getItem','mcpConfig.apiKey','MCPUIMenuController','mcpConfig.configStepTitle','errorMessage','已连接','ILocalStorageService','sessionId$','function','CheckMarkIcon','object','univer-flex\x20univer-gap-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Connected','_componentManager','mcpStatus.unknown','https://console.univer.ai','mcpConfig.configStep1','push','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20客户端配置','includes','subscribe','_validateConfig','trim','MessageType','mcpStatus.maxRetriesExceeded','MCP\x20Disconnected','univer-flex\x20univer-items-center\x20univer-gap-2','mergeMenu','toStringTag','next','mcp-ui.command.openConfigPanel','iterator','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20密钥无效,请检查密钥是否正确','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','registerCommand','MCP_UI_PLUGIN','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-bg-gray-500','API\x20密钥长度至少需要\x2010\x20位','MCPConfigPanel','Connection\x20Failed','MCP:\x20会话\x20ID\x20已被占用','symbol','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_mcpCoreConfig$','length','Disposable','2LTKgcj','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.failed','useState','jsxs','_config','http','registerComponent','_localStorageService','请输入您的\x20API\x20密钥','close','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','SESSION_ID_OCCUPIED','univer-bg-red-500','toPrimitive','clsx','Univer\x20AI\x20Console','_createConfigPanelComponent','MCP\x20Configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','ICommandService','IDialogService','_initConfigSync','text','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.description','univer-bg-green-500','setConfig','mcp-ui.config','mcpConfig.note2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Configuration\x20Parameters:','mcpConfig.connectionError.maxRetriesExceeded','90OvNfQn','_uiPartsService','会话ID','_loading$','mcpConfig.save','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','将配置添加到您的\x20MCP\x20客户端设置文件中','Get\x20your\x20API\x20key\x20in\x20seconds','带有\x20Bearer\x20前缀的\x20API\x20密钥。','https://console.univer.plus','MCP\x20已连接','show','enableAutoConnect','MCPConnectionStatus','getConfig','subscribeConfigValue$','Click\x20to\x20configure\x20MCP','has','MCP:\x20超出最大重试次数','disposeWithMe','getCurrentConfig','UniverMCPUIPlugin','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Success','API\x20密钥不能为空','API\x20key\x20is\x20required','MCP\x20重连中...','mcpConfig.connectionStatus.connected','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Bearer\x20','mcpStatus.disconnected','_handleConfigure','MCP\x20已断开','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','保存中...','您的\x20API\x20密钥安全存储在本地存储中','OffLineIcon','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CloseIcon','MCPConnectionController','Error','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.note1','_configService','prototype','useCallback','__setCustomHeaders','231LXSZwY','ILogService','Module','IUIPartsService','328446KdJrIE','univer-font-medium','univer-text-red-500','mcpStatus.sessionOccupied','mcpConfig.configParameters','MenuIcon','_logService','Inject','\x20-\x20','764130wQTKSQ','NONE','MCPConnectionError','Retrying...','univer-flex\x20univer-items-start\x20univer-gap-3','_menuManagerService','univer-flex-1','RibbonStartGroup','IMenuManagerService','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20未授权','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Copy\x20the\x20JSON\x20configuration\x20below','button','BUTTON','pluginName','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-shrink-0\x20univer-text-red-500','ComponentManager','CONNECTING','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','constructor','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','DependentOn','760NpGeRU','Tooltip','connectInjector','univer.plus','Button','点击连接\x20MCP','mcpConfig.apiApplyInfo.univerAiLabel','<API_KEY>','connectionError$','validateApiKey','showDeveloperTools','zhCN','配置步骤:','_initStatusComponent','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20连接中...','univer-space-y-2','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiKeyPlaceholder','您的\x20API\x20密钥将在此浏览器中本地存储','OnLineIcon','mcpServerUrl','UNAUTHORIZED','bottom','_injector','_localeService','showConfigPanel','Injector','mcpConfig.connectionError.unauthorized','<SESSION_ID>','网络连接错误,请检查您的网络连接','连接失败','342hyNAgm','mcpConfig.configStep2','_mcpConnectionController','Univer\x20AI\x20控制台','span','isValid','FAILED','univer-text-xs\x20univer-text-gray-600','univer-size-2\x20univer-rounded-full','version','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer.ai','RETRYING','univer-text-green-500','复制以下\x20JSON\x20配置','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Authorization:','729468WZJGKf','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Client\x20Configuration','mcpStatus.networkError','mcpConfig.configStep3','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initializeCommands','72965oZaMyt','Configuration\x20Notes:','univer-space-y-4','_config$','pre','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','div','MCPConnectionUIController','warn','onStarting','MCP\x20Connection\x20Failed','Plugin','_loadStoredApiKey','WebSocketService','配置保存成功','DISCONNECTED','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','NETWORK_ERROR','MCPStatusDisplay','mcpConfig.title','mcpConfig.validation.invalidApiKey','univer_session_id:','MCP_PLUGIN_CONFIG_KEY','label','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','_initAutoConnect','https://mcp.univer.ai/mcp/?univer_session_id=','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','register','mcpStatus.unauthorized','useObservable','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','配置更改将立即生效','get','univer-text-white','useDependency','univer-min-w-0\x20univer-flex-1','defineProperty','connectionStatus$','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','univer-text-xs\x20univer-text-gray-500','_handleConfigSave','value','What\x20is\x20API\x20Key?','univer-text-gray-400','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','49679xwVsIm','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','add','_dialogService','mcpConfig.validation.apiKeyTooShort','mcpStatus.clickToConnect','_apiKey$','OTHERS','IMessageService','mcpConfig.apiApplyInfo.getStarted','jsx','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20Connecting...','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','removeItem','stringify','Max\x20Retries','univer-text-sm\x20univer-font-medium','Save\x20Configuration','mcpConfig.configInstructions','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','HEADER_MENU','mcp-config-dialog','error','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','配置保存失败','651324CtNmlM','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_messageService','MCP\x20配置','open','_registerComponent','forEach','权限验证失败,请检查您的\x20API\x20密钥','univer-mr-2\x20univer-flex\x20univer-text-xl','未连接','LocaleService','mcpConfig.connectionStatus.retrying'];_0x1127=function(){return _0x54c52e;};return _0x1127();}function _(_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8){const _0x187014=_0x8849ec;var _0x1e3186=arguments[_0x187014(0xd6)],_0x5adfea=_0x1e3186<0x3?_0x2fe962:_0x30d7d8===null?_0x30d7d8=Object['getOwnPropertyDescriptor'](_0x2fe962,_0x17a771):_0x30d7d8,_0x40d952;if(typeof Reflect==_0x187014(0xaf)&&typeof Reflect[_0x187014(0x1d4)]==_0x187014(0xad))_0x5adfea=Reflect[_0x187014(0x1d4)](_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8);else{for(var _0x3211b6=_0x2159a7['length']-0x1;_0x3211b6>=0x0;_0x3211b6--)(_0x40d952=_0x2159a7[_0x3211b6])&&(_0x5adfea=(_0x1e3186<0x3?_0x40d952(_0x5adfea):_0x1e3186>0x3?_0x40d952(_0x2fe962,_0x17a771,_0x5adfea):_0x40d952(_0x2fe962,_0x17a771))||_0x5adfea);}return _0x1e3186>0x3&&_0x5adfea&&Object[_0x187014(0x1b4)](_0x2fe962,_0x17a771,_0x5adfea),_0x5adfea;}const v=_0x8849ec(0x8e),y=_0x8849ec(0x1d6);let b=class extends e[_0x8849ec(0xd7)]{constructor(_0x451c2f,_0x47bd29,_0x4068e0,_0x2c9de1,_0x115793,_0x1a2a9f,_0x2e497d,_0x2224e8,_0x2f0953,_0x3ba926){const _0x4373d4=_0x8849ec;super(),this[_0x4373d4(0x16b)]=_0x451c2f,this[_0x4373d4(0xfe)]=_0x47bd29,this[_0x4373d4(0x129)]=_0x4068e0,this[_0x4373d4(0xe0)]=_0x2c9de1,this[_0x4373d4(0x1c1)]=_0x115793,this[_0x4373d4(0x83)]=_0x1a2a9f,this[_0x4373d4(0xb4)]=_0x2e497d,this['_localeService']=_0x2224e8,this[_0x4373d4(0x137)]=_0x2f0953,this[_0x4373d4(0x175)]=_0x3ba926,h(this,_0x4373d4(0x100),new i['BehaviorSubject'](!0x1)),h(this,_0x4373d4(0xd5),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x190),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x1c4),new i['BehaviorSubject']('')),h(this,_0x4373d4(0x1b8),async _0xbae031=>{const _0x19f4e1=_0x4373d4;this['_loading$']['next'](!0x0);try{var _0x5e1d20,_0x553f27;let _0x32d3d8=await this[_0x19f4e1(0xbd)](_0xbae031);if(!_0x32d3d8[_0x19f4e1(0x178)]){this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n['MessageType'][_0x19f4e1(0x126)],'content':_0x32d3d8[_0x19f4e1(0xa9)]||this[_0x19f4e1(0x16c)]['t']('mcpConfig.validation.invalidConfig')});return;}_0xbae031['apiKey']?await this[_0x19f4e1(0xe0)]['setItem'](v,_0xbae031[_0x19f4e1(0xa3)][_0x19f4e1(0xbe)]()):await this[_0x19f4e1(0xe0)][_0x19f4e1(0x1cc)](v),this[_0x19f4e1(0x1c4)][_0x19f4e1(0xc5)](((_0x5e1d20=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x5e1d20[_0x19f4e1(0xbe)]())||''),this[_0x19f4e1(0x175)][_0x19f4e1(0x12c)]({'Authorization':_0x19f4e1(0x11b)+((_0x553f27=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x553f27[_0x19f4e1(0xbe)]())}),this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n[_0x19f4e1(0xbf)][_0x19f4e1(0x114)],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2bbfac=_0x19f4e1;this[_0x2bbfac(0x1c1)][_0x2bbfac(0xe2)](y);},0x320);}catch(_0x569317){this[_0x19f4e1(0x137)][_0x19f4e1(0x1d7)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x569317),this[_0x19f4e1(0x83)]['show']({'type':n[_0x19f4e1(0xbf)]['Error'],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configError')});}finally{this['_loading$']['next'](!0x1);}}),this[_0x4373d4(0xf2)](),this[_0x4373d4(0x199)](),this[_0x4373d4(0x86)]();}[_0x8849ec(0x16d)](){const _0x364cfe=_0x8849ec;let _0x3a1b41=this[_0x364cfe(0x129)][_0x364cfe(0x10b)](u);_0x3a1b41!=null&&_0x3a1b41['showDeveloperTools']&&this[_0x364cfe(0x1c1)][_0x364cfe(0x85)]({'id':y,'title':{'title':this['_localeService']['t'](_0x364cfe(0x1a0))},'children':{'label':_0x364cfe(0xd0)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3fcf26=_0x364cfe;this[_0x3fcf26(0x1c1)][_0x3fcf26(0xe2)](y);}});}[_0x8849ec(0x111)](){const _0x1ff2ed=_0x8849ec;return this[_0x1ff2ed(0xd5)][_0x1ff2ed(0x1b9)];}[_0x8849ec(0x86)](){const _0x420adf=_0x8849ec;this[_0x420adf(0x110)](this['_componentManager'][_0x420adf(0x1ab)](_0x420adf(0xd0),this[_0x420adf(0xe9)]()));}['_createConfigPanelComponent'](){const _0x252657=_0x8849ec;return(0x0,r[_0x252657(0x154)])(()=>{const _0x4801c6=_0x252657;var _0x37fe35,_0x5e6357,_0x43bf5a;return(0x0,s[_0x4801c6(0x1c8)])(l,{'config':this[_0x4801c6(0x190)]['value'],'mcpCoreConfig':this[_0x4801c6(0xd5)][_0x4801c6(0x1b9)],'currentApiKey$':this[_0x4801c6(0x1c4)],'onSave':this['_handleConfigSave'],'loading':this[_0x4801c6(0x100)][_0x4801c6(0x1b9)],'connectionStatus$':(_0x37fe35=this[_0x4801c6(0x175)])==null?void 0x0:_0x37fe35[_0x4801c6(0x1b5)],'connectionError$':(_0x5e6357=this[_0x4801c6(0x175)])==null?void 0x0:_0x5e6357['connectionError$'],'currentSessionId$':(_0x43bf5a=this[_0x4801c6(0x175)])==null?void 0x0:_0x43bf5a[_0x4801c6(0xac)]});},this[_0x252657(0x16b)]);}[_0x8849ec(0xf2)](){const _0x5a6b88=_0x8849ec;this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](t[_0x5a6b88(0x1a3)])[_0x5a6b88(0xbc)](_0x5f72f=>{const _0x4bbee4=_0x5a6b88;this[_0x4bbee4(0xd5)][_0x4bbee4(0xc5)](_0x5f72f||{});}));let _0x1b5932=this[_0x5a6b88(0x129)][_0x5a6b88(0x10b)](t[_0x5a6b88(0x1a3)]);this[_0x5a6b88(0xd5)][_0x5a6b88(0xc5)](_0x1b5932||{}),this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](u)['subscribe'](_0x5aa774=>{const _0x1b3e15=_0x5a6b88;this[_0x1b3e15(0x190)]['next'](_0x5aa774||{});}));let _0x4e266f=this['_configService'][_0x5a6b88(0x10b)](u);this[_0x5a6b88(0x190)]['next'](_0x4e266f||{});}async['_loadStoredApiKey'](){const _0x266657=_0x8849ec;let _0x40b799=this['_configService'][_0x266657(0x10b)](u);if(!(_0x40b799!=null&&_0x40b799['showDeveloperTools']))return;let _0x3eb80a=await this[_0x266657(0xe0)][_0x266657(0xa5)](v);_0x3eb80a&&(this[_0x266657(0x175)][_0x266657(0x12c)]({'Authorization':'Bearer\x20'+_0x3eb80a}),this[_0x266657(0x1c4)]['next'](_0x3eb80a));}async['_validateConfig'](_0x3a37a8){const _0x9d3c5b=_0x8849ec;if(!_0x3a37a8[_0x9d3c5b(0xa3)]||_0x3a37a8['apiKey'][_0x9d3c5b(0xbe)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]()[_0x9d3c5b(0xd6)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x9d3c5b(0x1c2))};try{let _0x2c8eea=await this['_injector']['get'](t[_0x9d3c5b(0x125)])[_0x9d3c5b(0x15b)](_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]());return _0x2c8eea[_0x9d3c5b(0x178)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c8eea[_0x9d3c5b(0x1d7)]||this[_0x9d3c5b(0x16c)]['t'](_0x9d3c5b(0x1a1))};}catch(_0x5017d7){return console[_0x9d3c5b(0x195)](_0x9d3c5b(0x1d8),_0x5017d7),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,r['IUIPartsService']),g(0x2,e['IConfigService']),g(0x3,e[_0x8849ec(0xab)]),g(0x4,r[_0x8849ec(0xf1)]),g(0x5,r[_0x8849ec(0x1c6)]),g(0x6,(0x0,e[_0x8849ec(0x138)])(r[_0x8849ec(0x14c)])),g(0x7,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x8b)])),g(0x8,e[_0x8849ec(0x12e)]),g(0x9,(0x0,e[_0x8849ec(0x138)])(t['MCPConnectionController']))],b);const x={'id':_0x8849ec(0xc6),'type':e['CommandType']['COMMAND'],'handler':async(_0x542d1c,_0x431748)=>(_0x542d1c['get'](b)[_0x8849ec(0x16d)](),!0x0)};function S(_0x5424ec,_0x288bf0){const _0xca7345=_0x8849ec;switch(_0x5424ec){case t['MCPConnectionStatus'][_0xca7345(0x19c)]:return _0xca7345(0x11c);case t['MCPConnectionStatus'][_0xca7345(0x14d)]:return _0xca7345(0x9c);case t['MCPConnectionStatus'][_0xca7345(0x1a7)]:return'mcpStatus.connected';case t[_0xca7345(0x10a)]['FAILED']:switch(_0x288bf0){case t['MCPConnectionError']['UNAUTHORIZED']:return _0xca7345(0x1ac);case t[_0xca7345(0x13c)]['SESSION_ID_OCCUPIED']:return _0xca7345(0x134);case t['MCPConnectionError'][_0xca7345(0x19e)]:return _0xca7345(0x189);case t['MCPConnectionError'][_0xca7345(0x119)]:return _0xca7345(0xc0);default:return _0xca7345(0xda);}case t[_0xca7345(0x10a)][_0xca7345(0x181)]:return'mcpStatus.retrying';default:return _0xca7345(0xb5);}}function _0x1a3d(_0x34f5e8,_0x30b4d8){_0x34f5e8=_0x34f5e8-0x80;const _0x112709=_0x1127();let _0x1a3da2=_0x112709[_0x34f5e8];return _0x1a3da2;}function C(_0x33001b,_0x4c1344,_0x5b7053,_0x4a7f2d=!0x0){const _0x183667=_0x8849ec;let _0x563079=S(_0x33001b,_0x4c1344),_0x5948c8=_0x5b7053['t'](_0x563079);return _0x4a7f2d?_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]&&_0x4c1344===t['MCPConnectionError'][_0x183667(0x169)]?_0x5948c8+'\x20-\x20'+_0x5b7053['t'](_0x183667(0x97)):_0x33001b===t[_0x183667(0x10a)]['CONNECTED']?''+_0x5948c8:_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]||_0x33001b===t[_0x183667(0x10a)][_0x183667(0x179)]?_0x5948c8+_0x183667(0x139)+_0x5b7053['t'](_0x183667(0x1c3)):_0x5948c8:_0x5948c8;}function w(_0x35ecc5){const _0x338329=_0x8849ec;switch(_0x35ecc5){case t['MCPConnectionStatus'][_0x338329(0x1a7)]:return _0x338329(0x182);case t['MCPConnectionStatus'][_0x338329(0x14d)]:case t[_0x338329(0x10a)]['RETRYING']:return'univer-text-yellow-500';case t[_0x338329(0x10a)][_0x338329(0x179)]:case t[_0x338329(0x10a)][_0x338329(0x19c)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function T(_0x52b3a4){const _0xa77edc=_0x8849ec;let {status$:_0x72f62b,error$:_0x43c856,onConfigure:_0x330c5e,showClickable:_0x48a0fe=!0x0}=_0x52b3a4,_0x5ac735=(0x0,r[_0xa77edc(0x1ad)])(_0x72f62b,t['MCPConnectionStatus'][_0xa77edc(0x19c)]),_0x3473df=(0x0,r['useObservable'])(_0x43c856,t['MCPConnectionError']['NONE']),_0x480bb8=(0x0,r[_0xa77edc(0x1b2)])(e[_0xa77edc(0x8b)]),_0x591b7f=_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x1a7)];_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x14d)]||t[_0xa77edc(0x10a)][_0xa77edc(0x181)];let _0x31b31d=_0x480bb8['t'](S(_0x5ac735,_0x3473df)),_0x57f9a8=C(_0x5ac735,_0x3473df,_0x480bb8,_0x48a0fe),_0x1a8b4b=w(_0x5ac735),_0x47831d=_0x591b7f?(0x0,s['jsx'])(a[_0xa77edc(0x167)],{}):(0x0,s[_0xa77edc(0x1c8)])(a[_0xa77edc(0x122)],{}),_0x433236=(0x0,o[_0xa77edc(0x12b)])(()=>{_0x48a0fe&&_0x330c5e&&_0x330c5e();},[_0x48a0fe,_0x330c5e]);function _0x309be3(){const _0x1407d8=_0xa77edc;return(0x0,s['jsxs'])(_0x1407d8(0x193),{'className':(0x0,n[_0x1407d8(0xe7)])('univer-flex\x20univer-items-center',_0x48a0fe&&_0x330c5e&&_0x1407d8(0xeb)),'role':_0x1407d8(0x147),'onClick':_0x48a0fe&&_0x330c5e?_0x433236:void 0x0,'children':[(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':(0x0,n['clsx'])(_0x1407d8(0x89),_0x1a8b4b),'children':_0x47831d}),(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':_0x1407d8(0x1c9),'children':_0x31b31d})]});}return(0x0,s[_0xa77edc(0x1c8)])(n[_0xa77edc(0x153)],{'title':_0x57f9a8,'placement':_0xa77edc(0x16a),'children':_0x309be3()});}let E=class extends e['Disposable']{constructor(_0x5270dc,_0xc80bf6,_0x327008,_0x2cae46){const _0x31a952=_0x8849ec;super(),this['_injector']=_0x5270dc,this['_connectionController']=_0xc80bf6,this[_0x31a952(0xfe)]=_0x327008,this[_0x31a952(0x129)]=_0x2cae46,this[_0x31a952(0x1a8)](),this[_0x31a952(0x15f)]();}[_0x8849ec(0x1a8)](){const _0x292973=_0x8849ec;let _0x195ed0=this[_0x292973(0x129)][_0x292973(0x10b)](u);_0x195ed0!=null&&_0x195ed0['showDeveloperTools']&&(this[_0x292973(0x9a)][_0x292973(0x109)]=!0x1);}[_0x8849ec(0x15f)](){const _0x4493a0=_0x8849ec;let _0x369fa0=this[_0x4493a0(0x129)][_0x4493a0(0x10b)](u);(_0x369fa0==null?void 0x0:_0x369fa0[_0x4493a0(0x9f)])!==!0x1&&this[_0x4493a0(0x110)](this[_0x4493a0(0xfe)][_0x4493a0(0xdf)](r['BuiltInUIPart'][_0x4493a0(0x1d5)],()=>{const _0x1b389c=_0x4493a0;var _0x23d744;return(0x0,r[_0x1b389c(0x154)])(D({'status$':this[_0x1b389c(0x9a)][_0x1b389c(0x1b5)],'error$':this[_0x1b389c(0x9a)][_0x1b389c(0x15a)],'onConfigure':()=>this[_0x1b389c(0x11d)](),'showClickable':(_0x23d744=_0x369fa0==null?void 0x0:_0x369fa0[_0x1b389c(0x15c)])==null?!0x1:_0x23d744}),this['_injector']);}));}[_0x8849ec(0x11d)](){const _0x2b4579=_0x8849ec;this[_0x2b4579(0x16b)][_0x2b4579(0x1b0)](b)['showConfigPanel']();}};E=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,(0x0,e[_0x8849ec(0x138)])(t[_0x8849ec(0x125)])),g(0x2,r[_0x8849ec(0x130)]),g(0x3,e[_0x8849ec(0x1d2)])],E);function D(_0x250dc9){let {status$:_0x33c394,error$:_0x1e0018,onConfigure:_0x6fa27d,showClickable:_0x2f7fa5}=_0x250dc9;return function(){const _0x21fdb1=_0x1a3d;return(0x0,s[_0x21fdb1(0x1c8)])(T,{'status$':_0x33c394,'error$':_0x1e0018,'onConfigure':_0x6fa27d,'showClickable':_0x2f7fa5});};}function O(_0x248a55){const _0x3c21af=_0x8849ec;return{'id':x['id'],'type':r['MenuItemType'][_0x3c21af(0x148)],'icon':_0x3c21af(0x136),'title':'mcpConfig.title','tooltip':_0x3c21af(0x1a0)};}const k={[r[_0x8849ec(0x141)][_0x8849ec(0x1c5)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x8849ec(0xd7)]{constructor(_0x161f5f,_0x1fa3ca){const _0x17dca6=_0x8849ec;super(),this['_commandService']=_0x161f5f,this[_0x17dca6(0x13f)]=_0x1fa3ca,this[_0x17dca6(0x18c)](),this[_0x17dca6(0x8f)]();}[_0x8849ec(0x18c)](){const _0x128ed7=_0x8849ec;[x][_0x128ed7(0x87)](_0x26ae4c=>{const _0x5494bd=_0x128ed7;this[_0x5494bd(0x110)](this['_commandService'][_0x5494bd(0xcb)](_0x26ae4c));});}['_initializeMenus'](){const _0x5c2c1f=_0x8849ec;this[_0x5c2c1f(0x13f)][_0x5c2c1f(0xc3)](k);}};A=_([g(0x0,e[_0x8849ec(0xf0)]),g(0x1,r[_0x8849ec(0x142)])],A);const j={'mcpStatus':{'disconnected':_0x8849ec(0xc1),'connecting':_0x8849ec(0x1ca),'connected':_0x8849ec(0xb3),'failed':_0x8849ec(0x197),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x8849ec(0x92),'networkError':_0x8849ec(0xef),'maxRetriesExceeded':_0x8849ec(0x143),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x8849ec(0x10d)},'mcpConfig':{'title':_0x8849ec(0xea),'description':_0x8849ec(0x11f),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x8849ec(0x1bf),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x8849ec(0x188),'mcpClientConfig':_0x8849ec(0x188),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x8849ec(0x146),'configStep2':_0x8849ec(0xec),'configStep3':_0x8849ec(0x14e),'sessionId':_0x8849ec(0x8d),'sessionIdDescription':_0x8849ec(0x150),'authorizationDescription':_0x8849ec(0x163),'configParameters':_0x8849ec(0xfb),'maxRetries':_0x8849ec(0x1ce),'save':_0x8849ec(0x1d0),'saving':_0x8849ec(0x1a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x8849ec(0xee),'configError':_0x8849ec(0x1be),'apiApplyInfo':{'title':_0x8849ec(0x1ba),'description':_0x8849ec(0x1bc),'univerAiLabel':_0x8849ec(0xe8),'getStarted':_0x8849ec(0x104)},'validation':{'apiKeyRequired':_0x8849ec(0x116),'apiKeyTooShort':_0x8849ec(0x14a),'invalidConfig':_0x8849ec(0x9d),'invalidApiKey':_0x8849ec(0x102)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x8849ec(0xed),'connected':'Connected','failed':_0x8849ec(0xd1),'retrying':_0x8849ec(0x13d)},'connectionError':{'unauthorized':_0x8849ec(0x1a6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x8849ec(0x99)}}},M={'mcpStatus':{'disconnected':_0x8849ec(0x11e),'connecting':_0x8849ec(0x161),'connected':_0x8849ec(0x107),'failed':_0x8849ec(0x9b),'retrying':_0x8849ec(0x117),'unknown':'MCP\x20状态未知','unauthorized':_0x8849ec(0x144),'sessionOccupied':_0x8849ec(0xd2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x8849ec(0x10f),'clickToConnect':_0x8849ec(0x157),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x8849ec(0x84),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x8849ec(0xe1),'apiKeyHint':_0x8849ec(0x166),'enableAuth':'启用身份验证','enableAuthHint':_0x8849ec(0x93),'connectionInfo':_0x8849ec(0xba),'mcpClientConfig':_0x8849ec(0xba),'configInstructions':_0x8849ec(0xa2),'configStepTitle':_0x8849ec(0x15e),'configStep1':_0x8849ec(0x183),'configStep2':_0x8849ec(0x103),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x8849ec(0xff),'sessionIdDescription':_0x8849ec(0x145),'authorizationDescription':_0x8849ec(0x105),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':_0x8849ec(0x120),'note1':_0x8849ec(0x1af),'note2':_0x8849ec(0x121),'configSaved':_0x8849ec(0x19b),'configError':_0x8849ec(0x80),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x8849ec(0x19d),'univerAiLabel':_0x8849ec(0x176),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x8849ec(0x115),'apiKeyTooShort':_0x8849ec(0xcf),'invalidConfig':'配置无效','invalidApiKey':_0x8849ec(0xc9)},'connectionStatus':{'disconnected':_0x8849ec(0x8a),'connecting':'连接中...','connected':_0x8849ec(0xaa),'failed':_0x8849ec(0x172),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x8849ec(0x88),'sessionOccupied':_0x8849ec(0xf4),'networkError':_0x8849ec(0x171),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var N='@univerjs-pro/mcp-ui',P='0.20.1';let F=class extends e[_0x8849ec(0x198)]{constructor(_0xa61f51=d,_0x584c75,_0x39c547,_0x2b9256,_0x157f64,_0xf61ef1){const _0x443c84=_0x8849ec;super(),this[_0x443c84(0xdd)]=_0xa61f51,this['_injector']=_0x584c75,this[_0x443c84(0x129)]=_0x39c547,this['_uiPartsService']=_0x2b9256,this[_0x443c84(0xe0)]=_0x157f64,this[_0x443c84(0x16c)]=_0xf61ef1;let {..._0x21bc31}=(0x0,e['merge'])({},d,this[_0x443c84(0xdd)]);this[_0x443c84(0x129)][_0x443c84(0xf7)](u,_0x21bc31);}async[_0x8849ec(0x196)](){const _0x4175de=_0x8849ec;let _0x5bace6=[[E],[b],[A]];this[_0x4175de(0x16b)][_0x4175de(0x10e)](c['ISocketService'])||_0x5bace6[_0x4175de(0xb8)]([c['ISocketService'],{'useClass':c[_0x4175de(0x19a)]}]),_0x5bace6[_0x4175de(0x87)](_0xb5af6c=>this['_injector'][_0x4175de(0x1c0)](_0xb5af6c)),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](E),this['_injector'][_0x4175de(0x1b0)](b),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](A);}};h(F,_0x8849ec(0x149),_0x8849ec(0xcc)),h(F,'packageName',N),h(F,_0x8849ec(0x17c),P),F=_([(0x0,e[_0x8849ec(0x151)])(t['UniverMCPPlugin']),g(0x1,(0x0,e[_0x8849ec(0x138)])(e['Injector'])),g(0x2,e['IConfigService']),g(0x3,r[_0x8849ec(0x130)]),g(0x4,e['ILocalStorageService']),g(0x5,(0x0,e['Inject'])(e[_0x8849ec(0x8b)]))],F),exports[_0x8849ec(0xd0)]=l,Object[_0x8849ec(0x1b4)](exports,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x8849ec(0x194),{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x8849ec(0x19f)]=T,Object['defineProperty'](exports,_0x8849ec(0xa7),{'enumerable':!0x0,'get':function(){return A;}}),exports['OpenMCPConfigPanelCommand']=x,Object['defineProperty'](exports,_0x8849ec(0x112),{'enumerable':!0x0,'get':function(){return F;}}),exports['enUS']=j,exports[_0x8849ec(0x15d)]=M;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ea1(){const _0x21abab=['Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','50712jwOPeu','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','5772672crVdbI','Saving...','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Configuration','API\x20Key','MCP\x20Unknown\x20Status','1KgAipg','Save\x20Configuration','94533vDqDBg','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','2954EsfJIs','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','7751711sXSGxb','MCP\x20Retrying...','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','158378oTMvEn','5704cZvdDW','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','35jCBhJl','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2371450LpJoJw','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','44nYmXLp','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','What\x20is\x20API\x20Key?'];_0x4ea1=function(){return _0x21abab;};return _0x4ea1();}function _0xec7b(_0x422fc4,_0xeb3c08){_0x422fc4=_0x422fc4-0x16b;const _0x4ea1fc=_0x4ea1();let _0xec7bea=_0x4ea1fc[_0x422fc4];return _0xec7bea;}const _0xf4b343=_0xec7b;(function(_0x470ed9,_0x3ea0e5){const _0x66cfc=_0xec7b,_0x4fda4f=_0x470ed9();while(!![]){try{const _0x1b3097=-parseInt(_0x66cfc(0x172))/0x1*(-parseInt(_0x66cfc(0x183))/0x2)+parseInt(_0x66cfc(0x174))/0x3*(parseInt(_0x66cfc(0x191))/0x4)+-parseInt(_0x66cfc(0x187))/0x5*(-parseInt(_0x66cfc(0x199))/0x6)+-parseInt(_0x66cfc(0x177))/0x7*(parseInt(_0x66cfc(0x184))/0x8)+parseInt(_0x66cfc(0x19c))/0x9+parseInt(_0x66cfc(0x18c))/0xa+-parseInt(_0x66cfc(0x17e))/0xb;if(_0x1b3097===_0x3ea0e5)break;else _0x4fda4f['push'](_0x4fda4f['shift']());}catch(_0x578071){_0x4fda4f['push'](_0x4fda4f['shift']());}}}(_0x4ea1,0x57634));const e={'mcpStatus':{'disconnected':_0xf4b343(0x19a),'connecting':_0xf4b343(0x17d),'connected':_0xf4b343(0x1a0),'failed':_0xf4b343(0x175),'retrying':_0xf4b343(0x17f),'unknown':_0xf4b343(0x171),'unauthorized':_0xf4b343(0x16d),'sessionOccupied':_0xf4b343(0x18d),'networkError':_0xf4b343(0x18e),'maxRetriesExceeded':_0xf4b343(0x19b),'clickToConnect':_0xf4b343(0x197),'clickToConfigure':_0xf4b343(0x18a)},'mcpConfig':{'title':_0xf4b343(0x16f),'description':_0xf4b343(0x185),'apiKey':_0xf4b343(0x170),'apiKeyPlaceholder':_0xf4b343(0x188),'apiKeyHint':_0xf4b343(0x198),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xf4b343(0x16c),'connectionInfo':_0xf4b343(0x16b),'mcpClientConfig':_0xf4b343(0x16b),'configInstructions':_0xf4b343(0x186),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xf4b343(0x194),'configStep2':_0xf4b343(0x182),'configStep3':_0xf4b343(0x17c),'sessionId':'Session\x20ID','sessionIdDescription':_0xf4b343(0x16e),'authorizationDescription':_0xf4b343(0x17a),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xf4b343(0x192),'save':_0xf4b343(0x173),'saving':_0xf4b343(0x19d),'note1':_0xf4b343(0x19f),'note2':_0xf4b343(0x179),'configSaved':_0xf4b343(0x176),'configError':_0xf4b343(0x178),'apiApplyInfo':{'title':_0xf4b343(0x196),'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':_0xf4b343(0x17b),'getStarted':_0xf4b343(0x189)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xf4b343(0x18f),'invalidConfig':_0xf4b343(0x19e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xf4b343(0x180),'connected':'Connected','failed':_0xf4b343(0x195),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xf4b343(0x18b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xf4b343(0x181),'maxRetriesExceeded':_0xf4b343(0x193)}}};module[_0xf4b343(0x190)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3793da=_0x4eae;(function(_0x46c324,_0x46b059){const _0x1bc745=_0x4eae,_0x55abc1=_0x46c324();while(!![]){try{const _0x22e014=parseInt(_0x1bc745(0x142))/0x1*(-parseInt(_0x1bc745(0x13d))/0x2)+parseInt(_0x1bc745(0x12a))/0x3*(parseInt(_0x1bc745(0x158))/0x4)+parseInt(_0x1bc745(0x141))/0x5*(-parseInt(_0x1bc745(0x136))/0x6)+-parseInt(_0x1bc745(0x129))/0x7+-parseInt(_0x1bc745(0x14c))/0x8+parseInt(_0x1bc745(0x154))/0x9*(-parseInt(_0x1bc745(0x15a))/0xa)+parseInt(_0x1bc745(0x14b))/0xb;if(_0x22e014===_0x46b059)break;else _0x55abc1['push'](_0x55abc1['shift']());}catch(_0x137b38){_0x55abc1['push'](_0x55abc1['shift']());}}}(_0x295b,0xc374e));function _0x4eae(_0x56c379,_0x15380c){_0x56c379=_0x56c379-0x129;const _0x295b15=_0x295b();let _0x4eae54=_0x295b15[_0x56c379];return _0x4eae54;}const e={'mcpStatus':{'disconnected':_0x3793da(0x159),'connecting':'MCP\x20Connecting...','connected':_0x3793da(0x14f),'failed':_0x3793da(0x13c),'retrying':'MCP\x20Retrying...','unknown':_0x3793da(0x153),'unauthorized':_0x3793da(0x149),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3793da(0x12f),'maxRetriesExceeded':_0x3793da(0x143),'clickToConnect':_0x3793da(0x13b),'clickToConfigure':_0x3793da(0x13e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3793da(0x148),'apiKey':_0x3793da(0x15b),'apiKeyPlaceholder':_0x3793da(0x144),'apiKeyHint':_0x3793da(0x12c),'enableAuth':_0x3793da(0x140),'enableAuthHint':_0x3793da(0x146),'connectionInfo':_0x3793da(0x145),'mcpClientConfig':_0x3793da(0x145),'configInstructions':_0x3793da(0x152),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3793da(0x132),'configStep2':_0x3793da(0x133),'configStep3':_0x3793da(0x157),'sessionId':_0x3793da(0x14d),'sessionIdDescription':_0x3793da(0x134),'authorizationDescription':_0x3793da(0x12b),'configParameters':_0x3793da(0x137),'maxRetries':_0x3793da(0x13f),'save':'Save\x20Configuration','saving':_0x3793da(0x138),'note1':_0x3793da(0x130),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3793da(0x131),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3793da(0x13a),'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':_0x3793da(0x12d),'getStarted':_0x3793da(0x14a)},'validation':{'apiKeyRequired':_0x3793da(0x14e),'apiKeyTooShort':_0x3793da(0x139),'invalidConfig':_0x3793da(0x155),'invalidApiKey':_0x3793da(0x150)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3793da(0x151),'retrying':_0x3793da(0x156)},'connectionError':{'unauthorized':_0x3793da(0x135),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3793da(0x12e),'maxRetriesExceeded':_0x3793da(0x147)}}};function _0x295b(){const _0x23ec21=['10NhvKNR','API\x20Key','2937249pqZoNd','993IQfGxk','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8214906FxGtHX','Configuration\x20Parameters:','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','814tnWqMf','Click\x20to\x20configure\x20MCP','Max\x20Retries','Enable\x20Authentication','5KaKYsN','2503Mxgxxi','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','31030329Lvolvq','1412064UthzLJ','Session\x20ID','API\x20key\x20is\x20required','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','5093217nEJHbH','Invalid\x20configuration','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','18484ArrxOD','MCP\x20Disconnected'];_0x295b=function(){return _0x23ec21;};return _0x295b();}module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4f20(_0x42612b,_0x4723f0){_0x42612b=_0x42612b-0x150;const _0x34b22d=_0x34b2();let _0x4f203d=_0x34b22d[_0x42612b];return _0x4f203d;}const _0xac337d=_0x4f20;(function(_0x2c7ede,_0x23c529){const _0x6d8f28=_0x4f20,_0x5349ee=_0x2c7ede();while(!![]){try{const _0x3078be=parseInt(_0x6d8f28(0x171))/0x1*(parseInt(_0x6d8f28(0x16a))/0x2)+parseInt(_0x6d8f28(0x16d))/0x3+-parseInt(_0x6d8f28(0x168))/0x4+parseInt(_0x6d8f28(0x163))/0x5+parseInt(_0x6d8f28(0x15d))/0x6+-parseInt(_0x6d8f28(0x155))/0x7*(-parseInt(_0x6d8f28(0x158))/0x8)+-parseInt(_0x6d8f28(0x172))/0x9*(parseInt(_0x6d8f28(0x173))/0xa);if(_0x3078be===_0x23c529)break;else _0x5349ee['push'](_0x5349ee['shift']());}catch(_0xb2e127){_0x5349ee['push'](_0x5349ee['shift']());}}}(_0x34b2,0xaa404));const e={'mcpStatus':{'disconnected':_0xac337d(0x161),'connecting':_0xac337d(0x164),'connected':_0xac337d(0x175),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0xac337d(0x180),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xac337d(0x165),'networkError':_0xac337d(0x16e),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xac337d(0x16f)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xac337d(0x17b),'apiKey':_0xac337d(0x15a),'apiKeyPlaceholder':_0xac337d(0x166),'apiKeyHint':_0xac337d(0x15e),'enableAuth':_0xac337d(0x150),'enableAuthHint':_0xac337d(0x17a),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xac337d(0x153),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xac337d(0x177),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xac337d(0x176),'configStep3':_0xac337d(0x16c),'sessionId':_0xac337d(0x157),'sessionIdDescription':_0xac337d(0x15f),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xac337d(0x178),'maxRetries':_0xac337d(0x182),'save':_0xac337d(0x15c),'saving':_0xac337d(0x17c),'note1':_0xac337d(0x159),'note2':_0xac337d(0x17f),'configSaved':_0xac337d(0x16b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xac337d(0x174),'description':_0xac337d(0x17e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xac337d(0x151)},'validation':{'apiKeyRequired':_0xac337d(0x179),'apiKeyTooShort':_0xac337d(0x170),'invalidConfig':_0xac337d(0x152),'invalidApiKey':_0xac337d(0x154)},'connectionStatus':{'disconnected':_0xac337d(0x156),'connecting':_0xac337d(0x15b),'connected':_0xac337d(0x162),'failed':_0xac337d(0x17d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xac337d(0x181),'sessionOccupied':_0xac337d(0x160),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xac337d(0x167)}}};module[_0xac337d(0x169)]=e;function _0x34b2(){const _0x22b0b0=['Max\x20Retries','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','7bdlNRT','Disconnected','Session\x20ID','9198736GfGOyi','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Connecting...','Save\x20Configuration','7405032XBnIXg','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.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','Connected','3932980MZXZmJ','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1782228xDRHco','exports','62YrBkgP','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1487073ulJzFX','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3417mHCGRj','27xhAJYJ','8764410qJbvRi','What\x20is\x20API\x20Key?','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Configuration\x20Parameters:','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Connection\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.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x34b2=function(){return _0x22b0b0;};return _0x34b2();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5072(_0x31cae7,_0x4479f2){_0x31cae7=_0x31cae7-0x1e5;const _0x5e5c53=_0x5e5c();let _0x5072dd=_0x5e5c53[_0x31cae7];return _0x5072dd;}function _0x5e5c(){const _0x1008ef=['Univer\x20AI\x20Console','MCP\x20Connecting...','API\x20Key','Retrying...','405eeIJKD','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','162956LzqAjK','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','22964eOMlCZ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','4003376cZzkYm','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','1848511HWhCuK','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','117027qaqhDl','Enable\x20authentication\x20for\x20secure\x20connections','7160382VPytxR','Configuration\x20Parameters:','Disconnected','MCP\x20Client\x20Configuration','Enable\x20Authentication','2040JHwkUT','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Connecting...','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','What\x20is\x20API\x20Key?','125418UrHLgz','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','68BtFTCY','Session\x20ID','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key'];_0x5e5c=function(){return _0x1008ef;};return _0x5e5c();}const _0x2a6e24=_0x5072;(function(_0x291b8a,_0x3bad76){const _0x745db3=_0x5072,_0x9b3f00=_0x291b8a();while(!![]){try{const _0x4a61e9=parseInt(_0x745db3(0x206))/0x1+-parseInt(_0x745db3(0x1f9))/0x2*(-parseInt(_0x745db3(0x1f3))/0x3)+-parseInt(_0x745db3(0x20a))/0x4*(-parseInt(_0x745db3(0x202))/0x5)+parseInt(_0x745db3(0x217))/0x6+-parseInt(_0x745db3(0x212))/0x7+parseInt(_0x745db3(0x20d))/0x8+parseInt(_0x745db3(0x215))/0x9*(-parseInt(_0x745db3(0x1e9))/0xa);if(_0x4a61e9===_0x3bad76)break;else _0x9b3f00['push'](_0x9b3f00['shift']());}catch(_0x1941f0){_0x9b3f00['push'](_0x9b3f00['shift']());}}}(_0x5e5c,0xc9c93));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2a6e24(0x1ff),'connected':_0x2a6e24(0x20e),'failed':_0x2a6e24(0x1f5),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2a6e24(0x1ec),'clickToConnect':_0x2a6e24(0x208),'clickToConfigure':_0x2a6e24(0x211)},'mcpConfig':{'title':_0x2a6e24(0x1ea),'description':_0x2a6e24(0x209),'apiKey':_0x2a6e24(0x200),'apiKeyPlaceholder':_0x2a6e24(0x1fd),'apiKeyHint':_0x2a6e24(0x1f7),'enableAuth':_0x2a6e24(0x1e8),'enableAuthHint':_0x2a6e24(0x216),'connectionInfo':_0x2a6e24(0x1e7),'mcpClientConfig':_0x2a6e24(0x1e7),'configInstructions':_0x2a6e24(0x1f4),'configStepTitle':_0x2a6e24(0x1f1),'configStep1':_0x2a6e24(0x20c),'configStep2':_0x2a6e24(0x214),'configStep3':_0x2a6e24(0x20f),'sessionId':_0x2a6e24(0x1fa),'sessionIdDescription':_0x2a6e24(0x1f0),'authorizationDescription':_0x2a6e24(0x1ed),'configParameters':_0x2a6e24(0x1e5),'maxRetries':_0x2a6e24(0x1f6),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2a6e24(0x1eb),'note2':_0x2a6e24(0x1f8),'configSaved':_0x2a6e24(0x207),'configError':_0x2a6e24(0x1ef),'apiApplyInfo':{'title':_0x2a6e24(0x1f2),'description':_0x2a6e24(0x205),'univerAiLabel':_0x2a6e24(0x1fe),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2a6e24(0x20b),'invalidConfig':_0x2a6e24(0x210),'invalidApiKey':_0x2a6e24(0x1fc)},'connectionStatus':{'disconnected':_0x2a6e24(0x1e6),'connecting':_0x2a6e24(0x1ee),'connected':_0x2a6e24(0x1fb),'failed':'Connection\x20Failed','retrying':_0x2a6e24(0x201)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2a6e24(0x213),'networkError':_0x2a6e24(0x203),'maxRetriesExceeded':_0x2a6e24(0x204)}}};module['exports']=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5d52(){const _0x3798ac=['MCP\x20Connected','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Saving...','192591OciUcg','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8VJGDLY','650281KMpQuW','Configuration\x20Steps:','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','MCP\x20Configuration','Univer\x20AI\x20Console','2XlKPcv','Copy\x20the\x20JSON\x20configuration\x20below','5768GZxEeg','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Session\x20ID','Enable\x20Authentication','2286IOVaMp','API\x20Key','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','260CEAptD','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:\x20Max\x20Retries\x20Exceeded','1157244MeSsMr','Enter\x20your\x20API\x20key','Connected','11438ynRnoT','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','701583vewgly','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','16905rmEEiL','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1070892TIWsej'];_0x5d52=function(){return _0x3798ac;};return _0x5d52();}const _0x2c6479=_0x582b;function _0x582b(_0x21f2c3,_0x1f7084){_0x21f2c3=_0x21f2c3-0x129;const _0x5d52b0=_0x5d52();let _0x582bc8=_0x5d52b0[_0x21f2c3];return _0x582bc8;}(function(_0x265b3f,_0x433cf8){const _0x32ff78=_0x582b,_0x7f23fc=_0x265b3f();while(!![]){try{const _0x46cb01=-parseInt(_0x32ff78(0x150))/0x1*(-parseInt(_0x32ff78(0x157))/0x2)+parseInt(_0x32ff78(0x13e))/0x3*(parseInt(_0x32ff78(0x14f))/0x4)+parseInt(_0x32ff78(0x141))/0x5*(parseInt(_0x32ff78(0x15e))/0x6)+parseInt(_0x32ff78(0x134))/0x7*(-parseInt(_0x32ff78(0x159))/0x8)+parseInt(_0x32ff78(0x14b))/0x9*(-parseInt(_0x32ff78(0x12e))/0xa)+-parseInt(_0x32ff78(0x131))/0xb+parseInt(_0x32ff78(0x145))/0xc;if(_0x46cb01===_0x433cf8)break;else _0x7f23fc['push'](_0x7f23fc['shift']());}catch(_0x48db82){_0x7f23fc['push'](_0x7f23fc['shift']());}}}(_0x5d52,0xa0161));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2c6479(0x147),'connected':_0x2c6479(0x146),'failed':_0x2c6479(0x129),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2c6479(0x12d),'sessionOccupied':_0x2c6479(0x153),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2c6479(0x130),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2c6479(0x140)},'mcpConfig':{'title':_0x2c6479(0x155),'description':_0x2c6479(0x14d),'apiKey':_0x2c6479(0x15f),'apiKeyPlaceholder':_0x2c6479(0x132),'apiKeyHint':_0x2c6479(0x13f),'enableAuth':_0x2c6479(0x15d),'enableAuthHint':_0x2c6479(0x136),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2c6479(0x154),'configInstructions':_0x2c6479(0x14e),'configStepTitle':_0x2c6479(0x151),'configStep1':_0x2c6479(0x158),'configStep2':_0x2c6479(0x13d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2c6479(0x15c),'sessionIdDescription':_0x2c6479(0x144),'authorizationDescription':_0x2c6479(0x137),'configParameters':_0x2c6479(0x12a),'maxRetries':_0x2c6479(0x152),'save':_0x2c6479(0x142),'saving':_0x2c6479(0x14a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2c6479(0x12c),'configSaved':_0x2c6479(0x13b),'configError':_0x2c6479(0x13a),'apiApplyInfo':{'title':_0x2c6479(0x138),'description':_0x2c6479(0x12f),'univerAiLabel':_0x2c6479(0x156),'getStarted':_0x2c6479(0x143)},'validation':{'apiKeyRequired':_0x2c6479(0x14c),'apiKeyTooShort':_0x2c6479(0x139),'invalidConfig':_0x2c6479(0x149),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2c6479(0x15b),'connected':_0x2c6479(0x133),'failed':_0x2c6479(0x135),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2c6479(0x12b),'sessionOccupied':_0x2c6479(0x13c),'networkError':_0x2c6479(0x148),'maxRetriesExceeded':_0x2c6479(0x15a)}}};module['exports']=e;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4ebb(_0xfeacee,_0x521d82){_0xfeacee=_0xfeacee-0x1c2;const _0x3cd021=_0x3cd0();let _0x4ebb61=_0x3cd021[_0xfeacee];return _0x4ebb61;}const _0x4cdce9=_0x4ebb;(function(_0x1e3b07,_0x3f5fe9){const _0x504ae6=_0x4ebb,_0x1a04fd=_0x1e3b07();while(!![]){try{const _0x26f53b=parseInt(_0x504ae6(0x1da))/0x1*(-parseInt(_0x504ae6(0x1cd))/0x2)+-parseInt(_0x504ae6(0x1c4))/0x3*(parseInt(_0x504ae6(0x1e9))/0x4)+parseInt(_0x504ae6(0x1d1))/0x5*(parseInt(_0x504ae6(0x1c9))/0x6)+parseInt(_0x504ae6(0x1d3))/0x7+parseInt(_0x504ae6(0x1d6))/0x8+-parseInt(_0x504ae6(0x1cb))/0x9*(parseInt(_0x504ae6(0x1e3))/0xa)+parseInt(_0x504ae6(0x1cf))/0xb;if(_0x26f53b===_0x3f5fe9)break;else _0x1a04fd['push'](_0x1a04fd['shift']());}catch(_0x361e22){_0x1a04fd['push'](_0x1a04fd['shift']());}}}(_0x3cd0,0x43168));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':'MCP\x20接続済み','failed':_0x4cdce9(0x1d4),'retrying':_0x4cdce9(0x1db),'unknown':'MCP\x20不明な状態','unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x4cdce9(0x1ca),'networkError':_0x4cdce9(0x1e1),'maxRetriesExceeded':_0x4cdce9(0x1e0),'clickToConnect':_0x4cdce9(0x1ea),'clickToConfigure':_0x4cdce9(0x1e5)},'mcpConfig':{'title':_0x4cdce9(0x1e8),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x4cdce9(0x1c6),'apiKeyPlaceholder':_0x4cdce9(0x1ec),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x4cdce9(0x1ee),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x4cdce9(0x1c8),'mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x4cdce9(0x1c5),'configStep2':_0x4cdce9(0x1d2),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x4cdce9(0x1ce),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x4cdce9(0x1ed),'maxRetries':_0x4cdce9(0x1eb),'save':'設定を保存','saving':_0x4cdce9(0x1de),'note1':'設定の変更は直ちに有効になります','note2':_0x4cdce9(0x1d8),'configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':'APIキーとは?','description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x4cdce9(0x1e2),'getStarted':_0x4cdce9(0x1d7)},'validation':{'apiKeyRequired':_0x4cdce9(0x1d5),'apiKeyTooShort':_0x4cdce9(0x1dc),'invalidConfig':_0x4cdce9(0x1c7),'invalidApiKey':_0x4cdce9(0x1dd)},'connectionStatus':{'disconnected':_0x4cdce9(0x1e6),'connecting':_0x4cdce9(0x1e4),'connected':'接続済み','failed':_0x4cdce9(0x1c3),'retrying':_0x4cdce9(0x1d9)},'connectionError':{'unauthorized':_0x4cdce9(0x1df),'sessionOccupied':_0x4cdce9(0x1c2),'networkError':_0x4cdce9(0x1cc),'maxRetriesExceeded':_0x4cdce9(0x1e7)}}};module[_0x4cdce9(0x1d0)]=e;function _0x3cd0(){const _0x5e72f3=['セッションIDが現在使用中です。後でもう一度お試しください','接続失敗','39JJaTME','以下のJSON設定をコピー','APIキー','無効な設定','MCPクライアント設定','222TfMfgH','MCP:\x20セッションIDが使用中','3421737IiSPAo','ネットワーク接続エラー。インターネット接続を確認してください','361550oktuYH','セッションID','5924853yJKsiB','exports','11415AQjChf','MCPクライアントの設定ファイルに設定を追加','911771TzVsgw','MCP\x20接続失敗','APIキーは必須です','1936736ZMqgsg','数秒でAPIキーを取得','APIキーはローカルストレージに安全に保存されます','再試行中...','1vaLdao','MCP\x20再試行中...','APIキーは10文字以上である必要があります','無効なAPIキーです。キーが正しいか確認してください','保存中...','認証に失敗しました。APIキーを確認してください','MCP:\x20最大再試行回数を超過','MCP:\x20ネットワークエラー','Univer\x20AIコンソール','10mHUhsE','接続中...','クリックしてMCPを設定','未接続','最大再試行回数を超過しました。後でもう一度お試しください','MCP設定','49132tNjOEE','クリックしてMCPに接続','最大再試行回数','APIキーを入力してください','設定パラメータ:','認証を有効にする'];_0x3cd0=function(){return _0x5e72f3;};return _0x3cd0();}
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1be6(){const _0x4a5f23=['772xFrhpD','세션\x20ID','MCP\x20재시도\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','연결\x20끊김','1295310IFCBjs','254583mrxgDq','exports','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','5PpsfGX','연결\x20중...','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','최대\x20재시도\x20횟수','재시도\x20중...','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키는\x2010자\x20이상이어야\x20합니다','연결\x20실패','5467BSGYgs','8SSFzRv','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20키','저장\x20중...','인증\x20활성화','MCP\x20설정','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정','1611999qrBaMU','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP:\x20인증되지\x20않음','인증\x20실패.\x20API\x20키를\x20확인하세요','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','연결됨','2091qMDLTj','설정이\x20성공적으로\x20저장되었습니다','클릭하여\x20MCP\x20연결','715256lfRbPy','클릭하여\x20MCP\x20설정','2700xPiLJr','60062inIPbR','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP:\x20최대\x20재시도\x20횟수\x20초과','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20저장','MCP\x20연결\x20끊김','MCP\x20연결\x20실패','API\x20키를\x20입력하세요'];_0x1be6=function(){return _0x4a5f23;};return _0x1be6();}const _0x10345b=_0x4255;(function(_0x59fda3,_0x32e3b0){const _0x5e8ddf=_0x4255,_0x1ee633=_0x59fda3();while(!![]){try{const _0x216acd=-parseInt(_0x5e8ddf(0x156))/0x1+parseInt(_0x5e8ddf(0x15f))/0x2*(parseInt(_0x5e8ddf(0x150))/0x3)+parseInt(_0x5e8ddf(0x153))/0x4+parseInt(_0x5e8ddf(0x168))/0x5*(-parseInt(_0x5e8ddf(0x164))/0x6)+-parseInt(_0x5e8ddf(0x165))/0x7+-parseInt(_0x5e8ddf(0x171))/0x8*(-parseInt(_0x5e8ddf(0x14a))/0x9)+parseInt(_0x5e8ddf(0x155))/0xa*(-parseInt(_0x5e8ddf(0x170))/0xb);if(_0x216acd===_0x32e3b0)break;else _0x1ee633['push'](_0x1ee633['shift']());}catch(_0x31b0cb){_0x1ee633['push'](_0x1ee633['shift']());}}}(_0x1be6,0x2c0ed));const e={'mcpStatus':{'disconnected':_0x10345b(0x15c),'connecting':'MCP\x20연결\x20중...','connected':'MCP\x20연결됨','failed':_0x10345b(0x15d),'retrying':_0x10345b(0x161),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x10345b(0x14c),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x10345b(0x158),'clickToConnect':_0x10345b(0x152),'clickToConfigure':_0x10345b(0x154)},'mcpConfig':{'title':_0x10345b(0x176),'description':_0x10345b(0x14b),'apiKey':_0x10345b(0x173),'apiKeyPlaceholder':_0x10345b(0x15e),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x10345b(0x175),'enableAuthHint':_0x10345b(0x172),'connectionInfo':_0x10345b(0x149),'mcpClientConfig':_0x10345b(0x149),'configInstructions':_0x10345b(0x16a),'configStepTitle':'설정\x20단계:','configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x10345b(0x15a),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x10345b(0x160),'sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':'설정\x20매개변수:','maxRetries':_0x10345b(0x16b),'save':_0x10345b(0x15b),'saving':_0x10345b(0x174),'note1':_0x10345b(0x148),'note2':_0x10345b(0x167),'configSaved':_0x10345b(0x151),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x10345b(0x159),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x10345b(0x157)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x10345b(0x16e),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0x10345b(0x16d)},'connectionStatus':{'disconnected':_0x10345b(0x163),'connecting':_0x10345b(0x169),'connected':_0x10345b(0x14f),'failed':_0x10345b(0x16f),'retrying':_0x10345b(0x16c)},'connectionError':{'unauthorized':_0x10345b(0x14d),'sessionOccupied':_0x10345b(0x162),'networkError':_0x10345b(0x14e),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x4255(_0x3c92ef,_0x1eb623){_0x3c92ef=_0x3c92ef-0x148;const _0x1be6df=_0x1be6();let _0x425553=_0x1be6df[_0x3c92ef];return _0x425553;}module[_0x10345b(0x166)]=e;
|