@univerjs-pro/mcp-ui 0.15.1 → 0.15.2-insiders.20260119-edc718c

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 (49) 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/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5b9bc3=_0x4f4d;(function(_0x8272f8,_0x38473e){const _0x25b85e=_0x4f4d,_0x158366=_0x8272f8();while(!![]){try{const _0x29887d=-parseInt(_0x25b85e(0x1b9))/0x1+parseInt(_0x25b85e(0x277))/0x2+parseInt(_0x25b85e(0x225))/0x3*(-parseInt(_0x25b85e(0x26d))/0x4)+parseInt(_0x25b85e(0x1af))/0x5*(parseInt(_0x25b85e(0x213))/0x6)+-parseInt(_0x25b85e(0x2f6))/0x7+-parseInt(_0x25b85e(0x2d1))/0x8+parseInt(_0x25b85e(0x199))/0x9*(parseInt(_0x25b85e(0x25d))/0xa);if(_0x29887d===_0x38473e)break;else _0x158366['push'](_0x158366['shift']());}catch(_0x283197){_0x158366['push'](_0x158366['shift']());}}}(_0x2f0c,0x4efe1));var Pe=Object[_0x5b9bc3(0x2c4)],Ee=(_0x21c954,_0x2d5a2e,_0x277c65)=>_0x2d5a2e in _0x21c954?Pe(_0x21c954,_0x2d5a2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x277c65}):_0x21c954[_0x2d5a2e]=_0x277c65,x=(_0x489c1b,_0x155b18,_0x4240f6)=>Ee(_0x489c1b,typeof _0x155b18!=_0x5b9bc3(0x21b)?_0x155b18+'':_0x155b18,_0x4240f6);import{LocaleService as _0x5acff8,Inject as _0x19a565,Injector as _0x4022b1,IConfigService as _0x8e1c04,ILocalStorageService as _0x4c2eba,ILogService as _0x221b11,Disposable as _0x38c81e,CommandType as _0x10df29,ICommandService as _0x30ffad,DependentOn as _0x617d51,Plugin as _0x2065f8,merge as _0x286fb1}from'@univerjs/core';import{jsxs as _0x2a5706,jsx as _0x19de99}from'react/jsx-runtime';import{MCPConnectionStatus as _0x365507,MCPConnectionError as _0x55c172,MCPConnectionController as _0xaa88e9,MCP_PLUGIN_CONFIG_KEY as _0x2c40d3,UniverMCPPlugin as _0x4b8cc0}from'@univerjs-pro/mcp';import{clsx as _0x270b4d,Input as _0x153bb3,Button as _0x1035d9,MessageType as _0x325300,Tooltip as _0x1e3ebe}from'@univerjs/design';import{useDependency as _0x3d96bb,useObservable as _0x24e61d,IUIPartsService as _0x32a2ba,IDialogService as _0xee33a6,IMessageService as _0x12460d,ComponentManager as _0x1f0dc9,connectInjector as _0x3c88d9,BuiltInUIPart as _0x213245,MenuItemType as _0x31cb4c,RibbonStartGroup as _0xbead22,IMenuManagerService as _0x1face2}from'@univerjs/ui';import{BehaviorSubject as _0x2a0439}from'rxjs';import{useRef as _0x20bffd,createElement as _0x273557,forwardRef as _0x4d105e,useState as _0x53b5de,useCallback as _0x40ddaf}from'react';import{ISocketService as _0x447220,WebSocketService as _0x4200bf}from'@univerjs/network';function b({ref:_0x41cff8,..._0x47a3c3}){const _0x1a383a=_0x5b9bc3,{icon:_0x516e56,id:_0x4f855c,className:_0x253f71,extend:_0x258afa,..._0x463ea2}=_0x47a3c3,_0x450090=(_0x1a383a(0x282)+_0x4f855c+'\x20'+(_0x253f71||''))['trim'](),_0x48257b=_0x20bffd('_'+We());return ae(_0x516e56,''+_0x4f855c,{'defIds':_0x516e56[_0x1a383a(0x2a9)],'idSuffix':_0x48257b['current']},{'ref':_0x41cff8,'className':_0x450090,..._0x463ea2},_0x258afa);}function ae(_0x33e1a8,_0x45454c,_0x4d24b2,_0x47251a,_0x21930d){const _0x3ba396=_0x5b9bc3;return _0x273557(_0x33e1a8['tag'],{'key':_0x45454c,...Ye(_0x33e1a8,_0x4d24b2,_0x21930d),..._0x47251a},(Ze(_0x33e1a8,_0x4d24b2)[_0x3ba396(0x1e9)]||[])[_0x3ba396(0x1ad)]((_0x5220ce,_0x8e46b2)=>ae(_0x5220ce,_0x45454c+'-'+_0x33e1a8[_0x3ba396(0x2dd)]+'-'+_0x8e46b2,_0x4d24b2,void 0x0,_0x21930d)));}function Ye(_0x25206f,_0x438873,_0x1e59a0){const _0x10bbba=_0x5b9bc3,_0x463ec6={..._0x25206f['attrs']};_0x1e59a0!=null&&_0x1e59a0[_0x10bbba(0x2c1)]&&_0x463ec6[_0x10bbba(0x1a3)]===_0x10bbba(0x2c1)&&(_0x463ec6[_0x10bbba(0x1a3)]=_0x1e59a0[_0x10bbba(0x2c1)]),_0x25206f[_0x10bbba(0x2dd)]==='mask'&&_0x463ec6['id']&&(_0x463ec6['id']=_0x463ec6['id']+_0x438873[_0x10bbba(0x2b6)]),Object[_0x10bbba(0x1f9)](_0x463ec6)['forEach'](([_0x497202,_0x5f32e9])=>{const _0xf0fea=_0x10bbba;_0x497202===_0xf0fea(0x287)&&typeof _0x5f32e9==_0xf0fea(0x1f1)&&(_0x463ec6[_0x497202]=_0x5f32e9[_0xf0fea(0x291)](/url\(#(.*)\)/,_0xf0fea(0x1c7)+_0x438873[_0xf0fea(0x2b6)]+')'));});const {defIds:_0x1ead05}=_0x438873;return!_0x1ead05||_0x1ead05['length']===0x0||(_0x25206f['tag']===_0x10bbba(0x2ee)&&_0x463ec6['xlink:href']&&(_0x463ec6[_0x10bbba(0x1fa)]=_0x463ec6[_0x10bbba(0x1fa)]+_0x438873[_0x10bbba(0x2b6)]),Object[_0x10bbba(0x1f9)](_0x463ec6)[_0x10bbba(0x2fa)](([_0x144185,_0x57b40e])=>{const _0x249aac=_0x10bbba;typeof _0x57b40e==_0x249aac(0x1f1)&&(_0x463ec6[_0x144185]=_0x57b40e[_0x249aac(0x291)](/url\(#(.*)\)/,_0x249aac(0x1c7)+_0x438873[_0x249aac(0x2b6)]+')'));})),_0x463ec6;}function Ze(_0x2a6967,_0x50066a){const _0x4ffd74=_0x5b9bc3;var _0x4c2346;const {defIds:_0x33fe7e}=_0x50066a;return!_0x33fe7e||_0x33fe7e[_0x4ffd74(0x1d6)]===0x0?_0x2a6967:_0x2a6967['tag']==='defs'&&((_0x4c2346=_0x2a6967[_0x4ffd74(0x1e9)])!=null&&_0x4c2346[_0x4ffd74(0x1d6)])?{..._0x2a6967,'children':_0x2a6967[_0x4ffd74(0x1e9)][_0x4ffd74(0x1ad)](_0x3b00e8=>typeof _0x3b00e8[_0x4ffd74(0x209)]['id']==_0x4ffd74(0x1f1)&&_0x33fe7e&&_0x33fe7e['includes'](_0x3b00e8['attrs']['id'])?{..._0x3b00e8,'attrs':{..._0x3b00e8['attrs'],'id':_0x3b00e8[_0x4ffd74(0x209)]['id']+_0x50066a[_0x4ffd74(0x2b6)]}}:_0x3b00e8)}:_0x2a6967;}function We(){const _0x3ad0cc=_0x5b9bc3;return Math[_0x3ad0cc(0x2cc)]()[_0x3ad0cc(0x1e1)](0x24)[_0x3ad0cc(0x2ce)](0x2,0x8);}b[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x27b);const qe={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':'none','viewBox':_0x5b9bc3(0x267),'width':'1em','height':'1em'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x298),'fillRule':_0x5b9bc3(0x1a8),'clipRule':_0x5b9bc3(0x1a8)}}]},le=_0x4d105e(function(_0x130206,_0x426e37){const _0x61044=_0x5b9bc3;return _0x273557(b,Object[_0x61044(0x1ff)]({},_0x130206,{'id':_0x61044(0x2d5),'ref':_0x426e37,'icon':qe}));});le[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x255);const Xe={'tag':'svg','attrs':{'xmlns':_0x5b9bc3(0x219),'fill':'none','viewBox':_0x5b9bc3(0x267),'width':_0x5b9bc3(0x21a),'height':_0x5b9bc3(0x21a)},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':'currentColor','d':_0x5b9bc3(0x1fc)}}]},ue=_0x4d105e(function(_0x2be970,_0x581e92){const _0x36544a=_0x5b9bc3;return _0x273557(b,Object[_0x36544a(0x1ff)]({},_0x2be970,{'id':_0x36544a(0x248),'ref':_0x581e92,'icon':Xe}));});ue[_0x5b9bc3(0x2e9)]='CloseIcon';const Je={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x267),'width':_0x5b9bc3(0x21a),'height':'1em'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':'currentColor','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':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1d8)}},{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1e5),'fillRule':_0x5b9bc3(0x1a8),'clipRule':'evenodd'}}]},ve=_0x4d105e(function(_0x5a2404,_0x2d9444){const _0x24b91b=_0x5b9bc3;return _0x273557(b,Object[_0x24b91b(0x1ff)]({},_0x5a2404,{'id':_0x24b91b(0x25c),'ref':_0x2d9444,'icon':Je}));});ve[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x1f8);const Qe={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x267),'width':'1em','height':_0x5b9bc3(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'stroke':_0x5b9bc3(0x23b),'d':_0x5b9bc3(0x1a0),'strokeLinecap':'round','strokeLinejoin':_0x5b9bc3(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x5b9bc3(0x2e4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5b9bc3(0x1f6)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x5b9bc3(0x28f)}}]}]}],'defIds':[_0x5b9bc3(0x1f6)]},de=_0x4d105e(function(_0x8a60f7,_0x57a6fe){const _0x5bc235=_0x5b9bc3;return _0x273557(b,Object[_0x5bc235(0x1ff)]({},_0x8a60f7,{'id':_0x5bc235(0x229),'ref':_0x57a6fe,'icon':Qe}));});de[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x1d1);const en={'tag':_0x5b9bc3(0x19b),'attrs':{'xmlns':_0x5b9bc3(0x219),'fill':_0x5b9bc3(0x2d3),'viewBox':_0x5b9bc3(0x1ec),'width':_0x5b9bc3(0x21a),'height':_0x5b9bc3(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':_0x5b9bc3(0x2d7)},'children':[{'tag':'path','attrs':{'stroke':_0x5b9bc3(0x23b),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5b9bc3(0x2f2),'strokeLinejoin':_0x5b9bc3(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x5b9bc3(0x2e4),'attrs':{},'children':[{'tag':_0x5b9bc3(0x252),'attrs':{'id':_0x5b9bc3(0x1c1)},'children':[{'tag':_0x5b9bc3(0x1e6),'attrs':{'fill':_0x5b9bc3(0x2d0),'d':'M0\x200H16V16H0z','transform':_0x5b9bc3(0x1c8)}}]}]}],'defIds':[_0x5b9bc3(0x1c1)]},ge=_0x4d105e(function(_0x305fb0,_0x534dfa){const _0x41b1e3=_0x5b9bc3;return _0x273557(b,Object[_0x41b1e3(0x1ff)]({},_0x305fb0,{'id':_0x41b1e3(0x2b3),'ref':_0x534dfa,'icon':en}));});ge[_0x5b9bc3(0x2e9)]=_0x5b9bc3(0x19f);function nn(_0xefaff3){const _0x4c25c5=_0x5b9bc3;var _0x4c2f28,_0x423e6a;const {mcpCoreConfig:_0x4efd30,onSave:_0x5ba47f,loading:_0x52ce73=!0x1,config:_0x9b14a5,connectionStatus$:_0x107a72,connectionError$:_0x4e4dd3,currentApiKey$:_0x402f21,currentSessionId$:_0x34a179}=_0xefaff3,_0x399c8e=_0x3d96bb(_0x5acff8),_0x41bcb7=_0x24e61d(_0x107a72,_0x365507[_0x4c25c5(0x26a)]),_0x34adee=_0x24e61d(_0x4e4dd3,_0x55c172['NONE']),_0x52e808=_0x24e61d(_0x34a179,''),_0x78e63a=_0x24e61d(_0x402f21,''),[_0x37a7b6,_0xcac761]=_0x53b5de(_0x78e63a||''),_0x4926d2=!0x0,_0x528df7=_0x9b14a5[_0x4c25c5(0x239)]&&_0x4efd30[_0x4c25c5(0x22b)]&&(_0x4efd30[_0x4c25c5(0x22b)][_0x4c25c5(0x29a)](_0x4c25c5(0x1e2))||_0x4efd30[_0x4c25c5(0x22b)][_0x4c25c5(0x29a)](_0x4c25c5(0x2ad))),_0x59bdc4=(_0x4c2f28=_0x4efd30[_0x4c25c5(0x22b)])==null?void 0x0:_0x4c2f28[_0x4c25c5(0x29a)](_0x4c25c5(0x1e2)),_0x28c28c=(_0x423e6a=_0x4efd30[_0x4c25c5(0x22b)])==null?void 0x0:_0x423e6a[_0x4c25c5(0x29a)](_0x4c25c5(0x2ad)),_0xd4e7f1=_0x59bdc4?_0x4c25c5(0x1c4):'https://console.univer.ai',_0x4f65bd=_0x9b14a5[_0x4c25c5(0x239)]&&(_0x59bdc4||_0x28c28c),[_0x20b935,_0x332752]=_0x53b5de(!_0x37a7b6['trim']()),_0x36cee9=(_0x341b73,_0x164797)=>{const _0x269b2d=_0x4c25c5;if(_0x164797===_0x55c172[_0x269b2d(0x2c2)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x341b73){case _0x365507[_0x269b2d(0x2cd)]:return _0x269b2d(0x2eb);case _0x365507[_0x269b2d(0x2a3)]:case _0x365507[_0x269b2d(0x22d)]:return _0x269b2d(0x2db);case _0x365507[_0x269b2d(0x2b2)]:return _0x269b2d(0x292);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2d064a=(_0x13648b,_0x18d5b0)=>{const _0x1a36d6=_0x4c25c5;if(_0x18d5b0===_0x55c172[_0x1a36d6(0x2c2)])return _0x1a36d6(0x212);switch(_0x13648b){case _0x365507['CONNECTED']:return _0x1a36d6(0x278);case _0x365507['CONNECTING']:case _0x365507[_0x1a36d6(0x22d)]:return _0x1a36d6(0x2a8);case _0x365507[_0x1a36d6(0x2b2)]:return _0x1a36d6(0x212);default:return _0x1a36d6(0x1fd);}},_0x336707=_0x1422e9=>{const _0x31ea6a=_0x4c25c5;switch(_0x1422e9){case _0x365507[_0x31ea6a(0x2cd)]:return _0x399c8e['t'](_0x31ea6a(0x2e2));case _0x365507[_0x31ea6a(0x2a3)]:return _0x399c8e['t'](_0x31ea6a(0x1cb));case _0x365507[_0x31ea6a(0x2b2)]:return _0x399c8e['t'](_0x31ea6a(0x28c));case _0x365507[_0x31ea6a(0x22d)]:return _0x399c8e['t'](_0x31ea6a(0x20d));default:return _0x399c8e['t'](_0x31ea6a(0x2df));}},_0x53e9f6=_0x3d93b0=>{const _0x1568e=_0x4c25c5;switch(_0x3d93b0){case _0x55c172[_0x1568e(0x2c2)]:return _0x399c8e['t'](_0x1568e(0x2de));case _0x55c172[_0x1568e(0x210)]:return _0x399c8e['t'](_0x1568e(0x221));case _0x55c172[_0x1568e(0x1f0)]:return _0x399c8e['t']('mcpConfig.connectionError.networkError');case _0x55c172[_0x1568e(0x1ea)]:return _0x399c8e['t'](_0x1568e(0x1df));default:return'';}},_0x40ccab=_0x40ddaf(()=>{const _0x251548=_0x4c25c5,_0x5f3bb4={..._0x4efd30,'apiKey':_0x37a7b6[_0x251548(0x2d8)](),'enableAuth':_0x4926d2};_0x5ba47f(_0x5f3bb4);},[_0x4efd30,_0x37a7b6,_0x4926d2,_0x5ba47f]),_0x1924f1=_0x37a7b6[_0x4c25c5(0x2d8)]()[_0x4c25c5(0x1d6)]>0x0;return _0x2a5706('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x24b),'children':_0x2a5706('div',{'className':_0x4c25c5(0x1eb),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x203),'children':_0x19de99(_0x4c25c5(0x1ca),{'className':'univer-text-white','children':'⚙'})}),_0x19de99(_0x4c25c5(0x1ef),{'children':_0x19de99('p',{'className':_0x4c25c5(0x19c),'children':_0x399c8e['t']('mcpConfig.description')})})]})}),_0x2a5706('div',{'className':_0x4c25c5(0x24e),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x270b4d(_0x4c25c5(0x25e),_0x36cee9(_0x41bcb7,_0x34adee)),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x270b4d(_0x4c25c5(0x2a4),_0x2d064a(_0x41bcb7,_0x34adee))}),_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x22c),'children':_0x336707(_0x41bcb7)})]})}),_0x34adee!==_0x55c172['NONE']&&(_0x41bcb7===_0x365507[_0x4c25c5(0x2b2)]||_0x34adee===_0x55c172[_0x4c25c5(0x2c2)])&&_0x19de99('div',{'className':_0x4c25c5(0x2d9),'children':_0x2a5706('div',{'className':_0x4c25c5(0x2f1),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x1cf),'children':'⚠️'}),_0x19de99('p',{'className':_0x4c25c5(0x281),'children':_0x53e9f6(_0x34adee)})]})})]}),_0x19de99('div',{'className':_0x4c25c5(0x207),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-5','children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x2a5706(_0x4c25c5(0x22e),{'className':_0x4c25c5(0x20a),'children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🔑'}),'\x20',_0x399c8e['t'](_0x4c25c5(0x28d)),_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x22a),'children':'*'}),_0x528df7&&_0x19de99('a',{'className':_0x4c25c5(0x297),'title':_0x399c8e['t'](_0x4c25c5(0x251)),'role':_0x4c25c5(0x2f7),'onClick':()=>_0x332752(!0x0),'children':_0x19de99(ve,{})})]}),_0x19de99(_0x153bb3,{'type':_0x4c25c5(0x2f9),'placeholder':_0x399c8e['t'](_0x4c25c5(0x237)),'value':_0x37a7b6,'disabled':_0x52ce73,'autoComplete':_0x4c25c5(0x1a7),'onChange':_0xcac761}),_0x19de99('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x399c8e['t'](_0x4c25c5(0x1b0))})]}),_0x528df7&&_0x20b935&&_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x220),'children':[_0x19de99('a',{'className':_0x4c25c5(0x253),'role':'button','onClick':()=>_0x332752(!0x1),'children':_0x19de99(ue,{'className':'univer-size-4'})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x19de99('div',{'className':_0x4c25c5(0x19a),'children':_0x19de99('span',{'className':_0x4c25c5(0x1e4),'children':'🚀'})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex-1','children':[_0x19de99('h4',{'className':_0x4c25c5(0x24f),'children':_0x399c8e['t'](_0x4c25c5(0x251))}),_0x19de99('p',{'className':_0x4c25c5(0x238),'children':_0x399c8e['t']('mcpConfig.apiApplyInfo.description')}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x254),'children':_0x4f65bd&&_0x2a5706('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':_0xd4e7f1,'target':_0x4c25c5(0x1f5),'rel':_0x4c25c5(0x232),'children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🤖'}),_0x399c8e['t'](_0x4c25c5(0x2bd)),_0x19de99(_0x4c25c5(0x1ca),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x28b),'children':['✨','\x20',_0x399c8e['t'](_0x4c25c5(0x269))]})]})]})]}),_0x9b14a5[_0x4c25c5(0x239)]&&_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x1dc),'children':[_0x2a5706('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x19de99(_0x4c25c5(0x1ca),{'children':'🔗'}),'\x20',_0x399c8e['t'](_0x4c25c5(0x234))]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-4','children':[_0x2a5706('div',{'className':_0x4c25c5(0x259),'children':[_0x19de99('p',{'className':_0x4c25c5(0x1ac),'children':_0x399c8e['t'](_0x4c25c5(0x23e))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x293),'children':_0x399c8e['t'](_0x4c25c5(0x1e3))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x1bb),'children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99('span',{'className':_0x4c25c5(0x266),'children':'1'}),_0x399c8e['t'](_0x4c25c5(0x1b7))]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x266),'children':'2'}),_0x399c8e['t'](_0x4c25c5(0x1fb))]}),_0x2a5706('div',{'className':_0x4c25c5(0x2a7),'children':[_0x19de99(_0x4c25c5(0x1ca),{'className':_0x4c25c5(0x266),'children':'3'}),_0x399c8e['t'](_0x4c25c5(0x215))]})]})]})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-space-y-2','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x293),'children':_0x4c25c5(0x1de)}),_0x19de99('div',{'className':_0x4c25c5(0x1dd),'children':_0x19de99(_0x4c25c5(0x2e8),{'className':_0x4c25c5(0x19e),'children':JSON[_0x4c25c5(0x249)]({'mcpServers':{'univer':{'url':_0x4c25c5(0x29d)+(_0x52e808||'<SESSION_ID>'),'type':_0x4c25c5(0x257),'headers':{'Authorization':_0x4c25c5(0x1da)+(_0x37a7b6||_0x4c25c5(0x272))}}}},null,0x2)})})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x259),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x399c8e['t'](_0x4c25c5(0x2be))}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x2b0),'children':[_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x265),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x27d)}),_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x19de99('div',{'className':_0x4c25c5(0x1cd),'children':_0x4c25c5(0x295)}),_0x19de99('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x399c8e['t'](_0x4c25c5(0x241))})]})]}),_0x2a5706(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x265),'children':[_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x27d)}),_0x2a5706('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x19de99(_0x4c25c5(0x1ef),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x4c25c5(0x1e8)}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x21f),'children':_0x399c8e['t'](_0x4c25c5(0x22f))})]})]})]})]})]})]}),_0x19de99(_0x1035d9,{'onClick':_0x40ccab,'disabled':!_0x1924f1||_0x52ce73,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x52ce73?_0x2a5706('span',{'className':_0x4c25c5(0x2a7),'children':[_0x19de99('span',{'children':'⟲'}),_0x399c8e['t'](_0x4c25c5(0x231))]}):_0x2a5706(_0x4c25c5(0x1ca),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19de99(le,{}),_0x399c8e['t'](_0x4c25c5(0x2c0))]})}),_0x19de99(_0x4c25c5(0x1ef),{'className':_0x4c25c5(0x261),'children':_0x2a5706(_0x4c25c5(0x1ef),{'className':'univer-flex\x20univer-gap-3','children':[_0x19de99('span',{'className':_0x4c25c5(0x2f4),'children':'💡'}),_0x2a5706('div',{'className':_0x4c25c5(0x27c),'children':[_0x19de99('div',{'className':_0x4c25c5(0x23f),'children':'Configuration\x20Notes:'}),_0x2a5706(_0x4c25c5(0x1ef),{'children':['•',_0x399c8e['t']('mcpConfig.note1')]}),_0x2a5706(_0x4c25c5(0x1ef),{'children':['•',_0x399c8e['t'](_0x4c25c5(0x21c))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x5b9bc3(0x2a5)],tn=(_0x562841,_0x242ab1,_0x1d2536,_0x2a0c59)=>{const _0x526d77=_0x5b9bc3;for(var _0x457123=_0x2a0c59>0x1?void 0x0:_0x2a0c59?rn(_0x242ab1,_0x1d2536):_0x242ab1,_0x1bbdaf=_0x562841[_0x526d77(0x1d6)]-0x1,_0x13459a;_0x1bbdaf>=0x0;_0x1bbdaf--)(_0x13459a=_0x562841[_0x1bbdaf])&&(_0x457123=_0x13459a(_0x457123)||_0x457123);return _0x457123;},d=(_0x264b60,_0x51c69e)=>(_0x47bd07,_0x5ce301)=>_0x51c69e(_0x47bd07,_0x5ce301,_0x264b60);const U=_0x5b9bc3(0x29e),L=_0x5b9bc3(0x21d);let I=class extends _0x38c81e{constructor(_0x22f9cc,_0x30bff7,_0x170c6e,_0x570b33,_0x35e702,_0x4ad6df,_0x528ec3,_0xd57a40,_0x188a76,_0x5a6e56){const _0x3b3c86=_0x5b9bc3;super(),x(this,'_loading$',new _0x2a0439(!0x1)),x(this,'_mcpCoreConfig$',new _0x2a0439({})),x(this,_0x3b3c86(0x284),new _0x2a0439({})),x(this,_0x3b3c86(0x23c),new _0x2a0439('')),x(this,_0x3b3c86(0x1d9),async _0x594f5c=>{const _0x14d721=_0x3b3c86;var _0x1d288c,_0x4fd63c;this[_0x14d721(0x227)][_0x14d721(0x2f0)](!0x0);try{const _0x485778=await this[_0x14d721(0x222)](_0x594f5c);if(!_0x485778[_0x14d721(0x1a6)]){this['_messageService'][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x2ed)],'content':_0x485778['errorMessage']||this[_0x14d721(0x29f)]['t'](_0x14d721(0x20c))});return;}_0x594f5c[_0x14d721(0x2c5)]?await this[_0x14d721(0x2bb)][_0x14d721(0x1e7)](U,_0x594f5c['apiKey'][_0x14d721(0x2d8)]()):await this[_0x14d721(0x2bb)]['removeItem'](U),this[_0x14d721(0x23c)]['next'](((_0x1d288c=_0x594f5c[_0x14d721(0x2c5)])==null?void 0x0:_0x1d288c[_0x14d721(0x2d8)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x14d721(0x1da)+((_0x4fd63c=_0x594f5c[_0x14d721(0x2c5)])==null?void 0x0:_0x4fd63c[_0x14d721(0x2d8)]())}),this[_0x14d721(0x228)][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x1ae)],'content':this[_0x14d721(0x29f)]['t'](_0x14d721(0x2c7))}),setTimeout(()=>{const _0x1aa9bd=_0x14d721;this[_0x1aa9bd(0x29b)][_0x1aa9bd(0x235)](L);},0x320);}catch(_0x487580){this[_0x14d721(0x1f3)][_0x14d721(0x258)](_0x14d721(0x2d2),_0x487580),this[_0x14d721(0x228)][_0x14d721(0x200)]({'type':_0x325300[_0x14d721(0x2ed)],'content':this[_0x14d721(0x29f)]['t'](_0x14d721(0x286))});}finally{this[_0x14d721(0x227)]['next'](!0x1);}}),(this[_0x3b3c86(0x29c)]=_0x22f9cc,this['_uiPartsService']=_0x30bff7,this[_0x3b3c86(0x2ba)]=_0x170c6e,this[_0x3b3c86(0x2bb)]=_0x570b33,this[_0x3b3c86(0x29b)]=_0x35e702,this[_0x3b3c86(0x228)]=_0x4ad6df,this[_0x3b3c86(0x2d4)]=_0x528ec3,this[_0x3b3c86(0x29f)]=_0xd57a40,this[_0x3b3c86(0x1f3)]=_0x188a76,this['_mcpConnectionController']=_0x5a6e56,this[_0x3b3c86(0x2f3)](),this['_loadStoredApiKey'](),this[_0x3b3c86(0x217)]());}['showConfigPanel'](){const _0x41510e=_0x5b9bc3,_0x288a07=this[_0x41510e(0x2ba)][_0x41510e(0x1c2)](y);_0x288a07!=null&&_0x288a07[_0x41510e(0x239)]&&this[_0x41510e(0x29b)]['open']({'id':L,'title':{'title':this[_0x41510e(0x29f)]['t']('mcpConfig.title')},'children':{'label':_0x41510e(0x25f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x1c7dc6=_0x41510e;this[_0x1c7dc6(0x29b)][_0x1c7dc6(0x235)](L);}});}[_0x5b9bc3(0x214)](){const _0x58eb21=_0x5b9bc3;return this[_0x58eb21(0x274)]['value'];}[_0x5b9bc3(0x217)](){const _0x460f48=_0x5b9bc3;this[_0x460f48(0x245)](this[_0x460f48(0x2d4)][_0x460f48(0x243)](_0x460f48(0x25f),this[_0x460f48(0x2f8)]()));}[_0x5b9bc3(0x2f8)](){const _0x5d89df=_0x5b9bc3;return _0x3c88d9(()=>{const _0x56ab03=_0x4f4d;var _0x42c4ad,_0x4fb206,_0x56eba3;return _0x19de99(nn,{'config':this[_0x56ab03(0x284)][_0x56ab03(0x208)],'mcpCoreConfig':this[_0x56ab03(0x274)][_0x56ab03(0x208)],'currentApiKey$':this[_0x56ab03(0x23c)],'onSave':this[_0x56ab03(0x1d9)],'loading':this[_0x56ab03(0x227)][_0x56ab03(0x208)],'connectionStatus$':(_0x42c4ad=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x42c4ad[_0x56ab03(0x2f5)],'connectionError$':(_0x4fb206=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x4fb206[_0x56ab03(0x260)],'currentSessionId$':(_0x56eba3=this[_0x56ab03(0x1aa)])==null?void 0x0:_0x56eba3['sessionId$']});},this[_0x5d89df(0x29c)]);}[_0x5b9bc3(0x2f3)](){const _0x34a5a9=_0x5b9bc3;this[_0x34a5a9(0x245)](this[_0x34a5a9(0x2ba)][_0x34a5a9(0x275)](_0x2c40d3)[_0x34a5a9(0x2aa)](_0x4c6259=>{const _0x3c1dfd=_0x34a5a9;this[_0x3c1dfd(0x274)]['next'](_0x4c6259||{});}));const _0x557221=this[_0x34a5a9(0x2ba)][_0x34a5a9(0x1c2)](_0x2c40d3);this[_0x34a5a9(0x274)][_0x34a5a9(0x2f0)](_0x557221||{}),this['disposeWithMe'](this['_configService'][_0x34a5a9(0x275)](y)[_0x34a5a9(0x2aa)](_0x48be7e=>{const _0x94724c=_0x34a5a9;this[_0x94724c(0x284)][_0x94724c(0x2f0)](_0x48be7e||{});}));const _0x36a6c1=this[_0x34a5a9(0x2ba)][_0x34a5a9(0x1c2)](y);this[_0x34a5a9(0x284)][_0x34a5a9(0x2f0)](_0x36a6c1||{});}async[_0x5b9bc3(0x290)](){const _0x4e4e26=_0x5b9bc3,_0x2844b3=this[_0x4e4e26(0x2ba)][_0x4e4e26(0x1c2)](y);if(!(_0x2844b3!=null&&_0x2844b3[_0x4e4e26(0x239)]))return;const _0x51c509=await this[_0x4e4e26(0x2bb)]['getItem'](U);_0x51c509&&(this[_0x4e4e26(0x1aa)][_0x4e4e26(0x1a5)]({'Authorization':_0x4e4e26(0x1da)+_0x51c509}),this[_0x4e4e26(0x23c)][_0x4e4e26(0x2f0)](_0x51c509));}async['_validateConfig'](_0x4e1483){const _0x58890f=_0x5b9bc3;if(!_0x4e1483[_0x58890f(0x2c5)]||_0x4e1483['apiKey'][_0x58890f(0x2d8)]()[_0x58890f(0x1d6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x58890f(0x29f)]['t'](_0x58890f(0x2c3))};if(_0x4e1483[_0x58890f(0x2c5)][_0x58890f(0x2d8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x58890f(0x29f)]['t'](_0x58890f(0x1ce))};try{const _0x44657b=await this[_0x58890f(0x29c)][_0x58890f(0x2da)](_0xaa88e9)[_0x58890f(0x1a1)](_0x4e1483[_0x58890f(0x2c5)][_0x58890f(0x2d8)]());return _0x44657b[_0x58890f(0x1a6)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x44657b[_0x58890f(0x258)]||this['_localeService']['t'](_0x58890f(0x218))};}catch(_0x43da48){return console[_0x58890f(0x2ca)](_0x58890f(0x205),_0x43da48),{'isValid':!0x0};}}};I=tn([d(0x0,_0x19a565(_0x4022b1)),d(0x1,_0x32a2ba),d(0x2,_0x8e1c04),d(0x3,_0x4c2eba),d(0x4,_0xee33a6),d(0x5,_0x12460d),d(0x6,_0x19a565(_0x1f0dc9)),d(0x7,_0x19a565(_0x5acff8)),d(0x8,_0x221b11),d(0x9,_0x19a565(_0xaa88e9))],I);const V={'id':_0x5b9bc3(0x28a),'type':_0x10df29[_0x5b9bc3(0x2af)],'handler':async(_0x1f8db1,_0x2b3141)=>(_0x1f8db1['get'](I)[_0x5b9bc3(0x270)](),!0x0)};function pe(_0x30657e,_0x1bcec2){const _0x46dc6a=_0x5b9bc3;switch(_0x30657e){case _0x365507[_0x46dc6a(0x26a)]:return'mcpStatus.disconnected';case _0x365507[_0x46dc6a(0x2a3)]:return _0x46dc6a(0x1b5);case _0x365507[_0x46dc6a(0x2cd)]:return'mcpStatus.connected';case _0x365507[_0x46dc6a(0x2b2)]:switch(_0x1bcec2){case _0x55c172['UNAUTHORIZED']:return _0x46dc6a(0x1db);case _0x55c172[_0x46dc6a(0x210)]:return _0x46dc6a(0x224);case _0x55c172[_0x46dc6a(0x1f0)]:return _0x46dc6a(0x24c);case _0x55c172[_0x46dc6a(0x1ea)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x365507[_0x46dc6a(0x22d)]:return _0x46dc6a(0x296);default:return _0x46dc6a(0x268);}}function on(_0x29a95c,_0x510635,_0xe4b8e5,_0x5a8310=!0x0){const _0x3802aa=_0x5b9bc3,_0x7eaa34=pe(_0x29a95c,_0x510635),_0x49da73=_0xe4b8e5['t'](_0x7eaa34);return _0x5a8310?_0x29a95c===_0x365507[_0x3802aa(0x26a)]&&_0x510635===_0x55c172[_0x3802aa(0x2c2)]?_0x49da73+'\x20-\x20'+_0xe4b8e5['t'](_0x3802aa(0x1b2)):_0x29a95c===_0x365507[_0x3802aa(0x2cd)]?''+_0x49da73:_0x29a95c===_0x365507[_0x3802aa(0x26a)]||_0x29a95c===_0x365507['FAILED']?_0x49da73+_0x3802aa(0x230)+_0xe4b8e5['t'](_0x3802aa(0x20b)):_0x49da73:_0x49da73;}function sn(_0x43744b){const _0xbc9da5=_0x5b9bc3;switch(_0x43744b){case _0x365507['CONNECTED']:return _0xbc9da5(0x256);case _0x365507[_0xbc9da5(0x2a3)]:case _0x365507[_0xbc9da5(0x22d)]:return _0xbc9da5(0x24a);case _0x365507['FAILED']:case _0x365507[_0xbc9da5(0x26a)]:return _0xbc9da5(0x22a);default:return'univer-text-gray-500';}}function cn(_0x1810e1){const _0x37c0b5=_0x5b9bc3,{status$:_0x35c261,error$:_0x46e681,onConfigure:_0x171126,showClickable:_0x15c693=!0x0}=_0x1810e1,_0x2fa22b=_0x24e61d(_0x35c261,_0x365507['DISCONNECTED']),_0x4a7924=_0x24e61d(_0x46e681,_0x55c172[_0x37c0b5(0x288)]),_0xc6d9d=_0x3d96bb(_0x5acff8),_0x4f7f78=_0x2fa22b===_0x365507['CONNECTED'];_0x2fa22b===_0x365507[_0x37c0b5(0x2a3)]||_0x365507['RETRYING'];const _0xe2085d=_0xc6d9d['t'](pe(_0x2fa22b,_0x4a7924)),_0x27b5ab=on(_0x2fa22b,_0x4a7924,_0xc6d9d,_0x15c693),_0x2a0b84=sn(_0x2fa22b),_0xbdac94=_0x4f7f78?_0x19de99(ge,{}):_0x19de99(de,{}),_0x5b6fef=_0x40ddaf(()=>{_0x15c693&&_0x171126&&_0x171126();},[_0x15c693,_0x171126]);function _0x27de7e(){const _0x2204ce=_0x37c0b5;return _0x2a5706(_0x2204ce(0x1ef),{'className':_0x270b4d('univer-flex\x20univer-items-center',_0x15c693&&_0x171126&&_0x2204ce(0x2ab)),'role':_0x2204ce(0x2f7),'onClick':_0x15c693&&_0x171126?_0x5b6fef:void 0x0,'children':[_0x19de99(_0x2204ce(0x1ef),{'className':_0x270b4d(_0x2204ce(0x2b5),_0x2a0b84),'children':_0xbdac94}),_0x19de99(_0x2204ce(0x1ef),{'className':_0x2204ce(0x25b),'children':_0xe2085d})]});}return _0x19de99(_0x1e3ebe,{'title':_0x27b5ab,'placement':'bottom','children':_0x27de7e()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x4364ee,_0x191272,_0x38759c,_0x119530)=>{const _0x27ca44=_0x5b9bc3;for(var _0x144b1c=_0x119530>0x1?void 0x0:_0x119530?an(_0x191272,_0x38759c):_0x191272,_0x22af42=_0x4364ee[_0x27ca44(0x1d6)]-0x1,_0x2114a9;_0x22af42>=0x0;_0x22af42--)(_0x2114a9=_0x4364ee[_0x22af42])&&(_0x144b1c=_0x2114a9(_0x144b1c)||_0x144b1c);return _0x144b1c;},M=(_0x5ec09f,_0x357fea)=>(_0x8fabec,_0x4cb335)=>_0x357fea(_0x8fabec,_0x4cb335,_0x5ec09f);let O=class extends _0x38c81e{constructor(_0x240d43,_0xb47f20,_0x4025ba,_0x14f523){const _0x97ff91=_0x5b9bc3;super(),this[_0x97ff91(0x29c)]=_0x240d43,this[_0x97ff91(0x1cc)]=_0xb47f20,this['_uiPartsService']=_0x4025ba,this[_0x97ff91(0x2ba)]=_0x14f523,this[_0x97ff91(0x1b6)](),this[_0x97ff91(0x2b1)]();}[_0x5b9bc3(0x1b6)](){const _0x5292a0=_0x5b9bc3,_0x35cb08=this[_0x5292a0(0x2ba)]['getConfig'](y);_0x35cb08!=null&&_0x35cb08['showDeveloperTools']&&(this[_0x5292a0(0x1cc)]['enableAutoConnect']=!0x1);}['_initStatusComponent'](){const _0x2d2522=_0x5b9bc3,_0x5a848c=this['_configService'][_0x2d2522(0x1c2)](y);(_0x5a848c==null?void 0x0:_0x5a848c[_0x2d2522(0x223)])!==!0x1&&this[_0x2d2522(0x245)](this['_uiPartsService'][_0x2d2522(0x262)](_0x213245[_0x2d2522(0x1ed)],()=>{const _0x287602=_0x2d2522;var _0x220fc2;return _0x3c88d9(un({'status$':this[_0x287602(0x1cc)][_0x287602(0x2f5)],'error$':this[_0x287602(0x1cc)]['connectionError$'],'onConfigure':()=>this[_0x287602(0x2ea)](),'showClickable':(_0x220fc2=_0x5a848c==null?void 0x0:_0x5a848c[_0x287602(0x239)])!=null?_0x220fc2:!0x1}),this['_injector']);}));}[_0x5b9bc3(0x2ea)](){const _0x2ba585=_0x5b9bc3;this[_0x2ba585(0x29c)][_0x2ba585(0x2da)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x19a565(_0x4022b1)),M(0x1,_0x19a565(_0xaa88e9)),M(0x2,_0x32a2ba),M(0x3,_0x8e1c04)],O);function un(_0x42485d){const {status$:_0x12bc37,error$:_0x59f393,onConfigure:_0x1f1f97,showClickable:_0x17d7e6}=_0x42485d;return function(){return _0x19de99(cn,{'status$':_0x12bc37,'error$':_0x59f393,'onConfigure':_0x1f1f97,'showClickable':_0x17d7e6});};}function vn(_0x4a072c){const _0x3c31d2=_0x5b9bc3;return{'id':V['id'],'type':_0x31cb4c[_0x3c31d2(0x26c)],'icon':_0x3c31d2(0x2e6),'title':'mcpConfig.title','tooltip':_0x3c31d2(0x204)};}function _0x2f0c(){const _0x31d308=['mcpConfig.configSaved','pluginName','MCP\x20已断开','warn','MCP\x20重连中...','random','CONNECTED','substring','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','white','1737392elYcsm','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','none','_componentManager','check-mark-icon','Connecting...','url(#on-line-icon_clip0_910_349)','trim','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','get','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','has','tag','mcpConfig.connectionError.unauthorized','mcpConfig.connectionStatus.disconnected','API\x20密钥无效,请检查密钥是否正确','OTHERS','mcpConfig.connectionStatus.connected','Enable\x20Authentication','defs','Session\x20ID','MenuIcon','配置保存失败','pre','displayName','_handleConfigure','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mergeMenu','Error','use','连接失败','next','univer-flex\x20univer-items-start\x20univer-gap-2','round','_initConfigSync','univer-shrink-0\x20univer-text-blue-500','connectionStatus$','1391712KfZPkL','button','_createConfigPanelComponent','text','forEach','配置更改将立即生效','17352BAyZOU','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','svg','univer-text-sm\x20univer-text-gray-500','API\x20密钥','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','OnLineIcon','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','validateApiKey','Connected','fill','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','__setCustomHeaders','isValid','off','evenodd','onStarting','_mcpConnectionController','配置参数:','univer-text-xs\x20univer-text-gray-600','map','Success','51195oFruDQ','mcpConfig.apiKeyHint','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpStatus.clickToConfigure','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','mcpStatus.connecting','_initAutoConnect','mcpConfig.configStep1','配置步骤:','373444BAcxgo','Copy\x20the\x20JSON\x20configuration\x20below','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','最大重试次数','几秒钟内获取您的\x20API\x20密钥','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20连接失败','MCP\x20Connection\x20Failed','on-line-icon_clip0_910_349','getConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','https://console.univer.plus','您的\x20API\x20密钥安全存储在本地存储中','_config','url(#$1','translate(.97)','MCP:\x20Network\x20Error','span','mcpConfig.connectionStatus.connecting','_connectionController','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.validation.apiKeyTooShort','univer-shrink-0\x20univer-text-red-500','MCP:\x20Max\x20Retries\x20Exceeded','OffLineIcon','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','length','MCP\x20状态未知','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','_handleConfigSave','Bearer\x20','mcpStatus.unauthorized','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Configuration','mcpConfig.connectionError.maxRetriesExceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','toString','univer.plus','mcpConfig.configStepTitle','univer-text-blue-600','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','path','setItem','Authorization:','children','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-center\x20univer-gap-3','0\x200\x2017\x2016','HEADER_MENU','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','div','NETWORK_ERROR','string','MCP\x20配置','_logService','Univer\x20AI\x20控制台','_blank','off-line-icon_clip0_910_343','_initializeMenus','HelpIcon','entries','xlink:href','mcpConfig.configStep2','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-bg-gray-500','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','assign','show','MCP\x20Disconnected','重启您的\x20MCP\x20客户端以使配置生效','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.title','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','网络连接错误,请检查您的网络连接','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','value','attrs','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.clickToConnect','mcpConfig.validation.invalidConfig','mcpConfig.connectionStatus.retrying','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','复制以下\x20JSON\x20配置','SESSION_ID_OCCUPIED','API\x20密钥长度至少需要\x2010\x20位','univer-bg-red-500','54zpPHPM','getCurrentConfig','mcpConfig.configStep3','_uiPartsService','_registerComponent','mcpConfig.validation.invalidApiKey','http://www.w3.org/2000/svg','1em','symbol','mcpConfig.note2','mcp-config-dialog','API\x20密钥不能为空','univer-text-xs\x20univer-text-gray-500','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','mcpConfig.connectionError.sessionOccupied','_validateConfig','showStatus','mcpStatus.sessionOccupied','153579HeTgeh','API\x20Key','_loading$','_messageService','off-line-icon','univer-text-red-500','mcpServerUrl','univer-text-sm\x20univer-font-medium','RETRYING','label','mcpConfig.authorizationDescription','\x20-\x20','mcpConfig.saving','noopener\x20noreferrer','push','mcpConfig.connectionInfo','close','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.apiKeyPlaceholder','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','showDeveloperTools','add','currentColor','_apiKey$','MCP\x20连接中...','mcpConfig.configInstructions','univer-font-medium','MCP\x20已连接','mcpConfig.sessionIdDescription','Saving...','register','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','disposeWithMe','MCP:\x20Unauthorized','已连接','close-icon','stringify','univer-text-yellow-500','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpStatus.networkError','MCP\x20Unknown\x20Status','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.apiApplyInfo.title','clipPath','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','univer-flex\x20univer-flex-wrap\x20univer-gap-2','CheckMarkIcon','univer-text-green-500','http','error','univer-space-y-3','连接中...','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','help-icon','3650jkWIzQ','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCPConfigPanel','connectionError$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','registerComponent','MCP\x20Client\x20Configuration','MCP\x20Connected','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','0\x200\x2016\x2016','mcpStatus.unknown','mcpConfig.apiApplyInfo.getStarted','DISCONNECTED','Invalid\x20configuration','BUTTON','20iBcvPs','重连中...','Save\x20Configuration','showConfigPanel','点击连接\x20MCP','<API_KEY>','_initializeCommands','_mcpCoreConfig$','subscribeConfigValue$','请输入您的\x20API\x20密钥','1146162GnTtsM','univer-bg-green-500','Click\x20to\x20configure\x20MCP','您的\x20API\x20密钥将在此浏览器中本地存储','UniverIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','_menuManagerService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univerjs-icon\x20univerjs-icon-','MCP:\x20未授权','_config$','保存配置','mcpConfig.configError','mask','NONE','MCP:\x20网络错误','mcp-ui.command.openConfigPanel','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionStatus.failed','mcpConfig.apiKey','MCP:\x20超出最大重试次数','M0\x200H16V16H0z','_loadStoredApiKey','replace','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','配置保存成功','univer_session_id:','mcpStatus.retrying','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','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','MCP\x20客户端配置','includes','_dialogService','_injector','https://mcp.univer.ai/mcp/?univer_session_id=','mcp.apiKey','_localeService','Max\x20Retries','Univer\x20AI\x20Console','setConfig','CONNECTING','univer-size-2\x20univer-rounded-full','getOwnPropertyDescriptor','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-center\x20univer-gap-2','univer-bg-blue-500','defIds','subscribe','\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','Enter\x20your\x20API\x20key','univer.ai','什么是\x20API\x20密钥?','COMMAND','univer-space-y-2','_initStatusComponent','FAILED','on-line-icon','Retrying...','univer-mr-2\x20univer-flex\x20univer-text-xl','idSuffix','启用身份验证以获得安全连接','会话\x20ID\x20已被占用,请稍后再试','配置无效','_configService','_localStorageService','MCP\x20Retrying...','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configParameters','Click\x20to\x20connect\x20MCP','mcpConfig.save','colorChannel1','UNAUTHORIZED','mcpConfig.validation.apiKeyRequired','defineProperty','apiKey','启用身份验证'];_0x2f0c=function(){return _0x31d308;};return _0x2f0c();}const dn={[_0xbead22[_0x5b9bc3(0x2e1)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};function _0x4f4d(_0x276b7e,_0x257653){_0x276b7e=_0x276b7e-0x199;const _0x2f0ce7=_0x2f0c();let _0x4f4dfd=_0x2f0ce7[_0x276b7e];return _0x4f4dfd;}var gn=Object[_0x5b9bc3(0x2a5)],pn=(_0x2f11bd,_0xe21e82,_0x3ae24c,_0x2e43b6)=>{const _0x79bd16=_0x5b9bc3;for(var _0x184f3f=_0x2e43b6>0x1?void 0x0:_0x2e43b6?gn(_0xe21e82,_0x3ae24c):_0xe21e82,_0x6ebe10=_0x2f11bd[_0x79bd16(0x1d6)]-0x1,_0x4b97f2;_0x6ebe10>=0x0;_0x6ebe10--)(_0x4b97f2=_0x2f11bd[_0x6ebe10])&&(_0x184f3f=_0x4b97f2(_0x184f3f)||_0x184f3f);return _0x184f3f;},re=(_0x6ff528,_0x183fc7)=>(_0x582b02,_0x4079d7)=>_0x183fc7(_0x582b02,_0x4079d7,_0x6ff528);let D=class extends _0x38c81e{constructor(_0x27edb2,_0x12c3f1){const _0x276c4d=_0x5b9bc3;super(),this['_commandService']=_0x27edb2,this[_0x276c4d(0x280)]=_0x12c3f1,this['_initializeCommands'](),this[_0x276c4d(0x1f7)]();}[_0x5b9bc3(0x273)](){const _0x2ce317=_0x5b9bc3;[V][_0x2ce317(0x2fa)](_0x2ef7b5=>{const _0x3a4292=_0x2ce317;this[_0x3a4292(0x245)](this['_commandService']['registerCommand'](_0x2ef7b5));});}[_0x5b9bc3(0x1f7)](){const _0x25628c=_0x5b9bc3;this['_menuManagerService'][_0x25628c(0x2ec)](dn);}};D=pn([re(0x0,_0x30ffad),re(0x1,_0x1face2)],D);const Mn={'mcpStatus':{'disconnected':_0x5b9bc3(0x201),'connecting':'MCP\x20Connecting...','connected':_0x5b9bc3(0x264),'failed':_0x5b9bc3(0x1c0),'retrying':_0x5b9bc3(0x2bc),'unknown':_0x5b9bc3(0x24d),'unauthorized':_0x5b9bc3(0x246),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5b9bc3(0x1c9),'maxRetriesExceeded':_0x5b9bc3(0x1d0),'clickToConnect':_0x5b9bc3(0x2bf),'clickToConfigure':_0x5b9bc3(0x279)},'mcpConfig':{'title':_0x5b9bc3(0x1de),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5b9bc3(0x226),'apiKeyPlaceholder':_0x5b9bc3(0x2ac),'apiKeyHint':_0x5b9bc3(0x1be),'enableAuth':_0x5b9bc3(0x2e3),'enableAuthHint':_0x5b9bc3(0x2a6),'connectionInfo':_0x5b9bc3(0x263),'mcpClientConfig':_0x5b9bc3(0x263),'configInstructions':_0x5b9bc3(0x250),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5b9bc3(0x1ba),'configStep2':_0x5b9bc3(0x1ee),'configStep3':_0x5b9bc3(0x1fe),'sessionId':_0x5b9bc3(0x2e5),'sessionIdDescription':_0x5b9bc3(0x20e),'authorizationDescription':_0x5b9bc3(0x27e),'configParameters':_0x5b9bc3(0x1b4),'maxRetries':_0x5b9bc3(0x2a0),'save':_0x5b9bc3(0x26f),'saving':_0x5b9bc3(0x242),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5b9bc3(0x1a4),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5b9bc3(0x1b3),'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':_0x5b9bc3(0x2a1),'getStarted':_0x5b9bc3(0x236)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5b9bc3(0x1e0),'invalidConfig':_0x5b9bc3(0x26b),'invalidApiKey':_0x5b9bc3(0x2cf)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5b9bc3(0x2d6),'connected':_0x5b9bc3(0x1a2),'failed':_0x5b9bc3(0x27f),'retrying':_0x5b9bc3(0x2b4)},'connectionError':{'unauthorized':_0x5b9bc3(0x1d3),'sessionOccupied':_0x5b9bc3(0x1d5),'networkError':_0x5b9bc3(0x1d4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':_0x5b9bc3(0x2c9),'connecting':_0x5b9bc3(0x23d),'connected':_0x5b9bc3(0x240),'failed':_0x5b9bc3(0x1bf),'retrying':_0x5b9bc3(0x2cb),'unknown':_0x5b9bc3(0x1d7),'unauthorized':_0x5b9bc3(0x283),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x5b9bc3(0x289),'maxRetriesExceeded':_0x5b9bc3(0x28e),'clickToConnect':_0x5b9bc3(0x271),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5b9bc3(0x1f2),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x5b9bc3(0x19d),'apiKeyPlaceholder':_0x5b9bc3(0x276),'apiKeyHint':_0x5b9bc3(0x27a),'enableAuth':_0x5b9bc3(0x2c6),'enableAuthHint':_0x5b9bc3(0x2b7),'connectionInfo':_0x5b9bc3(0x299),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x5b9bc3(0x1c3),'configStepTitle':_0x5b9bc3(0x1b8),'configStep1':_0x5b9bc3(0x20f),'configStep2':_0x5b9bc3(0x1b1),'configStep3':_0x5b9bc3(0x202),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5b9bc3(0x1d2),'configParameters':_0x5b9bc3(0x1ab),'maxRetries':_0x5b9bc3(0x1bc),'save':_0x5b9bc3(0x285),'saving':'保存中...','note1':_0x5b9bc3(0x2fb),'note2':_0x5b9bc3(0x1c5),'configSaved':_0x5b9bc3(0x294),'configError':_0x5b9bc3(0x2e7),'apiApplyInfo':{'title':_0x5b9bc3(0x2ae),'description':_0x5b9bc3(0x244),'univerAiLabel':_0x5b9bc3(0x1f4),'getStarted':_0x5b9bc3(0x1bd)},'validation':{'apiKeyRequired':_0x5b9bc3(0x21e),'apiKeyTooShort':_0x5b9bc3(0x211),'invalidConfig':_0x5b9bc3(0x2b9),'invalidApiKey':_0x5b9bc3(0x2e0)},'connectionStatus':{'disconnected':'未连接','connecting':_0x5b9bc3(0x25a),'connected':_0x5b9bc3(0x247),'failed':_0x5b9bc3(0x2ef),'retrying':_0x5b9bc3(0x26e)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5b9bc3(0x2b8),'networkError':_0x5b9bc3(0x206),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x5b9bc3(0x2c4)],hn=Object[_0x5b9bc3(0x2a5)],Cn=(_0xfd7d6e,_0x46d87d,_0x3f772b)=>_0x46d87d in _0xfd7d6e?fn(_0xfd7d6e,_0x46d87d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f772b}):_0xfd7d6e[_0x46d87d]=_0x3f772b,mn=(_0x1e7f80,_0x21c79a,_0x3ae33e,_0x5bcdb8)=>{const _0x19c8a0=_0x5b9bc3;for(var _0x35af17=_0x5bcdb8>0x1?void 0x0:_0x5bcdb8?hn(_0x21c79a,_0x3ae33e):_0x21c79a,_0x114675=_0x1e7f80[_0x19c8a0(0x1d6)]-0x1,_0x25fc6d;_0x114675>=0x0;_0x114675--)(_0x25fc6d=_0x1e7f80[_0x114675])&&(_0x35af17=_0x25fc6d(_0x35af17)||_0x35af17);return _0x35af17;},P=(_0x5be0b6,_0x17a30a)=>(_0x189334,_0x10e5f1)=>_0x17a30a(_0x189334,_0x10e5f1,_0x5be0b6),_n=(_0x5ebbe7,_0x1df81d,_0x4761c0)=>Cn(_0x5ebbe7,_0x1df81d+'',_0x4761c0);let j=class extends _0x2065f8{constructor(_0x109fd6=ie,_0x1ce77e,_0x4549a9,_0x2d751d,_0x3b90d6,_0x4778d8){const _0x5dd24d=_0x5b9bc3;super(),this[_0x5dd24d(0x1c6)]=_0x109fd6,this[_0x5dd24d(0x29c)]=_0x1ce77e,this[_0x5dd24d(0x2ba)]=_0x4549a9,this[_0x5dd24d(0x216)]=_0x2d751d,this[_0x5dd24d(0x2bb)]=_0x3b90d6,this[_0x5dd24d(0x29f)]=_0x4778d8;const {..._0x499055}=_0x286fb1({},ie,this[_0x5dd24d(0x1c6)]);this[_0x5dd24d(0x2ba)][_0x5dd24d(0x2a2)](y,_0x499055);}async[_0x5b9bc3(0x1a9)](){const _0x6b4880=_0x5b9bc3,_0x585730=[[O],[I],[D]];this[_0x6b4880(0x29c)][_0x6b4880(0x2dc)](_0x447220)||_0x585730[_0x6b4880(0x233)]([_0x447220,{'useClass':_0x4200bf}]),_0x585730[_0x6b4880(0x2fa)](_0x1ab5df=>this[_0x6b4880(0x29c)][_0x6b4880(0x23a)](_0x1ab5df)),this[_0x6b4880(0x29c)]['get'](O),this[_0x6b4880(0x29c)][_0x6b4880(0x2da)](I),this[_0x6b4880(0x29c)][_0x6b4880(0x2da)](D);}};_n(j,_0x5b9bc3(0x2c8),'MCP_UI_PLUGIN'),j=mn([_0x617d51(_0x4b8cc0),P(0x1,_0x19a565(_0x4022b1)),P(0x2,_0x8e1c04),P(0x3,_0x32a2ba),P(0x4,_0x4c2eba),P(0x5,_0x19a565(_0x5acff8))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x558f55=_0x294f;(function(_0x18df5a,_0x302900){const _0x17ef3d=_0x294f,_0x1965bd=_0x18df5a();while(!![]){try{const _0x20fdf5=parseInt(_0x17ef3d(0x1b4))/0x1+-parseInt(_0x17ef3d(0xe6))/0x2*(parseInt(_0x17ef3d(0xff))/0x3)+-parseInt(_0x17ef3d(0x177))/0x4+parseInt(_0x17ef3d(0x158))/0x5*(-parseInt(_0x17ef3d(0x150))/0x6)+parseInt(_0x17ef3d(0x11e))/0x7+parseInt(_0x17ef3d(0x17c))/0x8*(parseInt(_0x17ef3d(0x1ab))/0x9)+-parseInt(_0x17ef3d(0x141))/0xa;if(_0x20fdf5===_0x302900)break;else _0x1965bd['push'](_0x1965bd['shift']());}catch(_0x3dc407){_0x1965bd['push'](_0x1965bd['shift']());}}}(_0x560f,0xa6904));var Pe=Object[_0x558f55(0x123)],Ee=(_0x14739b,_0x13398a,_0x33ff39)=>_0x13398a in _0x14739b?Pe(_0x14739b,_0x13398a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33ff39}):_0x14739b[_0x13398a]=_0x33ff39,x=(_0x4751d3,_0x13e81b,_0x5c647b)=>Ee(_0x4751d3,typeof _0x13e81b!='symbol'?_0x13e81b+'':_0x13e81b,_0x5c647b);import{LocaleService as _0x273534,Inject as _0x3315f7,Injector as _0x435606,IConfigService as _0x7da071,ILocalStorageService as _0x12cbba,ILogService as _0x455acc,Disposable as _0x4cdc5b,CommandType as _0x5e7004,ICommandService as _0xe14675,DependentOn as _0x33f517,Plugin as _0x372ece,merge as _0x3b1109}from'@univerjs/core';import{jsxs as _0x36e757,jsx as _0x27bfa9}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3f09ea,MCPConnectionError as _0x25c6b5,MCPConnectionController as _0x1eede4,MCP_PLUGIN_CONFIG_KEY as _0x470c2b,UniverMCPPlugin as _0x385702}from'@univerjs-pro/mcp';import{clsx as _0x1b798e,Input as _0xef237d,Button as _0x4d22c1,MessageType as _0x90164d,Tooltip as _0x380876}from'@univerjs/design';import{useDependency as _0x7d0c3e,useObservable as _0x5403c9,IUIPartsService as _0x5537a7,IDialogService as _0x45f456,IMessageService as _0x35098f,ComponentManager as _0x2c0d67,connectInjector as _0x510a8f,BuiltInUIPart as _0x534a3e,MenuItemType as _0x855c7,RibbonStartGroup as _0x577d0c,IMenuManagerService as _0x9ece4}from'@univerjs/ui';import{BehaviorSubject as _0x42503e}from'rxjs';import{useRef as _0x44c1cf,createElement as _0x171191,forwardRef as _0x54d61b,useState as _0x1a5eb2,useCallback as _0x5a84f6}from'react';import{ISocketService as _0x8a3f06,WebSocketService as _0x5b6021}from'@univerjs/network';function b({ref:_0x4a4ef9,..._0x43cde8}){const _0xc7bc5=_0x558f55,{icon:_0x2d6ce3,id:_0x2bf44f,className:_0x218409,extend:_0x3cb76b,..._0x4d4fbf}=_0x43cde8,_0x3fc863=(_0xc7bc5(0x1ad)+_0x2bf44f+'\x20'+(_0x218409||''))[_0xc7bc5(0xfb)](),_0x5c7a7e=_0x44c1cf('_'+We());return ae(_0x2d6ce3,''+_0x2bf44f,{'defIds':_0x2d6ce3['defIds'],'idSuffix':_0x5c7a7e['current']},{'ref':_0x4a4ef9,'className':_0x3fc863,..._0x4d4fbf},_0x3cb76b);}function ae(_0x1cb688,_0x463e80,_0xe8f786,_0x260dc5,_0x5277bd){const _0x4b0dce=_0x558f55;return _0x171191(_0x1cb688[_0x4b0dce(0x1f4)],{'key':_0x463e80,...Ye(_0x1cb688,_0xe8f786,_0x5277bd),..._0x260dc5},(Ze(_0x1cb688,_0xe8f786)[_0x4b0dce(0x16e)]||[])[_0x4b0dce(0x179)]((_0x54cfd8,_0x288e7f)=>ae(_0x54cfd8,_0x463e80+'-'+_0x1cb688[_0x4b0dce(0x1f4)]+'-'+_0x288e7f,_0xe8f786,void 0x0,_0x5277bd)));}function Ye(_0x3acb1d,_0x469958,_0x1ed7cb){const _0x7d8089=_0x558f55,_0xfd31d1={..._0x3acb1d[_0x7d8089(0x10d)]};_0x1ed7cb!=null&&_0x1ed7cb[_0x7d8089(0x195)]&&_0xfd31d1[_0x7d8089(0x14b)]===_0x7d8089(0x195)&&(_0xfd31d1[_0x7d8089(0x14b)]=_0x1ed7cb['colorChannel1']),_0x3acb1d[_0x7d8089(0x1f4)]===_0x7d8089(0x1fe)&&_0xfd31d1['id']&&(_0xfd31d1['id']=_0xfd31d1['id']+_0x469958['idSuffix']),Object[_0x7d8089(0xd0)](_0xfd31d1)[_0x7d8089(0x18e)](([_0x3cf652,_0x265f9b])=>{const _0x220acf=_0x7d8089;_0x3cf652===_0x220acf(0x1fe)&&typeof _0x265f9b==_0x220acf(0x19d)&&(_0xfd31d1[_0x3cf652]=_0x265f9b[_0x220acf(0x19f)](/url\(#(.*)\)/,_0x220acf(0xb9)+_0x469958[_0x220acf(0x168)]+')'));});const {defIds:_0x51ee31}=_0x469958;return!_0x51ee31||_0x51ee31[_0x7d8089(0x125)]===0x0||(_0x3acb1d[_0x7d8089(0x1f4)]==='use'&&_0xfd31d1['xlink:href']&&(_0xfd31d1[_0x7d8089(0x1c4)]=_0xfd31d1[_0x7d8089(0x1c4)]+_0x469958[_0x7d8089(0x168)]),Object[_0x7d8089(0xd0)](_0xfd31d1)[_0x7d8089(0x18e)](([_0x5acb30,_0x33a476])=>{const _0x574d26=_0x7d8089;typeof _0x33a476==_0x574d26(0x19d)&&(_0xfd31d1[_0x5acb30]=_0x33a476['replace'](/url\(#(.*)\)/,_0x574d26(0xb9)+_0x469958[_0x574d26(0x168)]+')'));})),_0xfd31d1;}function Ze(_0x18b7ea,_0x456754){const _0x522975=_0x558f55;var _0x1887b8;const {defIds:_0x3bf142}=_0x456754;return!_0x3bf142||_0x3bf142[_0x522975(0x125)]===0x0?_0x18b7ea:_0x18b7ea[_0x522975(0x1f4)]===_0x522975(0x1fb)&&((_0x1887b8=_0x18b7ea[_0x522975(0x16e)])!=null&&_0x1887b8[_0x522975(0x125)])?{..._0x18b7ea,'children':_0x18b7ea[_0x522975(0x16e)][_0x522975(0x179)](_0x538440=>typeof _0x538440[_0x522975(0x10d)]['id']==_0x522975(0x19d)&&_0x3bf142&&_0x3bf142[_0x522975(0x18a)](_0x538440[_0x522975(0x10d)]['id'])?{..._0x538440,'attrs':{..._0x538440[_0x522975(0x10d)],'id':_0x538440[_0x522975(0x10d)]['id']+_0x456754[_0x522975(0x168)]}}:_0x538440)}:_0x18b7ea;}function We(){const _0x13dc6d=_0x558f55;return Math[_0x13dc6d(0x185)]()[_0x13dc6d(0x17d)](0x24)[_0x13dc6d(0x1e1)](0x2,0x8);}b[_0x558f55(0xfc)]=_0x558f55(0x153);const qe={'tag':_0x558f55(0xe4),'attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':_0x558f55(0x1fc),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'fill':_0x558f55(0x1e9),'d':_0x558f55(0x13c),'fillRule':_0x558f55(0x191),'clipRule':'evenodd'}}]},le=_0x54d61b(function(_0x2799f7,_0x35d5b0){const _0x1f388c=_0x558f55;return _0x171191(b,Object[_0x1f388c(0x1b2)]({},_0x2799f7,{'id':_0x1f388c(0x1e5),'ref':_0x35d5b0,'icon':qe}));});function _0x294f(_0x328d5e,_0x37a853){_0x328d5e=_0x328d5e-0xae;const _0x560f56=_0x560f();let _0x294f4b=_0x560f56[_0x328d5e];return _0x294f4b;}le[_0x558f55(0xfc)]=_0x558f55(0xc1);const Xe={'tag':'svg','attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':_0x558f55(0x1fc),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x558f55(0xb0)}}]},ue=_0x54d61b(function(_0x31bf49,_0x4e5e24){const _0x37f141=_0x558f55;return _0x171191(b,Object[_0x37f141(0x1b2)]({},_0x31bf49,{'id':'close-icon','ref':_0x4e5e24,'icon':Xe}));});ue[_0x558f55(0xfc)]='CloseIcon';const Je={'tag':_0x558f55(0xe4),'attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':'0\x200\x2016\x2016','width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'fill':'currentColor','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':_0x558f55(0x1e9),'d':_0x558f55(0x10c)}},{'tag':'path','attrs':{'fill':_0x558f55(0x1e9),'d':_0x558f55(0xd7),'fillRule':_0x558f55(0x191),'clipRule':_0x558f55(0x191)}}]},ve=_0x54d61b(function(_0xc77a37,_0x285641){const _0x203cc1=_0x558f55;return _0x171191(b,Object[_0x203cc1(0x1b2)]({},_0xc77a37,{'id':_0x203cc1(0x1f5),'ref':_0x285641,'icon':Je}));});ve[_0x558f55(0xfc)]='HelpIcon';const Qe={'tag':_0x558f55(0xe4),'attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':_0x558f55(0x1fc),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x558f55(0xc5),'attrs':{'stroke':_0x558f55(0x1e9),'d':_0x558f55(0xcf),'strokeLinecap':_0x558f55(0x1fd),'strokeLinejoin':_0x558f55(0x1fd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x558f55(0x1e8),'attrs':{'id':_0x558f55(0xae)},'children':[{'tag':'path','attrs':{'fill':_0x558f55(0x1a6),'d':_0x558f55(0x19a)}}]}]}],'defIds':[_0x558f55(0xae)]},de=_0x54d61b(function(_0x48f2c0,_0xf45081){const _0x359331=_0x558f55;return _0x171191(b,Object['assign']({},_0x48f2c0,{'id':_0x359331(0x1f2),'ref':_0xf45081,'icon':Qe}));});de[_0x558f55(0xfc)]=_0x558f55(0x1dc);const en={'tag':_0x558f55(0xe4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x558f55(0x148),'viewBox':_0x558f55(0x181),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':'g','attrs':{'clipPath':_0x558f55(0x1b6)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'stroke':'currentColor','d':_0x558f55(0xd9),'strokeLinecap':'round','strokeLinejoin':_0x558f55(0x1fd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x558f55(0x1e8),'attrs':{'id':_0x558f55(0x16d)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'fill':'white','d':_0x558f55(0x19a),'transform':_0x558f55(0xfd)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x54d61b(function(_0x436f68,_0x137744){const _0x1edf20=_0x558f55;return _0x171191(b,Object[_0x1edf20(0x1b2)]({},_0x436f68,{'id':_0x1edf20(0x163),'ref':_0x137744,'icon':en}));});ge[_0x558f55(0xfc)]=_0x558f55(0xaf);function nn(_0xa6f07c){const _0x3b9ff1=_0x558f55;var _0x1143ae,_0x546e23;const {mcpCoreConfig:_0xf62895,onSave:_0x54524a,loading:_0xee9e1e=!0x1,config:_0x2fecaf,connectionStatus$:_0x4ad044,connectionError$:_0x2db15d,currentApiKey$:_0x5a1368,currentSessionId$:_0x328e39}=_0xa6f07c,_0x545c7b=_0x7d0c3e(_0x273534),_0x5b290c=_0x5403c9(_0x4ad044,_0x3f09ea['DISCONNECTED']),_0x5d041d=_0x5403c9(_0x2db15d,_0x25c6b5['NONE']),_0x196c3f=_0x5403c9(_0x328e39,''),_0x402702=_0x5403c9(_0x5a1368,''),[_0x26cf65,_0x173f25]=_0x1a5eb2(_0x402702||''),_0x436f1e=!0x0,_0x17c46c=_0x2fecaf[_0x3b9ff1(0x1e3)]&&_0xf62895[_0x3b9ff1(0x1d3)]&&(_0xf62895[_0x3b9ff1(0x1d3)][_0x3b9ff1(0x18a)](_0x3b9ff1(0xb2))||_0xf62895[_0x3b9ff1(0x1d3)]['includes'](_0x3b9ff1(0xec))),_0x487a9e=(_0x1143ae=_0xf62895['mcpServerUrl'])==null?void 0x0:_0x1143ae[_0x3b9ff1(0x18a)](_0x3b9ff1(0xb2)),_0x2aa390=(_0x546e23=_0xf62895['mcpServerUrl'])==null?void 0x0:_0x546e23[_0x3b9ff1(0x18a)]('univer.ai'),_0x593e48=_0x487a9e?_0x3b9ff1(0x119):_0x3b9ff1(0x15d),_0x30b6a3=_0x2fecaf[_0x3b9ff1(0x1e3)]&&(_0x487a9e||_0x2aa390),[_0x375981,_0x42dd95]=_0x1a5eb2(!_0x26cf65[_0x3b9ff1(0xfb)]()),_0x46abce=(_0x432f81,_0x35ecd4)=>{const _0x1e7079=_0x3b9ff1;if(_0x35ecd4===_0x25c6b5[_0x1e7079(0x17b)])return _0x1e7079(0x143);switch(_0x432f81){case _0x3f09ea[_0x1e7079(0xb1)]:return _0x1e7079(0x169);case _0x3f09ea[_0x1e7079(0x194)]:case _0x3f09ea['RETRYING']:return _0x1e7079(0x137);case _0x3f09ea[_0x1e7079(0x164)]:return _0x1e7079(0x143);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x4e699a=(_0x5dd47a,_0xad69f1)=>{const _0x15db68=_0x3b9ff1;if(_0xad69f1===_0x25c6b5['UNAUTHORIZED'])return _0x15db68(0x1f9);switch(_0x5dd47a){case _0x3f09ea['CONNECTED']:return _0x15db68(0x14a);case _0x3f09ea[_0x15db68(0x194)]:case _0x3f09ea[_0x15db68(0xc4)]:return'univer-bg-blue-500';case _0x3f09ea[_0x15db68(0x164)]:return _0x15db68(0x1f9);default:return _0x15db68(0xed);}},_0x4fd7c2=_0x6ff742=>{const _0x2f4e09=_0x3b9ff1;switch(_0x6ff742){case _0x3f09ea[_0x2f4e09(0xb1)]:return _0x545c7b['t'](_0x2f4e09(0xc7));case _0x3f09ea[_0x2f4e09(0x194)]:return _0x545c7b['t']('mcpConfig.connectionStatus.connecting');case _0x3f09ea['FAILED']:return _0x545c7b['t']('mcpConfig.connectionStatus.failed');case _0x3f09ea[_0x2f4e09(0xc4)]:return _0x545c7b['t'](_0x2f4e09(0x1b5));default:return _0x545c7b['t']('mcpConfig.connectionStatus.disconnected');}},_0x3c6d57=_0x1d4e56=>{const _0x6057cd=_0x3b9ff1;switch(_0x1d4e56){case _0x25c6b5[_0x6057cd(0x17b)]:return _0x545c7b['t'](_0x6057cd(0x178));case _0x25c6b5['SESSION_ID_OCCUPIED']:return _0x545c7b['t'](_0x6057cd(0x117));case _0x25c6b5[_0x6057cd(0xb3)]:return _0x545c7b['t'](_0x6057cd(0x1e0));case _0x25c6b5['MAX_RETRIES_EXCEEDED']:return _0x545c7b['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2cc651=_0x5a84f6(()=>{const _0x6047a6=_0x3b9ff1,_0x19c240={..._0xf62895,'apiKey':_0x26cf65[_0x6047a6(0xfb)](),'enableAuth':_0x436f1e};_0x54524a(_0x19c240);},[_0xf62895,_0x26cf65,_0x436f1e,_0x54524a]),_0x340c07=_0x26cf65[_0x3b9ff1(0xfb)]()[_0x3b9ff1(0x125)]>0x0;return _0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x131),'children':_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x193),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1e7),'children':_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x105),'children':'⚙'})}),_0x27bfa9('div',{'children':_0x27bfa9('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x545c7b['t'](_0x3b9ff1(0x1a9))})})]})}),_0x36e757('div',{'className':_0x3b9ff1(0x1b8),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x1b798e(_0x3b9ff1(0x162),_0x46abce(_0x5b290c,_0x5d041d)),'children':_0x36e757('div',{'className':_0x3b9ff1(0xc9),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x1b798e(_0x3b9ff1(0xe0),_0x4e699a(_0x5b290c,_0x5d041d))}),_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x114),'children':_0x4fd7c2(_0x5b290c)})]})}),_0x5d041d!==_0x25c6b5['NONE']&&(_0x5b290c===_0x3f09ea['FAILED']||_0x5d041d===_0x25c6b5[_0x3b9ff1(0x17b)])&&_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x36e757('div',{'className':_0x3b9ff1(0x151),'children':[_0x27bfa9('span',{'className':_0x3b9ff1(0xde),'children':'⚠️'}),_0x27bfa9('p',{'className':_0x3b9ff1(0x102),'children':_0x3c6d57(_0x5d041d)})]})})]}),_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1a1),'children':_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x100),'children':[_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc2),'children':[_0x36e757('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x27bfa9(_0x3b9ff1(0x11f),{'children':'🔑'}),'\x20',_0x545c7b['t'](_0x3b9ff1(0x14d)),_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x1c2),'children':'*'}),_0x17c46c&&_0x27bfa9('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':_0x545c7b['t'](_0x3b9ff1(0x129)),'role':'button','onClick':()=>_0x42dd95(!0x0),'children':_0x27bfa9(ve,{})})]}),_0x27bfa9(_0xef237d,{'type':'text','placeholder':_0x545c7b['t'](_0x3b9ff1(0x156)),'value':_0x26cf65,'disabled':_0xee9e1e,'autoComplete':_0x3b9ff1(0x198),'onChange':_0x173f25}),_0x27bfa9('p',{'className':_0x3b9ff1(0x19e),'children':_0x545c7b['t']('mcpConfig.apiKeyHint')})]}),_0x17c46c&&_0x375981&&_0x36e757('div',{'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':[_0x27bfa9('a',{'className':_0x3b9ff1(0x1d9),'role':_0x3b9ff1(0x13a),'onClick':()=>_0x42dd95(!0x1),'children':_0x27bfa9(ue,{'className':_0x3b9ff1(0xef)})}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x13f),'children':_0x27bfa9('span',{'className':_0x3b9ff1(0xe9),'children':'🚀'})}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xf2),'children':[_0x27bfa9('h4',{'className':_0x3b9ff1(0xe8),'children':_0x545c7b['t'](_0x3b9ff1(0x129))}),_0x27bfa9('p',{'className':_0x3b9ff1(0x103),'children':_0x545c7b['t'](_0x3b9ff1(0x197))}),_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x12f),'children':_0x30b6a3&&_0x36e757('a',{'className':_0x3b9ff1(0x196),'href':_0x593e48,'target':_0x3b9ff1(0xdd),'rel':_0x3b9ff1(0x15b),'children':[_0x27bfa9('span',{'children':'🤖'}),_0x545c7b['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x139),'children':'↗'})]})}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1ac),'children':['✨','\x20',_0x545c7b['t'](_0x3b9ff1(0xc8))]})]})]})]}),_0x2fecaf[_0x3b9ff1(0x1e3)]&&_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x192),'children':[_0x36e757('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x27bfa9('span',{'children':'🔗'}),'\x20',_0x545c7b['t']('mcpConfig.connectionInfo')]}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x175),'children':[_0x36e757('div',{'className':_0x3b9ff1(0x1a7),'children':[_0x27bfa9('p',{'className':_0x3b9ff1(0x1a8),'children':_0x545c7b['t'](_0x3b9ff1(0x136))}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc2),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x545c7b['t']('mcpConfig.configStepTitle')}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1d4),'children':[_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc9),'children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x106),'children':'1'}),_0x545c7b['t'](_0x3b9ff1(0x15e))]}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc9),'children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x106),'children':'2'}),_0x545c7b['t'](_0x3b9ff1(0x138))]}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x106),'children':'3'}),_0x545c7b['t']('mcpConfig.configStep3')]})]})]})]}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-space-y-2','children':[_0x27bfa9('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3b9ff1(0xe1)}),_0x27bfa9('div',{'className':_0x3b9ff1(0xf1),'children':_0x27bfa9(_0x3b9ff1(0x16a),{'className':_0x3b9ff1(0x132),'children':JSON[_0x3b9ff1(0x157)]({'mcpServers':{'univer':{'url':_0x3b9ff1(0x15c)+(_0x196c3f||_0x3b9ff1(0x1f0)),'type':'http','headers':{'Authorization':_0x3b9ff1(0x186)+(_0x26cf65||_0x3b9ff1(0xf0))}}}},null,0x2)})})]}),_0x36e757('div',{'className':'univer-space-y-3','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xbd),'children':_0x545c7b['t']('mcpConfig.configParameters')}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-space-y-2','children':[_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x149),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1ae)}),_0x36e757('div',{'className':_0x3b9ff1(0x180),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1db),'children':'univer_session_id:'}),_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x545c7b['t'](_0x3b9ff1(0x160))})]})]}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x180),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x3b9ff1(0xbc)}),_0x27bfa9('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x545c7b['t'](_0x3b9ff1(0x1ca))})]})]})]})]})]})]}),_0x27bfa9(_0x4d22c1,{'onClick':_0x2cc651,'disabled':!_0x340c07||_0xee9e1e,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0xee9e1e?_0x36e757('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x27bfa9(_0x3b9ff1(0x11f),{'children':'⟲'}),_0x545c7b['t'](_0x3b9ff1(0xce))]}):_0x36e757('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x27bfa9(le,{}),_0x545c7b['t'](_0x3b9ff1(0x1d2))]})}),_0x27bfa9('div',{'className':_0x3b9ff1(0x10a),'children':_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1c7),'children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x13e),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x36e757(_0x3b9ff1(0x11a),{'children':['•',_0x545c7b['t'](_0x3b9ff1(0x189))]}),_0x36e757(_0x3b9ff1(0x11a),{'children':['•',_0x545c7b['t'](_0x3b9ff1(0x1f1))]})]})]})})]})})]});}const y=_0x558f55(0x1c9),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x4f1ec9,_0x520d6e,_0x412028,_0xff014c)=>{const _0x1d801a=_0x558f55;for(var _0x5cdd54=_0xff014c>0x1?void 0x0:_0xff014c?rn(_0x520d6e,_0x412028):_0x520d6e,_0x3b1010=_0x4f1ec9[_0x1d801a(0x125)]-0x1,_0x3a918e;_0x3b1010>=0x0;_0x3b1010--)(_0x3a918e=_0x4f1ec9[_0x3b1010])&&(_0x5cdd54=_0x3a918e(_0x5cdd54)||_0x5cdd54);return _0x5cdd54;},d=(_0x46e55b,_0x1e4f4d)=>(_0x128468,_0x2032a6)=>_0x1e4f4d(_0x128468,_0x2032a6,_0x46e55b);function _0x560f(){const _0xe786cf=['mcpConfig.connectionError.unauthorized','map','MCP\x20客户端配置','UNAUTHORIZED','23528UFXnJh','toString','配置无效','保存配置','univer-min-w-0\x20univer-flex-1','0\x200\x2017\x2016','API\x20密钥','register','\x20-\x20','random','Bearer\x20','Connecting...','MCP\x20连接中...','mcpConfig.note1','includes','mcpStatus.disconnected','配置参数:','_initializeCommands','forEach','超出最大重试次数,请稍后再试','已连接','evenodd','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center\x20univer-gap-3','CONNECTING','colorChannel1','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','mcpConfig.apiApplyInfo.description','off','mcpStatus.connecting','M0\x200H16V16H0z','最大重试次数','1em','string','univer-text-xs\x20univer-text-gray-500','replace','_mcpCoreConfig$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Success','getConfig','validateApiKey','重连中...','white','univer-space-y-3','univer-text-xs\x20univer-text-gray-600','mcpConfig.description','MCP:\x20Unauthorized','2538GpQOPs','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univerjs-icon\x20univerjs-icon-','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','connectionStatus$','removeItem','_configService','assign','mergeMenu','1280363byYKMi','mcpConfig.connectionStatus.retrying','url(#on-line-icon_clip0_910_349)','Configuration\x20Parameters:','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initializeMenus','_createConfigPanelComponent','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20密钥无效,请检查密钥是否正确','_apiKey$','启用身份验证以获得安全连接','open','bottom','getOwnPropertyDescriptor','univer-text-red-500','Enable\x20Authentication','xlink:href','MCP\x20状态未知','MCP\x20Retrying...','univer-flex\x20univer-gap-3','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcp-ui.config','mcpConfig.authorizationDescription','mcpStatus.maxRetriesExceeded','errorMessage','show','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','点击配置\x20MCP','启用身份验证','_commandService','mcpConfig.save','mcpServerUrl','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.networkError','MCPConfigPanel','_registerComponent','MCP\x20已连接','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','OffLineIcon','_messageService','BUTTON','几秒钟内获取您的\x20API\x20密钥','mcpConfig.connectionError.networkError','substring','配置步骤:','showDeveloperTools','MCP:\x20未授权','check-mark-icon','_connectionController','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','clipPath','currentColor','mcpStatus.unauthorized','mcpConfig.title','mcpStatus.retrying','What\x20is\x20API\x20Key?','MAX_RETRIES_EXCEEDED','Disconnected','<SESSION_ID>','mcpConfig.note2','off-line-icon','_loadStoredApiKey','tag','help-icon','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Enter\x20your\x20API\x20key','MCP:\x20会话\x20ID\x20已被占用','univer-bg-red-500','__setCustomHeaders','defs','0\x200\x2016\x2016','round','mask','off-line-icon_clip0_910_343','OnLineIcon','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','CONNECTED','univer.plus','NETWORK_ERROR','配置更改将立即生效','MCP\x20重连中...','value','showConfigPanel','mcpStatus.sessionOccupied','url(#$1','Failed\x20to\x20save\x20configuration','warn','Authorization:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥长度至少需要\x2010\x20位','univer-text-yellow-500','API\x20key\x20is\x20required','CheckMarkIcon','univer-space-y-2','subscribe','RETRYING','path','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.connected','mcpConfig.apiApplyInfo.getStarted','univer-flex\x20univer-items-center\x20univer-gap-2','has','mcpStatus.unknown','_uiPartsService','_handleConfigure','mcpConfig.saving','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','entries','_initConfigSync','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥不能为空','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20Key','_menuManagerService','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.validation.invalidApiKey','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','_localeService','subscribeConfigValue$','mcpConfig.validation.apiKeyRequired','_blank','univer-shrink-0\x20univer-text-red-500','MCP:\x20Max\x20Retries\x20Exceeded','univer-size-2\x20univer-rounded-full','MCP\x20Configuration','setItem','_dialogService','svg','univer-mr-2\x20univer-flex\x20univer-text-xl','1242YSpNMo','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-blue-600','保存中...','MCP:\x20网络错误','univer.ai','univer-bg-gray-500','会话\x20ID\x20已被占用,请稍后再试','univer-size-4','<API_KEY>','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex-1','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','add','_logService','_componentManager','_config','MenuIcon','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','trim','displayName','translate(.97)','error','3543cZyBxm','univer-space-y-5','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','disposeWithMe','univer-text-white','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','请输入您的\x20API\x20密钥','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','setConfig','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','attrs','registerComponent','Configuration\x20Steps:','univer-text-green-500','HEADER_MENU','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','http://www.w3.org/2000/svg','univer-text-sm\x20univer-font-medium','MCP\x20Connecting...','Univer\x20AI\x20控制台','mcpConfig.connectionError.sessionOccupied','会话ID','https://console.univer.plus','div','_initStatusComponent','next','isValid','4169886yYuIAq','span','COMMAND','连接失败','pluginName','defineProperty','_mcpConnectionController','length','MCP\x20Disconnected','DISCONNECTED','mcp-config-dialog','mcpConfig.apiApplyInfo.title','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','apiKey','重启您的\x20MCP\x20客户端以使配置生效','Click\x20to\x20connect\x20MCP','_handleConfigSave','univer-flex\x20univer-flex-wrap\x20univer-gap-2','registerCommand','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Error','点击连接\x20MCP','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.configInstructions','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.configStep2','univer-text-gray-400','button','_config$','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','MCP\x20Client\x20Configuration','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','连接中...','4600210ciEihl','mcpStatus.clickToConnect','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_validateConfig','Save\x20Configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_loading$','none','univer-flex\x20univer-items-start\x20univer-gap-3','univer-bg-green-500','fill','配置保存成功','mcpConfig.apiKey','Saving...','mcpStatus.failed','192180bqdLrp','univer-flex\x20univer-items-start\x20univer-gap-2','sessionId$','UniverIcon','_injector','Click\x20to\x20configure\x20MCP','mcpConfig.apiKeyPlaceholder','stringify','15uQPsEW','\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','connectionError$','noopener\x20noreferrer','https://mcp.univer.ai/mcp/?univer_session_id=','https://console.univer.ai','mcpConfig.configStep1','mcpConfig.configError','mcpConfig.sessionIdDescription','Configuration\x20saved\x20successfully','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','on-line-icon','FAILED','mcpConfig.validation.invalidConfig','API\x20key\x20with\x20Bearer\x20prefix.','SESSION_ID_OCCUPIED','idSuffix','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','pre','_localStorageService','showStatus','on-line-icon_clip0_910_349','children','mcpConfig.validation.apiKeyTooShort','Invalid\x20configuration','_initAutoConnect','enableAutoConnect','get','未连接','univer-space-y-4','MCP\x20Connection\x20Failed','2934668mJQoBb'];_0x560f=function(){return _0xe786cf;};return _0x560f();}const U='mcp.apiKey',L=_0x558f55(0x128);let I=class extends _0x4cdc5b{constructor(_0x2fa3f1,_0x163318,_0x2e53b4,_0x24a50f,_0xb49d79,_0x17c27f,_0x1426be,_0x10934a,_0x55a13c,_0x23a91b){const _0x40f2a0=_0x558f55;super(),x(this,_0x40f2a0(0x147),new _0x42503e(!0x1)),x(this,_0x40f2a0(0x1a0),new _0x42503e({})),x(this,_0x40f2a0(0x13b),new _0x42503e({})),x(this,_0x40f2a0(0x1bd),new _0x42503e('')),x(this,_0x40f2a0(0x12e),async _0x90a6ba=>{const _0xa0ac00=_0x40f2a0;var _0x46c7d2,_0x50f0ac;this[_0xa0ac00(0x147)][_0xa0ac00(0x11c)](!0x0);try{const _0x10a1d0=await this[_0xa0ac00(0x144)](_0x90a6ba);if(!_0x10a1d0[_0xa0ac00(0x11d)]){this[_0xa0ac00(0x1dd)][_0xa0ac00(0x1cd)]({'type':_0x90164d[_0xa0ac00(0x133)],'content':_0x10a1d0[_0xa0ac00(0x1cc)]||this['_localeService']['t'](_0xa0ac00(0x165))});return;}_0x90a6ba['apiKey']?await this[_0xa0ac00(0x16b)][_0xa0ac00(0xe2)](U,_0x90a6ba['apiKey'][_0xa0ac00(0xfb)]()):await this[_0xa0ac00(0x16b)][_0xa0ac00(0x1b0)](U),this[_0xa0ac00(0x1bd)][_0xa0ac00(0x11c)](((_0x46c7d2=_0x90a6ba[_0xa0ac00(0x12b)])==null?void 0x0:_0x46c7d2[_0xa0ac00(0xfb)]())||''),this[_0xa0ac00(0x124)][_0xa0ac00(0x1fa)]({'Authorization':_0xa0ac00(0x186)+((_0x50f0ac=_0x90a6ba[_0xa0ac00(0x12b)])==null?void 0x0:_0x50f0ac[_0xa0ac00(0xfb)]())}),this[_0xa0ac00(0x1dd)]['show']({'type':_0x90164d[_0xa0ac00(0x1a2)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x150592=_0xa0ac00;this[_0x150592(0xe3)]['close'](L);},0x320);}catch(_0x56a04c){this[_0xa0ac00(0xf5)][_0xa0ac00(0xfe)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x56a04c),this['_messageService'][_0xa0ac00(0x1cd)]({'type':_0x90164d['Error'],'content':this['_localeService']['t'](_0xa0ac00(0x15f))});}finally{this['_loading$'][_0xa0ac00(0x11c)](!0x1);}}),(this[_0x40f2a0(0x154)]=_0x2fa3f1,this[_0x40f2a0(0xcc)]=_0x163318,this[_0x40f2a0(0x1b1)]=_0x2e53b4,this['_localStorageService']=_0x24a50f,this[_0x40f2a0(0xe3)]=_0xb49d79,this[_0x40f2a0(0x1dd)]=_0x17c27f,this['_componentManager']=_0x1426be,this[_0x40f2a0(0xda)]=_0x10934a,this['_logService']=_0x55a13c,this[_0x40f2a0(0x124)]=_0x23a91b,this[_0x40f2a0(0xd1)](),this[_0x40f2a0(0x1f3)](),this[_0x40f2a0(0x1d7)]());}[_0x558f55(0xb7)](){const _0x53ba1b=_0x558f55,_0x9e279f=this[_0x53ba1b(0x1b1)][_0x53ba1b(0x1a3)](y);_0x9e279f!=null&&_0x9e279f[_0x53ba1b(0x1e3)]&&this[_0x53ba1b(0xe3)][_0x53ba1b(0x1bf)]({'id':L,'title':{'title':this['_localeService']['t'](_0x53ba1b(0x1eb))},'children':{'label':_0x53ba1b(0x1d6)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](L);}});}['getCurrentConfig'](){const _0x1d9989=_0x558f55;return this['_mcpCoreConfig$'][_0x1d9989(0xb6)];}[_0x558f55(0x1d7)](){const _0x219e17=_0x558f55;this[_0x219e17(0x104)](this[_0x219e17(0xf6)][_0x219e17(0x183)](_0x219e17(0x1d6),this[_0x219e17(0x1ba)]()));}[_0x558f55(0x1ba)](){const _0x33904c=_0x558f55;return _0x510a8f(()=>{const _0x40982f=_0x294f;var _0x8ec069,_0x5a7aaa,_0x4e9a61;return _0x27bfa9(nn,{'config':this[_0x40982f(0x13b)][_0x40982f(0xb6)],'mcpCoreConfig':this[_0x40982f(0x1a0)][_0x40982f(0xb6)],'currentApiKey$':this[_0x40982f(0x1bd)],'onSave':this[_0x40982f(0x12e)],'loading':this['_loading$'][_0x40982f(0xb6)],'connectionStatus$':(_0x8ec069=this[_0x40982f(0x124)])==null?void 0x0:_0x8ec069[_0x40982f(0x1af)],'connectionError$':(_0x5a7aaa=this['_mcpConnectionController'])==null?void 0x0:_0x5a7aaa[_0x40982f(0x15a)],'currentSessionId$':(_0x4e9a61=this[_0x40982f(0x124)])==null?void 0x0:_0x4e9a61[_0x40982f(0x152)]});},this[_0x33904c(0x154)]);}[_0x558f55(0xd1)](){const _0x2bf3f4=_0x558f55;this[_0x2bf3f4(0x104)](this[_0x2bf3f4(0x1b1)]['subscribeConfigValue$'](_0x470c2b)[_0x2bf3f4(0xc3)](_0x2560fc=>{const _0x57e2ce=_0x2bf3f4;this[_0x57e2ce(0x1a0)][_0x57e2ce(0x11c)](_0x2560fc||{});}));const _0x2a3ccc=this[_0x2bf3f4(0x1b1)][_0x2bf3f4(0x1a3)](_0x470c2b);this['_mcpCoreConfig$']['next'](_0x2a3ccc||{}),this[_0x2bf3f4(0x104)](this[_0x2bf3f4(0x1b1)][_0x2bf3f4(0xdb)](y)[_0x2bf3f4(0xc3)](_0x1f71b4=>{const _0x5b4619=_0x2bf3f4;this[_0x5b4619(0x13b)]['next'](_0x1f71b4||{});}));const _0x491eda=this[_0x2bf3f4(0x1b1)][_0x2bf3f4(0x1a3)](y);this[_0x2bf3f4(0x13b)]['next'](_0x491eda||{});}async['_loadStoredApiKey'](){const _0x5303c3=_0x558f55,_0x1a9cfc=this[_0x5303c3(0x1b1)][_0x5303c3(0x1a3)](y);if(!(_0x1a9cfc!=null&&_0x1a9cfc[_0x5303c3(0x1e3)]))return;const _0x15ccea=await this[_0x5303c3(0x16b)]['getItem'](U);_0x15ccea&&(this[_0x5303c3(0x124)]['__setCustomHeaders']({'Authorization':_0x5303c3(0x186)+_0x15ccea}),this[_0x5303c3(0x1bd)][_0x5303c3(0x11c)](_0x15ccea));}async[_0x558f55(0x144)](_0x323e2f){const _0x51f824=_0x558f55;if(!_0x323e2f[_0x51f824(0x12b)]||_0x323e2f[_0x51f824(0x12b)]['trim']()[_0x51f824(0x125)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51f824(0xda)]['t'](_0x51f824(0xdc))};if(_0x323e2f[_0x51f824(0x12b)]['trim']()[_0x51f824(0x125)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51f824(0xda)]['t'](_0x51f824(0x16f))};try{const _0x2b0721=await this[_0x51f824(0x154)][_0x51f824(0x173)](_0x1eede4)[_0x51f824(0x1a4)](_0x323e2f[_0x51f824(0x12b)][_0x51f824(0xfb)]());return _0x2b0721['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2b0721[_0x51f824(0xfe)]||this[_0x51f824(0xda)]['t'](_0x51f824(0xd8))};}catch(_0x187ccc){return console[_0x51f824(0xbb)](_0x51f824(0xf3),_0x187ccc),{'isValid':!0x0};}}};I=tn([d(0x0,_0x3315f7(_0x435606)),d(0x1,_0x5537a7),d(0x2,_0x7da071),d(0x3,_0x12cbba),d(0x4,_0x45f456),d(0x5,_0x35098f),d(0x6,_0x3315f7(_0x2c0d67)),d(0x7,_0x3315f7(_0x273534)),d(0x8,_0x455acc),d(0x9,_0x3315f7(_0x1eede4))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x5e7004[_0x558f55(0x120)],'handler':async(_0x2d822e,_0x15480d)=>(_0x2d822e[_0x558f55(0x173)](I)[_0x558f55(0xb7)](),!0x0)};function pe(_0x30a9f1,_0x3dd557){const _0x2f9e52=_0x558f55;switch(_0x30a9f1){case _0x3f09ea[_0x2f9e52(0x127)]:return _0x2f9e52(0x18b);case _0x3f09ea[_0x2f9e52(0x194)]:return _0x2f9e52(0x199);case _0x3f09ea[_0x2f9e52(0xb1)]:return'mcpStatus.connected';case _0x3f09ea[_0x2f9e52(0x164)]:switch(_0x3dd557){case _0x25c6b5[_0x2f9e52(0x17b)]:return _0x2f9e52(0x1ea);case _0x25c6b5[_0x2f9e52(0x167)]:return _0x2f9e52(0xb8);case _0x25c6b5[_0x2f9e52(0xb3)]:return _0x2f9e52(0x1d5);case _0x25c6b5[_0x2f9e52(0x1ee)]:return _0x2f9e52(0x1cb);default:return _0x2f9e52(0x14f);}case _0x3f09ea[_0x2f9e52(0xc4)]:return _0x2f9e52(0x1ec);default:return _0x2f9e52(0xcb);}}function on(_0xb4cdd8,_0x296230,_0x3f30d8,_0x1b0206=!0x0){const _0x136120=_0x558f55,_0x119fe2=pe(_0xb4cdd8,_0x296230),_0x52c42c=_0x3f30d8['t'](_0x119fe2);return _0x1b0206?_0xb4cdd8===_0x3f09ea['DISCONNECTED']&&_0x296230===_0x25c6b5[_0x136120(0x17b)]?_0x52c42c+_0x136120(0x184)+_0x3f30d8['t']('mcpStatus.clickToConfigure'):_0xb4cdd8===_0x3f09ea[_0x136120(0xb1)]?''+_0x52c42c:_0xb4cdd8===_0x3f09ea[_0x136120(0x127)]||_0xb4cdd8===_0x3f09ea[_0x136120(0x164)]?_0x52c42c+'\x20-\x20'+_0x3f30d8['t'](_0x136120(0x142)):_0x52c42c:_0x52c42c;}function sn(_0x9f8d26){const _0x47de55=_0x558f55;switch(_0x9f8d26){case _0x3f09ea[_0x47de55(0xb1)]:return _0x47de55(0x110);case _0x3f09ea[_0x47de55(0x194)]:case _0x3f09ea[_0x47de55(0xc4)]:return _0x47de55(0xbf);case _0x3f09ea[_0x47de55(0x164)]:case _0x3f09ea[_0x47de55(0x127)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function cn(_0x1c60b9){const _0x456ba7=_0x558f55,{status$:_0x44b60f,error$:_0x3bed87,onConfigure:_0x145d79,showClickable:_0x3e23f6=!0x0}=_0x1c60b9,_0x564412=_0x5403c9(_0x44b60f,_0x3f09ea[_0x456ba7(0x127)]),_0x53c3b7=_0x5403c9(_0x3bed87,_0x25c6b5['NONE']),_0x3569a1=_0x7d0c3e(_0x273534),_0x51083c=_0x564412===_0x3f09ea[_0x456ba7(0xb1)];_0x564412===_0x3f09ea['CONNECTING']||_0x3f09ea[_0x456ba7(0xc4)];const _0x2fd98d=_0x3569a1['t'](pe(_0x564412,_0x53c3b7)),_0x1e873c=on(_0x564412,_0x53c3b7,_0x3569a1,_0x3e23f6),_0x45fa12=sn(_0x564412),_0x5cf15f=_0x51083c?_0x27bfa9(ge,{}):_0x27bfa9(de,{}),_0xd5a1a0=_0x5a84f6(()=>{_0x3e23f6&&_0x145d79&&_0x145d79();},[_0x3e23f6,_0x145d79]);function _0x4b50b8(){const _0x28c29b=_0x456ba7;return _0x36e757('div',{'className':_0x1b798e('univer-flex\x20univer-items-center',_0x3e23f6&&_0x145d79&&_0x28c29b(0x159)),'role':'button','onClick':_0x3e23f6&&_0x145d79?_0xd5a1a0:void 0x0,'children':[_0x27bfa9(_0x28c29b(0x11a),{'className':_0x1b798e(_0x28c29b(0xe5),_0x45fa12),'children':_0x5cf15f}),_0x27bfa9(_0x28c29b(0x11a),{'className':_0x28c29b(0x112),'children':_0x2fd98d})]});}return _0x27bfa9(_0x380876,{'title':_0x1e873c,'placement':_0x456ba7(0x1c0),'children':_0x4b50b8()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x39148a,_0x2dedf0,_0x5925ed,_0x5c452d)=>{for(var _0x368ffd=_0x5c452d>0x1?void 0x0:_0x5c452d?an(_0x2dedf0,_0x5925ed):_0x2dedf0,_0x151dac=_0x39148a['length']-0x1,_0x2441cc;_0x151dac>=0x0;_0x151dac--)(_0x2441cc=_0x39148a[_0x151dac])&&(_0x368ffd=_0x2441cc(_0x368ffd)||_0x368ffd);return _0x368ffd;},M=(_0x13452a,_0x2d4588)=>(_0x5844ed,_0x41f6de)=>_0x2d4588(_0x5844ed,_0x41f6de,_0x13452a);let O=class extends _0x4cdc5b{constructor(_0x4e834e,_0x184adc,_0x55079f,_0x2b9723){const _0x475e78=_0x558f55;super(),this[_0x475e78(0x154)]=_0x4e834e,this[_0x475e78(0x1e6)]=_0x184adc,this[_0x475e78(0xcc)]=_0x55079f,this[_0x475e78(0x1b1)]=_0x2b9723,this[_0x475e78(0x171)](),this[_0x475e78(0x11b)]();}[_0x558f55(0x171)](){const _0x1a95f0=_0x558f55,_0x29236a=this[_0x1a95f0(0x1b1)][_0x1a95f0(0x1a3)](y);_0x29236a!=null&&_0x29236a[_0x1a95f0(0x1e3)]&&(this[_0x1a95f0(0x1e6)][_0x1a95f0(0x172)]=!0x1);}['_initStatusComponent'](){const _0xdc2da7=_0x558f55,_0x592d5f=this[_0xdc2da7(0x1b1)][_0xdc2da7(0x1a3)](y);(_0x592d5f==null?void 0x0:_0x592d5f[_0xdc2da7(0x16c)])!==!0x1&&this[_0xdc2da7(0x104)](this[_0xdc2da7(0xcc)][_0xdc2da7(0x10e)](_0x534a3e[_0xdc2da7(0x111)],()=>{const _0x390224=_0xdc2da7;var _0x41f680;return _0x510a8f(un({'status$':this[_0x390224(0x1e6)][_0x390224(0x1af)],'error$':this[_0x390224(0x1e6)][_0x390224(0x15a)],'onConfigure':()=>this[_0x390224(0xcd)](),'showClickable':(_0x41f680=_0x592d5f==null?void 0x0:_0x592d5f[_0x390224(0x1e3)])!=null?_0x41f680:!0x1}),this[_0x390224(0x154)]);}));}[_0x558f55(0xcd)](){const _0x18332c=_0x558f55;this[_0x18332c(0x154)]['get'](I)[_0x18332c(0xb7)]();}};O=ln([M(0x0,_0x3315f7(_0x435606)),M(0x1,_0x3315f7(_0x1eede4)),M(0x2,_0x5537a7),M(0x3,_0x7da071)],O);function un(_0x7d8a30){const {status$:_0x391038,error$:_0x5339f6,onConfigure:_0x38c8e2,showClickable:_0x955d5e}=_0x7d8a30;return function(){return _0x27bfa9(cn,{'status$':_0x391038,'error$':_0x5339f6,'onConfigure':_0x38c8e2,'showClickable':_0x955d5e});};}function vn(_0x2cb81b){const _0x4eee3a=_0x558f55;return{'id':V['id'],'type':_0x855c7[_0x4eee3a(0x1de)],'icon':_0x4eee3a(0xf8),'title':_0x4eee3a(0x1eb),'tooltip':_0x4eee3a(0x1eb)};}const dn={[_0x577d0c['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x558f55(0x1c1)],pn=(_0x36b5c,_0x9164b6,_0x4d7f39,_0x25a2fa)=>{const _0x33e647=_0x558f55;for(var _0x456b66=_0x25a2fa>0x1?void 0x0:_0x25a2fa?gn(_0x9164b6,_0x4d7f39):_0x9164b6,_0x277bee=_0x36b5c[_0x33e647(0x125)]-0x1,_0x17c47c;_0x277bee>=0x0;_0x277bee--)(_0x17c47c=_0x36b5c[_0x277bee])&&(_0x456b66=_0x17c47c(_0x456b66)||_0x456b66);return _0x456b66;},re=(_0x2a55db,_0xa85fda)=>(_0xf3d5a6,_0x63fe7)=>_0xa85fda(_0xf3d5a6,_0x63fe7,_0x2a55db);let D=class extends _0x4cdc5b{constructor(_0x184118,_0x239317){const _0x48ca72=_0x558f55;super(),this[_0x48ca72(0x1d1)]=_0x184118,this[_0x48ca72(0xd6)]=_0x239317,this['_initializeCommands'](),this[_0x48ca72(0x1b9)]();}[_0x558f55(0x18d)](){const _0x4a8481=_0x558f55;[V][_0x4a8481(0x18e)](_0xf2f577=>{const _0x152156=_0x4a8481;this['disposeWithMe'](this[_0x152156(0x1d1)][_0x152156(0x130)](_0xf2f577));});}[_0x558f55(0x1b9)](){const _0x3d4448=_0x558f55;this['_menuManagerService'][_0x3d4448(0x1b3)](dn);}};D=pn([re(0x0,_0xe14675),re(0x1,_0x9ece4)],D);const Mn={'mcpStatus':{'disconnected':_0x558f55(0x126),'connecting':_0x558f55(0x115),'connected':'MCP\x20Connected','failed':_0x558f55(0x176),'retrying':_0x558f55(0x1c6),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x558f55(0x1aa),'sessionOccupied':_0x558f55(0x135),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x558f55(0xdf),'clickToConnect':_0x558f55(0x12d),'clickToConfigure':_0x558f55(0x155)},'mcpConfig':{'title':_0x558f55(0xe1),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x558f55(0xd5),'apiKeyPlaceholder':_0x558f55(0x1f7),'apiKeyHint':_0x558f55(0x1bb),'enableAuth':_0x558f55(0x1c3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x558f55(0x13d),'mcpClientConfig':_0x558f55(0x13d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x558f55(0x10f),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x558f55(0x12a),'sessionId':'Session\x20ID','sessionIdDescription':_0x558f55(0x1ce),'authorizationDescription':_0x558f55(0x166),'configParameters':_0x558f55(0x1b7),'maxRetries':'Max\x20Retries','save':_0x558f55(0x145),'saving':_0x558f55(0x14e),'note1':_0x558f55(0xc6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x558f55(0x161),'configError':_0x558f55(0xba),'apiApplyInfo':{'title':_0x558f55(0x1ed),'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':_0x558f55(0xfa)},'validation':{'apiKeyRequired':_0x558f55(0xc0),'apiKeyTooShort':_0x558f55(0x101),'invalidConfig':_0x558f55(0x170),'invalidApiKey':_0x558f55(0x109)},'connectionStatus':{'disconnected':_0x558f55(0x1ef),'connecting':_0x558f55(0x187),'connected':'Connected','failed':_0x558f55(0x108),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x558f55(0x1da),'sessionOccupied':_0x558f55(0xf9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x558f55(0x188),'connected':_0x558f55(0x1d8),'failed':'MCP\x20连接失败','retrying':_0x558f55(0xb5),'unknown':_0x558f55(0x1c5),'unauthorized':_0x558f55(0x1e4),'sessionOccupied':_0x558f55(0x1f8),'networkError':_0x558f55(0xeb),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x558f55(0x134),'clickToConfigure':_0x558f55(0x1cf)},'mcpConfig':{'title':'MCP\x20配置','description':_0x558f55(0x1c8),'apiKey':_0x558f55(0x182),'apiKeyPlaceholder':_0x558f55(0x107),'apiKeyHint':_0x558f55(0xd4),'enableAuth':_0x558f55(0x1d0),'enableAuthHint':_0x558f55(0x1be),'connectionInfo':_0x558f55(0x17a),'mcpClientConfig':_0x558f55(0x17a),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x558f55(0x1e2),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x558f55(0xe7),'configStep3':_0x558f55(0x12c),'sessionId':_0x558f55(0x118),'sessionIdDescription':_0x558f55(0x1f6),'authorizationDescription':_0x558f55(0xd2),'configParameters':_0x558f55(0x18c),'maxRetries':_0x558f55(0x19b),'save':_0x558f55(0x17f),'saving':_0x558f55(0xea),'note1':_0x558f55(0xb4),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x558f55(0x14c),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x558f55(0x146),'univerAiLabel':_0x558f55(0x116),'getStarted':_0x558f55(0x1df)},'validation':{'apiKeyRequired':_0x558f55(0xd3),'apiKeyTooShort':_0x558f55(0xbe),'invalidConfig':_0x558f55(0x17e),'invalidApiKey':_0x558f55(0x1bc)},'connectionStatus':{'disconnected':_0x558f55(0x174),'connecting':_0x558f55(0x140),'connected':_0x558f55(0x190),'failed':_0x558f55(0x121),'retrying':_0x558f55(0x1a5)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x558f55(0xee),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x558f55(0x18f)}}};var fn=Object[_0x558f55(0x123)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x2ea4e5,_0xa55e8a,_0x9fc2fb)=>_0xa55e8a in _0x2ea4e5?fn(_0x2ea4e5,_0xa55e8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9fc2fb}):_0x2ea4e5[_0xa55e8a]=_0x9fc2fb,mn=(_0x558ea4,_0x220150,_0x2ff405,_0x15ca23)=>{for(var _0x10b4ae=_0x15ca23>0x1?void 0x0:_0x15ca23?hn(_0x220150,_0x2ff405):_0x220150,_0x4360e6=_0x558ea4['length']-0x1,_0xc79270;_0x4360e6>=0x0;_0x4360e6--)(_0xc79270=_0x558ea4[_0x4360e6])&&(_0x10b4ae=_0xc79270(_0x10b4ae)||_0x10b4ae);return _0x10b4ae;},P=(_0xa899ae,_0x50975f)=>(_0x2db398,_0x2f0dbe)=>_0x50975f(_0x2db398,_0x2f0dbe,_0xa899ae),_n=(_0x2922ff,_0x44b5e1,_0x4ebb8b)=>Cn(_0x2922ff,_0x44b5e1+'',_0x4ebb8b);let j=class extends _0x372ece{constructor(_0x314095=ie,_0x5d760e,_0x338059,_0x5e89da,_0x3d2272,_0x5546e8){const _0x51e15d=_0x558f55;super(),this[_0x51e15d(0xf7)]=_0x314095,this[_0x51e15d(0x154)]=_0x5d760e,this[_0x51e15d(0x1b1)]=_0x338059,this[_0x51e15d(0xcc)]=_0x5e89da,this[_0x51e15d(0x16b)]=_0x3d2272,this['_localeService']=_0x5546e8;const {..._0x2b7988}=_0x3b1109({},ie,this[_0x51e15d(0xf7)]);this['_configService'][_0x51e15d(0x10b)](y,_0x2b7988);}async['onStarting'](){const _0x191d56=_0x558f55,_0x3359e2=[[O],[I],[D]];this[_0x191d56(0x154)][_0x191d56(0xca)](_0x8a3f06)||_0x3359e2['push']([_0x8a3f06,{'useClass':_0x5b6021}]),_0x3359e2[_0x191d56(0x18e)](_0x1dc07c=>this['_injector'][_0x191d56(0xf4)](_0x1dc07c)),this[_0x191d56(0x154)][_0x191d56(0x173)](O),this[_0x191d56(0x154)][_0x191d56(0x173)](I),this[_0x191d56(0x154)][_0x191d56(0x173)](D);}};_n(j,_0x558f55(0x122),'MCP_UI_PLUGIN'),j=mn([_0x33f517(_0x385702),P(0x1,_0x3315f7(_0x435606)),P(0x2,_0x7da071),P(0x3,_0x5537a7),P(0x4,_0x12cbba),P(0x5,_0x3315f7(_0x273534))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x1c9f94=_0x5b2d;(function(_0x379aa9,_0x5de624){const _0x5f40a8=_0x5b2d,_0x55aff3=_0x379aa9();while(!![]){try{const _0x383247=-parseInt(_0x5f40a8(0x16f))/0x1+-parseInt(_0x5f40a8(0x15b))/0x2*(parseInt(_0x5f40a8(0x183))/0x3)+parseInt(_0x5f40a8(0x186))/0x4+-parseInt(_0x5f40a8(0x172))/0x5+-parseInt(_0x5f40a8(0x16c))/0x6+parseInt(_0x5f40a8(0x180))/0x7+parseInt(_0x5f40a8(0x18a))/0x8;if(_0x383247===_0x5de624)break;else _0x55aff3['push'](_0x55aff3['shift']());}catch(_0x3dba42){_0x55aff3['push'](_0x55aff3['shift']());}}}(_0x608b,0x81e15));function _0x608b(){const _0x37b5b0=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','6482119lsuwbF','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','436602tZCkBR','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','3282132ZDoHUE','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Max\x20Retries','16864120hmxeqM','Invalid\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.','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','Connecting...','MCP:\x20Session\x20ID\x20Occupied','Disconnected','14oGkBcf','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','API\x20Key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','4254462FCbAep','Session\x20ID','MCP\x20Connecting...','953359aSNesx','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','3207010NpevTZ','MCP\x20Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','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','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x608b=function(){return _0x37b5b0;};return _0x608b();}const e={'mcpStatus':{'disconnected':_0x1c9f94(0x182),'connecting':_0x1c9f94(0x16e),'connected':_0x1c9f94(0x165),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1c9f94(0x173),'unknown':_0x1c9f94(0x185),'unauthorized':_0x1c9f94(0x161),'sessionOccupied':_0x1c9f94(0x159),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1c9f94(0x181),'clickToConnect':_0x1c9f94(0x17e),'clickToConfigure':_0x1c9f94(0x163)},'mcpConfig':{'title':_0x1c9f94(0x167),'description':_0x1c9f94(0x174),'apiKey':_0x1c9f94(0x168),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1c9f94(0x175),'enableAuthHint':_0x1c9f94(0x15c),'connectionInfo':_0x1c9f94(0x177),'mcpClientConfig':_0x1c9f94(0x177),'configInstructions':_0x1c9f94(0x184),'configStepTitle':_0x1c9f94(0x17a),'configStep1':_0x1c9f94(0x17f),'configStep2':_0x1c9f94(0x170),'configStep3':_0x1c9f94(0x15f),'sessionId':_0x1c9f94(0x16d),'sessionIdDescription':_0x1c9f94(0x176),'authorizationDescription':_0x1c9f94(0x166),'configParameters':_0x1c9f94(0x156),'maxRetries':_0x1c9f94(0x189),'save':_0x1c9f94(0x15d),'saving':_0x1c9f94(0x16a),'note1':_0x1c9f94(0x16b),'note2':_0x1c9f94(0x17b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1c9f94(0x157),'apiApplyInfo':{'title':_0x1c9f94(0x187),'description':_0x1c9f94(0x18c),'univerAiLabel':_0x1c9f94(0x17d),'getStarted':_0x1c9f94(0x188)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1c9f94(0x164),'invalidConfig':_0x1c9f94(0x18b),'invalidApiKey':_0x1c9f94(0x160)},'connectionStatus':{'disconnected':_0x1c9f94(0x15a),'connecting':_0x1c9f94(0x158),'connected':_0x1c9f94(0x171),'failed':_0x1c9f94(0x17c),'retrying':_0x1c9f94(0x15e)},'connectionError':{'unauthorized':_0x1c9f94(0x162),'sessionOccupied':_0x1c9f94(0x178),'networkError':_0x1c9f94(0x179),'maxRetriesExceeded':_0x1c9f94(0x169)}}},n=e;function _0x5b2d(_0x90f697,_0x3bafdb){_0x90f697=_0x90f697-0x156;const _0x608b14=_0x608b();let _0x5b2d9e=_0x608b14[_0x90f697];return _0x5b2d9e;}export{n as default};
1
+ const _0x16c437=_0x24f5;(function(_0x4897f2,_0x59bc31){const _0xfa24a7=_0x24f5,_0xf8933=_0x4897f2();while(!![]){try{const _0x276880=parseInt(_0xfa24a7(0x1f3))/0x1+parseInt(_0xfa24a7(0x205))/0x2+parseInt(_0xfa24a7(0x20b))/0x3*(parseInt(_0xfa24a7(0x1ec))/0x4)+parseInt(_0xfa24a7(0x209))/0x5+parseInt(_0xfa24a7(0x1ed))/0x6+parseInt(_0xfa24a7(0x207))/0x7*(parseInt(_0xfa24a7(0x206))/0x8)+-parseInt(_0xfa24a7(0x20e))/0x9;if(_0x276880===_0x59bc31)break;else _0xf8933['push'](_0xf8933['shift']());}catch(_0x4fc3e6){_0xf8933['push'](_0xf8933['shift']());}}}(_0x4f87,0x2c5b3));function _0x4f87(){const _0x1ed50b=['MCP\x20Connecting...','9894519yGhfQN','What\x20is\x20API\x20Key?','Invalid\x20configuration','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','MCP\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10532qvHHwL','2146032TxUnYo','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Connecting...','198300EeJpBv','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Saving...','Retrying...','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','258326RLgtjN','24zhADzd','308203wXPYuH','Disconnected','950100yQbhos','MCP\x20Retrying...','312RDKjBM','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x4f87=function(){return _0x1ed50b;};return _0x4f87();}function _0x24f5(_0x4c62f6,_0x4f0e8b){_0x4c62f6=_0x4c62f6-0x1e5;const _0x4f877f=_0x4f87();let _0x24f507=_0x4f877f[_0x4c62f6];return _0x24f507;}const e={'mcpStatus':{'disconnected':_0x16c437(0x1e9),'connecting':_0x16c437(0x20d),'connected':_0x16c437(0x1f1),'failed':'MCP\x20Connection\x20Failed','retrying':_0x16c437(0x20a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x16c437(0x1e7),'sessionOccupied':_0x16c437(0x1ef),'networkError':_0x16c437(0x1e5),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x16c437(0x1f8),'clickToConfigure':_0x16c437(0x212)},'mcpConfig':{'title':_0x16c437(0x1ea),'description':_0x16c437(0x1f4),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x16c437(0x200),'apiKeyHint':_0x16c437(0x215),'enableAuth':_0x16c437(0x1ee),'enableAuthHint':_0x16c437(0x1fe),'connectionInfo':_0x16c437(0x1f5),'mcpClientConfig':_0x16c437(0x1f5),'configInstructions':_0x16c437(0x1e8),'configStepTitle':_0x16c437(0x211),'configStep1':_0x16c437(0x1f0),'configStep2':_0x16c437(0x203),'configStep3':_0x16c437(0x1e6),'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':_0x16c437(0x1f7),'configParameters':_0x16c437(0x1fb),'maxRetries':_0x16c437(0x1fd),'save':'Save\x20Configuration','saving':_0x16c437(0x1f9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x16c437(0x204),'configSaved':_0x16c437(0x1f6),'configError':_0x16c437(0x201),'apiApplyInfo':{'title':_0x16c437(0x20f),'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':_0x16c437(0x213),'getStarted':_0x16c437(0x20c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x16c437(0x1ff),'invalidConfig':_0x16c437(0x210),'invalidApiKey':_0x16c437(0x214)},'connectionStatus':{'disconnected':_0x16c437(0x208),'connecting':_0x16c437(0x1f2),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x16c437(0x1fa)},'connectionError':{'unauthorized':_0x16c437(0x1eb),'sessionOccupied':_0x16c437(0x202),'networkError':_0x16c437(0x1fc),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x3a220d=_0x2ed6;function _0x43e4(){const _0x9d16ac=['Invalid\x20configuration','419IwEnKp','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Network\x20Error','Max\x20Retries','Connecting...','Saving...','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','74104536uWuBDn','200hHtTGq','API\x20key\x20with\x20Bearer\x20prefix.','2036355qZeNPc','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','Session\x20ID','4019793koipsy','MCP\x20Connection\x20Failed','Disconnected','Configuration\x20saved\x20successfully','MCP\x20Connected','Enable\x20Authentication','9iJipFS','4NxpzxN','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','Connected','11OeduIF','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4050zUnFdL','Click\x20to\x20connect\x20MCP','392924uhwqTi','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','4999630rkPhwj','Univer\x20AI\x20Console','API\x20key\x20is\x20required','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','4577088QvhxMV'];_0x43e4=function(){return _0x9d16ac;};return _0x43e4();}function _0x2ed6(_0x161e88,_0xe9ac3f){_0x161e88=_0x161e88-0x119;const _0x43e4d8=_0x43e4();let _0x2ed64b=_0x43e4d8[_0x161e88];return _0x2ed64b;}(function(_0xdce58c,_0x3324e9){const _0x776d6f=_0x2ed6,_0x2e539a=_0xdce58c();while(!![]){try{const _0x745d7f=parseInt(_0x776d6f(0x125))/0x1*(-parseInt(_0x776d6f(0x147))/0x2)+parseInt(_0x776d6f(0x136))/0x3*(-parseInt(_0x776d6f(0x13d))/0x4)+-parseInt(_0x776d6f(0x131))/0x5+-parseInt(_0x776d6f(0x123))/0x6+-parseInt(_0x776d6f(0x149))/0x7*(parseInt(_0x776d6f(0x12f))/0x8)+-parseInt(_0x776d6f(0x13c))/0x9*(parseInt(_0x776d6f(0x11c))/0xa)+-parseInt(_0x776d6f(0x143))/0xb*(-parseInt(_0x776d6f(0x12e))/0xc);if(_0x745d7f===_0x3324e9)break;else _0x2e539a['push'](_0x2e539a['shift']());}catch(_0x20d911){_0x2e539a['push'](_0x2e539a['shift']());}}}(_0x43e4,0xdf0b6));const e={'mcpStatus':{'disconnected':_0x3a220d(0x126),'connecting':'MCP\x20Connecting...','connected':_0x3a220d(0x13a),'failed':_0x3a220d(0x137),'retrying':_0x3a220d(0x141),'unknown':_0x3a220d(0x144),'unauthorized':_0x3a220d(0x134),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3a220d(0x128),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3a220d(0x148),'clickToConfigure':_0x3a220d(0x11a)},'mcpConfig':{'title':_0x3a220d(0x121),'description':_0x3a220d(0x13f),'apiKey':_0x3a220d(0x14a),'apiKeyPlaceholder':_0x3a220d(0x145),'apiKeyHint':_0x3a220d(0x122),'enableAuth':_0x3a220d(0x13b),'enableAuthHint':_0x3a220d(0x14b),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3a220d(0x133),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3a220d(0x120),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3a220d(0x11b),'sessionId':_0x3a220d(0x135),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3a220d(0x130),'configParameters':_0x3a220d(0x119),'maxRetries':_0x3a220d(0x129),'save':'Save\x20Configuration','saving':_0x3a220d(0x12b),'note1':_0x3a220d(0x132),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3a220d(0x139),'configError':_0x3a220d(0x12c),'apiApplyInfo':{'title':_0x3a220d(0x12d),'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':_0x3a220d(0x11d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3a220d(0x11e),'apiKeyTooShort':_0x3a220d(0x11f),'invalidConfig':_0x3a220d(0x124),'invalidApiKey':_0x3a220d(0x146)},'connectionStatus':{'disconnected':_0x3a220d(0x138),'connecting':_0x3a220d(0x12a),'connected':_0x3a220d(0x142),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3a220d(0x127),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3a220d(0x13e),'maxRetriesExceeded':_0x3a220d(0x140)}}};export{e as default};
1
+ const _0x4564e0=_0xc967;function _0xc967(_0x4bf1aa,_0x2b6cf7){_0x4bf1aa=_0x4bf1aa-0x96;const _0x595c16=_0x595c();let _0xc967b9=_0x595c16[_0x4bf1aa];return _0xc967b9;}(function(_0x1830f3,_0x3c71bc){const _0x311e6d=_0xc967,_0x46d172=_0x1830f3();while(!![]){try{const _0x495f55=parseInt(_0x311e6d(0xc8))/0x1*(parseInt(_0x311e6d(0xc5))/0x2)+parseInt(_0x311e6d(0x9d))/0x3*(parseInt(_0x311e6d(0xaf))/0x4)+-parseInt(_0x311e6d(0xbc))/0x5*(parseInt(_0x311e6d(0xa7))/0x6)+parseInt(_0x311e6d(0xb0))/0x7*(-parseInt(_0x311e6d(0xa4))/0x8)+-parseInt(_0x311e6d(0xa9))/0x9+parseInt(_0x311e6d(0xbe))/0xa*(parseInt(_0x311e6d(0x98))/0xb)+-parseInt(_0x311e6d(0xba))/0xc;if(_0x495f55===_0x3c71bc)break;else _0x46d172['push'](_0x46d172['shift']());}catch(_0x397ec9){_0x46d172['push'](_0x46d172['shift']());}}}(_0x595c,0x95f2c));function _0x595c(){const _0x4f9295=['Connected','2sxtFVQ','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','1140863SgJEUj','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','MCP\x20Connecting...','33thTrpP','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Unknown\x20Status','6TUnltc','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connecting...','9128JYehwA','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','12cQYfES','Max\x20Retries','773406SDcTLD','Configuration\x20Parameters:','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Retrying...','Retrying...','1416588pEzJRX','4326xyNwDC','MCP\x20Configuration','Session\x20ID','Configuration\x20Steps:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','7979808qbBLaV','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1136485tdoNsD','Click\x20to\x20configure\x20MCP','2252270xRvtoq','Disconnected','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x595c=function(){return _0x4f9295;};return _0x595c();}const e={'mcpStatus':{'disconnected':_0x4564e0(0xb8),'connecting':_0x4564e0(0x97),'connected':_0x4564e0(0xa5),'failed':_0x4564e0(0xc7),'retrying':_0x4564e0(0xad),'unknown':_0x4564e0(0x9c),'unauthorized':_0x4564e0(0xc0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4564e0(0xc6),'maxRetriesExceeded':_0x4564e0(0x99),'clickToConnect':_0x4564e0(0x9e),'clickToConfigure':_0x4564e0(0xbd)},'mcpConfig':{'title':_0x4564e0(0xb1),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4564e0(0x96),'apiKeyPlaceholder':_0x4564e0(0x9a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4564e0(0xc1),'connectionInfo':_0x4564e0(0xb7),'mcpClientConfig':_0x4564e0(0xb7),'configInstructions':_0x4564e0(0xb9),'configStepTitle':_0x4564e0(0xb3),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4564e0(0x9b),'configStep3':_0x4564e0(0xc3),'sessionId':_0x4564e0(0xb2),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4564e0(0xa1),'configParameters':_0x4564e0(0xaa),'maxRetries':_0x4564e0(0xa8),'save':'Save\x20Configuration','saving':_0x4564e0(0xc2),'note1':_0x4564e0(0xc9),'note2':_0x4564e0(0xbb),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4564e0(0x9f),'apiApplyInfo':{'title':_0x4564e0(0xa0),'description':_0x4564e0(0xac),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4564e0(0xb6)},'validation':{'apiKeyRequired':_0x4564e0(0xab),'apiKeyTooShort':_0x4564e0(0xb4),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4564e0(0xbf),'connecting':_0x4564e0(0xa3),'connected':_0x4564e0(0xc4),'failed':'Connection\x20Failed','retrying':_0x4564e0(0xae)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4564e0(0xa2),'networkError':_0x4564e0(0xb5),'maxRetriesExceeded':_0x4564e0(0xa6)}}};export{e as default};
@@ -1 +1 @@
1
- function _0x43fd(_0x1a05a6,_0x479b22){_0x1a05a6=_0x1a05a6-0x1e2;const _0xecbd40=_0xecbd();let _0x43fd9b=_0xecbd40[_0x1a05a6];return _0x43fd9b;}const _0x115e86=_0x43fd;function _0xecbd(){const _0x5242c6=['Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','1260840QkrDaX','Session\x20ID','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','API\x20Key','Connected','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','279UHhzPO','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','13343058ZgDRZZ','6032028jcBvKg','Get\x20your\x20API\x20key\x20in\x20seconds','8246427EZhria','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connected','MCP:\x20Network\x20Error','3109684mIWzGE','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','2112800QbuVOI','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1154JoKvkE','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','8UakkAi','MCP\x20Unknown\x20Status','Retrying...','Saving...','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Steps:','What\x20is\x20API\x20Key?'];_0xecbd=function(){return _0x5242c6;};return _0xecbd();}(function(_0x483ec6,_0x39a7bf){const _0x44495b=_0x43fd,_0x4c5d86=_0x483ec6();while(!![]){try{const _0x22e735=parseInt(_0x44495b(0x1f6))/0x1*(-parseInt(_0x44495b(0x209))/0x2)+parseInt(_0x44495b(0x1ea))/0x3+-parseInt(_0x44495b(0x203))/0x4+parseInt(_0x44495b(0x207))/0x5+parseInt(_0x44495b(0x1fc))/0x6+parseInt(_0x44495b(0x1fe))/0x7+parseInt(_0x44495b(0x20b))/0x8*(-parseInt(_0x44495b(0x1fb))/0x9);if(_0x22e735===_0x39a7bf)break;else _0x4c5d86['push'](_0x4c5d86['shift']());}catch(_0x3aa1b9){_0x4c5d86['push'](_0x4c5d86['shift']());}}}(_0xecbd,0x93c59));const e={'mcpStatus':{'disconnected':_0x115e86(0x1ff),'connecting':'MCP\x20Connecting...','connected':_0x115e86(0x201),'failed':_0x115e86(0x204),'retrying':'MCP\x20Retrying...','unknown':_0x115e86(0x20c),'unauthorized':_0x115e86(0x1f2),'sessionOccupied':_0x115e86(0x1ed),'networkError':_0x115e86(0x202),'maxRetriesExceeded':_0x115e86(0x1f8),'clickToConnect':_0x115e86(0x1f3),'clickToConfigure':_0x115e86(0x1e9)},'mcpConfig':{'title':_0x115e86(0x1f9),'description':_0x115e86(0x200),'apiKey':_0x115e86(0x1f0),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x115e86(0x1f7),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x115e86(0x1e3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x115e86(0x1e6),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x115e86(0x208),'configStep3':_0x115e86(0x1e5),'sessionId':_0x115e86(0x1eb),'sessionIdDescription':_0x115e86(0x1f4),'authorizationDescription':_0x115e86(0x206),'configParameters':_0x115e86(0x205),'maxRetries':'Max\x20Retries','save':_0x115e86(0x1f5),'saving':_0x115e86(0x20e),'note1':_0x115e86(0x210),'note2':_0x115e86(0x1fa),'configSaved':_0x115e86(0x1e8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x115e86(0x1e7),'description':_0x115e86(0x1e2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x115e86(0x1fd)},'validation':{'apiKeyRequired':_0x115e86(0x1e4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x115e86(0x20a)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x115e86(0x1ef),'connected':_0x115e86(0x1f1),'failed':_0x115e86(0x20f),'retrying':_0x115e86(0x20d)},'connectionError':{'unauthorized':_0x115e86(0x1ec),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x115e86(0x1ee),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ function _0x5462(_0x86b1a7,_0x1e7b59){_0x86b1a7=_0x86b1a7-0x13a;const _0x38881f=_0x3888();let _0x546234=_0x38881f[_0x86b1a7];return _0x546234;}const _0x48da04=_0x5462;function _0x3888(){const _0xda69a4=['MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','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...','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','130dHRnEb','140696XCoWaB','API\x20Key','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','204906XMLkjc','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','81214mvePaR','MCP\x20Connection\x20Failed','55ssgcwQ','Configuration\x20Steps:','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','Failed\x20to\x20save\x20configuration','Disconnected','Save\x20Configuration','MCP:\x20Unauthorized','336WOlmmh','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Connecting...','2194omBRlf','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connected','MCP\x20Connecting...','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Univer\x20AI\x20Console','9519554dbCMtE','Session\x20ID','60IRaBKU','392499eqDube','Enable\x20Authentication','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1493984cJgDEF'];_0x3888=function(){return _0xda69a4;};return _0x3888();}(function(_0x1d1457,_0x44b40b){const _0x4749b3=_0x5462,_0x36653d=_0x1d1457();while(!![]){try{const _0x234436=-parseInt(_0x4749b3(0x14a))/0x1*(parseInt(_0x4749b3(0x140))/0x2)+parseInt(_0x4749b3(0x164))/0x3+-parseInt(_0x4749b3(0x160))/0x4*(-parseInt(_0x4749b3(0x16c))/0x5)+parseInt(_0x4749b3(0x154))/0x6*(parseInt(_0x4749b3(0x16a))/0x7)+-parseInt(_0x4749b3(0x158))/0x8+parseInt(_0x4749b3(0x155))/0x9*(-parseInt(_0x4749b3(0x15f))/0xa)+parseInt(_0x4749b3(0x152))/0xb;if(_0x234436===_0x44b40b)break;else _0x36653d['push'](_0x36653d['shift']());}catch(_0x461e42){_0x36653d['push'](_0x36653d['shift']());}}}(_0x3888,0x4cbff));const e={'mcpStatus':{'disconnected':_0x48da04(0x150),'connecting':_0x48da04(0x14e),'connected':_0x48da04(0x14d),'failed':_0x48da04(0x16b),'retrying':_0x48da04(0x143),'unknown':_0x48da04(0x15e),'unauthorized':_0x48da04(0x13f),'sessionOccupied':_0x48da04(0x15a),'networkError':_0x48da04(0x16e),'maxRetriesExceeded':_0x48da04(0x159),'clickToConnect':_0x48da04(0x146),'clickToConfigure':_0x48da04(0x165)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x48da04(0x161),'apiKeyPlaceholder':_0x48da04(0x15d),'apiKeyHint':_0x48da04(0x14c),'enableAuth':_0x48da04(0x156),'enableAuthHint':_0x48da04(0x147),'connectionInfo':_0x48da04(0x148),'mcpClientConfig':_0x48da04(0x148),'configInstructions':_0x48da04(0x145),'configStepTitle':_0x48da04(0x16d),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x48da04(0x13a),'configStep3':_0x48da04(0x157),'sessionId':_0x48da04(0x153),'sessionIdDescription':_0x48da04(0x14b),'authorizationDescription':_0x48da04(0x141),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x48da04(0x142),'save':_0x48da04(0x13e),'saving':_0x48da04(0x15c),'note1':_0x48da04(0x144),'note2':_0x48da04(0x167),'configSaved':_0x48da04(0x169),'configError':_0x48da04(0x13c),'apiApplyInfo':{'title':_0x48da04(0x14f),'description':_0x48da04(0x15b),'univerAiLabel':_0x48da04(0x151),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x48da04(0x166)},'connectionStatus':{'disconnected':_0x48da04(0x13d),'connecting':_0x48da04(0x149),'connected':'Connected','failed':_0x48da04(0x13b),'retrying':_0x48da04(0x162)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x48da04(0x168),'networkError':_0x48da04(0x163),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x363e(_0x58d5de,_0x46d017){_0x58d5de=_0x58d5de-0x19c;const _0x2d77dc=_0x2d77();let _0x363ead=_0x2d77dc[_0x58d5de];return _0x363ead;}const _0x2f4e6b=_0x363e;(function(_0xd58114,_0x2ac31f){const _0x5d8fb7=_0x363e,_0x173615=_0xd58114();while(!![]){try{const _0x147078=parseInt(_0x5d8fb7(0x1c0))/0x1+parseInt(_0x5d8fb7(0x1a4))/0x2*(parseInt(_0x5d8fb7(0x1af))/0x3)+parseInt(_0x5d8fb7(0x1a3))/0x4*(-parseInt(_0x5d8fb7(0x1b3))/0x5)+-parseInt(_0x5d8fb7(0x1b2))/0x6*(-parseInt(_0x5d8fb7(0x1bd))/0x7)+-parseInt(_0x5d8fb7(0x19e))/0x8+parseInt(_0x5d8fb7(0x1b5))/0x9*(parseInt(_0x5d8fb7(0x1ab))/0xa)+parseInt(_0x5d8fb7(0x1b4))/0xb;if(_0x147078===_0x2ac31f)break;else _0x173615['push'](_0x173615['shift']());}catch(_0x221d6e){_0x173615['push'](_0x173615['shift']());}}}(_0x2d77,0x6cc2d));const e={'mcpStatus':{'disconnected':_0x2f4e6b(0x1a6),'connecting':_0x2f4e6b(0x1a7),'connected':_0x2f4e6b(0x1b1),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2f4e6b(0x1a5),'unknown':_0x2f4e6b(0x1aa),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2f4e6b(0x1b7),'networkError':_0x2f4e6b(0x1a9),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2f4e6b(0x1c3),'description':_0x2f4e6b(0x1c4),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2f4e6b(0x1a1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2f4e6b(0x1bb),'enableAuthHint':_0x2f4e6b(0x19f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2f4e6b(0x1ac),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2f4e6b(0x1c1),'configStep3':_0x2f4e6b(0x1ba),'sessionId':_0x2f4e6b(0x1a0),'sessionIdDescription':_0x2f4e6b(0x1bf),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x2f4e6b(0x1bc),'note1':_0x2f4e6b(0x1a2),'note2':_0x2f4e6b(0x1a8),'configSaved':_0x2f4e6b(0x1b6),'configError':_0x2f4e6b(0x19c),'apiApplyInfo':{'title':_0x2f4e6b(0x1be),'description':_0x2f4e6b(0x19d),'univerAiLabel':_0x2f4e6b(0x1b0),'getStarted':_0x2f4e6b(0x1b9)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2f4e6b(0x1ae),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2f4e6b(0x1ad),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2f4e6b(0x1c2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2f4e6b(0x1b8)}}},n=e;export{n as default};function _0x2d77(){const _0x47b86b=['6IuZBzN','MCP\x20Retrying...','MCP\x20Disconnected','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','533530kzmzop','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','151251UTEBMq','Univer\x20AI\x20Console','MCP\x20Connected','570ecgaLK','30gvGlGM','5575537HawGIH','9VXeEPM','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Saving...','3710pPuWkN','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.','660117dsnGCr','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\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.','4599320kCqgKT','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','267692rkPAqx'];_0x2d77=function(){return _0x47b86b;};return _0x2d77();}
1
+ const _0x5cbfc3=_0xbed6;(function(_0x12f1ec,_0x56f17b){const _0x41cb80=_0xbed6,_0x27beec=_0x12f1ec();while(!![]){try{const _0x5c2fa9=-parseInt(_0x41cb80(0x92))/0x1*(parseInt(_0x41cb80(0xa9))/0x2)+-parseInt(_0x41cb80(0x82))/0x3*(parseInt(_0x41cb80(0x97))/0x4)+-parseInt(_0x41cb80(0x98))/0x5*(parseInt(_0x41cb80(0x8f))/0x6)+-parseInt(_0x41cb80(0x85))/0x7*(parseInt(_0x41cb80(0x8b))/0x8)+-parseInt(_0x41cb80(0x9e))/0x9+parseInt(_0x41cb80(0x8a))/0xa*(parseInt(_0x41cb80(0x9f))/0xb)+parseInt(_0x41cb80(0x95))/0xc;if(_0x5c2fa9===_0x56f17b)break;else _0x27beec['push'](_0x27beec['shift']());}catch(_0x19b7cd){_0x27beec['push'](_0x27beec['shift']());}}}(_0x41dd,0xa674d));function _0xbed6(_0x2c2d76,_0x3eea5d){_0x2c2d76=_0x2c2d76-0x80;const _0x41dd8d=_0x41dd();let _0xbed65b=_0x41dd8d[_0x2c2d76];return _0xbed65b;}const e={'mcpStatus':{'disconnected':_0x5cbfc3(0xa4),'connecting':'MCP\x20Connecting...','connected':_0x5cbfc3(0xad),'failed':_0x5cbfc3(0x9c),'retrying':'MCP\x20Retrying...','unknown':_0x5cbfc3(0xae),'unauthorized':_0x5cbfc3(0x93),'sessionOccupied':_0x5cbfc3(0x89),'networkError':_0x5cbfc3(0xa6),'maxRetriesExceeded':_0x5cbfc3(0xb2),'clickToConnect':_0x5cbfc3(0xab),'clickToConfigure':_0x5cbfc3(0xa7)},'mcpConfig':{'title':_0x5cbfc3(0x88),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5cbfc3(0x83),'apiKeyPlaceholder':_0x5cbfc3(0x84),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5cbfc3(0xa5),'enableAuthHint':_0x5cbfc3(0x94),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5cbfc3(0xaa),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5cbfc3(0xa3),'configStep3':_0x5cbfc3(0x9b),'sessionId':_0x5cbfc3(0xb1),'sessionIdDescription':_0x5cbfc3(0x81),'authorizationDescription':_0x5cbfc3(0x9a),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x5cbfc3(0xb0),'saving':_0x5cbfc3(0x87),'note1':_0x5cbfc3(0x90),'note2':_0x5cbfc3(0xa2),'configSaved':_0x5cbfc3(0x91),'configError':_0x5cbfc3(0x86),'apiApplyInfo':{'title':_0x5cbfc3(0xa1),'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':_0x5cbfc3(0xaf),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5cbfc3(0x8d),'apiKeyTooShort':_0x5cbfc3(0x8e),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5cbfc3(0xa0)},'connectionStatus':{'disconnected':_0x5cbfc3(0xa8),'connecting':_0x5cbfc3(0x9d),'connected':_0x5cbfc3(0xac),'failed':'Connection\x20Failed','retrying':_0x5cbfc3(0x80)},'connectionError':{'unauthorized':_0x5cbfc3(0x96),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5cbfc3(0x99),'maxRetriesExceeded':_0x5cbfc3(0x8c)}}},n=e;function _0x41dd(){const _0x53c57f=['Connecting...','8051733etSDPw','4691621DTfRtm','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Disconnected','Enable\x20Authentication','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','Disconnected','556kJzKkH','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20connect\x20MCP','Connected','MCP\x20Connected','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Save\x20Configuration','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1253979FnIMaE','API\x20Key','Enter\x20your\x20API\x20key','847406HDGJmT','Failed\x20to\x20save\x20configuration','Saving...','MCP\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','20NgKcWZ','40ybeGYi','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','7983906feyFoN','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','4817uFPmHy','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','52997760vqXUYC','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','4bROYSE','5qldOqc','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed'];_0x41dd=function(){return _0x53c57f;};return _0x41dd();}export{n as default};
@@ -1 +1 @@
1
- function _0x5349(){const _0x4e6ead=['MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','15559710mOHlsC','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','6OXHmtz','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connecting...','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','54Smyfcl','Session\x20ID','7827323yqwFIL','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Unauthorized','Saving...','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','15upqHim','6ahurDR','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','8531795fOtpBK','162936lSkipS','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connection\x20Failed','970924pdYAvX','37500xLDBcD','412481kuDIBu','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','MCP\x20Unknown\x20Status','Invalid\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.','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','3256WzVOFr'];_0x5349=function(){return _0x4e6ead;};return _0x5349();}const _0x1b6540=_0x1be2;(function(_0x358f38,_0x1db86f){const _0x19192d=_0x1be2,_0x114615=_0x358f38();while(!![]){try{const _0x11b2dd=parseInt(_0x19192d(0xfd))/0x1*(-parseInt(_0x19192d(0x10f))/0x2)+parseInt(_0x19192d(0xf0))/0x3*(-parseInt(_0x19192d(0xfb))/0x4)+parseInt(_0x19192d(0xf6))/0x5+-parseInt(_0x19192d(0xf1))/0x6*(-parseInt(_0x19192d(0x116))/0x7)+parseInt(_0x19192d(0xf7))/0x8*(-parseInt(_0x19192d(0x114))/0x9)+parseInt(_0x19192d(0x10a))/0xa+parseInt(_0x19192d(0x107))/0xb*(-parseInt(_0x19192d(0xfc))/0xc);if(_0x11b2dd===_0x1db86f)break;else _0x114615['push'](_0x114615['shift']());}catch(_0x385501){_0x114615['push'](_0x114615['shift']());}}}(_0x5349,0xd762b));function _0x1be2(_0xbc7e1b,_0x2553f9){_0xbc7e1b=_0xbc7e1b-0xee;const _0x534922=_0x5349();let _0x1be288=_0x534922[_0xbc7e1b];return _0x1be288;}const e={'mcpStatus':{'disconnected':_0x1b6540(0x10e),'connecting':_0x1b6540(0xf3),'connected':'MCP\x20Connected','failed':_0x1b6540(0xfa),'retrying':_0x1b6540(0x109),'unknown':_0x1b6540(0x100),'unauthorized':_0x1b6540(0x118),'sessionOccupied':_0x1b6540(0x105),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1b6540(0x108),'clickToConnect':_0x1b6540(0xef),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1b6540(0x113),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x1b6540(0x11a),'apiKeyHint':_0x1b6540(0x110),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1b6540(0x11d),'connectionInfo':_0x1b6540(0x104),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1b6540(0x117),'configStep3':_0x1b6540(0xf4),'sessionId':_0x1b6540(0x115),'sessionIdDescription':_0x1b6540(0xfe),'authorizationDescription':_0x1b6540(0xf9),'configParameters':_0x1b6540(0x103),'maxRetries':'Max\x20Retries','save':_0x1b6540(0xf8),'saving':_0x1b6540(0x119),'note1':_0x1b6540(0x106),'note2':_0x1b6540(0x11c),'configSaved':_0x1b6540(0x112),'configError':_0x1b6540(0xf2),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1b6540(0x102),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1b6540(0x10c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1b6540(0x10d),'invalidConfig':_0x1b6540(0x101),'invalidApiKey':_0x1b6540(0x11b)},'connectionStatus':{'disconnected':_0x1b6540(0xff),'connecting':_0x1b6540(0x111),'connected':_0x1b6540(0xf5),'failed':'Connection\x20Failed','retrying':_0x1b6540(0x10b)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1b6540(0xee)}}},n=e;export{n as default};
1
+ function _0x3161(){const _0x67b01d=['MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','MCP:\x20Network\x20Error','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','443628XguifJ','API\x20key\x20is\x20required','16239CCWuqZ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','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','1949816ZouxGG','217068edeaTX','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Session\x20ID','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1932195kdjAun','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','MCP\x20Connection\x20Failed','MCP\x20Connecting...','166jUxEHY','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','MCP\x20Retrying...','Saving...','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','8Zwfkex','1826892kfqeLQ','Connecting...','Save\x20Configuration','Connection\x20Failed','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','1492967mLTzjr','Retrying...','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','Invalid\x20configuration','What\x20is\x20API\x20Key?'];_0x3161=function(){return _0x67b01d;};return _0x3161();}const _0x3c24db=_0x34f5;(function(_0x1739f2,_0x3d80b5){const _0xfb2e86=_0x34f5,_0x24dc90=_0x1739f2();while(!![]){try{const _0x58fccf=parseInt(_0xfb2e86(0x17e))/0x1+parseInt(_0xfb2e86(0x159))/0x2*(parseInt(_0xfb2e86(0x178))/0x3)+parseInt(_0xfb2e86(0x17d))/0x4+-parseInt(_0xfb2e86(0x186))/0x5+-parseInt(_0xfb2e86(0x161))/0x6+parseInt(_0xfb2e86(0x167))/0x7*(-parseInt(_0xfb2e86(0x160))/0x8)+parseInt(_0xfb2e86(0x176))/0x9;if(_0x58fccf===_0x3d80b5)break;else _0x24dc90['push'](_0x24dc90['shift']());}catch(_0x4cf78d){_0x24dc90['push'](_0x24dc90['shift']());}}}(_0x3161,0x48f8b));function _0x34f5(_0x50ae53,_0x5a1adc){_0x50ae53=_0x50ae53-0x155;const _0x3161dc=_0x3161();let _0x34f5ff=_0x3161dc[_0x50ae53];return _0x34f5ff;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3c24db(0x158),'connected':_0x3c24db(0x17a),'failed':_0x3c24db(0x157),'retrying':_0x3c24db(0x15c),'unknown':_0x3c24db(0x16c),'unauthorized':_0x3c24db(0x16a),'sessionOccupied':_0x3c24db(0x169),'networkError':_0x3c24db(0x173),'maxRetriesExceeded':_0x3c24db(0x170),'clickToConnect':_0x3c24db(0x171),'clickToConfigure':_0x3c24db(0x181)},'mcpConfig':{'title':_0x3c24db(0x183),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3c24db(0x17c),'enableAuth':_0x3c24db(0x172),'enableAuthHint':_0x3c24db(0x16b),'connectionInfo':_0x3c24db(0x16f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x3c24db(0x155),'configStep2':_0x3c24db(0x17f),'configStep3':_0x3c24db(0x182),'sessionId':_0x3c24db(0x184),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3c24db(0x166),'configParameters':_0x3c24db(0x156),'maxRetries':_0x3c24db(0x15b),'save':_0x3c24db(0x163),'saving':_0x3c24db(0x15d),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3c24db(0x179),'configSaved':_0x3c24db(0x165),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3c24db(0x16e),'description':_0x3c24db(0x17b),'univerAiLabel':_0x3c24db(0x180),'getStarted':_0x3c24db(0x15f)},'validation':{'apiKeyRequired':_0x3c24db(0x177),'apiKeyTooShort':_0x3c24db(0x185),'invalidConfig':_0x3c24db(0x16d),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3c24db(0x15e),'connecting':_0x3c24db(0x162),'connected':_0x3c24db(0x174),'failed':_0x3c24db(0x164),'retrying':_0x3c24db(0x168)},'connectionError':{'unauthorized':_0x3c24db(0x15a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3c24db(0x175)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x268e2e=_0x45a2;function _0x45a2(_0x4d1a2d,_0x158e72){_0x4d1a2d=_0x4d1a2d-0xed;const _0x2b1e0a=_0x2b1e();let _0x45a27e=_0x2b1e0a[_0x4d1a2d];return _0x45a27e;}(function(_0x37b902,_0x54d51c){const _0x3b36f6=_0x45a2,_0x47c358=_0x37b902();while(!![]){try{const _0x566b3e=-parseInt(_0x3b36f6(0xff))/0x1+-parseInt(_0x3b36f6(0x105))/0x2*(parseInt(_0x3b36f6(0xef))/0x3)+-parseInt(_0x3b36f6(0x106))/0x4*(parseInt(_0x3b36f6(0x10f))/0x5)+parseInt(_0x3b36f6(0x102))/0x6+-parseInt(_0x3b36f6(0xfe))/0x7+-parseInt(_0x3b36f6(0xf0))/0x8+-parseInt(_0x3b36f6(0x10e))/0x9*(-parseInt(_0x3b36f6(0xf8))/0xa);if(_0x566b3e===_0x54d51c)break;else _0x47c358['push'](_0x47c358['shift']());}catch(_0x1e3a32){_0x47c358['push'](_0x47c358['shift']());}}}(_0x2b1e,0x4304a));function _0x2b1e(){const _0x5b1218=['MCPクライアント設定','6szAWTc','52viSvUW','接続済み','認証を有効にする','APIキーとは?','無効なAPIキーです。キーが正しいか確認してください','MCP\x20未接続','MCPクライアントの設定に次の設定を追加してください:','MCP:\x20認証されていません','54sgAPwg','5385anabjw','設定の変更は直ちに有効になります','MCP:\x20ネットワークエラー','MCP\x20接続済み','MCP:\x20最大再試行回数を超過','MCP\x20不明な状態','MCPクライアントの設定ファイルに設定を追加','MCP\x20接続失敗','未接続','認証に失敗しました。APIキーを確認してください','再試行中...','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','最大再試行回数を超過しました。後でもう一度お試しください','最大再試行回数','以下のJSON設定をコピー','クリックしてMCPを設定','Univer\x20AIコンソール','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーは10文字以上である必要があります','APIキーは必須です','2484OVLXIn','3866712vwgUdO','セッションIDが現在使用中です。後でもう一度お試しください','セキュアな接続のために認証を有効にする','接続中...','APIキーを入力してください','MCP\x20再試行中...','無効な設定','設定が正常に保存されました','2027660GBviwY','APIキーはローカルストレージに安全に保存されます','MCPクライアントを再起動して設定を適用','セッションID','APIキー','設定を保存','3533061WvyjaL','325999fyxSJt','数秒でAPIキーを取得','MCP\x20接続中...','2330736VSAeQO','保存中...'];_0x2b1e=function(){return _0x5b1218;};return _0x2b1e();}const e={'mcpStatus':{'disconnected':_0x268e2e(0x10b),'connecting':_0x268e2e(0x101),'connected':_0x268e2e(0x112),'failed':_0x268e2e(0x116),'retrying':_0x268e2e(0xf5),'unknown':_0x268e2e(0x114),'unauthorized':_0x268e2e(0x10d),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x268e2e(0x111),'maxRetriesExceeded':_0x268e2e(0x113),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x268e2e(0x11e)},'mcpConfig':{'title':'MCP設定','description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x268e2e(0xfc),'apiKeyPlaceholder':_0x268e2e(0xf4),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x268e2e(0x108),'enableAuthHint':_0x268e2e(0xf2),'connectionInfo':_0x268e2e(0x104),'mcpClientConfig':_0x268e2e(0x104),'configInstructions':_0x268e2e(0x10c),'configStepTitle':'設定手順:','configStep1':_0x268e2e(0x11d),'configStep2':_0x268e2e(0x115),'configStep3':_0x268e2e(0xfa),'sessionId':_0x268e2e(0xfb),'sessionIdDescription':_0x268e2e(0x11a),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':'設定パラメータ:','maxRetries':_0x268e2e(0x11c),'save':_0x268e2e(0xfd),'saving':_0x268e2e(0x103),'note1':_0x268e2e(0x110),'note2':_0x268e2e(0xf9),'configSaved':_0x268e2e(0xf7),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x268e2e(0x109),'description':_0x268e2e(0x120),'univerAiLabel':_0x268e2e(0x11f),'getStarted':_0x268e2e(0x100)},'validation':{'apiKeyRequired':_0x268e2e(0xee),'apiKeyTooShort':_0x268e2e(0xed),'invalidConfig':_0x268e2e(0xf6),'invalidApiKey':_0x268e2e(0x10a)},'connectionStatus':{'disconnected':_0x268e2e(0x117),'connecting':_0x268e2e(0xf3),'connected':_0x268e2e(0x107),'failed':'接続失敗','retrying':_0x268e2e(0x119)},'connectionError':{'unauthorized':_0x268e2e(0x118),'sessionOccupied':_0x268e2e(0xf1),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x268e2e(0x11b)}}};export{e as default};
1
+ function _0x540d(){const _0x3a43df=['MCP:\x20セッションIDが使用中','接続済み','1318869QNpSgb','APIキーを入力してください','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','88341IRGYCq','MCPクライアント設定','368800RIshyx','MCP\x20未接続','1124515IDUHMS','MCPクライアントの設定ファイルに設定を追加','MCP設定','設定の変更は直ちに有効になります','APIキーはこのブラウザのローカルに保存されます','21266530nsIfLC','認証に失敗しました。APIキーを確認してください','設定を保存','MCP:\x20認証されていません','MCP\x20再試行中...','セッションID','APIキーはローカルストレージに安全に保存されます','保存中...','接続中...','接続失敗','認証を有効にする','799684slDLqV','48KmfZDe','無効な設定','無効なAPIキーです。キーが正しいか確認してください','クリックしてMCPを設定','以下のJSON設定をコピー','MCPを設定してAIでスプレッドシートを操作','1wFULAH','MCP:\x20最大再試行回数を超過','ネットワーク接続エラー。インターネット接続を確認してください','クリックしてMCPに接続','63fBlzZe','設定パラメータ:','設定手順:','MCP\x20不明な状態','セッションIDが現在使用中です。後でもう一度お試しください','APIキー','MCP\x20接続失敗','3343128DCvskD','最大再試行回数を超過しました。後でもう一度お試しください','APIキーは10文字以上である必要があります','未接続','設定の保存に失敗しました'];_0x540d=function(){return _0x3a43df;};return _0x540d();}function _0x202b(_0x512c06,_0x3f7a55){_0x512c06=_0x512c06-0x9a;const _0x540d2f=_0x540d();let _0x202ba7=_0x540d2f[_0x512c06];return _0x202ba7;}const _0x1238df=_0x202b;(function(_0xdd095d,_0x12909b){const _0x2cedb4=_0x202b,_0x465e04=_0xdd095d();while(!![]){try{const _0x52cf81=-parseInt(_0x2cedb4(0xab))/0x1*(parseInt(_0x2cedb4(0xa4))/0x2)+parseInt(_0x2cedb4(0xc0))/0x3*(-parseInt(_0x2cedb4(0xa5))/0x4)+-parseInt(_0x2cedb4(0xc4))/0x5+-parseInt(_0x2cedb4(0xb6))/0x6+parseInt(_0x2cedb4(0xaf))/0x7*(-parseInt(_0x2cedb4(0xc2))/0x8)+parseInt(_0x2cedb4(0xbd))/0x9+parseInt(_0x2cedb4(0xc9))/0xa;if(_0x52cf81===_0x12909b)break;else _0x465e04['push'](_0x465e04['shift']());}catch(_0x23a418){_0x465e04['push'](_0x465e04['shift']());}}}(_0x540d,0x4edb5));const e={'mcpStatus':{'disconnected':_0x1238df(0xc3),'connecting':'MCP\x20接続中...','connected':'MCP\x20接続済み','failed':_0x1238df(0xb5),'retrying':_0x1238df(0x9d),'unknown':_0x1238df(0xb2),'unauthorized':_0x1238df(0x9c),'sessionOccupied':_0x1238df(0xbb),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x1238df(0xac),'clickToConnect':_0x1238df(0xae),'clickToConfigure':_0x1238df(0xa8)},'mcpConfig':{'title':_0x1238df(0xc6),'description':_0x1238df(0xaa),'apiKey':_0x1238df(0xb4),'apiKeyPlaceholder':_0x1238df(0xbe),'apiKeyHint':_0x1238df(0xc8),'enableAuth':_0x1238df(0xa3),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x1238df(0xc1),'mcpClientConfig':_0x1238df(0xc1),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':_0x1238df(0xb1),'configStep1':_0x1238df(0xa9),'configStep2':_0x1238df(0xc5),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x1238df(0x9e),'sessionIdDescription':_0x1238df(0xbf),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x1238df(0xb0),'maxRetries':'最大再試行回数','save':_0x1238df(0x9b),'saving':_0x1238df(0xa0),'note1':_0x1238df(0xc7),'note2':_0x1238df(0x9f),'configSaved':'設定が正常に保存されました','configError':_0x1238df(0xba),'apiApplyInfo':{'title':'APIキーとは?','description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':'Univer\x20AIコンソール','getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0x1238df(0xb8),'invalidConfig':_0x1238df(0xa6),'invalidApiKey':_0x1238df(0xa7)},'connectionStatus':{'disconnected':_0x1238df(0xb9),'connecting':_0x1238df(0xa1),'connected':_0x1238df(0xbc),'failed':_0x1238df(0xa2),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x1238df(0x9a),'sessionOccupied':_0x1238df(0xb3),'networkError':_0x1238df(0xad),'maxRetriesExceeded':_0x1238df(0xb7)}}};export{e as default};