@univerjs-pro/mcp-ui 0.10.10-nightly.202510180256 → 0.10.10-nightly.202510180327
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x301b8c=_0x5c3a;(function(_0x2958a9,_0xf4957c){var _0x4da45d=_0x5c3a,_0x28e391=_0x2958a9();while(!![]){try{var _0x15e852=parseInt(_0x4da45d(0x2e8))/0x1+-parseInt(_0x4da45d(0x2c2))/0x2+-parseInt(_0x4da45d(0x26d))/0x3*(-parseInt(_0x4da45d(0x20d))/0x4)+-parseInt(_0x4da45d(0x18f))/0x5*(parseInt(_0x4da45d(0x1ca))/0x6)+-parseInt(_0x4da45d(0x2f1))/0x7*(parseInt(_0x4da45d(0x29a))/0x8)+parseInt(_0x4da45d(0x244))/0x9*(parseInt(_0x4da45d(0x2c0))/0xa)+parseInt(_0x4da45d(0x25b))/0xb*(parseInt(_0x4da45d(0x1d8))/0xc);if(_0x15e852===_0xf4957c)break;else _0x28e391['push'](_0x28e391['shift']());}catch(_0x5aa6a0){_0x28e391['push'](_0x28e391['shift']());}}}(_0x33ae,0x56f16));var ue=Object['defineProperty'],le=(_0x316b8a,_0x1b6903,_0x9f4e26)=>_0x1b6903 in _0x316b8a?ue(_0x316b8a,_0x1b6903,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9f4e26}):_0x316b8a[_0x1b6903]=_0x9f4e26,I=(_0x33eaff,_0x19f4ad,_0x237716)=>le(_0x33eaff,typeof _0x19f4ad!=_0x301b8c(0x1c7)?_0x19f4ad+'':_0x19f4ad,_0x237716);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x301b8c(0x297)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _0x33ae(){var _0x3fb6e4=['univer.plus','HelpSingle','replace','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-gray-400','启用身份验证以获得安全连接','Configuration\x20Steps:','connectionStatus$','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-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','_createConfigPanelComponent','entries','UniverIcon','get','univer-text-yellow-500','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Injector','createElement','attrs','M0\x200H16V16H0z','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children','Retrying...','show','univer-flex-shrink-0\x20univer-text-blue-500','tag','push','univer-text-gray-500','mcpConfig.connectionError.unauthorized','propertyIsEnumerable','连接失败','_apiKey$','Max\x20Retries','univer-space-y-4','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionStatus.retrying','_injector','DependentOn','Button','MCP:\x20未授权','2241870ZDPjIl','_initializeCommands','MCPConfigPanel','url(#off-line-icon_clip0_910_343)','ICommandService','连接中...','_registerComponent','defs','onStarting','icon','connectInjector','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','url(#$1','white','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20连接中...','mcpStatus.connecting','MCP\x20Disconnected','mcpStatus.disconnected','javascript:void(0)','trim','subscribeConfigValue$','univer-bg-green-500','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','string','useCallback','Input','_componentManager','off-line-icon','RETRYING','M5.21243\x205.62036L11.8791\x2012.287','span','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','IMenuManagerService','_validateConfig','assign','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Authorization:','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','ComponentManager','error','mcpConfig.configStepTitle','What\x20is\x20API\x20Key?','NETWORK_ERROR','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','useRef','colorChannel1','use','zhCN','univer-bg-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','Saving...','Success','_handleConfigSave','symbol','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20状态未知','6QZosCh','univer-font-medium','MCP:\x20Network\x20Error','IUIPartsService','disposeWithMe','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.connectionError.networkError','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','getOwnPropertySymbols','Click\x20to\x20connect\x20MCP','UniverMCPUIPlugin','LocaleService','API\x20密钥长度至少需要\x2010\x20位','Configuration\x20Parameters:','162096gCASmo','getItem','OTHERS','next','univer-text-green-500','MCPConnectionController','forEach','MCP\x20Client\x20Configuration','function','WebSocketService','MCPStatusDisplay','univer-text-blue-600','_initializeMenus','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20连接失败','MCPUIMenuController','MCP\x20Connection\x20Failed','univer-text-sm\x20univer-text-gray-500','CheckMarkIcon','registerCommand','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Save\x20Configuration','_config$','setItem','_handleConfigure','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','extend','mcpConfig.configStep2','_dialogService','Enable\x20Authentication','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','保存配置','add','什么是\x20API\x20密钥?','mcpStatus.connected','IConfigService','call','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','RibbonStartGroup','CommandType','mcpStatus.clickToConfigure','showConfigPanel','univer-text-xs\x20univer-text-gray-500','_localStorageService','none','univer-space-y-3','MCP\x20客户端配置','MCP_PLUGIN_CONFIG_KEY','mcpConfig.connectionStatus.connected','map','\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','69164NLKaBj','API\x20Key','on-line-icon_clip0_910_349','idSuffix','hasOwnProperty','mcpConfig.description','_uiPartsService','help-single','将以下配置添加到您的\x20MCP\x20客户端设置中:','点击配置\x20MCP','MAX_RETRIES_EXCEEDED','将配置添加到您的\x20MCP\x20客户端设置文件中','Click\x20to\x20configure\x20MCP','mcpConfig.configStep3','univer-flex\x20univer-flex-wrap\x20univer-gap-2','0\x200\x2017\x2017','mcpServerUrl','mcp-config-dialog','getOwnPropertyDescriptor','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_mcpConnectionController','http://www.w3.org/2000/svg','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','on-line-icon','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.connectionInfo','Disposable','Configuration\x20saved\x20successfully','mcpConfig.configParameters','MCP:\x20Max\x20Retries\x20Exceeded','label','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','errorMessage','mcpConfig.note2','url(#on-line-icon_clip0_910_349)','univer-text-red-500','mcpConfig.saving','univer-text-sm\x20univer-font-medium','OpenMCPConfigPanelCommand','mcpConfig.validation.invalidConfig','_connectionController','_localeService','MCP:\x20网络错误','已连接','ILocalStorageService','mcpConfig.configStep1','BehaviorSubject','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','UniverMCPPlugin','会话ID','mcpStatus.networkError','BuiltInUIPart','_loading$','enUS','45yvLPFP','mcpStatus.failed','配置无效','concat','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','className','mask','Univer\x20AI\x20Console','网络连接错误,请检查您的网络连接','apiKey','_configService','MCPConnectionError','0\x200\x2016\x2016','Bearer\x20','showDeveloperTools','check-mark-icon','API\x20密钥不能为空','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','配置保存失败','请输入您的\x20API\x20密钥','univerjs-icon\x20univerjs-icon-','showStatus','jsx','539rndBib','connectionError$','currentColor','MCPConfigUIController','Connection\x20Failed','Inject','univer-bg-red-500','重连中...','bottom','xlink:href','API\x20密钥','配置保存成功','mergeMenu','text','close','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.maxRetriesExceeded','39RKNlfG','length','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','IDialogService','univer-min-w-0\x20univer-flex-1','启用身份验证','_initConfigSync','SESSION_ID_OCCUPIED','mcpConfig.apiApplyInfo.getStarted','_mcpCoreConfig$','mcpConfig.connectionError.maxRetriesExceeded','univer-space-y-2','API\x20key\x20with\x20Bearer\x20prefix.','useDependency','mcpConfig.apiApplyInfo.univerAiLabel','random','FAILED','mcpConfig.connectionStatus.connecting','indexOf','mcpConfig.save','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','includes','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpStatus.unauthorized','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcp-ui.config','defIds','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','_logService','univer-flex\x20univer-items-center','_loadStoredApiKey','mcpStatus.retrying','MenuIcon','useObservable','mcpConfig.note1','sessionId$','mcpConfig.configError','off-line-icon_clip0_910_343','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','\x20-\x20','Module','noopener\x20noreferrer','clsx','336560uANVEk','NONE','CloseSmallSingle','最大重试次数','setConfig','getConfig','_messageService','HEADER_MENU','M5.21243\x2012.287L11.8791\x205.62036','MenuItemType','round','div','Connected','__setCustomHeaders','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','svg','MCP:\x20超出最大重试次数','Tooltip','1em','useState','off','MCPConnectionUIController','subscribe','mcpConfig.title','OnLineIcon','MCP\x20Connected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpStatus.clickToConnect','0\x200\x2017\x2016','MCP\x20重连中...','_config','BUTTON','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-text-white','Plugin','MCP\x20Retrying...','权限验证失败,请检查您的\x20API\x20密钥','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','691850pBTcka','value','288602nescML','DISCONNECTED','mcpConfig.validation.apiKeyTooShort','mcpConfig.apiApplyInfo.title','univer-text-xs\x20univer-text-gray-600','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','register','univer.ai','_initStatusComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','enableAutoConnect','CONNECTING','displayName','mcpConfig.connectionStatus.disconnected','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','mcpStatus.sessionOccupied','MCP\x20已断开','MCPConnectionStatus','warn','您的\x20API\x20密钥将在此浏览器中本地存储','IMessageService','prototype','mcpConfig.apiKeyPlaceholder','evenodd','isValid','Close','univer-flex-1','_commandService','univer-flex-shrink-0\x20univer-text-red-500','univer-flex\x20univer-gap-3','_menuManagerService','https://console.univer.ai','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','path','forwardRef','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20Connecting...','136893NRlNkM','fill','_initAutoConnect','jsxs','CONNECTED','mcpConfig.apiKeyHint','open','UNAUTHORIZED','几秒钟内获取您的\x20API\x20密钥','70DANOzT','COMMAND','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20已连接','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.configInstructions','MessageType','mcpConfig.apiKey'];_0x33ae=function(){return _0x3fb6e4;};return _0x33ae();}var g=function(){var _0x23b9fe=_0x301b8c;return g=Object[_0x23b9fe(0x1b3)]||function(_0x5d8a32){var _0xe529fa=_0x23b9fe;for(var _0x436eba,_0x241f7e=0x1,_0x4ada1f=arguments[_0xe529fa(0x26e)];_0x241f7e<_0x4ada1f;_0x241f7e++){_0x436eba=arguments[_0x241f7e];for(var _0x542fcd in _0x436eba)Object['prototype']['hasOwnProperty'][_0xe529fa(0x1fe)](_0x436eba,_0x542fcd)&&(_0x5d8a32[_0x542fcd]=_0x436eba[_0x542fcd]);}return _0x5d8a32;},g['apply'](this,arguments);},ve=function(_0x4c0ac8,_0x40d8ac){var _0x26819d=_0x301b8c,_0x42b9eb={};for(var _0xb34ab in _0x4c0ac8)Object[_0x26819d(0x2d7)][_0x26819d(0x211)][_0x26819d(0x1fe)](_0x4c0ac8,_0xb34ab)&&_0x40d8ac[_0x26819d(0x280)](_0xb34ab)<0x0&&(_0x42b9eb[_0xb34ab]=_0x4c0ac8[_0xb34ab]);if(_0x4c0ac8!=null&&typeof Object[_0x26819d(0x1d2)]==_0x26819d(0x1e0)){for(var _0xfa286a=0x0,_0xb34ab=Object[_0x26819d(0x1d2)](_0x4c0ac8);_0xfa286a<_0xb34ab[_0x26819d(0x26e)];_0xfa286a++)_0x40d8ac[_0x26819d(0x280)](_0xb34ab[_0xfa286a])<0x0&&Object[_0x26819d(0x2d7)][_0x26819d(0x184)][_0x26819d(0x1fe)](_0x4c0ac8,_0xb34ab[_0xfa286a])&&(_0x42b9eb[_0xb34ab[_0xfa286a]]=_0x4c0ac8[_0xb34ab[_0xfa286a]]);}return _0x42b9eb;},_=d[_0x301b8c(0x2e4)](function(_0x22d883,_0x1476eb){var _0x4ddfd1=_0x301b8c,_0x422a94=_0x22d883[_0x4ddfd1(0x198)],_0xab11d7=_0x22d883['id'],_0x147582=_0x22d883[_0x4ddfd1(0x249)],_0x44c22e=_0x22d883[_0x4ddfd1(0x1f3)],_0x118e7f=ve(_0x22d883,[_0x4ddfd1(0x198),'id',_0x4ddfd1(0x249),'extend']),_0x40c10b=_0x4ddfd1(0x258)[_0x4ddfd1(0x247)](_0xab11d7,'\x20')[_0x4ddfd1(0x247)](_0x147582||'')[_0x4ddfd1(0x1a4)](),_0x5a9d75=d[_0x4ddfd1(0x1be)]('_'[_0x4ddfd1(0x247)](ge()));return H(_0x422a94,''['concat'](_0xab11d7),{'defIds':_0x422a94[_0x4ddfd1(0x289)],'idSuffix':_0x5a9d75['current']},g({'ref':_0x1476eb,'className':_0x40c10b},_0x118e7f),_0x44c22e);});function H(_0x383219,_0x23c0fe,_0x40e6e1,_0x244e15,_0x2680f5){var _0x534ac1=_0x301b8c;return d[_0x534ac1(0x178)](_0x383219[_0x534ac1(0x180)],g(g({'key':_0x23c0fe},de(_0x383219,_0x40e6e1,_0x2680f5)),_0x244e15),(Ce(_0x383219,_0x40e6e1)['children']||[])['map'](function(_0x219487,_0x1ff0c9){var _0x716013=_0x534ac1;return H(_0x219487,''['concat'](_0x23c0fe,'-')[_0x716013(0x247)](_0x383219['tag'],'-')[_0x716013(0x247)](_0x1ff0c9),_0x40e6e1,void 0x0,_0x2680f5);}));}function de(_0x3bb7ae,_0x11efdc,_0x2320ec){var _0x3c1272=_0x301b8c,_0x3d3021=g({},_0x3bb7ae[_0x3c1272(0x179)]);_0x2320ec!=null&&_0x2320ec[_0x3c1272(0x1bf)]&&_0x3d3021[_0x3c1272(0x2e9)]===_0x3c1272(0x1bf)&&(_0x3d3021[_0x3c1272(0x2e9)]=_0x2320ec[_0x3c1272(0x1bf)]),_0x3bb7ae[_0x3c1272(0x180)]==='mask'&&_0x3d3021['id']&&(_0x3d3021['id']=_0x3d3021['id']+_0x11efdc[_0x3c1272(0x210)]),Object[_0x3c1272(0x304)](_0x3d3021)[_0x3c1272(0x1de)](function(_0x610599){var _0x271023=_0x3c1272,_0x15e0f7=_0x610599[0x0],_0xcf8df2=_0x610599[0x1];_0x15e0f7===_0x271023(0x24a)&&typeof _0xcf8df2==_0x271023(0x1a8)&&(_0x3d3021[_0x15e0f7]=_0xcf8df2[_0x271023(0x2fb)](/url\(#(.*)\)/,_0x271023(0x19c)[_0x271023(0x247)](_0x11efdc[_0x271023(0x210)],')')));});var _0x547be0=_0x11efdc[_0x3c1272(0x289)];return!_0x547be0||_0x547be0[_0x3c1272(0x26e)]===0x0||(_0x3bb7ae[_0x3c1272(0x180)]===_0x3c1272(0x1c0)&&_0x3d3021[_0x3c1272(0x264)]&&(_0x3d3021[_0x3c1272(0x264)]=_0x3d3021['xlink:href']+_0x11efdc[_0x3c1272(0x210)]),Object[_0x3c1272(0x304)](_0x3d3021)[_0x3c1272(0x1de)](function(_0x5cdb97){var _0x2e879d=_0x3c1272,_0x12f0b0=_0x5cdb97[0x0],_0x40b49b=_0x5cdb97[0x1];typeof _0x40b49b==_0x2e879d(0x1a8)&&(_0x3d3021[_0x12f0b0]=_0x40b49b[_0x2e879d(0x2fb)](/url\(#(.*)\)/,'url(#$1'[_0x2e879d(0x247)](_0x11efdc[_0x2e879d(0x210)],')')));})),_0x3d3021;}function Ce(_0x1c1206,_0x4bc97c){var _0x89803e=_0x301b8c,_0x85cabc,_0x36760d=_0x4bc97c['defIds'];return!_0x36760d||_0x36760d[_0x89803e(0x26e)]===0x0?_0x1c1206:_0x1c1206[_0x89803e(0x180)]===_0x89803e(0x196)&&(!((_0x85cabc=_0x1c1206[_0x89803e(0x17c)])===null||_0x85cabc===void 0x0)&&_0x85cabc[_0x89803e(0x26e)])?g(g({},_0x1c1206),{'children':_0x1c1206[_0x89803e(0x17c)][_0x89803e(0x20b)](function(_0x4d1278){var _0x3078be=_0x89803e;return typeof _0x4d1278[_0x3078be(0x179)]['id']=='string'&&_0x36760d&&_0x36760d[_0x3078be(0x283)](_0x4d1278['attrs']['id'])?g(g({},_0x4d1278),{'attrs':g(g({},_0x4d1278[_0x3078be(0x179)]),{'id':_0x4d1278[_0x3078be(0x179)]['id']+_0x4bc97c[_0x3078be(0x210)]})}):_0x4d1278;})}):_0x1c1206;}function ge(){var _0x531635=_0x301b8c;return Math[_0x531635(0x27d)]()['toString'](0x24)['substring'](0x2,0x8);}_[_0x301b8c(0x2ce)]=_0x301b8c(0x305);var fe={'tag':'svg','attrs':{'xmlns':_0x301b8c(0x222),'fill':_0x301b8c(0x206),'viewBox':_0x301b8c(0x250),'width':'1em','height':_0x301b8c(0x2ac)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'fill':_0x301b8c(0x25d),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x301b8c(0x2d9)}}]},B=d[_0x301b8c(0x2e4)](function(_0x2b0a7c,_0x4ddbe0){var _0x3b7012=_0x301b8c;return d[_0x3b7012(0x178)](_,Object['assign']({},_0x2b0a7c,{'id':_0x3b7012(0x253),'ref':_0x4ddbe0,'icon':fe}));});B[_0x301b8c(0x2ce)]=_0x301b8c(0x1ea);var pe={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':_0x301b8c(0x222),'fill':_0x301b8c(0x206),'viewBox':_0x301b8c(0x21c),'width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x1ae),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':_0x301b8c(0x2a4),'strokeWidth':1.33}},{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x2a2),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':'round','strokeWidth':1.33}}]},F=d[_0x301b8c(0x2e4)](function(_0x250e19,_0x31a7e4){var _0xb23045=_0x301b8c;return d['createElement'](_,Object[_0xb23045(0x1b3)]({},_0x250e19,{'id':'close-small-single','ref':_0x31a7e4,'icon':pe}));});F['displayName']=_0x301b8c(0x29c);var he={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':_0x301b8c(0x222),'fill':_0x301b8c(0x206),'viewBox':'0\x200\x2016\x2016','width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'fill':'currentColor','d':_0x301b8c(0x2d0)}},{'tag':_0x301b8c(0x2e3),'attrs':{'fill':_0x301b8c(0x25d),'d':_0x301b8c(0x28a)}},{'tag':_0x301b8c(0x2e3),'attrs':{'fill':_0x301b8c(0x25d),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x301b8c(0x2d9),'clipRule':_0x301b8c(0x2d9)}}]},Y=d[_0x301b8c(0x2e4)](function(_0x4da26a,_0x2987ca){var _0x2205ef=_0x301b8c;return d['createElement'](_,Object[_0x2205ef(0x1b3)]({},_0x4da26a,{'id':_0x2205ef(0x214),'ref':_0x2987ca,'icon':he}));});Y[_0x301b8c(0x2ce)]=_0x301b8c(0x2fa);var me={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':_0x301b8c(0x222),'fill':'none','viewBox':_0x301b8c(0x250),'width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x301b8c(0x192)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x301),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':_0x301b8c(0x2a4),'strokeWidth':1.2}}]},{'tag':_0x301b8c(0x196),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x301b8c(0x294)},'children':[{'tag':'path','attrs':{'fill':_0x301b8c(0x19d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},q=d[_0x301b8c(0x2e4)](function(_0x4bfed1,_0x92f882){var _0x530f5d=_0x301b8c;return d[_0x530f5d(0x178)](_,Object['assign']({},_0x4bfed1,{'id':_0x530f5d(0x1ac),'ref':_0x92f882,'icon':me}));});q['displayName']='OffLineIcon';var xe={'tag':_0x301b8c(0x2a9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x301b8c(0x206),'viewBox':_0x301b8c(0x2b6),'width':_0x301b8c(0x2ac),'height':_0x301b8c(0x2ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x301b8c(0x230)},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'stroke':_0x301b8c(0x25d),'d':_0x301b8c(0x23d),'strokeLinecap':_0x301b8c(0x2a4),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x301b8c(0x2e3),'attrs':{'fill':'white','d':_0x301b8c(0x17a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x301b8c(0x20f)]},V=d['forwardRef'](function(_0x313969,_0x102af8){var _0x261f97=_0x301b8c;return d['createElement'](_,Object[_0x261f97(0x1b3)]({},_0x313969,{'id':_0x261f97(0x224),'ref':_0x102af8,'icon':xe}));});V[_0x301b8c(0x2ce)]=_0x301b8c(0x2b2);function W(_0x475eee){var _0x50e05b=_0x301b8c,_0x39ed06,_0xf84c5a;const {mcpCoreConfig:_0x58e012,onSave:_0x5f4d55,loading:_0x3029b6=!0x1,config:_0xeb071f,connectionStatus$:_0xf8ce1a,connectionError$:_0x55b26e,currentApiKey$:_0xa1d5ba,currentSessionId$:_0x2ba715}=_0x475eee,_0x3ea171=v[_0x50e05b(0x27b)](l['LocaleService']),_0x53f42e=v['useObservable'](_0xf8ce1a,s[_0x50e05b(0x2d3)][_0x50e05b(0x2c3)]),_0x43d48a=v['useObservable'](_0x55b26e,s[_0x50e05b(0x24f)][_0x50e05b(0x29b)]),_0x136cc0=v[_0x50e05b(0x290)](_0x2ba715,''),_0x3c19a2=v[_0x50e05b(0x290)](_0xa1d5ba,''),[_0x1f660b,_0x34e6f9]=d[_0x50e05b(0x2ad)](_0x3c19a2||''),_0x1f6563=!0x0,_0x5b2730=_0xeb071f[_0x50e05b(0x252)]&&_0x58e012[_0x50e05b(0x21d)]&&(_0x58e012[_0x50e05b(0x21d)]['includes']('univer.plus')||_0x58e012['mcpServerUrl'][_0x50e05b(0x283)](_0x50e05b(0x2c9))),_0x2ba507=(_0x39ed06=_0x58e012[_0x50e05b(0x21d)])==null?void 0x0:_0x39ed06['includes'](_0x50e05b(0x2f9)),_0x4f17ee=(_0xf84c5a=_0x58e012[_0x50e05b(0x21d)])==null?void 0x0:_0xf84c5a[_0x50e05b(0x283)](_0x50e05b(0x2c9)),_0x33690d=_0x2ba507?'https://console.univer.plus':_0x50e05b(0x2e1),_0x5ebd52=_0xeb071f[_0x50e05b(0x252)]&&(_0x2ba507||_0x4f17ee),[_0x19ec1a,_0xe41042]=d[_0x50e05b(0x2ad)](!_0x1f660b[_0x50e05b(0x1a4)]()),_0x2b4aba=(_0x4e3add,_0x213714)=>{var _0x41da5b=_0x50e05b;if(_0x213714===s[_0x41da5b(0x24f)][_0x41da5b(0x2ef)])return _0x41da5b(0x1b4);switch(_0x4e3add){case s[_0x41da5b(0x2d3)][_0x41da5b(0x2ec)]:return _0x41da5b(0x248);case s['MCPConnectionStatus'][_0x41da5b(0x2cd)]:case s[_0x41da5b(0x2d3)][_0x41da5b(0x1ad)]:return _0x41da5b(0x255);case s[_0x41da5b(0x2d3)][_0x41da5b(0x27e)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x41da5b(0x1ed);}},_0x118150=(_0xaeeff3,_0x11be2e)=>{var _0x5b3835=_0x50e05b;if(_0x11be2e===s[_0x5b3835(0x24f)][_0x5b3835(0x2ef)])return _0x5b3835(0x261);switch(_0xaeeff3){case s[_0x5b3835(0x2d3)][_0x5b3835(0x2ec)]:return _0x5b3835(0x1a6);case s[_0x5b3835(0x2d3)][_0x5b3835(0x2cd)]:case s['MCPConnectionStatus'][_0x5b3835(0x1ad)]:return'univer-bg-blue-500';case s[_0x5b3835(0x2d3)][_0x5b3835(0x27e)]:return _0x5b3835(0x261);default:return _0x5b3835(0x1c2);}},_0x96873f=_0x1d5487=>{var _0x2a05cb=_0x50e05b;switch(_0x1d5487){case s[_0x2a05cb(0x2d3)][_0x2a05cb(0x2ec)]:return _0x3ea171['t'](_0x2a05cb(0x20a));case s[_0x2a05cb(0x2d3)]['CONNECTING']:return _0x3ea171['t'](_0x2a05cb(0x27f));case s['MCPConnectionStatus']['FAILED']:return _0x3ea171['t']('mcpConfig.connectionStatus.failed');case s[_0x2a05cb(0x2d3)][_0x2a05cb(0x1ad)]:return _0x3ea171['t'](_0x2a05cb(0x18a));default:return _0x3ea171['t'](_0x2a05cb(0x2cf));}},_0x593d84=_0x4a82fd=>{var _0x358b81=_0x50e05b;switch(_0x4a82fd){case s[_0x358b81(0x24f)][_0x358b81(0x2ef)]:return _0x3ea171['t'](_0x358b81(0x183));case s['MCPConnectionError'][_0x358b81(0x275)]:return _0x3ea171['t']('mcpConfig.connectionError.sessionOccupied');case s['MCPConnectionError'][_0x358b81(0x1bb)]:return _0x3ea171['t'](_0x358b81(0x1d0));case s[_0x358b81(0x24f)][_0x358b81(0x217)]:return _0x3ea171['t'](_0x358b81(0x278));default:return'';}},_0x25a1f9=d[_0x50e05b(0x1a9)](()=>{const _0x5da4b5={..._0x58e012,'apiKey':_0x1f660b['trim'](),'enableAuth':_0x1f6563};_0x5f4d55(_0x5da4b5);},[_0x58e012,_0x1f660b,_0x1f6563,_0x5f4d55]),_0x1d5fff=_0x1f660b['trim']()[_0x50e05b(0x26e)]>0x0;return t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1d1),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2cb),'children':t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1c3),'children':[t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2e6),'children':t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x2bb),'children':'⚙'})}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'children':t[_0x50e05b(0x25a)]('p',{'className':_0x50e05b(0x1e9),'children':_0x3ea171['t'](_0x50e05b(0x212))})})]})}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x226),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1b0)+_0x2b4aba(_0x53f42e,_0x43d48a)+_0x50e05b(0x1f7),'children':t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1ec),'children':[t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2b4)+_0x118150(_0x53f42e,_0x43d48a)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),t['jsx'](_0x50e05b(0x1af),{'className':_0x50e05b(0x233),'children':_0x96873f(_0x53f42e)})]})}),_0x43d48a!==s[_0x50e05b(0x24f)]['NONE']&&(_0x53f42e===s['MCPConnectionStatus'][_0x50e05b(0x27e)]||_0x43d48a===s[_0x50e05b(0x24f)][_0x50e05b(0x2ef)])&&t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x26a),'children':t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x19e),'children':[t['jsx'](_0x50e05b(0x1af),{'className':_0x50e05b(0x2de),'children':'⚠️'}),t['jsx']('p',{'className':_0x50e05b(0x220),'children':_0x593d84(_0x43d48a)})]})})]}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x19b),'children':t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-space-y-5','children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x22c),{'className':_0x50e05b(0x22d),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'🔑'}),'\x20',_0x3ea171['t'](_0x50e05b(0x2f8)),t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x231),'children':'*'}),_0x5b2730&&t[_0x50e05b(0x25a)]('a',{'href':_0x50e05b(0x1a3),'onClick':()=>_0xe41042(!0x0),'className':_0x50e05b(0x1b6),'title':_0x3ea171['t'](_0x50e05b(0x2c5)),'children':t[_0x50e05b(0x25a)](Y,{})})]}),t[_0x50e05b(0x25a)](S[_0x50e05b(0x1aa)],{'type':_0x50e05b(0x268),'placeholder':_0x3ea171['t'](_0x50e05b(0x2d8)),'value':_0x1f660b,'onChange':_0x34e6f9,'disabled':_0x3029b6,'autoComplete':_0x50e05b(0x2ae)}),t[_0x50e05b(0x25a)]('p',{'className':_0x50e05b(0x204),'children':_0x3ea171['t'](_0x50e05b(0x2ed))})]}),_0x5b2730&&_0x19ec1a&&t['jsxs'](_0x50e05b(0x2a5),{'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':[t[_0x50e05b(0x25a)]('a',{'href':_0x50e05b(0x1a3),'onClick':()=>_0xe41042(!0x1),'className':_0x50e05b(0x1f2),'title':_0x50e05b(0x2db),'children':t[_0x50e05b(0x25a)](F,{})}),t[_0x50e05b(0x2eb)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[t['jsx']('div',{'className':_0x50e05b(0x17b),'children':t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x1e3),'children':'🚀'})}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2dc),'children':[t[_0x50e05b(0x25a)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3ea171['t'](_0x50e05b(0x2c5))}),t['jsx']('p',{'className':_0x50e05b(0x225),'children':_0x3ea171['t']('mcpConfig.apiApplyInfo.description')}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x21b),'children':_0x5ebd52&&t[_0x50e05b(0x2eb)]('a',{'href':_0x33690d,'target':'_blank','rel':_0x50e05b(0x298),'className':_0x50e05b(0x302),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'🤖'}),_0x3ea171['t'](_0x50e05b(0x27c)),t[_0x50e05b(0x25a)]('span',{'className':_0x50e05b(0x2fd),'children':'↗'})]})}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x3ea171['t'](_0x50e05b(0x276))]})]})]})]}),_0xeb071f['showDeveloperTools']&&t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x287),'children':[t[_0x50e05b(0x2eb)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'🔗'}),'\x20',_0x3ea171['t'](_0x50e05b(0x227))]}),t[_0x50e05b(0x2eb)]('div',{'className':_0x50e05b(0x188),'children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-space-y-3','children':[t[_0x50e05b(0x25a)]('p',{'className':_0x50e05b(0x2c6),'children':_0x3ea171['t'](_0x50e05b(0x2f6))}),t[_0x50e05b(0x2eb)]('div',{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x2a8),'children':_0x3ea171['t'](_0x50e05b(0x1b9))}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)]('span',{'className':_0x50e05b(0x282),'children':'1'}),_0x3ea171['t'](_0x50e05b(0x23b))]}),t[_0x50e05b(0x2eb)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t['jsx'](_0x50e05b(0x1af),{'className':_0x50e05b(0x282),'children':'2'}),_0x3ea171['t'](_0x50e05b(0x1f4))]}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x282),'children':'3'}),_0x3ea171['t'](_0x50e05b(0x21a))]})]})]})]}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x50e05b(0x1bd)}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':t[_0x50e05b(0x25a)]('pre',{'className':_0x50e05b(0x270),'children':_0x50e05b(0x1f8)+_0x136cc0+_0x50e05b(0x2c7)+(_0x1f660b||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),t[_0x50e05b(0x2eb)]('div',{'className':_0x50e05b(0x207),'children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x2a8),'children':_0x3ea171['t'](_0x50e05b(0x22a))}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x279),'children':[t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x26f)}),t['jsxs']('div',{'className':_0x50e05b(0x272),'children':[t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x295),'children':'univer_session_id:'}),t[_0x50e05b(0x25a)]('div',{'className':_0x50e05b(0x204),'children':_0x3ea171['t']('mcpConfig.sessionIdDescription')})]})]}),t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x26b),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x26f)}),t['jsxs'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x272),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x295),'children':_0x50e05b(0x1b5)}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3ea171['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),t['jsx'](S[_0x50e05b(0x18d)],{'onClick':_0x25a1f9,'disabled':!_0x1d5fff||_0x3029b6,'className':_0x50e05b(0x2fc),'children':_0x3029b6?t['jsxs']('span',{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'children':'⟲'}),_0x3ea171['t'](_0x50e05b(0x232))]}):t[_0x50e05b(0x2eb)](_0x50e05b(0x1af),{'className':_0x50e05b(0x1ec),'children':[t[_0x50e05b(0x25a)](B,{}),_0x3ea171['t'](_0x50e05b(0x281))]})}),t[_0x50e05b(0x25a)](_0x50e05b(0x2a5),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x2df),'children':[t[_0x50e05b(0x25a)](_0x50e05b(0x1af),{'className':_0x50e05b(0x17f),'children':'💡'}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'className':_0x50e05b(0x223),'children':[t['jsx'](_0x50e05b(0x2a5),{'className':_0x50e05b(0x1cb),'children':'Configuration\x20Notes:'}),t['jsxs'](_0x50e05b(0x2a5),{'children':['•',_0x3ea171['t'](_0x50e05b(0x291))]}),t[_0x50e05b(0x2eb)](_0x50e05b(0x2a5),{'children':['•',_0x3ea171['t'](_0x50e05b(0x22f))]})]})]})})]})})]});}const y=_0x301b8c(0x288),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x301b8c(0x21f)],Pe=(_0x50e610,_0x394c70,_0x1796b5,_0x218cbe)=>{var _0x83b2c2=_0x301b8c;for(var _0xc17b85=_0x218cbe>0x1?void 0x0:_0x218cbe?Se(_0x394c70,_0x1796b5):_0x394c70,_0x219787=_0x50e610[_0x83b2c2(0x26e)]-0x1,_0x148b88;_0x219787>=0x0;_0x219787--)(_0x148b88=_0x50e610[_0x219787])&&(_0xc17b85=_0x148b88(_0xc17b85)||_0xc17b85);return _0xc17b85;},f=(_0x35c768,_0x241db2)=>(_0x2a46dc,_0x5e4e43)=>_0x241db2(_0x2a46dc,_0x5e4e43,_0x35c768);const D='mcp.apiKey',k=_0x301b8c(0x21e);exports[_0x301b8c(0x25e)]=class extends l[_0x301b8c(0x228)]{constructor(_0x238a9a,_0x2db7d7,_0x25f89e,_0x2928d0,_0xc803f6,_0x555bd2,_0x360c8b,_0x5b14fa,_0x3ce36e,_0x1d4c92){var _0x1e921c=_0x301b8c;super(),I(this,_0x1e921c(0x242),new N[(_0x1e921c(0x23c))](!0x1)),I(this,_0x1e921c(0x277),new N[(_0x1e921c(0x23c))]({})),I(this,_0x1e921c(0x1ef),new N['BehaviorSubject']({})),I(this,'_apiKey$',new N[(_0x1e921c(0x23c))]('')),I(this,'_handleConfigSave',async _0x27cb47=>{var _0x5c912b=_0x1e921c,_0x476fa7,_0x8d3db;this['_loading$'][_0x5c912b(0x1db)](!0x0);try{const _0x2cc108=await this[_0x5c912b(0x1b2)](_0x27cb47);if(!_0x2cc108[_0x5c912b(0x2da)]){this[_0x5c912b(0x2a0)][_0x5c912b(0x17e)]({'type':S[_0x5c912b(0x2f7)]['Error'],'content':_0x2cc108[_0x5c912b(0x22e)]||this[_0x5c912b(0x237)]['t'](_0x5c912b(0x235))});return;}_0x27cb47[_0x5c912b(0x24d)]?await this['_localStorageService'][_0x5c912b(0x1f0)](D,_0x27cb47[_0x5c912b(0x24d)]['trim']()):await this[_0x5c912b(0x205)]['removeItem'](D),this['_apiKey$']['next'](((_0x476fa7=_0x27cb47['apiKey'])==null?void 0x0:_0x476fa7['trim']())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x5c912b(0x251)+((_0x8d3db=_0x27cb47[_0x5c912b(0x24d)])==null?void 0x0:_0x8d3db[_0x5c912b(0x1a4)]())}),this['_messageService'][_0x5c912b(0x17e)]({'type':S['MessageType'][_0x5c912b(0x1c5)],'content':this[_0x5c912b(0x237)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x3033de=_0x5c912b;this[_0x3033de(0x1f5)][_0x3033de(0x269)](k);},0x320);}catch(_0x1af48a){this[_0x5c912b(0x28b)][_0x5c912b(0x1b8)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x1af48a),this[_0x5c912b(0x2a0)]['show']({'type':S[_0x5c912b(0x2f7)]['Error'],'content':this[_0x5c912b(0x237)]['t'](_0x5c912b(0x293))});}finally{this[_0x5c912b(0x242)][_0x5c912b(0x1db)](!0x1);}}),(this[_0x1e921c(0x18b)]=_0x238a9a,this[_0x1e921c(0x213)]=_0x2db7d7,this['_configService']=_0x25f89e,this[_0x1e921c(0x205)]=_0x2928d0,this[_0x1e921c(0x1f5)]=_0xc803f6,this[_0x1e921c(0x2a0)]=_0x555bd2,this[_0x1e921c(0x1ab)]=_0x360c8b,this['_localeService']=_0x5b14fa,this[_0x1e921c(0x28b)]=_0x3ce36e,this[_0x1e921c(0x221)]=_0x1d4c92,this[_0x1e921c(0x274)](),this[_0x1e921c(0x28d)](),this[_0x1e921c(0x195)]());}[_0x301b8c(0x203)](){var _0x1794a0=_0x301b8c;const _0x4343ef=this['_configService'][_0x1794a0(0x29f)](y);_0x4343ef!=null&&_0x4343ef['showDeveloperTools']&&this[_0x1794a0(0x1f5)][_0x1794a0(0x2ee)]({'id':k,'title':{'title':this['_localeService']['t'](_0x1794a0(0x2b1))},'children':{'label':_0x1794a0(0x191)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0xa5ffb1=_0x1794a0;this['_dialogService'][_0xa5ffb1(0x269)](k);}});}['getCurrentConfig'](){var _0x22acd5=_0x301b8c;return this[_0x22acd5(0x277)]['value'];}['_registerComponent'](){var _0x541e65=_0x301b8c;this[_0x541e65(0x1ce)](this[_0x541e65(0x1ab)][_0x541e65(0x2c8)](_0x541e65(0x191),this[_0x541e65(0x303)]()));}['_createConfigPanelComponent'](){var _0x12e2b4=_0x301b8c;return v[_0x12e2b4(0x199)](()=>{var _0x25f08f=_0x12e2b4,_0x4bf795,_0x2e6088,_0x16f118;return t[_0x25f08f(0x25a)](W,{'config':this['_config$'][_0x25f08f(0x2c1)],'mcpCoreConfig':this[_0x25f08f(0x277)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x25f08f(0x1c6)],'loading':this[_0x25f08f(0x242)][_0x25f08f(0x2c1)],'connectionStatus$':(_0x4bf795=this[_0x25f08f(0x221)])==null?void 0x0:_0x4bf795[_0x25f08f(0x300)],'connectionError$':(_0x2e6088=this[_0x25f08f(0x221)])==null?void 0x0:_0x2e6088[_0x25f08f(0x25c)],'currentSessionId$':(_0x16f118=this['_mcpConnectionController'])==null?void 0x0:_0x16f118[_0x25f08f(0x292)]});},this[_0x12e2b4(0x18b)]);}[_0x301b8c(0x274)](){var _0x49f3c9=_0x301b8c;this['disposeWithMe'](this[_0x49f3c9(0x24e)][_0x49f3c9(0x1a5)](s['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0xfe8a6c=>{var _0x5349a2=_0x49f3c9;this[_0x5349a2(0x277)]['next'](_0xfe8a6c||{});}));const _0x4bed3f=this[_0x49f3c9(0x24e)]['getConfig'](s[_0x49f3c9(0x209)]);this['_mcpCoreConfig$'][_0x49f3c9(0x1db)](_0x4bed3f||{}),this[_0x49f3c9(0x1ce)](this[_0x49f3c9(0x24e)][_0x49f3c9(0x1a5)](y)[_0x49f3c9(0x2b0)](_0x430f90=>{var _0x3e3e96=_0x49f3c9;this[_0x3e3e96(0x1ef)][_0x3e3e96(0x1db)](_0x430f90||{});}));const _0x5763bb=this[_0x49f3c9(0x24e)]['getConfig'](y);this[_0x49f3c9(0x1ef)]['next'](_0x5763bb||{});}async['_loadStoredApiKey'](){var _0x31126e=_0x301b8c;const _0x380355=this['_configService'][_0x31126e(0x29f)](y);if(!(_0x380355!=null&&_0x380355['showDeveloperTools']))return;const _0x54b0af=await this[_0x31126e(0x205)][_0x31126e(0x1d9)](D);_0x54b0af&&(this['_mcpConnectionController'][_0x31126e(0x2a7)]({'Authorization':'Bearer\x20'+_0x54b0af}),this[_0x31126e(0x186)]['next'](_0x54b0af));}async[_0x301b8c(0x1b2)](_0x408113){var _0x310d3f=_0x301b8c;if(!_0x408113['apiKey']||_0x408113[_0x310d3f(0x24d)]['trim']()[_0x310d3f(0x26e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x310d3f(0x237)]['t'](_0x310d3f(0x189))};if(_0x408113[_0x310d3f(0x24d)][_0x310d3f(0x1a4)]()[_0x310d3f(0x26e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x310d3f(0x237)]['t'](_0x310d3f(0x2c4))};try{const _0x150b42=await this[_0x310d3f(0x18b)]['get'](s[_0x310d3f(0x1dd)])['validateApiKey'](_0x408113[_0x310d3f(0x24d)]['trim']());return _0x150b42['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x150b42[_0x310d3f(0x1b8)]||this[_0x310d3f(0x237)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x44021a){return console[_0x310d3f(0x2d4)](_0x310d3f(0x1a7),_0x44021a),{'isValid':!0x0};}}},exports[_0x301b8c(0x25e)]=Pe([f(0x0,l[_0x301b8c(0x260)](l[_0x301b8c(0x177)])),f(0x1,v[_0x301b8c(0x1cd)]),f(0x2,l[_0x301b8c(0x1fd)]),f(0x3,l[_0x301b8c(0x23a)]),f(0x4,v[_0x301b8c(0x271)]),f(0x5,v[_0x301b8c(0x2d6)]),f(0x6,l[_0x301b8c(0x260)](v[_0x301b8c(0x1b7)])),f(0x7,l[_0x301b8c(0x260)](l[_0x301b8c(0x1d5)])),f(0x8,l['ILogService']),f(0x9,l[_0x301b8c(0x260)](s[_0x301b8c(0x1dd)]))],exports['MCPConfigUIController']);const j={'id':'mcp-ui.command.openConfigPanel','type':l[_0x301b8c(0x201)][_0x301b8c(0x2f2)],'handler':async(_0xfb6a7f,_0x579665)=>(_0xfb6a7f[_0x301b8c(0x306)](exports[_0x301b8c(0x25e)])[_0x301b8c(0x203)](),!0x0)};function Z(_0x3ac2e3,_0x418bd6){var _0x4a526f=_0x301b8c;switch(_0x3ac2e3){case s['MCPConnectionStatus'][_0x4a526f(0x2c3)]:return _0x4a526f(0x1a2);case s['MCPConnectionStatus'][_0x4a526f(0x2cd)]:return _0x4a526f(0x1a0);case s[_0x4a526f(0x2d3)][_0x4a526f(0x2ec)]:return _0x4a526f(0x1fc);case s[_0x4a526f(0x2d3)][_0x4a526f(0x27e)]:switch(_0x418bd6){case s[_0x4a526f(0x24f)][_0x4a526f(0x2ef)]:return _0x4a526f(0x286);case s[_0x4a526f(0x24f)][_0x4a526f(0x275)]:return _0x4a526f(0x2d1);case s[_0x4a526f(0x24f)][_0x4a526f(0x1bb)]:return _0x4a526f(0x240);case s[_0x4a526f(0x24f)]['MAX_RETRIES_EXCEEDED']:return _0x4a526f(0x26c);default:return _0x4a526f(0x245);}case s[_0x4a526f(0x2d3)][_0x4a526f(0x1ad)]:return _0x4a526f(0x28e);default:return'mcpStatus.unknown';}}function _0x5c3a(_0x42d6dc,_0x18573c){var _0x33aea2=_0x33ae();return _0x5c3a=function(_0x5c3aa3,_0x50738f){_0x5c3aa3=_0x5c3aa3-0x175;var _0xcd67e4=_0x33aea2[_0x5c3aa3];return _0xcd67e4;},_0x5c3a(_0x42d6dc,_0x18573c);}function ye(_0x576fd3,_0x24c47f,_0x661f2e,_0x6b281e=!0x0){var _0x35d880=_0x301b8c;const _0xd2eb0c=Z(_0x576fd3,_0x24c47f),_0x258de1=_0x661f2e['t'](_0xd2eb0c);return _0x6b281e?_0x576fd3===s['MCPConnectionStatus'][_0x35d880(0x2c3)]&&_0x24c47f===s[_0x35d880(0x24f)][_0x35d880(0x2ef)]?_0x258de1+'\x20-\x20'+_0x661f2e['t'](_0x35d880(0x202)):_0x576fd3===s[_0x35d880(0x2d3)]['CONNECTED']?''+_0x258de1:_0x576fd3===s['MCPConnectionStatus']['DISCONNECTED']||_0x576fd3===s[_0x35d880(0x2d3)]['FAILED']?_0x258de1+_0x35d880(0x296)+_0x661f2e['t'](_0x35d880(0x2b5)):_0x258de1:_0x258de1;}function Ie(_0x1837f6){var _0x1a6702=_0x301b8c;switch(_0x1837f6){case s[_0x1a6702(0x2d3)][_0x1a6702(0x2ec)]:return _0x1a6702(0x1dc);case s[_0x1a6702(0x2d3)][_0x1a6702(0x2cd)]:case s['MCPConnectionStatus'][_0x1a6702(0x1ad)]:return _0x1a6702(0x175);case s[_0x1a6702(0x2d3)][_0x1a6702(0x27e)]:case s['MCPConnectionStatus']['DISCONNECTED']:return _0x1a6702(0x231);default:return _0x1a6702(0x182);}}function X(_0x43e5a9){var _0x41a62b=_0x301b8c;const {status$:_0x3a4cb1,error$:_0x3d70d2,onConfigure:_0xe58612,showClickable:_0x521df8=!0x0}=_0x43e5a9,_0x2eb0e6=v[_0x41a62b(0x290)](_0x3a4cb1,s[_0x41a62b(0x2d3)]['DISCONNECTED']),_0x1644d2=v[_0x41a62b(0x290)](_0x3d70d2,s[_0x41a62b(0x24f)][_0x41a62b(0x29b)]),_0x58d794=v[_0x41a62b(0x27b)](l[_0x41a62b(0x1d5)]),_0x14c5d9=_0x2eb0e6===s[_0x41a62b(0x2d3)]['CONNECTED'];_0x2eb0e6===s[_0x41a62b(0x2d3)][_0x41a62b(0x2cd)]||s[_0x41a62b(0x2d3)][_0x41a62b(0x1ad)];const _0x390f73=_0x58d794['t'](Z(_0x2eb0e6,_0x1644d2)),_0x24f83f=ye(_0x2eb0e6,_0x1644d2,_0x58d794,_0x521df8),_0x2836b2=Ie(_0x2eb0e6),_0x4dfcdb=_0x14c5d9?t[_0x41a62b(0x25a)](V,{}):t[_0x41a62b(0x25a)](q,{}),_0x22ccb0=d[_0x41a62b(0x1a9)](()=>{_0x521df8&&_0xe58612&&_0xe58612();},[_0x521df8,_0xe58612]);function _0x579e06(){var _0x275df5=_0x41a62b;return t[_0x275df5(0x2eb)]('div',{'className':S[_0x275df5(0x299)](_0x275df5(0x28c),_0x521df8&&_0xe58612&&_0x275df5(0x20c)),'onClick':_0x521df8&&_0xe58612?_0x22ccb0:void 0x0,'children':[t[_0x275df5(0x25a)](_0x275df5(0x2a5),{'className':S[_0x275df5(0x299)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x2836b2),'children':_0x4dfcdb}),t['jsx'](_0x275df5(0x2a5),{'className':_0x275df5(0x1ff),'children':_0x390f73})]});}return t['jsx'](S[_0x41a62b(0x2ab)],{'title':_0x24f83f,'placement':_0x41a62b(0x263),'children':_0x579e06()});}var _e=Object['getOwnPropertyDescriptor'],Me=(_0x2582cf,_0x56b3e5,_0x4c430d,_0x2ad057)=>{var _0x2fc190=_0x301b8c;for(var _0x3ba17c=_0x2ad057>0x1?void 0x0:_0x2ad057?_e(_0x56b3e5,_0x4c430d):_0x56b3e5,_0x5aeba7=_0x2582cf[_0x2fc190(0x26e)]-0x1,_0x55a011;_0x5aeba7>=0x0;_0x5aeba7--)(_0x55a011=_0x2582cf[_0x5aeba7])&&(_0x3ba17c=_0x55a011(_0x3ba17c)||_0x3ba17c);return _0x3ba17c;},b=(_0xed0bb,_0x11cac6)=>(_0x4c9794,_0x325345)=>_0x11cac6(_0x4c9794,_0x325345,_0xed0bb);exports[_0x301b8c(0x2af)]=class extends l[_0x301b8c(0x228)]{constructor(_0x36d9f6,_0x18fa63,_0x315f36,_0x2f90a0){var _0x431a9e=_0x301b8c;super(),this[_0x431a9e(0x18b)]=_0x36d9f6,this[_0x431a9e(0x236)]=_0x18fa63,this[_0x431a9e(0x213)]=_0x315f36,this[_0x431a9e(0x24e)]=_0x2f90a0,this[_0x431a9e(0x2ea)](),this[_0x431a9e(0x2ca)]();}[_0x301b8c(0x2ea)](){var _0x2aa5b4=_0x301b8c;const _0x885fa=this[_0x2aa5b4(0x24e)][_0x2aa5b4(0x29f)](y);_0x885fa!=null&&_0x885fa[_0x2aa5b4(0x252)]&&(this[_0x2aa5b4(0x236)][_0x2aa5b4(0x2cc)]=!0x1);}[_0x301b8c(0x2ca)](){var _0x370622=_0x301b8c;const _0xcf1a04=this[_0x370622(0x24e)][_0x370622(0x29f)](y);(_0xcf1a04==null?void 0x0:_0xcf1a04[_0x370622(0x259)])!==!0x1&&this[_0x370622(0x1ce)](this[_0x370622(0x213)]['registerComponent'](v[_0x370622(0x241)][_0x370622(0x2a1)],()=>{var _0x2652d8=_0x370622,_0x5707ca;return v[_0x2652d8(0x199)](Ne({'status$':this[_0x2652d8(0x236)][_0x2652d8(0x300)],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x2652d8(0x1f1)](),'showClickable':(_0x5707ca=_0xcf1a04==null?void 0x0:_0xcf1a04[_0x2652d8(0x252)])!=null?_0x5707ca:!0x1}),this[_0x2652d8(0x18b)]);}));}[_0x301b8c(0x1f1)](){var _0x4f5bbc=_0x301b8c;this[_0x4f5bbc(0x18b)][_0x4f5bbc(0x306)](exports['MCPConfigUIController'])[_0x4f5bbc(0x203)]();}},exports['MCPConnectionUIController']=Me([b(0x0,l['Inject'](l['Injector'])),b(0x1,l[_0x301b8c(0x260)](s['MCPConnectionController'])),b(0x2,v[_0x301b8c(0x1cd)]),b(0x3,l[_0x301b8c(0x1fd)])],exports['MCPConnectionUIController']);function Ne(_0x42d4a0){const {status$:_0x4a51c1,error$:_0x2d00eb,onConfigure:_0x266563,showClickable:_0x4d224c}=_0x42d4a0;return function(){var _0x1a6c68=_0x5c3a;return t[_0x1a6c68(0x25a)](X,{'status$':_0x4a51c1,'error$':_0x2d00eb,'onConfigure':_0x266563,'showClickable':_0x4d224c});};}function be(_0x576601){var _0x111080=_0x301b8c;return{'id':j['id'],'type':v[_0x111080(0x2a3)][_0x111080(0x2b9)],'icon':_0x111080(0x28f),'title':_0x111080(0x2b1),'tooltip':_0x111080(0x2b1)};}const je={[v[_0x301b8c(0x200)][_0x301b8c(0x1da)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x301b8c(0x21f)],we=(_0x107996,_0x4f2ff9,_0x1f3527,_0x50ee01)=>{var _0x222342=_0x301b8c;for(var _0x59a528=_0x50ee01>0x1?void 0x0:_0x50ee01?Ee(_0x4f2ff9,_0x1f3527):_0x4f2ff9,_0x5c3d70=_0x107996[_0x222342(0x26e)]-0x1,_0x15c847;_0x5c3d70>=0x0;_0x5c3d70--)(_0x15c847=_0x107996[_0x5c3d70])&&(_0x59a528=_0x15c847(_0x59a528)||_0x59a528);return _0x59a528;},z=(_0x3d38cf,_0x524909)=>(_0x4ebdc2,_0x2f8867)=>_0x524909(_0x4ebdc2,_0x2f8867,_0x3d38cf);exports[_0x301b8c(0x1e7)]=class extends l['Disposable']{constructor(_0xec94a0,_0x7f8626){var _0x2c6c12=_0x301b8c;super(),this['_commandService']=_0xec94a0,this['_menuManagerService']=_0x7f8626,this[_0x2c6c12(0x190)](),this['_initializeMenus']();}[_0x301b8c(0x190)](){var _0x350b33=_0x301b8c;[j][_0x350b33(0x1de)](_0x422220=>{var _0x4bd275=_0x350b33;this['disposeWithMe'](this[_0x4bd275(0x2dd)][_0x4bd275(0x1eb)](_0x422220));});}[_0x301b8c(0x1e4)](){var _0x41395f=_0x301b8c;this[_0x41395f(0x2e0)][_0x41395f(0x267)](je);}},exports[_0x301b8c(0x1e7)]=we([z(0x0,l[_0x301b8c(0x193)]),z(0x1,v[_0x301b8c(0x1b1)])],exports['MCPUIMenuController']);const Oe={'mcpStatus':{'disconnected':_0x301b8c(0x1a1),'connecting':_0x301b8c(0x2e7),'connected':_0x301b8c(0x2b3),'failed':_0x301b8c(0x1e8),'retrying':_0x301b8c(0x2bd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x301b8c(0x1cc),'maxRetriesExceeded':_0x301b8c(0x22b),'clickToConnect':_0x301b8c(0x1d3),'clickToConfigure':_0x301b8c(0x219)},'mcpConfig':{'title':_0x301b8c(0x1bd),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x301b8c(0x20e),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x301b8c(0x284),'enableAuth':_0x301b8c(0x1f6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x301b8c(0x1df),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x301b8c(0x2ff),'configStep1':_0x301b8c(0x2e5),'configStep2':_0x301b8c(0x19a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x301b8c(0x27a),'configParameters':_0x301b8c(0x1d7),'maxRetries':_0x301b8c(0x187),'save':_0x301b8c(0x1ee),'saving':_0x301b8c(0x1c4),'note1':_0x301b8c(0x2f5),'note2':_0x301b8c(0x2bf),'configSaved':_0x301b8c(0x229),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x301b8c(0x1ba),'description':_0x301b8c(0x2e2),'univerAiLabel':_0x301b8c(0x24b),'getStarted':_0x301b8c(0x1cf)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x301b8c(0x1bc),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x301b8c(0x2a6),'failed':_0x301b8c(0x25f),'retrying':_0x301b8c(0x17d)},'connectionError':{'unauthorized':_0x301b8c(0x176),'sessionOccupied':_0x301b8c(0x2ba),'networkError':_0x301b8c(0x1e5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Ae={'mcpStatus':{'disconnected':_0x301b8c(0x2d2),'connecting':_0x301b8c(0x19f),'connected':_0x301b8c(0x2f4),'failed':_0x301b8c(0x1e6),'retrying':_0x301b8c(0x2b7),'unknown':_0x301b8c(0x1c9),'unauthorized':_0x301b8c(0x18e),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x301b8c(0x238),'maxRetriesExceeded':_0x301b8c(0x2aa),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x301b8c(0x216)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x301b8c(0x265),'apiKeyPlaceholder':_0x301b8c(0x257),'apiKeyHint':_0x301b8c(0x2d5),'enableAuth':_0x301b8c(0x273),'enableAuthHint':_0x301b8c(0x2fe),'connectionInfo':_0x301b8c(0x208),'mcpClientConfig':_0x301b8c(0x208),'configInstructions':_0x301b8c(0x215),'configStepTitle':'配置步骤:','configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x301b8c(0x218),'configStep3':_0x301b8c(0x1c8),'sessionId':_0x301b8c(0x23f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x301b8c(0x2f3),'configParameters':'配置参数:','maxRetries':_0x301b8c(0x29d),'save':_0x301b8c(0x1f9),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x301b8c(0x266),'configError':_0x301b8c(0x256),'apiApplyInfo':{'title':_0x301b8c(0x1fb),'description':_0x301b8c(0x285),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x301b8c(0x2f0)},'validation':{'apiKeyRequired':_0x301b8c(0x254),'apiKeyTooShort':_0x301b8c(0x1d6),'invalidConfig':_0x301b8c(0x246),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x301b8c(0x194),'connected':_0x301b8c(0x239),'failed':_0x301b8c(0x185),'retrying':_0x301b8c(0x262)},'connectionError':{'unauthorized':_0x301b8c(0x2be),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x301b8c(0x24c),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var De=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ue=(_0x12f4bf,_0x26400f,_0x294af0)=>_0x26400f in _0x12f4bf?De(_0x12f4bf,_0x26400f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294af0}):_0x12f4bf[_0x26400f]=_0x294af0,Te=(_0x305fb7,_0x17f199,_0x72ae89,_0x1073ec)=>{var _0x5c4a09=_0x301b8c;for(var _0x215621=_0x1073ec>0x1?void 0x0:_0x1073ec?ke(_0x17f199,_0x72ae89):_0x17f199,_0x1a0b07=_0x305fb7[_0x5c4a09(0x26e)]-0x1,_0x4097b4;_0x1a0b07>=0x0;_0x1a0b07--)(_0x4097b4=_0x305fb7[_0x1a0b07])&&(_0x215621=_0x4097b4(_0x215621)||_0x215621);return _0x215621;},M=(_0x4019f7,_0x4cd733)=>(_0x8600f6,_0x38a852)=>_0x4cd733(_0x8600f6,_0x38a852,_0x4019f7),$e=(_0x1fb547,_0xedc4c6,_0x490b64)=>Ue(_0x1fb547,_0xedc4c6+'',_0x490b64);exports[_0x301b8c(0x1d4)]=class extends l[_0x301b8c(0x2bc)]{constructor(_0x5ddc17=G,_0x5986e6,_0x4b1c99,_0x2e60f9,_0x4178c6,_0x39bce6){var _0x5ada2a=_0x301b8c;super(),this['_config']=_0x5ddc17,this['_injector']=_0x5986e6,this[_0x5ada2a(0x24e)]=_0x4b1c99,this[_0x5ada2a(0x213)]=_0x2e60f9,this[_0x5ada2a(0x205)]=_0x4178c6,this[_0x5ada2a(0x237)]=_0x39bce6;const {..._0x449450}=l['merge']({},G,this[_0x5ada2a(0x2b8)]);this['_configService'][_0x5ada2a(0x29e)](y,_0x449450);}async[_0x301b8c(0x197)](){var _0x470323=_0x301b8c;const _0x2e2d30=[[exports[_0x470323(0x2af)]],[exports['MCPConfigUIController']],[exports[_0x470323(0x1e7)]]];this[_0x470323(0x18b)]['has'](A['ISocketService'])||_0x2e2d30[_0x470323(0x181)]([A['ISocketService'],{'useClass':A[_0x470323(0x1e1)]}]),_0x2e2d30[_0x470323(0x1de)](_0xb42ae8=>this[_0x470323(0x18b)][_0x470323(0x1fa)](_0xb42ae8)),this['_injector'][_0x470323(0x306)](exports[_0x470323(0x2af)]),this[_0x470323(0x18b)][_0x470323(0x306)](exports['MCPConfigUIController']),this[_0x470323(0x18b)][_0x470323(0x306)](exports[_0x470323(0x1e7)]);}},$e(exports[_0x301b8c(0x1d4)],'pluginName','MCP_UI_PLUGIN'),exports[_0x301b8c(0x1d4)]=Te([l[_0x301b8c(0x18c)](s[_0x301b8c(0x23e)]),M(0x1,l[_0x301b8c(0x260)](l[_0x301b8c(0x177)])),M(0x2,l[_0x301b8c(0x1fd)]),M(0x3,v[_0x301b8c(0x1cd)]),M(0x4,l[_0x301b8c(0x23a)]),M(0x5,l[_0x301b8c(0x260)](l[_0x301b8c(0x1d5)]))],exports['UniverMCPUIPlugin']),exports[_0x301b8c(0x191)]=W,exports[_0x301b8c(0x1e2)]=X,exports[_0x301b8c(0x234)]=j,exports[_0x301b8c(0x243)]=Oe,exports[_0x301b8c(0x1c1)]=Ae;
|
|
1
|
+
'use strict';var _0x3d1bae=_0x3e74;(function(_0x2b0f7e,_0x3a46cc){var _0x4a0a1a=_0x3e74,_0x29fa44=_0x2b0f7e();while(!![]){try{var _0x4f3c58=parseInt(_0x4a0a1a(0x213))/0x1*(-parseInt(_0x4a0a1a(0x226))/0x2)+parseInt(_0x4a0a1a(0x327))/0x3+-parseInt(_0x4a0a1a(0x2cf))/0x4*(parseInt(_0x4a0a1a(0x325))/0x5)+parseInt(_0x4a0a1a(0x2fe))/0x6*(parseInt(_0x4a0a1a(0x2f6))/0x7)+-parseInt(_0x4a0a1a(0x302))/0x8*(-parseInt(_0x4a0a1a(0x1e1))/0x9)+parseInt(_0x4a0a1a(0x312))/0xa+parseInt(_0x4a0a1a(0x23a))/0xb;if(_0x4f3c58===_0x3a46cc)break;else _0x29fa44['push'](_0x29fa44['shift']());}catch(_0x17457f){_0x29fa44['push'](_0x29fa44['shift']());}}}(_0x25e8,0x47c62));var ue=Object[_0x3d1bae(0x1c2)],le=(_0x6543cb,_0x4f27b2,_0x430f25)=>_0x4f27b2 in _0x6543cb?ue(_0x6543cb,_0x4f27b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x430f25}):_0x6543cb[_0x4f27b2]=_0x430f25,I=(_0x2cf805,_0x208bc7,_0x57152f)=>le(_0x2cf805,typeof _0x208bc7!=_0x3d1bae(0x2f2)?_0x208bc7+'':_0x208bc7,_0x57152f);Object['defineProperty'](exports,Symbol[_0x3d1bae(0x306)],{'value':_0x3d1bae(0x1bc)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _0x3e74(_0x3f037f,_0x4b9839){var _0x25e8f9=_0x25e8();return _0x3e74=function(_0x3e74a8,_0x42662b){_0x3e74a8=_0x3e74a8-0x1bc;var _0x319ac4=_0x25e8f9[_0x3e74a8];return _0x319ac4;},_0x3e74(_0x3f037f,_0x4b9839);}var g=function(){var _0xe1286b=_0x3d1bae;return g=Object[_0xe1286b(0x20f)]||function(_0x2e82e2){var _0xffff44=_0xe1286b;for(var _0x334021,_0x3a68dc=0x1,_0x3b7f1f=arguments['length'];_0x3a68dc<_0x3b7f1f;_0x3a68dc++){_0x334021=arguments[_0x3a68dc];for(var _0x310527 in _0x334021)Object[_0xffff44(0x222)][_0xffff44(0x283)][_0xffff44(0x2a0)](_0x334021,_0x310527)&&(_0x2e82e2[_0x310527]=_0x334021[_0x310527]);}return _0x2e82e2;},g[_0xe1286b(0x28e)](this,arguments);},ve=function(_0x29619b,_0x5d7cb3){var _0x5bd0a1=_0x3d1bae,_0xda35f5={};for(var _0x57ec48 in _0x29619b)Object[_0x5bd0a1(0x222)]['hasOwnProperty'][_0x5bd0a1(0x2a0)](_0x29619b,_0x57ec48)&&_0x5d7cb3['indexOf'](_0x57ec48)<0x0&&(_0xda35f5[_0x57ec48]=_0x29619b[_0x57ec48]);if(_0x29619b!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x926f5c=0x0,_0x57ec48=Object[_0x5bd0a1(0x27a)](_0x29619b);_0x926f5c<_0x57ec48[_0x5bd0a1(0x205)];_0x926f5c++)_0x5d7cb3[_0x5bd0a1(0x21a)](_0x57ec48[_0x926f5c])<0x0&&Object[_0x5bd0a1(0x222)]['propertyIsEnumerable']['call'](_0x29619b,_0x57ec48[_0x926f5c])&&(_0xda35f5[_0x57ec48[_0x926f5c]]=_0x29619b[_0x57ec48[_0x926f5c]]);}return _0xda35f5;},_=d['forwardRef'](function(_0x50028e,_0x54cc38){var _0x152a73=_0x3d1bae,_0x4da830=_0x50028e[_0x152a73(0x1d4)],_0xfea268=_0x50028e['id'],_0x22972a=_0x50028e['className'],_0x1eb272=_0x50028e['extend'],_0x30bf6b=ve(_0x50028e,[_0x152a73(0x1d4),'id',_0x152a73(0x298),_0x152a73(0x2ed)]),_0x4eeef8=_0x152a73(0x22a)[_0x152a73(0x247)](_0xfea268,'\x20')['concat'](_0x22972a||'')['trim'](),_0x3d298e=d[_0x152a73(0x1c3)]('_'['concat'](ge()));return H(_0x4da830,''[_0x152a73(0x247)](_0xfea268),{'defIds':_0x4da830[_0x152a73(0x28c)],'idSuffix':_0x3d298e['current']},g({'ref':_0x54cc38,'className':_0x4eeef8},_0x30bf6b),_0x1eb272);});function H(_0xe49f97,_0x113528,_0x376154,_0x3676c0,_0x1cb182){var _0x41c52a=_0x3d1bae;return d[_0x41c52a(0x2dc)](_0xe49f97[_0x41c52a(0x24c)],g(g({'key':_0x113528},de(_0xe49f97,_0x376154,_0x1cb182)),_0x3676c0),(Ce(_0xe49f97,_0x376154)[_0x41c52a(0x33c)]||[])['map'](function(_0x531680,_0x56744d){var _0x5d2307=_0x41c52a;return H(_0x531680,''[_0x5d2307(0x247)](_0x113528,'-')[_0x5d2307(0x247)](_0xe49f97[_0x5d2307(0x24c)],'-')[_0x5d2307(0x247)](_0x56744d),_0x376154,void 0x0,_0x1cb182);}));}function de(_0x94cb0e,_0x174da2,_0x150061){var _0x2d4919=_0x3d1bae,_0x502f98=g({},_0x94cb0e[_0x2d4919(0x32a)]);_0x150061!=null&&_0x150061[_0x2d4919(0x2ca)]&&_0x502f98[_0x2d4919(0x2e0)]==='colorChannel1'&&(_0x502f98[_0x2d4919(0x2e0)]=_0x150061['colorChannel1']),_0x94cb0e[_0x2d4919(0x24c)]==='mask'&&_0x502f98['id']&&(_0x502f98['id']=_0x502f98['id']+_0x174da2['idSuffix']),Object[_0x2d4919(0x1db)](_0x502f98)[_0x2d4919(0x2c0)](function(_0x5432d5){var _0x3f99d0=_0x2d4919,_0x51ac3c=_0x5432d5[0x0],_0x8499e=_0x5432d5[0x1];_0x51ac3c===_0x3f99d0(0x31c)&&typeof _0x8499e==_0x3f99d0(0x24e)&&(_0x502f98[_0x51ac3c]=_0x8499e[_0x3f99d0(0x32b)](/url\(#(.*)\)/,'url(#$1'[_0x3f99d0(0x247)](_0x174da2[_0x3f99d0(0x223)],')')));});var _0x198cbe=_0x174da2[_0x2d4919(0x28c)];return!_0x198cbe||_0x198cbe[_0x2d4919(0x205)]===0x0||(_0x94cb0e[_0x2d4919(0x24c)]===_0x2d4919(0x322)&&_0x502f98[_0x2d4919(0x21d)]&&(_0x502f98[_0x2d4919(0x21d)]=_0x502f98[_0x2d4919(0x21d)]+_0x174da2[_0x2d4919(0x223)]),Object[_0x2d4919(0x1db)](_0x502f98)[_0x2d4919(0x2c0)](function(_0x10ad29){var _0x5bbfbc=_0x2d4919,_0x5b4f44=_0x10ad29[0x0],_0x22382c=_0x10ad29[0x1];typeof _0x22382c==_0x5bbfbc(0x24e)&&(_0x502f98[_0x5b4f44]=_0x22382c[_0x5bbfbc(0x32b)](/url\(#(.*)\)/,_0x5bbfbc(0x2aa)[_0x5bbfbc(0x247)](_0x174da2['idSuffix'],')')));})),_0x502f98;}function Ce(_0x2c7cf6,_0x1ddeb4){var _0x2c71fd=_0x3d1bae,_0x2304b4,_0x15c8b2=_0x1ddeb4['defIds'];return!_0x15c8b2||_0x15c8b2[_0x2c71fd(0x205)]===0x0?_0x2c7cf6:_0x2c7cf6[_0x2c71fd(0x24c)]===_0x2c71fd(0x27d)&&(!((_0x2304b4=_0x2c7cf6[_0x2c71fd(0x33c)])===null||_0x2304b4===void 0x0)&&_0x2304b4[_0x2c71fd(0x205)])?g(g({},_0x2c7cf6),{'children':_0x2c7cf6[_0x2c71fd(0x33c)][_0x2c71fd(0x251)](function(_0x3acbda){var _0x55e25e=_0x2c71fd;return typeof _0x3acbda['attrs']['id']==_0x55e25e(0x24e)&&_0x15c8b2&&_0x15c8b2[_0x55e25e(0x1be)](_0x3acbda['attrs']['id'])?g(g({},_0x3acbda),{'attrs':g(g({},_0x3acbda[_0x55e25e(0x32a)]),{'id':_0x3acbda['attrs']['id']+_0x1ddeb4[_0x55e25e(0x223)]})}):_0x3acbda;})}):_0x2c7cf6;}function ge(){var _0x37ef32=_0x3d1bae;return Math['random']()['toString'](0x24)[_0x37ef32(0x207)](0x2,0x8);}_[_0x3d1bae(0x334)]=_0x3d1bae(0x341);var fe={'tag':'svg','attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':'0\x200\x2016\x2016','width':_0x3d1bae(0x2f8),'height':_0x3d1bae(0x2f8)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'fill':'currentColor','d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x3d1bae(0x29b),'clipRule':_0x3d1bae(0x29b)}}]},B=d[_0x3d1bae(0x22b)](function(_0x4f9f36,_0x5d6769){var _0x206515=_0x3d1bae;return d[_0x206515(0x2dc)](_,Object[_0x206515(0x20f)]({},_0x4f9f36,{'id':'check-mark-icon','ref':_0x5d6769,'icon':fe}));});B[_0x3d1bae(0x334)]='CheckMarkIcon';var pe={'tag':_0x3d1bae(0x1f0),'attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':_0x3d1bae(0x304),'width':_0x3d1bae(0x2f8),'height':_0x3d1bae(0x2f8)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'stroke':_0x3d1bae(0x1d7),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x3d1bae(0x1d7),'d':_0x3d1bae(0x33e),'strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.33}}]},F=d['forwardRef'](function(_0x54c18b,_0x256d9f){var _0x281464=_0x3d1bae;return d[_0x281464(0x2dc)](_,Object[_0x281464(0x20f)]({},_0x54c18b,{'id':'close-small-single','ref':_0x256d9f,'icon':pe}));});F[_0x3d1bae(0x334)]=_0x3d1bae(0x336);var he={'tag':_0x3d1bae(0x1f0),'attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':_0x3d1bae(0x1eb),'width':'1em','height':_0x3d1bae(0x2f8)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'fill':_0x3d1bae(0x1d7),'d':_0x3d1bae(0x315)}},{'tag':_0x3d1bae(0x326),'attrs':{'fill':_0x3d1bae(0x1d7),'d':_0x3d1bae(0x243)}},{'tag':_0x3d1bae(0x326),'attrs':{'fill':'currentColor','d':_0x3d1bae(0x2b2),'fillRule':_0x3d1bae(0x29b),'clipRule':_0x3d1bae(0x29b)}}]},Y=d[_0x3d1bae(0x22b)](function(_0x168afe,_0x2ba833){var _0x5da1e6=_0x3d1bae;return d[_0x5da1e6(0x2dc)](_,Object['assign']({},_0x168afe,{'id':_0x5da1e6(0x268),'ref':_0x2ba833,'icon':he}));});Y[_0x3d1bae(0x334)]=_0x3d1bae(0x2d0);var me={'tag':'svg','attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':'0\x200\x2016\x2016','width':_0x3d1bae(0x2f8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1bae(0x258)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'stroke':'currentColor','d':_0x3d1bae(0x1e3),'strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d1bae(0x28b),'attrs':{'id':_0x3d1bae(0x2dd)},'children':[{'tag':'path','attrs':{'fill':_0x3d1bae(0x330),'d':_0x3d1bae(0x257)}}]}]}],'defIds':[_0x3d1bae(0x2dd)]},q=d[_0x3d1bae(0x22b)](function(_0x2d57e9,_0x276e8a){var _0x45fd95=_0x3d1bae;return d[_0x45fd95(0x2dc)](_,Object[_0x45fd95(0x20f)]({},_0x2d57e9,{'id':_0x45fd95(0x1e6),'ref':_0x276e8a,'icon':me}));});q[_0x3d1bae(0x334)]='OffLineIcon';var xe={'tag':_0x3d1bae(0x1f0),'attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':_0x3d1bae(0x2bd),'width':_0x3d1bae(0x2f8),'height':_0x3d1bae(0x2f8)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1bae(0x267)},'children':[{'tag':'path','attrs':{'stroke':_0x3d1bae(0x1d7),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.2}}]},{'tag':_0x3d1bae(0x27d),'attrs':{},'children':[{'tag':_0x3d1bae(0x28b),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x3d1bae(0x330),'d':_0x3d1bae(0x257),'transform':_0x3d1bae(0x253)}}]}]}],'defIds':[_0x3d1bae(0x301)]},V=d[_0x3d1bae(0x22b)](function(_0x557ab6,_0x2d954f){var _0x3890c1=_0x3d1bae;return d[_0x3890c1(0x2dc)](_,Object['assign']({},_0x557ab6,{'id':_0x3890c1(0x279),'ref':_0x2d954f,'icon':xe}));});V[_0x3d1bae(0x334)]='OnLineIcon';function W(_0x5acd8d){var _0x42293f=_0x3d1bae,_0x20a98f,_0x56c30e;const {mcpCoreConfig:_0x2a8a0a,onSave:_0x50ef3d,loading:_0x747b45=!0x1,config:_0x2804bd,connectionStatus$:_0x4d1ff5,connectionError$:_0x382ae1,currentApiKey$:_0x24240c,currentSessionId$:_0x5c18b4}=_0x5acd8d,_0x535027=v[_0x42293f(0x310)](l[_0x42293f(0x1c9)]),_0x452449=v[_0x42293f(0x26a)](_0x4d1ff5,s[_0x42293f(0x33f)][_0x42293f(0x230)]),_0x30fb00=v[_0x42293f(0x26a)](_0x382ae1,s['MCPConnectionError'][_0x42293f(0x2e6)]),_0x375bc0=v[_0x42293f(0x26a)](_0x5c18b4,''),_0x13f138=v['useObservable'](_0x24240c,''),[_0x4b14fd,_0x277a50]=d['useState'](_0x13f138||''),_0x172bf5=!0x0,_0x3e3e82=_0x2804bd[_0x42293f(0x25b)]&&_0x2a8a0a[_0x42293f(0x1e7)]&&(_0x2a8a0a['mcpServerUrl'][_0x42293f(0x1be)](_0x42293f(0x25c))||_0x2a8a0a[_0x42293f(0x1e7)][_0x42293f(0x1be)]('univer.ai')),_0x3b54a6=(_0x20a98f=_0x2a8a0a[_0x42293f(0x1e7)])==null?void 0x0:_0x20a98f[_0x42293f(0x1be)]('univer.plus'),_0x1d5977=(_0x56c30e=_0x2a8a0a[_0x42293f(0x1e7)])==null?void 0x0:_0x56c30e[_0x42293f(0x1be)](_0x42293f(0x2c6)),_0x2395a1=_0x3b54a6?'https://console.univer.plus':'https://console.univer.ai',_0x3f12f4=_0x2804bd['showDeveloperTools']&&(_0x3b54a6||_0x1d5977),[_0x2d43ac,_0x37a299]=d['useState'](!_0x4b14fd[_0x42293f(0x30e)]()),_0x451132=(_0x197a31,_0x4af014)=>{var _0x30e3c6=_0x42293f;if(_0x4af014===s[_0x30e3c6(0x254)][_0x30e3c6(0x2a4)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x197a31){case s[_0x30e3c6(0x33f)][_0x30e3c6(0x266)]:return _0x30e3c6(0x307);case s[_0x30e3c6(0x33f)][_0x30e3c6(0x242)]:case s[_0x30e3c6(0x33f)][_0x30e3c6(0x2c3)]:return _0x30e3c6(0x2bf);case s[_0x30e3c6(0x33f)][_0x30e3c6(0x211)]:return _0x30e3c6(0x2b7);default:return _0x30e3c6(0x2c1);}},_0x30c42e=(_0x4ac6a3,_0x5d0ab3)=>{var _0x5335d5=_0x42293f;if(_0x5d0ab3===s['MCPConnectionError'][_0x5335d5(0x2a4)])return _0x5335d5(0x25d);switch(_0x4ac6a3){case s['MCPConnectionStatus']['CONNECTED']:return _0x5335d5(0x206);case s[_0x5335d5(0x33f)][_0x5335d5(0x242)]:case s[_0x5335d5(0x33f)][_0x5335d5(0x2c3)]:return _0x5335d5(0x29c);case s[_0x5335d5(0x33f)]['FAILED']:return _0x5335d5(0x25d);default:return _0x5335d5(0x20d);}},_0x5f4577=_0x1d7d74=>{var _0x27f8e4=_0x42293f;switch(_0x1d7d74){case s[_0x27f8e4(0x33f)][_0x27f8e4(0x266)]:return _0x535027['t'](_0x27f8e4(0x259));case s[_0x27f8e4(0x33f)]['CONNECTING']:return _0x535027['t'](_0x27f8e4(0x29d));case s['MCPConnectionStatus']['FAILED']:return _0x535027['t'](_0x27f8e4(0x215));case s[_0x27f8e4(0x33f)][_0x27f8e4(0x2c3)]:return _0x535027['t']('mcpConfig.connectionStatus.retrying');default:return _0x535027['t']('mcpConfig.connectionStatus.disconnected');}},_0x27b121=_0x10a7fd=>{var _0x5ad569=_0x42293f;switch(_0x10a7fd){case s['MCPConnectionError'][_0x5ad569(0x2a4)]:return _0x535027['t'](_0x5ad569(0x2ab));case s[_0x5ad569(0x254)][_0x5ad569(0x252)]:return _0x535027['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x5ad569(0x254)][_0x5ad569(0x23f)]:return _0x535027['t'](_0x5ad569(0x217));case s[_0x5ad569(0x254)][_0x5ad569(0x335)]:return _0x535027['t'](_0x5ad569(0x1c5));default:return'';}},_0x102974=d[_0x42293f(0x240)](()=>{var _0x50bd59=_0x42293f;const _0x36cf75={..._0x2a8a0a,'apiKey':_0x4b14fd[_0x50bd59(0x30e)](),'enableAuth':_0x172bf5};_0x50ef3d(_0x36cf75);},[_0x2a8a0a,_0x4b14fd,_0x172bf5,_0x50ef3d]),_0x3d70b1=_0x4b14fd[_0x42293f(0x30e)]()['length']>0x0;return t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x305),'children':[t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x1fc),'children':t['jsxs'](_0x42293f(0x343),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1bf),'children':t['jsx'](_0x42293f(0x26d),{'className':_0x42293f(0x246),'children':'⚙'})}),t[_0x42293f(0x2b6)](_0x42293f(0x343),{'children':t[_0x42293f(0x2b6)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x535027['t'](_0x42293f(0x2a3))})})]})}),t['jsxs'](_0x42293f(0x343),{'className':_0x42293f(0x216),'children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x236)+_0x451132(_0x452449,_0x30fb00)+_0x42293f(0x2db),'children':t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x26c),'children':[t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x2b0)+_0x30c42e(_0x452449,_0x30fb00)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x204),'children':_0x5f4577(_0x452449)})]})}),_0x30fb00!==s['MCPConnectionError'][_0x42293f(0x2e6)]&&(_0x452449===s[_0x42293f(0x33f)][_0x42293f(0x211)]||_0x30fb00===s[_0x42293f(0x254)]['UNAUTHORIZED'])&&t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1ff),'children':t['jsxs'](_0x42293f(0x343),{'className':_0x42293f(0x294),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),t[_0x42293f(0x2b6)]('p',{'className':_0x42293f(0x22f),'children':_0x27b121(_0x30fb00)})]})})]}),t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x2f0),'children':[t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x33b)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'children':'🔑'}),'\x20',_0x535027['t'](_0x42293f(0x342)),t[_0x42293f(0x2b6)]('span',{'className':'univer-text-red-500','children':'*'}),_0x3e3e82&&t[_0x42293f(0x2b6)]('a',{'href':'javascript:void(0)','onClick':()=>_0x37a299(!0x0),'className':_0x42293f(0x338),'title':_0x535027['t'](_0x42293f(0x2f1)),'children':t['jsx'](Y,{})})]}),t['jsx'](S[_0x42293f(0x1f8)],{'type':_0x42293f(0x256),'placeholder':_0x535027['t'](_0x42293f(0x24a)),'value':_0x4b14fd,'onChange':_0x277a50,'disabled':_0x747b45,'autoComplete':'off'}),t[_0x42293f(0x2b6)]('p',{'className':_0x42293f(0x1ef),'children':_0x535027['t'](_0x42293f(0x28f))})]}),_0x3e3e82&&_0x2d43ac&&t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x221),'children':[t[_0x42293f(0x2b6)]('a',{'href':_0x42293f(0x1cd),'onClick':()=>_0x37a299(!0x1),'className':_0x42293f(0x22d),'title':_0x42293f(0x329),'children':t[_0x42293f(0x2b6)](F,{})}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1c1),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x299),'children':t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x1dc),'children':'🚀'})}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x2e7),'children':[t['jsx']('h4',{'className':_0x42293f(0x2ec),'children':_0x535027['t'](_0x42293f(0x2f1))}),t['jsx']('p',{'className':_0x42293f(0x2a1),'children':_0x535027['t'](_0x42293f(0x241))}),t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x319),'children':_0x3f12f4&&t[_0x42293f(0x33b)]('a',{'href':_0x2395a1,'target':_0x42293f(0x1ec),'rel':_0x42293f(0x227),'className':_0x42293f(0x1fd),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'children':'🤖'}),_0x535027['t']('mcpConfig.apiApplyInfo.univerAiLabel'),t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':'univer-text-gray-400','children':'↗'})]})}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1ea),'children':['✨','\x20',_0x535027['t'](_0x42293f(0x32f))]})]})]})]}),_0x2804bd[_0x42293f(0x25b)]&&t[_0x42293f(0x33b)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[t[_0x42293f(0x33b)]('h4',{'className':_0x42293f(0x2f4),'children':[t['jsx']('span',{'children':'🔗'}),'\x20',_0x535027['t'](_0x42293f(0x2b1))]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x2d9),'children':[t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x255),'children':[t[_0x42293f(0x2b6)]('p',{'className':_0x42293f(0x30c),'children':_0x535027['t'](_0x42293f(0x24b))}),t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1d3),'children':_0x535027['t'](_0x42293f(0x27f))}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x23b),'children':[t['jsxs'](_0x42293f(0x343),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t['jsx'](_0x42293f(0x26d),{'className':_0x42293f(0x20e),'children':'1'}),_0x535027['t'](_0x42293f(0x27e))]}),t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x20e),'children':'2'}),_0x535027['t']('mcpConfig.configStep2')]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x20e),'children':'3'}),_0x535027['t'](_0x42293f(0x284))]})]})]})]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x1d3),'children':_0x42293f(0x344)}),t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x2e3),'children':t['jsx']('pre',{'className':_0x42293f(0x290),'children':_0x42293f(0x2ba)+_0x375bc0+_0x42293f(0x2cc)+(_0x4b14fd||_0x42293f(0x2a7))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),t['jsxs'](_0x42293f(0x343),{'className':_0x42293f(0x255),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x1d3),'children':_0x535027['t'](_0x42293f(0x1de))}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x30f),'children':[t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x280)}),t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x1df),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x2f9),'children':_0x42293f(0x2d6)}),t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1ef),'children':_0x535027['t'](_0x42293f(0x232))})]})]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x30f),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x280)}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1df),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x2f9),'children':'Authorization:'}),t['jsx'](_0x42293f(0x343),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x535027['t'](_0x42293f(0x2e4))})]})]})]})]})]})]}),t['jsx'](S[_0x42293f(0x321)],{'onClick':_0x102974,'disabled':!_0x3d70b1||_0x747b45,'className':_0x42293f(0x1c7),'children':_0x747b45?t[_0x42293f(0x33b)](_0x42293f(0x26d),{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'children':'⟲'}),_0x535027['t'](_0x42293f(0x2fc))]}):t[_0x42293f(0x33b)](_0x42293f(0x26d),{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](B,{}),_0x535027['t'](_0x42293f(0x1d0))]})}),t['jsx']('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':'univer-flex\x20univer-gap-3','children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1e9),'children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x26b),'children':'Configuration\x20Notes:'}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'children':['•',_0x535027['t']('mcpConfig.note1')]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'children':['•',_0x535027['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x3d1bae(0x2fa),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x3d1bae(0x27b)],Pe=(_0x11226a,_0x42e8f5,_0x6bf8a,_0x5caded)=>{var _0x873f3=_0x3d1bae;for(var _0x180ed1=_0x5caded>0x1?void 0x0:_0x5caded?Se(_0x42e8f5,_0x6bf8a):_0x42e8f5,_0x2df0da=_0x11226a[_0x873f3(0x205)]-0x1,_0x264293;_0x2df0da>=0x0;_0x2df0da--)(_0x264293=_0x11226a[_0x2df0da])&&(_0x180ed1=_0x264293(_0x180ed1)||_0x180ed1);return _0x180ed1;},f=(_0x516145,_0x5c593a)=>(_0x5ded7b,_0x4f518b)=>_0x5c593a(_0x5ded7b,_0x4f518b,_0x516145);const D=_0x3d1bae(0x21e),k=_0x3d1bae(0x265);exports[_0x3d1bae(0x2eb)]=class extends l[_0x3d1bae(0x2a2)]{constructor(_0x34bc3f,_0x299dbf,_0x51a2d1,_0xdca6fc,_0xe26f67,_0x455fd8,_0x7937d4,_0x45ae4f,_0x50ca27,_0x20fb98){var _0x1a5a75=_0x3d1bae;super(),I(this,'_loading$',new N['BehaviorSubject'](!0x1)),I(this,_0x1a5a75(0x1d6),new N[(_0x1a5a75(0x24f))]({})),I(this,_0x1a5a75(0x314),new N[(_0x1a5a75(0x24f))]({})),I(this,_0x1a5a75(0x333),new N['BehaviorSubject']('')),I(this,_0x1a5a75(0x2b4),async _0x57a36b=>{var _0x56e795=_0x1a5a75,_0x4e5664,_0x5937d6;this[_0x56e795(0x203)][_0x56e795(0x237)](!0x0);try{const _0x372f86=await this[_0x56e795(0x2fd)](_0x57a36b);if(!_0x372f86[_0x56e795(0x25e)]){this[_0x56e795(0x231)][_0x56e795(0x320)]({'type':S['MessageType'][_0x56e795(0x2df)],'content':_0x372f86[_0x56e795(0x2d5)]||this[_0x56e795(0x29a)]['t'](_0x56e795(0x208))});return;}_0x57a36b[_0x56e795(0x2b9)]?await this[_0x56e795(0x212)][_0x56e795(0x31d)](D,_0x57a36b[_0x56e795(0x2b9)]['trim']()):await this[_0x56e795(0x212)][_0x56e795(0x2a8)](D),this[_0x56e795(0x333)][_0x56e795(0x237)](((_0x4e5664=_0x57a36b['apiKey'])==null?void 0x0:_0x4e5664[_0x56e795(0x30e)]())||''),this[_0x56e795(0x1e8)][_0x56e795(0x233)]({'Authorization':'Bearer\x20'+((_0x5937d6=_0x57a36b[_0x56e795(0x2b9)])==null?void 0x0:_0x5937d6['trim']())}),this[_0x56e795(0x231)]['show']({'type':S['MessageType'][_0x56e795(0x345)],'content':this['_localeService']['t'](_0x56e795(0x25f))}),setTimeout(()=>{var _0x3c553b=_0x56e795;this[_0x3c553b(0x219)][_0x3c553b(0x292)](k);},0x320);}catch(_0x37762a){this[_0x56e795(0x272)][_0x56e795(0x2d4)](_0x56e795(0x2ef),_0x37762a),this[_0x56e795(0x231)][_0x56e795(0x320)]({'type':S['MessageType']['Error'],'content':this[_0x56e795(0x29a)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x56e795(0x237)](!0x1);}}),(this[_0x1a5a75(0x285)]=_0x34bc3f,this[_0x1a5a75(0x277)]=_0x299dbf,this[_0x1a5a75(0x20a)]=_0x51a2d1,this[_0x1a5a75(0x212)]=_0xdca6fc,this[_0x1a5a75(0x219)]=_0xe26f67,this[_0x1a5a75(0x231)]=_0x455fd8,this[_0x1a5a75(0x210)]=_0x7937d4,this['_localeService']=_0x45ae4f,this['_logService']=_0x50ca27,this[_0x1a5a75(0x1e8)]=_0x20fb98,this[_0x1a5a75(0x1cb)](),this[_0x1a5a75(0x28a)](),this[_0x1a5a75(0x317)]());}[_0x3d1bae(0x2a5)](){var _0x4d70ae=_0x3d1bae;const _0x801124=this[_0x4d70ae(0x20a)][_0x4d70ae(0x2ee)](y);_0x801124!=null&&_0x801124['showDeveloperTools']&&this[_0x4d70ae(0x219)][_0x4d70ae(0x214)]({'id':k,'title':{'title':this[_0x4d70ae(0x29a)]['t']('mcpConfig.title')},'children':{'label':_0x4d70ae(0x245)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](k);}});}[_0x3d1bae(0x28d)](){var _0x2c79e7=_0x3d1bae;return this['_mcpCoreConfig$'][_0x2c79e7(0x2e5)];}[_0x3d1bae(0x317)](){var _0x2331af=_0x3d1bae;this[_0x2331af(0x331)](this[_0x2331af(0x210)][_0x2331af(0x2fb)](_0x2331af(0x245),this[_0x2331af(0x30a)]()));}[_0x3d1bae(0x30a)](){var _0x3acd49=_0x3d1bae;return v[_0x3acd49(0x1da)](()=>{var _0x47f253=_0x3acd49,_0x576784,_0x103a85,_0x4ffff4;return t[_0x47f253(0x2b6)](W,{'config':this[_0x47f253(0x314)][_0x47f253(0x2e5)],'mcpCoreConfig':this[_0x47f253(0x1d6)]['value'],'currentApiKey$':this[_0x47f253(0x333)],'onSave':this[_0x47f253(0x2b4)],'loading':this[_0x47f253(0x203)][_0x47f253(0x2e5)],'connectionStatus$':(_0x576784=this[_0x47f253(0x1e8)])==null?void 0x0:_0x576784[_0x47f253(0x23d)],'connectionError$':(_0x103a85=this[_0x47f253(0x1e8)])==null?void 0x0:_0x103a85[_0x47f253(0x2d8)],'currentSessionId$':(_0x4ffff4=this['_mcpConnectionController'])==null?void 0x0:_0x4ffff4[_0x47f253(0x2ea)]});},this[_0x3acd49(0x285)]);}[_0x3d1bae(0x1cb)](){var _0x34f3df=_0x3d1bae;this[_0x34f3df(0x331)](this[_0x34f3df(0x20a)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0x34f3df(0x235)](_0x4f3409=>{var _0x2f1649=_0x34f3df;this[_0x2f1649(0x1d6)][_0x2f1649(0x237)](_0x4f3409||{});}));const _0x511249=this[_0x34f3df(0x20a)][_0x34f3df(0x2ee)](s[_0x34f3df(0x348)]);this[_0x34f3df(0x1d6)][_0x34f3df(0x237)](_0x511249||{}),this[_0x34f3df(0x331)](this[_0x34f3df(0x20a)][_0x34f3df(0x2d2)](y)[_0x34f3df(0x235)](_0x212acf=>{var _0x3c0584=_0x34f3df;this[_0x3c0584(0x314)]['next'](_0x212acf||{});}));const _0x4003ce=this[_0x34f3df(0x20a)][_0x34f3df(0x2ee)](y);this[_0x34f3df(0x314)][_0x34f3df(0x237)](_0x4003ce||{});}async[_0x3d1bae(0x28a)](){var _0x21b392=_0x3d1bae;const _0x4eafbf=this[_0x21b392(0x20a)][_0x21b392(0x2ee)](y);if(!(_0x4eafbf!=null&&_0x4eafbf[_0x21b392(0x25b)]))return;const _0x283405=await this[_0x21b392(0x212)]['getItem'](D);_0x283405&&(this[_0x21b392(0x1e8)][_0x21b392(0x233)]({'Authorization':_0x21b392(0x220)+_0x283405}),this[_0x21b392(0x333)][_0x21b392(0x237)](_0x283405));}async['_validateConfig'](_0x2bc3e2){var _0x174766=_0x3d1bae;if(!_0x2bc3e2['apiKey']||_0x2bc3e2[_0x174766(0x2b9)]['trim']()[_0x174766(0x205)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x174766(0x29a)]['t'](_0x174766(0x228))};if(_0x2bc3e2['apiKey'][_0x174766(0x30e)]()[_0x174766(0x205)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x174766(0x29a)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x13de91=await this[_0x174766(0x285)][_0x174766(0x2bb)](s[_0x174766(0x300)])['validateApiKey'](_0x2bc3e2[_0x174766(0x2b9)][_0x174766(0x30e)]());return _0x13de91['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x13de91[_0x174766(0x2d4)]||this[_0x174766(0x29a)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x51e733){return console[_0x174766(0x2c8)](_0x174766(0x2ae),_0x51e733),{'isValid':!0x0};}}},exports[_0x3d1bae(0x2eb)]=Pe([f(0x0,l[_0x3d1bae(0x2bc)](l[_0x3d1bae(0x200)])),f(0x1,v[_0x3d1bae(0x2de)]),f(0x2,l['IConfigService']),f(0x3,l[_0x3d1bae(0x24d)]),f(0x4,v['IDialogService']),f(0x5,v['IMessageService']),f(0x6,l[_0x3d1bae(0x2bc)](v[_0x3d1bae(0x22c)])),f(0x7,l['Inject'](l[_0x3d1bae(0x1c9)])),f(0x8,l['ILogService']),f(0x9,l[_0x3d1bae(0x2bc)](s['MCPConnectionController']))],exports[_0x3d1bae(0x2eb)]);const j={'id':_0x3d1bae(0x311),'type':l['CommandType']['COMMAND'],'handler':async(_0x32d927,_0x4b8c23)=>(_0x32d927['get'](exports[_0x3d1bae(0x2eb)])[_0x3d1bae(0x2a5)](),!0x0)};function Z(_0x3c8cc7,_0x319266){var _0x38bc64=_0x3d1bae;switch(_0x3c8cc7){case s[_0x38bc64(0x33f)]['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x38bc64(0x33f)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x38bc64(0x33f)][_0x38bc64(0x266)]:return _0x38bc64(0x1e5);case s[_0x38bc64(0x33f)][_0x38bc64(0x211)]:switch(_0x319266){case s[_0x38bc64(0x254)][_0x38bc64(0x2a4)]:return _0x38bc64(0x2ff);case s[_0x38bc64(0x254)]['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case s[_0x38bc64(0x254)]['NETWORK_ERROR']:return'mcpStatus.networkError';case s[_0x38bc64(0x254)][_0x38bc64(0x335)]:return _0x38bc64(0x291);default:return _0x38bc64(0x2e9);}case s[_0x38bc64(0x33f)][_0x38bc64(0x2c3)]:return _0x38bc64(0x1f3);default:return _0x38bc64(0x234);}}function ye(_0x5937d8,_0x3d2fce,_0xa94599,_0x5dfcb2=!0x0){var _0x1fbb35=_0x3d1bae;const _0x4bd9c5=Z(_0x5937d8,_0x3d2fce),_0x4672b6=_0xa94599['t'](_0x4bd9c5);return _0x5dfcb2?_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x230)]&&_0x3d2fce===s['MCPConnectionError'][_0x1fbb35(0x2a4)]?_0x4672b6+'\x20-\x20'+_0xa94599['t'](_0x1fbb35(0x2e2)):_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x266)]?''+_0x4672b6:_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x230)]||_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x211)]?_0x4672b6+_0x1fbb35(0x1d5)+_0xa94599['t']('mcpStatus.clickToConnect'):_0x4672b6:_0x4672b6;}function Ie(_0x75d1c7){var _0x3ff94f=_0x3d1bae;switch(_0x75d1c7){case s[_0x3ff94f(0x33f)][_0x3ff94f(0x266)]:return _0x3ff94f(0x2f3);case s[_0x3ff94f(0x33f)][_0x3ff94f(0x242)]:case s[_0x3ff94f(0x33f)][_0x3ff94f(0x2c3)]:return'univer-text-yellow-500';case s[_0x3ff94f(0x33f)][_0x3ff94f(0x211)]:case s[_0x3ff94f(0x33f)][_0x3ff94f(0x230)]:return _0x3ff94f(0x275);default:return _0x3ff94f(0x201);}}function X(_0x1cc890){var _0x1582b8=_0x3d1bae;const {status$:_0x73b5c3,error$:_0x387009,onConfigure:_0x4240ab,showClickable:_0xd5eec=!0x0}=_0x1cc890,_0x26eb59=v[_0x1582b8(0x26a)](_0x73b5c3,s[_0x1582b8(0x33f)][_0x1582b8(0x230)]),_0x421e07=v[_0x1582b8(0x26a)](_0x387009,s[_0x1582b8(0x254)][_0x1582b8(0x2e6)]),_0x372812=v[_0x1582b8(0x310)](l['LocaleService']),_0x16bf57=_0x26eb59===s[_0x1582b8(0x33f)][_0x1582b8(0x266)];_0x26eb59===s['MCPConnectionStatus'][_0x1582b8(0x242)]||s['MCPConnectionStatus'][_0x1582b8(0x2c3)];const _0x4409da=_0x372812['t'](Z(_0x26eb59,_0x421e07)),_0x2cbf40=ye(_0x26eb59,_0x421e07,_0x372812,_0xd5eec),_0x503580=Ie(_0x26eb59),_0x14b7a0=_0x16bf57?t[_0x1582b8(0x2b6)](V,{}):t[_0x1582b8(0x2b6)](q,{}),_0x584dcc=d[_0x1582b8(0x240)](()=>{_0xd5eec&&_0x4240ab&&_0x4240ab();},[_0xd5eec,_0x4240ab]);function _0x1f273f(){var _0x471751=_0x1582b8;return t['jsxs'](_0x471751(0x343),{'className':S[_0x471751(0x309)](_0x471751(0x2be),_0xd5eec&&_0x4240ab&&_0x471751(0x239)),'onClick':_0xd5eec&&_0x4240ab?_0x584dcc:void 0x0,'children':[t[_0x471751(0x2b6)](_0x471751(0x343),{'className':S[_0x471751(0x309)](_0x471751(0x2f7),_0x503580),'children':_0x14b7a0}),t['jsx'](_0x471751(0x343),{'className':_0x471751(0x2da),'children':_0x4409da})]});}return t[_0x1582b8(0x2b6)](S[_0x1582b8(0x2c4)],{'title':_0x2cbf40,'placement':_0x1582b8(0x287),'children':_0x1f273f()});}var _e=Object['getOwnPropertyDescriptor'],Me=(_0x3b6fb1,_0x4833f2,_0x33e54f,_0x53b86e)=>{for(var _0x1bb320=_0x53b86e>0x1?void 0x0:_0x53b86e?_e(_0x4833f2,_0x33e54f):_0x4833f2,_0x5693e8=_0x3b6fb1['length']-0x1,_0x2a6d03;_0x5693e8>=0x0;_0x5693e8--)(_0x2a6d03=_0x3b6fb1[_0x5693e8])&&(_0x1bb320=_0x2a6d03(_0x1bb320)||_0x1bb320);return _0x1bb320;},b=(_0x46c7a6,_0x92527)=>(_0xd4093,_0x3a452b)=>_0x92527(_0xd4093,_0x3a452b,_0x46c7a6);exports[_0x3d1bae(0x1f9)]=class extends l[_0x3d1bae(0x2a2)]{constructor(_0x5b72f1,_0x4df18b,_0x55629a,_0x926937){var _0x2d13e8=_0x3d1bae;super(),this[_0x2d13e8(0x285)]=_0x5b72f1,this[_0x2d13e8(0x340)]=_0x4df18b,this['_uiPartsService']=_0x55629a,this[_0x2d13e8(0x20a)]=_0x926937,this[_0x2d13e8(0x339)](),this[_0x2d13e8(0x30d)]();}[_0x3d1bae(0x339)](){var _0x2ed757=_0x3d1bae;const _0xb3e66=this[_0x2ed757(0x20a)][_0x2ed757(0x2ee)](y);_0xb3e66!=null&&_0xb3e66[_0x2ed757(0x25b)]&&(this['_connectionController'][_0x2ed757(0x263)]=!0x1);}['_initStatusComponent'](){var _0x2dae45=_0x3d1bae;const _0x2f8cc3=this[_0x2dae45(0x20a)][_0x2dae45(0x2ee)](y);(_0x2f8cc3==null?void 0x0:_0x2f8cc3['showStatus'])!==!0x1&&this[_0x2dae45(0x331)](this[_0x2dae45(0x277)][_0x2dae45(0x21b)](v[_0x2dae45(0x316)][_0x2dae45(0x1ca)],()=>{var _0x5cd65d=_0x2dae45,_0x1d54e2;return v[_0x5cd65d(0x1da)](Ne({'status$':this[_0x5cd65d(0x340)][_0x5cd65d(0x23d)],'error$':this[_0x5cd65d(0x340)][_0x5cd65d(0x2d8)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1d54e2=_0x2f8cc3==null?void 0x0:_0x2f8cc3[_0x5cd65d(0x25b)])!=null?_0x1d54e2:!0x1}),this[_0x5cd65d(0x285)]);}));}['_handleConfigure'](){var _0x289842=_0x3d1bae;this['_injector'][_0x289842(0x2bb)](exports[_0x289842(0x2eb)])[_0x289842(0x2a5)]();}},exports[_0x3d1bae(0x1f9)]=Me([b(0x0,l['Inject'](l[_0x3d1bae(0x200)])),b(0x1,l[_0x3d1bae(0x2bc)](s['MCPConnectionController'])),b(0x2,v['IUIPartsService']),b(0x3,l[_0x3d1bae(0x286)])],exports['MCPConnectionUIController']);function Ne(_0x36b7cc){const {status$:_0x24a59e,error$:_0x371342,onConfigure:_0x29f0f8,showClickable:_0x57b502}=_0x36b7cc;return function(){var _0x56aa42=_0x3e74;return t[_0x56aa42(0x2b6)](X,{'status$':_0x24a59e,'error$':_0x371342,'onConfigure':_0x29f0f8,'showClickable':_0x57b502});};}function be(_0x299cd7){var _0x1cd3c3=_0x3d1bae;return{'id':j['id'],'type':v[_0x1cd3c3(0x21c)][_0x1cd3c3(0x248)],'icon':_0x1cd3c3(0x229),'title':_0x1cd3c3(0x303),'tooltip':'mcpConfig.title'};}function _0x25e8(){var _0x3b1cb4=['mcp-config-dialog','CONNECTED','url(#on-line-icon_clip0_910_349)','help-single','MCP:\x20会话\x20ID\x20已被占用','useObservable','univer-font-medium','univer-flex\x20univer-items-center\x20univer-gap-2','span','OpenMCPConfigPanelCommand','_menuManagerService','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','setConfig','_logService','配置步骤:','add','univer-text-red-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_uiPartsService','mergeMenu','on-line-icon','getOwnPropertySymbols','getOwnPropertyDescriptor','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','defs','mcpConfig.configStep1','mcpConfig.configStepTitle','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','WebSocketService','MCP\x20Connected','hasOwnProperty','mcpConfig.configStep3','_injector','IConfigService','bottom','Failed\x20to\x20save\x20configuration','API\x20密钥不能为空','_loadStoredApiKey','clipPath','defIds','getCurrentConfig','apply','mcpConfig.apiKeyHint','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.maxRetriesExceeded','close','MCP\x20Disconnected','univer-flex\x20univer-items-start\x20univer-gap-2','_commandService','MCP:\x20Network\x20Error','UniverMCPPlugin','className','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_localeService','evenodd','univer-bg-blue-500','mcpConfig.connectionStatus.connecting','Enable\x20Authentication','has','call','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Disposable','mcpConfig.description','UNAUTHORIZED','showConfigPanel','启用身份验证以获得安全连接','<API_KEY>','removeItem','onStarting','url(#$1','mcpConfig.connectionError.unauthorized','会话ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Configuration\x20saved\x20successfully','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.connectionInfo','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','请输入您的\x20API\x20密钥','_handleConfigSave','_config','jsx','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_initializeCommands','apiKey','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','get','Inject','0\x200\x2017\x2016','univer-flex\x20univer-items-center','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','forEach','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','RETRYING','Tooltip','已连接','univer.ai','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','warn','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','colorChannel1','zhCN','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20Max\x20Retries\x20Exceeded','8VIjfyc','HelpSingle','启用身份验证','subscribeConfigValue$','DependentOn','error','errorMessage','univer_session_id:','ISocketService','connectionError$','univer-space-y-4','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','createElement','off-line-icon_clip0_910_343','IUIPartsService','Error','fill','round','mcpStatus.clickToConfigure','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.authorizationDescription','value','NONE','univer-flex-1','连接中...','mcpStatus.failed','sessionId$','MCPConfigUIController','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','extend','getConfig','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-space-y-5','mcpConfig.apiApplyInfo.title','symbol','univer-text-green-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥无效,请检查密钥是否正确','134253SNkeyT','univer-mr-2\x20univer-flex\x20univer-text-xl','1em','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-ui.config','register','mcpConfig.saving','_validateConfig','24QGpQbi','mcpStatus.unauthorized','MCPConnectionController','on-line-icon_clip0_910_349','2423632FzJuOZ','mcpConfig.title','0\x200\x2017\x2017','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','toStringTag','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP:\x20Session\x20ID\x20Occupied','clsx','_createConfigPanelComponent','none','univer-text-xs\x20univer-text-gray-600','_initStatusComponent','trim','univer-flex\x20univer-items-start\x20univer-gap-3','useDependency','mcp-ui.command.openConfigPanel','3335000iEBHAV','MCP\x20重连中...','_config$','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','BuiltInUIPart','_registerComponent','Saving...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','您的\x20API\x20密钥将在此浏览器中本地存储','MCP:\x20超出最大重试次数','mask','setItem','MCPStatusDisplay','您的\x20API\x20密钥安全存储在本地存储中','show','Button','use','未连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','1254970JfWPqh','path','1048533nFrBhh','Enable\x20authentication\x20for\x20secure\x20connections','Close','attrs','replace','MCP\x20已连接','Connection\x20Failed','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.apiApplyInfo.getStarted','white','disposeWithMe','MCP:\x20未授权','_apiKey$','displayName','MAX_RETRIES_EXCEEDED','CloseSmallSingle','复制以下\x20JSON\x20配置','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','_initAutoConnect','MCP\x20配置','jsxs','children','RibbonStartGroup','M5.21243\x2012.287L11.8791\x205.62036','MCPConnectionStatus','_connectionController','UniverIcon','mcpConfig.apiKey','div','MCP\x20Configuration','Success','Invalid\x20configuration','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP_PLUGIN_CONFIG_KEY','Module','MCP\x20Unknown\x20Status','includes','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20连接失败','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','defineProperty','useRef','MCP\x20Connection\x20Failed','mcpConfig.connectionError.maxRetriesExceeded','univer-space-y-2','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','API\x20key\x20is\x20required','LocaleService','HEADER_MENU','_initConfigSync','Save\x20Configuration','javascript:void(0)','Univer\x20AI\x20Console','API\x20Key','mcpConfig.save','Enter\x20your\x20API\x20key','MCP\x20连接中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','icon','\x20-\x20','_mcpCoreConfig$','currentColor','几秒钟内获取您的\x20API\x20密钥','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','connectInjector','entries','univer-text-blue-600','API\x20密钥','mcpConfig.configParameters','univer-min-w-0\x20univer-flex-1','配置保存失败','9nkToki','保存配置','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','Plugin','mcpStatus.connected','off-line-icon','mcpServerUrl','_mcpConnectionController','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','0\x200\x2016\x2016','_blank','MCP\x20Retrying...','enUS','univer-text-xs\x20univer-text-gray-500','svg','重启您的\x20MCP\x20客户端以使配置生效','最大重试次数','mcpStatus.retrying','UniverMCPUIPlugin','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Input','MCPConnectionUIController','MCP\x20客户端配置','merge','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','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','pluginName','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Injector','univer-text-gray-500','MCP_UI_PLUGIN','_loading$','univer-text-sm\x20univer-font-medium','length','univer-bg-green-500','substring','mcpConfig.validation.invalidConfig','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_configService','超出最大重试次数,请稍后再试','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-bg-gray-500','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','assign','_componentManager','FAILED','_localStorageService','1ekgivO','open','mcpConfig.connectionStatus.failed','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.connectionError.networkError','http://www.w3.org/2000/svg','_dialogService','indexOf','registerComponent','MenuItemType','xlink:href','mcp.apiKey','MCPUIMenuController','Bearer\x20','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','prototype','idSuffix','IMenuManagerService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1065986dVkCYv','noopener\x20noreferrer','mcpConfig.validation.apiKeyRequired','MenuIcon','univerjs-icon\x20univerjs-icon-','forwardRef','ComponentManager','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Univer\x20AI\x20控制台','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','DISCONNECTED','_messageService','mcpConfig.sessionIdDescription','__setCustomHeaders','mcpStatus.unknown','subscribe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','next','Max\x20Retries','\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','2929146jxNNye','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Disconnected','connectionStatus$','Click\x20to\x20connect\x20MCP','NETWORK_ERROR','useCallback','mcpConfig.apiApplyInfo.description','CONNECTING','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','MCP:\x20网络错误','MCPConfigPanel','univer-text-white','concat','BUTTON','配置更改将立即生效','mcpConfig.apiKeyPlaceholder','mcpConfig.configInstructions','tag','ILocalStorageService','string','BehaviorSubject','会话\x20ID\x20已被占用,请稍后再试','map','SESSION_ID_OCCUPIED','translate(.97)','MCPConnectionError','univer-space-y-3','text','M0\x200H16V16H0z','url(#off-line-icon_clip0_910_343)','mcpConfig.connectionStatus.connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','showDeveloperTools','univer.plus','univer-bg-red-500','isValid','mcpConfig.configSaved','什么是\x20API\x20密钥?','OTHERS','_initializeMenus','enableAutoConnect','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x25e8=function(){return _0x3b1cb4;};return _0x25e8();}const je={[v[_0x3d1bae(0x33d)][_0x3d1bae(0x261)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3c5c5f,_0x48f5bc,_0x4d0328,_0x3fb5d6)=>{var _0x6ee292=_0x3d1bae;for(var _0xefab36=_0x3fb5d6>0x1?void 0x0:_0x3fb5d6?Ee(_0x48f5bc,_0x4d0328):_0x48f5bc,_0xb3e739=_0x3c5c5f[_0x6ee292(0x205)]-0x1,_0x4defd2;_0xb3e739>=0x0;_0xb3e739--)(_0x4defd2=_0x3c5c5f[_0xb3e739])&&(_0xefab36=_0x4defd2(_0xefab36)||_0xefab36);return _0xefab36;},z=(_0x1201ed,_0x1d6eb8)=>(_0x177bda,_0x262310)=>_0x1d6eb8(_0x177bda,_0x262310,_0x1201ed);exports[_0x3d1bae(0x21f)]=class extends l['Disposable']{constructor(_0x5e0ee3,_0x22eb46){var _0x4dc01a=_0x3d1bae;super(),this[_0x4dc01a(0x295)]=_0x5e0ee3,this[_0x4dc01a(0x26f)]=_0x22eb46,this[_0x4dc01a(0x2b8)](),this['_initializeMenus']();}['_initializeCommands'](){var _0x4dbc6f=_0x3d1bae;[j][_0x4dbc6f(0x2c0)](_0x28b1bd=>{var _0x43fa6e=_0x4dbc6f;this['disposeWithMe'](this[_0x43fa6e(0x295)]['registerCommand'](_0x28b1bd));});}[_0x3d1bae(0x262)](){var _0x3784ca=_0x3d1bae;this[_0x3784ca(0x26f)][_0x3784ca(0x278)](je);}},exports['MCPUIMenuController']=we([z(0x0,l['ICommandService']),z(0x1,v[_0x3d1bae(0x224)])],exports[_0x3d1bae(0x21f)]);const Oe={'mcpStatus':{'disconnected':_0x3d1bae(0x293),'connecting':'MCP\x20Connecting...','connected':_0x3d1bae(0x282),'failed':_0x3d1bae(0x1c4),'retrying':_0x3d1bae(0x1ed),'unknown':_0x3d1bae(0x1bd),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3d1bae(0x308),'networkError':_0x3d1bae(0x296),'maxRetriesExceeded':_0x3d1bae(0x2ce),'clickToConnect':_0x3d1bae(0x23e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d1bae(0x344),'description':_0x3d1bae(0x25a),'apiKey':_0x3d1bae(0x1cf),'apiKeyPlaceholder':_0x3d1bae(0x1d1),'apiKeyHint':_0x3d1bae(0x2ad),'enableAuth':_0x3d1bae(0x29e),'enableAuthHint':_0x3d1bae(0x328),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3d1bae(0x2c7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3d1bae(0x1f5),'sessionIdDescription':_0x3d1bae(0x264),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x3d1bae(0x238),'save':_0x3d1bae(0x1cc),'saving':_0x3d1bae(0x318),'note1':_0x3d1bae(0x270),'note2':_0x3d1bae(0x1d9),'configSaved':_0x3d1bae(0x2af),'configError':_0x3d1bae(0x288),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3d1bae(0x20c),'univerAiLabel':_0x3d1bae(0x1ce),'getStarted':_0x3d1bae(0x1f6)},'validation':{'apiKeyRequired':_0x3d1bae(0x1c8),'apiKeyTooShort':_0x3d1bae(0x225),'invalidConfig':_0x3d1bae(0x346),'invalidApiKey':_0x3d1bae(0x1f7)},'connectionStatus':{'disconnected':_0x3d1bae(0x23c),'connecting':'Connecting...','connected':'Connected','failed':_0x3d1bae(0x32d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3d1bae(0x2c9),'sessionOccupied':_0x3d1bae(0x27c),'networkError':_0x3d1bae(0x276),'maxRetriesExceeded':_0x3d1bae(0x2c2)}}},Ae={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x3d1bae(0x1d2),'connected':_0x3d1bae(0x32c),'failed':_0x3d1bae(0x1c0),'retrying':_0x3d1bae(0x313),'unknown':'MCP\x20状态未知','unauthorized':_0x3d1bae(0x332),'sessionOccupied':_0x3d1bae(0x269),'networkError':_0x3d1bae(0x244),'maxRetriesExceeded':_0x3d1bae(0x31b),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3d1bae(0x33a),'description':_0x3d1bae(0x324),'apiKey':_0x3d1bae(0x1dd),'apiKeyPlaceholder':_0x3d1bae(0x2b3),'apiKeyHint':_0x3d1bae(0x31a),'enableAuth':_0x3d1bae(0x2d1),'enableAuthHint':_0x3d1bae(0x2a6),'connectionInfo':_0x3d1bae(0x1fa),'mcpClientConfig':_0x3d1bae(0x1fa),'configInstructions':_0x3d1bae(0x2cd),'configStepTitle':_0x3d1bae(0x273),'configStep1':_0x3d1bae(0x337),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3d1bae(0x1f1),'sessionId':_0x3d1bae(0x2ac),'sessionIdDescription':_0x3d1bae(0x32e),'authorizationDescription':_0x3d1bae(0x347),'configParameters':'配置参数:','maxRetries':_0x3d1bae(0x1f2),'save':_0x3d1bae(0x1e2),'saving':'保存中...','note1':_0x3d1bae(0x249),'note2':_0x3d1bae(0x31f),'configSaved':'配置保存成功','configError':_0x3d1bae(0x1e0),'apiApplyInfo':{'title':_0x3d1bae(0x260),'description':_0x3d1bae(0x209),'univerAiLabel':_0x3d1bae(0x22e),'getStarted':_0x3d1bae(0x1d8)},'validation':{'apiKeyRequired':_0x3d1bae(0x289),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x3d1bae(0x2f5)},'connectionStatus':{'disconnected':_0x3d1bae(0x323),'connecting':_0x3d1bae(0x2e8),'connected':_0x3d1bae(0x2c5),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3d1bae(0x250),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3d1bae(0x20b)}}};var De=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ue=(_0x34fcc0,_0x531cd4,_0x4a63b0)=>_0x531cd4 in _0x34fcc0?De(_0x34fcc0,_0x531cd4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a63b0}):_0x34fcc0[_0x531cd4]=_0x4a63b0,Te=(_0x3302e3,_0x110689,_0x1ad583,_0x332c68)=>{var _0x29b375=_0x3d1bae;for(var _0x594b36=_0x332c68>0x1?void 0x0:_0x332c68?ke(_0x110689,_0x1ad583):_0x110689,_0x3ec98a=_0x3302e3[_0x29b375(0x205)]-0x1,_0x107f2f;_0x3ec98a>=0x0;_0x3ec98a--)(_0x107f2f=_0x3302e3[_0x3ec98a])&&(_0x594b36=_0x107f2f(_0x594b36)||_0x594b36);return _0x594b36;},M=(_0x397fcc,_0x5cbbe5)=>(_0x12d0f6,_0x2db269)=>_0x5cbbe5(_0x12d0f6,_0x2db269,_0x397fcc),$e=(_0x2848e1,_0x58b5df,_0x307009)=>Ue(_0x2848e1,_0x58b5df+'',_0x307009);exports[_0x3d1bae(0x1f4)]=class extends l[_0x3d1bae(0x1e4)]{constructor(_0x51f2c2=G,_0x279020,_0x4cc2c5,_0x273348,_0x421c93,_0x1ee564){var _0x3a1401=_0x3d1bae;super(),this[_0x3a1401(0x2b5)]=_0x51f2c2,this[_0x3a1401(0x285)]=_0x279020,this['_configService']=_0x4cc2c5,this[_0x3a1401(0x277)]=_0x273348,this[_0x3a1401(0x212)]=_0x421c93,this[_0x3a1401(0x29a)]=_0x1ee564;const {..._0xe8f813}=l[_0x3a1401(0x1fb)]({},G,this['_config']);this[_0x3a1401(0x20a)][_0x3a1401(0x271)](y,_0xe8f813);}async[_0x3d1bae(0x2a9)](){var _0x204201=_0x3d1bae;const _0x429d0f=[[exports[_0x204201(0x1f9)]],[exports[_0x204201(0x2eb)]],[exports[_0x204201(0x21f)]]];this['_injector'][_0x204201(0x29f)](A['ISocketService'])||_0x429d0f['push']([A[_0x204201(0x2d7)],{'useClass':A[_0x204201(0x281)]}]),_0x429d0f[_0x204201(0x2c0)](_0x4b0639=>this['_injector'][_0x204201(0x274)](_0x4b0639)),this[_0x204201(0x285)][_0x204201(0x2bb)](exports[_0x204201(0x1f9)]),this[_0x204201(0x285)]['get'](exports[_0x204201(0x2eb)]),this[_0x204201(0x285)]['get'](exports[_0x204201(0x21f)]);}},$e(exports[_0x3d1bae(0x1f4)],_0x3d1bae(0x1fe),_0x3d1bae(0x202)),exports[_0x3d1bae(0x1f4)]=Te([l[_0x3d1bae(0x2d3)](s[_0x3d1bae(0x297)]),M(0x1,l[_0x3d1bae(0x2bc)](l[_0x3d1bae(0x200)])),M(0x2,l['IConfigService']),M(0x3,v[_0x3d1bae(0x2de)]),M(0x4,l[_0x3d1bae(0x24d)]),M(0x5,l[_0x3d1bae(0x2bc)](l[_0x3d1bae(0x1c9)]))],exports[_0x3d1bae(0x1f4)]),exports['MCPConfigPanel']=W,exports[_0x3d1bae(0x31e)]=X,exports[_0x3d1bae(0x26e)]=j,exports[_0x3d1bae(0x1ee)]=Oe,exports[_0x3d1bae(0x2cb)]=Ae;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2fa1(_0x592249,_0x31564f){const _0x8f8bbc=_0x8f8b();return _0x2fa1=function(_0x2fa1e3,_0x3ec582){_0x2fa1e3=_0x2fa1e3-0x1f4;let _0x1b5b9d=_0x8f8bbc[_0x2fa1e3];return _0x1b5b9d;},_0x2fa1(_0x592249,_0x31564f);}const _0x7b792d=_0x2fa1;(function(_0x1ed554,_0x23dfe3){const _0x86442b=_0x2fa1,_0x3e746b=_0x1ed554();while(!![]){try{const _0x148b48=-parseInt(_0x86442b(0x222))/0x1+parseInt(_0x86442b(0x215))/0x2+-parseInt(_0x86442b(0x209))/0x3*(parseInt(_0x86442b(0x21a))/0x4)+parseInt(_0x86442b(0x210))/0x5+-parseInt(_0x86442b(0x216))/0x6+parseInt(_0x86442b(0x213))/0x7+-parseInt(_0x86442b(0x200))/0x8*(-parseInt(_0x86442b(0x202))/0x9);if(_0x148b48===_0x23dfe3)break;else _0x3e746b['push'](_0x3e746b['shift']());}catch(_0xc1de55){_0x3e746b['push'](_0x3e746b['shift']());}}}(_0x8f8b,0x392c5));function _0x8f8b(){const _0x901c3f=['Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Disconnected','MCP:\x20Unauthorized','746034FMLpeK','Save\x20Configuration','Connected','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','2108630izgalJ','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','1848532UAooba','Configuration\x20Steps:','429262eqLtGB','1714578ayAIng','MCP\x20Retrying...','Connection\x20Failed','MCP\x20Client\x20Configuration','4ZBxNsf','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Retrying...','MCP\x20Connecting...','Saving...','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','262723WJgdYM','Click\x20to\x20configure\x20MCP','Invalid\x20configuration','Session\x20ID','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','exports','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','523648LUJzWS','Univer\x20AI\x20Console','18bIIdaf'];_0x8f8b=function(){return _0x901c3f;};return _0x8f8b();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x7b792d(0x21e),'connected':_0x7b792d(0x21c),'failed':'MCP\x20Connection\x20Failed','retrying':_0x7b792d(0x217),'unknown':_0x7b792d(0x221),'unauthorized':_0x7b792d(0x208),'sessionOccupied':_0x7b792d(0x212),'networkError':_0x7b792d(0x1f8),'maxRetriesExceeded':_0x7b792d(0x1fc),'clickToConnect':_0x7b792d(0x220),'clickToConfigure':_0x7b792d(0x1f4)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x7b792d(0x204),'apiKeyPlaceholder':_0x7b792d(0x211),'apiKeyHint':_0x7b792d(0x20e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x7b792d(0x203),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x7b792d(0x219),'configInstructions':_0x7b792d(0x1fb),'configStepTitle':_0x7b792d(0x214),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x7b792d(0x1fa),'sessionId':_0x7b792d(0x1f6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x7b792d(0x21b),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x7b792d(0x20f),'save':_0x7b792d(0x20a),'saving':_0x7b792d(0x21f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x7b792d(0x1f7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x7b792d(0x20c),'description':_0x7b792d(0x206),'univerAiLabel':_0x7b792d(0x201),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x7b792d(0x1ff),'apiKeyTooShort':_0x7b792d(0x20d),'invalidConfig':_0x7b792d(0x1f5),'invalidApiKey':_0x7b792d(0x205)},'connectionStatus':{'disconnected':_0x7b792d(0x207),'connecting':'Connecting...','connected':_0x7b792d(0x20b),'failed':_0x7b792d(0x218),'retrying':_0x7b792d(0x21d)},'connectionError':{'unauthorized':_0x7b792d(0x1fe),'sessionOccupied':_0x7b792d(0x1f9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x7b792d(0x1fd)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x21c9e8=_0x3480;(function(_0x57b94b,_0x2b1e2a){const _0x717cf9=_0x3480,_0x52788f=_0x57b94b();while(!![]){try{const _0x1a14d9=-parseInt(_0x717cf9(0x17d))/0x1*(-parseInt(_0x717cf9(0x168))/0x2)+parseInt(_0x717cf9(0x161))/0x3*(-parseInt(_0x717cf9(0x163))/0x4)+-parseInt(_0x717cf9(0x177))/0x5+parseInt(_0x717cf9(0x166))/0x6+parseInt(_0x717cf9(0x15a))/0x7*(-parseInt(_0x717cf9(0x179))/0x8)+parseInt(_0x717cf9(0x153))/0x9+parseInt(_0x717cf9(0x169))/0xa*(-parseInt(_0x717cf9(0x17b))/0xb);if(_0x1a14d9===_0x2b1e2a)break;else _0x52788f['push'](_0x52788f['shift']());}catch(_0x441bc8){_0x52788f['push'](_0x52788f['shift']());}}}(_0x5115,0x3b4a5));function _0x3480(_0x24ba8f,_0x3fddf3){const _0x51151b=_0x5115();return _0x3480=function(_0x348012,_0x3ce398){_0x348012=_0x348012-0x151;let _0x1b477a=_0x51151b[_0x348012];return _0x1b477a;},_0x3480(_0x24ba8f,_0x3fddf3);}const e={'mcpStatus':{'disconnected':_0x21c9e8(0x17c),'connecting':_0x21c9e8(0x15c),'connected':_0x21c9e8(0x16c),'failed':_0x21c9e8(0x152),'retrying':_0x21c9e8(0x17e),'unknown':_0x21c9e8(0x160),'unauthorized':_0x21c9e8(0x151),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x21c9e8(0x17a),'clickToConnect':_0x21c9e8(0x154),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x21c9e8(0x16e),'description':_0x21c9e8(0x16f),'apiKey':_0x21c9e8(0x157),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x21c9e8(0x174),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x21c9e8(0x156),'configStepTitle':_0x21c9e8(0x16b),'configStep1':_0x21c9e8(0x16a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x21c9e8(0x180),'sessionId':_0x21c9e8(0x171),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x21c9e8(0x15b),'maxRetries':'Max\x20Retries','save':_0x21c9e8(0x155),'saving':_0x21c9e8(0x159),'note1':_0x21c9e8(0x162),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x21c9e8(0x172),'configError':_0x21c9e8(0x164),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x21c9e8(0x15d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x21c9e8(0x16d)},'validation':{'apiKeyRequired':_0x21c9e8(0x173),'apiKeyTooShort':_0x21c9e8(0x178),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x21c9e8(0x175)},'connectionStatus':{'disconnected':_0x21c9e8(0x158),'connecting':_0x21c9e8(0x170),'connected':_0x21c9e8(0x17f),'failed':_0x21c9e8(0x165),'retrying':_0x21c9e8(0x15e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x21c9e8(0x176),'networkError':_0x21c9e8(0x15f),'maxRetriesExceeded':_0x21c9e8(0x167)}}};function _0x5115(){const _0x5395a0=['249uEvbcB','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2148ZkOLRC','Failed\x20to\x20save\x20configuration','Connection\x20Failed','1729338RqqthL','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2cGjKfi','10USoFjW','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Steps:','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connecting...','Session\x20ID','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','471840JQhAXg','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','48568rHcVqv','MCP:\x20Max\x20Retries\x20Exceeded','3074258jCaceZ','MCP\x20Disconnected','407328wJEfjY','MCP\x20Retrying...','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','1385280QToQLg','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Disconnected','Saving...','217JXluIg','Configuration\x20Parameters:','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status'];_0x5115=function(){return _0x5395a0;};return _0x5115();}module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5d08a4=_0x2d67;(function(_0x124f01,_0x3fa8b3){const _0xdc704d=_0x2d67,_0x1697bc=_0x124f01();while(!![]){try{const _0x139bb9=-parseInt(_0xdc704d(0x135))/0x1*(-parseInt(_0xdc704d(0x140))/0x2)+parseInt(_0xdc704d(0x138))/0x3*(-parseInt(_0xdc704d(0x13f))/0x4)+parseInt(_0xdc704d(0x11c))/0x5*(-parseInt(_0xdc704d(0x12f))/0x6)+parseInt(_0xdc704d(0x129))/0x7*(parseInt(_0xdc704d(0x139))/0x8)+-parseInt(_0xdc704d(0x118))/0x9+parseInt(_0xdc704d(0x119))/0xa+parseInt(_0xdc704d(0x137))/0xb;if(_0x139bb9===_0x3fa8b3)break;else _0x1697bc['push'](_0x1697bc['shift']());}catch(_0x49bab1){_0x1697bc['push'](_0x1697bc['shift']());}}}(_0x4b36,0x2398a));function _0x2d67(_0xf0922f,_0x5958f7){const _0x4b36b6=_0x4b36();return _0x2d67=function(_0x2d672a,_0x1e42b6){_0x2d672a=_0x2d672a-0x10f;let _0x7e3f2a=_0x4b36b6[_0x2d672a];return _0x7e3f2a;},_0x2d67(_0xf0922f,_0x5958f7);}function _0x4b36(){const _0x203d48=['MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','1071747FMyOUd','1491200tjOXnm','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','10nuLITN','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Save\x20Configuration','Enable\x20Authentication','123207oubrtc','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Connecting...','Configuration\x20Parameters:','202614gGhWsC','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','3mvUsoz','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2353637YhWyGA','345lJDzkT','16qskygG','Connection\x20Failed','Disconnected','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','3796GTLRlj','28846UMEEhb','Retrying...','exports','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration'];_0x4b36=function(){return _0x203d48;};return _0x4b36();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5d08a4(0x13e),'connected':_0x5d08a4(0x11a),'failed':_0x5d08a4(0x12a),'retrying':_0x5d08a4(0x132),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5d08a4(0x125),'sessionOccupied':_0x5d08a4(0x133),'networkError':_0x5d08a4(0x143),'maxRetriesExceeded':_0x5d08a4(0x120),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5d08a4(0x117)},'mcpConfig':{'title':_0x5d08a4(0x124),'description':_0x5d08a4(0x10f),'apiKey':_0x5d08a4(0x122),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5d08a4(0x113),'enableAuth':_0x5d08a4(0x128),'enableAuthHint':_0x5d08a4(0x11b),'connectionInfo':_0x5d08a4(0x115),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5d08a4(0x13c),'configStep1':_0x5d08a4(0x123),'configStep2':_0x5d08a4(0x11d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5d08a4(0x116),'configParameters':_0x5d08a4(0x12e),'maxRetries':'Max\x20Retries','save':_0x5d08a4(0x127),'saving':_0x5d08a4(0x111),'note1':_0x5d08a4(0x12b),'note2':_0x5d08a4(0x121),'configSaved':_0x5d08a4(0x134),'configError':_0x5d08a4(0x126),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5d08a4(0x11f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5d08a4(0x11e)},'validation':{'apiKeyRequired':_0x5d08a4(0x12c),'apiKeyTooShort':_0x5d08a4(0x110),'invalidConfig':_0x5d08a4(0x114),'invalidApiKey':_0x5d08a4(0x130)},'connectionStatus':{'disconnected':_0x5d08a4(0x13b),'connecting':_0x5d08a4(0x12d),'connected':_0x5d08a4(0x112),'failed':_0x5d08a4(0x13a),'retrying':_0x5d08a4(0x141)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5d08a4(0x136),'networkError':_0x5d08a4(0x131),'maxRetriesExceeded':_0x5d08a4(0x13d)}}},n=e;module[_0x5d08a4(0x142)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4562(){const _0x210f55=['Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','exports','Failed\x20to\x20save\x20configuration','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','14290299VFEsJu','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Click\x20to\x20connect\x20MCP','854261xiZyPA','78slBDtN','API\x20Key','Connected','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1074590eqepMu','261afYKIT','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1469208IbIEZm','MCP\x20Connection\x20Failed','API\x20key\x20is\x20required','Saving...','362859OyNMfe','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections','Get\x20your\x20API\x20key\x20in\x20seconds','9046968zcIGKO','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','23064RuVXPG','Configuration\x20Parameters:'];_0x4562=function(){return _0x210f55;};return _0x4562();}function _0xbf29(_0x231fa8,_0x445e82){const _0x4562cf=_0x4562();return _0xbf29=function(_0xbf2912,_0x597a23){_0xbf2912=_0xbf2912-0x153;let _0x498624=_0x4562cf[_0xbf2912];return _0x498624;},_0xbf29(_0x231fa8,_0x445e82);}const _0x3bc5e7=_0xbf29;(function(_0x56b9ed,_0x5473d4){const _0x27ff86=_0xbf29,_0x1bb433=_0x56b9ed();while(!![]){try{const _0x300745=parseInt(_0x27ff86(0x174))/0x1+parseInt(_0x27ff86(0x15f))/0x2*(-parseInt(_0x27ff86(0x17d))/0x3)+parseInt(_0x27ff86(0x181))/0x4+parseInt(_0x27ff86(0x17c))/0x5+-parseInt(_0x27ff86(0x175))/0x6*(-parseInt(_0x27ff86(0x185))/0x7)+parseInt(_0x27ff86(0x15a))/0x8+-parseInt(_0x27ff86(0x170))/0x9;if(_0x300745===_0x5473d4)break;else _0x1bb433['push'](_0x1bb433['shift']());}catch(_0x37ad9d){_0x1bb433['push'](_0x1bb433['shift']());}}}(_0x4562,0x9eb9a));const e={'mcpStatus':{'disconnected':_0x3bc5e7(0x164),'connecting':_0x3bc5e7(0x156),'connected':_0x3bc5e7(0x16e),'failed':_0x3bc5e7(0x182),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3bc5e7(0x15c),'networkError':_0x3bc5e7(0x155),'maxRetriesExceeded':_0x3bc5e7(0x16f),'clickToConnect':_0x3bc5e7(0x173),'clickToConfigure':_0x3bc5e7(0x17a)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3bc5e7(0x186),'apiKey':_0x3bc5e7(0x176),'apiKeyPlaceholder':_0x3bc5e7(0x169),'apiKeyHint':_0x3bc5e7(0x180),'enableAuth':_0x3bc5e7(0x165),'enableAuthHint':_0x3bc5e7(0x158),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3bc5e7(0x153),'configInstructions':_0x3bc5e7(0x17b),'configStepTitle':_0x3bc5e7(0x168),'configStep1':_0x3bc5e7(0x161),'configStep2':_0x3bc5e7(0x17e),'configStep3':_0x3bc5e7(0x163),'sessionId':'Session\x20ID','sessionIdDescription':_0x3bc5e7(0x15d),'authorizationDescription':_0x3bc5e7(0x15b),'configParameters':_0x3bc5e7(0x160),'maxRetries':_0x3bc5e7(0x17f),'save':'Save\x20Configuration','saving':_0x3bc5e7(0x184),'note1':_0x3bc5e7(0x154),'note2':_0x3bc5e7(0x167),'configSaved':_0x3bc5e7(0x15e),'configError':_0x3bc5e7(0x16d),'apiApplyInfo':{'title':_0x3bc5e7(0x162),'description':_0x3bc5e7(0x188),'univerAiLabel':_0x3bc5e7(0x178),'getStarted':_0x3bc5e7(0x159)},'validation':{'apiKeyRequired':_0x3bc5e7(0x183),'apiKeyTooShort':_0x3bc5e7(0x179),'invalidConfig':_0x3bc5e7(0x16b),'invalidApiKey':_0x3bc5e7(0x157)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x3bc5e7(0x177),'failed':_0x3bc5e7(0x172),'retrying':_0x3bc5e7(0x187)},'connectionError':{'unauthorized':_0x3bc5e7(0x166),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3bc5e7(0x16a),'maxRetriesExceeded':_0x3bc5e7(0x171)}}},n=e;module[_0x3bc5e7(0x16c)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3f3e(){const _0x26fd68=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','2061cWFUNk','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5238zTOniu','Click\x20to\x20configure\x20MCP','exports','Connected','3793560SplqgY','33nSskNn','Max\x20Retries','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','1673090JCisXO','3904210sUvUEz','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','5715912PZDIou','Saving...','45624BYFGMs','Enable\x20Authentication','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Connection\x20Failed','Retrying...','What\x20is\x20API\x20Key?','6159250mFObII','MCP\x20Retrying...','1nLYACs','10661DfwctR','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x3f3e=function(){return _0x26fd68;};return _0x3f3e();}const _0x23c816=_0x29d5;(function(_0x59b3d9,_0x33eb99){const _0x512f9a=_0x29d5,_0x5717ae=_0x59b3d9();while(!![]){try{const _0x3100cd=parseInt(_0x512f9a(0xb2))/0x1*(parseInt(_0x512f9a(0xd0))/0x2)+parseInt(_0x512f9a(0xc9))/0x3+parseInt(_0x512f9a(0xa4))/0x4+-parseInt(_0x512f9a(0xb0))/0x5+-parseInt(_0x512f9a(0xc5))/0x6*(parseInt(_0x512f9a(0xb3))/0x7)+-parseInt(_0x512f9a(0xa6))/0x8*(parseInt(_0x512f9a(0xc1))/0x9)+parseInt(_0x512f9a(0xd1))/0xa*(parseInt(_0x512f9a(0xca))/0xb);if(_0x3100cd===_0x33eb99)break;else _0x5717ae['push'](_0x5717ae['shift']());}catch(_0x929719){_0x5717ae['push'](_0x5717ae['shift']());}}}(_0x3f3e,0xcb962));function _0x29d5(_0x399abb,_0x3a3995){const _0x3f3ef6=_0x3f3e();return _0x29d5=function(_0x29d50e,_0x3bd432){_0x29d50e=_0x29d50e-0x9f;let _0x508d68=_0x3f3ef6[_0x29d50e];return _0x508d68;},_0x29d5(_0x399abb,_0x3a3995);}const e={'mcpStatus':{'disconnected':_0x23c816(0xa8),'connecting':_0x23c816(0xd7),'connected':'MCP\x20Connected','failed':_0x23c816(0xb8),'retrying':_0x23c816(0xb1),'unknown':_0x23c816(0xc3),'unauthorized':_0x23c816(0xb9),'sessionOccupied':_0x23c816(0xa0),'networkError':_0x23c816(0xcc),'maxRetriesExceeded':_0x23c816(0xc0),'clickToConnect':_0x23c816(0xa3),'clickToConfigure':_0x23c816(0xc6)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x23c816(0xab),'apiKey':_0x23c816(0xac),'apiKeyPlaceholder':_0x23c816(0xd5),'apiKeyHint':_0x23c816(0xb5),'enableAuth':_0x23c816(0xa7),'enableAuthHint':_0x23c816(0xd6),'connectionInfo':_0x23c816(0xa1),'mcpClientConfig':_0x23c816(0xa1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x23c816(0xb7),'configStep1':_0x23c816(0xd2),'configStep2':_0x23c816(0xcd),'configStep3':_0x23c816(0xbc),'sessionId':_0x23c816(0xcf),'sessionIdDescription':_0x23c816(0xbe),'authorizationDescription':_0x23c816(0xc2),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x23c816(0xcb),'save':_0x23c816(0xb4),'saving':_0x23c816(0xa5),'note1':_0x23c816(0xa9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x23c816(0xbf),'configError':_0x23c816(0xa2),'apiApplyInfo':{'title':_0x23c816(0xaf),'description':_0x23c816(0xd3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23c816(0xd4)},'validation':{'apiKeyRequired':_0x23c816(0x9f),'apiKeyTooShort':_0x23c816(0xce),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x23c816(0xbb)},'connectionStatus':{'disconnected':_0x23c816(0xba),'connecting':'Connecting...','connected':_0x23c816(0xc8),'failed':_0x23c816(0xad),'retrying':_0x23c816(0xae)},'connectionError':{'unauthorized':_0x23c816(0xc4),'sessionOccupied':_0x23c816(0xaa),'networkError':_0x23c816(0xb6),'maxRetriesExceeded':_0x23c816(0xbd)}}},n=e;module[_0x23c816(0xc7)]=n;
|