@univerjs-pro/mcp-ui 0.15.0 → 0.15.1-insiders.20260117-8ce4a01

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 +10 -10
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x496b07=_0x52aa;(function(_0x5d938d,_0x4d5033){const _0x16445d=_0x52aa,_0x1c0d87=_0x5d938d();while(!![]){try{const _0x3b9a39=-parseInt(_0x16445d(0x133))/0x1*(-parseInt(_0x16445d(0xe6))/0x2)+-parseInt(_0x16445d(0x1cd))/0x3*(parseInt(_0x16445d(0x181))/0x4)+-parseInt(_0x16445d(0x1f9))/0x5+parseInt(_0x16445d(0x177))/0x6*(parseInt(_0x16445d(0x17e))/0x7)+parseInt(_0x16445d(0x1c0))/0x8+-parseInt(_0x16445d(0x1d9))/0x9*(-parseInt(_0x16445d(0x118))/0xa)+parseInt(_0x16445d(0x1f8))/0xb*(-parseInt(_0x16445d(0xfa))/0xc);if(_0x3b9a39===_0x4d5033)break;else _0x1c0d87['push'](_0x1c0d87['shift']());}catch(_0x42616b){_0x1c0d87['push'](_0x1c0d87['shift']());}}}(_0x4a73,0x668a0));function _0x52aa(_0x1fd47c,_0x2634f5){_0x1fd47c=_0x1fd47c-0xd8;const _0x4a7353=_0x4a73();let _0x52aa0c=_0x4a7353[_0x1fd47c];return _0x52aa0c;}var ae=Object[_0x496b07(0x19d)],le=(_0x34362d,_0x420c4d,_0x1b3ca5)=>_0x420c4d in _0x34362d?ae(_0x34362d,_0x420c4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b3ca5}):_0x34362d[_0x420c4d]=_0x1b3ca5,I=(_0x19b6fc,_0x50e1fa,_0x531b97)=>le(_0x19b6fc,typeof _0x50e1fa!='symbol'?_0x50e1fa+'':_0x50e1fa,_0x531b97);Object[_0x496b07(0x19d)](exports,Symbol[_0x496b07(0x260)],{'value':_0x496b07(0x196)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x1a7212,..._0x3e3283}){const _0x1da69c=_0x496b07,{icon:_0x40501d,id:_0xde545b,className:_0x2a1b27,extend:_0x17ee03,..._0xb17b4f}=_0x3e3283,_0x4e4378=(_0x1da69c(0x14a)+_0xde545b+'\x20'+(_0x2a1b27||''))[_0x1da69c(0x1e0)](),_0x15a088=d[_0x1da69c(0x146)]('_'+de());return G(_0x40501d,''+_0xde545b,{'defIds':_0x40501d[_0x1da69c(0x1ff)],'idSuffix':_0x15a088[_0x1da69c(0x232)]},{'ref':_0x1a7212,'className':_0x4e4378,..._0xb17b4f},_0x17ee03);}function G(_0xc2d67d,_0x3f2bde,_0x19ee7c,_0xc5b51f,_0x661d19){const _0x491958=_0x496b07;return d[_0x491958(0x1f5)](_0xc2d67d[_0x491958(0x209)],{'key':_0x3f2bde,...ue(_0xc2d67d,_0x19ee7c,_0x661d19),..._0xc5b51f},(ve(_0xc2d67d,_0x19ee7c)[_0x491958(0x15f)]||[])[_0x491958(0x132)]((_0x399303,_0x360498)=>G(_0x399303,_0x3f2bde+'-'+_0xc2d67d[_0x491958(0x209)]+'-'+_0x360498,_0x19ee7c,void 0x0,_0x661d19)));}function ue(_0x298bc4,_0xf29aa6,_0x19d904){const _0x1d03e7=_0x496b07,_0x59cb57={..._0x298bc4[_0x1d03e7(0x235)]};_0x19d904!=null&&_0x19d904[_0x1d03e7(0x101)]&&_0x59cb57[_0x1d03e7(0x1f6)]===_0x1d03e7(0x101)&&(_0x59cb57[_0x1d03e7(0x1f6)]=_0x19d904['colorChannel1']),_0x298bc4[_0x1d03e7(0x209)]===_0x1d03e7(0x23d)&&_0x59cb57['id']&&(_0x59cb57['id']=_0x59cb57['id']+_0xf29aa6[_0x1d03e7(0x215)]),Object['entries'](_0x59cb57)['forEach'](([_0x38149f,_0x472d3d])=>{const _0x9774a1=_0x1d03e7;_0x38149f==='mask'&&typeof _0x472d3d==_0x9774a1(0x164)&&(_0x59cb57[_0x38149f]=_0x472d3d[_0x9774a1(0x12a)](/url\(#(.*)\)/,_0x9774a1(0x185)+_0xf29aa6[_0x9774a1(0x215)]+')'));});const {defIds:_0x103293}=_0xf29aa6;return!_0x103293||_0x103293['length']===0x0||(_0x298bc4[_0x1d03e7(0x209)]===_0x1d03e7(0x212)&&_0x59cb57[_0x1d03e7(0x161)]&&(_0x59cb57['xlink:href']=_0x59cb57[_0x1d03e7(0x161)]+_0xf29aa6[_0x1d03e7(0x215)]),Object['entries'](_0x59cb57)['forEach'](([_0x2f5b60,_0x260333])=>{const _0x569ed7=_0x1d03e7;typeof _0x260333==_0x569ed7(0x164)&&(_0x59cb57[_0x2f5b60]=_0x260333[_0x569ed7(0x12a)](/url\(#(.*)\)/,_0x569ed7(0x185)+_0xf29aa6[_0x569ed7(0x215)]+')'));})),_0x59cb57;}function ve(_0x1e595a,_0x563182){const _0x3d7379=_0x496b07;var _0x26c5a1;const {defIds:_0x58c278}=_0x563182;return!_0x58c278||_0x58c278[_0x3d7379(0x202)]===0x0?_0x1e595a:_0x1e595a[_0x3d7379(0x209)]==='defs'&&((_0x26c5a1=_0x1e595a[_0x3d7379(0x15f)])!=null&&_0x26c5a1['length'])?{..._0x1e595a,'children':_0x1e595a['children']['map'](_0x26733a=>typeof _0x26733a[_0x3d7379(0x235)]['id']==_0x3d7379(0x164)&&_0x58c278&&_0x58c278[_0x3d7379(0x1ed)](_0x26733a[_0x3d7379(0x235)]['id'])?{..._0x26733a,'attrs':{..._0x26733a[_0x3d7379(0x235)],'id':_0x26733a[_0x3d7379(0x235)]['id']+_0x563182['idSuffix']}}:_0x26733a)}:_0x1e595a;}function de(){const _0x353a6c=_0x496b07;return Math['random']()[_0x353a6c(0x12c)](0x24)[_0x353a6c(0x154)](0x2,0x8);}_[_0x496b07(0x1e7)]=_0x496b07(0x176);const Ce={'tag':_0x496b07(0x25e),'attrs':{'xmlns':_0x496b07(0x254),'fill':_0x496b07(0x22f),'viewBox':_0x496b07(0x11c),'width':_0x496b07(0x13b),'height':_0x496b07(0x13b)},'children':[{'tag':_0x496b07(0xd9),'attrs':{'fill':_0x496b07(0x1bd),'d':_0x496b07(0x1b9),'fillRule':_0x496b07(0x1a6),'clipRule':_0x496b07(0x1a6)}}]},H=d[_0x496b07(0x136)](function(_0x694c75,_0x3c1a5){const _0x248992=_0x496b07;return d[_0x248992(0x1f5)](_,Object[_0x248992(0x157)]({},_0x694c75,{'id':_0x248992(0x1df),'ref':_0x3c1a5,'icon':Ce}));});H['displayName']=_0x496b07(0x122);const ge={'tag':_0x496b07(0x25e),'attrs':{'xmlns':_0x496b07(0x254),'fill':_0x496b07(0x22f),'viewBox':_0x496b07(0x11c),'width':_0x496b07(0x13b),'height':_0x496b07(0x13b)},'children':[{'tag':_0x496b07(0xd9),'attrs':{'fill':_0x496b07(0x1bd),'d':_0x496b07(0x1fe)}}]},B=d['forwardRef'](function(_0x35181e,_0x35a4e1){const _0x335a38=_0x496b07;return d['createElement'](_,Object[_0x335a38(0x157)]({},_0x35181e,{'id':'close-icon','ref':_0x35a4e1,'icon':ge}));});B[_0x496b07(0x1e7)]=_0x496b07(0x150);const fe={'tag':_0x496b07(0x25e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x496b07(0x11c),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x496b07(0x1bd),'d':_0x496b07(0x11a)}},{'tag':_0x496b07(0xd9),'attrs':{'fill':_0x496b07(0x1bd),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x496b07(0xd9),'attrs':{'fill':'currentColor','d':_0x496b07(0x250),'fillRule':_0x496b07(0x1a6),'clipRule':_0x496b07(0x1a6)}}]},F=d[_0x496b07(0x136)](function(_0x2d6677,_0x17daa8){const _0xc3e38a=_0x496b07;return d[_0xc3e38a(0x1f5)](_,Object[_0xc3e38a(0x157)]({},_0x2d6677,{'id':'help-icon','ref':_0x17daa8,'icon':fe}));});F['displayName']=_0x496b07(0x1c1);const pe={'tag':_0x496b07(0x25e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x496b07(0x22f),'viewBox':_0x496b07(0x11c),'width':_0x496b07(0x13b),'height':_0x496b07(0x13b)},'children':[{'tag':'g','attrs':{'clipPath':_0x496b07(0xdd)},'children':[{'tag':_0x496b07(0xd9),'attrs':{'stroke':'currentColor','d':_0x496b07(0x193),'strokeLinecap':_0x496b07(0x1ba),'strokeLinejoin':_0x496b07(0x1ba),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x496b07(0x23c),'attrs':{'id':_0x496b07(0x21f)},'children':[{'tag':_0x496b07(0xd9),'attrs':{'fill':_0x496b07(0x13f),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x496b07(0x21f)]},Y=d[_0x496b07(0x136)](function(_0x1accdf,_0x40582d){const _0x596962=_0x496b07;return d[_0x596962(0x1f5)](_,Object[_0x596962(0x157)]({},_0x1accdf,{'id':_0x596962(0x156),'ref':_0x40582d,'icon':pe}));});Y[_0x496b07(0x1e7)]=_0x496b07(0x227);const he={'tag':_0x496b07(0x25e),'attrs':{'xmlns':_0x496b07(0x254),'fill':_0x496b07(0x22f),'viewBox':_0x496b07(0x17a),'width':_0x496b07(0x13b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x496b07(0x1af)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x496b07(0x117),'strokeLinecap':_0x496b07(0x1ba),'strokeLinejoin':_0x496b07(0x1ba),'strokeWidth':1.2}}]},{'tag':_0x496b07(0x1bc),'attrs':{},'children':[{'tag':_0x496b07(0x23c),'attrs':{'id':_0x496b07(0x25d)},'children':[{'tag':_0x496b07(0xd9),'attrs':{'fill':'white','d':_0x496b07(0x127),'transform':_0x496b07(0x1f4)}}]}]}],'defIds':[_0x496b07(0x25d)]},q=d['forwardRef'](function(_0x2e8a23,_0x2b3c06){const _0xda7856=_0x496b07;return d[_0xda7856(0x1f5)](_,Object[_0xda7856(0x157)]({},_0x2e8a23,{'id':'on-line-icon','ref':_0x2b3c06,'icon':he}));});q[_0x496b07(0x1e7)]=_0x496b07(0x1ab);function V(_0x7d5f09){const _0x29f106=_0x496b07;var _0x351ae6,_0x197d73;const {mcpCoreConfig:_0x276b8b,onSave:_0x220f2a,loading:_0x49eb50=!0x1,config:_0x2ad5ec,connectionStatus$:_0x2729dc,connectionError$:_0x2fa519,currentApiKey$:_0x150fe0,currentSessionId$:_0x3b6934}=_0x7d5f09,_0x589c68=v[_0x29f106(0x108)](u[_0x29f106(0xe0)]),_0x1fc57a=v[_0x29f106(0xeb)](_0x2729dc,s[_0x29f106(0x197)]['DISCONNECTED']),_0x298d01=v[_0x29f106(0xeb)](_0x2fa519,s[_0x29f106(0x106)][_0x29f106(0x1a9)]),_0x3ecb7e=v['useObservable'](_0x3b6934,''),_0x776b01=v[_0x29f106(0xeb)](_0x150fe0,''),[_0xd0e480,_0x327d85]=d['useState'](_0x776b01||''),_0x463fb7=!0x0,_0x3e0a10=_0x2ad5ec['showDeveloperTools']&&_0x276b8b['mcpServerUrl']&&(_0x276b8b['mcpServerUrl'][_0x29f106(0x1ed)]('univer.plus')||_0x276b8b[_0x29f106(0x253)][_0x29f106(0x1ed)](_0x29f106(0x192))),_0x5d89f9=(_0x351ae6=_0x276b8b['mcpServerUrl'])==null?void 0x0:_0x351ae6[_0x29f106(0x1ed)]('univer.plus'),_0xb054fb=(_0x197d73=_0x276b8b[_0x29f106(0x253)])==null?void 0x0:_0x197d73[_0x29f106(0x1ed)](_0x29f106(0x192)),_0x238462=_0x5d89f9?_0x29f106(0x15e):_0x29f106(0x189),_0xb1b4f5=_0x2ad5ec[_0x29f106(0x18d)]&&(_0x5d89f9||_0xb054fb),[_0x3046c7,_0x46795a]=d[_0x29f106(0x104)](!_0xd0e480[_0x29f106(0x1e0)]()),_0x6ce226=(_0x41f3ad,_0x52c8c3)=>{const _0x244628=_0x29f106;if(_0x52c8c3===s[_0x244628(0x106)][_0x244628(0x21c)])return _0x244628(0x252);switch(_0x41f3ad){case s[_0x244628(0x197)]['CONNECTED']:return _0x244628(0x10d);case s[_0x244628(0x197)][_0x244628(0x211)]:case s[_0x244628(0x197)]['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x244628(0x197)][_0x244628(0x1e3)]:return _0x244628(0x252);default:return _0x244628(0x1d2);}},_0x8414df=(_0xb43a2d,_0x2e34fa)=>{const _0x38a94d=_0x29f106;if(_0x2e34fa===s[_0x38a94d(0x106)]['UNAUTHORIZED'])return _0x38a94d(0xe7);switch(_0xb43a2d){case s[_0x38a94d(0x197)][_0x38a94d(0xe4)]:return _0x38a94d(0x14c);case s[_0x38a94d(0x197)][_0x38a94d(0x211)]:case s['MCPConnectionStatus'][_0x38a94d(0x1f3)]:return _0x38a94d(0x18f);case s['MCPConnectionStatus'][_0x38a94d(0x1e3)]:return _0x38a94d(0xe7);default:return _0x38a94d(0x1c3);}},_0x4a0947=_0x40dc46=>{const _0x302efc=_0x29f106;switch(_0x40dc46){case s[_0x302efc(0x197)][_0x302efc(0xe4)]:return _0x589c68['t'](_0x302efc(0xdf));case s[_0x302efc(0x197)][_0x302efc(0x211)]:return _0x589c68['t'](_0x302efc(0xed));case s[_0x302efc(0x197)][_0x302efc(0x1e3)]:return _0x589c68['t'](_0x302efc(0x105));case s[_0x302efc(0x197)][_0x302efc(0x1f3)]:return _0x589c68['t'](_0x302efc(0x142));default:return _0x589c68['t'](_0x302efc(0x19a));}},_0xefbbf7=_0x2436ab=>{const _0x76d1a4=_0x29f106;switch(_0x2436ab){case s[_0x76d1a4(0x106)]['UNAUTHORIZED']:return _0x589c68['t'](_0x76d1a4(0x115));case s[_0x76d1a4(0x106)][_0x76d1a4(0x20f)]:return _0x589c68['t'](_0x76d1a4(0x162));case s['MCPConnectionError'][_0x76d1a4(0x131)]:return _0x589c68['t'](_0x76d1a4(0x1e6));case s['MCPConnectionError'][_0x76d1a4(0x121)]:return _0x589c68['t'](_0x76d1a4(0x262));default:return'';}},_0x5da41f=d[_0x29f106(0x24c)](()=>{const _0xa63b87=_0x29f106,_0x195847={..._0x276b8b,'apiKey':_0xd0e480[_0xa63b87(0x1e0)](),'enableAuth':_0x463fb7};_0x220f2a(_0x195847);},[_0x276b8b,_0xd0e480,_0x463fb7,_0x220f2a]),_0x4d9524=_0xd0e480[_0x29f106(0x1e0)]()[_0x29f106(0x202)]>0x0;return i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x112),'children':[i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x1fc),'children':i['jsxs'](_0x29f106(0x22e),{'className':_0x29f106(0x1c4),'children':[i[_0x29f106(0x236)]('div',{'className':_0x29f106(0x188),'children':i['jsx'](_0x29f106(0x119),{'className':_0x29f106(0x194),'children':'⚙'})}),i['jsx'](_0x29f106(0x22e),{'children':i['jsx']('p',{'className':_0x29f106(0x13c),'children':_0x589c68['t'](_0x29f106(0xec))})})]})}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x10b),'children':[i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':f[_0x29f106(0x1fd)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x6ce226(_0x1fc57a,_0x298d01)),'children':i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x16f),'children':[i[_0x29f106(0x236)]('div',{'className':f['clsx']('univer-size-2\x20univer-rounded-full',_0x8414df(_0x1fc57a,_0x298d01))}),i[_0x29f106(0x236)]('span',{'className':_0x29f106(0xe1),'children':_0x4a0947(_0x1fc57a)})]})}),_0x298d01!==s['MCPConnectionError'][_0x29f106(0x1a9)]&&(_0x1fc57a===s[_0x29f106(0x197)][_0x29f106(0x1e3)]||_0x298d01===s[_0x29f106(0x106)]['UNAUTHORIZED'])&&i[_0x29f106(0x236)]('div',{'className':_0x29f106(0x1b6),'children':i['jsxs'](_0x29f106(0x22e),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x29f106(0x236)]('span',{'className':_0x29f106(0x139),'children':'⚠️'}),i[_0x29f106(0x236)]('p',{'className':_0x29f106(0x1fb),'children':_0xefbbf7(_0x298d01)})]})})]}),i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x11e),'children':i[_0x29f106(0x20a)]('div',{'className':_0x29f106(0x144),'children':[i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x1e5),'children':[i['jsxs']('label',{'className':_0x29f106(0x204),'children':[i[_0x29f106(0x236)](_0x29f106(0x119),{'children':'🔑'}),'\x20',_0x589c68['t']('mcpConfig.apiKey'),i[_0x29f106(0x236)](_0x29f106(0x119),{'className':_0x29f106(0x24d),'children':'*'}),_0x3e0a10&&i[_0x29f106(0x236)]('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':_0x589c68['t'](_0x29f106(0x124)),'role':_0x29f106(0x128),'onClick':()=>_0x46795a(!0x0),'children':i[_0x29f106(0x236)](F,{})})]}),i[_0x29f106(0x236)](f['Input'],{'type':_0x29f106(0x241),'placeholder':_0x589c68['t'](_0x29f106(0x179)),'value':_0xd0e480,'disabled':_0x49eb50,'autoComplete':_0x29f106(0x14e),'onChange':_0x327d85}),i[_0x29f106(0x236)]('p',{'className':_0x29f106(0x1aa),'children':_0x589c68['t'](_0x29f106(0x10f))})]}),_0x3e0a10&&_0x3046c7&&i['jsxs'](_0x29f106(0x22e),{'className':_0x29f106(0x255),'children':[i[_0x29f106(0x236)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x29f106(0x128),'onClick':()=>_0x46795a(!0x1),'children':i[_0x29f106(0x236)](B,{'className':_0x29f106(0x1a2)})}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x1a4),'children':[i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x166),'children':i[_0x29f106(0x236)](_0x29f106(0x119),{'className':_0x29f106(0x17d),'children':'🚀'})}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x1a1),'children':[i[_0x29f106(0x236)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x589c68['t'](_0x29f106(0x124))}),i[_0x29f106(0x236)]('p',{'className':_0x29f106(0x219),'children':_0x589c68['t']('mcpConfig.apiApplyInfo.description')}),i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0xb1b4f5&&i[_0x29f106(0x20a)]('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':_0x238462,'target':_0x29f106(0x24e),'rel':_0x29f106(0x15a),'children':[i[_0x29f106(0x236)]('span',{'children':'🤖'}),_0x589c68['t'](_0x29f106(0x19c)),i[_0x29f106(0x236)]('span',{'className':_0x29f106(0x145),'children':'↗'})]})}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x257),'children':['✨','\x20',_0x589c68['t'](_0x29f106(0x233))]})]})]})]}),_0x2ad5ec[_0x29f106(0x18d)]&&i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i[_0x29f106(0x20a)]('h4',{'className':_0x29f106(0x210),'children':[i['jsx']('span',{'children':'🔗'}),'\x20',_0x589c68['t'](_0x29f106(0x18e))]}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x21d),'children':[i[_0x29f106(0x20a)]('div',{'className':_0x29f106(0x10c),'children':[i['jsx']('p',{'className':_0x29f106(0xee),'children':_0x589c68['t'](_0x29f106(0x190))}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x1e5),'children':[i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x1e8),'children':_0x589c68['t']('mcpConfig.configStepTitle')}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0xf7),'children':[i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x16f),'children':[i[_0x29f106(0x236)](_0x29f106(0x119),{'className':_0x29f106(0xf5),'children':'1'}),_0x589c68['t'](_0x29f106(0xff))]}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x16f),'children':[i[_0x29f106(0x236)](_0x29f106(0x119),{'className':_0x29f106(0xf5),'children':'2'}),_0x589c68['t']('mcpConfig.configStep2')]}),i[_0x29f106(0x20a)]('div',{'className':_0x29f106(0x16f),'children':[i[_0x29f106(0x236)]('span',{'className':_0x29f106(0xf5),'children':'3'}),_0x589c68['t'](_0x29f106(0x238))]})]})]})]}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x1e5),'children':[i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x1e8),'children':_0x29f106(0x217)}),i[_0x29f106(0x236)]('div',{'className':_0x29f106(0x23f),'children':i[_0x29f106(0x236)](_0x29f106(0x110),{'className':_0x29f106(0x125),'children':JSON[_0x29f106(0x1f2)]({'mcpServers':{'univer':{'url':_0x29f106(0x1c9)+(_0x3ecb7e||_0x29f106(0x163)),'type':'http','headers':{'Authorization':_0x29f106(0x17f)+(_0xd0e480||_0x29f106(0x249))}}}},null,0x2)})})]}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x10c),'children':[i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x1e8),'children':_0x589c68['t'](_0x29f106(0x10e))}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':'univer-space-y-2','children':[i[_0x29f106(0x20a)]('div',{'className':_0x29f106(0x100),'children':[i[_0x29f106(0x236)]('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i['jsxs']('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x29f106(0x236)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x29f106(0x203)}),i['jsx'](_0x29f106(0x22e),{'className':_0x29f106(0x1aa),'children':_0x589c68['t']('mcpConfig.sessionIdDescription')})]})]}),i['jsxs']('div',{'className':_0x29f106(0x100),'children':[i[_0x29f106(0x236)]('div',{'className':_0x29f106(0x1f0)}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x20b),'children':[i['jsx'](_0x29f106(0x22e),{'className':_0x29f106(0x223),'children':_0x29f106(0x12f)}),i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x589c68['t'](_0x29f106(0x16a))})]})]})]})]})]})]}),i[_0x29f106(0x236)](f[_0x29f106(0x1d3)],{'onClick':_0x5da41f,'disabled':!_0x4d9524||_0x49eb50,'className':_0x29f106(0x19f),'children':_0x49eb50?i[_0x29f106(0x20a)](_0x29f106(0x119),{'className':_0x29f106(0x16f),'children':[i[_0x29f106(0x236)]('span',{'children':'⟲'}),_0x589c68['t']('mcpConfig.saving')]}):i['jsxs'](_0x29f106(0x119),{'className':_0x29f106(0x16f),'children':[i[_0x29f106(0x236)](H,{}),_0x589c68['t'](_0x29f106(0xf1))]})}),i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x153),'children':i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x123),'children':[i['jsx'](_0x29f106(0x119),{'className':_0x29f106(0x226),'children':'💡'}),i[_0x29f106(0x20a)](_0x29f106(0x22e),{'className':_0x29f106(0x12b),'children':[i[_0x29f106(0x236)](_0x29f106(0x22e),{'className':_0x29f106(0x199),'children':_0x29f106(0x25c)}),i['jsxs'](_0x29f106(0x22e),{'children':['•',_0x589c68['t'](_0x29f106(0x22c))]}),i[_0x29f106(0x20a)]('div',{'children':['•',_0x589c68['t'](_0x29f106(0x20d))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x496b07(0x213)],xe=(_0x5b882e,_0x4bd165,_0x1486fc,_0x48276e)=>{for(var _0x2cd33f=_0x48276e>0x1?void 0x0:_0x48276e?me(_0x4bd165,_0x1486fc):_0x4bd165,_0x49008f=_0x5b882e['length']-0x1,_0xa53d2a;_0x49008f>=0x0;_0x49008f--)(_0xa53d2a=_0x5b882e[_0x49008f])&&(_0x2cd33f=_0xa53d2a(_0x2cd33f)||_0x2cd33f);return _0x2cd33f;},g=(_0x499308,_0x1438cd)=>(_0x38748b,_0x21463f)=>_0x1438cd(_0x38748b,_0x21463f,_0x499308);function _0x4a73(){const _0x2b6465=['univer-text-gray-500','MenuIcon','showDeveloperTools','mcpConfig.connectionInfo','univer-bg-blue-500','mcpConfig.configInstructions','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer.ai','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-text-white','IDialogService','Module','MCPConnectionStatus','Session\x20ID','univer-font-medium','mcpConfig.connectionStatus.disconnected','_initStatusComponent','mcpConfig.apiApplyInfo.univerAiLabel','defineProperty','_initAutoConnect','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','Injector','univer-flex-1','univer-size-4','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCPStatusDisplay','evenodd','value','MCPConnectionUIController','NONE','univer-text-xs\x20univer-text-gray-500','OnLineIcon','CommandType','Plugin','MCP\x20Unknown\x20Status','url(#on-line-icon_clip0_910_349)','mcpStatus.unauthorized','MCP\x20已断开','保存配置','MCP\x20重连中...','连接失败','RibbonStartGroup','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_connectionController','connectionError$','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','round','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','defs','currentColor','_configService','mcpStatus.unknown','2460568IwrUHU','HelpIcon','mcpStatus.maxRetriesExceeded','univer-bg-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','Connecting...','_logService','MessageType','merge','https://mcp.univer.ai/mcp/?univer_session_id=','MCP_PLUGIN_CONFIG_KEY','MCPConnectionController','启用身份验证以获得安全连接','9JtDxVh','mcpStatus.clickToConfigure','Configuration\x20Steps:','MCPUIMenuController','_localStorageService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Button','showConfigPanel','errorMessage','将以下配置添加到您的\x20MCP\x20客户端设置中:','您的\x20API\x20密钥将在此浏览器中本地存储','MCP:\x20Max\x20Retries\x20Exceeded','82827oEqdcq','registerCommand','onStarting','_registerComponent','mergeMenu','配置保存失败','check-mark-icon','trim','配置更改将立即生效','MCPConfigUIController','FAILED','subscribeConfigValue$','univer-space-y-2','mcpConfig.connectionError.networkError','displayName','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20key\x20is\x20required','什么是\x20API\x20密钥?','mcpStatus.failed','配置保存成功','includes','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_initializeMenus','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','BUTTON','stringify','RETRYING','translate(.97)','createElement','fill','请输入您的\x20API\x20密钥','154aVwTMt','1582305hHoyDT','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','clsx','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','defIds','error','点击连接\x20MCP','length','univer_session_id:','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_loadStoredApiKey','MCP\x20Client\x20Configuration','enUS','OpenMCPConfigPanelCommand','tag','jsxs','univer-min-w-0\x20univer-flex-1','配置步骤:','mcpConfig.note2','showStatus','SESSION_ID_OCCUPIED','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CONNECTING','use','getOwnPropertyDescriptor','mcp-ui.command.openConfigPanel','idSuffix','\x20-\x20','MCP\x20Configuration','Univer\x20AI\x20Console','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','\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','MCP\x20配置','UNAUTHORIZED','univer-space-y-4','_mcpConnectionController','off-line-icon_clip0_910_343','_commandService','几秒钟内获取您的\x20API\x20密钥','Success','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Connected','get','univer-shrink-0\x20univer-text-blue-500','OffLineIcon','ComponentManager','重连中...','mcpConfig.title','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.note1','API\x20Key','div','none','ILocalStorageService','API\x20key\x20with\x20Bearer\x20prefix.','current','mcpConfig.apiApplyInfo.getStarted','MCP:\x20会话\x20ID\x20已被占用','attrs','jsx','BehaviorSubject','mcpConfig.configStep3','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Error','带有\x20Bearer\x20前缀的\x20API\x20密钥。','clipPath','mask','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','启用身份验证','text','Failed\x20to\x20save\x20configuration','MCP\x20已连接','_componentManager','forEach','_createConfigPanelComponent','disposeWithMe','Max\x20Retries','<API_KEY>','isValid','removeItem','useCallback','univer-text-red-500','_blank','univer-mr-2\x20univer-flex\x20univer-text-xl','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','What\x20is\x20API\x20Key?','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpServerUrl','http://www.w3.org/2000/svg','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','最大重试次数','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','register','setConfig','Disconnected','close','Configuration\x20Notes:','on-line-icon_clip0_910_349','svg','mcp.apiKey','toStringTag','apiKey','mcpConfig.connectionError.maxRetriesExceeded','show','您的\x20API\x20密钥安全存储在本地存储中','MCP:\x20Unauthorized','配置无效','path','connectionStatus$','_initializeCommands','MCP\x20Retrying...','url(#off-line-icon_clip0_910_343)','已连接','mcpConfig.connectionStatus.connected','LocaleService','univer-text-sm\x20univer-font-medium','Enable\x20authentication\x20for\x20secure\x20connections','网络连接错误,请检查您的网络连接','CONNECTED','bottom','738466uGXRyy','univer-bg-red-500','UniverMCPUIPlugin','_dialogService','_mcpCoreConfig$','useObservable','mcpConfig.description','mcpConfig.connectionStatus.connecting','univer-text-xs\x20univer-text-gray-600','_loading$','univer-text-green-500','mcpConfig.save','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','_handleConfigure','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','sessionId$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','subscribe','会话ID','331644iLeNvR','API\x20密钥不能为空','_uiPartsService','连接中...','IMenuManagerService','mcpConfig.configStep1','univer-flex\x20univer-items-start\x20univer-gap-3','colorChannel1','API\x20密钥','pluginName','useState','mcpConfig.connectionStatus.failed','MCPConnectionError','权限验证失败,请检查您的\x20API\x20密钥','useDependency','_menuManagerService','MCP\x20连接失败','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-3','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.configParameters','mcpConfig.apiKeyHint','pre','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP:\x20Network\x20Error','__setCustomHeaders','mcpConfig.connectionError.unauthorized','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','890WPfLAj','span','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','MCP\x20状态未知','0\x200\x2016\x2016','has','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','点击配置\x20MCP','MAX_RETRIES_EXCEEDED','CheckMarkIcon','univer-flex\x20univer-gap-3','mcpConfig.apiApplyInfo.title','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Saving...','M0\x200H16V16H0z','button','_config$','replace','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','toString','重启您的\x20MCP\x20客户端以使配置生效','Save\x20Configuration','Authorization:','MenuItemType','NETWORK_ERROR','map','1OmzbZi','IUIPartsService','Inject','forwardRef','mcpConfig.validation.invalidApiKey','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-shrink-0\x20univer-text-red-500','connectInjector','1em','univer-text-sm\x20univer-text-gray-500','mcpStatus.disconnected','超出最大重试次数,请稍后再试','white','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','next','mcpConfig.connectionStatus.retrying','MCP\x20连接中...','univer-space-y-5','univer-text-gray-400','useRef','_injector','getConfig','MCP\x20客户端配置','univerjs-icon\x20univerjs-icon-','_config','univer-bg-green-500','mcpConfig.validation.apiKeyRequired','off','MCPConfigPanel','CloseIcon','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Tooltip','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','substring','mcpConfig.configError','off-line-icon','assign','_apiKey$','univer-flex\x20univer-items-center','noopener\x20noreferrer','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','DependentOn','https://console.univer.plus','children','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','xlink:href','mcpConfig.connectionError.sessionOccupied','<SESSION_ID>','string','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','DISCONNECTED','mcpStatus.networkError','mcpConfig.validation.apiKeyTooShort','mcpConfig.authorizationDescription','复制以下\x20JSON\x20配置','_localeService','IConfigService','Enable\x20Authentication','univer-flex\x20univer-items-center\x20univer-gap-2','MCP\x20Connected','_validateConfig','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpStatus.retrying','MCP:\x20Session\x20ID\x20Occupied','getItem','UniverIcon','53010bHCvmK','_messageService','mcpConfig.apiKeyPlaceholder','0\x200\x2017\x2016','mcp-config-dialog','API\x20密钥长度至少需要\x2010\x20位','univer-text-blue-600','7GQHMPO','Bearer\x20','univer-text-yellow-500','508436BJXsqV','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20超出最大重试次数','Disposable','url(#$1','mcpStatus.connected','mcpStatus.clickToConnect','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','https://console.univer.ai','ISocketService'];_0x4a73=function(){return _0x2b6465;};return _0x4a73();}const O=_0x496b07(0x25f),D=_0x496b07(0x17b);exports[_0x496b07(0x1e2)]=class extends u[_0x496b07(0x184)]{constructor(_0x2df06c,_0x29683b,_0x128c2a,_0x4051cc,_0xfed22c,_0x44fbb1,_0x459875,_0x3c4e7d,_0x283325,_0x22b86c){const _0x2b995b=_0x496b07;super(),I(this,_0x2b995b(0xef),new M[(_0x2b995b(0x237))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x2b995b(0x237))]({})),I(this,'_config$',new M[(_0x2b995b(0x237))]({})),I(this,_0x2b995b(0x158),new M[(_0x2b995b(0x237))]('')),I(this,'_handleConfigSave',async _0x3de138=>{const _0x148cf2=_0x2b995b;var _0x537a0a,_0x29b5a5;this[_0x148cf2(0xef)]['next'](!0x0);try{const _0x4c7d73=await this[_0x148cf2(0x171)](_0x3de138);if(!_0x4c7d73[_0x148cf2(0x24a)]){this[_0x148cf2(0x178)]['show']({'type':f[_0x148cf2(0x1c7)][_0x148cf2(0x23a)],'content':_0x4c7d73[_0x148cf2(0x1d5)]||this[_0x148cf2(0x16c)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3de138[_0x148cf2(0x261)]?await this[_0x148cf2(0x1d1)]['setItem'](O,_0x3de138[_0x148cf2(0x261)][_0x148cf2(0x1e0)]()):await this[_0x148cf2(0x1d1)][_0x148cf2(0x24b)](O),this[_0x148cf2(0x158)][_0x148cf2(0x141)](((_0x537a0a=_0x3de138[_0x148cf2(0x261)])==null?void 0x0:_0x537a0a[_0x148cf2(0x1e0)]())||''),this['_mcpConnectionController'][_0x148cf2(0x114)]({'Authorization':'Bearer\x20'+((_0x29b5a5=_0x3de138[_0x148cf2(0x261)])==null?void 0x0:_0x29b5a5[_0x148cf2(0x1e0)]())}),this[_0x148cf2(0x178)]['show']({'type':f[_0x148cf2(0x1c7)][_0x148cf2(0x222)],'content':this[_0x148cf2(0x16c)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x470c23=_0x148cf2;this[_0x470c23(0xe9)][_0x470c23(0x25b)](D);},0x320);}catch(_0x2002b5){this[_0x148cf2(0x1c6)][_0x148cf2(0x200)](_0x148cf2(0x191),_0x2002b5),this[_0x148cf2(0x178)][_0x148cf2(0x263)]({'type':f['MessageType'][_0x148cf2(0x23a)],'content':this[_0x148cf2(0x16c)]['t'](_0x148cf2(0x155))});}finally{this[_0x148cf2(0xef)][_0x148cf2(0x141)](!0x1);}}),(this['_injector']=_0x2df06c,this[_0x2b995b(0xfc)]=_0x29683b,this[_0x2b995b(0x1be)]=_0x128c2a,this[_0x2b995b(0x1d1)]=_0x4051cc,this[_0x2b995b(0xe9)]=_0xfed22c,this['_messageService']=_0x44fbb1,this[_0x2b995b(0x244)]=_0x459875,this[_0x2b995b(0x16c)]=_0x3c4e7d,this[_0x2b995b(0x1c6)]=_0x283325,this['_mcpConnectionController']=_0x22b86c,this['_initConfigSync'](),this[_0x2b995b(0x205)](),this[_0x2b995b(0x1dc)]());}[_0x496b07(0x1d4)](){const _0x465aeb=_0x496b07,_0x1f3031=this[_0x465aeb(0x1be)]['getConfig'](P);_0x1f3031!=null&&_0x1f3031[_0x465aeb(0x18d)]&&this[_0x465aeb(0xe9)]['open']({'id':D,'title':{'title':this[_0x465aeb(0x16c)]['t'](_0x465aeb(0x22a))},'children':{'label':_0x465aeb(0x14f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5e478b=_0x465aeb;this[_0x5e478b(0xe9)]['close'](D);}});}['getCurrentConfig'](){const _0x567ee4=_0x496b07;return this[_0x567ee4(0xea)][_0x567ee4(0x1a7)];}[_0x496b07(0x1dc)](){const _0x4f64b4=_0x496b07;this[_0x4f64b4(0x247)](this['_componentManager'][_0x4f64b4(0x258)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x496b07(0x246)](){const _0x5732f1=_0x496b07;return v[_0x5732f1(0x13a)](()=>{const _0x2676be=_0x5732f1;var _0x5cc323,_0x4c6e79,_0x1e503e;return i[_0x2676be(0x236)](V,{'config':this[_0x2676be(0x129)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x2676be(0xef)][_0x2676be(0x1a7)],'connectionStatus$':(_0x5cc323=this[_0x2676be(0x21e)])==null?void 0x0:_0x5cc323[_0x2676be(0xda)],'connectionError$':(_0x4c6e79=this[_0x2676be(0x21e)])==null?void 0x0:_0x4c6e79[_0x2676be(0x1b8)],'currentSessionId$':(_0x1e503e=this[_0x2676be(0x21e)])==null?void 0x0:_0x1e503e[_0x2676be(0xf6)]});},this[_0x5732f1(0x147)]);}['_initConfigSync'](){const _0x399eff=_0x496b07;this['disposeWithMe'](this[_0x399eff(0x1be)][_0x399eff(0x1e4)](s[_0x399eff(0x1ca)])[_0x399eff(0xf8)](_0x9be568=>{const _0x5c86fd=_0x399eff;this[_0x5c86fd(0xea)][_0x5c86fd(0x141)](_0x9be568||{});}));const _0x54b9a7=this[_0x399eff(0x1be)][_0x399eff(0x148)](s[_0x399eff(0x1ca)]);this[_0x399eff(0xea)]['next'](_0x54b9a7||{}),this['disposeWithMe'](this['_configService'][_0x399eff(0x1e4)](P)['subscribe'](_0x281df6=>{const _0x550313=_0x399eff;this[_0x550313(0x129)][_0x550313(0x141)](_0x281df6||{});}));const _0x30ac25=this['_configService'][_0x399eff(0x148)](P);this[_0x399eff(0x129)]['next'](_0x30ac25||{});}async[_0x496b07(0x205)](){const _0x432bf3=_0x496b07,_0x1e8efc=this['_configService']['getConfig'](P);if(!(_0x1e8efc!=null&&_0x1e8efc[_0x432bf3(0x18d)]))return;const _0x102e11=await this[_0x432bf3(0x1d1)][_0x432bf3(0x175)](O);_0x102e11&&(this[_0x432bf3(0x21e)][_0x432bf3(0x114)]({'Authorization':_0x432bf3(0x17f)+_0x102e11}),this[_0x432bf3(0x158)]['next'](_0x102e11));}async[_0x496b07(0x171)](_0x2e53c4){const _0x3647f9=_0x496b07;if(!_0x2e53c4[_0x3647f9(0x261)]||_0x2e53c4[_0x3647f9(0x261)][_0x3647f9(0x1e0)]()[_0x3647f9(0x202)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x3647f9(0x14d))};if(_0x2e53c4['apiKey']['trim']()[_0x3647f9(0x202)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3647f9(0x16c)]['t'](_0x3647f9(0x169))};try{const _0x1e7151=await this[_0x3647f9(0x147)]['get'](s[_0x3647f9(0x1cb)])['validateApiKey'](_0x2e53c4[_0x3647f9(0x261)]['trim']());return _0x1e7151[_0x3647f9(0x24a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1e7151['error']||this[_0x3647f9(0x16c)]['t'](_0x3647f9(0x137))};}catch(_0x1ea697){return console['warn'](_0x3647f9(0x1ee),_0x1ea697),{'isValid':!0x0};}}},exports[_0x496b07(0x1e2)]=xe([g(0x0,u[_0x496b07(0x135)](u[_0x496b07(0x1a0)])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x496b07(0x16d)]),g(0x3,u[_0x496b07(0x230)]),g(0x4,v[_0x496b07(0x195)]),g(0x5,v['IMessageService']),g(0x6,u[_0x496b07(0x135)](v[_0x496b07(0x228)])),g(0x7,u['Inject'](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x496b07(0x135)](s[_0x496b07(0x1cb)]))],exports['MCPConfigUIController']);const b={'id':_0x496b07(0x214),'type':u[_0x496b07(0x1ac)]['COMMAND'],'handler':async(_0x428de3,_0x5a85a2)=>(_0x428de3[_0x496b07(0x225)](exports[_0x496b07(0x1e2)])[_0x496b07(0x1d4)](),!0x0)};function Z(_0x4b1dad,_0x2a9c47){const _0x257002=_0x496b07;switch(_0x4b1dad){case s[_0x257002(0x197)][_0x257002(0x167)]:return _0x257002(0x13d);case s['MCPConnectionStatus'][_0x257002(0x211)]:return'mcpStatus.connecting';case s[_0x257002(0x197)][_0x257002(0xe4)]:return _0x257002(0x186);case s[_0x257002(0x197)]['FAILED']:switch(_0x2a9c47){case s['MCPConnectionError'][_0x257002(0x21c)]:return _0x257002(0x1b0);case s['MCPConnectionError'][_0x257002(0x20f)]:return'mcpStatus.sessionOccupied';case s['MCPConnectionError'][_0x257002(0x131)]:return _0x257002(0x168);case s[_0x257002(0x106)][_0x257002(0x121)]:return _0x257002(0x1c2);default:return _0x257002(0x1eb);}case s[_0x257002(0x197)][_0x257002(0x1f3)]:return _0x257002(0x173);default:return _0x257002(0x1bf);}}function Se(_0x3d76ee,_0x55c6a3,_0xaf475f,_0x17e082=!0x0){const _0x18ad83=_0x496b07,_0x16c85c=Z(_0x3d76ee,_0x55c6a3),_0x1ff0cf=_0xaf475f['t'](_0x16c85c);return _0x17e082?_0x3d76ee===s[_0x18ad83(0x197)][_0x18ad83(0x167)]&&_0x55c6a3===s[_0x18ad83(0x106)][_0x18ad83(0x21c)]?_0x1ff0cf+_0x18ad83(0x216)+_0xaf475f['t'](_0x18ad83(0x1ce)):_0x3d76ee===s[_0x18ad83(0x197)][_0x18ad83(0xe4)]?''+_0x1ff0cf:_0x3d76ee===s['MCPConnectionStatus']['DISCONNECTED']||_0x3d76ee===s[_0x18ad83(0x197)]['FAILED']?_0x1ff0cf+_0x18ad83(0x216)+_0xaf475f['t'](_0x18ad83(0x187)):_0x1ff0cf:_0x1ff0cf;}function Pe(_0x2491e6){const _0x45643e=_0x496b07;switch(_0x2491e6){case s['MCPConnectionStatus'][_0x45643e(0xe4)]:return _0x45643e(0xf0);case s[_0x45643e(0x197)][_0x45643e(0x211)]:case s[_0x45643e(0x197)][_0x45643e(0x1f3)]:return _0x45643e(0x180);case s[_0x45643e(0x197)][_0x45643e(0x1e3)]:case s['MCPConnectionStatus'][_0x45643e(0x167)]:return _0x45643e(0x24d);default:return _0x45643e(0x18b);}}function W(_0x176b8a){const _0x45ca31=_0x496b07,{status$:_0x5cc0ba,error$:_0x19f19e,onConfigure:_0x3e7bc9,showClickable:_0x564afd=!0x0}=_0x176b8a,_0x4097ea=v[_0x45ca31(0xeb)](_0x5cc0ba,s[_0x45ca31(0x197)][_0x45ca31(0x167)]),_0x14d341=v[_0x45ca31(0xeb)](_0x19f19e,s[_0x45ca31(0x106)]['NONE']),_0x49eb11=v[_0x45ca31(0x108)](u[_0x45ca31(0xe0)]),_0x28b6a9=_0x4097ea===s[_0x45ca31(0x197)]['CONNECTED'];_0x4097ea===s[_0x45ca31(0x197)][_0x45ca31(0x211)]||s[_0x45ca31(0x197)][_0x45ca31(0x1f3)];const _0x4e7703=_0x49eb11['t'](Z(_0x4097ea,_0x14d341)),_0x383bca=Se(_0x4097ea,_0x14d341,_0x49eb11,_0x564afd),_0x1a439b=Pe(_0x4097ea),_0x3e528c=_0x28b6a9?i[_0x45ca31(0x236)](q,{}):i['jsx'](Y,{}),_0x54b1eb=d[_0x45ca31(0x24c)](()=>{_0x564afd&&_0x3e7bc9&&_0x3e7bc9();},[_0x564afd,_0x3e7bc9]);function _0x4a88be(){const _0x33873a=_0x45ca31;return i['jsxs'](_0x33873a(0x22e),{'className':f[_0x33873a(0x1fd)](_0x33873a(0x159),_0x564afd&&_0x3e7bc9&&_0x33873a(0x21a)),'role':_0x33873a(0x128),'onClick':_0x564afd&&_0x3e7bc9?_0x54b1eb:void 0x0,'children':[i['jsx'](_0x33873a(0x22e),{'className':f[_0x33873a(0x1fd)](_0x33873a(0x24f),_0x1a439b),'children':_0x3e528c}),i[_0x33873a(0x236)]('div',{'className':_0x33873a(0x138),'children':_0x4e7703})]});}return i[_0x45ca31(0x236)](f[_0x45ca31(0x152)],{'title':_0x383bca,'placement':_0x45ca31(0xe5),'children':_0x4a88be()});}var Ie=Object[_0x496b07(0x213)],_e=(_0x1b72de,_0x9701f3,_0x12cf4c,_0x18959f)=>{const _0x52260f=_0x496b07;for(var _0x16b69e=_0x18959f>0x1?void 0x0:_0x18959f?Ie(_0x9701f3,_0x12cf4c):_0x9701f3,_0x31ded4=_0x1b72de[_0x52260f(0x202)]-0x1,_0x3e035d;_0x31ded4>=0x0;_0x31ded4--)(_0x3e035d=_0x1b72de[_0x31ded4])&&(_0x16b69e=_0x3e035d(_0x16b69e)||_0x16b69e);return _0x16b69e;},N=(_0x7cbc35,_0x5409f4)=>(_0x88d1bc,_0x52e61a)=>_0x5409f4(_0x88d1bc,_0x52e61a,_0x7cbc35);exports[_0x496b07(0x1a8)]=class extends u['Disposable']{constructor(_0x4876d6,_0x4b2c57,_0x68073,_0x85da6d){const _0x542d78=_0x496b07;super(),this['_injector']=_0x4876d6,this[_0x542d78(0x1b7)]=_0x4b2c57,this[_0x542d78(0xfc)]=_0x68073,this['_configService']=_0x85da6d,this[_0x542d78(0x19e)](),this['_initStatusComponent']();}[_0x496b07(0x19e)](){const _0x2aba19=_0x496b07,_0x259cb3=this[_0x2aba19(0x1be)][_0x2aba19(0x148)](P);_0x259cb3!=null&&_0x259cb3[_0x2aba19(0x18d)]&&(this[_0x2aba19(0x1b7)]['enableAutoConnect']=!0x1);}[_0x496b07(0x19b)](){const _0x5e54b3=_0x496b07,_0x283c19=this[_0x5e54b3(0x1be)]['getConfig'](P);(_0x283c19==null?void 0x0:_0x283c19[_0x5e54b3(0x20e)])!==!0x1&&this[_0x5e54b3(0x247)](this['_uiPartsService']['registerComponent'](v['BuiltInUIPart']['HEADER_MENU'],()=>{const _0x1d8c4b=_0x5e54b3;var _0x286f88;return v[_0x1d8c4b(0x13a)](ye({'status$':this['_connectionController']['connectionStatus$'],'error$':this['_connectionController'][_0x1d8c4b(0x1b8)],'onConfigure':()=>this[_0x1d8c4b(0xf4)](),'showClickable':(_0x286f88=_0x283c19==null?void 0x0:_0x283c19[_0x1d8c4b(0x18d)])!=null?_0x286f88:!0x1}),this[_0x1d8c4b(0x147)]);}));}['_handleConfigure'](){const _0x48bb96=_0x496b07;this[_0x48bb96(0x147)][_0x48bb96(0x225)](exports[_0x48bb96(0x1e2)])[_0x48bb96(0x1d4)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u['Inject'](u[_0x496b07(0x1a0)])),N(0x1,u[_0x496b07(0x135)](s[_0x496b07(0x1cb)])),N(0x2,v['IUIPartsService']),N(0x3,u['IConfigService'])],exports['MCPConnectionUIController']);function ye(_0x725be4){const {status$:_0x35cf5a,error$:_0x3b23a2,onConfigure:_0x49e7dc,showClickable:_0x52425c}=_0x725be4;return function(){const _0x2c99df=_0x52aa;return i[_0x2c99df(0x236)](W,{'status$':_0x35cf5a,'error$':_0x3b23a2,'onConfigure':_0x49e7dc,'showClickable':_0x52425c});};}function Me(_0x3c4f87){const _0x235376=_0x496b07;return{'id':b['id'],'type':v[_0x235376(0x130)][_0x235376(0x1f1)],'icon':_0x235376(0x18c),'title':_0x235376(0x22a),'tooltip':_0x235376(0x22a)};}const Ne={[v[_0x496b07(0x1b5)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x496b07(0x213)],je=(_0x5365b1,_0x180bf0,_0x1229f2,_0x579356)=>{const _0x1d1176=_0x496b07;for(var _0xa295ab=_0x579356>0x1?void 0x0:_0x579356?be(_0x180bf0,_0x1229f2):_0x180bf0,_0x19271e=_0x5365b1[_0x1d1176(0x202)]-0x1,_0x338a27;_0x19271e>=0x0;_0x19271e--)(_0x338a27=_0x5365b1[_0x19271e])&&(_0xa295ab=_0x338a27(_0xa295ab)||_0xa295ab);return _0xa295ab;},z=(_0x2d3817,_0x4affeb)=>(_0x31a859,_0x4858d0)=>_0x4affeb(_0x31a859,_0x4858d0,_0x2d3817);exports[_0x496b07(0x1d0)]=class extends u[_0x496b07(0x184)]{constructor(_0x540a83,_0x5f135c){const _0x1a425d=_0x496b07;super(),this[_0x1a425d(0x220)]=_0x540a83,this['_menuManagerService']=_0x5f135c,this[_0x1a425d(0xdb)](),this[_0x1a425d(0x1ef)]();}[_0x496b07(0xdb)](){const _0x14ceeb=_0x496b07;[b][_0x14ceeb(0x245)](_0x4af609=>{const _0x2ba9be=_0x14ceeb;this[_0x2ba9be(0x247)](this[_0x2ba9be(0x220)][_0x2ba9be(0x1da)](_0x4af609));});}[_0x496b07(0x1ef)](){const _0x4e0eda=_0x496b07;this[_0x4e0eda(0x109)][_0x4e0eda(0x1dd)](Ne);}},exports[_0x496b07(0x1d0)]=je([z(0x0,u['ICommandService']),z(0x1,v[_0x496b07(0xfe)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x496b07(0xf2),'connecting':'MCP\x20Connecting...','connected':_0x496b07(0x170),'failed':'MCP\x20Connection\x20Failed','retrying':_0x496b07(0xdc),'unknown':_0x496b07(0x1ae),'unauthorized':_0x496b07(0x265),'sessionOccupied':_0x496b07(0x174),'networkError':_0x496b07(0x113),'maxRetriesExceeded':_0x496b07(0x1d8),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x496b07(0xf3)},'mcpConfig':{'title':_0x496b07(0x217),'description':_0x496b07(0x15b),'apiKey':_0x496b07(0x22d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x496b07(0x22b),'enableAuth':_0x496b07(0x16e),'enableAuthHint':_0x496b07(0xe2),'connectionInfo':_0x496b07(0x206),'mcpClientConfig':_0x496b07(0x206),'configInstructions':_0x496b07(0x172),'configStepTitle':_0x496b07(0x1cf),'configStep1':_0x496b07(0x182),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x496b07(0x160),'sessionId':_0x496b07(0x198),'sessionIdDescription':_0x496b07(0x140),'authorizationDescription':_0x496b07(0x231),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x496b07(0x248),'save':_0x496b07(0x12e),'saving':_0x496b07(0x126),'note1':_0x496b07(0x151),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x496b07(0x242),'apiApplyInfo':{'title':_0x496b07(0x251),'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':_0x496b07(0x218),'getStarted':_0x496b07(0x111)},'validation':{'apiKeyRequired':_0x496b07(0x1e9),'apiKeyTooShort':_0x496b07(0x1fa),'invalidConfig':_0x496b07(0x15c),'invalidApiKey':_0x496b07(0x165)},'connectionStatus':{'disconnected':_0x496b07(0x25a),'connecting':_0x496b07(0x1c5),'connected':_0x496b07(0x224),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x496b07(0x239),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x496b07(0x1bb),'maxRetriesExceeded':_0x496b07(0x11f)}}},we={'mcpStatus':{'disconnected':_0x496b07(0x1b1),'connecting':_0x496b07(0x143),'connected':_0x496b07(0x243),'failed':_0x496b07(0x10a),'retrying':_0x496b07(0x1b3),'unknown':_0x496b07(0x11b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x496b07(0x234),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x496b07(0x183),'clickToConnect':_0x496b07(0x201),'clickToConfigure':_0x496b07(0x120)},'mcpConfig':{'title':_0x496b07(0x21b),'description':_0x496b07(0x23e),'apiKey':_0x496b07(0x102),'apiKeyPlaceholder':_0x496b07(0x1f7),'apiKeyHint':_0x496b07(0x1d7),'enableAuth':_0x496b07(0x240),'enableAuthHint':_0x496b07(0x1cc),'connectionInfo':_0x496b07(0x149),'mcpClientConfig':_0x496b07(0x149),'configInstructions':_0x496b07(0x1d6),'configStepTitle':_0x496b07(0x20c),'configStep1':_0x496b07(0x16b),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x496b07(0x12d),'sessionId':_0x496b07(0xf9),'sessionIdDescription':_0x496b07(0x116),'authorizationDescription':_0x496b07(0x23b),'configParameters':'配置参数:','maxRetries':_0x496b07(0x256),'save':_0x496b07(0x1b2),'saving':'保存中...','note1':_0x496b07(0x1e1),'note2':_0x496b07(0x264),'configSaved':_0x496b07(0x1ec),'configError':_0x496b07(0x1de),'apiApplyInfo':{'title':_0x496b07(0x1ea),'description':_0x496b07(0x1a3),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x496b07(0x221)},'validation':{'apiKeyRequired':_0x496b07(0xfb),'apiKeyTooShort':_0x496b07(0x17c),'invalidConfig':_0x496b07(0xd8),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x496b07(0xfd),'connected':_0x496b07(0xde),'failed':_0x496b07(0x1b4),'retrying':_0x496b07(0x229)},'connectionError':{'unauthorized':_0x496b07(0x107),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x496b07(0xe3),'maxRetriesExceeded':_0x496b07(0x13e)}}};var Ae=Object[_0x496b07(0x19d)],Oe=Object[_0x496b07(0x213)],De=(_0x41224f,_0x21a971,_0x5c340f)=>_0x21a971 in _0x41224f?Ae(_0x41224f,_0x21a971,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c340f}):_0x41224f[_0x21a971]=_0x5c340f,Ue=(_0x3fb165,_0x1d6c50,_0x38e0e7,_0x41e78a)=>{const _0x34f587=_0x496b07;for(var _0x3ad96f=_0x41e78a>0x1?void 0x0:_0x41e78a?Oe(_0x1d6c50,_0x38e0e7):_0x1d6c50,_0x1ae2bc=_0x3fb165[_0x34f587(0x202)]-0x1,_0x4ccf7f;_0x1ae2bc>=0x0;_0x1ae2bc--)(_0x4ccf7f=_0x3fb165[_0x1ae2bc])&&(_0x3ad96f=_0x4ccf7f(_0x3ad96f)||_0x3ad96f);return _0x3ad96f;},y=(_0xc450d0,_0x1533d5)=>(_0x508c4c,_0x148b41)=>_0x1533d5(_0x508c4c,_0x148b41,_0xc450d0),$e=(_0x4778a2,_0xd92263,_0x3355eb)=>De(_0x4778a2,_0xd92263+'',_0x3355eb);exports[_0x496b07(0xe8)]=class extends u[_0x496b07(0x1ad)]{constructor(_0x3d9767=L,_0x71f7bd,_0x59332d,_0x2868d3,_0x48f46c,_0x2e40cc){const _0xd205c6=_0x496b07;super(),this[_0xd205c6(0x14b)]=_0x3d9767,this[_0xd205c6(0x147)]=_0x71f7bd,this[_0xd205c6(0x1be)]=_0x59332d,this['_uiPartsService']=_0x2868d3,this[_0xd205c6(0x1d1)]=_0x48f46c,this['_localeService']=_0x2e40cc;const {..._0x58d8e0}=u[_0xd205c6(0x1c8)]({},L,this['_config']);this[_0xd205c6(0x1be)][_0xd205c6(0x259)](P,_0x58d8e0);}async[_0x496b07(0x1db)](){const _0x351141=_0x496b07,_0x3d2cae=[[exports[_0x351141(0x1a8)]],[exports[_0x351141(0x1e2)]],[exports[_0x351141(0x1d0)]]];this[_0x351141(0x147)][_0x351141(0x11d)](A[_0x351141(0x18a)])||_0x3d2cae['push']([A[_0x351141(0x18a)],{'useClass':A['WebSocketService']}]),_0x3d2cae[_0x351141(0x245)](_0x4d52cc=>this[_0x351141(0x147)]['add'](_0x4d52cc)),this['_injector'][_0x351141(0x225)](exports[_0x351141(0x1a8)]),this[_0x351141(0x147)][_0x351141(0x225)](exports['MCPConfigUIController']),this[_0x351141(0x147)][_0x351141(0x225)](exports['MCPUIMenuController']);}},$e(exports['UniverMCPUIPlugin'],_0x496b07(0x103),'MCP_UI_PLUGIN'),exports['UniverMCPUIPlugin']=Ue([u[_0x496b07(0x15d)](s['UniverMCPPlugin']),y(0x1,u['Inject'](u[_0x496b07(0x1a0)])),y(0x2,u['IConfigService']),y(0x3,v[_0x496b07(0x134)]),y(0x4,u[_0x496b07(0x230)]),y(0x5,u[_0x496b07(0x135)](u[_0x496b07(0xe0)]))],exports[_0x496b07(0xe8)]),exports['MCPConfigPanel']=V,exports[_0x496b07(0x1a5)]=W,exports[_0x496b07(0x208)]=b,exports[_0x496b07(0x207)]=Ee,exports['zhCN']=we;
1
+ 'use strict';const _0x246e3f=_0x6e38;function _0x1bc7(){const _0x2dc414=['isValid','什么是\x20API\x20密钥?','clsx','MessageType','NETWORK_ERROR','registerCommand','mcpStatus.connected','_apiKey$','114934ODxzwT','mcp-config-dialog','_mcpCoreConfig$','defineProperty','div','univer-space-y-2','CheckMarkIcon','MCP:\x20Network\x20Error','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-flex\x20univer-gap-3','_initStatusComponent','xlink:href','url(#on-line-icon_clip0_910_349)','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.note1','on-line-icon','univer.plus','univer-bg-blue-500','Button','value','权限验证失败,请检查您的\x20API\x20密钥','CommandType','mcpConfig.validation.apiKeyRequired','stringify','mcpConfig.configInstructions','Connecting...','Plugin','配置参数:','univer-text-blue-600','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP:\x20网络错误','mcpConfig.sessionIdDescription','Retrying...','displayName','Save\x20Configuration','_messageService','https://console.univer.plus','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-space-y-5','重连中...','将配置添加到您的\x20MCP\x20客户端设置文件中','MCPConfigPanel','Max\x20Retries','apiKey','API\x20密钥无效,请检查密钥是否正确','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','setItem','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.connectionError.unauthorized','mcpConfig.apiApplyInfo.getStarted','连接中...','mcpConfig.note2','_config$','MCP_UI_PLUGIN','MCP\x20客户端配置','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','http','会话ID','check-mark-icon','Bearer\x20','jsxs','sessionId$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_logService','_loadStoredApiKey','M0\x200H16V16H0z','get','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','mcpConfig.connectionStatus.connecting','currentColor','has','url(#$1','UniverIcon','connectionStatus$','_initConfigSync','bottom','mcpConfig.apiApplyInfo.title','_initializeMenus','API\x20密钥','您的\x20API\x20密钥安全存储在本地存储中','toStringTag','IMessageService','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configSaved','_dialogService','subscribeConfigValue$','点击连接\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','defs','FAILED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-space-y-3','ILocalStorageService','jsx','replace','几秒钟内获取您的\x20API\x20密钥','merge','Univer\x20AI\x20Console','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.apiKeyPlaceholder','MenuItemType','mcpConfig.configStep3','MCP\x20状态未知','MCP\x20Configuration','Univer\x20AI\x20控制台','svg','enableAutoConnect','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Client\x20Configuration','mcpStatus.disconnected','evenodd','map','subscribe','连接失败','_menuManagerService','_validateConfig','ISocketService','mcpConfig.connectionStatus.disconnected','mcpStatus.retrying','配置\x20MCP\x20使用\x20AI\x20操作电子表格','UNAUTHORIZED','_mcpConnectionController','已连接','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-flex-1','IConfigService','59080070sWuwSN','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','配置保存失败','MCP\x20Unknown\x20Status','random','将以下配置添加到您的\x20MCP\x20客户端设置中:','48HlrAlS','use','MCP:\x20会话\x20ID\x20已被占用','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','forEach','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MenuIcon','启用身份验证','mcpConfig.validation.apiKeyTooShort','showConfigPanel','label','useDependency','univer-shrink-0\x20univer-text-red-500','0\x200\x2017\x2016','mcpConfig.apiApplyInfo.description','MCP\x20Retrying...','Authorization:','_uiPartsService','mcpConfig.configStepTitle','Success','univer-text-xs\x20univer-text-gray-500','off-line-icon','univer-flex\x20univer-items-center','pre','includes','mcpConfig.configError','NONE','https://mcp.univer.ai/mcp/?univer_session_id=','univer-font-medium','_loading$','string','RETRYING','colorChannel1','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','setConfig','RibbonStartGroup','http://www.w3.org/2000/svg','MCPConfigUIController','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','off-line-icon_clip0_910_343','univer-size-2\x20univer-rounded-full','button','help-icon','assign','univer-text-gray-400','getConfig','0\x200\x2016\x2016','CloseIcon','mcpStatus.maxRetriesExceeded','attrs','mcpConfig.connectionStatus.retrying','Input','mcpStatus.unauthorized','text','univer.ai','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connection\x20Failed','next','1em','Saving...','round','fill','mcpConfig.apiKey','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Configuration\x20Parameters:','children','MCP:\x20未授权','MCPConnectionController','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','重启您的\x20MCP\x20客户端以使配置生效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','disposeWithMe','DISCONNECTED','showStatus','errorMessage','_handleConfigSave','warn','Disposable','MCP\x20连接失败','univerjs-icon\x20univerjs-icon-','useState','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','会话\x20ID\x20已被占用,请稍后再试','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Disconnected','mcpServerUrl','Error','MCP\x20已断开','off','ComponentManager','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_localStorageService','substring','_config','MCPUIMenuController','_localeService','mcpStatus.failed','push','BUTTON','DependentOn','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','enUS','close','mcpConfig.title','add','defIds','6446112KGwytw','mcpConfig.connectionError.networkError','Click\x20to\x20connect\x20MCP','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','translate(.97)','mcpConfig.configParameters','mcpStatus.clickToConnect','MCPConnectionStatus','HEADER_MENU','_injector','MCP\x20连接中...','open','clipPath','Configuration\x20Notes:','API\x20key\x20with\x20Bearer\x20prefix.','removeItem','432675wFCTSE','ILogService','_initAutoConnect','toString','onStarting','Session\x20ID','<API_KEY>','_blank','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','UniverMCPUIPlugin','univer-flex\x20univer-items-center\x20univer-gap-2','UniverMCPPlugin','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','entries','保存配置','mcpConfig.configStep2','_configService','mcpStatus.unknown','<SESSION_ID>','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-sm\x20univer-font-medium','tag','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','MCP_PLUGIN_CONFIG_KEY','COMMAND','length','API\x20Key','trim','Enable\x20Authentication','mcpConfig.connectionInfo','idSuffix','mcp-ui.config','Inject','_connectionController','univer-text-red-500','MCPConnectionUIController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','请输入您的\x20API\x20密钥','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','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','8380589HOZMPn','网络连接错误,请检查您的网络连接','showDeveloperTools','useCallback','OTHERS','mask','API\x20key\x20is\x20required','129672DLBnjM','LocaleService','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','IUIPartsService','\x20-\x20','保存中...','mcpConfig.connectionStatus.failed','path','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','配置步骤:','connectionError$','5525BowMyc','Invalid\x20configuration','useObservable','MCP\x20配置','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcp.apiKey','CONNECTED','_handleConfigure','超出最大重试次数,请稍后再试','Enter\x20your\x20API\x20key','Injector','BehaviorSubject','univer-text-yellow-500','show','https://console.univer.ai','error','OnLineIcon','Module','配置保存成功','univer-mr-2\x20univer-flex\x20univer-text-xl','mcp-ui.command.openConfigPanel','4572dicXoP','univer-min-w-0\x20univer-flex-1','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','SESSION_ID_OCCUPIED','_commandService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','176SzySoV','__setCustomHeaders','univer-space-y-4','createElement','univer-bg-green-500','_initializeCommands','Copy\x20the\x20JSON\x20configuration\x20below','mcpConfig.connectionError.sessionOccupied','univer-flex\x20univer-items-center\x20univer-gap-3','_componentManager','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','OpenMCPConfigPanelCommand','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20重连中...','CONNECTING','getOwnPropertyDescriptor','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','white','forwardRef','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','span','mcpStatus.clickToConfigure','MCPConnectionError','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP:\x20Max\x20Retries\x20Exceeded','MCPStatusDisplay','_createConfigPanelComponent','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','none','mcpStatus.networkError'];_0x1bc7=function(){return _0x2dc414;};return _0x1bc7();}(function(_0x3ce4d4,_0x1e4557){const _0x4bab20=_0x6e38,_0x47ce3c=_0x3ce4d4();while(!![]){try{const _0x599d95=-parseInt(_0x4bab20(0x133))/0x1+parseInt(_0x4bab20(0x1b1))/0x2*(-parseInt(_0x4bab20(0x237))/0x3)+parseInt(_0x4bab20(0x183))/0x4*(-parseInt(_0x4bab20(0x16e))/0x5)+-parseInt(_0x4bab20(0x2a4))/0x6+-parseInt(_0x4bab20(0x15c))/0x7+parseInt(_0x4bab20(0x189))/0x8*(-parseInt(_0x4bab20(0x163))/0x9)+parseInt(_0x4bab20(0x231))/0xa;if(_0x599d95===_0x1e4557)break;else _0x47ce3c['push'](_0x47ce3c['shift']());}catch(_0x4070bc){_0x47ce3c['push'](_0x47ce3c['shift']());}}}(_0x1bc7,0xabf22));var ae=Object[_0x246e3f(0x1b4)],le=(_0x52c5fa,_0x3463d9,_0x2cf002)=>_0x3463d9 in _0x52c5fa?ae(_0x52c5fa,_0x3463d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cf002}):_0x52c5fa[_0x3463d9]=_0x2cf002,I=(_0x1be7fe,_0x1a740e,_0x399722)=>le(_0x1be7fe,typeof _0x1a740e!='symbol'?_0x1a740e+'':_0x1a740e,_0x399722);Object[_0x246e3f(0x1b4)](exports,Symbol[_0x246e3f(0x201)],{'value':_0x246e3f(0x17f)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0xd86697,..._0x309819}){const _0x222f73=_0x246e3f,{icon:_0x397471,id:_0x5d36d3,className:_0x10202e,extend:_0x96f1b6,..._0x57fe9f}=_0x309819,_0x28f352=(_0x222f73(0x287)+_0x5d36d3+'\x20'+(_0x10202e||''))[_0x222f73(0x14f)](),_0x145a0c=d['useRef']('_'+de());return G(_0x397471,''+_0x5d36d3,{'defIds':_0x397471[_0x222f73(0x2a3)],'idSuffix':_0x145a0c['current']},{'ref':_0xd86697,'className':_0x28f352,..._0x57fe9f},_0x96f1b6);}function G(_0x2193dd,_0x19c6af,_0x40e7bc,_0x32f0fc,_0x572e31){const _0x2c606c=_0x246e3f;return d['createElement'](_0x2193dd['tag'],{'key':_0x19c6af,...ue(_0x2193dd,_0x40e7bc,_0x572e31),..._0x32f0fc},(ve(_0x2193dd,_0x40e7bc)[_0x2c606c(0x279)]||[])['map']((_0x5c7fcb,_0x55a251)=>G(_0x5c7fcb,_0x19c6af+'-'+_0x2193dd[_0x2c606c(0x149)]+'-'+_0x55a251,_0x40e7bc,void 0x0,_0x572e31)));}function ue(_0x36341a,_0x5d9eaa,_0x262df8){const _0x1c94cb=_0x246e3f,_0x41a70b={..._0x36341a['attrs']};_0x262df8!=null&&_0x262df8[_0x1c94cb(0x257)]&&_0x41a70b[_0x1c94cb(0x274)]===_0x1c94cb(0x257)&&(_0x41a70b[_0x1c94cb(0x274)]=_0x262df8[_0x1c94cb(0x257)]),_0x36341a[_0x1c94cb(0x149)]===_0x1c94cb(0x161)&&_0x41a70b['id']&&(_0x41a70b['id']=_0x41a70b['id']+_0x5d9eaa[_0x1c94cb(0x152)]),Object['entries'](_0x41a70b)[_0x1c94cb(0x23b)](([_0x36b689,_0x544aa1])=>{const _0x3a8f46=_0x1c94cb;_0x36b689===_0x3a8f46(0x161)&&typeof _0x544aa1==_0x3a8f46(0x255)&&(_0x41a70b[_0x36b689]=_0x544aa1[_0x3a8f46(0x210)](/url\(#(.*)\)/,_0x3a8f46(0x1f8)+_0x5d9eaa[_0x3a8f46(0x152)]+')'));});const {defIds:_0x1ffe1b}=_0x5d9eaa;return!_0x1ffe1b||_0x1ffe1b['length']===0x0||(_0x36341a[_0x1c94cb(0x149)]===_0x1c94cb(0x238)&&_0x41a70b[_0x1c94cb(0x1bc)]&&(_0x41a70b['xlink:href']=_0x41a70b[_0x1c94cb(0x1bc)]+_0x5d9eaa['idSuffix']),Object[_0x1c94cb(0x140)](_0x41a70b)['forEach'](([_0x7a3f3,_0x22f885])=>{const _0x4b2134=_0x1c94cb;typeof _0x22f885=='string'&&(_0x41a70b[_0x7a3f3]=_0x22f885['replace'](/url\(#(.*)\)/,_0x4b2134(0x1f8)+_0x5d9eaa[_0x4b2134(0x152)]+')'));})),_0x41a70b;}function _0x6e38(_0x33d770,_0x1870a8){_0x33d770=_0x33d770-0x12d;const _0x1bc7c2=_0x1bc7();let _0x6e38c7=_0x1bc7c2[_0x33d770];return _0x6e38c7;}function ve(_0x2a35c2,_0x40a4ab){const _0x1dc257=_0x246e3f;var _0x313fd4;const {defIds:_0x5e0a6b}=_0x40a4ab;return!_0x5e0a6b||_0x5e0a6b[_0x1dc257(0x14d)]===0x0?_0x2a35c2:_0x2a35c2[_0x1dc257(0x149)]==='defs'&&((_0x313fd4=_0x2a35c2[_0x1dc257(0x279)])!=null&&_0x313fd4[_0x1dc257(0x14d)])?{..._0x2a35c2,'children':_0x2a35c2['children'][_0x1dc257(0x221)](_0x52622f=>typeof _0x52622f[_0x1dc257(0x268)]['id']==_0x1dc257(0x255)&&_0x5e0a6b&&_0x5e0a6b['includes'](_0x52622f[_0x1dc257(0x268)]['id'])?{..._0x52622f,'attrs':{..._0x52622f[_0x1dc257(0x268)],'id':_0x52622f[_0x1dc257(0x268)]['id']+_0x40a4ab[_0x1dc257(0x152)]}}:_0x52622f)}:_0x2a35c2;}function de(){const _0x5f3a78=_0x246e3f;return Math[_0x5f3a78(0x235)]()[_0x5f3a78(0x136)](0x24)[_0x5f3a78(0x296)](0x2,0x8);}_[_0x246e3f(0x1d2)]=_0x246e3f(0x1f9);const Ce={'tag':'svg','attrs':{'xmlns':_0x246e3f(0x25b),'fill':_0x246e3f(0x1a7),'viewBox':'0\x200\x2016\x2016','width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x246e3f(0x220),'clipRule':_0x246e3f(0x220)}}]},H=d[_0x246e3f(0x19c)](function(_0x177677,_0x5212ba){const _0x3a9197=_0x246e3f;return d['createElement'](_,Object[_0x3a9197(0x262)]({},_0x177677,{'id':_0x3a9197(0x1eb),'ref':_0x5212ba,'icon':Ce}));});H[_0x246e3f(0x1d2)]=_0x246e3f(0x1b7);const ge={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':_0x246e3f(0x25b),'fill':_0x246e3f(0x1a7),'viewBox':'0\x200\x2016\x2016','width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':_0x246e3f(0x15a)}}]},B=d['forwardRef'](function(_0x3e704f,_0x4e2c2a){const _0x2609ca=_0x246e3f;return d[_0x2609ca(0x18c)](_,Object[_0x2609ca(0x262)]({},_0x3e704f,{'id':'close-icon','ref':_0x4e2c2a,'icon':ge}));});B[_0x246e3f(0x1d2)]=_0x246e3f(0x266);const fe={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':_0x246e3f(0x25b),'fill':_0x246e3f(0x1a7),'viewBox':_0x246e3f(0x265),'width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':_0x246e3f(0x1de)}},{'tag':_0x246e3f(0x16a),'attrs':{'fill':'currentColor','d':_0x246e3f(0x1f4)}},{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x1f6),'d':_0x246e3f(0x23a),'fillRule':'evenodd','clipRule':_0x246e3f(0x220)}}]},F=d[_0x246e3f(0x19c)](function(_0x35b234,_0x1cbf13){const _0x275f5a=_0x246e3f;return d[_0x275f5a(0x18c)](_,Object['assign']({},_0x35b234,{'id':_0x275f5a(0x261),'ref':_0x1cbf13,'icon':fe}));});F['displayName']='HelpIcon';const pe={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x246e3f(0x1a7),'viewBox':_0x246e3f(0x265),'width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x246e3f(0x1f6),'d':'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','strokeLinecap':_0x246e3f(0x273),'strokeLinejoin':_0x246e3f(0x273),'strokeWidth':1.2}}]},{'tag':_0x246e3f(0x20a),'attrs':{},'children':[{'tag':_0x246e3f(0x12f),'attrs':{'id':_0x246e3f(0x25e)},'children':[{'tag':_0x246e3f(0x16a),'attrs':{'fill':_0x246e3f(0x19b),'d':_0x246e3f(0x1f2)}}]}]}],'defIds':[_0x246e3f(0x25e)]},Y=d[_0x246e3f(0x19c)](function(_0x4b3384,_0x48113e){const _0x4621bf=_0x246e3f;return d[_0x4621bf(0x18c)](_,Object['assign']({},_0x4b3384,{'id':_0x4621bf(0x24c),'ref':_0x48113e,'icon':pe}));});Y[_0x246e3f(0x1d2)]='OffLineIcon';const he={'tag':_0x246e3f(0x21b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x246e3f(0x1a7),'viewBox':_0x246e3f(0x244),'width':_0x246e3f(0x271),'height':_0x246e3f(0x271)},'children':[{'tag':'g','attrs':{'clipPath':_0x246e3f(0x1bd)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x246e3f(0x258),'strokeLinecap':'round','strokeLinejoin':_0x246e3f(0x273),'strokeWidth':1.2}}]},{'tag':_0x246e3f(0x20a),'attrs':{},'children':[{'tag':_0x246e3f(0x12f),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x246e3f(0x19b),'d':_0x246e3f(0x1f2),'transform':_0x246e3f(0x2a8)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x246e3f(0x19c)](function(_0x4c91e5,_0x383622){const _0x1624f0=_0x246e3f;return d['createElement'](_,Object[_0x1624f0(0x262)]({},_0x4c91e5,{'id':_0x1624f0(0x1c0),'ref':_0x383622,'icon':he}));});q[_0x246e3f(0x1d2)]=_0x246e3f(0x17e);function V(_0x2359bb){const _0x44aff0=_0x246e3f;var _0x33c3bb,_0x38f5db;const {mcpCoreConfig:_0x7bebb2,onSave:_0x2afa7f,loading:_0x37fd93=!0x1,config:_0x57a6f2,connectionStatus$:_0x28b669,connectionError$:_0x39fcc2,currentApiKey$:_0x52bfef,currentSessionId$:_0x602e41}=_0x2359bb,_0x310509=v[_0x44aff0(0x242)](u[_0x44aff0(0x164)]),_0x3cb342=v[_0x44aff0(0x170)](_0x28b669,s[_0x44aff0(0x2ab)]['DISCONNECTED']),_0x598bf2=v[_0x44aff0(0x170)](_0x39fcc2,s[_0x44aff0(0x1a0)][_0x44aff0(0x251)]),_0x1ed7e9=v[_0x44aff0(0x170)](_0x602e41,''),_0x54769b=v[_0x44aff0(0x170)](_0x52bfef,''),[_0x436a86,_0x23738c]=d[_0x44aff0(0x288)](_0x54769b||''),_0x214268=!0x0,_0x58cf49=_0x57a6f2['showDeveloperTools']&&_0x7bebb2[_0x44aff0(0x28f)]&&(_0x7bebb2[_0x44aff0(0x28f)][_0x44aff0(0x24f)](_0x44aff0(0x1c1))||_0x7bebb2['mcpServerUrl']['includes'](_0x44aff0(0x26d))),_0x4e7a51=(_0x33c3bb=_0x7bebb2[_0x44aff0(0x28f)])==null?void 0x0:_0x33c3bb[_0x44aff0(0x24f)](_0x44aff0(0x1c1)),_0x13f91c=(_0x38f5db=_0x7bebb2[_0x44aff0(0x28f)])==null?void 0x0:_0x38f5db[_0x44aff0(0x24f)](_0x44aff0(0x26d)),_0x2a9f68=_0x4e7a51?_0x44aff0(0x1d5):_0x44aff0(0x17c),_0x2515eb=_0x57a6f2[_0x44aff0(0x15e)]&&(_0x4e7a51||_0x13f91c),[_0x2de9a9,_0x57d0dd]=d[_0x44aff0(0x288)](!_0x436a86[_0x44aff0(0x14f)]()),_0x1198fa=(_0x229583,_0x2998f7)=>{const _0x55c6d8=_0x44aff0;if(_0x2998f7===s['MCPConnectionError'][_0x55c6d8(0x22a)])return _0x55c6d8(0x27e);switch(_0x229583){case s['MCPConnectionStatus']['CONNECTED']:return _0x55c6d8(0x29e);case s[_0x55c6d8(0x2ab)][_0x55c6d8(0x198)]:case s[_0x55c6d8(0x2ab)][_0x55c6d8(0x256)]:return _0x55c6d8(0x277);case s['MCPConnectionStatus'][_0x55c6d8(0x20b)]:return _0x55c6d8(0x27e);default:return _0x55c6d8(0x23c);}},_0x120876=(_0x65f83c,_0x30746b)=>{const _0x316456=_0x44aff0;if(_0x30746b===s[_0x316456(0x1a0)][_0x316456(0x22a)])return'univer-bg-red-500';switch(_0x65f83c){case s[_0x316456(0x2ab)][_0x316456(0x174)]:return _0x316456(0x18d);case s[_0x316456(0x2ab)][_0x316456(0x198)]:case s[_0x316456(0x2ab)][_0x316456(0x256)]:return _0x316456(0x1c2);case s['MCPConnectionStatus'][_0x316456(0x20b)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x25881=_0x24f33c=>{const _0x2487b9=_0x44aff0;switch(_0x24f33c){case s[_0x2487b9(0x2ab)]['CONNECTED']:return _0x310509['t']('mcpConfig.connectionStatus.connected');case s['MCPConnectionStatus'][_0x2487b9(0x198)]:return _0x310509['t'](_0x2487b9(0x1f5));case s[_0x2487b9(0x2ab)][_0x2487b9(0x20b)]:return _0x310509['t'](_0x2487b9(0x169));case s[_0x2487b9(0x2ab)][_0x2487b9(0x256)]:return _0x310509['t'](_0x2487b9(0x269));default:return _0x310509['t'](_0x2487b9(0x227));}},_0x513870=_0x2f2529=>{const _0x4aea82=_0x44aff0;switch(_0x2f2529){case s['MCPConnectionError'][_0x4aea82(0x22a)]:return _0x310509['t'](_0x4aea82(0x1e1));case s['MCPConnectionError'][_0x4aea82(0x186)]:return _0x310509['t'](_0x4aea82(0x190));case s[_0x4aea82(0x1a0)][_0x4aea82(0x1ad)]:return _0x310509['t'](_0x4aea82(0x2a5));case s[_0x4aea82(0x1a0)]['MAX_RETRIES_EXCEEDED']:return _0x310509['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x297279=d[_0x44aff0(0x15f)](()=>{const _0x1b11bf=_0x44aff0,_0x188059={..._0x7bebb2,'apiKey':_0x436a86[_0x1b11bf(0x14f)](),'enableAuth':_0x214268};_0x2afa7f(_0x188059);},[_0x7bebb2,_0x436a86,_0x214268,_0x2afa7f]),_0x5d12dd=_0x436a86[_0x44aff0(0x14f)]()[_0x44aff0(0x14d)]>0x0;return i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x20c),'children':[i[_0x44aff0(0x20f)]('div',{'className':_0x44aff0(0x165),'children':i['jsxs']('div',{'className':_0x44aff0(0x191),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x27c),'children':i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':'univer-text-white','children':'⚙'})}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'children':i[_0x44aff0(0x20f)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x310509['t']('mcpConfig.description')})})]})}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x2a7),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':f[_0x44aff0(0x1ab)](_0x44aff0(0x28d),_0x1198fa(_0x3cb342,_0x598bf2)),'children':i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':f[_0x44aff0(0x1ab)](_0x44aff0(0x25f),_0x120876(_0x3cb342,_0x598bf2))}),i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x148),'children':_0x25881(_0x3cb342)})]})}),_0x598bf2!==s[_0x44aff0(0x1a0)][_0x44aff0(0x251)]&&(_0x3cb342===s[_0x44aff0(0x2ab)]['FAILED']||_0x598bf2===s[_0x44aff0(0x1a0)][_0x44aff0(0x22a)])&&i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1d6),'children':i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x147),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x243),'children':'⚠️'}),i[_0x44aff0(0x20f)]('p',{'className':_0x44aff0(0x1b9),'children':_0x513870(_0x598bf2)})]})})]}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13b),'children':i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1d7),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x241),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[i['jsx'](_0x44aff0(0x19e),{'children':'🔑'}),'\x20',_0x310509['t'](_0x44aff0(0x275)),i[_0x44aff0(0x20f)]('span',{'className':_0x44aff0(0x156),'children':'*'}),_0x58cf49&&i[_0x44aff0(0x20f)]('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':_0x310509['t'](_0x44aff0(0x1fd)),'role':_0x44aff0(0x260),'onClick':()=>_0x57d0dd(!0x0),'children':i[_0x44aff0(0x20f)](F,{})})]}),i[_0x44aff0(0x20f)](f[_0x44aff0(0x26a)],{'type':_0x44aff0(0x26c),'placeholder':_0x310509['t'](_0x44aff0(0x215)),'value':_0x436a86,'disabled':_0x37fd93,'autoComplete':_0x44aff0(0x292),'onChange':_0x23738c}),i['jsx']('p',{'className':_0x44aff0(0x24b),'children':_0x310509['t']('mcpConfig.apiKeyHint')})]}),_0x58cf49&&_0x2de9a9&&i['jsxs'](_0x44aff0(0x1b5),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[i[_0x44aff0(0x20f)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':'button','onClick':()=>_0x57d0dd(!0x1),'children':i[_0x44aff0(0x20f)](B,{'className':'univer-size-4'})}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x146),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x232),'children':i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x1cd),'children':'🚀'})}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x22f),'children':[i[_0x44aff0(0x20f)]('h4',{'className':_0x44aff0(0x13f),'children':_0x310509['t'](_0x44aff0(0x1fd))}),i[_0x44aff0(0x20f)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x310509['t'](_0x44aff0(0x245))}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1ce),'children':_0x2515eb&&i['jsxs']('a',{'className':_0x44aff0(0x1a1),'href':_0x2a9f68,'target':_0x44aff0(0x13a),'rel':'noopener\x20noreferrer','children':[i['jsx'](_0x44aff0(0x19e),{'children':'🤖'}),_0x310509['t'](_0x44aff0(0x21d)),i['jsx'](_0x44aff0(0x19e),{'className':_0x44aff0(0x263),'children':'↗'})]})}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1ef),'children':['✨','\x20',_0x310509['t'](_0x44aff0(0x1e2))]})]})]})]}),_0x57a6f2[_0x44aff0(0x15e)]&&i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x185),'children':[i[_0x44aff0(0x1ed)]('h4',{'className':_0x44aff0(0x1a2),'children':[i['jsx'](_0x44aff0(0x19e),{'children':'🔗'}),'\x20',_0x310509['t'](_0x44aff0(0x151))]}),i['jsxs']('div',{'className':_0x44aff0(0x18b),'children':[i[_0x44aff0(0x1ed)]('div',{'className':_0x44aff0(0x20d),'children':[i[_0x44aff0(0x20f)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x310509['t'](_0x44aff0(0x1c9))}),i['jsxs']('div',{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x20f)]('div',{'className':_0x44aff0(0x209),'children':_0x310509['t'](_0x44aff0(0x249))}),i[_0x44aff0(0x1ed)]('div',{'className':_0x44aff0(0x22e),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x14a),'children':'1'}),_0x310509['t']('mcpConfig.configStep1')]}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)]('span',{'className':_0x44aff0(0x14a),'children':'2'}),_0x310509['t'](_0x44aff0(0x142))]}),i['jsxs'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':_0x44aff0(0x14a),'children':'3'}),_0x310509['t'](_0x44aff0(0x217))]})]})]})]}),i[_0x44aff0(0x1ed)]('div',{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x20f)]('div',{'className':_0x44aff0(0x209),'children':_0x44aff0(0x219)}),i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x188),'children':i[_0x44aff0(0x20f)](_0x44aff0(0x24e),{'className':_0x44aff0(0x289),'children':JSON[_0x44aff0(0x1c8)]({'mcpServers':{'univer':{'url':_0x44aff0(0x252)+(_0x1ed7e9||_0x44aff0(0x145)),'type':_0x44aff0(0x1e9),'headers':{'Authorization':_0x44aff0(0x1ec)+(_0x436a86||_0x44aff0(0x139))}}}},null,0x2)})})]}),i['jsxs'](_0x44aff0(0x1b5),{'className':'univer-space-y-3','children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x209),'children':_0x310509['t'](_0x44aff0(0x2a9))}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1b6),'children':[i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x172)}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x184),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x19d),'children':'univer_session_id:'}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x24b),'children':_0x310509['t'](_0x44aff0(0x1d0))})]})]}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x184),'children':[i['jsx'](_0x44aff0(0x1b5),{'className':_0x44aff0(0x19d),'children':_0x44aff0(0x247)}),i[_0x44aff0(0x20f)](_0x44aff0(0x1b5),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x310509['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x44aff0(0x20f)](f[_0x44aff0(0x1c3)],{'onClick':_0x297279,'disabled':!_0x5d12dd||_0x37fd93,'className':_0x44aff0(0x28c),'children':_0x37fd93?i['jsxs']('span',{'className':_0x44aff0(0x13d),'children':[i[_0x44aff0(0x20f)]('span',{'children':'⟲'}),_0x310509['t']('mcpConfig.saving')]}):i[_0x44aff0(0x1ed)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x44aff0(0x20f)](H,{}),_0x310509['t']('mcpConfig.save')]})}),i[_0x44aff0(0x20f)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x1ba),'children':[i[_0x44aff0(0x20f)](_0x44aff0(0x19e),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i[_0x44aff0(0x1ed)](_0x44aff0(0x1b5),{'className':_0x44aff0(0x214),'children':[i['jsx']('div',{'className':_0x44aff0(0x253),'children':_0x44aff0(0x130)}),i[_0x44aff0(0x1ed)]('div',{'children':['•',_0x310509['t'](_0x44aff0(0x1bf))]}),i['jsxs'](_0x44aff0(0x1b5),{'children':['•',_0x310509['t'](_0x44aff0(0x1e4))]})]})]})})]})})]});}const P=_0x246e3f(0x153),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x246e3f(0x199)],xe=(_0x43c07d,_0x4f1783,_0x4644a8,_0x1d893d)=>{const _0x2c2279=_0x246e3f;for(var _0x43da59=_0x1d893d>0x1?void 0x0:_0x1d893d?me(_0x4f1783,_0x4644a8):_0x4f1783,_0x4ecb7f=_0x43c07d[_0x2c2279(0x14d)]-0x1,_0x1fbeb3;_0x4ecb7f>=0x0;_0x4ecb7f--)(_0x1fbeb3=_0x43c07d[_0x4ecb7f])&&(_0x43da59=_0x1fbeb3(_0x43da59)||_0x43da59);return _0x43da59;},g=(_0x535c9a,_0x20275e)=>(_0x2f5854,_0x1f47a6)=>_0x20275e(_0x2f5854,_0x1f47a6,_0x535c9a);const O=_0x246e3f(0x173),D=_0x246e3f(0x1b2);exports[_0x246e3f(0x25c)]=class extends u[_0x246e3f(0x285)]{constructor(_0x4fb16f,_0x507f4a,_0x1d2901,_0x2dd15e,_0x1bcc27,_0x4bfaa9,_0x4ce2ca,_0x332f82,_0x304292,_0x27d48d){const _0x2ed99a=_0x246e3f;super(),I(this,'_loading$',new M[(_0x2ed99a(0x179))](!0x1)),I(this,_0x2ed99a(0x1b3),new M[(_0x2ed99a(0x179))]({})),I(this,_0x2ed99a(0x1e5),new M[(_0x2ed99a(0x179))]({})),I(this,_0x2ed99a(0x1b0),new M[(_0x2ed99a(0x179))]('')),I(this,_0x2ed99a(0x283),async _0x3ee836=>{const _0x46791d=_0x2ed99a;var _0x1e78ae,_0x135081;this[_0x46791d(0x254)][_0x46791d(0x270)](!0x0);try{const _0x12520c=await this[_0x46791d(0x225)](_0x3ee836);if(!_0x12520c[_0x46791d(0x1a9)]){this['_messageService'][_0x46791d(0x17b)]({'type':f[_0x46791d(0x1ac)][_0x46791d(0x290)],'content':_0x12520c[_0x46791d(0x282)]||this[_0x46791d(0x299)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3ee836['apiKey']?await this['_localStorageService'][_0x46791d(0x1df)](O,_0x3ee836['apiKey'][_0x46791d(0x14f)]()):await this[_0x46791d(0x295)][_0x46791d(0x132)](O),this['_apiKey$'][_0x46791d(0x270)](((_0x1e78ae=_0x3ee836[_0x46791d(0x1dc)])==null?void 0x0:_0x1e78ae[_0x46791d(0x14f)]())||''),this[_0x46791d(0x22b)][_0x46791d(0x18a)]({'Authorization':_0x46791d(0x1ec)+((_0x135081=_0x3ee836[_0x46791d(0x1dc)])==null?void 0x0:_0x135081[_0x46791d(0x14f)]())}),this[_0x46791d(0x1d4)][_0x46791d(0x17b)]({'type':f[_0x46791d(0x1ac)][_0x46791d(0x24a)],'content':this[_0x46791d(0x299)]['t'](_0x46791d(0x204))}),setTimeout(()=>{const _0x516cd9=_0x46791d;this[_0x516cd9(0x205)]['close'](D);},0x320);}catch(_0x23a29b){this[_0x46791d(0x1f0)][_0x46791d(0x17d)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x23a29b),this[_0x46791d(0x1d4)][_0x46791d(0x17b)]({'type':f[_0x46791d(0x1ac)][_0x46791d(0x290)],'content':this[_0x46791d(0x299)]['t'](_0x46791d(0x250))});}finally{this[_0x46791d(0x254)][_0x46791d(0x270)](!0x1);}}),(this[_0x2ed99a(0x2ad)]=_0x4fb16f,this[_0x2ed99a(0x248)]=_0x507f4a,this[_0x2ed99a(0x143)]=_0x1d2901,this[_0x2ed99a(0x295)]=_0x2dd15e,this[_0x2ed99a(0x205)]=_0x1bcc27,this['_messageService']=_0x4bfaa9,this[_0x2ed99a(0x192)]=_0x4ce2ca,this[_0x2ed99a(0x299)]=_0x332f82,this[_0x2ed99a(0x1f0)]=_0x304292,this[_0x2ed99a(0x22b)]=_0x27d48d,this[_0x2ed99a(0x1fb)](),this[_0x2ed99a(0x1f1)](),this['_registerComponent']());}[_0x246e3f(0x240)](){const _0x191f7c=_0x246e3f,_0x1e2c11=this[_0x191f7c(0x143)]['getConfig'](P);_0x1e2c11!=null&&_0x1e2c11[_0x191f7c(0x15e)]&&this[_0x191f7c(0x205)][_0x191f7c(0x12e)]({'id':D,'title':{'title':this['_localeService']['t'](_0x191f7c(0x2a1))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x518d57=_0x191f7c;this[_0x518d57(0x205)][_0x518d57(0x2a0)](D);}});}['getCurrentConfig'](){const _0xd23d6c=_0x246e3f;return this[_0xd23d6c(0x1b3)]['value'];}['_registerComponent'](){const _0x4074ee=_0x246e3f;this['disposeWithMe'](this[_0x4074ee(0x192)]['register'](_0x4074ee(0x1da),this['_createConfigPanelComponent']()));}[_0x246e3f(0x1a5)](){const _0x29bb9a=_0x246e3f;return v['connectInjector'](()=>{const _0x1ec248=_0x6e38;var _0x2eec98,_0x559c47,_0x4f7a4b;return i[_0x1ec248(0x20f)](V,{'config':this[_0x1ec248(0x1e5)][_0x1ec248(0x1c4)],'mcpCoreConfig':this[_0x1ec248(0x1b3)][_0x1ec248(0x1c4)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x1ec248(0x283)],'loading':this[_0x1ec248(0x254)][_0x1ec248(0x1c4)],'connectionStatus$':(_0x2eec98=this[_0x1ec248(0x22b)])==null?void 0x0:_0x2eec98['connectionStatus$'],'connectionError$':(_0x559c47=this[_0x1ec248(0x22b)])==null?void 0x0:_0x559c47[_0x1ec248(0x16d)],'currentSessionId$':(_0x4f7a4b=this[_0x1ec248(0x22b)])==null?void 0x0:_0x4f7a4b[_0x1ec248(0x1ee)]});},this[_0x29bb9a(0x2ad)]);}['_initConfigSync'](){const _0x1c7e0c=_0x246e3f;this[_0x1c7e0c(0x27f)](this[_0x1c7e0c(0x143)][_0x1c7e0c(0x206)](s[_0x1c7e0c(0x14b)])[_0x1c7e0c(0x222)](_0x1527c9=>{const _0x48d902=_0x1c7e0c;this['_mcpCoreConfig$'][_0x48d902(0x270)](_0x1527c9||{});}));const _0x67e4d2=this[_0x1c7e0c(0x143)]['getConfig'](s[_0x1c7e0c(0x14b)]);this['_mcpCoreConfig$']['next'](_0x67e4d2||{}),this[_0x1c7e0c(0x27f)](this['_configService']['subscribeConfigValue$'](P)[_0x1c7e0c(0x222)](_0x517b53=>{const _0x1f6428=_0x1c7e0c;this[_0x1f6428(0x1e5)][_0x1f6428(0x270)](_0x517b53||{});}));const _0x129efd=this[_0x1c7e0c(0x143)][_0x1c7e0c(0x264)](P);this[_0x1c7e0c(0x1e5)][_0x1c7e0c(0x270)](_0x129efd||{});}async[_0x246e3f(0x1f1)](){const _0x10a9ce=_0x246e3f,_0x2caf6b=this['_configService'][_0x10a9ce(0x264)](P);if(!(_0x2caf6b!=null&&_0x2caf6b[_0x10a9ce(0x15e)]))return;const _0x4c9efb=await this[_0x10a9ce(0x295)]['getItem'](O);_0x4c9efb&&(this[_0x10a9ce(0x22b)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x4c9efb}),this['_apiKey$'][_0x10a9ce(0x270)](_0x4c9efb));}async[_0x246e3f(0x225)](_0x554fc6){const _0x14ddde=_0x246e3f;if(!_0x554fc6[_0x14ddde(0x1dc)]||_0x554fc6['apiKey'][_0x14ddde(0x14f)]()[_0x14ddde(0x14d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x14ddde(0x299)]['t'](_0x14ddde(0x1c7))};if(_0x554fc6[_0x14ddde(0x1dc)][_0x14ddde(0x14f)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x14ddde(0x23f))};try{const _0x3c90fb=await this[_0x14ddde(0x2ad)]['get'](s[_0x14ddde(0x27b)])['validateApiKey'](_0x554fc6[_0x14ddde(0x1dc)]['trim']());return _0x3c90fb[_0x14ddde(0x1a9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3c90fb['error']||this[_0x14ddde(0x299)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x43ad1c){return console[_0x14ddde(0x284)](_0x14ddde(0x15b),_0x43ad1c),{'isValid':!0x0};}}},exports[_0x246e3f(0x25c)]=xe([g(0x0,u['Inject'](u['Injector'])),g(0x1,v[_0x246e3f(0x166)]),g(0x2,u['IConfigService']),g(0x3,u[_0x246e3f(0x20e)]),g(0x4,v['IDialogService']),g(0x5,v[_0x246e3f(0x202)]),g(0x6,u['Inject'](v[_0x246e3f(0x293)])),g(0x7,u[_0x246e3f(0x154)](u[_0x246e3f(0x164)])),g(0x8,u[_0x246e3f(0x134)]),g(0x9,u['Inject'](s[_0x246e3f(0x27b)]))],exports[_0x246e3f(0x25c)]);const b={'id':_0x246e3f(0x182),'type':u[_0x246e3f(0x1c6)][_0x246e3f(0x14c)],'handler':async(_0x58c7d7,_0x327f57)=>(_0x58c7d7[_0x246e3f(0x1f3)](exports[_0x246e3f(0x25c)])[_0x246e3f(0x240)](),!0x0)};function Z(_0x532bcb,_0x19484e){const _0x5dc09f=_0x246e3f;switch(_0x532bcb){case s[_0x5dc09f(0x2ab)]['DISCONNECTED']:return _0x5dc09f(0x21f);case s[_0x5dc09f(0x2ab)][_0x5dc09f(0x198)]:return'mcpStatus.connecting';case s[_0x5dc09f(0x2ab)][_0x5dc09f(0x174)]:return _0x5dc09f(0x1af);case s[_0x5dc09f(0x2ab)][_0x5dc09f(0x20b)]:switch(_0x19484e){case s['MCPConnectionError'][_0x5dc09f(0x22a)]:return _0x5dc09f(0x26b);case s['MCPConnectionError'][_0x5dc09f(0x186)]:return'mcpStatus.sessionOccupied';case s[_0x5dc09f(0x1a0)]['NETWORK_ERROR']:return _0x5dc09f(0x1a8);case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x5dc09f(0x267);default:return _0x5dc09f(0x29a);}case s['MCPConnectionStatus'][_0x5dc09f(0x256)]:return _0x5dc09f(0x228);default:return _0x5dc09f(0x144);}}function Se(_0x13c25c,_0x2bd1d8,_0x468af0,_0x49418e=!0x0){const _0x280231=_0x246e3f,_0xed5b4e=Z(_0x13c25c,_0x2bd1d8),_0x130895=_0x468af0['t'](_0xed5b4e);return _0x49418e?_0x13c25c===s[_0x280231(0x2ab)]['DISCONNECTED']&&_0x2bd1d8===s[_0x280231(0x1a0)]['UNAUTHORIZED']?_0x130895+_0x280231(0x167)+_0x468af0['t'](_0x280231(0x19f)):_0x13c25c===s[_0x280231(0x2ab)]['CONNECTED']?''+_0x130895:_0x13c25c===s[_0x280231(0x2ab)][_0x280231(0x280)]||_0x13c25c===s[_0x280231(0x2ab)][_0x280231(0x20b)]?_0x130895+_0x280231(0x167)+_0x468af0['t'](_0x280231(0x2aa)):_0x130895:_0x130895;}function Pe(_0x4ce22d){const _0x58c181=_0x246e3f;switch(_0x4ce22d){case s[_0x58c181(0x2ab)][_0x58c181(0x174)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0x58c181(0x198)]:case s[_0x58c181(0x2ab)][_0x58c181(0x256)]:return _0x58c181(0x17a);case s[_0x58c181(0x2ab)][_0x58c181(0x20b)]:case s[_0x58c181(0x2ab)][_0x58c181(0x280)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function W(_0x23bfe9){const _0xcb323f=_0x246e3f,{status$:_0x3fcdd8,error$:_0x4f0687,onConfigure:_0x4e8ccb,showClickable:_0x491323=!0x0}=_0x23bfe9,_0x5f1460=v[_0xcb323f(0x170)](_0x3fcdd8,s[_0xcb323f(0x2ab)][_0xcb323f(0x280)]),_0x5ed4d1=v[_0xcb323f(0x170)](_0x4f0687,s['MCPConnectionError'][_0xcb323f(0x251)]),_0x36a412=v[_0xcb323f(0x242)](u[_0xcb323f(0x164)]),_0x267d43=_0x5f1460===s[_0xcb323f(0x2ab)][_0xcb323f(0x174)];_0x5f1460===s['MCPConnectionStatus'][_0xcb323f(0x198)]||s[_0xcb323f(0x2ab)][_0xcb323f(0x256)];const _0x5b35d2=_0x36a412['t'](Z(_0x5f1460,_0x5ed4d1)),_0x424700=Se(_0x5f1460,_0x5ed4d1,_0x36a412,_0x491323),_0x41e433=Pe(_0x5f1460),_0x1eee01=_0x267d43?i[_0xcb323f(0x20f)](q,{}):i[_0xcb323f(0x20f)](Y,{}),_0x73b067=d[_0xcb323f(0x15f)](()=>{_0x491323&&_0x4e8ccb&&_0x4e8ccb();},[_0x491323,_0x4e8ccb]);function _0x2b13a3(){const _0x103c8e=_0xcb323f;return i[_0x103c8e(0x1ed)](_0x103c8e(0x1b5),{'className':f[_0x103c8e(0x1ab)](_0x103c8e(0x24d),_0x491323&&_0x4e8ccb&&_0x103c8e(0x158)),'role':_0x103c8e(0x260),'onClick':_0x491323&&_0x4e8ccb?_0x73b067:void 0x0,'children':[i[_0x103c8e(0x20f)](_0x103c8e(0x1b5),{'className':f[_0x103c8e(0x1ab)](_0x103c8e(0x181),_0x41e433),'children':_0x1eee01}),i['jsx'](_0x103c8e(0x1b5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5b35d2})]});}return i[_0xcb323f(0x20f)](f['Tooltip'],{'title':_0x424700,'placement':_0xcb323f(0x1fc),'children':_0x2b13a3()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x89d257,_0x5855bb,_0x314e73,_0x28e63a)=>{const _0x4a9a9e=_0x246e3f;for(var _0x3c6ecd=_0x28e63a>0x1?void 0x0:_0x28e63a?Ie(_0x5855bb,_0x314e73):_0x5855bb,_0x5c6ecb=_0x89d257[_0x4a9a9e(0x14d)]-0x1,_0x2be9ce;_0x5c6ecb>=0x0;_0x5c6ecb--)(_0x2be9ce=_0x89d257[_0x5c6ecb])&&(_0x3c6ecd=_0x2be9ce(_0x3c6ecd)||_0x3c6ecd);return _0x3c6ecd;},N=(_0x27371c,_0x3920f8)=>(_0xbe78d3,_0x3bcae6)=>_0x3920f8(_0xbe78d3,_0x3bcae6,_0x27371c);exports[_0x246e3f(0x157)]=class extends u[_0x246e3f(0x285)]{constructor(_0x220382,_0x3e5f0b,_0x2f088c,_0x4bd5f9){const _0x2bfdd4=_0x246e3f;super(),this[_0x2bfdd4(0x2ad)]=_0x220382,this[_0x2bfdd4(0x155)]=_0x3e5f0b,this[_0x2bfdd4(0x248)]=_0x2f088c,this[_0x2bfdd4(0x143)]=_0x4bd5f9,this[_0x2bfdd4(0x135)](),this[_0x2bfdd4(0x1bb)]();}[_0x246e3f(0x135)](){const _0x14745a=_0x246e3f,_0x5bc6e1=this[_0x14745a(0x143)][_0x14745a(0x264)](P);_0x5bc6e1!=null&&_0x5bc6e1[_0x14745a(0x15e)]&&(this['_connectionController'][_0x14745a(0x21c)]=!0x1);}[_0x246e3f(0x1bb)](){const _0x368c5f=_0x246e3f,_0x3a621c=this['_configService']['getConfig'](P);(_0x3a621c==null?void 0x0:_0x3a621c[_0x368c5f(0x281)])!==!0x1&&this[_0x368c5f(0x27f)](this[_0x368c5f(0x248)]['registerComponent'](v['BuiltInUIPart'][_0x368c5f(0x2ac)],()=>{const _0xa8f6de=_0x368c5f;var _0x4fee9f;return v['connectInjector'](ye({'status$':this[_0xa8f6de(0x155)][_0xa8f6de(0x1fa)],'error$':this[_0xa8f6de(0x155)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4fee9f=_0x3a621c==null?void 0x0:_0x3a621c[_0xa8f6de(0x15e)])!=null?_0x4fee9f:!0x1}),this[_0xa8f6de(0x2ad)]);}));}[_0x246e3f(0x175)](){const _0x588fe6=_0x246e3f;this['_injector'][_0x588fe6(0x1f3)](exports[_0x588fe6(0x25c)])[_0x588fe6(0x240)]();}},exports[_0x246e3f(0x157)]=_e([N(0x0,u['Inject'](u[_0x246e3f(0x178)])),N(0x1,u[_0x246e3f(0x154)](s[_0x246e3f(0x27b)])),N(0x2,v[_0x246e3f(0x166)]),N(0x3,u[_0x246e3f(0x230)])],exports['MCPConnectionUIController']);function ye(_0x44adef){const {status$:_0x3b1f89,error$:_0x339b76,onConfigure:_0x20cbfd,showClickable:_0xe82e73}=_0x44adef;return function(){const _0x4ee1bf=_0x6e38;return i[_0x4ee1bf(0x20f)](W,{'status$':_0x3b1f89,'error$':_0x339b76,'onConfigure':_0x20cbfd,'showClickable':_0xe82e73});};}function Me(_0x342d97){const _0x3981f4=_0x246e3f;return{'id':b['id'],'type':v[_0x3981f4(0x216)][_0x3981f4(0x29c)],'icon':_0x3981f4(0x23d),'title':'mcpConfig.title','tooltip':_0x3981f4(0x2a1)};}const Ne={[v[_0x246e3f(0x25a)][_0x246e3f(0x160)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x246e3f(0x199)],je=(_0x560e43,_0x51cff3,_0x24366e,_0x4d4a3a)=>{const _0x4f33cb=_0x246e3f;for(var _0x3e5290=_0x4d4a3a>0x1?void 0x0:_0x4d4a3a?be(_0x51cff3,_0x24366e):_0x51cff3,_0x11534f=_0x560e43[_0x4f33cb(0x14d)]-0x1,_0x2297da;_0x11534f>=0x0;_0x11534f--)(_0x2297da=_0x560e43[_0x11534f])&&(_0x3e5290=_0x2297da(_0x3e5290)||_0x3e5290);return _0x3e5290;},z=(_0x2d0894,_0xe27da4)=>(_0x3e13de,_0x38e1e9)=>_0xe27da4(_0x3e13de,_0x38e1e9,_0x2d0894);exports['MCPUIMenuController']=class extends u['Disposable']{constructor(_0x577236,_0x3613dc){const _0x5e2a9d=_0x246e3f;super(),this[_0x5e2a9d(0x187)]=_0x577236,this[_0x5e2a9d(0x224)]=_0x3613dc,this[_0x5e2a9d(0x18e)](),this[_0x5e2a9d(0x1fe)]();}[_0x246e3f(0x18e)](){[b]['forEach'](_0x116f76=>{const _0x1a0b5f=_0x6e38;this[_0x1a0b5f(0x27f)](this[_0x1a0b5f(0x187)][_0x1a0b5f(0x1ae)](_0x116f76));});}[_0x246e3f(0x1fe)](){const _0x45c05e=_0x246e3f;this[_0x45c05e(0x224)]['mergeMenu'](Ne);}},exports[_0x246e3f(0x298)]=je([z(0x0,u['ICommandService']),z(0x1,v['IMenuManagerService'])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x246e3f(0x26f),'retrying':_0x246e3f(0x246),'unknown':_0x246e3f(0x234),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x246e3f(0x26e),'networkError':_0x246e3f(0x1b8),'maxRetriesExceeded':_0x246e3f(0x1a3),'clickToConnect':_0x246e3f(0x2a6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x246e3f(0x25d),'apiKey':_0x246e3f(0x14e),'apiKeyPlaceholder':_0x246e3f(0x177),'apiKeyHint':_0x246e3f(0x276),'enableAuth':_0x246e3f(0x150),'enableAuthHint':_0x246e3f(0x1e0),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x246e3f(0x21e),'configInstructions':_0x246e3f(0x16b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x246e3f(0x18f),'configStep2':_0x246e3f(0x294),'configStep3':_0x246e3f(0x195),'sessionId':_0x246e3f(0x138),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x246e3f(0x131),'configParameters':_0x246e3f(0x278),'maxRetries':_0x246e3f(0x1db),'save':_0x246e3f(0x1d3),'saving':_0x246e3f(0x272),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x246e3f(0x208),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x246e3f(0x22d),'univerAiLabel':_0x246e3f(0x213),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x246e3f(0x162),'apiKeyTooShort':_0x246e3f(0x28b),'invalidConfig':_0x246e3f(0x16f),'invalidApiKey':_0x246e3f(0x1e8)},'connectionStatus':{'disconnected':_0x246e3f(0x28e),'connecting':_0x246e3f(0x1ca),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x246e3f(0x1d1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x246e3f(0x19a),'networkError':_0x246e3f(0x193),'maxRetriesExceeded':_0x246e3f(0x1a6)}}},we={'mcpStatus':{'disconnected':_0x246e3f(0x291),'connecting':_0x246e3f(0x12d),'connected':'MCP\x20已连接','failed':_0x246e3f(0x286),'retrying':_0x246e3f(0x197),'unknown':_0x246e3f(0x218),'unauthorized':_0x246e3f(0x27a),'sessionOccupied':_0x246e3f(0x239),'networkError':_0x246e3f(0x1cf),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x246e3f(0x207),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x246e3f(0x171),'description':_0x246e3f(0x229),'apiKey':_0x246e3f(0x1ff),'apiKeyPlaceholder':_0x246e3f(0x159),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x246e3f(0x23e),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x246e3f(0x1e7),'mcpClientConfig':_0x246e3f(0x1e7),'configInstructions':_0x246e3f(0x236),'configStepTitle':_0x246e3f(0x16c),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x246e3f(0x1d9),'configStep3':_0x246e3f(0x27d),'sessionId':_0x246e3f(0x1ea),'sessionIdDescription':_0x246e3f(0x196),'authorizationDescription':_0x246e3f(0x1be),'configParameters':_0x246e3f(0x1cc),'maxRetries':'最大重试次数','save':_0x246e3f(0x141),'saving':_0x246e3f(0x168),'note1':'配置更改将立即生效','note2':_0x246e3f(0x200),'configSaved':_0x246e3f(0x180),'configError':_0x246e3f(0x233),'apiApplyInfo':{'title':_0x246e3f(0x1aa),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x246e3f(0x21a),'getStarted':_0x246e3f(0x211)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x246e3f(0x203),'invalidConfig':'配置无效','invalidApiKey':_0x246e3f(0x1dd)},'connectionStatus':{'disconnected':'未连接','connecting':_0x246e3f(0x1e3),'connected':_0x246e3f(0x22c),'failed':_0x246e3f(0x223),'retrying':_0x246e3f(0x1d8)},'connectionError':{'unauthorized':_0x246e3f(0x1c5),'sessionOccupied':_0x246e3f(0x28a),'networkError':_0x246e3f(0x15d),'maxRetriesExceeded':_0x246e3f(0x176)}}};var Ae=Object[_0x246e3f(0x1b4)],Oe=Object[_0x246e3f(0x199)],De=(_0x54988a,_0x1ca7cc,_0x546aa1)=>_0x1ca7cc in _0x54988a?Ae(_0x54988a,_0x1ca7cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x546aa1}):_0x54988a[_0x1ca7cc]=_0x546aa1,Ue=(_0x5ccd39,_0xf81e7f,_0x36a86e,_0x101f7b)=>{const _0x45614c=_0x246e3f;for(var _0x4679bb=_0x101f7b>0x1?void 0x0:_0x101f7b?Oe(_0xf81e7f,_0x36a86e):_0xf81e7f,_0x45ebc9=_0x5ccd39[_0x45614c(0x14d)]-0x1,_0x34d4f7;_0x45ebc9>=0x0;_0x45ebc9--)(_0x34d4f7=_0x5ccd39[_0x45ebc9])&&(_0x4679bb=_0x34d4f7(_0x4679bb)||_0x4679bb);return _0x4679bb;},y=(_0x157a38,_0x20cbf2)=>(_0x17ad8c,_0x4d1c6d)=>_0x20cbf2(_0x17ad8c,_0x4d1c6d,_0x157a38),$e=(_0x2f60b6,_0x3b1eea,_0x1aa442)=>De(_0x2f60b6,_0x3b1eea+'',_0x1aa442);exports[_0x246e3f(0x13c)]=class extends u[_0x246e3f(0x1cb)]{constructor(_0x3fcf07=L,_0x417319,_0x58bbeb,_0x11730f,_0x7c159e,_0x2979d6){const _0x2691f5=_0x246e3f;super(),this[_0x2691f5(0x297)]=_0x3fcf07,this[_0x2691f5(0x2ad)]=_0x417319,this['_configService']=_0x58bbeb,this[_0x2691f5(0x248)]=_0x11730f,this['_localStorageService']=_0x7c159e,this[_0x2691f5(0x299)]=_0x2979d6;const {..._0x41fe0a}=u[_0x2691f5(0x212)]({},L,this[_0x2691f5(0x297)]);this[_0x2691f5(0x143)][_0x2691f5(0x259)](P,_0x41fe0a);}async[_0x246e3f(0x137)](){const _0x53e50f=_0x246e3f,_0x4ff232=[[exports['MCPConnectionUIController']],[exports[_0x53e50f(0x25c)]],[exports[_0x53e50f(0x298)]]];this['_injector'][_0x53e50f(0x1f7)](A[_0x53e50f(0x226)])||_0x4ff232[_0x53e50f(0x29b)]([A[_0x53e50f(0x226)],{'useClass':A['WebSocketService']}]),_0x4ff232[_0x53e50f(0x23b)](_0x130187=>this[_0x53e50f(0x2ad)][_0x53e50f(0x2a2)](_0x130187)),this[_0x53e50f(0x2ad)][_0x53e50f(0x1f3)](exports[_0x53e50f(0x157)]),this[_0x53e50f(0x2ad)][_0x53e50f(0x1f3)](exports[_0x53e50f(0x25c)]),this['_injector']['get'](exports[_0x53e50f(0x298)]);}},$e(exports[_0x246e3f(0x13c)],'pluginName',_0x246e3f(0x1e6)),exports[_0x246e3f(0x13c)]=Ue([u[_0x246e3f(0x29d)](s[_0x246e3f(0x13e)]),y(0x1,u[_0x246e3f(0x154)](u[_0x246e3f(0x178)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x246e3f(0x20e)]),y(0x5,u[_0x246e3f(0x154)](u['LocaleService']))],exports['UniverMCPUIPlugin']),exports[_0x246e3f(0x1da)]=V,exports[_0x246e3f(0x1a4)]=W,exports[_0x246e3f(0x194)]=b,exports[_0x246e3f(0x29f)]=Ee,exports['zhCN']=we;
@@ -1 +1 @@
1
- 'use strict';const _0x3aa73a=_0x5103;function _0x480b(){const _0x41ae9f=['Connecting...','MCP\x20Client\x20Configuration','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','196yuReHa','1887606SuHLGU','Retrying...','1374595TWqlEA','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enter\x20your\x20API\x20key','28316088SVHKdZ','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20Authentication','2331665mMgiBm','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','419356NhLnjH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','MCP\x20Retrying...','MCP:\x20Unauthorized','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','Connection\x20Failed','Configuration\x20Steps:','Configuration\x20saved\x20successfully','5403796UjjPfI','MCP\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','Session\x20ID','Saving...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','3sFixQx','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','MCP\x20Connecting...','98200wVhXWW','What\x20is\x20API\x20Key?'];_0x480b=function(){return _0x41ae9f;};return _0x480b();}(function(_0x42b43f,_0x3f7e34){const _0x35977b=_0x5103,_0x4ced54=_0x42b43f();while(!![]){try{const _0x2b997b=parseInt(_0x35977b(0x1fb))/0x1+parseInt(_0x35977b(0x20c))/0x2+-parseInt(_0x35977b(0x1ec))/0x3*(-parseInt(_0x35977b(0x216))/0x4)+parseInt(_0x35977b(0x207))/0x5+parseInt(_0x35977b(0x1f9))/0x6+-parseInt(_0x35977b(0x1f8))/0x7*(-parseInt(_0x35977b(0x1f0))/0x8)+-parseInt(_0x35977b(0x1ff))/0x9;if(_0x2b997b===_0x3f7e34)break;else _0x4ced54['push'](_0x4ced54['shift']());}catch(_0x1ea19a){_0x4ced54['push'](_0x4ced54['shift']());}}}(_0x480b,0xdf0d8));function _0x5103(_0x28bf69,_0x32e577){_0x28bf69=_0x28bf69-0x1e8;const _0x480b12=_0x480b();let _0x51039a=_0x480b12[_0x28bf69];return _0x51039a;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3aa73a(0x1ef),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x3aa73a(0x20f),'unknown':_0x3aa73a(0x1f6),'unauthorized':_0x3aa73a(0x210),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3aa73a(0x204),'maxRetriesExceeded':_0x3aa73a(0x1ed),'clickToConnect':_0x3aa73a(0x201),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3aa73a(0x217),'description':_0x3aa73a(0x20a),'apiKey':_0x3aa73a(0x203),'apiKeyPlaceholder':_0x3aa73a(0x1fe),'apiKeyHint':_0x3aa73a(0x1f7),'enableAuth':_0x3aa73a(0x206),'enableAuthHint':_0x3aa73a(0x202),'connectionInfo':_0x3aa73a(0x1f3),'mcpClientConfig':_0x3aa73a(0x1f3),'configInstructions':_0x3aa73a(0x1f5),'configStepTitle':_0x3aa73a(0x214),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3aa73a(0x1e9),'sessionIdDescription':_0x3aa73a(0x1eb),'authorizationDescription':_0x3aa73a(0x1fc),'configParameters':_0x3aa73a(0x1ee),'maxRetries':_0x3aa73a(0x20e),'save':_0x3aa73a(0x1e8),'saving':_0x3aa73a(0x1ea),'note1':_0x3aa73a(0x211),'note2':_0x3aa73a(0x1fd),'configSaved':_0x3aa73a(0x215),'configError':_0x3aa73a(0x212),'apiApplyInfo':{'title':_0x3aa73a(0x1f1),'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':_0x3aa73a(0x20b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3aa73a(0x200),'apiKeyTooShort':_0x3aa73a(0x205),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3aa73a(0x218)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3aa73a(0x1f2),'connected':_0x3aa73a(0x209),'failed':_0x3aa73a(0x213),'retrying':_0x3aa73a(0x1fa)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3aa73a(0x208),'maxRetriesExceeded':_0x3aa73a(0x20d)}}},n=e;module[_0x3aa73a(0x1f4)]=n;
1
+ 'use strict';const _0x38364c=_0x5d1b;(function(_0x32ba91,_0x2bf93a){const _0x582ffc=_0x5d1b,_0x10b52d=_0x32ba91();while(!![]){try{const _0x21a782=-parseInt(_0x582ffc(0x111))/0x1*(parseInt(_0x582ffc(0xf9))/0x2)+parseInt(_0x582ffc(0x107))/0x3*(parseInt(_0x582ffc(0x11d))/0x4)+parseInt(_0x582ffc(0x10f))/0x5+parseInt(_0x582ffc(0xff))/0x6*(parseInt(_0x582ffc(0xf6))/0x7)+-parseInt(_0x582ffc(0xf5))/0x8*(-parseInt(_0x582ffc(0xfd))/0x9)+-parseInt(_0x582ffc(0xf2))/0xa*(-parseInt(_0x582ffc(0x122))/0xb)+-parseInt(_0x582ffc(0x123))/0xc;if(_0x21a782===_0x2bf93a)break;else _0x10b52d['push'](_0x10b52d['shift']());}catch(_0x2de4cf){_0x10b52d['push'](_0x10b52d['shift']());}}}(_0x5b92,0x913e7));function _0x5b92(){const _0xea121f=['5249895yLQZHr','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','262393HgzzJA','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','3979112btOQVO','MCP\x20Retrying...','Retrying...','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','82929DNovgD','19661760JbgsgI','MCP:\x20Network\x20Error','Connecting...','1330oOQbiv','Configuration\x20Steps:','Configuration\x20saved\x20successfully','56yoOloU','42PffOaR','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','8tqbubI','Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','65151SCGzDL','Failed\x20to\x20save\x20configuration','184854JDpFLt','Connected','Save\x20Configuration','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','exports','API\x20key\x20is\x20required','3oZWUZr','MCP:\x20Unauthorized','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','Max\x20Retries','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0x5b92=function(){return _0xea121f;};return _0x5b92();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x38364c(0x102),'failed':_0x38364c(0x10c),'retrying':_0x38364c(0x11e),'unknown':_0x38364c(0x104),'unauthorized':_0x38364c(0x108),'sessionOccupied':_0x38364c(0x120),'networkError':_0x38364c(0xf0),'maxRetriesExceeded':_0x38364c(0x118),'clickToConnect':_0x38364c(0x113),'clickToConfigure':_0x38364c(0x119)},'mcpConfig':{'title':_0x38364c(0x10a),'description':_0x38364c(0x10e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x38364c(0x11c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x38364c(0x11b),'connectionInfo':_0x38364c(0xfc),'mcpClientConfig':_0x38364c(0xfc),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x38364c(0xf3),'configStep1':_0x38364c(0x103),'configStep2':_0x38364c(0x110),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x38364c(0x115),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x38364c(0x10b),'save':_0x38364c(0x101),'saving':_0x38364c(0xf8),'note1':_0x38364c(0x10d),'note2':_0x38364c(0x114),'configSaved':_0x38364c(0xf4),'configError':_0x38364c(0xfe),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','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':_0x38364c(0x117)},'validation':{'apiKeyRequired':_0x38364c(0x106),'apiKeyTooShort':_0x38364c(0xfb),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x38364c(0x109)},'connectionStatus':{'disconnected':_0x38364c(0xfa),'connecting':_0x38364c(0xf1),'connected':_0x38364c(0x100),'failed':_0x38364c(0x11a),'retrying':_0x38364c(0x11f)},'connectionError':{'unauthorized':_0x38364c(0xf7),'sessionOccupied':_0x38364c(0x121),'networkError':_0x38364c(0x116),'maxRetriesExceeded':_0x38364c(0x112)}}},n=e;function _0x5d1b(_0x3f0f09,_0x2baf3d){_0x3f0f09=_0x3f0f09-0xf0;const _0x5b92f8=_0x5b92();let _0x5d1bb6=_0x5b92f8[_0x3f0f09];return _0x5d1bb6;}module[_0x38364c(0x105)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x14fa8c=_0x3775;(function(_0x18142c,_0x324a9b){const _0x6a3d09=_0x3775,_0x26fda3=_0x18142c();while(!![]){try{const _0xaa7d4a=parseInt(_0x6a3d09(0x108))/0x1+-parseInt(_0x6a3d09(0x10e))/0x2+parseInt(_0x6a3d09(0xfd))/0x3+parseInt(_0x6a3d09(0xf2))/0x4+-parseInt(_0x6a3d09(0xfa))/0x5+parseInt(_0x6a3d09(0x116))/0x6+-parseInt(_0x6a3d09(0xf3))/0x7;if(_0xaa7d4a===_0x324a9b)break;else _0x26fda3['push'](_0x26fda3['shift']());}catch(_0x3eba29){_0x26fda3['push'](_0x26fda3['shift']());}}}(_0x32de,0x4c70f));function _0x3775(_0x7038d6,_0x2c3173){_0x7038d6=_0x7038d6-0xe7;const _0x32de65=_0x32de();let _0x377544=_0x32de65[_0x7038d6];return _0x377544;}const e={'mcpStatus':{'disconnected':_0x14fa8c(0x105),'connecting':_0x14fa8c(0x107),'connected':_0x14fa8c(0xe8),'failed':'MCP\x20Connection\x20Failed','retrying':_0x14fa8c(0x115),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x14fa8c(0xee),'sessionOccupied':_0x14fa8c(0xfc),'networkError':_0x14fa8c(0xf1),'maxRetriesExceeded':_0x14fa8c(0x104),'clickToConnect':_0x14fa8c(0x106),'clickToConfigure':_0x14fa8c(0xf4)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x14fa8c(0xea),'apiKey':_0x14fa8c(0xeb),'apiKeyPlaceholder':_0x14fa8c(0x10f),'apiKeyHint':_0x14fa8c(0xf0),'enableAuth':_0x14fa8c(0xfe),'enableAuthHint':_0x14fa8c(0x101),'connectionInfo':_0x14fa8c(0x103),'mcpClientConfig':_0x14fa8c(0x103),'configInstructions':_0x14fa8c(0x117),'configStepTitle':_0x14fa8c(0xf9),'configStep1':_0x14fa8c(0xed),'configStep2':_0x14fa8c(0x119),'configStep3':_0x14fa8c(0x100),'sessionId':'Session\x20ID','sessionIdDescription':_0x14fa8c(0x111),'authorizationDescription':_0x14fa8c(0x102),'configParameters':_0x14fa8c(0xff),'maxRetries':_0x14fa8c(0x114),'save':_0x14fa8c(0x113),'saving':'Saving...','note1':_0x14fa8c(0xe7),'note2':_0x14fa8c(0x112),'configSaved':_0x14fa8c(0x109),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x14fa8c(0x10c),'univerAiLabel':_0x14fa8c(0x10a),'getStarted':_0x14fa8c(0x10b)},'validation':{'apiKeyRequired':_0x14fa8c(0xe9),'apiKeyTooShort':_0x14fa8c(0xf5),'invalidConfig':_0x14fa8c(0xf8),'invalidApiKey':_0x14fa8c(0xf7)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x14fa8c(0x10d),'connected':_0x14fa8c(0x118),'failed':_0x14fa8c(0xec),'retrying':_0x14fa8c(0xf6)},'connectionError':{'unauthorized':_0x14fa8c(0xfb),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x14fa8c(0xef),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x14fa8c(0x110)]=e;function _0x32de(){const _0x23382d=['Enable\x20Authentication','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','598299UgNJQp','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connecting...','309826yWAqdq','Enter\x20your\x20API\x20key','exports','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\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','Max\x20Retries','MCP\x20Retrying...','102294WkZDQS','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','1765724DpGtML','4327743wrDgWi','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Invalid\x20configuration','Configuration\x20Steps:','712110DvzWvm','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','515724ZKNokb'];_0x32de=function(){return _0x23382d;};return _0x32de();}
1
+ 'use strict';const _0x58f5db=_0x4aa8;function _0x4284(){const _0x226b5f=['423006UkCVjB','Invalid\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','1533208EBOsjd','5uRGZbd','2KUSxdX','Max\x20Retries','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Univer\x20AI\x20Console','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','253ZgYFTg','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Save\x20Configuration','Enable\x20Authentication','MCP:\x20Network\x20Error','Configuration\x20Parameters:','73896Gufwkd','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3747408qemUmD','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1178168IUgWPg','MCP\x20Client\x20Configuration','Connected','940284Qqvbri','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','exports','API\x20Key','9ILYDwS','Connection\x20Failed','28YNliEB','Saving...','68290NXurRi'];_0x4284=function(){return _0x226b5f;};return _0x4284();}function _0x4aa8(_0x309d90,_0x157561){_0x309d90=_0x309d90-0x1cd;const _0x428466=_0x4284();let _0x4aa86c=_0x428466[_0x309d90];return _0x4aa86c;}(function(_0x4191d5,_0x53e0c9){const _0x490bba=_0x4aa8,_0x3e9138=_0x4191d5();while(!![]){try{const _0x8506fa=parseInt(_0x490bba(0x1fb))/0x1+parseInt(_0x490bba(0x1e8))/0x2*(parseInt(_0x490bba(0x1d9))/0x3)+parseInt(_0x490bba(0x1e6))/0x4*(-parseInt(_0x490bba(0x1e7))/0x5)+parseInt(_0x490bba(0x1e3))/0x6*(parseInt(_0x490bba(0x1e0))/0x7)+-parseInt(_0x490bba(0x1d6))/0x8*(-parseInt(_0x490bba(0x1de))/0x9)+-parseInt(_0x490bba(0x1e2))/0xa*(-parseInt(_0x490bba(0x1f0))/0xb)+-parseInt(_0x490bba(0x1cf))/0xc;if(_0x8506fa===_0x53e0c9)break;else _0x3e9138['push'](_0x3e9138['shift']());}catch(_0x43ce19){_0x3e9138['push'](_0x3e9138['shift']());}}}(_0x4284,0x43e40));const e={'mcpStatus':{'disconnected':_0x58f5db(0x1ee),'connecting':_0x58f5db(0x1fd),'connected':'MCP\x20Connected','failed':_0x58f5db(0x1d2),'retrying':_0x58f5db(0x1f5),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x58f5db(0x1cd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x58f5db(0x1f9),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x58f5db(0x1d3),'clickToConfigure':_0x58f5db(0x1d1)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x58f5db(0x1dd),'apiKeyPlaceholder':_0x58f5db(0x1ea),'apiKeyHint':_0x58f5db(0x1d0),'enableAuth':_0x58f5db(0x1f8),'enableAuthHint':_0x58f5db(0x1e5),'connectionInfo':_0x58f5db(0x1d7),'mcpClientConfig':_0x58f5db(0x1d7),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x58f5db(0x1d4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x58f5db(0x1da),'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':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x58f5db(0x1fa),'maxRetries':_0x58f5db(0x1e9),'save':_0x58f5db(0x1f7),'saving':_0x58f5db(0x1e1),'note1':_0x58f5db(0x1f3),'note2':_0x58f5db(0x1ef),'configSaved':_0x58f5db(0x1f4),'configError':_0x58f5db(0x1f2),'apiApplyInfo':{'title':_0x58f5db(0x1f1),'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':_0x58f5db(0x1ed),'getStarted':_0x58f5db(0x1f6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x58f5db(0x1d5),'invalidConfig':_0x58f5db(0x1e4),'invalidApiKey':_0x58f5db(0x1fc)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x58f5db(0x1ec),'connected':_0x58f5db(0x1d8),'failed':_0x58f5db(0x1df),'retrying':_0x58f5db(0x1db)},'connectionError':{'unauthorized':_0x58f5db(0x1fe),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x58f5db(0x1ce),'maxRetriesExceeded':_0x58f5db(0x1eb)}}};module[_0x58f5db(0x1dc)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x40a4(_0x52d5f1,_0x225c25){_0x52d5f1=_0x52d5f1-0x14c;const _0x4f6dae=_0x4f6d();let _0x40a4b4=_0x4f6dae[_0x52d5f1];return _0x40a4b4;}const _0x359fd7=_0x40a4;(function(_0x114139,_0x1fda8e){const _0x37d15b=_0x40a4,_0xc15be6=_0x114139();while(!![]){try{const _0x147ad2=parseInt(_0x37d15b(0x176))/0x1+-parseInt(_0x37d15b(0x151))/0x2+parseInt(_0x37d15b(0x16c))/0x3+parseInt(_0x37d15b(0x14e))/0x4+-parseInt(_0x37d15b(0x183))/0x5*(parseInt(_0x37d15b(0x164))/0x6)+-parseInt(_0x37d15b(0x17e))/0x7*(-parseInt(_0x37d15b(0x17b))/0x8)+-parseInt(_0x37d15b(0x178))/0x9*(-parseInt(_0x37d15b(0x181))/0xa);if(_0x147ad2===_0x1fda8e)break;else _0xc15be6['push'](_0xc15be6['shift']());}catch(_0x763607){_0xc15be6['push'](_0xc15be6['shift']());}}}(_0x4f6d,0x633dd));const e={'mcpStatus':{'disconnected':_0x359fd7(0x174),'connecting':'MCP\x20Connecting...','connected':_0x359fd7(0x182),'failed':_0x359fd7(0x16d),'retrying':_0x359fd7(0x170),'unknown':_0x359fd7(0x17f),'unauthorized':_0x359fd7(0x17d),'sessionOccupied':_0x359fd7(0x155),'networkError':_0x359fd7(0x180),'maxRetriesExceeded':_0x359fd7(0x175),'clickToConnect':_0x359fd7(0x15e),'clickToConfigure':_0x359fd7(0x165)},'mcpConfig':{'title':_0x359fd7(0x161),'description':_0x359fd7(0x159),'apiKey':_0x359fd7(0x16f),'apiKeyPlaceholder':_0x359fd7(0x158),'apiKeyHint':_0x359fd7(0x156),'enableAuth':_0x359fd7(0x179),'enableAuthHint':_0x359fd7(0x168),'connectionInfo':_0x359fd7(0x16a),'mcpClientConfig':_0x359fd7(0x16a),'configInstructions':_0x359fd7(0x169),'configStepTitle':_0x359fd7(0x152),'configStep1':_0x359fd7(0x154),'configStep2':_0x359fd7(0x160),'configStep3':_0x359fd7(0x177),'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':_0x359fd7(0x153),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x359fd7(0x15d),'save':_0x359fd7(0x150),'saving':_0x359fd7(0x14f),'note1':_0x359fd7(0x15a),'note2':_0x359fd7(0x163),'configSaved':_0x359fd7(0x173),'configError':_0x359fd7(0x171),'apiApplyInfo':{'title':_0x359fd7(0x15c),'description':_0x359fd7(0x184),'univerAiLabel':_0x359fd7(0x16b),'getStarted':_0x359fd7(0x167)},'validation':{'apiKeyRequired':_0x359fd7(0x166),'apiKeyTooShort':_0x359fd7(0x16e),'invalidConfig':_0x359fd7(0x15f),'invalidApiKey':_0x359fd7(0x172)},'connectionStatus':{'disconnected':_0x359fd7(0x17c),'connecting':_0x359fd7(0x17a),'connected':_0x359fd7(0x15b),'failed':'Connection\x20Failed','retrying':_0x359fd7(0x14c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x359fd7(0x14d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x359fd7(0x157)}}},n=e;function _0x4f6d(){const _0x18a096=['Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','What\x20is\x20API\x20Key?','Max\x20Retries','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','150684zNgQqd','Click\x20to\x20configure\x20MCP','API\x20key\x20is\x20required','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','1277226mHaHmG','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20saved\x20successfully','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','41707OWfsms','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','451368KLdtOF','Enable\x20Authentication','Connecting...','385392SuCQEI','Disconnected','MCP:\x20Unauthorized','7YXfysw','MCP\x20Unknown\x20Status','MCP:\x20Network\x20Error','10EfAtsz','MCP\x20Connected','65GmdtBt','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1967316MrnrbM','Saving...','Save\x20Configuration','649258LURejn'];_0x4f6d=function(){return _0x18a096;};return _0x4f6d();}module[_0x359fd7(0x162)]=n;
1
+ 'use strict';const _0x586b09=_0x2c74;(function(_0x3bfc35,_0x33fecd){const _0x8598cf=_0x2c74,_0x1a9e08=_0x3bfc35();while(!![]){try{const _0x36451b=-parseInt(_0x8598cf(0x89))/0x1+-parseInt(_0x8598cf(0x81))/0x2+parseInt(_0x8598cf(0x79))/0x3*(parseInt(_0x8598cf(0x8a))/0x4)+parseInt(_0x8598cf(0x7d))/0x5+parseInt(_0x8598cf(0x7a))/0x6+parseInt(_0x8598cf(0x66))/0x7+parseInt(_0x8598cf(0x86))/0x8*(-parseInt(_0x8598cf(0x8f))/0x9);if(_0x36451b===_0x33fecd)break;else _0x1a9e08['push'](_0x1a9e08['shift']());}catch(_0x3de2a5){_0x1a9e08['push'](_0x1a9e08['shift']());}}}(_0x421d,0xbff00));function _0x2c74(_0x72d12a,_0x27cb0f){_0x72d12a=_0x72d12a-0x66;const _0x421d93=_0x421d();let _0x2c7400=_0x421d93[_0x72d12a];return _0x2c7400;}function _0x421d(){const _0x346c90=['Enter\x20your\x20API\x20key','Invalid\x20configuration','MCP\x20Connected','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','MCP\x20Connection\x20Failed','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','exports','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Connected','518586bhgMdP','5083410SEVyqz','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5205730tpHxwX','MCP\x20Retrying...','Saving...','MCP:\x20Network\x20Error','2402898hmXkKc','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Enable\x20Authentication','40YLuOjS','Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','960148NUkkhL','32obmMnX','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','1442547diuqHQ','Configuration\x20Steps:','Max\x20Retries','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','Session\x20ID','3345377SbMqfn','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required'];_0x421d=function(){return _0x346c90;};return _0x421d();}const e={'mcpStatus':{'disconnected':_0x586b09(0x70),'connecting':_0x586b09(0x6c),'connected':_0x586b09(0x6b),'failed':_0x586b09(0x6f),'retrying':_0x586b09(0x7e),'unknown':_0x586b09(0x76),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x586b09(0x83),'networkError':_0x586b09(0x80),'maxRetriesExceeded':_0x586b09(0x82),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x586b09(0x74),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x586b09(0x72),'apiKeyPlaceholder':_0x586b09(0x69),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x586b09(0x85),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x586b09(0x84),'mcpClientConfig':_0x586b09(0x84),'configInstructions':_0x586b09(0x8d),'configStepTitle':_0x586b09(0x90),'configStep1':_0x586b09(0x6d),'configStep2':_0x586b09(0x92),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x586b09(0x96),'sessionIdDescription':_0x586b09(0x94),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x586b09(0x95),'maxRetries':_0x586b09(0x91),'save':_0x586b09(0x8e),'saving':_0x586b09(0x7f),'note1':_0x586b09(0x67),'note2':_0x586b09(0x7b),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x586b09(0x6e),'description':_0x586b09(0x71),'univerAiLabel':_0x586b09(0x77),'getStarted':_0x586b09(0x73)},'validation':{'apiKeyRequired':_0x586b09(0x68),'apiKeyTooShort':_0x586b09(0x88),'invalidConfig':_0x586b09(0x6a),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x586b09(0x87),'connecting':_0x586b09(0x8b),'connected':_0x586b09(0x78),'failed':'Connection\x20Failed','retrying':_0x586b09(0x93)},'connectionError':{'unauthorized':_0x586b09(0x7c),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x586b09(0x8c)}}},n=e;module[_0x586b09(0x75)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x469666=_0x13f0;(function(_0x4ad955,_0x68e186){const _0x335451=_0x13f0,_0x25f831=_0x4ad955();while(!![]){try{const _0x324820=parseInt(_0x335451(0x1b8))/0x1+parseInt(_0x335451(0x1b6))/0x2+parseInt(_0x335451(0x1bd))/0x3+parseInt(_0x335451(0x1b2))/0x4*(-parseInt(_0x335451(0x1cd))/0x5)+parseInt(_0x335451(0x1b9))/0x6*(-parseInt(_0x335451(0x1d5))/0x7)+-parseInt(_0x335451(0x1c5))/0x8+parseInt(_0x335451(0x1bb))/0x9*(parseInt(_0x335451(0x1ca))/0xa);if(_0x324820===_0x68e186)break;else _0x25f831['push'](_0x25f831['shift']());}catch(_0xebae4f){_0x25f831['push'](_0x25f831['shift']());}}}(_0x69a9,0x546b8));function _0x69a9(){const _0x90e8f6=['Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','9NXFiNu','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','200757CMuZjU','Univer\x20AI\x20Console','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Connected','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','5481176aEBWXQ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','12312010uXGhQr','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','15TXspLo','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Enable\x20Authentication','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','7ZPpCgJ','MCP\x20Connection\x20Failed','Configuration\x20Steps:','MCP\x20Connecting...','MCP\x20Disconnected','API\x20key\x20is\x20required','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','523356ThfgjJ','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','1135944DUJKlL','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','192322MRTtup','3809796oPXqCl'];_0x69a9=function(){return _0x90e8f6;};return _0x69a9();}function _0x13f0(_0x495297,_0x439097){_0x495297=_0x495297-0x1a7;const _0x69a957=_0x69a9();let _0x13f06c=_0x69a957[_0x495297];return _0x13f06c;}const e={'mcpStatus':{'disconnected':_0x469666(0x1aa),'connecting':_0x469666(0x1a9),'connected':'MCP\x20Connected','failed':_0x469666(0x1a7),'retrying':_0x469666(0x1af),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x469666(0x1d3),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x469666(0x1cc)},'mcpConfig':{'title':_0x469666(0x1c2),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x469666(0x1c8),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x469666(0x1bc),'enableAuth':_0x469666(0x1d2),'enableAuthHint':_0x469666(0x1cb),'connectionInfo':_0x469666(0x1b4),'mcpClientConfig':_0x469666(0x1b4),'configInstructions':_0x469666(0x1ba),'configStepTitle':_0x469666(0x1a8),'configStep1':_0x469666(0x1b1),'configStep2':_0x469666(0x1cf),'configStep3':_0x469666(0x1c6),'sessionId':_0x469666(0x1d4),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x469666(0x1c0),'configParameters':_0x469666(0x1b5),'maxRetries':'Max\x20Retries','save':_0x469666(0x1ac),'saving':_0x469666(0x1c7),'note1':_0x469666(0x1b0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x469666(0x1bf),'configError':_0x469666(0x1ce),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','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':_0x469666(0x1be),'getStarted':_0x469666(0x1c3)},'validation':{'apiKeyRequired':_0x469666(0x1ab),'apiKeyTooShort':_0x469666(0x1ad),'invalidConfig':_0x469666(0x1ae),'invalidApiKey':_0x469666(0x1b7)},'connectionStatus':{'disconnected':_0x469666(0x1c4),'connecting':'Connecting...','connected':_0x469666(0x1c1),'failed':_0x469666(0x1d1),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x469666(0x1c9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x469666(0x1b3),'maxRetriesExceeded':_0x469666(0x1d0)}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x5eafbf=_0x5608;function _0x5608(_0x3362c2,_0x2287d4){_0x3362c2=_0x3362c2-0x1c5;const _0x5ce372=_0x5ce3();let _0x560807=_0x5ce372[_0x3362c2];return _0x560807;}(function(_0xc2417f,_0x1b1974){const _0x520f86=_0x5608,_0x3f1842=_0xc2417f();while(!![]){try{const _0x355c21=parseInt(_0x520f86(0x1db))/0x1*(-parseInt(_0x520f86(0x1d0))/0x2)+parseInt(_0x520f86(0x1e6))/0x3*(-parseInt(_0x520f86(0x1da))/0x4)+-parseInt(_0x520f86(0x1ed))/0x5+parseInt(_0x520f86(0x1cc))/0x6+parseInt(_0x520f86(0x1f4))/0x7*(parseInt(_0x520f86(0x1c9))/0x8)+-parseInt(_0x520f86(0x1f1))/0x9*(parseInt(_0x520f86(0x1eb))/0xa)+-parseInt(_0x520f86(0x1e7))/0xb*(-parseInt(_0x520f86(0x1c6))/0xc);if(_0x355c21===_0x1b1974)break;else _0x3f1842['push'](_0x3f1842['shift']());}catch(_0x34e965){_0x3f1842['push'](_0x3f1842['shift']());}}}(_0x5ce3,0x75dbd));function _0x5ce3(){const _0x8889d9=['501HTtpIj','2397659PBIvMG','Enable\x20Authentication','MCP\x20Retrying...','Configuration\x20saved\x20successfully','3680690AGYUZH','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','178250AEopol','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','9tlqDeV','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','1937341SeuszB','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','84jImMGK','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','8ixbWHo','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1631484QwjRYc','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connection\x20Failed','235208OLITPK','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Max\x20Retries','Invalid\x20configuration','Disconnected','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','5920WYqZfU','8xJiili','API\x20Key','MCP\x20Disconnected','MCP:\x20Network\x20Error','Session\x20ID','Save\x20Configuration','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','exports','Configuration\x20Steps:'];_0x5ce3=function(){return _0x8889d9;};return _0x5ce3();}const e={'mcpStatus':{'disconnected':_0x5eafbf(0x1dd),'connecting':_0x5eafbf(0x1d7),'connected':_0x5eafbf(0x1cd),'failed':_0x5eafbf(0x1cf),'retrying':_0x5eafbf(0x1e9),'unknown':_0x5eafbf(0x1d9),'unauthorized':_0x5eafbf(0x1e3),'sessionOccupied':_0x5eafbf(0x1d6),'networkError':_0x5eafbf(0x1de),'maxRetriesExceeded':_0x5eafbf(0x1f6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5eafbf(0x1d2)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5eafbf(0x1e2),'apiKey':_0x5eafbf(0x1dc),'apiKeyPlaceholder':_0x5eafbf(0x1d1),'apiKeyHint':_0x5eafbf(0x1c7),'enableAuth':_0x5eafbf(0x1e8),'enableAuthHint':_0x5eafbf(0x1ef),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5eafbf(0x1f9),'configInstructions':_0x5eafbf(0x1f0),'configStepTitle':_0x5eafbf(0x1e5),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5eafbf(0x1ee),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5eafbf(0x1df),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5eafbf(0x1ca),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5eafbf(0x1d3),'save':_0x5eafbf(0x1e0),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5eafbf(0x1d8),'configSaved':_0x5eafbf(0x1ea),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5eafbf(0x1f2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5eafbf(0x1ce)},'validation':{'apiKeyRequired':_0x5eafbf(0x1c8),'apiKeyTooShort':_0x5eafbf(0x1cb),'invalidConfig':_0x5eafbf(0x1d4),'invalidApiKey':_0x5eafbf(0x1c5)},'connectionStatus':{'disconnected':_0x5eafbf(0x1d5),'connecting':_0x5eafbf(0x1f5),'connected':_0x5eafbf(0x1e1),'failed':_0x5eafbf(0x1f3),'retrying':_0x5eafbf(0x1f7)},'connectionError':{'unauthorized':_0x5eafbf(0x1f8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5eafbf(0x1ec),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x5eafbf(0x1e4)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x174f3b=_0x4356;(function(_0x50d805,_0x41c3eb){const _0x3c3742=_0x4356,_0x2afce9=_0x50d805();while(!![]){try{const _0x3124d4=parseInt(_0x3c3742(0x196))/0x1*(-parseInt(_0x3c3742(0x17f))/0x2)+parseInt(_0x3c3742(0x171))/0x3+-parseInt(_0x3c3742(0x187))/0x4+-parseInt(_0x3c3742(0x176))/0x5+parseInt(_0x3c3742(0x18b))/0x6*(-parseInt(_0x3c3742(0x184))/0x7)+parseInt(_0x3c3742(0x185))/0x8*(parseInt(_0x3c3742(0x18d))/0x9)+parseInt(_0x3c3742(0x19a))/0xa;if(_0x3124d4===_0x41c3eb)break;else _0x2afce9['push'](_0x2afce9['shift']());}catch(_0x54821d){_0x2afce9['push'](_0x2afce9['shift']());}}}(_0x507c,0xa15a0));function _0x4356(_0x37d02e,_0x46d9ac){_0x37d02e=_0x37d02e-0x16b;const _0x507c8b=_0x507c();let _0x4356de=_0x507c8b[_0x37d02e];return _0x4356de;}const e={'mcpStatus':{'disconnected':_0x174f3b(0x190),'connecting':_0x174f3b(0x18a),'connected':_0x174f3b(0x17d),'failed':_0x174f3b(0x198),'retrying':_0x174f3b(0x192),'unknown':_0x174f3b(0x181),'unauthorized':_0x174f3b(0x16d),'sessionOccupied':_0x174f3b(0x199),'networkError':_0x174f3b(0x175),'maxRetriesExceeded':_0x174f3b(0x17a),'clickToConnect':_0x174f3b(0x194),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x174f3b(0x183),'description':_0x174f3b(0x189),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x174f3b(0x173),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x174f3b(0x16c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x174f3b(0x172),'configStepTitle':_0x174f3b(0x177),'configStep1':_0x174f3b(0x174),'configStep2':_0x174f3b(0x195),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x174f3b(0x17c),'sessionIdDescription':_0x174f3b(0x180),'authorizationDescription':_0x174f3b(0x19b),'configParameters':_0x174f3b(0x186),'maxRetries':_0x174f3b(0x191),'save':_0x174f3b(0x188),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x174f3b(0x178),'configSaved':_0x174f3b(0x19c),'configError':_0x174f3b(0x17b),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x174f3b(0x16e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x174f3b(0x193)},'validation':{'apiKeyRequired':_0x174f3b(0x18c),'apiKeyTooShort':_0x174f3b(0x16f),'invalidConfig':_0x174f3b(0x16b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x174f3b(0x18f),'connecting':'Connecting...','connected':_0x174f3b(0x197),'failed':_0x174f3b(0x179),'retrying':_0x174f3b(0x182)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x174f3b(0x17e),'networkError':_0x174f3b(0x18e),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x174f3b(0x170)]=n;function _0x507c(){const _0x3810b2=['Invalid\x20configuration','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','2792607bAjBjS','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Network\x20Error','3041715hFlgUM','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','Session\x20ID','MCP\x20Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2MElyqa','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','Retrying...','MCP\x20Configuration','7ZnjPVP','4594856fFhPdA','Configuration\x20Parameters:','3167356IyiPTS','Save\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','2032734fDAVxD','API\x20key\x20is\x20required','9ftltyN','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Disconnected','MCP\x20Disconnected','Max\x20Retries','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','917409vINurS','Connected','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','18120500OdAoam','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20saved\x20successfully'];_0x507c=function(){return _0x3810b2;};return _0x507c();}
1
+ 'use strict';function _0x1e96(){const _0x1c3b01=['8213575pRxYNg','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','56414NDaCGc','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','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:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','Retrying...','Invalid\x20configuration','944006HroZvr','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','110202frceYH','4077300gyPyYA','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','2579097HVelDv','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','665hmqhAu','exports','Connected','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','2718064mwhIRs','Configuration\x20Parameters:','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully'];_0x1e96=function(){return _0x1c3b01;};return _0x1e96();}function _0x3d0b(_0x382a81,_0xbde88f){_0x382a81=_0x382a81-0x116;const _0x1e96e8=_0x1e96();let _0x3d0bf7=_0x1e96e8[_0x382a81];return _0x3d0bf7;}const _0x5e8b1c=_0x3d0b;(function(_0x364553,_0x150b8e){const _0x2fe733=_0x3d0b,_0x16a4ef=_0x364553();while(!![]){try{const _0x243729=-parseInt(_0x2fe733(0x141))/0x1+-parseInt(_0x2fe733(0x11b))/0x2+parseInt(_0x2fe733(0x125))/0x3+parseInt(_0x2fe733(0x121))/0x4+parseInt(_0x2fe733(0x137))/0x5+-parseInt(_0x2fe733(0x120))/0x6*(parseInt(_0x2fe733(0x12d))/0x7)+-parseInt(_0x2fe733(0x132))/0x8;if(_0x243729===_0x150b8e)break;else _0x16a4ef['push'](_0x16a4ef['shift']());}catch(_0x1a8659){_0x16a4ef['push'](_0x16a4ef['shift']());}}}(_0x1e96,0xddd9b));const e={'mcpStatus':{'disconnected':_0x5e8b1c(0x13f),'connecting':_0x5e8b1c(0x139),'connected':'MCP\x20Connected','failed':_0x5e8b1c(0x142),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5e8b1c(0x116),'sessionOccupied':_0x5e8b1c(0x128),'networkError':_0x5e8b1c(0x13e),'maxRetriesExceeded':_0x5e8b1c(0x12c),'clickToConnect':_0x5e8b1c(0x13d),'clickToConfigure':_0x5e8b1c(0x129)},'mcpConfig':{'title':_0x5e8b1c(0x12a),'description':_0x5e8b1c(0x13a),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5e8b1c(0x12b),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5e8b1c(0x130),'mcpClientConfig':_0x5e8b1c(0x130),'configInstructions':_0x5e8b1c(0x117),'configStepTitle':_0x5e8b1c(0x144),'configStep1':_0x5e8b1c(0x11d),'configStep2':_0x5e8b1c(0x138),'configStep3':_0x5e8b1c(0x127),'sessionId':_0x5e8b1c(0x126),'sessionIdDescription':_0x5e8b1c(0x135),'authorizationDescription':_0x5e8b1c(0x122),'configParameters':_0x5e8b1c(0x133),'maxRetries':_0x5e8b1c(0x134),'save':_0x5e8b1c(0x118),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5e8b1c(0x136),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5e8b1c(0x145),'univerAiLabel':_0x5e8b1c(0x13b),'getStarted':_0x5e8b1c(0x131)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5e8b1c(0x11e),'invalidConfig':_0x5e8b1c(0x11a),'invalidApiKey':_0x5e8b1c(0x11f)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5e8b1c(0x11c),'connected':_0x5e8b1c(0x12f),'failed':_0x5e8b1c(0x124),'retrying':_0x5e8b1c(0x119)},'connectionError':{'unauthorized':_0x5e8b1c(0x13c),'sessionOccupied':_0x5e8b1c(0x140),'networkError':_0x5e8b1c(0x143),'maxRetriesExceeded':_0x5e8b1c(0x123)}}},n=e;module[_0x5e8b1c(0x12e)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x44108e=_0x5f44;function _0x5290(){const _0x7529aa=['セキュアな接続のために認証を有効にする','設定パラメータ:','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','最大再試行回数','exports','最大再試行回数を超過しました。後でもう一度お試しください','APIキーはローカルストレージに安全に保存されます','2202ILqlqD','MCPクライアントの設定ファイルに設定を追加','Univer\x20AIコンソール','設定が正常に保存されました','APIキー','9dARAKu','MCP:\x20認証されていません','MCP\x20未接続','7269030tRbnWa','未接続','MCP設定','MCP:\x20ネットワークエラー','MCP\x20接続中...','1596762EhbUPZ','再試行中...','6344uyZhjc','クリックしてMCPを設定','26195UpItPM','セッションID','認証を有効にする','無効な設定','MCP:\x20セッションIDが使用中','クリックしてMCPに接続','MCPクライアントの設定に次の設定を追加してください:','APIキーはこのブラウザのローカルに保存されます','6575HBfeKu','保存中...','3yMgfgh','接続済み','MCP\x20再試行中...','APIキーは必須です','MCPクライアントを再起動して設定を適用','MCPクライアント設定','接続失敗','24002esVLzb','APIキーとは?','以下のJSON設定をコピー','APIキーを入力してください','Bearerプレフィックス付きのAPIキー。','5340oHyXJL','MCP\x20接続済み','4018PfbWjp','MCP\x20接続失敗','設定手順:','設定の変更は直ちに有効になります','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','1367512mJEGmF'];_0x5290=function(){return _0x7529aa;};return _0x5290();}(function(_0x8cc049,_0x15025c){const _0x381aa9=_0x5f44,_0x28109a=_0x8cc049();while(!![]){try{const _0x4816d8=parseInt(_0x381aa9(0x1e6))/0x1+-parseInt(_0x381aa9(0x1e2))/0x2*(-parseInt(_0x381aa9(0x1f0))/0x3)+parseInt(_0x381aa9(0x1cd))/0x4+parseInt(_0x381aa9(0x1ee))/0x5*(-parseInt(_0x381aa9(0x1d5))/0x6)+parseInt(_0x381aa9(0x1fe))/0x7*(-parseInt(_0x381aa9(0x1e4))/0x8)+parseInt(_0x381aa9(0x1da))/0x9*(-parseInt(_0x381aa9(0x1dd))/0xa)+-parseInt(_0x381aa9(0x1f7))/0xb*(-parseInt(_0x381aa9(0x1fc))/0xc);if(_0x4816d8===_0x15025c)break;else _0x28109a['push'](_0x28109a['shift']());}catch(_0x45ee85){_0x28109a['push'](_0x28109a['shift']());}}}(_0x5290,0x736b2));const e={'mcpStatus':{'disconnected':_0x44108e(0x1dc),'connecting':_0x44108e(0x1e1),'connected':_0x44108e(0x1fd),'failed':_0x44108e(0x1ff),'retrying':_0x44108e(0x1f2),'unknown':'MCP\x20不明な状態','unauthorized':_0x44108e(0x1db),'sessionOccupied':_0x44108e(0x1ea),'networkError':_0x44108e(0x1e0),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x44108e(0x1eb),'clickToConfigure':_0x44108e(0x1e5)},'mcpConfig':{'title':_0x44108e(0x1df),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x44108e(0x1d9),'apiKeyPlaceholder':_0x44108e(0x1fa),'apiKeyHint':_0x44108e(0x1ed),'enableAuth':_0x44108e(0x1e8),'enableAuthHint':_0x44108e(0x1ce),'connectionInfo':_0x44108e(0x1f5),'mcpClientConfig':'MCPクライアント設定','configInstructions':_0x44108e(0x1ec),'configStepTitle':_0x44108e(0x200),'configStep1':_0x44108e(0x1f9),'configStep2':_0x44108e(0x1d6),'configStep3':_0x44108e(0x1f4),'sessionId':_0x44108e(0x1e7),'sessionIdDescription':_0x44108e(0x202),'authorizationDescription':_0x44108e(0x1fb),'configParameters':_0x44108e(0x1cf),'maxRetries':_0x44108e(0x1d1),'save':'設定を保存','saving':_0x44108e(0x1ef),'note1':_0x44108e(0x201),'note2':_0x44108e(0x1d4),'configSaved':_0x44108e(0x1d8),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x44108e(0x1f8),'description':_0x44108e(0x1d0),'univerAiLabel':_0x44108e(0x1d7),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x44108e(0x1f3),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x44108e(0x1e9),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x44108e(0x1de),'connecting':'接続中...','connected':_0x44108e(0x1f1),'failed':_0x44108e(0x1f6),'retrying':_0x44108e(0x1e3)},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':'セッションIDが現在使用中です。後でもう一度お試しください','networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x44108e(0x1d3)}}};function _0x5f44(_0x560dfd,_0x2f16e4){_0x560dfd=_0x560dfd-0x1cd;const _0x52905e=_0x5290();let _0x5f4412=_0x52905e[_0x560dfd];return _0x5f4412;}module[_0x44108e(0x1d2)]=e;
1
+ 'use strict';const _0x2c245f=_0x4c2f;(function(_0x1c5f67,_0x7d27b5){const _0x36739b=_0x4c2f,_0x28ade8=_0x1c5f67();while(!![]){try{const _0x1c62dd=-parseInt(_0x36739b(0x169))/0x1*(parseInt(_0x36739b(0x145))/0x2)+-parseInt(_0x36739b(0x155))/0x3*(-parseInt(_0x36739b(0x144))/0x4)+-parseInt(_0x36739b(0x149))/0x5+parseInt(_0x36739b(0x14a))/0x6+-parseInt(_0x36739b(0x147))/0x7+-parseInt(_0x36739b(0x146))/0x8*(-parseInt(_0x36739b(0x153))/0x9)+-parseInt(_0x36739b(0x161))/0xa*(parseInt(_0x36739b(0x160))/0xb);if(_0x1c62dd===_0x7d27b5)break;else _0x28ade8['push'](_0x28ade8['shift']());}catch(_0x3a76fe){_0x28ade8['push'](_0x28ade8['shift']());}}}(_0x3357,0x85d44));function _0x4c2f(_0x23b9e6,_0x5b22dc){_0x23b9e6=_0x23b9e6-0x135;const _0x3357ff=_0x3357();let _0x4c2f2f=_0x3357ff[_0x23b9e6];return _0x4c2f2f;}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x2c245f(0x13b),'connected':_0x2c245f(0x15a),'failed':_0x2c245f(0x15d),'retrying':_0x2c245f(0x157),'unknown':'MCP\x20不明な状態','unauthorized':_0x2c245f(0x152),'sessionOccupied':_0x2c245f(0x168),'networkError':_0x2c245f(0x137),'maxRetriesExceeded':_0x2c245f(0x142),'clickToConnect':_0x2c245f(0x13c),'clickToConfigure':_0x2c245f(0x148)},'mcpConfig':{'title':'MCP設定','description':_0x2c245f(0x13d),'apiKey':_0x2c245f(0x14c),'apiKeyPlaceholder':_0x2c245f(0x136),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x2c245f(0x141),'enableAuthHint':_0x2c245f(0x15e),'connectionInfo':_0x2c245f(0x13e),'mcpClientConfig':_0x2c245f(0x13e),'configInstructions':_0x2c245f(0x14b),'configStepTitle':_0x2c245f(0x139),'configStep1':_0x2c245f(0x167),'configStep2':_0x2c245f(0x14d),'configStep3':_0x2c245f(0x143),'sessionId':_0x2c245f(0x162),'sessionIdDescription':_0x2c245f(0x15c),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':'設定パラメータ:','maxRetries':_0x2c245f(0x15f),'save':_0x2c245f(0x135),'saving':_0x2c245f(0x140),'note1':_0x2c245f(0x15b),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':'設定が正常に保存されました','configError':_0x2c245f(0x138),'apiApplyInfo':{'title':'APIキーとは?','description':_0x2c245f(0x166),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x2c245f(0x13f)},'validation':{'apiKeyRequired':_0x2c245f(0x151),'apiKeyTooShort':_0x2c245f(0x14e),'invalidConfig':_0x2c245f(0x159),'invalidApiKey':_0x2c245f(0x158)},'connectionStatus':{'disconnected':_0x2c245f(0x156),'connecting':_0x2c245f(0x154),'connected':_0x2c245f(0x165),'failed':_0x2c245f(0x13a),'retrying':_0x2c245f(0x150)},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x2c245f(0x16a),'networkError':_0x2c245f(0x163),'maxRetriesExceeded':_0x2c245f(0x164)}}};function _0x3357(){const _0xc4a72=['セッションID','ネットワーク接続エラー。インターネット接続を確認してください','最大再試行回数を超過しました。後でもう一度お試しください','接続済み','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','以下のJSON設定をコピー','MCP:\x20セッションIDが使用中','1VASeaY','セッションIDが現在使用中です。後でもう一度お試しください','設定を保存','APIキーを入力してください','MCP:\x20ネットワークエラー','設定の保存に失敗しました','設定手順:','接続失敗','MCP\x20接続中...','クリックしてMCPに接続','MCPを設定してAIでスプレッドシートを操作','MCPクライアント設定','数秒でAPIキーを取得','保存中...','認証を有効にする','MCP:\x20最大再試行回数を超過','MCPクライアントを再起動して設定を適用','22964tIDOff','344084CAfGSg','1596728EzshBs','5821585GzPVyZ','クリックしてMCPを設定','2648420GszzRh','2731332qHEdsc','MCPクライアントの設定に次の設定を追加してください:','APIキー','MCPクライアントの設定ファイルに設定を追加','APIキーは10文字以上である必要があります','exports','再試行中...','APIキーは必須です','MCP:\x20認証されていません','45ibZDRW','接続中...','555wydfhE','未接続','MCP\x20再試行中...','無効なAPIキーです。キーが正しいか確認してください','無効な設定','MCP\x20接続済み','設定の変更は直ちに有効になります','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP\x20接続失敗','セキュアな接続のために認証を有効にする','最大再試行回数','11JPdJZY','4337170COcJhU'];_0x3357=function(){return _0xc4a72;};return _0x3357();}module[_0x2c245f(0x14f)]=e;