@univerjs-pro/mcp-ui 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x375d30=_0x5121;(function(_0x47a43e,_0x4e532f){const _0x1d95c5=_0x5121,_0x2f00af=_0x47a43e();while(!![]){try{const _0x21228c=-parseInt(_0x1d95c5(0x1e2))/0x1+parseInt(_0x1d95c5(0x176))/0x2*(parseInt(_0x1d95c5(0xf4))/0x3)+-parseInt(_0x1d95c5(0xad))/0x4+-parseInt(_0x1d95c5(0xa3))/0x5+-parseInt(_0x1d95c5(0x11d))/0x6*(-parseInt(_0x1d95c5(0x1a9))/0x7)+-parseInt(_0x1d95c5(0x1c4))/0x8+parseInt(_0x1d95c5(0x143))/0x9;if(_0x21228c===_0x4e532f)break;else _0x2f00af['push'](_0x2f00af['shift']());}catch(_0x398ca7){_0x2f00af['push'](_0x2f00af['shift']());}}}(_0x4069,0x49eaa));var ae=Object[_0x375d30(0x1c5)],le=(_0xe74ff5,_0x2cf789,_0x5085c6)=>_0x2cf789 in _0xe74ff5?ae(_0xe74ff5,_0x2cf789,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5085c6}):_0xe74ff5[_0x2cf789]=_0x5085c6,I=(_0x886578,_0x423e83,_0x2bf920)=>le(_0x886578,typeof _0x423e83!=_0x375d30(0x15f)?_0x423e83+'':_0x423e83,_0x2bf920);Object[_0x375d30(0x1c5)](exports,Symbol[_0x375d30(0x1d9)],{'value':_0x375d30(0x13b)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x55c355,..._0x283df0}){const _0x134bf2=_0x375d30,{icon:_0x3fb1f0,id:_0x4d23cf,className:_0x535772,extend:_0x503f7b,..._0x3268f9}=_0x283df0,_0x529d64=('univerjs-icon\x20univerjs-icon-'+_0x4d23cf+'\x20'+(_0x535772||''))['trim'](),_0x3dba2c=d[_0x134bf2(0xc0)]('_'+de());return G(_0x3fb1f0,''+_0x4d23cf,{'defIds':_0x3fb1f0[_0x134bf2(0xec)],'idSuffix':_0x3dba2c[_0x134bf2(0x177)]},{'ref':_0x55c355,'className':_0x529d64,..._0x3268f9},_0x503f7b);}function G(_0x28c730,_0x52ff1d,_0x2fc0b1,_0xcc890,_0x5d311a){const _0x54f412=_0x375d30;return d[_0x54f412(0x134)](_0x28c730['tag'],{'key':_0x52ff1d,...ue(_0x28c730,_0x2fc0b1,_0x5d311a),..._0xcc890},(ve(_0x28c730,_0x2fc0b1)['children']||[])[_0x54f412(0x180)]((_0x3f4d6b,_0xa26c73)=>G(_0x3f4d6b,_0x52ff1d+'-'+_0x28c730[_0x54f412(0x109)]+'-'+_0xa26c73,_0x2fc0b1,void 0x0,_0x5d311a)));}function ue(_0x4068ce,_0x44503b,_0x43ee43){const _0x60fb06=_0x375d30,_0x3bf540={..._0x4068ce[_0x60fb06(0x1fc)]};_0x43ee43!=null&&_0x43ee43[_0x60fb06(0xa4)]&&_0x3bf540[_0x60fb06(0x13a)]===_0x60fb06(0xa4)&&(_0x3bf540[_0x60fb06(0x13a)]=_0x43ee43[_0x60fb06(0xa4)]),_0x4068ce['tag']==='mask'&&_0x3bf540['id']&&(_0x3bf540['id']=_0x3bf540['id']+_0x44503b['idSuffix']),Object[_0x60fb06(0x18f)](_0x3bf540)[_0x60fb06(0x122)](([_0x3a42e0,_0x2184ee])=>{const _0x7febfc=_0x60fb06;_0x3a42e0===_0x7febfc(0x19d)&&typeof _0x2184ee==_0x7febfc(0xdf)&&(_0x3bf540[_0x3a42e0]=_0x2184ee[_0x7febfc(0x20f)](/url\(#(.*)\)/,'url(#$1'+_0x44503b[_0x7febfc(0x17e)]+')'));});const {defIds:_0x597cb6}=_0x44503b;return!_0x597cb6||_0x597cb6[_0x60fb06(0x196)]===0x0||(_0x4068ce[_0x60fb06(0x109)]===_0x60fb06(0x1c8)&&_0x3bf540[_0x60fb06(0x11c)]&&(_0x3bf540[_0x60fb06(0x11c)]=_0x3bf540['xlink:href']+_0x44503b[_0x60fb06(0x17e)]),Object[_0x60fb06(0x18f)](_0x3bf540)[_0x60fb06(0x122)](([_0x2be10d,_0x3c91eb])=>{const _0xaa322b=_0x60fb06;typeof _0x3c91eb==_0xaa322b(0xdf)&&(_0x3bf540[_0x2be10d]=_0x3c91eb[_0xaa322b(0x20f)](/url\(#(.*)\)/,_0xaa322b(0x16b)+_0x44503b['idSuffix']+')'));})),_0x3bf540;}function ve(_0x4414e9,_0x4d088a){const _0x3ee242=_0x375d30;var _0x41419e;const {defIds:_0x3c124e}=_0x4d088a;return!_0x3c124e||_0x3c124e[_0x3ee242(0x196)]===0x0?_0x4414e9:_0x4414e9[_0x3ee242(0x109)]===_0x3ee242(0x112)&&((_0x41419e=_0x4414e9[_0x3ee242(0x1f5)])!=null&&_0x41419e[_0x3ee242(0x196)])?{..._0x4414e9,'children':_0x4414e9[_0x3ee242(0x1f5)][_0x3ee242(0x180)](_0x1cdaa0=>typeof _0x1cdaa0[_0x3ee242(0x1fc)]['id']==_0x3ee242(0xdf)&&_0x3c124e&&_0x3c124e['includes'](_0x1cdaa0['attrs']['id'])?{..._0x1cdaa0,'attrs':{..._0x1cdaa0['attrs'],'id':_0x1cdaa0['attrs']['id']+_0x4d088a[_0x3ee242(0x17e)]}}:_0x1cdaa0)}:_0x4414e9;}function de(){const _0x1f967=_0x375d30;return Math['random']()[_0x1f967(0x100)](0x24)[_0x1f967(0xb4)](0x2,0x8);}_['displayName']='UniverIcon';function _0x4069(){const _0x2ed561=['univer-text-sm\x20univer-font-medium','univer-mr-2\x20univer-flex\x20univer-text-xl','MAX_RETRIES_EXCEEDED','CloseIcon','最大重试次数','将配置添加到您的\x20MCP\x20客户端设置文件中','_componentManager','将以下配置添加到您的\x20MCP\x20客户端设置中:','path','点击连接\x20MCP','BuiltInUIPart','text','DependentOn','round','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','connectInjector','mcpConfig.note2','带有\x20Bearer\x20前缀的\x20API\x20密钥。','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','IUIPartsService','mcpConfig.connectionStatus.failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','809088eJRrzK','defineProperty','_messageService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','use','MCP\x20Client\x20Configuration','重连中...','MCP\x20Connecting...','OnLineIcon','__setCustomHeaders','getItem','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.saving','label','_injector','_configService','MCP_PLUGIN_CONFIG_KEY','CONNECTED','getOwnPropertyDescriptor','CommandType','_localStorageService','toStringTag','ICommandService','网络连接错误,请检查您的网络连接','close','zhCN','配置步骤:','RibbonStartGroup','配置更改将立即生效','registerCommand','532005LKQOkQ','Failed\x20to\x20save\x20configuration','univer-size-4','CheckMarkIcon','mcpConfig.configStep3','_initStatusComponent','showDeveloperTools','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.connectionStatus.connecting','MenuIcon','_apiKey$','univer-space-y-3','error','forwardRef','Configuration\x20Notes:','Univer\x20AI\x20Console','Configuration\x20saved\x20successfully','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children','mcpConfig.configError','isValid','API\x20密钥','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','jsxs','attrs','_commandService','univer-shrink-0\x20univer-text-blue-500','MCPConnectionStatus','univer.ai','Invalid\x20configuration','_loading$','clsx','Error','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','push','Save\x20Configuration','Button','mcpConfig.title','jsx','连接失败','MCP\x20已断开','Disconnected','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','replace','mcpStatus.unauthorized','UniverMCPUIPlugin','univer-flex-1','mcpConfig.authorizationDescription','trim','univer-text-gray-500','MCP\x20Configuration','ILogService','useDependency','http://www.w3.org/2000/svg','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-space-y-4','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Inject','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','_mcpCoreConfig$','MCP:\x20网络错误','Retrying...','univer-flex\x20univer-items-center\x20univer-gap-3','connectionStatus$','mcpServerUrl','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','2991885CfZXJE','colorChannel1','MessageType','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','div','MCP\x20配置','univer-space-y-2','currentColor','next','enUS','223172fIdikj','Saving...','_config$','showStatus','mcpStatus.unknown','MCPConnectionUIController','配置参数:','substring','univer-bg-blue-500','ISocketService','useState','API\x20key\x20is\x20required','FAILED','displayName','mcpConfig.connectionStatus.retrying','IMenuManagerService','_config','_menuManagerService','Max\x20Retries','useRef','_handleConfigure','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20超出最大重试次数','univer-min-w-0\x20univer-flex-1','Tooltip','noopener\x20noreferrer','NONE','none','点击配置\x20MCP','IConfigService','启用身份验证','0\x200\x2017\x2016','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','disposeWithMe','NETWORK_ERROR','Enable\x20Authentication','MCPConfigPanel','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.validation.apiKeyTooShort','API\x20密钥无效,请检查密钥是否正确','BehaviorSubject','warn','univer-space-y-5','请输入您的\x20API\x20密钥','mcpConfig.connectionError.unauthorized','mcpConfig.apiApplyInfo.title','DISCONNECTED','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','_handleConfigSave','string','mcpConfig.apiKey','off','SESSION_ID_OCCUPIED','mergeMenu','<SESSION_ID>','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','MCP\x20Unknown\x20Status','apiKey','span','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20控制台','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','defIds','mcpConfig.apiKeyPlaceholder','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_initAutoConnect','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_logService','univer-size-2\x20univer-rounded-full','Click\x20to\x20configure\x20MCP','48687ksODvo','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','univer-text-sm\x20univer-text-gray-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1em','univer-flex\x20univer-items-start\x20univer-gap-2','已连接','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-xs\x20univer-text-gray-600','value','_loadStoredApiKey','mcp.apiKey','toString','M0\x200H16V16H0z','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.sessionIdDescription','assign','url(#off-line-icon_clip0_910_343)','保存中...','Plugin','会话ID','tag','univer-flex\x20univer-gap-3','registerComponent','mcpStatus.connected','mcpConfig.connectionError.sessionOccupied','univer-text-gray-400','register','mcp-ui.config','on-line-icon_clip0_910_349','defs','mcpConfig.note1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-red-500','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20状态未知','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','\x20-\x20','MCPUIMenuController','show','xlink:href','177798MMaxVJ','<API_KEY>','white','mcpConfig.connectionStatus.connected','MCP:\x20Unauthorized','forEach','mcpConfig.validation.invalidApiKey','Connecting...','mcpStatus.retrying','mcpConfig.apiApplyInfo.description','mcpConfig.configStep1','MCPStatusDisplay','mcpConfig.validation.invalidConfig','几秒钟内获取您的\x20API\x20密钥','MCPConnectionError','univer-font-medium','connectionError$','_validateConfig','_connectionController','Copy\x20the\x20JSON\x20configuration\x20below','MCP_UI_PLUGIN','MenuItemType','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','createElement','mcpConfig.connectionError.maxRetriesExceeded','univer.plus','_localeService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.apiApplyInfo.univerAiLabel','fill','Module','mcpConfig.configParameters','mcpStatus.disconnected','Disposable','0\x200\x2016\x2016','IDialogService','includes','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','13459716xjYkQz','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','COMMAND','MCP:\x20Max\x20Retries\x20Exceeded','RETRYING','useCallback','MCP:\x20会话\x20ID\x20已被占用','Configuration\x20Steps:','mcpConfig.description','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','translate(.97)','LocaleService','univer-text-xs\x20univer-text-gray-500','MCPConnectionController','subscribeConfigValue$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','复制以下\x20JSON\x20配置','mcpConfig.configStepTitle','MCP\x20Disconnected','https://console.univer.plus','超出最大重试次数,请稍后再试','getConfig','univer-text-white','UNAUTHORIZED','mcpStatus.clickToConnect','Authorization:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','连接中...','symbol','配置保存成功','MCP\x20重连中...','重启您的\x20MCP\x20客户端以使配置生效','Bearer\x20','MCP\x20Connection\x20Failed','_blank','配置无效','errorMessage','_registerComponent','univer-bg-red-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','url(#$1','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-shrink-0\x20univer-text-red-500','MCPConfigUIController','mcp-config-dialog','MCP\x20客户端配置','stringify','_initializeCommands','off-line-icon_clip0_910_343','MCP\x20连接中...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','8KOsldV','current','getCurrentConfig','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','您的\x20API\x20密钥安全存储在本地存储中','showConfigPanel','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','什么是\x20API\x20密钥?','idSuffix','mcpStatus.failed','map','HEADER_MENU','MCP:\x20未授权','API\x20Key','univer-text-blue-600','_dialogService','保存配置','subscribe','get','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_createConfigPanelComponent','_initConfigSync','MCP\x20Connected','mcpConfig.apiApplyInfo.getStarted','\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','entries','会话\x20ID\x20已被占用,请稍后再试','svg','CONNECTING','BUTTON','MCP\x20连接失败','_uiPartsService','length','_initializeMenus','useObservable','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','clipPath','Injector','mask','mcpConfig.connectionStatus.disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','close-icon','_mcpConnectionController','evenodd','univer-text-green-500','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-items-center\x20univer-gap-2','配置保存失败','button','mcpStatus.clickToConfigure','7LNgxSV','ComponentManager','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?'];_0x4069=function(){return _0x2ed561;};return _0x4069();}const Ce={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x375d30(0x13f),'width':_0x375d30(0xf8),'height':'1em'},'children':[{'tag':_0x375d30(0x1b5),'attrs':{'fill':_0x375d30(0xaa),'d':_0x375d30(0x1c0),'fillRule':_0x375d30(0x1a2),'clipRule':_0x375d30(0x1a2)}}]},H=d['forwardRef'](function(_0x58145a,_0x4581b6){const _0x19a3f7=_0x375d30;return d[_0x19a3f7(0x134)](_,Object['assign']({},_0x58145a,{'id':'check-mark-icon','ref':_0x4581b6,'icon':Ce}));});H[_0x375d30(0xba)]=_0x375d30(0x1e5);const ge={'tag':_0x375d30(0x191),'attrs':{'xmlns':_0x375d30(0x96),'fill':_0x375d30(0xc9),'viewBox':'0\x200\x2016\x2016','width':_0x375d30(0xf8),'height':_0x375d30(0xf8)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x375d30(0x1bb)}}]},B=d[_0x375d30(0x1f0)](function(_0x16e1af,_0x14e740){const _0x2120b4=_0x375d30;return d['createElement'](_,Object[_0x2120b4(0x104)]({},_0x16e1af,{'id':_0x2120b4(0x1a0),'ref':_0x14e740,'icon':ge}));});B[_0x375d30(0xba)]=_0x375d30(0x1b0);const fe={'tag':_0x375d30(0x191),'attrs':{'xmlns':_0x375d30(0x96),'fill':_0x375d30(0xc9),'viewBox':_0x375d30(0x13f),'width':_0x375d30(0xf8),'height':_0x375d30(0xf8)},'children':[{'tag':_0x375d30(0x1b5),'attrs':{'fill':_0x375d30(0xaa),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':'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'}},{'tag':_0x375d30(0x1b5),'attrs':{'fill':'currentColor','d':_0x375d30(0x9b),'fillRule':_0x375d30(0x1a2),'clipRule':_0x375d30(0x1a2)}}]},F=d['forwardRef'](function(_0x356d1b,_0x58eafb){const _0x4b906a=_0x375d30;return d[_0x4b906a(0x134)](_,Object[_0x4b906a(0x104)]({},_0x356d1b,{'id':'help-icon','ref':_0x58eafb,'icon':fe}));});F[_0x375d30(0xba)]='HelpIcon';const pe={'tag':'svg','attrs':{'xmlns':_0x375d30(0x96),'fill':_0x375d30(0xc9),'viewBox':_0x375d30(0x13f),'width':_0x375d30(0xf8),'height':_0x375d30(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':_0x375d30(0x105)},'children':[{'tag':_0x375d30(0x1b5),'attrs':{'stroke':_0x375d30(0xaa),'d':_0x375d30(0xa6),'strokeLinecap':'round','strokeLinejoin':_0x375d30(0x1ba),'strokeWidth':1.2}}]},{'tag':_0x375d30(0x112),'attrs':{},'children':[{'tag':_0x375d30(0x19b),'attrs':{'id':_0x375d30(0x173)},'children':[{'tag':_0x375d30(0x1b5),'attrs':{'fill':_0x375d30(0x11f),'d':_0x375d30(0x101)}}]}]}],'defIds':[_0x375d30(0x173)]},Y=d[_0x375d30(0x1f0)](function(_0x30f469,_0xff614){const _0x1e775c=_0x375d30;return d[_0x1e775c(0x134)](_,Object[_0x1e775c(0x104)]({},_0x30f469,{'id':'off-line-icon','ref':_0xff614,'icon':pe}));});function _0x5121(_0x5b402e,_0x1d04c9){_0x5b402e=_0x5b402e-0x93;const _0x4069ac=_0x4069();let _0x51210a=_0x4069ac[_0x5b402e];return _0x51210a;}Y['displayName']='OffLineIcon';const he={'tag':_0x375d30(0x191),'attrs':{'xmlns':_0x375d30(0x96),'fill':_0x375d30(0xc9),'viewBox':_0x375d30(0xcd),'width':_0x375d30(0xf8),'height':_0x375d30(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x375d30(0x1b5),'attrs':{'stroke':_0x375d30(0xaa),'d':_0x375d30(0xf5),'strokeLinecap':_0x375d30(0x1ba),'strokeLinejoin':_0x375d30(0x1ba),'strokeWidth':1.2}}]},{'tag':_0x375d30(0x112),'attrs':{},'children':[{'tag':_0x375d30(0x19b),'attrs':{'id':_0x375d30(0x111)},'children':[{'tag':_0x375d30(0x1b5),'attrs':{'fill':_0x375d30(0x11f),'d':'M0\x200H16V16H0z','transform':_0x375d30(0x14d)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x375d30(0x1f0)](function(_0x1b72b8,_0x2222c6){const _0x405166=_0x375d30;return d['createElement'](_,Object[_0x405166(0x104)]({},_0x1b72b8,{'id':'on-line-icon','ref':_0x2222c6,'icon':he}));});q[_0x375d30(0xba)]=_0x375d30(0x1cc);function V(_0x5afa35){const _0xacc2b0=_0x375d30;var _0x234e4b,_0x1d6786;const {mcpCoreConfig:_0x135738,onSave:_0x23a28e,loading:_0x479ca6=!0x1,config:_0x6f1294,connectionStatus$:_0x9ca58,connectionError$:_0x4f9da1,currentApiKey$:_0x1df99d,currentSessionId$:_0x5daa01}=_0x5afa35,_0x22f77d=v[_0xacc2b0(0x95)](u[_0xacc2b0(0x14e)]),_0x511166=v[_0xacc2b0(0x198)](_0x9ca58,s['MCPConnectionStatus'][_0xacc2b0(0xdc)]),_0x515678=v[_0xacc2b0(0x198)](_0x4f9da1,s['MCPConnectionError'][_0xacc2b0(0xc8)]),_0x34bcee=v['useObservable'](_0x5daa01,''),_0x314c89=v['useObservable'](_0x1df99d,''),[_0xea77a9,_0x419eb0]=d[_0xacc2b0(0xb7)](_0x314c89||''),_0x230ea2=!0x0,_0x5ef51c=_0x6f1294[_0xacc2b0(0x1e8)]&&_0x135738[_0xacc2b0(0xa1)]&&(_0x135738[_0xacc2b0(0xa1)][_0xacc2b0(0x141)](_0xacc2b0(0x136))||_0x135738[_0xacc2b0(0xa1)][_0xacc2b0(0x141)](_0xacc2b0(0x200))),_0xa46057=(_0x234e4b=_0x135738[_0xacc2b0(0xa1)])==null?void 0x0:_0x234e4b['includes'](_0xacc2b0(0x136)),_0x439a95=(_0x1d6786=_0x135738[_0xacc2b0(0xa1)])==null?void 0x0:_0x1d6786[_0xacc2b0(0x141)]('univer.ai'),_0x21adf9=_0xa46057?_0xacc2b0(0x156):'https://console.univer.ai',_0x5e2d14=_0x6f1294['showDeveloperTools']&&(_0xa46057||_0x439a95),[_0x135c9,_0x5f0427]=d[_0xacc2b0(0xb7)](!_0xea77a9[_0xacc2b0(0x214)]()),_0x1e16d4=(_0x40691f,_0x57280e)=>{const _0x271294=_0xacc2b0;if(_0x57280e===s['MCPConnectionError']['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x40691f){case s[_0x271294(0x1ff)][_0x271294(0x1d5)]:return _0x271294(0x189);case s['MCPConnectionStatus'][_0x271294(0x192)]:case s[_0x271294(0x1ff)]['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x271294(0x1ff)][_0x271294(0xb9)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x271294(0x152);}},_0x107400=(_0x217741,_0x585ab0)=>{const _0x560400=_0xacc2b0;if(_0x585ab0===s[_0x560400(0x12b)][_0x560400(0x15a)])return _0x560400(0x169);switch(_0x217741){case s[_0x560400(0x1ff)][_0x560400(0x1d5)]:return'univer-bg-green-500';case s[_0x560400(0x1ff)][_0x560400(0x192)]:case s[_0x560400(0x1ff)][_0x560400(0x147)]:return _0x560400(0xb5);case s[_0x560400(0x1ff)]['FAILED']:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x1db7ca=_0x46d64a=>{const _0xa84a59=_0xacc2b0;switch(_0x46d64a){case s[_0xa84a59(0x1ff)]['CONNECTED']:return _0x22f77d['t'](_0xa84a59(0x120));case s['MCPConnectionStatus'][_0xa84a59(0x192)]:return _0x22f77d['t'](_0xa84a59(0x1eb));case s[_0xa84a59(0x1ff)][_0xa84a59(0xb9)]:return _0x22f77d['t'](_0xa84a59(0x1c2));case s[_0xa84a59(0x1ff)][_0xa84a59(0x147)]:return _0x22f77d['t'](_0xa84a59(0xbb));default:return _0x22f77d['t'](_0xa84a59(0x19e));}},_0x3bb6d2=_0x5cff80=>{const _0x3fa306=_0xacc2b0;switch(_0x5cff80){case s['MCPConnectionError'][_0x3fa306(0x15a)]:return _0x22f77d['t'](_0x3fa306(0xda));case s['MCPConnectionError'][_0x3fa306(0xe2)]:return _0x22f77d['t'](_0x3fa306(0x10d));case s['MCPConnectionError'][_0x3fa306(0xd0)]:return _0x22f77d['t']('mcpConfig.connectionError.networkError');case s[_0x3fa306(0x12b)][_0x3fa306(0x1af)]:return _0x22f77d['t'](_0x3fa306(0x135));default:return'';}},_0xf441b6=d['useCallback'](()=>{const _0x505bbf=_0xacc2b0,_0x5ee4ff={..._0x135738,'apiKey':_0xea77a9[_0x505bbf(0x214)](),'enableAuth':_0x230ea2};_0x23a28e(_0x5ee4ff);},[_0x135738,_0xea77a9,_0x230ea2,_0x23a28e]),_0xc0a2a0=_0xea77a9[_0xacc2b0(0x214)]()[_0xacc2b0(0x196)]>0x0;return i[_0xacc2b0(0x1fb)]('div',{'className':_0xacc2b0(0x205),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x114),'children':i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x9f),'children':[i[_0xacc2b0(0x20a)]('div',{'className':_0xacc2b0(0x1a4),'children':i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x159),'children':'⚙'})}),i['jsx']('div',{'children':i[_0xacc2b0(0x20a)]('p',{'className':_0xacc2b0(0xf6),'children':_0x22f77d['t'](_0xacc2b0(0x14b))})})]})}),i[_0xacc2b0(0x1fb)]('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':f[_0xacc2b0(0x203)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x1e16d4(_0x511166,_0x515678)),'children':i[_0xacc2b0(0x1fb)]('div',{'className':_0xacc2b0(0x1a5),'children':[i[_0xacc2b0(0x20a)]('div',{'className':f[_0xacc2b0(0x203)](_0xacc2b0(0xf2),_0x107400(_0x511166,_0x515678))}),i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x1ad),'children':_0x1db7ca(_0x511166)})]})}),_0x515678!==s[_0xacc2b0(0x12b)][_0xacc2b0(0xc8)]&&(_0x511166===s[_0xacc2b0(0x1ff)][_0xacc2b0(0xb9)]||_0x515678===s[_0xacc2b0(0x12b)][_0xacc2b0(0x15a)])&&i[_0xacc2b0(0x20a)]('div',{'className':_0xacc2b0(0x102),'children':i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xf9),'children':[i['jsx'](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x16d),'children':'⚠️'}),i[_0xacc2b0(0x20a)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x3bb6d2(_0x515678)})]})})]}),i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xf0),'children':i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xd8),'children':[i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xa9),'children':[i[_0xacc2b0(0x1fb)](_0xacc2b0(0x1d1),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'children':'🔑'}),'\x20',_0x22f77d['t'](_0xacc2b0(0xe0)),i['jsx'](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x115),'children':'*'}),_0x5ef51c&&i[_0xacc2b0(0x20a)]('a',{'className':_0xacc2b0(0xc2),'title':_0x22f77d['t'](_0xacc2b0(0xdb)),'role':_0xacc2b0(0x1a7),'onClick':()=>_0x5f0427(!0x0),'children':i[_0xacc2b0(0x20a)](F,{})})]}),i[_0xacc2b0(0x20a)](f['Input'],{'type':_0xacc2b0(0x1b8),'placeholder':_0x22f77d['t'](_0xacc2b0(0xed)),'value':_0xea77a9,'disabled':_0x479ca6,'autoComplete':_0xacc2b0(0xe1),'onChange':_0x419eb0}),i['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x22f77d['t']('mcpConfig.apiKeyHint')})]}),_0x5ef51c&&_0x135c9&&i['jsxs'](_0xacc2b0(0xa7),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i[_0xacc2b0(0x20a)]('a',{'className':_0xacc2b0(0xee),'role':'button','onClick':()=>_0x5f0427(!0x1),'children':i[_0xacc2b0(0x20a)](B,{'className':_0xacc2b0(0x1e4)})}),i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x142),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x184),'children':'🚀'})}),i['jsxs'](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x212),'children':[i[_0xacc2b0(0x20a)]('h4',{'className':_0xacc2b0(0x179),'children':_0x22f77d['t'](_0xacc2b0(0xdb))}),i['jsx']('p',{'className':_0xacc2b0(0x199),'children':_0x22f77d['t'](_0xacc2b0(0x126))}),i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x16a),'children':_0x5e2d14&&i[_0xacc2b0(0x1fb)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x21adf9,'target':_0xacc2b0(0x165),'rel':_0xacc2b0(0xc7),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'children':'🤖'}),_0x22f77d['t'](_0xacc2b0(0x139)),i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x10e),'children':'↗'})]})}),i['jsxs']('div',{'className':_0xacc2b0(0x17c),'children':['✨','\x20',_0x22f77d['t'](_0xacc2b0(0x18d))]})]})]})]}),_0x6f1294[_0xacc2b0(0x1e8)]&&i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x20e),'children':[i[_0xacc2b0(0x1fb)]('h4',{'className':_0xacc2b0(0xce),'children':[i['jsx'](_0xacc2b0(0xe8),{'children':'🔗'}),'\x20',_0x22f77d['t']('mcpConfig.connectionInfo')]}),i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x98),'children':[i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':'univer-space-y-3','children':[i[_0xacc2b0(0x20a)]('p',{'className':_0xacc2b0(0xfc),'children':_0x22f77d['t']('mcpConfig.configInstructions')}),i[_0xacc2b0(0x1fb)]('div',{'className':_0xacc2b0(0xa9),'children':[i['jsx']('div',{'className':_0xacc2b0(0x1e9),'children':_0x22f77d['t'](_0xacc2b0(0x154))}),i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xe5),'children':[i[_0xacc2b0(0x1fb)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x144),'children':'1'}),_0x22f77d['t'](_0xacc2b0(0x127))]}),i['jsxs'](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x1a5),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x144),'children':'2'}),_0x22f77d['t']('mcpConfig.configStep2')]}),i[_0xacc2b0(0x1fb)]('div',{'className':_0xacc2b0(0x1a5),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x144),'children':'3'}),_0x22f77d['t'](_0xacc2b0(0x1e6))]})]})]})]}),i['jsxs'](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xa9),'children':[i[_0xacc2b0(0x20a)]('div',{'className':_0xacc2b0(0x1e9),'children':_0xacc2b0(0x93)}),i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x16c),'children':i[_0xacc2b0(0x20a)]('pre',{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0xacc2b0(0x171)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x34bcee||_0xacc2b0(0xe4)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0xea77a9||_0xacc2b0(0x11e))}}}},null,0x2)})})]}),i[_0xacc2b0(0x1fb)]('div',{'className':_0xacc2b0(0x1ee),'children':[i[_0xacc2b0(0x20a)]('div',{'className':_0xacc2b0(0x1e9),'children':_0x22f77d['t'](_0xacc2b0(0x13c))}),i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xa9),'children':[i[_0xacc2b0(0x1fb)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xfb)}),i[_0xacc2b0(0x1fb)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i['jsx'](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x1bc),'children':'univer_session_id:'}),i[_0xacc2b0(0x20a)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x22f77d['t'](_0xacc2b0(0x103))})]})]}),i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x1ea),'children':[i['jsx'](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xfb)}),i['jsxs'](_0xacc2b0(0xa7),{'className':_0xacc2b0(0xc5),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x1bc),'children':_0xacc2b0(0x15c)}),i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x14f),'children':_0x22f77d['t'](_0xacc2b0(0x213))})]})]})]})]})]})]}),i['jsx'](f[_0xacc2b0(0x208)],{'onClick':_0xf441b6,'disabled':!_0xc0a2a0||_0x479ca6,'className':_0xacc2b0(0x97),'children':_0x479ca6?i[_0xacc2b0(0x1fb)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x1a5),'children':[i[_0xacc2b0(0x20a)]('span',{'children':'⟲'}),_0x22f77d['t'](_0xacc2b0(0x1d0))]}):i['jsxs'](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x1a5),'children':[i[_0xacc2b0(0x20a)](H,{}),_0x22f77d['t']('mcpConfig.save')]})}),i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x1f4),'children':i['jsxs'](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x10a),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xe8),{'className':_0xacc2b0(0x1fe),'children':'💡'}),i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x99),'children':[i[_0xacc2b0(0x20a)](_0xacc2b0(0xa7),{'className':_0xacc2b0(0x12c),'children':_0xacc2b0(0x1f1)}),i[_0xacc2b0(0x1fb)]('div',{'children':['•',_0x22f77d['t'](_0xacc2b0(0x113))]}),i[_0xacc2b0(0x1fb)](_0xacc2b0(0xa7),{'children':['•',_0x22f77d['t'](_0xacc2b0(0x1be))]})]})]})})]})})]});}const P=_0x375d30(0x110),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x375d30(0x1d6)],xe=(_0x59dca9,_0x10521c,_0x33ed65,_0x3b5909)=>{const _0x342c52=_0x375d30;for(var _0x29a141=_0x3b5909>0x1?void 0x0:_0x3b5909?me(_0x10521c,_0x33ed65):_0x10521c,_0x4daca6=_0x59dca9[_0x342c52(0x196)]-0x1,_0x52b3b0;_0x4daca6>=0x0;_0x4daca6--)(_0x52b3b0=_0x59dca9[_0x4daca6])&&(_0x29a141=_0x52b3b0(_0x29a141)||_0x29a141);return _0x29a141;},g=(_0xfcba54,_0x2c11f6)=>(_0x45f165,_0xb536cd)=>_0x2c11f6(_0x45f165,_0xb536cd,_0xfcba54);const O=_0x375d30(0xff),D=_0x375d30(0x16f);exports[_0x375d30(0x16e)]=class extends u['Disposable']{constructor(_0x1bf6b6,_0x290bc0,_0x21436c,_0x5e6c18,_0x204b77,_0x471d3d,_0x43f187,_0x147dee,_0x23b518,_0x3f7b3c){const _0x1dce33=_0x375d30;super(),I(this,_0x1dce33(0x202),new M[(_0x1dce33(0xd6))](!0x1)),I(this,_0x1dce33(0x9c),new M['BehaviorSubject']({})),I(this,_0x1dce33(0xaf),new M[(_0x1dce33(0xd6))]({})),I(this,_0x1dce33(0x1ed),new M[(_0x1dce33(0xd6))]('')),I(this,'_handleConfigSave',async _0x5bda60=>{const _0x5bfda6=_0x1dce33;var _0x56c1da,_0x13f85f;this['_loading$'][_0x5bfda6(0xab)](!0x0);try{const _0x3ac97f=await this[_0x5bfda6(0x12e)](_0x5bda60);if(!_0x3ac97f[_0x5bfda6(0x1f7)]){this[_0x5bfda6(0x1c6)][_0x5bfda6(0x11b)]({'type':f[_0x5bfda6(0xa5)][_0x5bfda6(0x204)],'content':_0x3ac97f[_0x5bfda6(0x167)]||this[_0x5bfda6(0x137)]['t'](_0x5bfda6(0x129))});return;}_0x5bda60['apiKey']?await this['_localStorageService']['setItem'](O,_0x5bda60[_0x5bfda6(0xe7)][_0x5bfda6(0x214)]()):await this[_0x5bfda6(0x1d8)]['removeItem'](O),this[_0x5bfda6(0x1ed)][_0x5bfda6(0xab)](((_0x56c1da=_0x5bda60[_0x5bfda6(0xe7)])==null?void 0x0:_0x56c1da[_0x5bfda6(0x214)]())||''),this[_0x5bfda6(0x1a1)][_0x5bfda6(0x1cd)]({'Authorization':'Bearer\x20'+((_0x13f85f=_0x5bda60['apiKey'])==null?void 0x0:_0x13f85f[_0x5bfda6(0x214)]())}),this['_messageService']['show']({'type':f['MessageType']['Success'],'content':this[_0x5bfda6(0x137)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x194f2e=_0x5bfda6;this[_0x194f2e(0x185)]['close'](D);},0x320);}catch(_0x28c0ba){this[_0x5bfda6(0xf1)]['error'](_0x5bfda6(0x14c),_0x28c0ba),this['_messageService'][_0x5bfda6(0x11b)]({'type':f['MessageType']['Error'],'content':this[_0x5bfda6(0x137)]['t'](_0x5bfda6(0x1f6))});}finally{this[_0x5bfda6(0x202)][_0x5bfda6(0xab)](!0x1);}}),(this[_0x1dce33(0x1d2)]=_0x1bf6b6,this[_0x1dce33(0x195)]=_0x290bc0,this[_0x1dce33(0x1d3)]=_0x21436c,this['_localStorageService']=_0x5e6c18,this[_0x1dce33(0x185)]=_0x204b77,this[_0x1dce33(0x1c6)]=_0x471d3d,this[_0x1dce33(0x1b3)]=_0x43f187,this[_0x1dce33(0x137)]=_0x147dee,this[_0x1dce33(0xf1)]=_0x23b518,this[_0x1dce33(0x1a1)]=_0x3f7b3c,this[_0x1dce33(0x18b)](),this[_0x1dce33(0xfe)](),this[_0x1dce33(0x168)]());}[_0x375d30(0x17b)](){const _0x5b2b32=_0x375d30,_0x53309a=this['_configService'][_0x5b2b32(0x158)](P);_0x53309a!=null&&_0x53309a[_0x5b2b32(0x1e8)]&&this[_0x5b2b32(0x185)]['open']({'id':D,'title':{'title':this[_0x5b2b32(0x137)]['t'](_0x5b2b32(0x209))},'children':{'label':_0x5b2b32(0xd2)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x598c5d=_0x5b2b32;this[_0x598c5d(0x185)][_0x598c5d(0x1dc)](D);}});}[_0x375d30(0x178)](){const _0x3be264=_0x375d30;return this[_0x3be264(0x9c)][_0x3be264(0xfd)];}[_0x375d30(0x168)](){const _0x5c0120=_0x375d30;this[_0x5c0120(0xcf)](this['_componentManager'][_0x5c0120(0x10f)](_0x5c0120(0xd2),this[_0x5c0120(0x18a)]()));}[_0x375d30(0x18a)](){const _0x336797=_0x375d30;return v[_0x336797(0x1bd)](()=>{const _0x8c11cb=_0x336797;var _0x3692f8,_0x20a4b8,_0x29318c;return i['jsx'](V,{'config':this[_0x8c11cb(0xaf)][_0x8c11cb(0xfd)],'mcpCoreConfig':this[_0x8c11cb(0x9c)][_0x8c11cb(0xfd)],'currentApiKey$':this[_0x8c11cb(0x1ed)],'onSave':this[_0x8c11cb(0xde)],'loading':this[_0x8c11cb(0x202)][_0x8c11cb(0xfd)],'connectionStatus$':(_0x3692f8=this[_0x8c11cb(0x1a1)])==null?void 0x0:_0x3692f8[_0x8c11cb(0xa0)],'connectionError$':(_0x20a4b8=this[_0x8c11cb(0x1a1)])==null?void 0x0:_0x20a4b8[_0x8c11cb(0x12d)],'currentSessionId$':(_0x29318c=this[_0x8c11cb(0x1a1)])==null?void 0x0:_0x29318c['sessionId$']});},this[_0x336797(0x1d2)]);}[_0x375d30(0x18b)](){const _0x4c10aa=_0x375d30;this[_0x4c10aa(0xcf)](this[_0x4c10aa(0x1d3)][_0x4c10aa(0x151)](s[_0x4c10aa(0x1d4)])[_0x4c10aa(0x187)](_0x192a52=>{const _0x1a97e7=_0x4c10aa;this[_0x1a97e7(0x9c)][_0x1a97e7(0xab)](_0x192a52||{});}));const _0x2eac1c=this[_0x4c10aa(0x1d3)]['getConfig'](s['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$'][_0x4c10aa(0xab)](_0x2eac1c||{}),this[_0x4c10aa(0xcf)](this[_0x4c10aa(0x1d3)]['subscribeConfigValue$'](P)[_0x4c10aa(0x187)](_0x169141=>{const _0xcd4f43=_0x4c10aa;this[_0xcd4f43(0xaf)]['next'](_0x169141||{});}));const _0x15f1c9=this[_0x4c10aa(0x1d3)][_0x4c10aa(0x158)](P);this[_0x4c10aa(0xaf)]['next'](_0x15f1c9||{});}async['_loadStoredApiKey'](){const _0x1fcfec=_0x375d30,_0xaa22d8=this[_0x1fcfec(0x1d3)]['getConfig'](P);if(!(_0xaa22d8!=null&&_0xaa22d8[_0x1fcfec(0x1e8)]))return;const _0x20daca=await this[_0x1fcfec(0x1d8)][_0x1fcfec(0x1ce)](O);_0x20daca&&(this['_mcpConnectionController'][_0x1fcfec(0x1cd)]({'Authorization':_0x1fcfec(0x163)+_0x20daca}),this[_0x1fcfec(0x1ed)][_0x1fcfec(0xab)](_0x20daca));}async[_0x375d30(0x12e)](_0x5f48ef){const _0x4a3447=_0x375d30;if(!_0x5f48ef[_0x4a3447(0xe7)]||_0x5f48ef[_0x4a3447(0xe7)][_0x4a3447(0x214)]()[_0x4a3447(0x196)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4a3447(0x137)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x5f48ef['apiKey'][_0x4a3447(0x214)]()[_0x4a3447(0x196)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4a3447(0x137)]['t'](_0x4a3447(0xd4))};try{const _0x2e2e97=await this[_0x4a3447(0x1d2)][_0x4a3447(0x188)](s[_0x4a3447(0x150)])['validateApiKey'](_0x5f48ef['apiKey'][_0x4a3447(0x214)]());return _0x2e2e97[_0x4a3447(0x1f7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2e2e97[_0x4a3447(0x1ef)]||this[_0x4a3447(0x137)]['t'](_0x4a3447(0x123))};}catch(_0x5d57c9){return console[_0x4a3447(0xd7)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x5d57c9),{'isValid':!0x0};}}},exports[_0x375d30(0x16e)]=xe([g(0x0,u[_0x375d30(0x9a)](u['Injector'])),g(0x1,v[_0x375d30(0x1c1)]),g(0x2,u[_0x375d30(0xcb)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x375d30(0x140)]),g(0x5,v['IMessageService']),g(0x6,u[_0x375d30(0x9a)](v[_0x375d30(0x1aa)])),g(0x7,u[_0x375d30(0x9a)](u[_0x375d30(0x14e)])),g(0x8,u[_0x375d30(0x94)]),g(0x9,u[_0x375d30(0x9a)](s[_0x375d30(0x150)]))],exports['MCPConfigUIController']);const b={'id':'mcp-ui.command.openConfigPanel','type':u[_0x375d30(0x1d7)][_0x375d30(0x145)],'handler':async(_0x5236a9,_0x54f724)=>(_0x5236a9[_0x375d30(0x188)](exports[_0x375d30(0x16e)])[_0x375d30(0x17b)](),!0x0)};function Z(_0x343498,_0x1629a2){const _0x15bbe6=_0x375d30;switch(_0x343498){case s[_0x15bbe6(0x1ff)][_0x15bbe6(0xdc)]:return _0x15bbe6(0x13d);case s[_0x15bbe6(0x1ff)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x15bbe6(0x1ff)][_0x15bbe6(0x1d5)]:return _0x15bbe6(0x10c);case s[_0x15bbe6(0x1ff)][_0x15bbe6(0xb9)]:switch(_0x1629a2){case s[_0x15bbe6(0x12b)][_0x15bbe6(0x15a)]:return _0x15bbe6(0x210);case s[_0x15bbe6(0x12b)][_0x15bbe6(0xe2)]:return'mcpStatus.sessionOccupied';case s[_0x15bbe6(0x12b)]['NETWORK_ERROR']:return'mcpStatus.networkError';case s[_0x15bbe6(0x12b)][_0x15bbe6(0x1af)]:return'mcpStatus.maxRetriesExceeded';default:return _0x15bbe6(0x17f);}case s['MCPConnectionStatus'][_0x15bbe6(0x147)]:return _0x15bbe6(0x125);default:return _0x15bbe6(0xb1);}}function Se(_0x5afd6e,_0xbe1103,_0x5e97d3,_0x17c631=!0x0){const _0x764cb=_0x375d30,_0x2513a0=Z(_0x5afd6e,_0xbe1103),_0x56e11b=_0x5e97d3['t'](_0x2513a0);return _0x17c631?_0x5afd6e===s[_0x764cb(0x1ff)][_0x764cb(0xdc)]&&_0xbe1103===s['MCPConnectionError'][_0x764cb(0x15a)]?_0x56e11b+_0x764cb(0x119)+_0x5e97d3['t'](_0x764cb(0x1a8)):_0x5afd6e===s[_0x764cb(0x1ff)][_0x764cb(0x1d5)]?''+_0x56e11b:_0x5afd6e===s[_0x764cb(0x1ff)][_0x764cb(0xdc)]||_0x5afd6e===s[_0x764cb(0x1ff)][_0x764cb(0xb9)]?_0x56e11b+'\x20-\x20'+_0x5e97d3['t'](_0x764cb(0x15b)):_0x56e11b:_0x56e11b;}function Pe(_0x10d17e){const _0x5e69c4=_0x375d30;switch(_0x10d17e){case s['MCPConnectionStatus'][_0x5e69c4(0x1d5)]:return _0x5e69c4(0x1a3);case s[_0x5e69c4(0x1ff)][_0x5e69c4(0x192)]:case s[_0x5e69c4(0x1ff)][_0x5e69c4(0x147)]:return'univer-text-yellow-500';case s['MCPConnectionStatus']['FAILED']:case s[_0x5e69c4(0x1ff)][_0x5e69c4(0xdc)]:return'univer-text-red-500';default:return _0x5e69c4(0x215);}}function W(_0x25aba7){const _0x180e6b=_0x375d30,{status$:_0x443aad,error$:_0x33b29b,onConfigure:_0x333575,showClickable:_0x45cbf6=!0x0}=_0x25aba7,_0x421916=v['useObservable'](_0x443aad,s[_0x180e6b(0x1ff)]['DISCONNECTED']),_0x2f46be=v[_0x180e6b(0x198)](_0x33b29b,s[_0x180e6b(0x12b)]['NONE']),_0xb6f6f3=v['useDependency'](u[_0x180e6b(0x14e)]),_0x225c27=_0x421916===s[_0x180e6b(0x1ff)][_0x180e6b(0x1d5)];_0x421916===s[_0x180e6b(0x1ff)][_0x180e6b(0x192)]||s['MCPConnectionStatus'][_0x180e6b(0x147)];const _0x30ed4f=_0xb6f6f3['t'](Z(_0x421916,_0x2f46be)),_0x54b55=Se(_0x421916,_0x2f46be,_0xb6f6f3,_0x45cbf6),_0x205ccb=Pe(_0x421916),_0x4c0f92=_0x225c27?i[_0x180e6b(0x20a)](q,{}):i[_0x180e6b(0x20a)](Y,{}),_0x47847d=d[_0x180e6b(0x148)](()=>{_0x45cbf6&&_0x333575&&_0x333575();},[_0x45cbf6,_0x333575]);function _0x172282(){const _0x1b1cfb=_0x180e6b;return i['jsxs'](_0x1b1cfb(0xa7),{'className':f[_0x1b1cfb(0x203)]('univer-flex\x20univer-items-center',_0x45cbf6&&_0x333575&&_0x1b1cfb(0x18e)),'role':_0x1b1cfb(0x1a7),'onClick':_0x45cbf6&&_0x333575?_0x47847d:void 0x0,'children':[i[_0x1b1cfb(0x20a)](_0x1b1cfb(0xa7),{'className':f['clsx'](_0x1b1cfb(0x1ae),_0x205ccb),'children':_0x4c0f92}),i[_0x1b1cfb(0x20a)](_0x1b1cfb(0xa7),{'className':_0x1b1cfb(0xa2),'children':_0x30ed4f})]});}return i[_0x180e6b(0x20a)](f[_0x180e6b(0xc6)],{'title':_0x54b55,'placement':'bottom','children':_0x172282()});}var Ie=Object[_0x375d30(0x1d6)],_e=(_0x16338d,_0x49883f,_0x22761a,_0x13cadd)=>{const _0x576121=_0x375d30;for(var _0x1e2aaf=_0x13cadd>0x1?void 0x0:_0x13cadd?Ie(_0x49883f,_0x22761a):_0x49883f,_0x5a9155=_0x16338d[_0x576121(0x196)]-0x1,_0x4ebce3;_0x5a9155>=0x0;_0x5a9155--)(_0x4ebce3=_0x16338d[_0x5a9155])&&(_0x1e2aaf=_0x4ebce3(_0x1e2aaf)||_0x1e2aaf);return _0x1e2aaf;},N=(_0x768cd,_0x47fd21)=>(_0x535825,_0x5143e3)=>_0x47fd21(_0x535825,_0x5143e3,_0x768cd);exports[_0x375d30(0xb2)]=class extends u[_0x375d30(0x13e)]{constructor(_0x404bb3,_0x2418bf,_0x2ab467,_0x10597c){const _0x1b84de=_0x375d30;super(),this['_injector']=_0x404bb3,this['_connectionController']=_0x2418bf,this[_0x1b84de(0x195)]=_0x2ab467,this[_0x1b84de(0x1d3)]=_0x10597c,this[_0x1b84de(0xef)](),this[_0x1b84de(0x1e7)]();}[_0x375d30(0xef)](){const _0x3fcb3a=_0x375d30,_0x1c021e=this[_0x3fcb3a(0x1d3)][_0x3fcb3a(0x158)](P);_0x1c021e!=null&&_0x1c021e[_0x3fcb3a(0x1e8)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x375d30(0x1e7)](){const _0x4b32ba=_0x375d30,_0xd54788=this['_configService'][_0x4b32ba(0x158)](P);(_0xd54788==null?void 0x0:_0xd54788[_0x4b32ba(0xb0)])!==!0x1&&this[_0x4b32ba(0xcf)](this['_uiPartsService'][_0x4b32ba(0x10b)](v[_0x4b32ba(0x1b7)][_0x4b32ba(0x181)],()=>{const _0x1397aa=_0x4b32ba;var _0x12d872;return v['connectInjector'](ye({'status$':this[_0x1397aa(0x12f)][_0x1397aa(0xa0)],'error$':this[_0x1397aa(0x12f)][_0x1397aa(0x12d)],'onConfigure':()=>this[_0x1397aa(0xc1)](),'showClickable':(_0x12d872=_0xd54788==null?void 0x0:_0xd54788[_0x1397aa(0x1e8)])!=null?_0x12d872:!0x1}),this[_0x1397aa(0x1d2)]);}));}[_0x375d30(0xc1)](){const _0x233daf=_0x375d30;this[_0x233daf(0x1d2)][_0x233daf(0x188)](exports[_0x233daf(0x16e)])[_0x233daf(0x17b)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x375d30(0x9a)](u[_0x375d30(0x19c)])),N(0x1,u['Inject'](s[_0x375d30(0x150)])),N(0x2,v[_0x375d30(0x1c1)]),N(0x3,u[_0x375d30(0xcb)])],exports[_0x375d30(0xb2)]);function ye(_0x3b2d58){const {status$:_0x5735b4,error$:_0x3a1624,onConfigure:_0x83ba49,showClickable:_0x4c470c}=_0x3b2d58;return function(){return i['jsx'](W,{'status$':_0x5735b4,'error$':_0x3a1624,'onConfigure':_0x83ba49,'showClickable':_0x4c470c});};}function Me(_0x25009d){const _0x32db85=_0x375d30;return{'id':b['id'],'type':v[_0x32db85(0x132)][_0x32db85(0x193)],'icon':_0x32db85(0x1ec),'title':_0x32db85(0x209),'tooltip':_0x32db85(0x209)};}const Ne={[v[_0x375d30(0x1df)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x375d30(0x1d6)],je=(_0x3b6696,_0x545dfd,_0x456ae3,_0xe65251)=>{const _0x219884=_0x375d30;for(var _0x4eca58=_0xe65251>0x1?void 0x0:_0xe65251?be(_0x545dfd,_0x456ae3):_0x545dfd,_0x14448e=_0x3b6696[_0x219884(0x196)]-0x1,_0x25fff3;_0x14448e>=0x0;_0x14448e--)(_0x25fff3=_0x3b6696[_0x14448e])&&(_0x4eca58=_0x25fff3(_0x4eca58)||_0x4eca58);return _0x4eca58;},z=(_0x429a8d,_0x293b40)=>(_0x5ad30b,_0x53e3d9)=>_0x293b40(_0x5ad30b,_0x53e3d9,_0x429a8d);exports[_0x375d30(0x11a)]=class extends u[_0x375d30(0x13e)]{constructor(_0x45cf93,_0x37358d){const _0x581c43=_0x375d30;super(),this[_0x581c43(0x1fd)]=_0x45cf93,this['_menuManagerService']=_0x37358d,this[_0x581c43(0x172)](),this[_0x581c43(0x197)]();}['_initializeCommands'](){[b]['forEach'](_0x19ee01=>{const _0x393d06=_0x5121;this[_0x393d06(0xcf)](this[_0x393d06(0x1fd)][_0x393d06(0x1e1)](_0x19ee01));});}['_initializeMenus'](){const _0x21bd2f=_0x375d30;this[_0x21bd2f(0xbe)][_0x21bd2f(0xe3)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x375d30(0x1da)]),z(0x1,v[_0x375d30(0xbc)])],exports[_0x375d30(0x11a)]);const Ee={'mcpStatus':{'disconnected':_0x375d30(0x155),'connecting':_0x375d30(0x1cb),'connected':_0x375d30(0x18c),'failed':_0x375d30(0x164),'retrying':'MCP\x20Retrying...','unknown':_0x375d30(0xe6),'unauthorized':_0x375d30(0x121),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x375d30(0x146),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x375d30(0xf3)},'mcpConfig':{'title':_0x375d30(0x93),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x375d30(0x183),'apiKeyPlaceholder':_0x375d30(0x1ab),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x375d30(0xd1),'enableAuthHint':_0x375d30(0xc3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x375d30(0x1c9),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x375d30(0x14a),'configStep1':_0x375d30(0x130),'configStep2':_0x375d30(0xeb),'configStep3':_0x375d30(0x133),'sessionId':_0x375d30(0x1f9),'sessionIdDescription':_0x375d30(0xf7),'authorizationDescription':_0x375d30(0xd3),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x375d30(0xbf),'save':_0x375d30(0x207),'saving':_0x375d30(0xae),'note1':_0x375d30(0x175),'note2':_0x375d30(0x19f),'configSaved':_0x375d30(0x1f3),'configError':_0x375d30(0x1e3),'apiApplyInfo':{'title':_0x375d30(0x1ac),'description':_0x375d30(0x138),'univerAiLabel':_0x375d30(0x1f2),'getStarted':_0x375d30(0x1fa)},'validation':{'apiKeyRequired':_0x375d30(0xb8),'apiKeyTooShort':_0x375d30(0x1c7),'invalidConfig':_0x375d30(0x201),'invalidApiKey':_0x375d30(0x19a)},'connectionStatus':{'disconnected':_0x375d30(0x20d),'connecting':_0x375d30(0x124),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x375d30(0x9e)},'connectionError':{'unauthorized':_0x375d30(0x1c3),'sessionOccupied':_0x375d30(0xe9),'networkError':_0x375d30(0x15d),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x375d30(0x20c),'connecting':_0x375d30(0x174),'connected':'MCP\x20已连接','failed':_0x375d30(0x194),'retrying':_0x375d30(0x161),'unknown':_0x375d30(0x117),'unauthorized':_0x375d30(0x182),'sessionOccupied':_0x375d30(0x149),'networkError':_0x375d30(0x9d),'maxRetriesExceeded':_0x375d30(0xc4),'clickToConnect':_0x375d30(0x1b6),'clickToConfigure':_0x375d30(0xca)},'mcpConfig':{'title':_0x375d30(0xa8),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x375d30(0x1f8),'apiKeyPlaceholder':_0x375d30(0xd9),'apiKeyHint':_0x375d30(0x116),'enableAuth':_0x375d30(0xcc),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x375d30(0x170),'configInstructions':_0x375d30(0x1b4),'configStepTitle':_0x375d30(0x1de),'configStep1':_0x375d30(0x153),'configStep2':_0x375d30(0x1b2),'configStep3':_0x375d30(0x162),'sessionId':_0x375d30(0x108),'sessionIdDescription':_0x375d30(0xdd),'authorizationDescription':_0x375d30(0x1bf),'configParameters':_0x375d30(0xb3),'maxRetries':_0x375d30(0x1b1),'save':_0x375d30(0x186),'saving':_0x375d30(0x106),'note1':_0x375d30(0x1e0),'note2':_0x375d30(0x17a),'configSaved':_0x375d30(0x160),'configError':_0x375d30(0x1a6),'apiApplyInfo':{'title':_0x375d30(0x17d),'description':_0x375d30(0x118),'univerAiLabel':_0x375d30(0xea),'getStarted':_0x375d30(0x12a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x375d30(0x166),'invalidApiKey':_0x375d30(0xd5)},'connectionStatus':{'disconnected':'未连接','connecting':_0x375d30(0x15e),'connected':_0x375d30(0xfa),'failed':_0x375d30(0x20b),'retrying':_0x375d30(0x1ca)},'connectionError':{'unauthorized':_0x375d30(0x1cf),'sessionOccupied':_0x375d30(0x190),'networkError':_0x375d30(0x1db),'maxRetriesExceeded':_0x375d30(0x157)}}};var Ae=Object[_0x375d30(0x1c5)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x1e040f,_0x464893,_0x10a25e)=>_0x464893 in _0x1e040f?Ae(_0x1e040f,_0x464893,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10a25e}):_0x1e040f[_0x464893]=_0x10a25e,Ue=(_0x2c36ba,_0x32eb05,_0xb381ce,_0x109394)=>{const _0x4021ed=_0x375d30;for(var _0x57b319=_0x109394>0x1?void 0x0:_0x109394?Oe(_0x32eb05,_0xb381ce):_0x32eb05,_0x20138e=_0x2c36ba[_0x4021ed(0x196)]-0x1,_0x54d1e1;_0x20138e>=0x0;_0x20138e--)(_0x54d1e1=_0x2c36ba[_0x20138e])&&(_0x57b319=_0x54d1e1(_0x57b319)||_0x57b319);return _0x57b319;},y=(_0x4949d9,_0x11ce5c)=>(_0x50c1d3,_0x322319)=>_0x11ce5c(_0x50c1d3,_0x322319,_0x4949d9),$e=(_0x4f9cfe,_0x5b62b3,_0x3c36f4)=>De(_0x4f9cfe,_0x5b62b3+'',_0x3c36f4);exports[_0x375d30(0x211)]=class extends u[_0x375d30(0x107)]{constructor(_0x3d0b9c=L,_0xb852c5,_0x31af91,_0x3624df,_0xf4ce2a,_0x4bae91){const _0x53846b=_0x375d30;super(),this['_config']=_0x3d0b9c,this['_injector']=_0xb852c5,this[_0x53846b(0x1d3)]=_0x31af91,this['_uiPartsService']=_0x3624df,this['_localStorageService']=_0xf4ce2a,this[_0x53846b(0x137)]=_0x4bae91;const {..._0xebfda3}=u['merge']({},L,this[_0x53846b(0xbd)]);this[_0x53846b(0x1d3)]['setConfig'](P,_0xebfda3);}async['onStarting'](){const _0x154d12=_0x375d30,_0x211b12=[[exports[_0x154d12(0xb2)]],[exports['MCPConfigUIController']],[exports[_0x154d12(0x11a)]]];this['_injector']['has'](A['ISocketService'])||_0x211b12[_0x154d12(0x206)]([A[_0x154d12(0xb6)],{'useClass':A['WebSocketService']}]),_0x211b12[_0x154d12(0x122)](_0x3aba32=>this['_injector']['add'](_0x3aba32)),this[_0x154d12(0x1d2)]['get'](exports[_0x154d12(0xb2)]),this[_0x154d12(0x1d2)][_0x154d12(0x188)](exports[_0x154d12(0x16e)]),this[_0x154d12(0x1d2)]['get'](exports[_0x154d12(0x11a)]);}},$e(exports[_0x375d30(0x211)],'pluginName',_0x375d30(0x131)),exports['UniverMCPUIPlugin']=Ue([u[_0x375d30(0x1b9)](s['UniverMCPPlugin']),y(0x1,u[_0x375d30(0x9a)](u['Injector'])),y(0x2,u[_0x375d30(0xcb)]),y(0x3,v['IUIPartsService']),y(0x4,u['ILocalStorageService']),y(0x5,u[_0x375d30(0x9a)](u[_0x375d30(0x14e)]))],exports['UniverMCPUIPlugin']),exports[_0x375d30(0xd2)]=V,exports[_0x375d30(0x128)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x375d30(0xac)]=Ee,exports[_0x375d30(0x1dd)]=we;
|
|
1
|
+
'use strict';const _0xfd1766=_0x4d02;(function(_0x12a988,_0x829b95){const _0x4e9a67=_0x4d02,_0x2be2ea=_0x12a988();while(!![]){try{const _0x5514c1=parseInt(_0x4e9a67(0x134))/0x1*(parseInt(_0x4e9a67(0x272))/0x2)+parseInt(_0x4e9a67(0x208))/0x3+parseInt(_0x4e9a67(0x1f3))/0x4+-parseInt(_0x4e9a67(0x1ff))/0x5*(parseInt(_0x4e9a67(0x1ba))/0x6)+parseInt(_0x4e9a67(0x250))/0x7*(-parseInt(_0x4e9a67(0x1cf))/0x8)+parseInt(_0x4e9a67(0x1b7))/0x9+parseInt(_0x4e9a67(0x25e))/0xa*(parseInt(_0x4e9a67(0x20e))/0xb);if(_0x5514c1===_0x829b95)break;else _0x2be2ea['push'](_0x2be2ea['shift']());}catch(_0x31ac9f){_0x2be2ea['push'](_0x2be2ea['shift']());}}}(_0x3dad,0x59611));var ae=Object[_0xfd1766(0x246)],le=(_0x35baab,_0x3de6c1,_0xf487c8)=>_0x3de6c1 in _0x35baab?ae(_0x35baab,_0x3de6c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf487c8}):_0x35baab[_0x3de6c1]=_0xf487c8,I=(_0x4fb589,_0x1eb6c8,_0xefecc7)=>le(_0x4fb589,typeof _0x1eb6c8!=_0xfd1766(0x266)?_0x1eb6c8+'':_0x1eb6c8,_0xefecc7);Object['defineProperty'](exports,Symbol[_0xfd1766(0x1e9)],{'value':_0xfd1766(0x116)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x3693a5,..._0x37f3e2}){const _0x567869=_0xfd1766,{icon:_0x5af8ff,id:_0x11ca82,className:_0x326815,extend:_0x113c0d,..._0x57139f}=_0x37f3e2,_0x3a09c0=(_0x567869(0x133)+_0x11ca82+'\x20'+(_0x326815||''))[_0x567869(0x1f0)](),_0x390d85=d['useRef']('_'+de());return G(_0x5af8ff,''+_0x11ca82,{'defIds':_0x5af8ff[_0x567869(0x13e)],'idSuffix':_0x390d85[_0x567869(0x219)]},{'ref':_0x3693a5,'className':_0x3a09c0,..._0x57139f},_0x113c0d);}function G(_0x3b61c1,_0x11a3b6,_0x158712,_0x29c4ef,_0x2ad982){const _0x3ac139=_0xfd1766;return d[_0x3ac139(0x21e)](_0x3b61c1['tag'],{'key':_0x11a3b6,...ue(_0x3b61c1,_0x158712,_0x2ad982),..._0x29c4ef},(ve(_0x3b61c1,_0x158712)[_0x3ac139(0x233)]||[])[_0x3ac139(0x1c7)]((_0x362b30,_0x1d3402)=>G(_0x362b30,_0x11a3b6+'-'+_0x3b61c1[_0x3ac139(0x11a)]+'-'+_0x1d3402,_0x158712,void 0x0,_0x2ad982)));}function ue(_0x39fe3f,_0x2349be,_0x236800){const _0xd515fc=_0xfd1766,_0x9bb161={..._0x39fe3f[_0xd515fc(0x23b)]};_0x236800!=null&&_0x236800[_0xd515fc(0x12a)]&&_0x9bb161[_0xd515fc(0x1e8)]===_0xd515fc(0x12a)&&(_0x9bb161[_0xd515fc(0x1e8)]=_0x236800[_0xd515fc(0x12a)]),_0x39fe3f[_0xd515fc(0x11a)]===_0xd515fc(0x1a4)&&_0x9bb161['id']&&(_0x9bb161['id']=_0x9bb161['id']+_0x2349be[_0xd515fc(0x258)]),Object[_0xd515fc(0x161)](_0x9bb161)[_0xd515fc(0x1a0)](([_0xd29905,_0x2c108a])=>{const _0x2927b6=_0xd515fc;_0xd29905==='mask'&&typeof _0x2c108a==_0x2927b6(0x1b9)&&(_0x9bb161[_0xd29905]=_0x2c108a[_0x2927b6(0x156)](/url\(#(.*)\)/,_0x2927b6(0x256)+_0x2349be[_0x2927b6(0x258)]+')'));});const {defIds:_0x2db918}=_0x2349be;return!_0x2db918||_0x2db918[_0xd515fc(0x1d2)]===0x0||(_0x39fe3f[_0xd515fc(0x11a)]==='use'&&_0x9bb161[_0xd515fc(0x251)]&&(_0x9bb161[_0xd515fc(0x251)]=_0x9bb161['xlink:href']+_0x2349be[_0xd515fc(0x258)]),Object['entries'](_0x9bb161)[_0xd515fc(0x1a0)](([_0x3e0c20,_0x405308])=>{const _0x5525d8=_0xd515fc;typeof _0x405308=='string'&&(_0x9bb161[_0x3e0c20]=_0x405308[_0x5525d8(0x156)](/url\(#(.*)\)/,_0x5525d8(0x256)+_0x2349be['idSuffix']+')'));})),_0x9bb161;}function ve(_0x1639bb,_0x28e7ea){const _0x481233=_0xfd1766;var _0x381f16;const {defIds:_0x2db33b}=_0x28e7ea;return!_0x2db33b||_0x2db33b[_0x481233(0x1d2)]===0x0?_0x1639bb:_0x1639bb[_0x481233(0x11a)]===_0x481233(0x226)&&((_0x381f16=_0x1639bb[_0x481233(0x233)])!=null&&_0x381f16['length'])?{..._0x1639bb,'children':_0x1639bb[_0x481233(0x233)][_0x481233(0x1c7)](_0x4c0a3b=>typeof _0x4c0a3b[_0x481233(0x23b)]['id']=='string'&&_0x2db33b&&_0x2db33b[_0x481233(0x1a8)](_0x4c0a3b[_0x481233(0x23b)]['id'])?{..._0x4c0a3b,'attrs':{..._0x4c0a3b[_0x481233(0x23b)],'id':_0x4c0a3b[_0x481233(0x23b)]['id']+_0x28e7ea[_0x481233(0x258)]}}:_0x4c0a3b)}:_0x1639bb;}function de(){const _0x3f825c=_0xfd1766;return Math[_0x3f825c(0x1d7)]()['toString'](0x24)[_0x3f825c(0x158)](0x2,0x8);}_[_0xfd1766(0x257)]=_0xfd1766(0x189);const Ce={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':'0\x200\x2016\x2016','width':_0xfd1766(0x1d3),'height':'1em'},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'d':_0xfd1766(0x124),'fillRule':'evenodd','clipRule':'evenodd'}}]},H=d[_0xfd1766(0x1ef)](function(_0x1c6037,_0x4b2fd4){const _0xb47d24=_0xfd1766;return d['createElement'](_,Object['assign']({},_0x1c6037,{'id':_0xb47d24(0x181),'ref':_0x4b2fd4,'icon':Ce}));});H[_0xfd1766(0x257)]=_0xfd1766(0x26b);const ge={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':_0xfd1766(0x15d),'width':_0xfd1766(0x1d3),'height':_0xfd1766(0x1d3)},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'d':_0xfd1766(0x276)}}]},B=d[_0xfd1766(0x1ef)](function(_0x3a47c8,_0x38642a){const _0x532e02=_0xfd1766;return d[_0x532e02(0x21e)](_,Object['assign']({},_0x3a47c8,{'id':_0x532e02(0x1b1),'ref':_0x38642a,'icon':ge}));});B['displayName']=_0xfd1766(0x260);const fe={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':_0xfd1766(0x15d),'width':'1em','height':_0xfd1766(0x1d3)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xfd1766(0x16a)}},{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'d':_0xfd1766(0x209)}},{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x1ec),'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':_0xfd1766(0x24a),'clipRule':_0xfd1766(0x24a)}}]},F=d[_0xfd1766(0x1ef)](function(_0x3f57a0,_0x2d63e7){const _0x52e7d7=_0xfd1766;return d[_0x52e7d7(0x21e)](_,Object['assign']({},_0x3f57a0,{'id':_0x52e7d7(0x132),'ref':_0x2d63e7,'icon':fe}));});F['displayName']=_0xfd1766(0x167);const pe={'tag':_0xfd1766(0x20f),'attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':'0\x200\x2016\x2016','width':_0xfd1766(0x1d3),'height':_0xfd1766(0x1d3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xfd1766(0x180),'attrs':{'stroke':_0xfd1766(0x1ec),'d':_0xfd1766(0x183),'strokeLinecap':_0xfd1766(0x235),'strokeLinejoin':_0xfd1766(0x235),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xfd1766(0x1fb),'attrs':{'id':_0xfd1766(0x286)},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x22d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xfd1766(0x286)]},Y=d[_0xfd1766(0x1ef)](function(_0x12f57b,_0x28d2ef){const _0x11fbe2=_0xfd1766;return d[_0x11fbe2(0x21e)](_,Object[_0x11fbe2(0x188)]({},_0x12f57b,{'id':_0x11fbe2(0x12e),'ref':_0x28d2ef,'icon':pe}));});Y['displayName']=_0xfd1766(0x23a);const he={'tag':'svg','attrs':{'xmlns':_0xfd1766(0x170),'fill':_0xfd1766(0x1a3),'viewBox':_0xfd1766(0x239),'width':'1em','height':_0xfd1766(0x1d3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xfd1766(0x180),'attrs':{'stroke':_0xfd1766(0x1ec),'d':_0xfd1766(0x186),'strokeLinecap':_0xfd1766(0x235),'strokeLinejoin':_0xfd1766(0x235),'strokeWidth':1.2}}]},{'tag':_0xfd1766(0x226),'attrs':{},'children':[{'tag':_0xfd1766(0x1fb),'attrs':{'id':_0xfd1766(0x15b)},'children':[{'tag':_0xfd1766(0x180),'attrs':{'fill':_0xfd1766(0x22d),'d':_0xfd1766(0x17d),'transform':'translate(.97)'}}]}]}],'defIds':[_0xfd1766(0x15b)]},q=d[_0xfd1766(0x1ef)](function(_0x23c362,_0xa67c3){const _0x37acac=_0xfd1766;return d[_0x37acac(0x21e)](_,Object[_0x37acac(0x188)]({},_0x23c362,{'id':_0x37acac(0x25a),'ref':_0xa67c3,'icon':he}));});q[_0xfd1766(0x257)]='OnLineIcon';function V(_0x2970a8){const _0x3e9fbd=_0xfd1766;var _0x439f73,_0x89b801;const {mcpCoreConfig:_0x1038d9,onSave:_0x157282,loading:_0x4fd0ab=!0x1,config:_0x18def1,connectionStatus$:_0x3f4178,connectionError$:_0x9983b4,currentApiKey$:_0x7ed92,currentSessionId$:_0x48fdb3}=_0x2970a8,_0x3221f9=v[_0x3e9fbd(0x26a)](u[_0x3e9fbd(0x1c8)]),_0x360074=v['useObservable'](_0x3f4178,s[_0x3e9fbd(0x17a)][_0x3e9fbd(0x215)]),_0x4dacb1=v[_0x3e9fbd(0x174)](_0x9983b4,s[_0x3e9fbd(0x190)][_0x3e9fbd(0x1c3)]),_0x5218e2=v['useObservable'](_0x48fdb3,''),_0x5ca831=v[_0x3e9fbd(0x174)](_0x7ed92,''),[_0x4c54ae,_0x2a09b3]=d['useState'](_0x5ca831||''),_0x3e44d1=!0x0,_0x4156e9=_0x18def1[_0x3e9fbd(0x1f5)]&&_0x1038d9['mcpServerUrl']&&(_0x1038d9[_0x3e9fbd(0x1af)][_0x3e9fbd(0x1a8)](_0x3e9fbd(0x27d))||_0x1038d9[_0x3e9fbd(0x1af)][_0x3e9fbd(0x1a8)](_0x3e9fbd(0x146))),_0x135258=(_0x439f73=_0x1038d9[_0x3e9fbd(0x1af)])==null?void 0x0:_0x439f73[_0x3e9fbd(0x1a8)](_0x3e9fbd(0x27d)),_0x54f67f=(_0x89b801=_0x1038d9[_0x3e9fbd(0x1af)])==null?void 0x0:_0x89b801['includes']('univer.ai'),_0x484d70=_0x135258?_0x3e9fbd(0x1e7):_0x3e9fbd(0x1bb),_0x37a070=_0x18def1[_0x3e9fbd(0x1f5)]&&(_0x135258||_0x54f67f),[_0x18844a,_0x9deb94]=d[_0x3e9fbd(0x139)](!_0x4c54ae[_0x3e9fbd(0x1f0)]()),_0x954f3e=(_0xabfbd8,_0x3441ed)=>{const _0x6f83ab=_0x3e9fbd;if(_0x3441ed===s['MCPConnectionError']['UNAUTHORIZED'])return _0x6f83ab(0x17c);switch(_0xabfbd8){case s[_0x6f83ab(0x17a)][_0x6f83ab(0x151)]:return _0x6f83ab(0x123);case s['MCPConnectionStatus']['CONNECTING']:case s[_0x6f83ab(0x17a)][_0x6f83ab(0x17b)]:return _0x6f83ab(0x21d);case s['MCPConnectionStatus'][_0x6f83ab(0x1e3)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x6f83ab(0x1f4);}},_0x10f492=(_0x130b71,_0x5ece7b)=>{const _0x4796b8=_0x3e9fbd;if(_0x5ece7b===s['MCPConnectionError'][_0x4796b8(0x249)])return _0x4796b8(0x24f);switch(_0x130b71){case s['MCPConnectionStatus'][_0x4796b8(0x151)]:return _0x4796b8(0x279);case s[_0x4796b8(0x17a)][_0x4796b8(0x110)]:case s[_0x4796b8(0x17a)]['RETRYING']:return _0x4796b8(0x1ea);case s['MCPConnectionStatus'][_0x4796b8(0x1e3)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x2f5bca=_0x1d8b69=>{const _0x21e4ea=_0x3e9fbd;switch(_0x1d8b69){case s['MCPConnectionStatus'][_0x21e4ea(0x151)]:return _0x3221f9['t'](_0x21e4ea(0x1fd));case s[_0x21e4ea(0x17a)][_0x21e4ea(0x110)]:return _0x3221f9['t'](_0x21e4ea(0x1f8));case s[_0x21e4ea(0x17a)][_0x21e4ea(0x1e3)]:return _0x3221f9['t'](_0x21e4ea(0x1f2));case s['MCPConnectionStatus']['RETRYING']:return _0x3221f9['t'](_0x21e4ea(0x1d9));default:return _0x3221f9['t']('mcpConfig.connectionStatus.disconnected');}},_0x52facb=_0x17eb47=>{const _0x2804c0=_0x3e9fbd;switch(_0x17eb47){case s[_0x2804c0(0x190)][_0x2804c0(0x249)]:return _0x3221f9['t'](_0x2804c0(0x220));case s[_0x2804c0(0x190)][_0x2804c0(0x19f)]:return _0x3221f9['t'](_0x2804c0(0x1bd));case s[_0x2804c0(0x190)]['NETWORK_ERROR']:return _0x3221f9['t'](_0x2804c0(0x263));case s[_0x2804c0(0x190)][_0x2804c0(0x173)]:return _0x3221f9['t'](_0x2804c0(0x1be));default:return'';}},_0x3f184c=d[_0x3e9fbd(0x13d)](()=>{const _0x8e074e={..._0x1038d9,'apiKey':_0x4c54ae['trim'](),'enableAuth':_0x3e44d1};_0x157282(_0x8e074e);},[_0x1038d9,_0x4c54ae,_0x3e44d1,_0x157282]),_0xc2adc8=_0x4c54ae[_0x3e9fbd(0x1f0)]()['length']>0x0;return i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1e6),'children':[i['jsx']('div',{'className':_0x3e9fbd(0x267),'children':i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x288),'children':[i[_0x3e9fbd(0x22f)]('div',{'className':_0x3e9fbd(0x23e),'children':i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x1aa),'children':'⚙'})}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'children':i['jsx']('p',{'className':_0x3e9fbd(0x291),'children':_0x3221f9['t']('mcpConfig.description')})})]})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x125),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':f[_0x3e9fbd(0x1a7)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x954f3e(_0x360074,_0x4dacb1)),'children':i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x13c),'children':[i['jsx'](_0x3e9fbd(0x115),{'className':f[_0x3e9fbd(0x1a7)](_0x3e9fbd(0x143),_0x10f492(_0x360074,_0x4dacb1))}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x159),'children':_0x2f5bca(_0x360074)})]})}),_0x4dacb1!==s[_0x3e9fbd(0x190)]['NONE']&&(_0x360074===s[_0x3e9fbd(0x17a)][_0x3e9fbd(0x1e3)]||_0x4dacb1===s[_0x3e9fbd(0x190)][_0x3e9fbd(0x249)])&&i[_0x3e9fbd(0x22f)]('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x3e9fbd(0x148)]('div',{'className':_0x3e9fbd(0x10f),'children':[i[_0x3e9fbd(0x22f)]('span',{'className':_0x3e9fbd(0x289),'children':'⚠️'}),i[_0x3e9fbd(0x22f)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x52facb(_0x4dacb1)})]})})]}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1bf),'children':i[_0x3e9fbd(0x148)]('div',{'className':'univer-space-y-5','children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':'univer-space-y-2','children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x13b),{'className':_0x3e9fbd(0x18c),'children':[i['jsx'](_0x3e9fbd(0x197),{'children':'🔑'}),'\x20',_0x3221f9['t'](_0x3e9fbd(0x1f9)),i[_0x3e9fbd(0x22f)]('span',{'className':_0x3e9fbd(0x28f),'children':'*'}),_0x4156e9&&i['jsx']('a',{'className':_0x3e9fbd(0x23d),'title':_0x3221f9['t'](_0x3e9fbd(0x1dd)),'role':_0x3e9fbd(0x1ab),'onClick':()=>_0x9deb94(!0x0),'children':i[_0x3e9fbd(0x22f)](F,{})})]}),i[_0x3e9fbd(0x22f)](f[_0x3e9fbd(0x1b2)],{'type':_0x3e9fbd(0x21b),'placeholder':_0x3221f9['t'](_0x3e9fbd(0x285)),'value':_0x4c54ae,'disabled':_0x4fd0ab,'autoComplete':_0x3e9fbd(0x261),'onChange':_0x2a09b3}),i[_0x3e9fbd(0x22f)]('p',{'className':_0x3e9fbd(0x136),'children':_0x3221f9['t'](_0x3e9fbd(0x168))})]}),_0x4156e9&&_0x18844a&&i['jsxs'](_0x3e9fbd(0x115),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i['jsx']('a',{'className':_0x3e9fbd(0x231),'role':_0x3e9fbd(0x1ab),'onClick':()=>_0x9deb94(!0x1),'children':i[_0x3e9fbd(0x22f)](B,{'className':'univer-size-4'})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1bc),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x205),'children':'🚀'})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x12d),'children':[i['jsx']('h4',{'className':_0x3e9fbd(0x12c),'children':_0x3221f9['t'](_0x3e9fbd(0x1dd))}),i[_0x3e9fbd(0x22f)]('p',{'className':_0x3e9fbd(0x210),'children':_0x3221f9['t']('mcpConfig.apiApplyInfo.description')}),i['jsx'](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x37a070&&i[_0x3e9fbd(0x148)]('a',{'className':_0x3e9fbd(0x17e),'href':_0x484d70,'target':_0x3e9fbd(0x294),'rel':'noopener\x20noreferrer','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'children':'🤖'}),_0x3221f9['t'](_0x3e9fbd(0x269)),i[_0x3e9fbd(0x22f)]('span',{'className':_0x3e9fbd(0x24c),'children':'↗'})]})}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1ae),'children':['✨','\x20',_0x3221f9['t'](_0x3e9fbd(0x1ac))]})]})]})]}),_0x18def1[_0x3e9fbd(0x1f5)]&&i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c6),'children':[i[_0x3e9fbd(0x148)]('h4',{'className':_0x3e9fbd(0x21a),'children':[i[_0x3e9fbd(0x22f)]('span',{'children':'🔗'}),'\x20',_0x3221f9['t']('mcpConfig.connectionInfo')]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c1),'children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c9),'children':[i[_0x3e9fbd(0x22f)]('p',{'className':_0x3e9fbd(0x16d),'children':_0x3221f9['t']('mcpConfig.configInstructions')}),i['jsxs']('div',{'className':_0x3e9fbd(0x283),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x23c),'children':_0x3221f9['t']('mcpConfig.configStepTitle')}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x230),'children':[i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x13c),'children':[i['jsx']('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x3221f9['t'](_0x3e9fbd(0x15e))]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x154),'children':'2'}),_0x3221f9['t']('mcpConfig.configStep2')]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x154),'children':'3'}),_0x3221f9['t'](_0x3e9fbd(0x284))]})]})]})]}),i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x283),'children':[i['jsx'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x23c),'children':_0x3e9fbd(0x13f)}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1b6),'children':i['jsx'](_0x3e9fbd(0x18e),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x3e9fbd(0x16b)+(_0x5218e2||_0x3e9fbd(0x18b)),'type':_0x3e9fbd(0x207),'headers':{'Authorization':'Bearer\x20'+(_0x4c54ae||_0x3e9fbd(0x178))}}}},null,0x2)})})]}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1c9),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x23c),'children':_0x3221f9['t'](_0x3e9fbd(0x28d))}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x283),'children':[i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x28a),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x14f)}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x253),'children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x1d0),'children':_0x3e9fbd(0x160)}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x136),'children':_0x3221f9['t'](_0x3e9fbd(0x175))})]})]}),i['jsxs'](_0x3e9fbd(0x115),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x14f)}),i['jsxs'](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x253),'children':[i[_0x3e9fbd(0x22f)]('div',{'className':_0x3e9fbd(0x1d0),'children':'Authorization:'}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3221f9['t'](_0x3e9fbd(0x171))})]})]})]})]})]})]}),i['jsx'](f[_0x3e9fbd(0x22c)],{'onClick':_0x3f184c,'disabled':!_0xc2adc8||_0x4fd0ab,'className':_0x3e9fbd(0x152),'children':_0x4fd0ab?i[_0x3e9fbd(0x148)]('span',{'className':_0x3e9fbd(0x13c),'children':[i['jsx'](_0x3e9fbd(0x197),{'children':'⟲'}),_0x3221f9['t'](_0x3e9fbd(0x1ee))]}):i[_0x3e9fbd(0x148)](_0x3e9fbd(0x197),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x3e9fbd(0x22f)](H,{}),_0x3221f9['t'](_0x3e9fbd(0x22e))]})}),i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x223),'children':i[_0x3e9fbd(0x148)]('div',{'className':'univer-flex\x20univer-gap-3','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x197),{'className':_0x3e9fbd(0x20c),'children':'💡'}),i['jsxs'](_0x3e9fbd(0x115),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x3e9fbd(0x22f)](_0x3e9fbd(0x115),{'className':_0x3e9fbd(0x20d),'children':'Configuration\x20Notes:'}),i[_0x3e9fbd(0x148)](_0x3e9fbd(0x115),{'children':['•',_0x3221f9['t']('mcpConfig.note1')]}),i['jsxs'](_0x3e9fbd(0x115),{'children':['•',_0x3221f9['t'](_0x3e9fbd(0x119))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0xfd1766(0x1f1)],xe=(_0x1fcd13,_0x4ea563,_0x5e87a7,_0x58491b)=>{const _0xa26c70=_0xfd1766;for(var _0x18655c=_0x58491b>0x1?void 0x0:_0x58491b?me(_0x4ea563,_0x5e87a7):_0x4ea563,_0x2d46d7=_0x1fcd13[_0xa26c70(0x1d2)]-0x1,_0x6d7e5b;_0x2d46d7>=0x0;_0x2d46d7--)(_0x6d7e5b=_0x1fcd13[_0x2d46d7])&&(_0x18655c=_0x6d7e5b(_0x18655c)||_0x18655c);return _0x18655c;},g=(_0x5bc2b5,_0x5316b7)=>(_0x40826b,_0x16db52)=>_0x5316b7(_0x40826b,_0x16db52,_0x5bc2b5);const O=_0xfd1766(0x16f),D=_0xfd1766(0x1eb);exports[_0xfd1766(0x228)]=class extends u[_0xfd1766(0x214)]{constructor(_0x4f84ca,_0x2925a2,_0x308998,_0x3be84d,_0x2abff6,_0x2d02db,_0x18d6a1,_0x13a351,_0x312248,_0x5aa67d){const _0x36847f=_0xfd1766;super(),I(this,_0x36847f(0x234),new M[(_0x36847f(0x225))](!0x1)),I(this,_0x36847f(0x27e),new M['BehaviorSubject']({})),I(this,_0x36847f(0x212),new M[(_0x36847f(0x225))]({})),I(this,_0x36847f(0x232),new M[(_0x36847f(0x225))]('')),I(this,_0x36847f(0x17f),async _0x11fed8=>{const _0x31a5e2=_0x36847f;var _0x4e0fed,_0x4f92b3;this[_0x31a5e2(0x234)][_0x31a5e2(0x117)](!0x0);try{const _0x57508e=await this[_0x31a5e2(0x26c)](_0x11fed8);if(!_0x57508e[_0x31a5e2(0x290)]){this['_messageService'][_0x31a5e2(0x145)]({'type':f['MessageType'][_0x31a5e2(0x121)],'content':_0x57508e[_0x31a5e2(0x200)]||this[_0x31a5e2(0x19a)]['t'](_0x31a5e2(0x11f))});return;}_0x11fed8[_0x31a5e2(0x274)]?await this['_localStorageService']['setItem'](O,_0x11fed8[_0x31a5e2(0x274)]['trim']()):await this[_0x31a5e2(0x1d5)][_0x31a5e2(0x204)](O),this[_0x31a5e2(0x232)][_0x31a5e2(0x117)](((_0x4e0fed=_0x11fed8['apiKey'])==null?void 0x0:_0x4e0fed[_0x31a5e2(0x1f0)]())||''),this[_0x31a5e2(0x1d6)]['__setCustomHeaders']({'Authorization':_0x31a5e2(0x27f)+((_0x4f92b3=_0x11fed8[_0x31a5e2(0x274)])==null?void 0x0:_0x4f92b3[_0x31a5e2(0x1f0)]())}),this[_0x31a5e2(0x218)][_0x31a5e2(0x145)]({'type':f['MessageType'][_0x31a5e2(0x182)],'content':this['_localeService']['t'](_0x31a5e2(0x149))}),setTimeout(()=>{const _0x408a92=_0x31a5e2;this['_dialogService'][_0x408a92(0x155)](D);},0x320);}catch(_0x5e6dec){this[_0x31a5e2(0x184)][_0x31a5e2(0x262)](_0x31a5e2(0x1db),_0x5e6dec),this[_0x31a5e2(0x218)][_0x31a5e2(0x145)]({'type':f['MessageType'][_0x31a5e2(0x121)],'content':this[_0x31a5e2(0x19a)]['t'](_0x31a5e2(0x206))});}finally{this[_0x31a5e2(0x234)]['next'](!0x1);}}),(this['_injector']=_0x4f84ca,this[_0x36847f(0x16e)]=_0x2925a2,this[_0x36847f(0x28e)]=_0x308998,this[_0x36847f(0x1d5)]=_0x3be84d,this['_dialogService']=_0x2abff6,this[_0x36847f(0x218)]=_0x2d02db,this['_componentManager']=_0x18d6a1,this['_localeService']=_0x13a351,this[_0x36847f(0x184)]=_0x312248,this[_0x36847f(0x1d6)]=_0x5aa67d,this[_0x36847f(0x1b4)](),this[_0x36847f(0x198)](),this[_0x36847f(0x1d1)]());}[_0xfd1766(0x1a2)](){const _0x257cc6=_0xfd1766,_0x5de5b0=this[_0x257cc6(0x28e)][_0x257cc6(0x224)](P);_0x5de5b0!=null&&_0x5de5b0['showDeveloperTools']&&this['_dialogService'][_0x257cc6(0x111)]({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x257cc6(0x14a)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x234dc9=_0x257cc6;this[_0x234dc9(0x1c5)]['close'](D);}});}['getCurrentConfig'](){const _0x4e497a=_0xfd1766;return this['_mcpCoreConfig$'][_0x4e497a(0x15c)];}[_0xfd1766(0x1d1)](){const _0xcc206a=_0xfd1766;this['disposeWithMe'](this[_0xcc206a(0x114)][_0xcc206a(0x144)](_0xcc206a(0x14a),this[_0xcc206a(0x11d)]()));}['_createConfigPanelComponent'](){const _0x5cb17f=_0xfd1766;return v[_0x5cb17f(0x216)](()=>{const _0x577664=_0x5cb17f;var _0x5d97a5,_0x2245ca,_0x5a8669;return i[_0x577664(0x22f)](V,{'config':this['_config$'][_0x577664(0x15c)],'mcpCoreConfig':this[_0x577664(0x27e)][_0x577664(0x15c)],'currentApiKey$':this[_0x577664(0x232)],'onSave':this[_0x577664(0x17f)],'loading':this['_loading$'][_0x577664(0x15c)],'connectionStatus$':(_0x5d97a5=this[_0x577664(0x1d6)])==null?void 0x0:_0x5d97a5['connectionStatus$'],'connectionError$':(_0x2245ca=this['_mcpConnectionController'])==null?void 0x0:_0x2245ca[_0x577664(0x11c)],'currentSessionId$':(_0x5a8669=this[_0x577664(0x1d6)])==null?void 0x0:_0x5a8669[_0x577664(0x277)]});},this[_0x5cb17f(0x217)]);}[_0xfd1766(0x1b4)](){const _0x535fef=_0xfd1766;this[_0x535fef(0x196)](this[_0x535fef(0x28e)][_0x535fef(0x10e)](s[_0x535fef(0x18a)])[_0x535fef(0x227)](_0x1559ee=>{const _0x5855e5=_0x535fef;this[_0x5855e5(0x27e)]['next'](_0x1559ee||{});}));const _0x5762c9=this[_0x535fef(0x28e)][_0x535fef(0x224)](s[_0x535fef(0x18a)]);this[_0x535fef(0x27e)][_0x535fef(0x117)](_0x5762c9||{}),this[_0x535fef(0x196)](this[_0x535fef(0x28e)][_0x535fef(0x10e)](P)['subscribe'](_0x5b2c72=>{const _0x2bc72f=_0x535fef;this[_0x2bc72f(0x212)][_0x2bc72f(0x117)](_0x5b2c72||{});}));const _0xf7562=this[_0x535fef(0x28e)][_0x535fef(0x224)](P);this[_0x535fef(0x212)][_0x535fef(0x117)](_0xf7562||{});}async['_loadStoredApiKey'](){const _0x28998d=_0xfd1766,_0x3ab67e=this[_0x28998d(0x28e)][_0x28998d(0x224)](P);if(!(_0x3ab67e!=null&&_0x3ab67e[_0x28998d(0x1f5)]))return;const _0x4cff1a=await this[_0x28998d(0x1d5)]['getItem'](O);_0x4cff1a&&(this[_0x28998d(0x1d6)][_0x28998d(0x237)]({'Authorization':_0x28998d(0x27f)+_0x4cff1a}),this[_0x28998d(0x232)][_0x28998d(0x117)](_0x4cff1a));}async[_0xfd1766(0x26c)](_0x140a19){const _0x4d9100=_0xfd1766;if(!_0x140a19[_0x4d9100(0x274)]||_0x140a19[_0x4d9100(0x274)][_0x4d9100(0x1f0)]()[_0x4d9100(0x1d2)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4d9100(0x19a)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x140a19[_0x4d9100(0x274)][_0x4d9100(0x1f0)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4d9100(0x19a)]['t'](_0x4d9100(0x118))};try{const _0x52469a=await this[_0x4d9100(0x217)][_0x4d9100(0x25d)](s[_0x4d9100(0x138)])[_0x4d9100(0x162)](_0x140a19[_0x4d9100(0x274)]['trim']());return _0x52469a[_0x4d9100(0x290)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x52469a[_0x4d9100(0x262)]||this[_0x4d9100(0x19a)]['t'](_0x4d9100(0x147))};}catch(_0x29560c){return console[_0x4d9100(0x222)](_0x4d9100(0x25c),_0x29560c),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u['Inject'](u[_0xfd1766(0x26f)])),g(0x1,v[_0xfd1766(0x1cb)]),g(0x2,u[_0xfd1766(0x221)]),g(0x3,u[_0xfd1766(0x157)]),g(0x4,v[_0xfd1766(0x24b)]),g(0x5,v[_0xfd1766(0x1dc)]),g(0x6,u[_0xfd1766(0x280)](v[_0xfd1766(0x282)])),g(0x7,u[_0xfd1766(0x280)](u[_0xfd1766(0x1c8)])),g(0x8,u[_0xfd1766(0x169)]),g(0x9,u['Inject'](s['MCPConnectionController']))],exports['MCPConfigUIController']);const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0xfd1766(0x192)],'handler':async(_0x52f264,_0x204fad)=>(_0x52f264['get'](exports[_0xfd1766(0x228)])[_0xfd1766(0x1a2)](),!0x0)};function Z(_0x1215a4,_0x5b6199){const _0x35b33a=_0xfd1766;switch(_0x1215a4){case s[_0x35b33a(0x17a)][_0x35b33a(0x215)]:return'mcpStatus.disconnected';case s[_0x35b33a(0x17a)]['CONNECTING']:return _0x35b33a(0x27a);case s[_0x35b33a(0x17a)]['CONNECTED']:return'mcpStatus.connected';case s[_0x35b33a(0x17a)][_0x35b33a(0x1e3)]:switch(_0x5b6199){case s['MCPConnectionError'][_0x35b33a(0x249)]:return _0x35b33a(0x295);case s[_0x35b33a(0x190)][_0x35b33a(0x19f)]:return _0x35b33a(0x255);case s[_0x35b33a(0x190)][_0x35b33a(0x193)]:return _0x35b33a(0x166);case s[_0x35b33a(0x190)][_0x35b33a(0x173)]:return'mcpStatus.maxRetriesExceeded';default:return _0x35b33a(0x15f);}case s[_0x35b33a(0x17a)][_0x35b33a(0x17b)]:return _0x35b33a(0x14d);default:return _0x35b33a(0x24e);}}function Se(_0x24eaac,_0x4050b8,_0x323eb2,_0x37598f=!0x0){const _0x41b54a=_0xfd1766,_0x24f6a7=Z(_0x24eaac,_0x4050b8),_0x5001e6=_0x323eb2['t'](_0x24f6a7);return _0x37598f?_0x24eaac===s['MCPConnectionStatus'][_0x41b54a(0x215)]&&_0x4050b8===s[_0x41b54a(0x190)]['UNAUTHORIZED']?_0x5001e6+'\x20-\x20'+_0x323eb2['t'](_0x41b54a(0x15a)):_0x24eaac===s[_0x41b54a(0x17a)]['CONNECTED']?''+_0x5001e6:_0x24eaac===s[_0x41b54a(0x17a)][_0x41b54a(0x215)]||_0x24eaac===s[_0x41b54a(0x17a)]['FAILED']?_0x5001e6+'\x20-\x20'+_0x323eb2['t'](_0x41b54a(0x248)):_0x5001e6:_0x5001e6;}function Pe(_0x282f59){const _0x42c68b=_0xfd1766;switch(_0x282f59){case s[_0x42c68b(0x17a)][_0x42c68b(0x151)]:return _0x42c68b(0x252);case s[_0x42c68b(0x17a)][_0x42c68b(0x110)]:case s['MCPConnectionStatus'][_0x42c68b(0x17b)]:return _0x42c68b(0x131);case s[_0x42c68b(0x17a)]['FAILED']:case s[_0x42c68b(0x17a)][_0x42c68b(0x215)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function W(_0x544b78){const _0x16cc05=_0xfd1766,{status$:_0xf33b0e,error$:_0xf05d31,onConfigure:_0x1e5752,showClickable:_0x1cc638=!0x0}=_0x544b78,_0x50e4d8=v[_0x16cc05(0x174)](_0xf33b0e,s[_0x16cc05(0x17a)][_0x16cc05(0x215)]),_0x41093d=v[_0x16cc05(0x174)](_0xf05d31,s[_0x16cc05(0x190)]['NONE']),_0x43e08b=v[_0x16cc05(0x26a)](u['LocaleService']),_0x2a04eb=_0x50e4d8===s['MCPConnectionStatus'][_0x16cc05(0x151)];_0x50e4d8===s[_0x16cc05(0x17a)]['CONNECTING']||s[_0x16cc05(0x17a)][_0x16cc05(0x17b)];const _0x447577=_0x43e08b['t'](Z(_0x50e4d8,_0x41093d)),_0x15bc36=Se(_0x50e4d8,_0x41093d,_0x43e08b,_0x1cc638),_0x3f133e=Pe(_0x50e4d8),_0x21ad6e=_0x2a04eb?i[_0x16cc05(0x22f)](q,{}):i[_0x16cc05(0x22f)](Y,{}),_0x1c3c3a=d[_0x16cc05(0x13d)](()=>{_0x1cc638&&_0x1e5752&&_0x1e5752();},[_0x1cc638,_0x1e5752]);function _0x2d5036(){const _0x51ed17=_0x16cc05;return i[_0x51ed17(0x148)](_0x51ed17(0x115),{'className':f[_0x51ed17(0x1a7)](_0x51ed17(0x27c),_0x1cc638&&_0x1e5752&&_0x51ed17(0x140)),'role':_0x51ed17(0x1ab),'onClick':_0x1cc638&&_0x1e5752?_0x1c3c3a:void 0x0,'children':[i['jsx']('div',{'className':f[_0x51ed17(0x1a7)](_0x51ed17(0x1b5),_0x3f133e),'children':_0x21ad6e}),i[_0x51ed17(0x22f)](_0x51ed17(0x115),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x447577})]});}return i[_0x16cc05(0x22f)](f[_0x16cc05(0x271)],{'title':_0x15bc36,'placement':_0x16cc05(0x1a5),'children':_0x2d5036()});}var Ie=Object[_0xfd1766(0x1f1)],_e=(_0x541388,_0x513c5c,_0x4d871b,_0x5efc7c)=>{for(var _0x3ac906=_0x5efc7c>0x1?void 0x0:_0x5efc7c?Ie(_0x513c5c,_0x4d871b):_0x513c5c,_0xd120f5=_0x541388['length']-0x1,_0x5710e1;_0xd120f5>=0x0;_0xd120f5--)(_0x5710e1=_0x541388[_0xd120f5])&&(_0x3ac906=_0x5710e1(_0x3ac906)||_0x3ac906);return _0x3ac906;},N=(_0x2cd36d,_0x490311)=>(_0x1863ee,_0x1846f9)=>_0x490311(_0x1863ee,_0x1846f9,_0x2cd36d);exports['MCPConnectionUIController']=class extends u[_0xfd1766(0x214)]{constructor(_0x33aa17,_0x132b76,_0x5edd0b,_0xc28411){const _0x2d7c30=_0xfd1766;super(),this[_0x2d7c30(0x217)]=_0x33aa17,this['_connectionController']=_0x132b76,this[_0x2d7c30(0x16e)]=_0x5edd0b,this[_0x2d7c30(0x28e)]=_0xc28411,this[_0x2d7c30(0x14c)](),this[_0x2d7c30(0x259)]();}[_0xfd1766(0x14c)](){const _0x1f0483=_0xfd1766,_0x2782e2=this[_0x1f0483(0x28e)][_0x1f0483(0x224)](P);_0x2782e2!=null&&_0x2782e2[_0x1f0483(0x1f5)]&&(this[_0x1f0483(0x1de)]['enableAutoConnect']=!0x1);}[_0xfd1766(0x259)](){const _0x5d4531=_0xfd1766,_0x557591=this[_0x5d4531(0x28e)][_0x5d4531(0x224)](P);(_0x557591==null?void 0x0:_0x557591[_0x5d4531(0x1b8)])!==!0x1&&this['disposeWithMe'](this['_uiPartsService']['registerComponent'](v[_0x5d4531(0x195)][_0x5d4531(0x10d)],()=>{const _0xbf1e22=_0x5d4531;var _0xff4eda;return v[_0xbf1e22(0x216)](ye({'status$':this['_connectionController'][_0xbf1e22(0x211)],'error$':this[_0xbf1e22(0x1de)][_0xbf1e22(0x11c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xff4eda=_0x557591==null?void 0x0:_0x557591[_0xbf1e22(0x1f5)])!=null?_0xff4eda:!0x1}),this['_injector']);}));}[_0xfd1766(0x238)](){const _0x28342e=_0xfd1766;this[_0x28342e(0x217)][_0x28342e(0x25d)](exports[_0x28342e(0x228)])['showConfigPanel']();}},exports[_0xfd1766(0x194)]=_e([N(0x0,u[_0xfd1766(0x280)](u[_0xfd1766(0x26f)])),N(0x1,u[_0xfd1766(0x280)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u[_0xfd1766(0x221)])],exports['MCPConnectionUIController']);function ye(_0x5bdbad){const {status$:_0x4b6ece,error$:_0x5d5201,onConfigure:_0x3d2c9b,showClickable:_0x3cb05f}=_0x5bdbad;return function(){return i['jsx'](W,{'status$':_0x4b6ece,'error$':_0x5d5201,'onConfigure':_0x3d2c9b,'showClickable':_0x3cb05f});};}function Me(_0x29a3f3){const _0x4a8082=_0xfd1766;return{'id':b['id'],'type':v[_0x4a8082(0x24d)][_0x4a8082(0x243)],'icon':_0x4a8082(0x268),'title':_0x4a8082(0x273),'tooltip':_0x4a8082(0x273)};}function _0x3dad(){const _0x13ecde=['univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','https://console.univer.plus','fill','toStringTag','univer-bg-blue-500','mcp-config-dialog','currentColor','UniverMCPUIPlugin','mcpConfig.saving','forwardRef','trim','getOwnPropertyDescriptor','mcpConfig.connectionStatus.failed','1599416bVgxpj','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','showDeveloperTools','保存配置','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.connectionStatus.connecting','mcpConfig.apiKey','最大重试次数','clipPath','_commandService','mcpConfig.connectionStatus.connected','配置无效','330360WvCJef','errorMessage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','OTHERS','Disconnected','removeItem','univer-text-blue-600','mcpConfig.configError','http','476463qgqvTC','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','has','配置保存失败','univer-shrink-0\x20univer-text-blue-500','univer-font-medium','11bNNEPh','svg','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','connectionStatus$','_config$','mergeMenu','Disposable','DISCONNECTED','connectInjector','_injector','_messageService','current','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','text','点击配置\x20MCP','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','createElement','enUS','mcpConfig.connectionError.unauthorized','IConfigService','warn','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','getConfig','BehaviorSubject','defs','subscribe','MCPConfigUIController','重启您的\x20MCP\x20客户端以使配置生效','Failed\x20to\x20save\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Button','white','mcpConfig.save','jsx','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_apiKey$','children','_loading$','round','MCP\x20连接中...','__setCustomHeaders','_handleConfigure','0\x200\x2017\x2016','OffLineIcon','attrs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','pluginName','MCP:\x20未授权','BUTTON','WebSocketService','MCP\x20客户端配置','defineProperty','_config','mcpStatus.clickToConnect','UNAUTHORIZED','evenodd','IDialogService','univer-text-gray-400','MenuItemType','mcpStatus.unknown','univer-bg-red-500','2838052XXxerv','xlink:href','univer-text-green-500','univer-min-w-0\x20univer-flex-1','ICommandService','mcpStatus.sessionOccupied','url(#$1','displayName','idSuffix','_initStatusComponent','on-line-icon','Click\x20to\x20configure\x20MCP','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','get','1043300pmiFXx','Enter\x20your\x20API\x20key','CloseIcon','off','error','mcpConfig.connectionError.networkError','Configuration\x20saved\x20successfully','Configuration\x20Parameters:','symbol','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MenuIcon','mcpConfig.apiApplyInfo.univerAiLabel','useDependency','CheckMarkIcon','_validateConfig','API\x20密钥','ISocketService','Injector','Connection\x20Failed','Tooltip','142704SeHuPn','mcpConfig.title','apiKey','重连中...','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','sessionId$','启用身份验证','univer-bg-green-500','mcpStatus.connecting','MCP:\x20Unauthorized','univer-flex\x20univer-items-center','univer.plus','_mcpCoreConfig$','Bearer\x20','Inject','请输入您的\x20API\x20密钥','ComponentManager','univer-space-y-2','mcpConfig.configStep3','mcpConfig.apiKeyPlaceholder','off-line-icon_clip0_910_343','Univer\x20AI\x20Console','univer-flex\x20univer-items-center\x20univer-gap-3','univer-shrink-0\x20univer-text-red-500','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20密钥无效,请检查密钥是否正确','MCP\x20Unknown\x20Status','mcpConfig.configParameters','_configService','univer-text-red-500','isValid','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','MCP\x20状态未知','_blank','mcpStatus.unauthorized','onStarting','MCP:\x20Session\x20ID\x20Occupied','HEADER_MENU','subscribeConfigValue$','univer-flex\x20univer-items-start\x20univer-gap-2','CONNECTING','open','IMenuManagerService','_initializeCommands','_componentManager','div','Module','next','mcpConfig.validation.apiKeyTooShort','mcpConfig.note2','tag','连接中...','connectionError$','_createConfigPanelComponent','zhCN','mcpConfig.validation.invalidConfig','配置参数:','Error','Click\x20to\x20connect\x20MCP','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','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','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','什么是\x20API\x20密钥?','MCP:\x20会话\x20ID\x20已被占用','MCP\x20已连接','MCP\x20Client\x20Configuration','colorChannel1','_menuManagerService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex-1','off-line-icon','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20已断开','univer-text-yellow-500','help-icon','univerjs-icon\x20univerjs-icon-','2AHlFCY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-xs\x20univer-text-gray-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCPConnectionController','useState','RibbonStartGroup','label','univer-flex\x20univer-items-center\x20univer-gap-2','useCallback','defIds','MCP\x20Configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','将以下配置添加到您的\x20MCP\x20客户端设置中:','Invalid\x20configuration','univer-size-2\x20univer-rounded-full','register','show','univer.ai','mcpConfig.validation.invalidApiKey','jsxs','mcpConfig.configSaved','MCPConfigPanel','启用身份验证以获得安全连接','_initAutoConnect','mcpStatus.retrying','MCP\x20重连中...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','MCP:\x20超出最大重试次数','CONNECTED','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','MCP:\x20Network\x20Error','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','close','replace','ILocalStorageService','substring','univer-text-sm\x20univer-font-medium','mcpStatus.clickToConfigure','on-line-icon_clip0_910_349','value','0\x200\x2016\x2016','mcpConfig.configStep1','mcpStatus.failed','univer_session_id:','entries','validateApiKey','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','网络连接错误,请检查您的网络连接','mcpStatus.networkError','HelpIcon','mcpConfig.apiKeyHint','ILogService','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','https://mcp.univer.ai/mcp/?univer_session_id=','复制以下\x20JSON\x20配置','univer-text-xs\x20univer-text-gray-600','_uiPartsService','mcp.apiKey','http://www.w3.org/2000/svg','mcpConfig.authorizationDescription','配置保存成功','MAX_RETRIES_EXCEEDED','useObservable','mcpConfig.sessionIdDescription','MCP:\x20Max\x20Retries\x20Exceeded','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','<API_KEY>','配置步骤:','MCPConnectionStatus','RETRYING','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','M0\x200H16V16H0z','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','_handleConfigSave','path','check-mark-icon','Success','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','_logService','您的\x20API\x20密钥安全存储在本地存储中','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','add','assign','UniverIcon','MCP_PLUGIN_CONFIG_KEY','<SESSION_ID>','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','pre','MCP\x20Disconnected','MCPConnectionError','权限验证失败,请检查您的\x20API\x20密钥','COMMAND','NETWORK_ERROR','MCPConnectionUIController','BuiltInUIPart','disposeWithMe','span','_loadStoredApiKey','MCP:\x20网络错误','_localeService','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','MCP\x20Connected','Univer\x20AI\x20控制台','SESSION_ID_OCCUPIED','forEach','MCP\x20Connecting...','showConfigPanel','none','mask','bottom','配置\x20MCP\x20使用\x20AI\x20操作电子表格','clsx','includes','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-white','button','mcpConfig.apiApplyInfo.getStarted','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpServerUrl','已连接','close-icon','Input','API\x20密钥不能为空','_initConfigSync','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','2071008MLOmcx','showStatus','string','24kogAMd','https://console.univer.ai','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.connectionError.sessionOccupied','mcpConfig.connectionError.maxRetriesExceeded','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-space-y-4','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','NONE','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_dialogService','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','map','LocaleService','univer-space-y-3','您的\x20API\x20密钥将在此浏览器中本地存储','IUIPartsService','API\x20密钥长度至少需要\x2010\x20位','MCP\x20Retrying...','将配置添加到您的\x20MCP\x20客户端设置文件中','8pOrrEm','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_registerComponent','length','1em','连接失败','_localStorageService','_mcpConnectionController','random','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.retrying','点击连接\x20MCP','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','IMessageService','mcpConfig.apiApplyInfo.title','_connectionController','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCPUIMenuController','push','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','FAILED','Session\x20ID','Enable\x20Authentication'];_0x3dad=function(){return _0x13ecde;};return _0x3dad();}const Ne={[v[_0xfd1766(0x13a)][_0xfd1766(0x202)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x4d02(_0x597552,_0xfe13e4){_0x597552=_0x597552-0x10d;const _0x3dad9a=_0x3dad();let _0x4d0211=_0x3dad9a[_0x597552];return _0x4d0211;}var be=Object[_0xfd1766(0x1f1)],je=(_0x269ab5,_0x4d05e1,_0x4c0c23,_0x4f3681)=>{const _0x174cf2=_0xfd1766;for(var _0x10bd97=_0x4f3681>0x1?void 0x0:_0x4f3681?be(_0x4d05e1,_0x4c0c23):_0x4d05e1,_0x2092e4=_0x269ab5[_0x174cf2(0x1d2)]-0x1,_0x2978c6;_0x2092e4>=0x0;_0x2092e4--)(_0x2978c6=_0x269ab5[_0x2092e4])&&(_0x10bd97=_0x2978c6(_0x10bd97)||_0x10bd97);return _0x10bd97;},z=(_0x44771e,_0x66bd88)=>(_0x3932c9,_0x55bd00)=>_0x66bd88(_0x3932c9,_0x55bd00,_0x44771e);exports[_0xfd1766(0x1e0)]=class extends u[_0xfd1766(0x214)]{constructor(_0x1e42be,_0x4cdf13){const _0x135c35=_0xfd1766;super(),this[_0x135c35(0x1fc)]=_0x1e42be,this['_menuManagerService']=_0x4cdf13,this[_0x135c35(0x113)](),this[_0x135c35(0x18d)]();}['_initializeCommands'](){const _0x52113b=_0xfd1766;[b][_0x52113b(0x1a0)](_0x4e8999=>{const _0x10cfce=_0x52113b;this[_0x10cfce(0x196)](this[_0x10cfce(0x1fc)]['registerCommand'](_0x4e8999));});}[_0xfd1766(0x18d)](){const _0x5660b6=_0xfd1766;this[_0x5660b6(0x12b)][_0x5660b6(0x213)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0xfd1766(0x254)]),z(0x1,v[_0xfd1766(0x112)])],exports[_0xfd1766(0x1e0)]);const Ee={'mcpStatus':{'disconnected':_0xfd1766(0x18f),'connecting':_0xfd1766(0x1a1),'connected':_0xfd1766(0x19d),'failed':_0xfd1766(0x164),'retrying':_0xfd1766(0x1cd),'unknown':_0xfd1766(0x28c),'unauthorized':_0xfd1766(0x27b),'sessionOccupied':_0xfd1766(0x297),'networkError':_0xfd1766(0x153),'maxRetriesExceeded':_0xfd1766(0x176),'clickToConnect':_0xfd1766(0x122),'clickToConfigure':_0xfd1766(0x25b)},'mcpConfig':{'title':_0xfd1766(0x13f),'description':_0xfd1766(0x22b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xfd1766(0x25f),'apiKeyHint':_0xfd1766(0x135),'enableAuth':_0xfd1766(0x1e5),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xfd1766(0x129),'configInstructions':_0xfd1766(0x163),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xfd1766(0x1a9),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xfd1766(0x1c4),'sessionId':_0xfd1766(0x1e4),'sessionIdDescription':_0xfd1766(0x19b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xfd1766(0x265),'maxRetries':_0xfd1766(0x292),'save':'Save\x20Configuration','saving':'Saving...','note1':_0xfd1766(0x1d8),'note2':_0xfd1766(0x1c0),'configSaved':_0xfd1766(0x264),'configError':_0xfd1766(0x22a),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xfd1766(0x1f7),'univerAiLabel':_0xfd1766(0x287),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xfd1766(0x12f),'invalidConfig':_0xfd1766(0x142),'invalidApiKey':_0xfd1766(0x1ad)},'connectionStatus':{'disconnected':_0xfd1766(0x203),'connecting':'Connecting...','connected':'Connected','failed':_0xfd1766(0x270),'retrying':_0xfd1766(0x19c)},'connectionError':{'unauthorized':_0xfd1766(0x1c2),'sessionOccupied':_0xfd1766(0x201),'networkError':_0xfd1766(0x1df),'maxRetriesExceeded':_0xfd1766(0x1e2)}}},we={'mcpStatus':{'disconnected':_0xfd1766(0x130),'connecting':_0xfd1766(0x236),'connected':_0xfd1766(0x128),'failed':'MCP\x20连接失败','retrying':_0xfd1766(0x14e),'unknown':_0xfd1766(0x293),'unauthorized':_0xfd1766(0x242),'sessionOccupied':_0xfd1766(0x127),'networkError':_0xfd1766(0x199),'maxRetriesExceeded':_0xfd1766(0x150),'clickToConnect':_0xfd1766(0x1da),'clickToConfigure':_0xfd1766(0x21c)},'mcpConfig':{'title':_0xfd1766(0x240),'description':_0xfd1766(0x1a6),'apiKey':_0xfd1766(0x26d),'apiKeyPlaceholder':_0xfd1766(0x281),'apiKeyHint':_0xfd1766(0x1ca),'enableAuth':_0xfd1766(0x278),'enableAuthHint':_0xfd1766(0x14b),'connectionInfo':_0xfd1766(0x245),'mcpClientConfig':_0xfd1766(0x245),'configInstructions':_0xfd1766(0x141),'configStepTitle':_0xfd1766(0x179),'configStep1':_0xfd1766(0x16c),'configStep2':_0xfd1766(0x1ce),'configStep3':_0xfd1766(0x229),'sessionId':'会话ID','sessionIdDescription':_0xfd1766(0x23f),'authorizationDescription':_0xfd1766(0x137),'configParameters':_0xfd1766(0x120),'maxRetries':_0xfd1766(0x1fa),'save':_0xfd1766(0x1f6),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0xfd1766(0x185),'configSaved':_0xfd1766(0x172),'configError':_0xfd1766(0x20b),'apiApplyInfo':{'title':_0xfd1766(0x126),'description':_0xfd1766(0x177),'univerAiLabel':_0xfd1766(0x19e),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0xfd1766(0x1b3),'apiKeyTooShort':_0xfd1766(0x1cc),'invalidConfig':_0xfd1766(0x1fe),'invalidApiKey':_0xfd1766(0x28b)},'connectionStatus':{'disconnected':'未连接','connecting':_0xfd1766(0x11b),'connected':_0xfd1766(0x1b0),'failed':_0xfd1766(0x1d4),'retrying':_0xfd1766(0x275)},'connectionError':{'unauthorized':_0xfd1766(0x191),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0xfd1766(0x165),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0xfd1766(0x246)],Oe=Object['getOwnPropertyDescriptor'],De=(_0x449428,_0x23e936,_0x5a4e55)=>_0x23e936 in _0x449428?Ae(_0x449428,_0x23e936,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a4e55}):_0x449428[_0x23e936]=_0x5a4e55,Ue=(_0x512924,_0xdc8afc,_0x4c807d,_0x47f742)=>{const _0x4cf789=_0xfd1766;for(var _0x564515=_0x47f742>0x1?void 0x0:_0x47f742?Oe(_0xdc8afc,_0x4c807d):_0xdc8afc,_0x58db72=_0x512924[_0x4cf789(0x1d2)]-0x1,_0x3e71fd;_0x58db72>=0x0;_0x58db72--)(_0x3e71fd=_0x512924[_0x58db72])&&(_0x564515=_0x3e71fd(_0x564515)||_0x564515);return _0x564515;},y=(_0x25a985,_0x887123)=>(_0x30d430,_0x4d08af)=>_0x887123(_0x30d430,_0x4d08af,_0x25a985),$e=(_0x3195f2,_0x32f984,_0xdb571b)=>De(_0x3195f2,_0x32f984+'',_0xdb571b);exports[_0xfd1766(0x1ed)]=class extends u['Plugin']{constructor(_0x35f370=L,_0x331e6f,_0xd6ef1a,_0x1803b8,_0x10bfe6,_0x1553b2){const _0x4ac8fd=_0xfd1766;super(),this[_0x4ac8fd(0x247)]=_0x35f370,this[_0x4ac8fd(0x217)]=_0x331e6f,this[_0x4ac8fd(0x28e)]=_0xd6ef1a,this['_uiPartsService']=_0x1803b8,this[_0x4ac8fd(0x1d5)]=_0x10bfe6,this[_0x4ac8fd(0x19a)]=_0x1553b2;const {..._0x133ccf}=u['merge']({},L,this[_0x4ac8fd(0x247)]);this[_0x4ac8fd(0x28e)]['setConfig'](P,_0x133ccf);}async[_0xfd1766(0x296)](){const _0x4cab59=_0xfd1766,_0x9165ee=[[exports['MCPConnectionUIController']],[exports['MCPConfigUIController']],[exports['MCPUIMenuController']]];this[_0x4cab59(0x217)][_0x4cab59(0x20a)](A[_0x4cab59(0x26e)])||_0x9165ee[_0x4cab59(0x1e1)]([A[_0x4cab59(0x26e)],{'useClass':A[_0x4cab59(0x244)]}]),_0x9165ee['forEach'](_0x3e123a=>this[_0x4cab59(0x217)][_0x4cab59(0x187)](_0x3e123a)),this[_0x4cab59(0x217)]['get'](exports[_0x4cab59(0x194)]),this['_injector'][_0x4cab59(0x25d)](exports[_0x4cab59(0x228)]),this['_injector'][_0x4cab59(0x25d)](exports['MCPUIMenuController']);}},$e(exports[_0xfd1766(0x1ed)],_0xfd1766(0x241),'MCP_UI_PLUGIN'),exports[_0xfd1766(0x1ed)]=Ue([u['DependentOn'](s['UniverMCPPlugin']),y(0x1,u['Inject'](u[_0xfd1766(0x26f)])),y(0x2,u[_0xfd1766(0x221)]),y(0x3,v[_0xfd1766(0x1cb)]),y(0x4,u[_0xfd1766(0x157)]),y(0x5,u[_0xfd1766(0x280)](u[_0xfd1766(0x1c8)]))],exports['UniverMCPUIPlugin']),exports[_0xfd1766(0x14a)]=V,exports['MCPStatusDisplay']=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0xfd1766(0x21f)]=Ee,exports[_0xfd1766(0x11e)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3c4b91=_0x5814;function _0x3b1f(){const _0x59dd31=['Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1498190royygH','Failed\x20to\x20save\x20configuration','113SvJRgj','306243xAJhtE','7268648zrplzN','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','Retrying...','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','Connected','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','405948fanBGV','Invalid\x20configuration','40VouFYA','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','98AiBrsK','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','384JoyORK','exports','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','33176jyuTZI','MCP\x20Client\x20Configuration','28930484dlxDKQ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','Enable\x20Authentication','Configuration\x20Steps:','Session\x20ID','12778fzyEWc','Get\x20your\x20API\x20key\x20in\x20seconds','Save\x20Configuration'];_0x3b1f=function(){return _0x59dd31;};return _0x3b1f();}function _0x5814(_0x578e2b,_0x20bc46){_0x578e2b=_0x578e2b-0x176;const _0x3b1f16=_0x3b1f();let _0x58148c=_0x3b1f16[_0x578e2b];return _0x58148c;}(function(_0x29ae39,_0x2fdffc){const _0x2154d0=_0x5814,_0x10091d=_0x29ae39();while(!![]){try{const _0x1fbe1f=-parseInt(_0x2154d0(0x182))/0x1*(parseInt(_0x2154d0(0x1a6))/0x2)+-parseInt(_0x2154d0(0x198))/0x3*(parseInt(_0x2154d0(0x19e))/0x4)+-parseInt(_0x2154d0(0x180))/0x5+-parseInt(_0x2154d0(0x191))/0x6*(parseInt(_0x2154d0(0x196))/0x7)+parseInt(_0x2154d0(0x184))/0x8+-parseInt(_0x2154d0(0x183))/0x9*(-parseInt(_0x2154d0(0x193))/0xa)+parseInt(_0x2154d0(0x1a0))/0xb;if(_0x1fbe1f===_0x2fdffc)break;else _0x10091d['push'](_0x10091d['shift']());}catch(_0x3dd9f4){_0x10091d['push'](_0x10091d['shift']());}}}(_0x3b1f,0x9d4c6));const e={'mcpStatus':{'disconnected':_0x3c4b91(0x19c),'connecting':_0x3c4b91(0x176),'connected':_0x3c4b91(0x18d),'failed':_0x3c4b91(0x194),'retrying':_0x3c4b91(0x18b),'unknown':_0x3c4b91(0x17c),'unauthorized':_0x3c4b91(0x195),'sessionOccupied':_0x3c4b91(0x188),'networkError':_0x3c4b91(0x18f),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3c4b91(0x1a9),'clickToConfigure':_0x3c4b91(0x178)},'mcpConfig':{'title':_0x3c4b91(0x189),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3c4b91(0x1aa),'enableAuth':_0x3c4b91(0x1a3),'enableAuthHint':_0x3c4b91(0x17e),'connectionInfo':_0x3c4b91(0x19f),'mcpClientConfig':_0x3c4b91(0x19f),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3c4b91(0x1a4),'configStep1':_0x3c4b91(0x186),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3c4b91(0x17a),'sessionId':_0x3c4b91(0x1a5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3c4b91(0x19b),'configParameters':_0x3c4b91(0x185),'maxRetries':_0x3c4b91(0x187),'save':_0x3c4b91(0x1a8),'saving':_0x3c4b91(0x17d),'note1':_0x3c4b91(0x190),'note2':_0x3c4b91(0x17f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3c4b91(0x181),'apiApplyInfo':{'title':_0x3c4b91(0x17b),'description':_0x3c4b91(0x19d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3c4b91(0x1a7)},'validation':{'apiKeyRequired':_0x3c4b91(0x1a2),'apiKeyTooShort':_0x3c4b91(0x1a1),'invalidConfig':_0x3c4b91(0x192),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3c4b91(0x179),'connected':_0x3c4b91(0x18e),'failed':_0x3c4b91(0x19a),'retrying':_0x3c4b91(0x18a)},'connectionError':{'unauthorized':_0x3c4b91(0x177),'sessionOccupied':_0x3c4b91(0x197),'networkError':_0x3c4b91(0x18c),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x3c4b91(0x199)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x183e(){const _0x13ed2c=['3937914iducQJ','exports','6limbVv','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','216738osGFhF','Configuration\x20Parameters:','172009QEQazT','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','API\x20key\x20is\x20required','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','MCP:\x20Unauthorized','19397675JhWaiX','531357IEYbKV','16aYjRrB','4764640fEFqmV','Configuration\x20Steps:','What\x20is\x20API\x20Key?','Retrying...','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','189HrZHyf','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Connected','MCP\x20Connected','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Save\x20Configuration','Enter\x20your\x20API\x20key','Disconnected','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','4qkZBPl','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','Connecting...','MCP\x20Configuration','134265JoBSsw'];_0x183e=function(){return _0x13ed2c;};return _0x183e();}const _0x98b7f7=_0x7f29;function _0x7f29(_0x4688de,_0x432b90){_0x4688de=_0x4688de-0x173;const _0x183e25=_0x183e();let _0x7f2935=_0x183e25[_0x4688de];return _0x7f2935;}(function(_0x2c981d,_0x4d41d3){const _0x1205ba=_0x7f29,_0x43e91f=_0x2c981d();while(!![]){try{const _0x2479e1=parseInt(_0x1205ba(0x190))/0x1*(-parseInt(_0x1205ba(0x18b))/0x2)+parseInt(_0x1205ba(0x199))/0x3*(-parseInt(_0x1205ba(0x183))/0x4)+parseInt(_0x1205ba(0x188))/0x5+-parseInt(_0x1205ba(0x18e))/0x6*(parseInt(_0x1205ba(0x1a1))/0x7)+parseInt(_0x1205ba(0x19a))/0x8*(parseInt(_0x1205ba(0x189))/0x9)+-parseInt(_0x1205ba(0x19b))/0xa+parseInt(_0x1205ba(0x198))/0xb;if(_0x2479e1===_0x4d41d3)break;else _0x43e91f['push'](_0x43e91f['shift']());}catch(_0x44d0b1){_0x43e91f['push'](_0x43e91f['shift']());}}}(_0x183e,0x7f0f7));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x98b7f7(0x1a6),'failed':_0x98b7f7(0x194),'retrying':_0x98b7f7(0x192),'unknown':_0x98b7f7(0x173),'unauthorized':_0x98b7f7(0x197),'sessionOccupied':_0x98b7f7(0x19f),'networkError':_0x98b7f7(0x17f),'maxRetriesExceeded':_0x98b7f7(0x17e),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x98b7f7(0x187),'description':_0x98b7f7(0x184),'apiKey':_0x98b7f7(0x17c),'apiKeyPlaceholder':_0x98b7f7(0x17a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x98b7f7(0x178),'enableAuthHint':_0x98b7f7(0x17d),'connectionInfo':_0x98b7f7(0x182),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x98b7f7(0x19c),'configStep1':_0x98b7f7(0x1a3),'configStep2':_0x98b7f7(0x180),'configStep3':_0x98b7f7(0x181),'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':_0x98b7f7(0x195),'configParameters':_0x98b7f7(0x18f),'maxRetries':_0x98b7f7(0x1a4),'save':_0x98b7f7(0x179),'saving':_0x98b7f7(0x196),'note1':_0x98b7f7(0x18c),'note2':_0x98b7f7(0x191),'configSaved':_0x98b7f7(0x18d),'configError':_0x98b7f7(0x185),'apiApplyInfo':{'title':_0x98b7f7(0x19d),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x98b7f7(0x175)},'validation':{'apiKeyRequired':_0x98b7f7(0x193),'apiKeyTooShort':_0x98b7f7(0x1a0),'invalidConfig':_0x98b7f7(0x176),'invalidApiKey':_0x98b7f7(0x177)},'connectionStatus':{'disconnected':_0x98b7f7(0x17b),'connecting':_0x98b7f7(0x186),'connected':_0x98b7f7(0x1a5),'failed':_0x98b7f7(0x1a2),'retrying':_0x98b7f7(0x19e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x98b7f7(0x174)}}};module[_0x98b7f7(0x18a)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5aa44a=_0x411b;(function(_0x3eef04,_0x3d7d8d){const _0x280ab4=_0x411b,_0x238441=_0x3eef04();while(!![]){try{const _0x398e35=-parseInt(_0x280ab4(0x158))/0x1*(-parseInt(_0x280ab4(0x151))/0x2)+parseInt(_0x280ab4(0x144))/0x3*(parseInt(_0x280ab4(0x143))/0x4)+parseInt(_0x280ab4(0x145))/0x5*(parseInt(_0x280ab4(0x13d))/0x6)+-parseInt(_0x280ab4(0x15e))/0x7+parseInt(_0x280ab4(0x152))/0x8*(parseInt(_0x280ab4(0x14a))/0x9)+parseInt(_0x280ab4(0x13e))/0xa*(-parseInt(_0x280ab4(0x15a))/0xb)+-parseInt(_0x280ab4(0x154))/0xc;if(_0x398e35===_0x3d7d8d)break;else _0x238441['push'](_0x238441['shift']());}catch(_0x1977fe){_0x238441['push'](_0x238441['shift']());}}}(_0x35c4,0x8fd06));function _0x411b(_0x5080d5,_0x1c9ea7){_0x5080d5=_0x5080d5-0x137;const _0x35c49=_0x35c4();let _0x411baa=_0x35c49[_0x5080d5];return _0x411baa;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5aa44a(0x141),'connected':_0x5aa44a(0x14b),'failed':_0x5aa44a(0x156),'retrying':'MCP\x20Retrying...','unknown':_0x5aa44a(0x15c),'unauthorized':_0x5aa44a(0x138),'sessionOccupied':_0x5aa44a(0x155),'networkError':_0x5aa44a(0x149),'maxRetriesExceeded':_0x5aa44a(0x168),'clickToConnect':_0x5aa44a(0x146),'clickToConfigure':_0x5aa44a(0x163)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5aa44a(0x166),'apiKey':_0x5aa44a(0x13a),'apiKeyPlaceholder':_0x5aa44a(0x137),'apiKeyHint':_0x5aa44a(0x140),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5aa44a(0x160),'mcpClientConfig':_0x5aa44a(0x160),'configInstructions':_0x5aa44a(0x14d),'configStepTitle':_0x5aa44a(0x147),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5aa44a(0x15d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x5aa44a(0x159),'authorizationDescription':_0x5aa44a(0x13b),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x5aa44a(0x139),'saving':_0x5aa44a(0x161),'note1':_0x5aa44a(0x14e),'note2':_0x5aa44a(0x153),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5aa44a(0x13f),'apiApplyInfo':{'title':_0x5aa44a(0x15b),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x5aa44a(0x157),'getStarted':_0x5aa44a(0x15f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5aa44a(0x13c),'invalidConfig':_0x5aa44a(0x14f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5aa44a(0x148),'connected':_0x5aa44a(0x165),'failed':'Connection\x20Failed','retrying':_0x5aa44a(0x164)},'connectionError':{'unauthorized':_0x5aa44a(0x150),'sessionOccupied':_0x5aa44a(0x142),'networkError':_0x5aa44a(0x167),'maxRetriesExceeded':_0x5aa44a(0x162)}}},n=e;module[_0x5aa44a(0x14c)]=n;function _0x35c4(){const _0x8422b5=['What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4604411BhQrDK','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','Retrying...','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','Save\x20Configuration','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','6skknvh','15340rASscX','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','12UGgCRb','255075lPXaCJ','3106065yKbcRF','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Connecting...','MCP:\x20Network\x20Error','1467OFpybA','MCP\x20Connected','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','13296Axzlzr','48560cwsgAd','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','17073468OTBdCx','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','165TuEgEH','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2101RcTxpD'];_0x35c4=function(){return _0x8422b5;};return _0x35c4();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x5166(){const _0x5c027a=['6938226icyQBc','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','MCP\x20Unknown\x20Status','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','API\x20key\x20is\x20required','Max\x20Retries','Connected','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','Session\x20ID','5100qUTVpx','463584OqqlSh','MCP:\x20Network\x20Error','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','2527140NgcmGS','1346031ukZaVt','Connection\x20Failed','Retrying...','569182vkvWPn','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','2385752JnrbDm','Enable\x20authentication\x20for\x20secure\x20connections','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Retrying...','2JMFFNO','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2779iTaMRv'];_0x5166=function(){return _0x5c027a;};return _0x5166();}const _0x31c47c=_0x31f5;function _0x31f5(_0x550328,_0x59aa79){_0x550328=_0x550328-0xbe;const _0x5166a6=_0x5166();let _0x31f5b8=_0x5166a6[_0x550328];return _0x31f5b8;}(function(_0x52bdb,_0x5a95cb){const _0x391971=_0x31f5,_0x2d11f9=_0x52bdb();while(!![]){try{const _0x4c1e5a=-parseInt(_0x391971(0xe0))/0x1*(-parseInt(_0x391971(0xd2))/0x2)+-parseInt(_0x391971(0xcf))/0x3+-parseInt(_0x391971(0xdb))/0x4+parseInt(_0x391971(0xce))/0x5+-parseInt(_0x391971(0xc6))/0x6*(parseInt(_0x391971(0xe6))/0x7)+parseInt(_0x391971(0xc7))/0x8+parseInt(_0x391971(0xe7))/0x9;if(_0x4c1e5a===_0x5a95cb)break;else _0x2d11f9['push'](_0x2d11f9['shift']());}catch(_0x2d1028){_0x2d11f9['push'](_0x2d11f9['shift']());}}}(_0x5166,0x7f2cb));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x31c47c(0xe3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x31c47c(0xdf),'unknown':_0x31c47c(0xea),'unauthorized':_0x31c47c(0xd8),'sessionOccupied':_0x31c47c(0xd7),'networkError':_0x31c47c(0xc8),'maxRetriesExceeded':_0x31c47c(0xca),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x31c47c(0xcc)},'mcpConfig':{'title':_0x31c47c(0xc4),'description':_0x31c47c(0xd6),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x31c47c(0xd5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x31c47c(0xdc),'connectionInfo':_0x31c47c(0xda),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x31c47c(0xec),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x31c47c(0xde),'configStep2':_0x31c47c(0xe4),'configStep3':_0x31c47c(0xdd),'sessionId':_0x31c47c(0xc5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x31c47c(0xe2),'configParameters':_0x31c47c(0xcd),'maxRetries':_0x31c47c(0xc0),'save':'Save\x20Configuration','saving':_0x31c47c(0xc2),'note1':_0x31c47c(0xe8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x31c47c(0xcb),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x31c47c(0xe1),'description':_0x31c47c(0xeb),'univerAiLabel':_0x31c47c(0xd9),'getStarted':_0x31c47c(0xc3)},'validation':{'apiKeyRequired':_0x31c47c(0xbf),'apiKeyTooShort':_0x31c47c(0xd3),'invalidConfig':_0x31c47c(0xe9),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x31c47c(0xbe),'connected':_0x31c47c(0xc1),'failed':_0x31c47c(0xd0),'retrying':_0x31c47c(0xd1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x31c47c(0xc9),'networkError':_0x31c47c(0xe5),'maxRetriesExceeded':_0x31c47c(0xd4)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x466775=_0x1716;function _0x1716(_0x1afd1d,_0x21e94f){_0x1afd1d=_0x1afd1d-0x1ae;const _0x3f512c=_0x3f51();let _0x1716db=_0x3f512c[_0x1afd1d];return _0x1716db;}(function(_0x5ad016,_0x194827){const _0x1b2dfb=_0x1716,_0xc020f8=_0x5ad016();while(!![]){try{const _0x16b4df=-parseInt(_0x1b2dfb(0x1d2))/0x1+parseInt(_0x1b2dfb(0x1c2))/0x2+-parseInt(_0x1b2dfb(0x1c1))/0x3+-parseInt(_0x1b2dfb(0x1bb))/0x4+parseInt(_0x1b2dfb(0x1b5))/0x5+parseInt(_0x1b2dfb(0x1ba))/0x6+-parseInt(_0x1b2dfb(0x1dc))/0x7*(-parseInt(_0x1b2dfb(0x1ca))/0x8);if(_0x16b4df===_0x194827)break;else _0xc020f8['push'](_0xc020f8['shift']());}catch(_0x4553b7){_0xc020f8['push'](_0xc020f8['shift']());}}}(_0x3f51,0x70ac9));const e={'mcpStatus':{'disconnected':_0x466775(0x1bc),'connecting':'MCP\x20Connecting...','connected':_0x466775(0x1d9),'failed':_0x466775(0x1b8),'retrying':_0x466775(0x1d1),'unknown':_0x466775(0x1cd),'unauthorized':_0x466775(0x1af),'sessionOccupied':_0x466775(0x1cb),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x466775(0x1be),'clickToConnect':_0x466775(0x1c0),'clickToConfigure':_0x466775(0x1c9)},'mcpConfig':{'title':_0x466775(0x1ae),'description':_0x466775(0x1b9),'apiKey':_0x466775(0x1b1),'apiKeyPlaceholder':_0x466775(0x1b4),'apiKeyHint':_0x466775(0x1c4),'enableAuth':_0x466775(0x1da),'enableAuthHint':_0x466775(0x1c7),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x466775(0x1dd),'configInstructions':_0x466775(0x1d8),'configStepTitle':_0x466775(0x1cf),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x466775(0x1cc),'sessionId':_0x466775(0x1bd),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x466775(0x1b0),'configParameters':_0x466775(0x1b2),'maxRetries':_0x466775(0x1d6),'save':_0x466775(0x1bf),'saving':_0x466775(0x1c3),'note1':_0x466775(0x1c8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x466775(0x1c6),'configError':_0x466775(0x1b7),'apiApplyInfo':{'title':_0x466775(0x1ce),'description':_0x466775(0x1db),'univerAiLabel':_0x466775(0x1d7),'getStarted':_0x466775(0x1de)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x466775(0x1d4),'invalidConfig':_0x466775(0x1b3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x466775(0x1c5),'connected':_0x466775(0x1d0),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x466775(0x1d3),'sessionOccupied':_0x466775(0x1d5),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x466775(0x1b6)}}},n=e;module['exports']=n;function _0x3f51(){const _0x17503e=['API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Configuration\x20Parameters:','Invalid\x20configuration','Enter\x20your\x20API\x20key','793880JgKJlH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3168054CKXsvl','2883728vCYmmv','MCP\x20Disconnected','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','Click\x20to\x20connect\x20MCP','123270UTlsaI','720484KzXNsx','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connecting...','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','40FJfDlA','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','Configuration\x20Steps:','Connected','MCP\x20Retrying...','61682vrSauX','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','333466BlUycD','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','MCP:\x20Unauthorized'];_0x3f51=function(){return _0x17503e;};return _0x3f51();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x557bd6=_0x48a0;function _0x2a4e(){const _0x3a9e8=['MCP\x20接続済み','187SnNCZT','接続失敗','認証を有効にする','6tcinSQ','MCPクライアント設定','2624430FxkuGq','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','クリックしてMCPを設定','MCP設定','MCP:\x20セッションIDが使用中','設定手順:','2300856pghmdH','認証に失敗しました。APIキーを確認してください','設定の変更は直ちに有効になります','MCP:\x20ネットワークエラー','接続済み','2534892zHZJAv','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP:\x20認証されていません','接続中...','APIキーはローカルストレージに安全に保存されます','MCP\x20再試行中...','未接続','APIキーを入力してください','APIキーは10文字以上である必要があります','再試行中...','334474enqPvT','2271655SipNxi','45PMVQsL','無効な設定','20LIKMfw','Bearerプレフィックス付きのAPIキー。','MCP\x20接続中...','設定が正常に保存されました','APIキーとは?','最大再試行回数を超過しました。後でもう一度お試しください','設定の保存に失敗しました','966321WbQYWx','セッションIDが現在使用中です。後でもう一度お試しください','MCP:\x20最大再試行回数を超過','exports','APIキー','最大再試行回数','MCPを設定してAIでスプレッドシートを操作','618279lNmGDC','設定パラメータ:','Univer\x20AIコンソール','クリックしてMCPに接続','192xCTltn','数秒でAPIキーを取得'];_0x2a4e=function(){return _0x3a9e8;};return _0x2a4e();}function _0x48a0(_0x53c000,_0x3f7851){_0x53c000=_0x53c000-0x150;const _0x2a4ebc=_0x2a4e();let _0x48a00f=_0x2a4ebc[_0x53c000];return _0x48a00f;}(function(_0x2ef397,_0x56520f){const _0x18d453=_0x48a0,_0x280b69=_0x2ef397();while(!![]){try{const _0x53e345=-parseInt(_0x18d453(0x16b))/0x1+parseInt(_0x18d453(0x151))/0x2+-parseInt(_0x18d453(0x172))/0x3*(parseInt(_0x18d453(0x164))/0x4)+-parseInt(_0x18d453(0x161))/0x5*(-parseInt(_0x18d453(0x17c))/0x6)+parseInt(_0x18d453(0x160))/0x7*(-parseInt(_0x18d453(0x176))/0x8)+-parseInt(_0x18d453(0x162))/0x9*(parseInt(_0x18d453(0x17e))/0xa)+parseInt(_0x18d453(0x179))/0xb*(parseInt(_0x18d453(0x156))/0xc);if(_0x53e345===_0x56520f)break;else _0x280b69['push'](_0x280b69['shift']());}catch(_0x2ff578){_0x280b69['push'](_0x280b69['shift']());}}}(_0x2a4e,0xb4af7));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x557bd6(0x166),'connected':_0x557bd6(0x178),'failed':'MCP\x20接続失敗','retrying':_0x557bd6(0x15b),'unknown':'MCP\x20不明な状態','unauthorized':_0x557bd6(0x158),'sessionOccupied':_0x557bd6(0x182),'networkError':_0x557bd6(0x154),'maxRetriesExceeded':_0x557bd6(0x16d),'clickToConnect':_0x557bd6(0x175),'clickToConfigure':_0x557bd6(0x180)},'mcpConfig':{'title':_0x557bd6(0x181),'description':_0x557bd6(0x171),'apiKey':_0x557bd6(0x16f),'apiKeyPlaceholder':_0x557bd6(0x15d),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x557bd6(0x17b),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x557bd6(0x17d),'mcpClientConfig':_0x557bd6(0x17d),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x557bd6(0x150),'configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':'MCPクライアントを再起動して設定を適用','sessionId':'セッションID','sessionIdDescription':_0x557bd6(0x157),'authorizationDescription':_0x557bd6(0x165),'configParameters':_0x557bd6(0x173),'maxRetries':_0x557bd6(0x170),'save':'設定を保存','saving':'保存中...','note1':_0x557bd6(0x153),'note2':_0x557bd6(0x15a),'configSaved':_0x557bd6(0x167),'configError':_0x557bd6(0x16a),'apiApplyInfo':{'title':_0x557bd6(0x168),'description':_0x557bd6(0x17f),'univerAiLabel':_0x557bd6(0x174),'getStarted':_0x557bd6(0x177)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0x557bd6(0x15e),'invalidConfig':_0x557bd6(0x163),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x557bd6(0x15c),'connecting':_0x557bd6(0x159),'connected':_0x557bd6(0x155),'failed':_0x557bd6(0x17a),'retrying':_0x557bd6(0x15f)},'connectionError':{'unauthorized':_0x557bd6(0x152),'sessionOccupied':_0x557bd6(0x16c),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x557bd6(0x169)}}};module[_0x557bd6(0x16e)]=e;
|