@univerjs-pro/mcp-ui 0.15.2 → 0.15.3-insiders.20260131-cbd5fac

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.
Files changed (54) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -0
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -0
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -0
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/locale/sk-SK.d.ts +3 -0
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/sk-SK.js +1 -0
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +8 -8
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 _0x23229f=_0x5902;(function(_0x2fe51a,_0x48a212){const _0x4a4825=_0x5902,_0x42e490=_0x2fe51a();while(!![]){try{const _0x270fa6=-parseInt(_0x4a4825(0xc3))/0x1+parseInt(_0x4a4825(0x100))/0x2*(parseInt(_0x4a4825(0x147))/0x3)+parseInt(_0x4a4825(0x120))/0x4+parseInt(_0x4a4825(0x7f))/0x5+-parseInt(_0x4a4825(0xba))/0x6+parseInt(_0x4a4825(0xd6))/0x7*(-parseInt(_0x4a4825(0x16c))/0x8)+parseInt(_0x4a4825(0x10b))/0x9;if(_0x270fa6===_0x48a212)break;else _0x42e490['push'](_0x42e490['shift']());}catch(_0x4f407f){_0x42e490['push'](_0x42e490['shift']());}}}(_0xc67f,0xa3494));var ae=Object[_0x23229f(0xd9)],le=(_0x1d8163,_0x859058,_0x349754)=>_0x859058 in _0x1d8163?ae(_0x1d8163,_0x859058,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x349754}):_0x1d8163[_0x859058]=_0x349754,I=(_0x5609a7,_0x377dd7,_0x1c48f2)=>le(_0x5609a7,typeof _0x377dd7!=_0x23229f(0x1b1)?_0x377dd7+'':_0x377dd7,_0x1c48f2);Object[_0x23229f(0xd9)](exports,Symbol['toStringTag'],{'value':_0x23229f(0x16a)});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:_0x4f8130,..._0x25fad9}){const _0x19d003=_0x23229f,{icon:_0x36ccf8,id:_0x5007c4,className:_0x30604a,extend:_0x535116,..._0xf82ef2}=_0x25fad9,_0x2de83e=(_0x19d003(0x132)+_0x5007c4+'\x20'+(_0x30604a||''))[_0x19d003(0xd8)](),_0x2d456d=d[_0x19d003(0x17b)]('_'+de());return G(_0x36ccf8,''+_0x5007c4,{'defIds':_0x36ccf8['defIds'],'idSuffix':_0x2d456d[_0x19d003(0x127)]},{'ref':_0x4f8130,'className':_0x2de83e,..._0xf82ef2},_0x535116);}function G(_0x4a1011,_0x60dd03,_0x28167c,_0x21e3ce,_0x14648f){const _0x10fb0b=_0x23229f;return d[_0x10fb0b(0x12b)](_0x4a1011[_0x10fb0b(0x1c2)],{'key':_0x60dd03,...ue(_0x4a1011,_0x28167c,_0x14648f),..._0x21e3ce},(ve(_0x4a1011,_0x28167c)[_0x10fb0b(0xe9)]||[])[_0x10fb0b(0x145)]((_0x21c4fc,_0x1f7bfd)=>G(_0x21c4fc,_0x60dd03+'-'+_0x4a1011[_0x10fb0b(0x1c2)]+'-'+_0x1f7bfd,_0x28167c,void 0x0,_0x14648f)));}function ue(_0x34dbfc,_0xc49bd2,_0x13b1ba){const _0x2c5741=_0x23229f,_0x58ccc9={..._0x34dbfc[_0x2c5741(0x109)]};_0x13b1ba!=null&&_0x13b1ba[_0x2c5741(0x111)]&&_0x58ccc9[_0x2c5741(0x1a3)]===_0x2c5741(0x111)&&(_0x58ccc9[_0x2c5741(0x1a3)]=_0x13b1ba[_0x2c5741(0x111)]),_0x34dbfc[_0x2c5741(0x1c2)]==='mask'&&_0x58ccc9['id']&&(_0x58ccc9['id']=_0x58ccc9['id']+_0xc49bd2[_0x2c5741(0x15a)]),Object[_0x2c5741(0x1ae)](_0x58ccc9)['forEach'](([_0x3196f7,_0x38c797])=>{const _0x39c5ff=_0x2c5741;_0x3196f7===_0x39c5ff(0x13a)&&typeof _0x38c797==_0x39c5ff(0x10d)&&(_0x58ccc9[_0x3196f7]=_0x38c797[_0x39c5ff(0x11b)](/url\(#(.*)\)/,_0x39c5ff(0xeb)+_0xc49bd2['idSuffix']+')'));});const {defIds:_0x49138a}=_0xc49bd2;return!_0x49138a||_0x49138a[_0x2c5741(0x129)]===0x0||(_0x34dbfc[_0x2c5741(0x1c2)]===_0x2c5741(0x18e)&&_0x58ccc9[_0x2c5741(0xf2)]&&(_0x58ccc9[_0x2c5741(0xf2)]=_0x58ccc9['xlink:href']+_0xc49bd2[_0x2c5741(0x15a)]),Object[_0x2c5741(0x1ae)](_0x58ccc9)[_0x2c5741(0x102)](([_0x1ba564,_0x19a0c1])=>{const _0x4ebe44=_0x2c5741;typeof _0x19a0c1=='string'&&(_0x58ccc9[_0x1ba564]=_0x19a0c1[_0x4ebe44(0x11b)](/url\(#(.*)\)/,'url(#$1'+_0xc49bd2['idSuffix']+')'));})),_0x58ccc9;}function ve(_0x3019bd,_0x37c406){const _0x411b6e=_0x23229f;var _0x1dc018;const {defIds:_0xa8dfcd}=_0x37c406;return!_0xa8dfcd||_0xa8dfcd[_0x411b6e(0x129)]===0x0?_0x3019bd:_0x3019bd[_0x411b6e(0x1c2)]===_0x411b6e(0x156)&&((_0x1dc018=_0x3019bd['children'])!=null&&_0x1dc018[_0x411b6e(0x129)])?{..._0x3019bd,'children':_0x3019bd[_0x411b6e(0xe9)][_0x411b6e(0x145)](_0x5154ea=>typeof _0x5154ea[_0x411b6e(0x109)]['id']==_0x411b6e(0x10d)&&_0xa8dfcd&&_0xa8dfcd[_0x411b6e(0x163)](_0x5154ea[_0x411b6e(0x109)]['id'])?{..._0x5154ea,'attrs':{..._0x5154ea[_0x411b6e(0x109)],'id':_0x5154ea[_0x411b6e(0x109)]['id']+_0x37c406[_0x411b6e(0x15a)]}}:_0x5154ea)}:_0x3019bd;}function de(){const _0x493f02=_0x23229f;return Math[_0x493f02(0x158)]()[_0x493f02(0xb9)](0x24)[_0x493f02(0x15e)](0x2,0x8);}_[_0x23229f(0xb5)]='UniverIcon';const Ce={'tag':'svg','attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0x1da),'width':_0x23229f(0x1b8),'height':_0x23229f(0x1b8)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x16d),'d':_0x23229f(0xef),'fillRule':_0x23229f(0xa2),'clipRule':_0x23229f(0xa2)}}]},H=d[_0x23229f(0x10f)](function(_0x4c22ea,_0x5491bd){const _0x48979d=_0x23229f;return d['createElement'](_,Object[_0x48979d(0x8b)]({},_0x4c22ea,{'id':'check-mark-icon','ref':_0x5491bd,'icon':Ce}));});H[_0x23229f(0xb5)]=_0x23229f(0x1a6);const ge={'tag':_0x23229f(0xa0),'attrs':{'xmlns':_0x23229f(0x121),'fill':'none','viewBox':_0x23229f(0x1da),'width':_0x23229f(0x1b8),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x23229f(0x16d),'d':'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'}}]},B=d[_0x23229f(0x10f)](function(_0x35c6f7,_0x585b87){const _0x404a8b=_0x23229f;return d[_0x404a8b(0x12b)](_,Object[_0x404a8b(0x8b)]({},_0x35c6f7,{'id':_0x404a8b(0xea),'ref':_0x585b87,'icon':ge}));});B[_0x23229f(0xb5)]=_0x23229f(0xe4);const fe={'tag':_0x23229f(0xa0),'attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0x1da),'width':'1em','height':_0x23229f(0x1b8)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x16d),'d':_0x23229f(0x94)}},{'tag':_0x23229f(0x1c9),'attrs':{'fill':'currentColor','d':_0x23229f(0xd5)}},{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x16d),'d':_0x23229f(0x16e),'fillRule':_0x23229f(0xa2),'clipRule':_0x23229f(0xa2)}}]},F=d[_0x23229f(0x10f)](function(_0x1c1215,_0x327340){const _0x1aa072=_0x23229f;return d[_0x1aa072(0x12b)](_,Object['assign']({},_0x1c1215,{'id':_0x1aa072(0xee),'ref':_0x327340,'icon':fe}));});F[_0x23229f(0xb5)]=_0x23229f(0x197);const pe={'tag':'svg','attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0x1da),'width':_0x23229f(0x1b8),'height':_0x23229f(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x23229f(0x137)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x23229f(0x10a),'strokeLinecap':_0x23229f(0xbb),'strokeLinejoin':_0x23229f(0xbb),'strokeWidth':1.2}}]},{'tag':_0x23229f(0x156),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':_0x23229f(0x1bd),'d':_0x23229f(0xf1)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x23229f(0x10f)](function(_0x536318,_0x38c735){const _0x333e44=_0x23229f;return d['createElement'](_,Object['assign']({},_0x536318,{'id':_0x333e44(0x165),'ref':_0x38c735,'icon':pe}));});Y[_0x23229f(0xb5)]='OffLineIcon';const he={'tag':'svg','attrs':{'xmlns':_0x23229f(0x121),'fill':_0x23229f(0x1e1),'viewBox':_0x23229f(0xfc),'width':_0x23229f(0x1b8),'height':_0x23229f(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x23229f(0x92)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'stroke':'currentColor','d':_0x23229f(0x125),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x23229f(0x156),'attrs':{},'children':[{'tag':_0x23229f(0x1ba),'attrs':{'id':_0x23229f(0x11f)},'children':[{'tag':_0x23229f(0x1c9),'attrs':{'fill':'white','d':_0x23229f(0xf1),'transform':_0x23229f(0x98)}}]}]}],'defIds':[_0x23229f(0x11f)]},q=d['forwardRef'](function(_0x1d1ca4,_0xb722e3){const _0x2c239a=_0x23229f;return d[_0x2c239a(0x12b)](_,Object['assign']({},_0x1d1ca4,{'id':_0x2c239a(0x1b7),'ref':_0xb722e3,'icon':he}));});q[_0x23229f(0xb5)]=_0x23229f(0x12d);function V(_0x4fb2b3){const _0x27b139=_0x23229f;var _0xe0c954,_0x3a49d4;const {mcpCoreConfig:_0x2e0668,onSave:_0x398ef5,loading:_0x86b6f1=!0x1,config:_0x220b1a,connectionStatus$:_0x235139,connectionError$:_0x2c59f0,currentApiKey$:_0xa6c999,currentSessionId$:_0x47067e}=_0x4fb2b3,_0x49a934=v[_0x27b139(0x13b)](u[_0x27b139(0x10c)]),_0x49fd4b=v[_0x27b139(0xb3)](_0x235139,s[_0x27b139(0xfa)]['DISCONNECTED']),_0x1f8342=v[_0x27b139(0xb3)](_0x2c59f0,s[_0x27b139(0x84)][_0x27b139(0x10e)]),_0x51625d=v['useObservable'](_0x47067e,''),_0x1ca442=v['useObservable'](_0xa6c999,''),[_0x40405e,_0xb6ed3b]=d[_0x27b139(0x11e)](_0x1ca442||''),_0x99504=!0x0,_0x399548=_0x220b1a[_0x27b139(0x19c)]&&_0x2e0668['mcpServerUrl']&&(_0x2e0668[_0x27b139(0x1d7)][_0x27b139(0x163)](_0x27b139(0x19f))||_0x2e0668[_0x27b139(0x1d7)][_0x27b139(0x163)](_0x27b139(0x9b))),_0x5a3e00=(_0xe0c954=_0x2e0668[_0x27b139(0x1d7)])==null?void 0x0:_0xe0c954[_0x27b139(0x163)]('univer.plus'),_0xc2bbed=(_0x3a49d4=_0x2e0668['mcpServerUrl'])==null?void 0x0:_0x3a49d4['includes']('univer.ai'),_0x397ed0=_0x5a3e00?_0x27b139(0x1cb):_0x27b139(0x1d8),_0x3090de=_0x220b1a[_0x27b139(0x19c)]&&(_0x5a3e00||_0xc2bbed),[_0x4b0b11,_0x127248]=d[_0x27b139(0x11e)](!_0x40405e[_0x27b139(0xd8)]()),_0x5ab014=(_0x1e2cd4,_0x4bd14e)=>{const _0x44d3c7=_0x27b139;if(_0x4bd14e===s[_0x44d3c7(0x84)][_0x44d3c7(0x133)])return _0x44d3c7(0x1d1);switch(_0x1e2cd4){case s[_0x44d3c7(0xfa)][_0x44d3c7(0xd7)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0x44d3c7(0xfa)]['CONNECTING']:case s[_0x44d3c7(0xfa)][_0x44d3c7(0x1e4)]:return _0x44d3c7(0x1ce);case s[_0x44d3c7(0xfa)][_0x44d3c7(0xe3)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x44d3c7(0x159);}},_0x3528de=(_0x4c2eb9,_0x304fce)=>{const _0x167070=_0x27b139;if(_0x304fce===s[_0x167070(0x84)][_0x167070(0x133)])return _0x167070(0xe0);switch(_0x4c2eb9){case s[_0x167070(0xfa)][_0x167070(0xd7)]:return _0x167070(0x1dc);case s['MCPConnectionStatus'][_0x167070(0x13c)]:case s[_0x167070(0xfa)][_0x167070(0x1e4)]:return'univer-bg-blue-500';case s[_0x167070(0xfa)][_0x167070(0xe3)]:return _0x167070(0xe0);default:return _0x167070(0x87);}},_0x3cbf39=_0x394150=>{const _0xc0ac87=_0x27b139;switch(_0x394150){case s[_0xc0ac87(0xfa)][_0xc0ac87(0xd7)]:return _0x49a934['t'](_0xc0ac87(0x107));case s[_0xc0ac87(0xfa)][_0xc0ac87(0x13c)]:return _0x49a934['t']('mcpConfig.connectionStatus.connecting');case s[_0xc0ac87(0xfa)][_0xc0ac87(0xe3)]:return _0x49a934['t'](_0xc0ac87(0x1a4));case s[_0xc0ac87(0xfa)][_0xc0ac87(0x1e4)]:return _0x49a934['t']('mcpConfig.connectionStatus.retrying');default:return _0x49a934['t'](_0xc0ac87(0xc9));}},_0x11bde5=_0x498dc0=>{const _0x23cc47=_0x27b139;switch(_0x498dc0){case s[_0x23cc47(0x84)]['UNAUTHORIZED']:return _0x49a934['t'](_0x23cc47(0x182));case s[_0x23cc47(0x84)][_0x23cc47(0xf5)]:return _0x49a934['t'](_0x23cc47(0x101));case s[_0x23cc47(0x84)][_0x23cc47(0x8a)]:return _0x49a934['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x49a934['t'](_0x23cc47(0x1b3));default:return'';}},_0x1c54de=d[_0x27b139(0x195)](()=>{const _0x172636=_0x27b139,_0x4ced47={..._0x2e0668,'apiKey':_0x40405e[_0x172636(0xd8)](),'enableAuth':_0x99504};_0x398ef5(_0x4ced47);},[_0x2e0668,_0x40405e,_0x99504,_0x398ef5]),_0x144ed6=_0x40405e[_0x27b139(0xd8)]()[_0x27b139(0x129)]>0x0;return i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x155),'children':[i['jsx']('div',{'className':_0x27b139(0x154),'children':i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x122),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':i['jsx'](_0x27b139(0xe1),{'className':'univer-text-white','children':'⚙'})}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'children':i[_0x27b139(0xe5)]('p',{'className':_0x27b139(0x14b),'children':_0x49a934['t']('mcpConfig.description')})})]})}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[i['jsx'](_0x27b139(0x83),{'className':f[_0x27b139(0x150)](_0x27b139(0x95),_0x5ab014(_0x49fd4b,_0x1f8342)),'children':i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)]('div',{'className':f[_0x27b139(0x150)]('univer-size-2\x20univer-rounded-full',_0x3528de(_0x49fd4b,_0x1f8342))}),i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0xf6),'children':_0x3cbf39(_0x49fd4b)})]})}),_0x1f8342!==s[_0x27b139(0x84)][_0x27b139(0x10e)]&&(_0x49fd4b===s[_0x27b139(0xfa)][_0x27b139(0xe3)]||_0x1f8342===s[_0x27b139(0x84)][_0x27b139(0x133)])&&i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1bf),'children':i['jsxs'](_0x27b139(0x83),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x27b139(0xe5)]('span',{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),i[_0x27b139(0xe5)]('p',{'className':_0x27b139(0x173),'children':_0x11bde5(_0x1f8342)})]})})]}),i['jsx']('div',{'className':_0x27b139(0x181),'children':i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x1c0),'children':[i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-space-y-2','children':[i[_0x27b139(0xb8)](_0x27b139(0xd4),{'className':_0x27b139(0xb6),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'children':'🔑'}),'\x20',_0x49a934['t']('mcpConfig.apiKey'),i[_0x27b139(0xe5)]('span',{'className':_0x27b139(0xec),'children':'*'}),_0x399548&&i[_0x27b139(0xe5)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x49a934['t'](_0x27b139(0x186)),'role':'button','onClick':()=>_0x127248(!0x0),'children':i[_0x27b139(0xe5)](F,{})})]}),i[_0x27b139(0xe5)](f['Input'],{'type':_0x27b139(0x152),'placeholder':_0x49a934['t'](_0x27b139(0x192)),'value':_0x40405e,'disabled':_0x86b6f1,'autoComplete':_0x27b139(0x166),'onChange':_0xb6ed3b}),i[_0x27b139(0xe5)]('p',{'className':_0x27b139(0x1aa),'children':_0x49a934['t'](_0x27b139(0x18d))})]}),_0x399548&&_0x4b0b11&&i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0xf7),'children':[i[_0x27b139(0xe5)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x27b139(0x1ad),'onClick':()=>_0x127248(!0x1),'children':i['jsx'](B,{'className':_0x27b139(0x151)})}),i['jsxs'](_0x27b139(0x83),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0xa5),'children':i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x14c),'children':'🚀'})}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0xca),'children':[i['jsx']('h4',{'className':_0x27b139(0x177),'children':_0x49a934['t'](_0x27b139(0x186))}),i[_0x27b139(0xe5)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x49a934['t']('mcpConfig.apiApplyInfo.description')}),i['jsx'](_0x27b139(0x83),{'className':_0x27b139(0x7e),'children':_0x3090de&&i[_0x27b139(0xb8)]('a',{'className':_0x27b139(0x1e7),'href':_0x397ed0,'target':_0x27b139(0x138),'rel':_0x27b139(0x15b),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'children':'🤖'}),_0x49a934['t'](_0x27b139(0xa6)),i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0x27b139(0x83),{'className':_0x27b139(0x1c4),'children':['✨','\x20',_0x49a934['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x220b1a[_0x27b139(0x19c)]&&i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x27b139(0xb8)]('h4',{'className':_0x27b139(0x119),'children':[i[_0x27b139(0xe5)]('span',{'children':'🔗'}),'\x20',_0x49a934['t']('mcpConfig.connectionInfo')]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-space-y-4','children':[i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x1bc),'children':[i[_0x27b139(0xe5)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x49a934['t'](_0x27b139(0x16f))}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x85),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1be),'children':_0x49a934['t']('mcpConfig.configStepTitle')}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x183),'children':[i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x167),'children':'1'}),_0x49a934['t'](_0x27b139(0xc0))]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x167),'children':'2'}),_0x49a934['t'](_0x27b139(0x88))]}),i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'className':_0x27b139(0x167),'children':'3'}),_0x49a934['t']('mcpConfig.configStep3')]})]})]})]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x85),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1be),'children':_0x27b139(0xff)}),i['jsx'](_0x27b139(0x83),{'className':_0x27b139(0xbd),'children':i[_0x27b139(0xe5)]('pre',{'className':_0x27b139(0xa7),'children':JSON[_0x27b139(0xa1)]({'mcpServers':{'univer':{'url':_0x27b139(0x1a5)+(_0x51625d||_0x27b139(0x172)),'type':_0x27b139(0x18c),'headers':{'Authorization':'Bearer\x20'+(_0x40405e||_0x27b139(0xe6))}}}},null,0x2)})})]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':'univer-space-y-3','children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x49a934['t'](_0x27b139(0x184))}),i['jsxs']('div',{'className':'univer-space-y-2','children':[i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0x12c),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x93)}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x180),'children':[i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x123),'children':_0x27b139(0x168)}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x49a934['t'](_0x27b139(0x1a7))})]})]}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0x12c),'children':[i[_0x27b139(0xe5)]('div',{'className':_0x27b139(0x93)}),i['jsxs']('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i['jsx']('div',{'className':_0x27b139(0x123),'children':_0x27b139(0x161)}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x49a934['t'](_0x27b139(0x1d4))})]})]})]})]})]})]}),i['jsx'](f['Button'],{'onClick':_0x1c54de,'disabled':!_0x144ed6||_0x86b6f1,'className':_0x27b139(0x112),'children':_0x86b6f1?i[_0x27b139(0xb8)](_0x27b139(0xe1),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](_0x27b139(0xe1),{'children':'⟲'}),_0x49a934['t'](_0x27b139(0xbf))]}):i[_0x27b139(0xb8)](_0x27b139(0xe1),{'className':_0x27b139(0x12e),'children':[i[_0x27b139(0xe5)](H,{}),_0x49a934['t']('mcpConfig.save')]})}),i[_0x27b139(0xe5)](_0x27b139(0x83),{'className':_0x27b139(0x1c3),'children':i[_0x27b139(0xb8)]('div',{'className':_0x27b139(0xf8),'children':[i['jsx'](_0x27b139(0xe1),{'className':_0x27b139(0x19e),'children':'💡'}),i[_0x27b139(0xb8)](_0x27b139(0x83),{'className':_0x27b139(0xc7),'children':[i[_0x27b139(0xe5)]('div',{'className':_0x27b139(0x1a9),'children':'Configuration\x20Notes:'}),i['jsxs'](_0x27b139(0x83),{'children':['•',_0x49a934['t'](_0x27b139(0xc1))]}),i[_0x27b139(0xb8)]('div',{'children':['•',_0x49a934['t']('mcpConfig.note2')]})]})]})})]})})]});}const P=_0x23229f(0xde),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x23229f(0x1e5)],xe=(_0x387536,_0x2f21a5,_0x5da763,_0x329667)=>{const _0x4a54ed=_0x23229f;for(var _0x3adc38=_0x329667>0x1?void 0x0:_0x329667?me(_0x2f21a5,_0x5da763):_0x2f21a5,_0x3ad2eb=_0x387536[_0x4a54ed(0x129)]-0x1,_0x4b6740;_0x3ad2eb>=0x0;_0x3ad2eb--)(_0x4b6740=_0x387536[_0x3ad2eb])&&(_0x3adc38=_0x4b6740(_0x3adc38)||_0x3adc38);return _0x3adc38;},g=(_0x48ade7,_0x246bd1)=>(_0x5635e6,_0x226fd3)=>_0x246bd1(_0x5635e6,_0x226fd3,_0x48ade7);const O=_0x23229f(0x1bb),D=_0x23229f(0x1a2);exports[_0x23229f(0x9a)]=class extends u[_0x23229f(0x1e0)]{constructor(_0x3d14b8,_0x45666d,_0x278c9d,_0x5f3342,_0x40614f,_0x123a8f,_0x288df5,_0x4e6145,_0x49296d,_0x35e20d){const _0x5e1bb2=_0x23229f;super(),I(this,_0x5e1bb2(0x191),new M[(_0x5e1bb2(0x104))](!0x1)),I(this,'_mcpCoreConfig$',new M['BehaviorSubject']({})),I(this,_0x5e1bb2(0x114),new M['BehaviorSubject']({})),I(this,_0x5e1bb2(0x9c),new M['BehaviorSubject']('')),I(this,_0x5e1bb2(0xa3),async _0x3e148c=>{const _0x3f30cb=_0x5e1bb2;var _0x925a20,_0x224ab4;this[_0x3f30cb(0x191)]['next'](!0x0);try{const _0xc01136=await this['_validateConfig'](_0x3e148c);if(!_0xc01136[_0x3f30cb(0x1db)]){this[_0x3f30cb(0x14e)][_0x3f30cb(0xc5)]({'type':f[_0x3f30cb(0x9f)][_0x3f30cb(0x1df)],'content':_0xc01136[_0x3f30cb(0x171)]||this[_0x3f30cb(0x124)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3e148c[_0x3f30cb(0x7d)]?await this[_0x3f30cb(0x1d6)][_0x3f30cb(0x160)](O,_0x3e148c['apiKey']['trim']()):await this[_0x3f30cb(0x1d6)]['removeItem'](O),this[_0x3f30cb(0x9c)][_0x3f30cb(0x1d0)](((_0x925a20=_0x3e148c['apiKey'])==null?void 0x0:_0x925a20[_0x3f30cb(0xd8)]())||''),this[_0x3f30cb(0xcb)][_0x3f30cb(0xb1)]({'Authorization':_0x3f30cb(0xfd)+((_0x224ab4=_0x3e148c['apiKey'])==null?void 0x0:_0x224ab4[_0x3f30cb(0xd8)]())}),this[_0x3f30cb(0x14e)]['show']({'type':f[_0x3f30cb(0x9f)]['Success'],'content':this['_localeService']['t'](_0x3f30cb(0x18b))}),setTimeout(()=>{const _0x3ca638=_0x3f30cb;this[_0x3ca638(0xaa)][_0x3ca638(0x1a0)](D);},0x320);}catch(_0x4329b1){this[_0x3f30cb(0xd3)][_0x3f30cb(0x16b)](_0x3f30cb(0x1d3),_0x4329b1),this[_0x3f30cb(0x14e)][_0x3f30cb(0xc5)]({'type':f['MessageType'][_0x3f30cb(0x1df)],'content':this[_0x3f30cb(0x124)]['t'](_0x3f30cb(0x135))});}finally{this[_0x3f30cb(0x191)][_0x3f30cb(0x1d0)](!0x1);}}),(this[_0x5e1bb2(0xf9)]=_0x3d14b8,this[_0x5e1bb2(0x103)]=_0x45666d,this['_configService']=_0x278c9d,this[_0x5e1bb2(0x1d6)]=_0x5f3342,this['_dialogService']=_0x40614f,this[_0x5e1bb2(0x14e)]=_0x123a8f,this[_0x5e1bb2(0x14a)]=_0x288df5,this[_0x5e1bb2(0x124)]=_0x4e6145,this[_0x5e1bb2(0xd3)]=_0x49296d,this['_mcpConnectionController']=_0x35e20d,this[_0x5e1bb2(0x86)](),this['_loadStoredApiKey'](),this[_0x5e1bb2(0xd0)]());}[_0x23229f(0xdf)](){const _0x48453d=_0x23229f,_0x4714e8=this['_configService'][_0x48453d(0x13e)](P);_0x4714e8!=null&&_0x4714e8[_0x48453d(0x19c)]&&this['_dialogService'][_0x48453d(0x169)]({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xeac768=_0x48453d;this[_0xeac768(0xaa)][_0xeac768(0x1a0)](D);}});}['getCurrentConfig'](){const _0x1fce2d=_0x23229f;return this[_0x1fce2d(0x1c8)][_0x1fce2d(0x13d)];}[_0x23229f(0xd0)](){const _0x22c90a=_0x23229f;this[_0x22c90a(0x1b0)](this[_0x22c90a(0x14a)]['register'](_0x22c90a(0x1c6),this['_createConfigPanelComponent']()));}[_0x23229f(0x188)](){const _0x11abbd=_0x23229f;return v[_0x11abbd(0x174)](()=>{const _0x388754=_0x11abbd;var _0x2343dd,_0x1caf1b,_0x11c1ee;return i['jsx'](V,{'config':this[_0x388754(0x114)][_0x388754(0x13d)],'mcpCoreConfig':this[_0x388754(0x1c8)][_0x388754(0x13d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x388754(0xa3)],'loading':this['_loading$'][_0x388754(0x13d)],'connectionStatus$':(_0x2343dd=this[_0x388754(0xcb)])==null?void 0x0:_0x2343dd[_0x388754(0x91)],'connectionError$':(_0x1caf1b=this['_mcpConnectionController'])==null?void 0x0:_0x1caf1b['connectionError$'],'currentSessionId$':(_0x11c1ee=this[_0x388754(0xcb)])==null?void 0x0:_0x11c1ee[_0x388754(0xb0)]});},this[_0x11abbd(0xf9)]);}[_0x23229f(0x86)](){const _0x22a78d=_0x23229f;this[_0x22a78d(0x1b0)](this[_0x22a78d(0x131)][_0x22a78d(0x19d)](s[_0x22a78d(0x17c)])['subscribe'](_0x2f613a=>{const _0x645d43=_0x22a78d;this[_0x645d43(0x1c8)][_0x645d43(0x1d0)](_0x2f613a||{});}));const _0x8b1d4f=this[_0x22a78d(0x131)][_0x22a78d(0x13e)](s[_0x22a78d(0x17c)]);this[_0x22a78d(0x1c8)][_0x22a78d(0x1d0)](_0x8b1d4f||{}),this[_0x22a78d(0x1b0)](this[_0x22a78d(0x131)][_0x22a78d(0x19d)](P)[_0x22a78d(0x9e)](_0xe40e30=>{const _0xd4cec5=_0x22a78d;this[_0xd4cec5(0x114)][_0xd4cec5(0x1d0)](_0xe40e30||{});}));const _0x1bd73b=this[_0x22a78d(0x131)][_0x22a78d(0x13e)](P);this['_config$'][_0x22a78d(0x1d0)](_0x1bd73b||{});}async['_loadStoredApiKey'](){const _0x210450=_0x23229f,_0x6504eb=this[_0x210450(0x131)][_0x210450(0x13e)](P);if(!(_0x6504eb!=null&&_0x6504eb['showDeveloperTools']))return;const _0x5874a9=await this[_0x210450(0x1d6)][_0x210450(0x126)](O);_0x5874a9&&(this[_0x210450(0xcb)][_0x210450(0xb1)]({'Authorization':_0x210450(0xfd)+_0x5874a9}),this[_0x210450(0x9c)]['next'](_0x5874a9));}async[_0x23229f(0x13f)](_0x40953b){const _0x4a6681=_0x23229f;if(!_0x40953b[_0x4a6681(0x7d)]||_0x40953b[_0x4a6681(0x7d)][_0x4a6681(0xd8)]()[_0x4a6681(0x129)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4a6681(0x124)]['t'](_0x4a6681(0x89))};if(_0x40953b[_0x4a6681(0x7d)][_0x4a6681(0xd8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4a6681(0x124)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x9e2e05=await this['_injector'][_0x4a6681(0xcc)](s[_0x4a6681(0x1e8)])[_0x4a6681(0x1cf)](_0x40953b['apiKey']['trim']());return _0x9e2e05[_0x4a6681(0x1db)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x9e2e05['error']||this[_0x4a6681(0x124)]['t'](_0x4a6681(0x148))};}catch(_0x2b5cf7){return console['warn'](_0x4a6681(0x187),_0x2b5cf7),{'isValid':!0x0};}}},exports[_0x23229f(0x9a)]=xe([g(0x0,u['Inject'](u[_0x23229f(0xe2)])),g(0x1,v['IUIPartsService']),g(0x2,u['IConfigService']),g(0x3,u[_0x23229f(0x15d)]),g(0x4,v['IDialogService']),g(0x5,v[_0x23229f(0xc6)]),g(0x6,u[_0x23229f(0x134)](v[_0x23229f(0x82)])),g(0x7,u[_0x23229f(0x134)](u[_0x23229f(0x10c)])),g(0x8,u[_0x23229f(0x11c)]),g(0x9,u[_0x23229f(0x134)](s['MCPConnectionController']))],exports[_0x23229f(0x9a)]);function _0x5902(_0x316375,_0xe840b4){_0x316375=_0x316375-0x7b;const _0xc67f7f=_0xc67f();let _0x5902a2=_0xc67f7f[_0x316375];return _0x5902a2;}function _0xc67f(){const _0x515d45=['Connection\x20Failed','ILocalStorageService','substring','点击配置\x20MCP','setItem','Authorization:','MCP:\x20会话\x20ID\x20已被占用','includes','启用身份验证','off-line-icon','off','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer_session_id:','open','Module','error','49128svfKgk','currentColor','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','mcpConfig.configInstructions','MenuItemType','errorMessage','<SESSION_ID>','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','connectInjector','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20超出最大重试次数','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20已连接','useRef','MCP_PLUGIN_CONFIG_KEY','_initializeMenus','MenuIcon','MCPStatusDisplay','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.connectionError.unauthorized','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.configParameters','univer-text-green-500','mcpConfig.apiApplyInfo.title','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_createConfigPanelComponent','会话ID','MCP\x20Retrying...','mcpConfig.configSaved','http','mcpConfig.apiKeyHint','use','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Click\x20to\x20configure\x20MCP','_loading$','mcpConfig.apiKeyPlaceholder','IMenuManagerService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','useCallback','MCP:\x20未授权','HelpIcon','MCP\x20连接失败','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','什么是\x20API\x20密钥?','showDeveloperTools','subscribeConfigValue$','univer-shrink-0\x20univer-text-blue-500','univer.plus','close','保存中...','mcp-config-dialog','fill','mcpConfig.connectionStatus.failed','https://mcp.univer.ai/mcp/?univer_session_id=','CheckMarkIcon','mcpConfig.sessionIdDescription','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-font-medium','univer-text-xs\x20univer-text-gray-500','API\x20密钥无效,请检查密钥是否正确','mcpConfig.title','button','entries','最大重试次数','disposeWithMe','symbol','API\x20密钥不能为空','mcpConfig.connectionError.maxRetriesExceeded','add','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','on-line-icon','1em','Connecting...','clipPath','mcp.apiKey','univer-space-y-3','white','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-space-y-5','_connectionController','tag','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Configuration\x20Steps:','MCPConfigPanel','bottom','_mcpCoreConfig$','path','保存配置','https://console.univer.plus','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','validateApiKey','next','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','连接失败','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.authorizationDescription','MCP\x20已断开','_localStorageService','mcpServerUrl','https://console.univer.ai','enableAutoConnect','0\x200\x2016\x2016','isValid','univer-bg-green-500','MCPUIMenuController','Invalid\x20configuration','Error','Disposable','none','MCP:\x20Network\x20Error','_initStatusComponent','RETRYING','getOwnPropertyDescriptor','几秒钟内获取您的\x20API\x20密钥','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','MCPConnectionController','zhCN','mcpStatus.connecting','apiKey','univer-flex\x20univer-flex-wrap\x20univer-gap-2','3053025PScpUG','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','COMMAND','ComponentManager','div','MCPConnectionError','univer-space-y-2','_initConfigSync','univer-bg-gray-500','mcpConfig.configStep2','mcpConfig.validation.apiKeyRequired','NETWORK_ERROR','assign','配置更改将立即生效','OpenMCPConfigPanelCommand','registerComponent','_initAutoConnect','mcpStatus.connected','connectionStatus$','url(#on-line-icon_clip0_910_349)','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','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','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','\x20-\x20','univer-flex\x20univer-items-center','translate(.97)','_commandService','MCPConfigUIController','univer.ai','_apiKey$','DISCONNECTED','subscribe','MessageType','svg','stringify','evenodd','_handleConfigSave','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.apiApplyInfo.univerAiLabel','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','onStarting','Enable\x20Authentication','_dialogService','\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','请输入您的\x20API\x20密钥','网络连接错误,请检查您的网络连接','Tooltip','API\x20Key','sessionId$','__setCustomHeaders','MCP:\x20Session\x20ID\x20Occupied','useObservable','MCP\x20连接中...','displayName','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Unauthorized','jsxs','toString','51660Nqgoic','round','API\x20key\x20is\x20required','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.saving','mcpConfig.configStep1','mcpConfig.note1','mcpStatus.maxRetriesExceeded','340504AxcLFr','showStatus','show','IMessageService','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_menuManagerService','mcpConfig.connectionStatus.disconnected','univer-flex-1','_mcpConnectionController','get','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Connected','ICommandService','_registerComponent','重连中...','Enter\x20your\x20API\x20key','_logService','label','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','1169quzhFN','CONNECTED','trim','defineProperty','Session\x20ID','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','将配置添加到您的\x20MCP\x20客户端设置文件中','API\x20密钥','mcp-ui.config','showConfigPanel','univer-bg-red-500','span','Injector','FAILED','CloseIcon','jsx','<API_KEY>','What\x20is\x20API\x20Key?','IConfigService','children','close-icon','url(#$1','univer-text-red-500','mcpStatus.unknown','help-icon','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','UniverMCPUIPlugin','M0\x200H16V16H0z','xlink:href','MCP\x20客户端配置','mcpStatus.clickToConnect','SESSION_ID_OCCUPIED','univer-text-sm\x20univer-font-medium','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-flex\x20univer-gap-3','_injector','MCPConnectionStatus','配置无效','0\x200\x2017\x2016','Bearer\x20','配置保存成功','MCP\x20Configuration','19570cBwsvj','mcpConfig.connectionError.sessionOccupied','forEach','_uiPartsService','BehaviorSubject','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20状态未知','mcpConfig.connectionStatus.connected','univer-text-yellow-500','attrs','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','8454555bWeqLd','LocaleService','string','NONE','forwardRef','UniverMCPPlugin','colorChannel1','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config$','univer-text-gray-500','MCPConnectionUIController','您的\x20API\x20密钥将在此浏览器中本地存储','配置参数:','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Univer\x20AI\x20控制台','replace','ILogService','会话\x20ID\x20已被占用,请稍后再试','useState','on-line-icon_clip0_910_349','1386824IhnTPb','http://www.w3.org/2000/svg','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','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','getItem','current','mcpStatus.failed','length','MCP\x20配置','createElement','univer-flex\x20univer-items-start\x20univer-gap-3','OnLineIcon','univer-flex\x20univer-items-center\x20univer-gap-2','mcpStatus.disconnected','enUS','_configService','univerjs-icon\x20univerjs-icon-','UNAUTHORIZED','Inject','mcpConfig.configError','mcpStatus.sessionOccupied','url(#off-line-icon_clip0_910_343)','_blank','registerCommand','mask','useDependency','CONNECTING','value','getConfig','_validateConfig','OTHERS','Save\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','超出最大重试次数,请稍后再试','map','带有\x20Bearer\x20前缀的\x20API\x20密钥。','45OYchqQ','mcpConfig.validation.invalidApiKey','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_componentManager','univer-text-sm\x20univer-text-gray-500','univer-text-blue-600','配置步骤:','_messageService','重启您的\x20MCP\x20客户端以使配置生效','clsx','univer-size-4','text','API\x20key\x20with\x20Bearer\x20prefix.','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','defs','未连接','random','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','idSuffix','noopener\x20noreferrer'];_0xc67f=function(){return _0x515d45;};return _0xc67f();}const b={'id':'mcp-ui.command.openConfigPanel','type':u['CommandType'][_0x23229f(0x81)],'handler':async(_0x41e346,_0x5a611e)=>(_0x41e346[_0x23229f(0xcc)](exports[_0x23229f(0x9a)])[_0x23229f(0xdf)](),!0x0)};function Z(_0xb19b13,_0x242ac5){const _0x39ec11=_0x23229f;switch(_0xb19b13){case s[_0x39ec11(0xfa)][_0x39ec11(0x9d)]:return _0x39ec11(0x12f);case s[_0x39ec11(0xfa)]['CONNECTING']:return _0x39ec11(0x7c);case s['MCPConnectionStatus'][_0x39ec11(0xd7)]:return _0x39ec11(0x90);case s[_0x39ec11(0xfa)][_0x39ec11(0xe3)]:switch(_0x242ac5){case s[_0x39ec11(0x84)][_0x39ec11(0x133)]:return'mcpStatus.unauthorized';case s[_0x39ec11(0x84)]['SESSION_ID_OCCUPIED']:return _0x39ec11(0x136);case s['MCPConnectionError']['NETWORK_ERROR']:return'mcpStatus.networkError';case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x39ec11(0xc2);default:return _0x39ec11(0x128);}case s[_0x39ec11(0xfa)][_0x39ec11(0x1e4)]:return'mcpStatus.retrying';default:return _0x39ec11(0xed);}}function Se(_0x601fc7,_0x529dac,_0x7afbf2,_0x1acdeb=!0x0){const _0x5e0ce6=_0x23229f,_0x20a793=Z(_0x601fc7,_0x529dac),_0x4fab5c=_0x7afbf2['t'](_0x20a793);return _0x1acdeb?_0x601fc7===s['MCPConnectionStatus'][_0x5e0ce6(0x9d)]&&_0x529dac===s['MCPConnectionError'][_0x5e0ce6(0x133)]?_0x4fab5c+'\x20-\x20'+_0x7afbf2['t']('mcpStatus.clickToConfigure'):_0x601fc7===s[_0x5e0ce6(0xfa)][_0x5e0ce6(0xd7)]?''+_0x4fab5c:_0x601fc7===s['MCPConnectionStatus'][_0x5e0ce6(0x9d)]||_0x601fc7===s[_0x5e0ce6(0xfa)][_0x5e0ce6(0xe3)]?_0x4fab5c+_0x5e0ce6(0x96)+_0x7afbf2['t'](_0x5e0ce6(0xf4)):_0x4fab5c:_0x4fab5c;}function Pe(_0x388fab){const _0x767acb=_0x23229f;switch(_0x388fab){case s[_0x767acb(0xfa)][_0x767acb(0xd7)]:return _0x767acb(0x185);case s[_0x767acb(0xfa)]['CONNECTING']:case s[_0x767acb(0xfa)][_0x767acb(0x1e4)]:return _0x767acb(0x108);case s[_0x767acb(0xfa)]['FAILED']:case s[_0x767acb(0xfa)][_0x767acb(0x9d)]:return _0x767acb(0xec);default:return _0x767acb(0x115);}}function W(_0x101cc3){const _0x37e67e=_0x23229f,{status$:_0x2d42a3,error$:_0x4e5cbf,onConfigure:_0x2abc15,showClickable:_0x3d5dad=!0x0}=_0x101cc3,_0x3b79c5=v[_0x37e67e(0xb3)](_0x2d42a3,s[_0x37e67e(0xfa)][_0x37e67e(0x9d)]),_0x57ae1e=v[_0x37e67e(0xb3)](_0x4e5cbf,s[_0x37e67e(0x84)]['NONE']),_0x140e42=v['useDependency'](u['LocaleService']),_0x45794e=_0x3b79c5===s[_0x37e67e(0xfa)][_0x37e67e(0xd7)];_0x3b79c5===s[_0x37e67e(0xfa)][_0x37e67e(0x13c)]||s[_0x37e67e(0xfa)][_0x37e67e(0x1e4)];const _0x36c4b2=_0x140e42['t'](Z(_0x3b79c5,_0x57ae1e)),_0x42dffa=Se(_0x3b79c5,_0x57ae1e,_0x140e42,_0x3d5dad),_0x53adb8=Pe(_0x3b79c5),_0xb04b4c=_0x45794e?i[_0x37e67e(0xe5)](q,{}):i['jsx'](Y,{}),_0xb75f40=d[_0x37e67e(0x195)](()=>{_0x3d5dad&&_0x2abc15&&_0x2abc15();},[_0x3d5dad,_0x2abc15]);function _0x22f69f(){const _0x89fefb=_0x37e67e;return i[_0x89fefb(0xb8)](_0x89fefb(0x83),{'className':f[_0x89fefb(0x150)](_0x89fefb(0x97),_0x3d5dad&&_0x2abc15&&_0x89fefb(0xab)),'role':_0x89fefb(0x1ad),'onClick':_0x3d5dad&&_0x2abc15?_0xb75f40:void 0x0,'children':[i['jsx'](_0x89fefb(0x83),{'className':f[_0x89fefb(0x150)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x53adb8),'children':_0xb04b4c}),i[_0x89fefb(0xe5)]('div',{'className':_0x89fefb(0xdb),'children':_0x36c4b2})]});}return i['jsx'](f[_0x37e67e(0xae)],{'title':_0x42dffa,'placement':_0x37e67e(0x1c7),'children':_0x22f69f()});}var Ie=Object[_0x23229f(0x1e5)],_e=(_0x4c29ef,_0x409de8,_0xcf52dd,_0x2302f0)=>{const _0x3a75ac=_0x23229f;for(var _0x3a9c9b=_0x2302f0>0x1?void 0x0:_0x2302f0?Ie(_0x409de8,_0xcf52dd):_0x409de8,_0x3eba77=_0x4c29ef[_0x3a75ac(0x129)]-0x1,_0x51caf7;_0x3eba77>=0x0;_0x3eba77--)(_0x51caf7=_0x4c29ef[_0x3eba77])&&(_0x3a9c9b=_0x51caf7(_0x3a9c9b)||_0x3a9c9b);return _0x3a9c9b;},N=(_0x2d7c6a,_0x199ce1)=>(_0x264459,_0x3b87fb)=>_0x199ce1(_0x264459,_0x3b87fb,_0x2d7c6a);exports['MCPConnectionUIController']=class extends u[_0x23229f(0x1e0)]{constructor(_0x230b80,_0x7c9724,_0x1cdc02,_0x33eaf8){const _0x4b396f=_0x23229f;super(),this[_0x4b396f(0xf9)]=_0x230b80,this[_0x4b396f(0x1c1)]=_0x7c9724,this[_0x4b396f(0x103)]=_0x1cdc02,this['_configService']=_0x33eaf8,this[_0x4b396f(0x8f)](),this[_0x4b396f(0x1e3)]();}[_0x23229f(0x8f)](){const _0x372e73=_0x23229f,_0x5b687f=this[_0x372e73(0x131)][_0x372e73(0x13e)](P);_0x5b687f!=null&&_0x5b687f[_0x372e73(0x19c)]&&(this[_0x372e73(0x1c1)][_0x372e73(0x1d9)]=!0x1);}[_0x23229f(0x1e3)](){const _0x13ddda=_0x23229f,_0x3fad8e=this['_configService'][_0x13ddda(0x13e)](P);(_0x3fad8e==null?void 0x0:_0x3fad8e[_0x13ddda(0xc4)])!==!0x1&&this[_0x13ddda(0x1b0)](this[_0x13ddda(0x103)][_0x13ddda(0x8e)](v['BuiltInUIPart']['HEADER_MENU'],()=>{const _0x377440=_0x13ddda;var _0x3645be;return v['connectInjector'](ye({'status$':this[_0x377440(0x1c1)][_0x377440(0x91)],'error$':this[_0x377440(0x1c1)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3645be=_0x3fad8e==null?void 0x0:_0x3fad8e[_0x377440(0x19c)])!=null?_0x3645be:!0x1}),this['_injector']);}));}['_handleConfigure'](){this['_injector']['get'](exports['MCPConfigUIController'])['showConfigPanel']();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x23229f(0x134)](u[_0x23229f(0xe2)])),N(0x1,u[_0x23229f(0x134)](s[_0x23229f(0x1e8)])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x23229f(0xe8)])],exports[_0x23229f(0x116)]);function ye(_0x313b31){const {status$:_0x270f8f,error$:_0x2ce008,onConfigure:_0x4286cc,showClickable:_0x462c33}=_0x313b31;return function(){return i['jsx'](W,{'status$':_0x270f8f,'error$':_0x2ce008,'onConfigure':_0x4286cc,'showClickable':_0x462c33});};}function Me(_0x23532e){const _0xfd7533=_0x23229f;return{'id':b['id'],'type':v[_0xfd7533(0x170)]['BUTTON'],'icon':_0xfd7533(0x17e),'title':_0xfd7533(0x1ac),'tooltip':'mcpConfig.title'};}const Ne={[v['RibbonStartGroup'][_0x23229f(0x140)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x127485,_0x30036f,_0x599bc3,_0x4cdd27)=>{for(var _0x55b96f=_0x4cdd27>0x1?void 0x0:_0x4cdd27?be(_0x30036f,_0x599bc3):_0x30036f,_0x2f1f21=_0x127485['length']-0x1,_0x554d1b;_0x2f1f21>=0x0;_0x2f1f21--)(_0x554d1b=_0x127485[_0x2f1f21])&&(_0x55b96f=_0x554d1b(_0x55b96f)||_0x55b96f);return _0x55b96f;},z=(_0x25a74a,_0x22424d)=>(_0x2895bf,_0x271b1e)=>_0x22424d(_0x2895bf,_0x271b1e,_0x25a74a);exports[_0x23229f(0x1dd)]=class extends u[_0x23229f(0x1e0)]{constructor(_0x1cd5a1,_0x122c63){const _0xa8273a=_0x23229f;super(),this[_0xa8273a(0x99)]=_0x1cd5a1,this[_0xa8273a(0xc8)]=_0x122c63,this['_initializeCommands'](),this[_0xa8273a(0x17d)]();}['_initializeCommands'](){[b]['forEach'](_0x2ddb72=>{const _0x515e49=_0x5902;this[_0x515e49(0x1b0)](this[_0x515e49(0x99)][_0x515e49(0x139)](_0x2ddb72));});}[_0x23229f(0x17d)](){this['_menuManagerService']['mergeMenu'](Ne);}},exports[_0x23229f(0x1dd)]=je([z(0x0,u[_0x23229f(0xcf)]),z(0x1,v[_0x23229f(0x193)])],exports[_0x23229f(0x1dd)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x23229f(0x199),'connected':_0x23229f(0xce),'failed':'MCP\x20Connection\x20Failed','retrying':_0x23229f(0x18a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x23229f(0xb7),'sessionOccupied':_0x23229f(0xb2),'networkError':_0x23229f(0x1e2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x23229f(0x143),'clickToConfigure':_0x23229f(0x190)},'mcpConfig':{'title':_0x23229f(0xff),'description':_0x23229f(0x1a8),'apiKey':_0x23229f(0xaf),'apiKeyPlaceholder':_0x23229f(0xd2),'apiKeyHint':_0x23229f(0x149),'enableAuth':_0x23229f(0xa9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x23229f(0x1b6),'mcpClientConfig':_0x23229f(0x1b6),'configInstructions':_0x23229f(0x80),'configStepTitle':_0x23229f(0x1c5),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x23229f(0xbe),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x23229f(0xda),'sessionIdDescription':_0x23229f(0x1b5),'authorizationDescription':_0x23229f(0x153),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x23229f(0x141),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x23229f(0x19a),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x23229f(0xe7),'description':_0x23229f(0x142),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23229f(0x1cc)},'validation':{'apiKeyRequired':_0x23229f(0xbc),'apiKeyTooShort':_0x23229f(0x178),'invalidConfig':_0x23229f(0x1de),'invalidApiKey':_0x23229f(0x194)},'connectionStatus':{'disconnected':_0x23229f(0x1cd),'connecting':_0x23229f(0x1b9),'connected':'Connected','failed':_0x23229f(0x15c),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x23229f(0x113),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x23229f(0x105),'maxRetriesExceeded':_0x23229f(0x179)}}},we={'mcpStatus':{'disconnected':_0x23229f(0x1d5),'connecting':_0x23229f(0xb4),'connected':_0x23229f(0x17a),'failed':_0x23229f(0x198),'retrying':'MCP\x20重连中...','unknown':_0x23229f(0x106),'unauthorized':_0x23229f(0x196),'sessionOccupied':_0x23229f(0x162),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x23229f(0x176),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x23229f(0x15f)},'mcpConfig':{'title':_0x23229f(0x12a),'description':_0x23229f(0x175),'apiKey':_0x23229f(0xdd),'apiKeyPlaceholder':_0x23229f(0xac),'apiKeyHint':_0x23229f(0x117),'enableAuth':_0x23229f(0x164),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x23229f(0xf3),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x23229f(0x14d),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x23229f(0xdc),'configStep3':_0x23229f(0x14f),'sessionId':_0x23229f(0x189),'sessionIdDescription':_0x23229f(0x18f),'authorizationDescription':_0x23229f(0x146),'configParameters':_0x23229f(0x118),'maxRetries':_0x23229f(0x1af),'save':_0x23229f(0x1ca),'saving':_0x23229f(0x1a1),'note1':_0x23229f(0x8c),'note2':_0x23229f(0xcd),'configSaved':_0x23229f(0xfe),'configError':'配置保存失败','apiApplyInfo':{'title':_0x23229f(0x19b),'description':_0x23229f(0xa4),'univerAiLabel':_0x23229f(0x11a),'getStarted':_0x23229f(0x1e6)},'validation':{'apiKeyRequired':_0x23229f(0x1b2),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x23229f(0xfb),'invalidApiKey':_0x23229f(0x1ab)},'connectionStatus':{'disconnected':_0x23229f(0x157),'connecting':'连接中...','connected':'已连接','failed':_0x23229f(0x1d2),'retrying':_0x23229f(0xd1)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x23229f(0x11d),'networkError':_0x23229f(0xad),'maxRetriesExceeded':_0x23229f(0x144)}}};var Ae=Object[_0x23229f(0xd9)],Oe=Object[_0x23229f(0x1e5)],De=(_0x20d6d1,_0x253550,_0x571599)=>_0x253550 in _0x20d6d1?Ae(_0x20d6d1,_0x253550,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x571599}):_0x20d6d1[_0x253550]=_0x571599,Ue=(_0x439ab8,_0x3df207,_0x303a0c,_0x3742fd)=>{const _0x43fd0f=_0x23229f;for(var _0x208ac1=_0x3742fd>0x1?void 0x0:_0x3742fd?Oe(_0x3df207,_0x303a0c):_0x3df207,_0x328598=_0x439ab8[_0x43fd0f(0x129)]-0x1,_0xb28853;_0x328598>=0x0;_0x328598--)(_0xb28853=_0x439ab8[_0x328598])&&(_0x208ac1=_0xb28853(_0x208ac1)||_0x208ac1);return _0x208ac1;},y=(_0x3193ae,_0x458188)=>(_0x228832,_0x6061d0)=>_0x458188(_0x228832,_0x6061d0,_0x3193ae),$e=(_0x226368,_0x24ba81,_0x1b7a40)=>De(_0x226368,_0x24ba81+'',_0x1b7a40);exports[_0x23229f(0xf0)]=class extends u['Plugin']{constructor(_0x413c46=L,_0xded43,_0x286725,_0x5bd608,_0x5c9097,_0x49c23e){const _0x573184=_0x23229f;super(),this['_config']=_0x413c46,this['_injector']=_0xded43,this[_0x573184(0x131)]=_0x286725,this[_0x573184(0x103)]=_0x5bd608,this[_0x573184(0x1d6)]=_0x5c9097,this[_0x573184(0x124)]=_0x49c23e;const {..._0x2f0e9d}=u['merge']({},L,this['_config']);this['_configService']['setConfig'](P,_0x2f0e9d);}async[_0x23229f(0xa8)](){const _0x569bd7=_0x23229f,_0x112905=[[exports[_0x569bd7(0x116)]],[exports[_0x569bd7(0x9a)]],[exports[_0x569bd7(0x1dd)]]];this[_0x569bd7(0xf9)]['has'](A['ISocketService'])||_0x112905['push']([A['ISocketService'],{'useClass':A['WebSocketService']}]),_0x112905[_0x569bd7(0x102)](_0x7949d8=>this[_0x569bd7(0xf9)][_0x569bd7(0x1b4)](_0x7949d8)),this[_0x569bd7(0xf9)][_0x569bd7(0xcc)](exports[_0x569bd7(0x116)]),this[_0x569bd7(0xf9)][_0x569bd7(0xcc)](exports['MCPConfigUIController']),this[_0x569bd7(0xf9)][_0x569bd7(0xcc)](exports['MCPUIMenuController']);}},$e(exports['UniverMCPUIPlugin'],'pluginName','MCP_UI_PLUGIN'),exports[_0x23229f(0xf0)]=Ue([u['DependentOn'](s[_0x23229f(0x110)]),y(0x1,u[_0x23229f(0x134)](u[_0x23229f(0xe2)])),y(0x2,u[_0x23229f(0xe8)]),y(0x3,v['IUIPartsService']),y(0x4,u['ILocalStorageService']),y(0x5,u[_0x23229f(0x134)](u[_0x23229f(0x10c)]))],exports[_0x23229f(0xf0)]),exports[_0x23229f(0x1c6)]=V,exports[_0x23229f(0x17f)]=W,exports[_0x23229f(0x8d)]=b,exports[_0x23229f(0x130)]=Ee,exports[_0x23229f(0x7b)]=we;
@@ -1 +1 @@
1
- 'use strict';const _0x104f58=_0x5b84;(function(_0x31c5f2,_0x4aba6b){const _0x1deae8=_0x5b84,_0x280795=_0x31c5f2();while(!![]){try{const _0xf7ed55=parseInt(_0x1deae8(0x196))/0x1*(parseInt(_0x1deae8(0x1b9))/0x2)+parseInt(_0x1deae8(0x195))/0x3+-parseInt(_0x1deae8(0x197))/0x4*(-parseInt(_0x1deae8(0x1a9))/0x5)+parseInt(_0x1deae8(0x1bb))/0x6+-parseInt(_0x1deae8(0x19a))/0x7*(-parseInt(_0x1deae8(0x192))/0x8)+-parseInt(_0x1deae8(0x1b7))/0x9*(parseInt(_0x1deae8(0x1bc))/0xa)+-parseInt(_0x1deae8(0x1b0))/0xb*(parseInt(_0x1deae8(0x194))/0xc);if(_0xf7ed55===_0x4aba6b)break;else _0x280795['push'](_0x280795['shift']());}catch(_0x9a2562){_0x280795['push'](_0x280795['shift']());}}}(_0x1e11,0xba7b7));function _0x5b84(_0x40c6b8,_0x532f0f){_0x40c6b8=_0x40c6b8-0x191;const _0x1e1136=_0x1e11();let _0x5b8401=_0x1e1136[_0x40c6b8];return _0x5b8401;}function _0x1e11(){const _0x1c522f=['Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Session\x20ID','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5SLHiZV','MCP\x20Client\x20Configuration','Enable\x20Authentication','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','1298NHEgHx','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Retrying...','MCP\x20Connected','Click\x20to\x20configure\x20MCP','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','2232zaakvJ','exports','2379838CqyHPM','MCP:\x20Session\x20ID\x20Occupied','6668466eiRWoi','11430ibbAEl','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Save\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','280PLInDz','MCP:\x20Unauthorized','347340ZOdpSW','4169109kHOJAf','1MuCkBr','2420828woysob','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','33313QLcNdu','MCP\x20Configuration','Univer\x20AI\x20Console','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Connection\x20Failed','Configuration\x20Parameters:'];_0x1e11=function(){return _0x1c522f;};return _0x1e11();}const e={'mcpStatus':{'disconnected':_0x104f58(0x1be),'connecting':_0x104f58(0x1a4),'connected':_0x104f58(0x1b3),'failed':_0x104f58(0x1c2),'retrying':_0x104f58(0x1b2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x104f58(0x193),'sessionOccupied':_0x104f58(0x1ba),'networkError':_0x104f58(0x191),'maxRetriesExceeded':_0x104f58(0x1bd),'clickToConnect':_0x104f58(0x1c6),'clickToConfigure':_0x104f58(0x1b4)},'mcpConfig':{'title':_0x104f58(0x19b),'description':_0x104f58(0x1b1),'apiKey':_0x104f58(0x1ac),'apiKeyPlaceholder':_0x104f58(0x198),'apiKeyHint':_0x104f58(0x1a3),'enableAuth':_0x104f58(0x1ab),'enableAuthHint':_0x104f58(0x199),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x104f58(0x1aa),'configInstructions':_0x104f58(0x1a7),'configStepTitle':_0x104f58(0x19f),'configStep1':_0x104f58(0x1b6),'configStep2':_0x104f58(0x1c1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x104f58(0x1a5),'sessionIdDescription':_0x104f58(0x1c0),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x104f58(0x1a1),'maxRetries':'Max\x20Retries','save':_0x104f58(0x1c4),'saving':_0x104f58(0x1a6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x104f58(0x1ae),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x104f58(0x1af),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x104f58(0x1ad),'univerAiLabel':_0x104f58(0x19c),'getStarted':_0x104f58(0x1c3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x104f58(0x19d),'invalidApiKey':_0x104f58(0x1c5)},'connectionStatus':{'disconnected':_0x104f58(0x1a2),'connecting':_0x104f58(0x1b5),'connected':_0x104f58(0x1bf),'failed':_0x104f58(0x1a0),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x104f58(0x1a8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x104f58(0x19e)}}},n=e;module[_0x104f58(0x1b8)]=n;
1
+ 'use strict';const _0x37a2eb=_0x1e73;(function(_0x30ea17,_0x3e5d36){const _0x210bbb=_0x1e73,_0x20773d=_0x30ea17();while(!![]){try{const _0x1dc59f=-parseInt(_0x210bbb(0x148))/0x1+parseInt(_0x210bbb(0x156))/0x2+parseInt(_0x210bbb(0x150))/0x3*(parseInt(_0x210bbb(0x157))/0x4)+-parseInt(_0x210bbb(0x169))/0x5+-parseInt(_0x210bbb(0x173))/0x6+parseInt(_0x210bbb(0x155))/0x7+parseInt(_0x210bbb(0x16e))/0x8;if(_0x1dc59f===_0x3e5d36)break;else _0x20773d['push'](_0x20773d['shift']());}catch(_0x1cdbc7){_0x20773d['push'](_0x20773d['shift']());}}}(_0x5dfe,0x1c009));function _0x1e73(_0x15253c,_0x2f3493){_0x15253c=_0x15253c-0x145;const _0x5dfe81=_0x5dfe();let _0x1e7371=_0x5dfe81[_0x15253c];return _0x1e7371;}const e={'mcpStatus':{'disconnected':_0x37a2eb(0x14f),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x37a2eb(0x149),'retrying':'MCP\x20Retrying...','unknown':_0x37a2eb(0x15e),'unauthorized':_0x37a2eb(0x168),'sessionOccupied':_0x37a2eb(0x14a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x37a2eb(0x147),'clickToConfigure':_0x37a2eb(0x160)},'mcpConfig':{'title':_0x37a2eb(0x152),'description':_0x37a2eb(0x159),'apiKey':_0x37a2eb(0x15b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x37a2eb(0x14c),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x37a2eb(0x171),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x37a2eb(0x158),'configInstructions':_0x37a2eb(0x172),'configStepTitle':_0x37a2eb(0x14d),'configStep1':_0x37a2eb(0x16c),'configStep2':_0x37a2eb(0x162),'configStep3':_0x37a2eb(0x151),'sessionId':_0x37a2eb(0x15f),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x37a2eb(0x16a),'maxRetries':_0x37a2eb(0x153),'save':_0x37a2eb(0x15a),'saving':_0x37a2eb(0x167),'note1':_0x37a2eb(0x16d),'note2':_0x37a2eb(0x14b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x37a2eb(0x154),'apiApplyInfo':{'title':_0x37a2eb(0x161),'description':_0x37a2eb(0x146),'univerAiLabel':_0x37a2eb(0x163),'getStarted':_0x37a2eb(0x15c)},'validation':{'apiKeyRequired':_0x37a2eb(0x15d),'apiKeyTooShort':_0x37a2eb(0x170),'invalidConfig':_0x37a2eb(0x16b),'invalidApiKey':_0x37a2eb(0x14e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x37a2eb(0x16f),'connected':_0x37a2eb(0x166),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x37a2eb(0x145),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x37a2eb(0x164)}}},n=e;function _0x5dfe(){const _0x3f692d=['Session\x20ID','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','exports','Connected','Saving...','MCP:\x20Unauthorized','392205mEqnyA','Configuration\x20Parameters:','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1812728uQLZva','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','875910WXkAsl','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','219824febNLT','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Disconnected','314547HIPGrd','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Max\x20Retries','Failed\x20to\x20save\x20configuration','650202mUTfHF','269242rZMzaQ','4HFhReZ','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status'];_0x5dfe=function(){return _0x3f692d;};return _0x5dfe();}module[_0x37a2eb(0x165)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x2d82ee=_0x2d4a;function _0x1ffb(){const _0x35656b=['Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','1385574YdESyV','4gdbcDT','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','507219VUkFOJ','MCP:\x20Unauthorized','API\x20Key','API\x20key\x20is\x20required','Connecting...','829055ZhWiaA','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','2637iuvbuh','Max\x20Retries','344544AGkGTA','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','Retrying...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','4100QaQlmM','Connected','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Saving...','75944BdTcWX','exports','Configuration\x20Steps:','153721UwLzCZ','7lpxgWQ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x1ffb=function(){return _0x35656b;};return _0x1ffb();}function _0x2d4a(_0x57c189,_0x5b0e6a){_0x57c189=_0x57c189-0x136;const _0x1ffbf8=_0x1ffb();let _0x2d4ae6=_0x1ffbf8[_0x57c189];return _0x2d4ae6;}(function(_0x5aba3e,_0x2b48aa){const _0x3b770a=_0x2d4a,_0x1bc2ed=_0x5aba3e();while(!![]){try{const _0x5aaa6d=-parseInt(_0x3b770a(0x151))/0x1+parseInt(_0x3b770a(0x13e))/0x2+-parseInt(_0x3b770a(0x160))/0x3+-parseInt(_0x3b770a(0x159))/0x4*(-parseInt(_0x3b770a(0x165))/0x5)+-parseInt(_0x3b770a(0x158))/0x6*(-parseInt(_0x3b770a(0x152))/0x7)+-parseInt(_0x3b770a(0x14e))/0x8+parseInt(_0x3b770a(0x13c))/0x9*(-parseInt(_0x3b770a(0x148))/0xa);if(_0x5aaa6d===_0x2b48aa)break;else _0x1bc2ed['push'](_0x1bc2ed['shift']());}catch(_0x1410be){_0x1bc2ed['push'](_0x1bc2ed['shift']());}}}(_0x1ffb,0x1c773));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x2d82ee(0x144),'retrying':_0x2d82ee(0x155),'unknown':_0x2d82ee(0x142),'unauthorized':_0x2d82ee(0x161),'sessionOccupied':_0x2d82ee(0x156),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2d82ee(0x13a)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2d82ee(0x138),'apiKey':_0x2d82ee(0x162),'apiKeyPlaceholder':_0x2d82ee(0x136),'apiKeyHint':_0x2d82ee(0x13f),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2d82ee(0x166),'connectionInfo':_0x2d82ee(0x143),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2d82ee(0x137),'configStepTitle':_0x2d82ee(0x150),'configStep1':_0x2d82ee(0x147),'configStep2':_0x2d82ee(0x145),'configStep3':_0x2d82ee(0x15c),'sessionId':_0x2d82ee(0x139),'sessionIdDescription':_0x2d82ee(0x153),'authorizationDescription':_0x2d82ee(0x14a),'configParameters':_0x2d82ee(0x146),'maxRetries':_0x2d82ee(0x13d),'save':_0x2d82ee(0x15d),'saving':_0x2d82ee(0x14d),'note1':_0x2d82ee(0x15e),'note2':_0x2d82ee(0x15a),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2d82ee(0x14c),'univerAiLabel':_0x2d82ee(0x140),'getStarted':_0x2d82ee(0x157)},'validation':{'apiKeyRequired':_0x2d82ee(0x163),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2d82ee(0x15b),'invalidApiKey':_0x2d82ee(0x13b)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2d82ee(0x164),'connected':_0x2d82ee(0x149),'failed':'Connection\x20Failed','retrying':_0x2d82ee(0x141)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2d82ee(0x154),'networkError':_0x2d82ee(0x15f),'maxRetriesExceeded':_0x2d82ee(0x14b)}}};module[_0x2d82ee(0x14f)]=e;
1
+ 'use strict';function _0x25c2(){const _0x6246ad=['API\x20key\x20is\x20required','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20saved\x20successfully','5LNZShn','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','7310GsoLYG','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','306dpgiVG','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Connection\x20Failed','15627645rGghvA','56LsMVIS','exports','408289nzuyKO','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','3257376dqdlhu','Saving...','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','248390rPPVOR','200735QYPsex','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','1410544wlCvkC','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Connecting...','717GEbDMy','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x25c2=function(){return _0x6246ad;};return _0x25c2();}const _0x4db9cd=_0x2d23;(function(_0x541399,_0x506644){const _0x34b9e9=_0x2d23,_0x282c2f=_0x541399();while(!![]){try{const _0x1157c8=parseInt(_0x34b9e9(0xd0))/0x1+-parseInt(_0x34b9e9(0xea))/0x2*(parseInt(_0x34b9e9(0xda))/0x3)+parseInt(_0x34b9e9(0xd5))/0x4*(-parseInt(_0x34b9e9(0xe1))/0x5)+parseInt(_0x34b9e9(0xcb))/0x6+parseInt(_0x34b9e9(0xc6))/0x7*(parseInt(_0x34b9e9(0xc4))/0x8)+parseInt(_0x34b9e9(0xb9))/0x9*(-parseInt(_0x34b9e9(0xcf))/0xa)+parseInt(_0x34b9e9(0xc3))/0xb;if(_0x1157c8===_0x506644)break;else _0x282c2f['push'](_0x282c2f['shift']());}catch(_0x243c59){_0x282c2f['push'](_0x282c2f['shift']());}}}(_0x25c2,0x7a894));function _0x2d23(_0x443efc,_0x43ffae){_0x443efc=_0x443efc-0xb6;const _0x25c2d1=_0x25c2();let _0x2d230=_0x25c2d1[_0x443efc];return _0x2d230;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4db9cd(0xd8),'connected':_0x4db9cd(0xe7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4db9cd(0xdb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4db9cd(0xc1),'sessionOccupied':_0x4db9cd(0xc8),'networkError':_0x4db9cd(0xd6),'maxRetriesExceeded':_0x4db9cd(0xd1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4db9cd(0xbe)},'mcpConfig':{'title':_0x4db9cd(0xe2),'description':_0x4db9cd(0xe3),'apiKey':_0x4db9cd(0xcd),'apiKeyPlaceholder':_0x4db9cd(0xb7),'apiKeyHint':_0x4db9cd(0xdc),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4db9cd(0xc0),'connectionInfo':_0x4db9cd(0xbb),'mcpClientConfig':_0x4db9cd(0xbb),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4db9cd(0xd4),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4db9cd(0xdf),'configStep3':_0x4db9cd(0xe6),'sessionId':_0x4db9cd(0xeb),'sessionIdDescription':_0x4db9cd(0xce),'authorizationDescription':_0x4db9cd(0xc9),'configParameters':_0x4db9cd(0xde),'maxRetries':_0x4db9cd(0xe9),'save':_0x4db9cd(0xe4),'saving':_0x4db9cd(0xcc),'note1':_0x4db9cd(0xbd),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4db9cd(0xe0),'configError':_0x4db9cd(0xca),'apiApplyInfo':{'title':_0x4db9cd(0xd7),'description':_0x4db9cd(0xb8),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4db9cd(0xc7)},'validation':{'apiKeyRequired':_0x4db9cd(0xdd),'apiKeyTooShort':_0x4db9cd(0xbf),'invalidConfig':_0x4db9cd(0xe5),'invalidApiKey':_0x4db9cd(0xb6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4db9cd(0xd9),'connected':_0x4db9cd(0xd2),'failed':_0x4db9cd(0xc2),'retrying':_0x4db9cd(0xbc)},'connectionError':{'unauthorized':_0x4db9cd(0xe8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4db9cd(0xd3),'maxRetriesExceeded':_0x4db9cd(0xba)}}};module[_0x4db9cd(0xc5)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x57a8(_0x189a8a,_0x23a623){_0x189a8a=_0x189a8a-0x136;const _0x2b8d40=_0x2b8d();let _0x57a877=_0x2b8d40[_0x189a8a];return _0x57a877;}const _0x5810a=_0x57a8;(function(_0x376b96,_0x882a43){const _0x20e853=_0x57a8,_0x1dea3b=_0x376b96();while(!![]){try{const _0x19241d=parseInt(_0x20e853(0x163))/0x1+-parseInt(_0x20e853(0x161))/0x2+parseInt(_0x20e853(0x13b))/0x3+-parseInt(_0x20e853(0x15a))/0x4*(-parseInt(_0x20e853(0x143))/0x5)+-parseInt(_0x20e853(0x149))/0x6*(parseInt(_0x20e853(0x157))/0x7)+-parseInt(_0x20e853(0x14a))/0x8*(-parseInt(_0x20e853(0x13d))/0x9)+parseInt(_0x20e853(0x142))/0xa*(-parseInt(_0x20e853(0x14f))/0xb);if(_0x19241d===_0x882a43)break;else _0x1dea3b['push'](_0x1dea3b['shift']());}catch(_0x17ca34){_0x1dea3b['push'](_0x1dea3b['shift']());}}}(_0x2b8d,0x5cfea));const e={'mcpStatus':{'disconnected':_0x5810a(0x155),'connecting':'MCP\x20Connecting...','connected':_0x5810a(0x13a),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5810a(0x167),'unknown':_0x5810a(0x164),'unauthorized':_0x5810a(0x140),'sessionOccupied':_0x5810a(0x166),'networkError':_0x5810a(0x160),'maxRetriesExceeded':_0x5810a(0x145),'clickToConnect':_0x5810a(0x147),'clickToConfigure':_0x5810a(0x165)},'mcpConfig':{'title':_0x5810a(0x16b),'description':_0x5810a(0x15c),'apiKey':_0x5810a(0x152),'apiKeyPlaceholder':_0x5810a(0x16a),'apiKeyHint':_0x5810a(0x151),'enableAuth':_0x5810a(0x14b),'enableAuthHint':_0x5810a(0x156),'connectionInfo':_0x5810a(0x168),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5810a(0x14d),'configStepTitle':_0x5810a(0x141),'configStep1':_0x5810a(0x13c),'configStep2':_0x5810a(0x150),'configStep3':_0x5810a(0x15e),'sessionId':_0x5810a(0x169),'sessionIdDescription':_0x5810a(0x146),'authorizationDescription':_0x5810a(0x14c),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5810a(0x154),'save':_0x5810a(0x153),'saving':_0x5810a(0x15b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5810a(0x148),'configError':_0x5810a(0x13e),'apiApplyInfo':{'title':_0x5810a(0x137),'description':_0x5810a(0x159),'univerAiLabel':_0x5810a(0x144),'getStarted':_0x5810a(0x138)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5810a(0x136),'invalidConfig':_0x5810a(0x13f),'invalidApiKey':_0x5810a(0x14e)},'connectionStatus':{'disconnected':_0x5810a(0x139),'connecting':'Connecting...','connected':'Connected','failed':_0x5810a(0x158),'retrying':_0x5810a(0x15f)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5810a(0x162),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x5810a(0x15d)]=n;function _0x2b8d(){const _0x106961=['MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','MCP\x20Connected','234924RoCAAy','Copy\x20the\x20JSON\x20configuration\x20below','6543QXmKWp','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','MCP:\x20Unauthorized','Configuration\x20Steps:','1550scXBVK','19825EqHlKx','Univer\x20AI\x20Console','MCP:\x20Max\x20Retries\x20Exceeded','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','Configuration\x20saved\x20successfully','18FvYSxq','4384PVWXCc','Enable\x20Authentication','API\x20key\x20with\x20Bearer\x20prefix.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','80872cqzPLU','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','Save\x20Configuration','Max\x20Retries','MCP\x20Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','30940YsJHXz','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','720upVveN','Saving...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','exports','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','MCP:\x20Network\x20Error','219662zIIZpa','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','453153UKmyJf','MCP\x20Unknown\x20Status','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Retrying...','MCP\x20Client\x20Configuration','Session\x20ID','Enter\x20your\x20API\x20key'];_0x2b8d=function(){return _0x106961;};return _0x2b8d();}
1
+ 'use strict';const _0x3c27aa=_0x4289;(function(_0x12e31a,_0x2d720e){const _0x5cd390=_0x4289,_0x5566f9=_0x12e31a();while(!![]){try{const _0x28eab3=parseInt(_0x5cd390(0x205))/0x1*(-parseInt(_0x5cd390(0x1f5))/0x2)+-parseInt(_0x5cd390(0x1f4))/0x3*(parseInt(_0x5cd390(0x1f3))/0x4)+-parseInt(_0x5cd390(0x1f1))/0x5*(-parseInt(_0x5cd390(0x1ee))/0x6)+parseInt(_0x5cd390(0x1d9))/0x7+-parseInt(_0x5cd390(0x20b))/0x8+parseInt(_0x5cd390(0x1dc))/0x9*(parseInt(_0x5cd390(0x20d))/0xa)+-parseInt(_0x5cd390(0x1e5))/0xb;if(_0x28eab3===_0x2d720e)break;else _0x5566f9['push'](_0x5566f9['shift']());}catch(_0x495798){_0x5566f9['push'](_0x5566f9['shift']());}}}(_0x3152,0x53ca7));function _0x4289(_0x303293,_0x13d617){_0x303293=_0x303293-0x1d9;const _0x3152fe=_0x3152();let _0x42893d=_0x3152fe[_0x303293];return _0x42893d;}const e={'mcpStatus':{'disconnected':_0x3c27aa(0x1f2),'connecting':'MCP\x20Connecting...','connected':_0x3c27aa(0x1e2),'failed':_0x3c27aa(0x210),'retrying':'MCP\x20Retrying...','unknown':_0x3c27aa(0x204),'unauthorized':_0x3c27aa(0x1ed),'sessionOccupied':_0x3c27aa(0x1fb),'networkError':_0x3c27aa(0x1da),'maxRetriesExceeded':_0x3c27aa(0x1dd),'clickToConnect':_0x3c27aa(0x1ea),'clickToConfigure':_0x3c27aa(0x1e4)},'mcpConfig':{'title':_0x3c27aa(0x20a),'description':_0x3c27aa(0x1f9),'apiKey':_0x3c27aa(0x20f),'apiKeyPlaceholder':_0x3c27aa(0x20e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x3c27aa(0x1e1),'enableAuthHint':_0x3c27aa(0x1e0),'connectionInfo':_0x3c27aa(0x1e3),'mcpClientConfig':_0x3c27aa(0x1e3),'configInstructions':_0x3c27aa(0x1e9),'configStepTitle':_0x3c27aa(0x1e6),'configStep1':_0x3c27aa(0x1ec),'configStep2':_0x3c27aa(0x1fc),'configStep3':_0x3c27aa(0x1f6),'sessionId':_0x3c27aa(0x207),'sessionIdDescription':_0x3c27aa(0x202),'authorizationDescription':_0x3c27aa(0x206),'configParameters':_0x3c27aa(0x209),'maxRetries':_0x3c27aa(0x1ef),'save':_0x3c27aa(0x208),'saving':_0x3c27aa(0x20c),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3c27aa(0x201),'configSaved':_0x3c27aa(0x203),'configError':_0x3c27aa(0x1fa),'apiApplyInfo':{'title':_0x3c27aa(0x1eb),'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':_0x3c27aa(0x1df)},'validation':{'apiKeyRequired':_0x3c27aa(0x1e7),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3c27aa(0x1ff),'invalidApiKey':_0x3c27aa(0x1e8)},'connectionStatus':{'disconnected':_0x3c27aa(0x1fe),'connecting':_0x3c27aa(0x1fd),'connected':_0x3c27aa(0x1f8),'failed':_0x3c27aa(0x1f0),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3c27aa(0x1db),'sessionOccupied':_0x3c27aa(0x1de),'networkError':_0x3c27aa(0x211),'maxRetriesExceeded':_0x3c27aa(0x200)}}},n=e;function _0x3152(){const _0x139b27=['10THgcMx','Enter\x20your\x20API\x20key','API\x20Key','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2543583DmWQbu','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5368257LJkQjJ','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','MCP\x20Connected','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','4358365KwuboZ','Configuration\x20Steps:','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','1050kQaofM','Max\x20Retries','Connection\x20Failed','9490tViaRW','MCP\x20Disconnected','1196gsFqnB','207BYuhRP','4192kxEfSe','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','exports','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Disconnected','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','MCP\x20Unknown\x20Status','16pHXIOg','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','Save\x20Configuration','Configuration\x20Parameters:','MCP\x20Configuration','3987224IhVhtJ','Saving...'];_0x3152=function(){return _0x139b27;};return _0x3152();}module[_0x3c27aa(0x1f7)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x599b38=_0x260c;(function(_0x56bacf,_0x96cc65){const _0x30b431=_0x260c,_0x5c6c0c=_0x56bacf();while(!![]){try{const _0xfaa5cb=parseInt(_0x30b431(0x1df))/0x1*(-parseInt(_0x30b431(0x1ce))/0x2)+-parseInt(_0x30b431(0x1c7))/0x3*(-parseInt(_0x30b431(0x1f1))/0x4)+parseInt(_0x30b431(0x1c1))/0x5+parseInt(_0x30b431(0x1d3))/0x6+parseInt(_0x30b431(0x1f0))/0x7*(-parseInt(_0x30b431(0x1d9))/0x8)+parseInt(_0x30b431(0x1e7))/0x9*(-parseInt(_0x30b431(0x1ca))/0xa)+-parseInt(_0x30b431(0x1db))/0xb;if(_0xfaa5cb===_0x96cc65)break;else _0x5c6c0c['push'](_0x5c6c0c['shift']());}catch(_0xda4687){_0x5c6c0c['push'](_0x5c6c0c['shift']());}}}(_0x2279,0x42151));function _0x260c(_0x31e304,_0x5db209){_0x31e304=_0x31e304-0x1bf;const _0x2279e1=_0x2279();let _0x260c5a=_0x2279e1[_0x31e304];return _0x260c5a;}const e={'mcpStatus':{'disconnected':_0x599b38(0x1c0),'connecting':_0x599b38(0x1d6),'connected':_0x599b38(0x1c3),'failed':_0x599b38(0x1cd),'retrying':_0x599b38(0x1cb),'unknown':_0x599b38(0x1c6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x599b38(0x1e4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x599b38(0x1d5),'clickToConnect':_0x599b38(0x1d0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x599b38(0x1e0),'description':_0x599b38(0x1cc),'apiKey':_0x599b38(0x1e2),'apiKeyPlaceholder':_0x599b38(0x1dd),'apiKeyHint':_0x599b38(0x1e9),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x599b38(0x1c4),'connectionInfo':_0x599b38(0x1d2),'mcpClientConfig':_0x599b38(0x1d2),'configInstructions':_0x599b38(0x1ea),'configStepTitle':_0x599b38(0x1bf),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x599b38(0x1c8),'sessionId':_0x599b38(0x1e8),'sessionIdDescription':_0x599b38(0x1ec),'authorizationDescription':_0x599b38(0x1c9),'configParameters':_0x599b38(0x1e1),'maxRetries':_0x599b38(0x1f2),'save':_0x599b38(0x1cf),'saving':_0x599b38(0x1d7),'note1':_0x599b38(0x1ed),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x599b38(0x1e3),'apiApplyInfo':{'title':_0x599b38(0x1eb),'description':_0x599b38(0x1da),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x599b38(0x1e5)},'validation':{'apiKeyRequired':_0x599b38(0x1dc),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x599b38(0x1c2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x599b38(0x1d4),'connected':_0x599b38(0x1ef),'failed':_0x599b38(0x1d8),'retrying':_0x599b38(0x1e6)},'connectionError':{'unauthorized':_0x599b38(0x1de),'sessionOccupied':_0x599b38(0x1c5),'networkError':_0x599b38(0x1d1),'maxRetriesExceeded':_0x599b38(0x1ee)}}},n=e;function _0x2279(){const _0x2cb30f=['Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','108535QVfKcw','4PjabaU','Max\x20Retries','Configuration\x20Steps:','MCP\x20Disconnected','2478480SYEykp','Invalid\x20configuration','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','1350477oJLAvP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','10jCJlYB','MCP\x20Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','5434HPPerH','Save\x20Configuration','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','1655730SyydeJ','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','Saving...','Connection\x20Failed','184btBwFm','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2197701RRhAII','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','49sqAYKf','MCP\x20Configuration','Configuration\x20Parameters:','API\x20Key','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','2354382EOJedi','Session\x20ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x2279=function(){return _0x2cb30f;};return _0x2279();}module['exports']=n;
1
+ 'use strict';const _0x38241f=_0x57f9;function _0x5d2d(){const _0x57a559=['MCP\x20Client\x20Configuration','Session\x20ID','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','416uTimaR','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','7400zbVpKk','Connecting...','API\x20key\x20is\x20required','1920446ErSqLn','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4519355DiOSTM','API\x20Key','Disconnected','2nEwnMu','12fkvnzY','2093811ovgWZt','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','MCP\x20Retrying...','Configuration\x20Parameters:','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Get\x20your\x20API\x20key\x20in\x20seconds','144977NdHnDK','1520003rnkihK','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','4bvSfxX','MCP\x20Configuration','MCP\x20Unknown\x20Status','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','exports','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','7839PYFvcy','Enable\x20authentication\x20for\x20secure\x20connections','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3862794pqVBwv'];_0x5d2d=function(){return _0x57a559;};return _0x5d2d();}(function(_0x2c0f17,_0x5bddb0){const _0x2011ea=_0x57f9,_0x5f1438=_0x2c0f17();while(!![]){try{const _0x1d995c=-parseInt(_0x2011ea(0x11d))/0x1*(-parseInt(_0x2011ea(0x14b))/0x2)+-parseInt(_0x2011ea(0x14d))/0x3+-parseInt(_0x2011ea(0x122))/0x4*(parseInt(_0x2011ea(0x148))/0x5)+parseInt(_0x2011ea(0x130))/0x6+parseInt(_0x2011ea(0x155))/0x7*(parseInt(_0x2011ea(0x134))/0x8)+parseInt(_0x2011ea(0x12d))/0x9*(-parseInt(_0x2011ea(0x13e))/0xa)+-parseInt(_0x2011ea(0x141))/0xb*(parseInt(_0x2011ea(0x14c))/0xc);if(_0x1d995c===_0x5bddb0)break;else _0x5f1438['push'](_0x5f1438['shift']());}catch(_0x5455f3){_0x5f1438['push'](_0x5f1438['shift']());}}}(_0x5d2d,0xc8280));function _0x57f9(_0x5c3fc8,_0x5401a1){_0x5c3fc8=_0x5c3fc8-0x11d;const _0x5d2d11=_0x5d2d();let _0x57f96e=_0x5d2d11[_0x5c3fc8];return _0x57f96e;}const e={'mcpStatus':{'disconnected':_0x38241f(0x152),'connecting':'MCP\x20Connecting...','connected':_0x38241f(0x127),'failed':_0x38241f(0x125),'retrying':_0x38241f(0x150),'unknown':_0x38241f(0x124),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x38241f(0x13a),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x38241f(0x139),'clickToConnect':_0x38241f(0x142),'clickToConfigure':_0x38241f(0x126)},'mcpConfig':{'title':_0x38241f(0x123),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x38241f(0x149),'apiKeyPlaceholder':_0x38241f(0x12a),'apiKeyHint':_0x38241f(0x120),'enableAuth':_0x38241f(0x137),'enableAuthHint':_0x38241f(0x12e),'connectionInfo':_0x38241f(0x131),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x38241f(0x147),'configStepTitle':_0x38241f(0x146),'configStep1':_0x38241f(0x153),'configStep2':_0x38241f(0x12b),'configStep3':_0x38241f(0x12f),'sessionId':_0x38241f(0x132),'sessionIdDescription':_0x38241f(0x145),'authorizationDescription':_0x38241f(0x136),'configParameters':_0x38241f(0x151),'maxRetries':'Max\x20Retries','save':_0x38241f(0x135),'saving':_0x38241f(0x121),'note1':_0x38241f(0x13d),'note2':_0x38241f(0x12c),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x38241f(0x13c),'apiApplyInfo':{'title':_0x38241f(0x143),'description':_0x38241f(0x11f),'univerAiLabel':_0x38241f(0x11e),'getStarted':_0x38241f(0x154)},'validation':{'apiKeyRequired':_0x38241f(0x140),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x38241f(0x138)},'connectionStatus':{'disconnected':_0x38241f(0x14a),'connecting':_0x38241f(0x13f),'connected':_0x38241f(0x144),'failed':_0x38241f(0x14f),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x38241f(0x133),'sessionOccupied':_0x38241f(0x128),'networkError':_0x38241f(0x14e),'maxRetriesExceeded':_0x38241f(0x13b)}}},n=e;module[_0x38241f(0x129)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x104c93=_0x5df1;(function(_0x14a6e5,_0x39962a){const _0x5bb824=_0x5df1,_0x247212=_0x14a6e5();while(!![]){try{const _0x55eb23=parseInt(_0x5bb824(0x13d))/0x1+-parseInt(_0x5bb824(0x14e))/0x2+-parseInt(_0x5bb824(0x153))/0x3+-parseInt(_0x5bb824(0x162))/0x4+parseInt(_0x5bb824(0x141))/0x5+-parseInt(_0x5bb824(0x152))/0x6+parseInt(_0x5bb824(0x148))/0x7*(parseInt(_0x5bb824(0x15d))/0x8);if(_0x55eb23===_0x39962a)break;else _0x247212['push'](_0x247212['shift']());}catch(_0x347370){_0x247212['push'](_0x247212['shift']());}}}(_0xfde7,0x30151));function _0x5df1(_0x24df05,_0x3e1d0e){_0x24df05=_0x24df05-0x135;const _0xfde715=_0xfde7();let _0x5df15b=_0xfde715[_0x24df05];return _0x5df15b;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x104c93(0x157),'connected':_0x104c93(0x149),'failed':_0x104c93(0x15a),'retrying':_0x104c93(0x163),'unknown':_0x104c93(0x13a),'unauthorized':_0x104c93(0x164),'sessionOccupied':_0x104c93(0x15c),'networkError':_0x104c93(0x13b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x104c93(0x13c),'clickToConfigure':_0x104c93(0x142)},'mcpConfig':{'title':_0x104c93(0x144),'description':_0x104c93(0x146),'apiKey':_0x104c93(0x161),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x104c93(0x145),'connectionInfo':_0x104c93(0x147),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x104c93(0x154),'configStepTitle':_0x104c93(0x160),'configStep1':_0x104c93(0x13e),'configStep2':_0x104c93(0x13f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x104c93(0x14c),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x104c93(0x155),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x104c93(0x156),'save':'Save\x20Configuration','saving':_0x104c93(0x14b),'note1':_0x104c93(0x143),'note2':_0x104c93(0x15b),'configSaved':_0x104c93(0x135),'configError':_0x104c93(0x165),'apiApplyInfo':{'title':_0x104c93(0x138),'description':_0x104c93(0x15e),'univerAiLabel':_0x104c93(0x150),'getStarted':_0x104c93(0x140)},'validation':{'apiKeyRequired':_0x104c93(0x14f),'apiKeyTooShort':_0x104c93(0x151),'invalidConfig':_0x104c93(0x14a),'invalidApiKey':_0x104c93(0x159)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x104c93(0x137),'connected':_0x104c93(0x14d),'failed':'Connection\x20Failed','retrying':_0x104c93(0x139)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x104c93(0x15f),'networkError':_0x104c93(0x136),'maxRetriesExceeded':_0x104c93(0x166)}}},n=e;module[_0x104c93(0x158)]=n;function _0xfde7(){const _0x1f5528=['API\x20Key','292128xuSXuP','MCP\x20Retrying...','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','What\x20is\x20API\x20Key?','Retrying...','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','43201jdBCoJ','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','1117100oKcZRM','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','607103xfQvFa','MCP\x20Connected','Invalid\x20configuration','Saving...','Session\x20ID','Connected','590956cgPkHN','API\x20key\x20is\x20required','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1463286XWrBiR','713538JEvOfG','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','MCP\x20Connecting...','exports','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Session\x20ID\x20Occupied','72TXKIdP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:'];_0xfde7=function(){return _0x1f5528;};return _0xfde7();}
1
+ 'use strict';const _0xec038a=_0x4bfe;(function(_0x3d98d8,_0x3317c3){const _0x30aa6a=_0x4bfe,_0x4db774=_0x3d98d8();while(!![]){try{const _0x2f7f8e=parseInt(_0x30aa6a(0x16b))/0x1*(parseInt(_0x30aa6a(0x171))/0x2)+-parseInt(_0x30aa6a(0x14c))/0x3*(-parseInt(_0x30aa6a(0x149))/0x4)+parseInt(_0x30aa6a(0x14f))/0x5*(parseInt(_0x30aa6a(0x16c))/0x6)+parseInt(_0x30aa6a(0x155))/0x7+-parseInt(_0x30aa6a(0x157))/0x8+parseInt(_0x30aa6a(0x14e))/0x9+-parseInt(_0x30aa6a(0x175))/0xa;if(_0x2f7f8e===_0x3317c3)break;else _0x4db774['push'](_0x4db774['shift']());}catch(_0x4b2533){_0x4db774['push'](_0x4db774['shift']());}}}(_0x2db2,0xefd1b));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xec038a(0x160),'connected':_0xec038a(0x16f),'failed':_0xec038a(0x164),'retrying':_0xec038a(0x177),'unknown':_0xec038a(0x14d),'unauthorized':_0xec038a(0x165),'sessionOccupied':_0xec038a(0x150),'networkError':_0xec038a(0x169),'maxRetriesExceeded':_0xec038a(0x17b),'clickToConnect':_0xec038a(0x167),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xec038a(0x170),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xec038a(0x163),'apiKeyPlaceholder':_0xec038a(0x162),'apiKeyHint':_0xec038a(0x156),'enableAuth':_0xec038a(0x161),'enableAuthHint':_0xec038a(0x158),'connectionInfo':_0xec038a(0x148),'mcpClientConfig':_0xec038a(0x148),'configInstructions':_0xec038a(0x179),'configStepTitle':_0xec038a(0x151),'configStep1':_0xec038a(0x15d),'configStep2':_0xec038a(0x14b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xec038a(0x15f),'configParameters':_0xec038a(0x16d),'maxRetries':_0xec038a(0x166),'save':_0xec038a(0x173),'saving':'Saving...','note1':_0xec038a(0x174),'note2':_0xec038a(0x152),'configSaved':_0xec038a(0x172),'configError':_0xec038a(0x178),'apiApplyInfo':{'title':_0xec038a(0x15b),'description':_0xec038a(0x15c),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xec038a(0x147)},'validation':{'apiKeyRequired':_0xec038a(0x154),'apiKeyTooShort':_0xec038a(0x14a),'invalidConfig':_0xec038a(0x16e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xec038a(0x15e),'connecting':_0xec038a(0x176),'connected':_0xec038a(0x168),'failed':_0xec038a(0x15a),'retrying':_0xec038a(0x153)},'connectionError':{'unauthorized':_0xec038a(0x17a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xec038a(0x16a),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0xec038a(0x159)]=n;function _0x4bfe(_0x237028,_0x46fef3){_0x237028=_0x237028-0x147;const _0x2db2e4=_0x2db2();let _0x4bfedc=_0x2db2e4[_0x237028];return _0x4bfedc;}function _0x2db2(){const _0x458415=['Click\x20to\x20connect\x20MCP','Connected','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2gQQmDr','756CmIaAq','Configuration\x20Parameters:','Invalid\x20configuration','MCP\x20Connected','MCP\x20Configuration','148914lZwgsd','Configuration\x20saved\x20successfully','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','23823560ufLSup','Connecting...','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','6341548UkWUgK','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3MJJipp','MCP\x20Unknown\x20Status','1704213RnkuWG','31985BKQwHF','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','API\x20key\x20is\x20required','9582636ombLjT','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5871784GhmlDW','Enable\x20authentication\x20for\x20secure\x20connections','exports','Connection\x20Failed','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connecting...','Enable\x20Authentication','Enter\x20your\x20API\x20key','API\x20Key','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Max\x20Retries'];_0x2db2=function(){return _0x458415;};return _0x2db2();}
@@ -1 +1 @@
1
- 'use strict';const _0x2863d8=_0x2854;(function(_0x3ae46c,_0x4db4aa){const _0x44ca53=_0x2854,_0x13826a=_0x3ae46c();while(!![]){try{const _0x491014=parseInt(_0x44ca53(0x1d2))/0x1*(parseInt(_0x44ca53(0x1c6))/0x2)+parseInt(_0x44ca53(0x1d0))/0x3*(-parseInt(_0x44ca53(0x1be))/0x4)+parseInt(_0x44ca53(0x1b7))/0x5+-parseInt(_0x44ca53(0x1b2))/0x6*(parseInt(_0x44ca53(0x1ba))/0x7)+parseInt(_0x44ca53(0x1ad))/0x8+parseInt(_0x44ca53(0x1d1))/0x9+-parseInt(_0x44ca53(0x1a8))/0xa;if(_0x491014===_0x4db4aa)break;else _0x13826a['push'](_0x13826a['shift']());}catch(_0x5d6bdf){_0x13826a['push'](_0x13826a['shift']());}}}(_0x5880,0x9cf84));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x2863d8(0x1a9),'connected':'MCP\x20接続済み','failed':'MCP\x20接続失敗','retrying':_0x2863d8(0x1d4),'unknown':_0x2863d8(0x1c9),'unauthorized':_0x2863d8(0x1d7),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x2863d8(0x1cc),'maxRetriesExceeded':_0x2863d8(0x1bd),'clickToConnect':_0x2863d8(0x1cf),'clickToConfigure':_0x2863d8(0x1a5)},'mcpConfig':{'title':_0x2863d8(0x1c8),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x2863d8(0x1af),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x2863d8(0x1bc),'enableAuth':'認証を有効にする','enableAuthHint':_0x2863d8(0x1ab),'connectionInfo':_0x2863d8(0x1bf),'mcpClientConfig':_0x2863d8(0x1bf),'configInstructions':_0x2863d8(0x1b9),'configStepTitle':_0x2863d8(0x1b4),'configStep1':_0x2863d8(0x1ca),'configStep2':_0x2863d8(0x1cb),'configStep3':_0x2863d8(0x1c7),'sessionId':'セッションID','sessionIdDescription':_0x2863d8(0x1b6),'authorizationDescription':_0x2863d8(0x1d3),'configParameters':_0x2863d8(0x1c5),'maxRetries':_0x2863d8(0x1a7),'save':_0x2863d8(0x1a6),'saving':_0x2863d8(0x1ae),'note1':_0x2863d8(0x1c1),'note2':_0x2863d8(0x1ac),'configSaved':_0x2863d8(0x1c4),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x2863d8(0x1d5),'description':_0x2863d8(0x1c2),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x2863d8(0x1d6)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0x2863d8(0x1b1),'invalidConfig':'無効な設定','invalidApiKey':_0x2863d8(0x1c3)},'connectionStatus':{'disconnected':_0x2863d8(0x1bb),'connecting':_0x2863d8(0x1ce),'connected':_0x2863d8(0x1c0),'failed':_0x2863d8(0x1aa),'retrying':_0x2863d8(0x1b0)},'connectionError':{'unauthorized':_0x2863d8(0x1b3),'sessionOccupied':_0x2863d8(0x1d8),'networkError':_0x2863d8(0x1b8),'maxRetriesExceeded':_0x2863d8(0x1cd)}}};function _0x5880(){const _0x4d8aac=['APIキーはこのブラウザのローカルに保存されます','MCP:\x20最大再試行回数を超過','8tJxVJW','MCPクライアント設定','接続済み','設定の変更は直ちに有効になります','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','無効なAPIキーです。キーが正しいか確認してください','設定が正常に保存されました','設定パラメータ:','1661174vCIzXx','MCPクライアントを再起動して設定を適用','MCP設定','MCP\x20不明な状態','以下のJSON設定をコピー','MCPクライアントの設定ファイルに設定を追加','MCP:\x20ネットワークエラー','最大再試行回数を超過しました。後でもう一度お試しください','接続中...','クリックしてMCPに接続','1780941dElvEk','3462012BACKDE','1ctpkQZ','Bearerプレフィックス付きのAPIキー。','MCP\x20再試行中...','APIキーとは?','数秒でAPIキーを取得','MCP:\x20認証されていません','セッションIDが現在使用中です。後でもう一度お試しください','クリックしてMCPを設定','設定を保存','最大再試行回数','2360790eJvmkT','MCP\x20接続中...','接続失敗','セキュアな接続のために認証を有効にする','APIキーはローカルストレージに安全に保存されます','9905504HcpzCJ','保存中...','APIキー','再試行中...','APIキーは10文字以上である必要があります','6bbbNDZ','認証に失敗しました。APIキーを確認してください','設定手順:','exports','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','110420XCfsEp','ネットワーク接続エラー。インターネット接続を確認してください','MCPクライアントの設定に次の設定を追加してください:','2864442uogLmw','未接続'];_0x5880=function(){return _0x4d8aac;};return _0x5880();}function _0x2854(_0x2b0708,_0x34a981){_0x2b0708=_0x2b0708-0x1a5;const _0x5880bf=_0x5880();let _0x285442=_0x5880bf[_0x2b0708];return _0x285442;}module[_0x2863d8(0x1b5)]=e;
1
+ 'use strict';function _0x4277(){const _0x236f63=['認証を有効にする','Univer\x20AIコンソール','9599508TzzrYs','777759oCKlqp','APIキーはこのブラウザのローカルに保存されます','Bearerプレフィックス付きのAPIキー。','数秒でAPIキーを取得','設定が正常に保存されました','1008268NTCqxR','APIキー','セッションID','13243881HCwYSg','最大再試行回数','MCP:\x20認証されていません','接続失敗','APIキーは必須です','設定パラメータ:','クリックしてMCPに接続','MCP:\x20最大再試行回数を超過','MCP:\x20ネットワークエラー','3ulrsAA','MCP\x20接続失敗','MCPクライアント設定','56qYxPlY','3937688ltMjBU','MCP\x20接続中...','ネットワーク接続エラー。インターネット接続を確認してください','MCP\x20未接続','無効な設定','4887306dwmtsI','保存中...','exports','MCP\x20不明な状態','以下のJSON設定をコピー','接続済み','設定手順:','無効なAPIキーです。キーが正しいか確認してください','APIキーは10文字以上である必要があります','MCPクライアントを再起動して設定を適用','セキュアな接続のために認証を有効にする','MCPクライアントの設定に次の設定を追加してください:','APIキーはローカルストレージに安全に保存されます','MCP\x20接続済み','設定の保存に失敗しました','セッションIDが現在使用中です。後でもう一度お試しください','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','未接続','APIキーとは?','5971550YIQFEI'];_0x4277=function(){return _0x236f63;};return _0x4277();}function _0x504e(_0xd4744d,_0x2c886a){_0xd4744d=_0xd4744d-0x10f;const _0x427706=_0x4277();let _0x504ebe=_0x427706[_0xd4744d];return _0x504ebe;}const _0x585a12=_0x504e;(function(_0x3626fe,_0x13c701){const _0x18fca5=_0x504e,_0x126177=_0x3626fe();while(!![]){try{const _0x5d46df=parseInt(_0x18fca5(0x113))/0x1+parseInt(_0x18fca5(0x128))/0x2+-parseInt(_0x18fca5(0x124))/0x3*(parseInt(_0x18fca5(0x118))/0x4)+-parseInt(_0x18fca5(0x10f))/0x5+parseInt(_0x18fca5(0x112))/0x6+parseInt(_0x18fca5(0x11b))/0x7+-parseInt(_0x18fca5(0x127))/0x8*(parseInt(_0x18fca5(0x12d))/0x9);if(_0x5d46df===_0x13c701)break;else _0x126177['push'](_0x126177['shift']());}catch(_0x371088){_0x126177['push'](_0x126177['shift']());}}}(_0x4277,0xf1ea9));const e={'mcpStatus':{'disconnected':_0x585a12(0x12b),'connecting':_0x585a12(0x129),'connected':_0x585a12(0x13a),'failed':_0x585a12(0x125),'retrying':'MCP\x20再試行中...','unknown':_0x585a12(0x130),'unauthorized':_0x585a12(0x11d),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x585a12(0x123),'maxRetriesExceeded':_0x585a12(0x122),'clickToConnect':_0x585a12(0x121),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':'MCP設定','description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x585a12(0x119),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x585a12(0x114),'enableAuth':_0x585a12(0x110),'enableAuthHint':_0x585a12(0x137),'connectionInfo':_0x585a12(0x126),'mcpClientConfig':_0x585a12(0x126),'configInstructions':_0x585a12(0x138),'configStepTitle':_0x585a12(0x133),'configStep1':_0x585a12(0x131),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x585a12(0x136),'sessionId':_0x585a12(0x11a),'sessionIdDescription':_0x585a12(0x13d),'authorizationDescription':_0x585a12(0x115),'configParameters':_0x585a12(0x120),'maxRetries':_0x585a12(0x11c),'save':'設定を保存','saving':_0x585a12(0x12e),'note1':'設定の変更は直ちに有効になります','note2':_0x585a12(0x139),'configSaved':_0x585a12(0x117),'configError':_0x585a12(0x13b),'apiApplyInfo':{'title':_0x585a12(0x13f),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x585a12(0x111),'getStarted':_0x585a12(0x116)},'validation':{'apiKeyRequired':_0x585a12(0x11f),'apiKeyTooShort':_0x585a12(0x135),'invalidConfig':_0x585a12(0x12c),'invalidApiKey':_0x585a12(0x134)},'connectionStatus':{'disconnected':_0x585a12(0x13e),'connecting':'接続中...','connected':_0x585a12(0x132),'failed':_0x585a12(0x11e),'retrying':'再試行中...'},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x585a12(0x13c),'networkError':_0x585a12(0x12a),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module[_0x585a12(0x12f)]=e;